@oaknational/google-classroom-addon 1.7.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/services/index.js +100 -2
- package/dist/cjs/services/index.js.map +1 -1
- package/dist/cjs/views/index.js +1 -1
- package/dist/cjs/views/index.js.map +1 -1
- package/dist/esm/services/index.js +100 -2
- package/dist/esm/services/index.js.map +1 -1
- package/dist/esm/views/index.js +1 -1
- package/dist/esm/views/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,106 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var classroom=require("@googleapis/classroom"),z=require("zod"),crypto$2=require("crypto"),require$$1$3=require("process"),require$$1$4=require("tls"),require$$0$1=require("fs"),require$$0$2=require("os"),require$$0$3=require("net"),require$$0$4=require("events"),Stream=require("stream"),require$$1$5=require("path"),zlib=require("zlib"),require$$0$5=require("http2"),http=require("http"),Url=require("url"),require$$1$6=require("dns"),require$$1$7=require("util"),require$$1$8=require("child_process"),require$$3$2=require("google-auth-library"),require$$0$6=require("querystring"),require$$0$7=require("punycode"),require$$1$9=require("https"),require$$0$8=require("buffer"),require$$2$2=require("assert"),require$$1$a=require("tty");function _interopDefaultCompat(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var z__default=_interopDefaultCompat(z),crypto__default=_interopDefaultCompat(crypto$2),require$$1__default=_interopDefaultCompat(require$$1$3),require$$1__default$1=_interopDefaultCompat(require$$1$4),require$$0__default=_interopDefaultCompat(require$$0$1),require$$0__default$1=_interopDefaultCompat(require$$0$2),require$$0__default$2=_interopDefaultCompat(require$$0$3),require$$0__default$3=_interopDefaultCompat(require$$0$4),Stream__default=_interopDefaultCompat(Stream),require$$1__default$2=_interopDefaultCompat(require$$1$5),zlib__default=_interopDefaultCompat(zlib),require$$0__default$4=_interopDefaultCompat(require$$0$5),http__default=_interopDefaultCompat(http),Url__default=_interopDefaultCompat(Url),require$$1__default$3=_interopDefaultCompat(require$$1$6),require$$1__default$4=_interopDefaultCompat(require$$1$7),require$$1__default$5=_interopDefaultCompat(require$$1$8),require$$3__default=_interopDefaultCompat(require$$3$2),require$$0__default$5=_interopDefaultCompat(require$$0$6),require$$0__default$6=_interopDefaultCompat(require$$0$7),require$$1__default$6=_interopDefaultCompat(require$$1$9),require$$0__default$7=_interopDefaultCompat(require$$0$8),require$$2__default=_interopDefaultCompat(require$$2$2),require$$1__default$7=_interopDefaultCompat(require$$1$a),extendStatics$1=function(e,t){return extendStatics$1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},extendStatics$1(e,t)};function __extends$1(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}extendStatics$1(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var __assign=function(){return __assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign.apply(this,arguments)};function __awaiter(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{l(n.next(e))}catch(e){i(e)}}function s(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):function(e){return e instanceof r?e:new r(function(t){t(e)})}(e.value).then(a,s)}l((n=n.apply(e,t||[])).next())})}function __generator$1(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function __read(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){var r=!1;try{r=this instanceof e}catch{}return r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var cookie={},hasRequiredCookie;
|
|
2
2
|
/*!
|
|
3
3
|
* cookie
|
|
4
4
|
* Copyright(c) 2012-2014 Roman Shtylman
|
|
5
5
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
6
6
|
* MIT Licensed
|
|
7
|
-
*/!function(){if(l)return d;l=1,d.parse=function(t,r){if("string"!=typeof t)throw new TypeError("argument str must be a string");var n={},i=t.length;if(i<2)return n;var o=r&&r.decode||c,l=0,d=0,h=0;do{if(-1===(d=t.indexOf("=",l)))break;if(-1===(h=t.indexOf(";",l)))h=i;else if(d>h){l=t.lastIndexOf(";",d-1)+1;continue}var f=s(t,l,d),p=a(t,d,f),g=t.slice(f,p);if(!e.call(n,g)){var w=s(t,d+1,h),y=a(t,h,w);34===t.charCodeAt(w)&&34===t.charCodeAt(y-1)&&(w++,y--);var m=t.slice(w,y);n[g]=u(m,o)}l=h+1}while(l<i);return n},d.serialize=function(e,s,a){var c=a&&a.encode||encodeURIComponent;if("function"!=typeof c)throw new TypeError("option encode is invalid");if(!r.test(e))throw new TypeError("argument name is invalid");var u=c(s);if(!n.test(u))throw new TypeError("argument val is invalid");var l=e+"="+u;if(!a)return l;if(null!=a.maxAge){var d=Math.floor(a.maxAge);if(!isFinite(d))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+d}if(a.domain){if(!i.test(a.domain))throw new TypeError("option domain is invalid");l+="; Domain="+a.domain}if(a.path){if(!o.test(a.path))throw new TypeError("option path is invalid");l+="; Path="+a.path}if(a.expires){var h=a.expires;if(!function(e){return"[object Date]"===t.call(e)}(h)||isNaN(h.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+h.toUTCString()}a.httpOnly&&(l+="; HttpOnly");a.secure&&(l+="; Secure");a.partitioned&&(l+="; Partitioned");if(a.priority){switch("string"==typeof a.priority?a.priority.toLowerCase():a.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(a.sameSite){switch("string"==typeof a.sameSite?a.sameSite.toLowerCase():a.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l};var t=Object.prototype.toString,e=Object.prototype.hasOwnProperty,r=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,n=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/;function s(t,e,r){do{var n=t.charCodeAt(e);if(32!==n&&9!==n)return e}while(++e<r);return r}function a(t,e,r){for(;e>r;){var n=t.charCodeAt(--e);if(32!==n&&9!==n)return e+1}return r}function c(t){return-1!==t.indexOf("%")?decodeURIComponent(t):t}function u(t,e){try{return e(t)}catch(e){return t}}}();var h={},f=Array.from({length:64});for(let t=0,e="A".charCodeAt(0),r="Z".charCodeAt(0);t+e<=r;t++){const r=String.fromCharCode(t+e);h[r]=t,f[t]=r}for(let t=0,e="a".charCodeAt(0),r="z".charCodeAt(0);t+e<=r;t++){const r=String.fromCharCode(t+e),n=t+26;h[r]=n,f[n]=r}for(let t=0;t<10;t++){h[t.toString(10)]=t+52;const e=t.toString(10),r=t+52;h[e]=r,f[r]=e}h["-"]=62,f[62]="-",h._=63,f[63]="_";var p=t=>(new TextEncoder).encode(t),g=t=>{const e=t+"=".repeat((4-t.length%4)%4);let r=e.length/4*3;e.endsWith("==")?r-=2:e.endsWith("=")&&r--;const n=new ArrayBuffer(r),i=new DataView(n);for(let t=0;t<e.length;t+=4){let r=0,n=0;for(let i=t,o=t+3;i<=o;i++)if("="===e[i])r>>=6;else{if(!(e[i]in h))throw new TypeError(`Invalid character ${e[i]} in base64 string.`);r|=h[e[i]]<<6*(o-i),n+=6}const o=t/4*3;r>>=n%8;const s=Math.floor(n/8);for(let t=0;t<s;t++){const e=8*(s-t-1);i.setUint8(o+t,(r&255<<e)>>e)}}return new Uint8Array(n)},w=t=>{const e="string"==typeof t?p(t):t;let r="";for(let t=0;t<e.length;t+=3){let n=0,i=0;for(let r=t,o=Math.min(t+3,e.length);r<o;r++)n|=e[r]<<8*(o-r-1),i+=8;const o=Math.ceil(i/6);n<<=6*o-i;for(let t=1;t<=o;t++){const e=6*(o-t);r+=f[(n&63<<e)>>e]}}return r},y={encryption:{saltBits:256,algorithm:"aes-256-cbc",iterations:1,minPasswordlength:32},integrity:{saltBits:256,algorithm:"sha256",iterations:1,minPasswordlength:32},ttl:0,timestampSkewSec:60,localtimeOffsetMsec:0},m=t=>({...t,encryption:{...t.encryption},integrity:{...t.integrity}}),v={"aes-128-ctr":{keyBits:128,ivBits:128,name:"AES-CTR"},"aes-256-cbc":{keyBits:256,ivBits:128,name:"AES-CBC"},sha256:{keyBits:256,name:"SHA-256"}},S="Fe26.2",C=(t,e)=>{if(e<1)throw new Error("Invalid random bits count");return((t,e)=>{const r=new Uint8Array(e);return t.getRandomValues(r),r})(t,Math.ceil(e/8))},A=async(t,e,r)=>{var n;if(!(null==e?void 0:e.length))throw new Error("Empty password");if(null==r||"object"!=typeof r)throw new Error("Bad options");if(!(r.algorithm in v))throw new Error(`Unknown algorithm: ${r.algorithm}`);const i=v[r.algorithm],o={},s=null!=(n=r.hmac)&&n,a=s?{name:"HMAC",hash:i.name}:{name:i.name},c=s?["sign","verify"]:["encrypt","decrypt"];if("string"==typeof e){if(e.length<r.minPasswordlength)throw new Error(`Password string too short (min ${r.minPasswordlength} characters required)`);let{salt:n=""}=r;if(!n){const{saltBits:e=0}=r;if(!e)throw new Error("Missing salt and saltBits options");const i=C(t,e);n=[...new Uint8Array(i)].map(t=>t.toString(16).padStart(2,"0")).join("")}const s=await(async(t,e,r,n,i,o)=>{const s=p(e),a=await t.subtle.importKey("raw",s,{name:"PBKDF2"},!1,["deriveBits"]),c={name:"PBKDF2",hash:o,salt:p(r),iterations:n};return await t.subtle.deriveBits(c,a,8*i)})(t,e,n,r.iterations,i.keyBits/8,"SHA-1"),u=await t.subtle.importKey("raw",s,a,!1,c);o.key=u,o.salt=n}else{if(e.length<i.keyBits/8)throw new Error("Key buffer (password) too small");o.key=await t.subtle.importKey("raw",e,a,!1,c),o.salt=""}return r.iv?o.iv=r.iv:"ivBits"in i&&(o.iv=C(t,i.ivBits)),o},E=(t,e,r)=>["aes-128-ctr"===t?{name:"AES-CTR",counter:e.iv,length:128}:{name:"AES-CBC",iv:e.iv},e.key,"string"==typeof r?p(r):r],b=async(t,e,r,n)=>{const i=await A(t,e,r),o=await t.subtle.decrypt(...E(r.algorithm,i,n));return s=new Uint8Array(o),(new TextDecoder).decode(s);var s},T=async(t,e,r,n)=>{const i=await A(t,e,{...r,hmac:!0}),o=p(n),s=await t.subtle.sign({name:"HMAC"},i.key,o);return{digest:w(new Uint8Array(s)),salt:i.salt}},k=t=>"string"==typeof t||t instanceof Uint8Array?{encryption:t,integrity:t}:"secret"in t?{id:t.id,encryption:t.secret,integrity:t.secret}:{id:t.id,encryption:t.encryption,integrity:t.integrity},O=async(t,e,r,n)=>{if(!r)throw new Error("Empty password");const i=m(n),o=Date.now()+(i.localtimeOffsetMsec||0),s=JSON.stringify(e),a=k(r),{id:c="",encryption:u,integrity:l}=a;if(c&&!/^\w+$/.test(c))throw new Error("Invalid password id");const{encrypted:d,key:h}=await(async(t,e,r,n)=>{const i=await A(t,e,r),o=await t.subtle.encrypt(...E(r.algorithm,i,n));return{encrypted:new Uint8Array(o),key:i}})(t,u,i.encryption,s),f=w(new Uint8Array(d)),p=w(h.iv),g=i.ttl?o+i.ttl:"",y=`${S}*${c}*${h.salt}*${p}*${f}*${g}`,v=await T(t,l,i.integrity,y);return`${y}*${v.salt}*${v.digest}`};const I=globalThis.crypto,_=I.subtle,U=()=>I.randomUUID(),x=t=>I.getRandomValues(t),R={randomUUID:U,getRandomValues:x,subtle:_};var P=Object.freeze({__proto__:null,default:R,getRandomValues:x,randomUUID:U,subtle:_});function N(t){return"string"==typeof t?{1:t}:t}var B=function(t){return async function(e,{password:r,ttl:n=1209600}){const i=N(r),o=Math.max(...Object.keys(i).map(Number)),s={id:o.toString(),secret:i[o]};return`${await O(t,e,s,{...y,ttl:1e3*n})}~2`}}(P),H=function(t){return async function(e,{password:r,ttl:n=1209600}){const i=N(r),{sealWithoutVersion:o,tokenVersion:s}=function(t){const[e,r]=t.split("~");return{sealWithoutVersion:e,tokenVersion:null==r?null:parseInt(r,10)}}(e);try{const e=await(async(t,e,r,n)=>{if(!r)throw new Error("Empty password");const i=m(n),o=Date.now()+(i.localtimeOffsetMsec||0),s=e.split("*");if(8!==s.length)throw new Error("Incorrect number of sealed components");const a=s[0];let c=s[1];const u=s[2],l=s[3],d=s[4],h=s[5],f=s[6],p=s[7],w=`${a}*${c}*${u}*${l}*${d}*${h}`;if(S!==a)throw new Error("Wrong mac prefix");if(h){if(!/^\d+$/.test(h))throw new Error("Invalid expiration");if(Number.parseInt(h,10)<=o-1e3*i.timestampSkewSec)throw new Error("Expired seal")}let y="";if(c=c||"default","string"==typeof r||r instanceof Uint8Array)y=r;else{if(!(c in r))throw new Error(`Cannot find password: ${c}`);y=r[c]}y=k(y);const v=i.integrity;if(v.salt=f,!((t,e)=>{let r=t.length===e.length?0:1;r&&(e=t);for(let n=0;n<t.length;n+=1)r|=t.charCodeAt(n)^e.charCodeAt(n);return 0===r})((await T(t,y.integrity,v,w)).digest,p))throw new Error("Bad hmac value");const C=g(d),A=i.encryption;A.salt=u,A.iv=g(l);const E=await b(t,y.encryption,A,C);return E?JSON.parse(E):null})(t,o,i,{...y,ttl:1e3*n})??{};return 2===s?e:{...e.persistent}}catch(t){if(t instanceof Error&&/^(Expired seal|Bad hmac value|Cannot find password|Incorrect number of sealed components)/.test(t.message))return{};throw t}}}(P),D=o.default.object({courseId:o.default.string(),itemId:o.default.string(),addOnToken:o.default.string(),title:o.default.string(),lessonSlug:o.default.string(),programmeSlug:o.default.string(),unitSlug:o.default.string(),maxPoints:o.default.number().optional()}),L=o.default.object({courseId:o.default.string(),postId:o.default.string(),id:o.default.string(),title:o.default.string(),teacherViewUri:o.default.object({uri:o.default.string()}),studentViewUri:o.default.object({uri:o.default.string()}),studentWorkReviewUri:o.default.object({uri:o.default.string()}).optional(),itemId:o.default.string(),maxPoints:o.default.number().optional()});o.default.string();var M=o.default.object({accessToken:o.default.string(),loginHint:o.default.string(),refreshToken:o.default.string().optional(),profilePictureUrl:o.default.string().optional(),email:o.default.string().optional()}),$=o.default.object({token:o.default.string()});o.default.tuple([D,o.default.string().min(1),o.default.string().min(1)]);var G,V=L.extend({attachmentId:o.default.string(),createdAt:o.default.string()}),j=o.default.object({loginHint:o.default.string(),refreshToken:o.default.string().optional(),profilePictureUrl:o.default.string().optional()}),F=function(){function e(t,e){this.baseUrl=t,this.oAuthClient=e,this.baseUrl=t,this.oAuthClient=e}return e.prototype.getClassroomClient=function(){return c(this,void 0,void 0,function(){var e;return u(this,function(r){switch(r.label){case 0:return[4,this.oAuthClient.getOAuth2Client()];case 1:return e=r.sent(),[2,new t.classroom_v1.Classroom({auth:e})]}})})},e.prototype.createAnnouncementAttachment=function(t){return c(this,void 0,void 0,function(){var e,r,n,i,o,s,c,l,d,h,f,p,g;return u(this,function(u){switch(u.label){case 0:return e=t.courseId,r=t.itemId,n=t.addOnToken,i=t.title,o=t.lessonSlug,s=t.programmeSlug,c=t.unitSlug,l=t.maxPoints,[4,this.getClassroomClient()];case 1:return d=u.sent(),h=l?{maxPoints:l,studentWorkReviewUri:{uri:"".concat(this.baseUrl,"/pupils/programmes/").concat(s,"/units/").concat(c,"/lessons/").concat(o)}}:{},[4,d.courses.courseWork.addOnAttachments.create({courseId:e,itemId:r,addOnToken:n,requestBody:a({title:i,teacherViewUri:{uri:"".concat(this.baseUrl,"/pupils/programmes/").concat(s,"/units/").concat(c,"/lessons/").concat(o)},studentViewUri:{uri:"".concat(this.baseUrl,"/pupils/programmes/").concat(s,"/units/").concat(c,"/lessons/").concat(o)}},h)})];case 2:return f=u.sent(),p=L.parse(f.data),g=p.maxPoints?{maxPoints:p.maxPoints,studentWorkReviewUri:p.studentWorkReviewUri}:{},[2,a({courseId:p.courseId,postId:p.postId,id:p.id,title:p.title,teacherViewUri:p.teacherViewUri,studentViewUri:p.studentViewUri,itemId:p.itemId},g)]}})})},e.prototype.submitPupilResponse=function(t){return c(this,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,this.getClassroomClient()];case 1:return[4,e.sent().courses.courseWork.addOnAttachments.studentSubmissions.patch({courseId:t.courseId,itemId:t.itemId,attachmentId:t.attachmentId,submissionId:t.submissionId,updateMask:"pointsEarned",requestBody:{pointsEarned:t.pointsEarned}})];case 2:return[2,e.sent().data]}})})},e.prototype.fetchPupilResponse=function(t){return c(this,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,this.getClassroomClient()];case 1:return[4,e.sent().courses.courseWork.addOnAttachments.studentSubmissions.get({courseId:t.courseId,itemId:t.itemId,attachmentId:t.attachmentId,submissionId:t.submissionId})];case 2:return[2,e.sent().data]}})})},e}(),W=function(){function t(t){this.encryptionSecret=t,this.ENCRYPTION_SECRET=t}return t.prototype.encryptString=function(e){var r=s.default.randomBytes(t.SALT_BYTES).toString("hex"),n=s.default.randomBytes(t.IV_LENGTH),i=s.default.scryptSync(this.ENCRYPTION_SECRET,r,t.ENCRYPTION_KEY_LENGTH),o=s.default.createCipheriv(t.ALGORITHM,i,n),a=o.update(e,"utf8","hex");return a+=o.final("hex"),"".concat(n.toString("hex"),":").concat(a,":").concat(r)},t.prototype.decryptString=function(e){var r=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}(e.split(":"),3),n=r[0],i=r[1],o=r[2];if(!n||!i||!o)throw new Error("Invalid encrypted string");var a=Buffer.from(n,"hex"),c=s.default.scryptSync(this.ENCRYPTION_SECRET,o,t.ENCRYPTION_KEY_LENGTH),u=s.default.createDecipheriv(t.ALGORITHM,c,a),l=u.update(i,"hex","utf8");return l+=u.final("utf8")},t.ALGORITHM="aes-256-cbc",t.IV_LENGTH=16,t.SALT_BYTES=16,t.ENCRYPTION_KEY_LENGTH=32,t}();!function(t){t.CONNECTED_USERS_CREDENTIALS="connectedUsersCredentials",t.CLASSROOM_ATTACHMENTS="classroomAttachments"}(G||(G={}));var z=function(){function t(t){this.firestore=t,this._firestore=t}return t.prototype.getConnectedUserCredentials=function(t){return c(this,void 0,void 0,function(){var e,r;return u(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this._firestore.collection(G.CONNECTED_USERS_CREDENTIALS).doc(t).get()];case 1:return(e=n.sent()).exists?[2,j.parse(e.data())]:[2,null];case 2:throw r=n.sent(),console.error(r),new Error("Failed to save users credentials");case 3:return[2]}})})},t.prototype.upsertConnectedUserCredentials=function(t){return c(this,void 0,void 0,function(){var e,r;return u(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e=j.parse(t),this._firestore.settings({ignoreUndefinedProperties:!0}),[4,this._firestore.collection(G.CONNECTED_USERS_CREDENTIALS).doc(e.loginHint).set(e)];case 1:return n.sent(),[3,3];case 2:throw r=n.sent(),console.error(r),new Error("Failed to upsert users credentials");case 3:return[2]}})})},t.prototype.upsertClassroomAttachment=function(t){return c(this,void 0,void 0,function(){var e,r;return u(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e=V.parse(t),this._firestore.settings({ignoreUndefinedProperties:!0}),[4,this._firestore.collection(G.CLASSROOM_ATTACHMENTS).doc(e.attachmentId).set(e)];case 1:return n.sent(),[3,3];case 2:throw r=n.sent(),console.error(r),new Error("Failed to upsert classroom attachment");case 3:return[2]}})})},t.prototype.getClassroomAttachmentById=function(t){return c(this,void 0,void 0,function(){var e,r;return u(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this._firestore.collection(G.CLASSROOM_ATTACHMENTS).doc(t).get()];case 1:return(e=n.sent()).exists?[2,V.parse(e.data())]:[2,null];case 2:throw r=n.sent(),console.error(r),new Error("Failed to get classroom attachment by ID");case 3:return[2]}})})},t}(),K=function(){function t(t,e,r,i,o){var s=this;if(this.googleClientId=t,this.googleClientSecret=e,this.callbackUrl=r,this.accessToken=i,this.refreshToken=o,!t)throw new Error("Google Client ID is missing");if(!e)throw new Error("Google Client Secret is missing");if(!r)throw new Error("Google OAuth Callback URL is missing");var a=new n.OAuth2Client({clientId:t,clientSecret:e,redirectUri:r,forceRefreshOnFailure:!1});"true"===process.env.GOOGLE_CLASSROOM_DEV_MODE&&i&&(a.refreshHandler=function(){return c(s,void 0,void 0,function(){return u(this,function(t){return[2,{access_token:i,expiry_date:(new Date).getTime()+36e5}]})})}),(i||o)&&a.setCredentials({access_token:i,refresh_token:o}),this.client=a,this.clientId=t}return t.prototype.getAuthenticateUrl=function(t,e){void 0===e&&(e=!1);try{return this.client.generateAuthUrl({access_type:"offline",include_granted_scopes:!0,scope:["https://www.googleapis.com/auth/userinfo.profile","https://www.googleapis.com/auth/userinfo.email","https://www.googleapis.com/auth/classroom.courses.readonly","https://www.googleapis.com/auth/classroom.addons.student","https://www.googleapis.com/auth/classroom.addons.teacher"],loginHint:t,subscribeToNewsletter:e})}catch(t){return console.error(t),null}},t.prototype.exchangeCodeForTokens=function(t){return c(this,void 0,void 0,function(){var e,r,n,i,o;return u(this,function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),[4,this.client.getToken(t)];case 1:return e=s.sent().tokens,[4,this.client.verifyIdToken({idToken:e.id_token,audience:this.clientId})];case 2:return r=s.sent(),n=r.getPayload(),i={accessToken:e.access_token,loginHint:null==n?void 0:n.sub,refreshToken:e.refresh_token,profilePictureUrl:null==n?void 0:n.picture,email:null==n?void 0:n.email},[2,M.parse(i)];case 3:return o=s.sent(),console.error(o),[2,null];case 4:return[2]}})})},t.prototype.refreshAccessToken=function(t){return c(this,void 0,void 0,function(){var e,r;return u(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),this.client.setCredentials({refresh_token:t}),[4,this.client.getAccessToken()];case 1:return e=n.sent(),[2,$.parse(e).token];case 2:return r=n.sent(),console.error(r),[2,null];case 3:return[2]}})})},t.prototype.isAuthenticated=function(t){return c(this,void 0,void 0,function(){var e,r;return u(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.client.getTokenInfo(t)];case 1:return e=n.sent(),e.expiry_date<Date.now()?[2,!1]:[2,!0];case 2:return r=n.sent(),console.error(r),[2,!1];case 3:return[2]}})})},t.prototype.getOAuth2Client=function(){return c(this,void 0,void 0,function(){return u(this,function(t){return[2,this.client]})})},t}(),Y=function(){function t(t,e,r,n,i,o,s){this.encryptionSecret=t,this.firestore=e,this.googleOAuthClientId=r,this.googleOAuthClientSecret=n,this.googleOAuthCallbackApiRoute=i,this.sessionSecret=o,this.baseUrl=s,this.encryptionService=new W(t),this.firestoreClient=new z(e),this._googleOAuthClientId=r,this._googleOAuthClientSecret=n,this._googleOAuthCallbackApiRoute=i,this._sessionSecret=o}return t.prototype.getOAuthClient=function(t,e){return new K(this._googleOAuthClientId,this._googleOAuthClientSecret,this._googleOAuthCallbackApiRoute,t,e)},t.prototype.getGoogleSignInUrl=function(t){return c(this,arguments,void 0,function(t,e){var r,n;return void 0===e&&(e=!1),u(this,function(i){if(r=this.getOAuthClient(),!(n=r.getAuthenticateUrl(t,e)))throw new Error("Failed to get Google Authentication URL");return[2,n]})})},t.prototype.handleGoogleSignInCallback=function(t,e){return c(this,void 0,void 0,function(){var r,n,i,o,s,a;return u(this,function(c){switch(c.label){case 0:return[4,this.getOAuthClient().exchangeCodeForTokens(t)];case 1:return r=c.sent(),n=M.parse(r),i=n.accessToken,o=n.refreshToken?this.encryptionService.encryptString(n.refreshToken):void 0,s=n.profilePictureUrl?this.encryptionService.encryptString(n.profilePictureUrl):void 0,[4,B({loginHint:n.loginHint,accessToken:i},{password:this._sessionSecret})];case 2:return a=c.sent(),[4,this.firestoreClient.upsertConnectedUserCredentials({refreshToken:o,profilePictureUrl:s,loginHint:n.loginHint})];case 3:return c.sent(),e&&n.email?[4,e(n.email)]:[3,5];case 4:c.sent(),c.label=5;case 5:return[2,{encryptedSession:a,accessToken:i,profilePictureUrl:n.profilePictureUrl}]}})})},t.prototype.decryptSession=function(t){return c(this,void 0,void 0,function(){var e;return u(this,function(r){switch(r.label){case 0:return[4,H(t,{password:this._sessionSecret})];case 1:return(null==(e=r.sent())?void 0:e.accessToken)&&(null==e?void 0:e.loginHint)?[2,e]:[2,null]}})})},t.prototype.getSessionAndUser=function(t){return c(this,void 0,void 0,function(){var e,r,n;return u(this,function(i){switch(i.label){case 0:return[4,this.decryptSession(t)];case 1:return(e=i.sent())?[4,this.firestoreClient.getConnectedUserCredentials(e.loginHint)]:[2,null];case 2:return(r=i.sent())?(n=r.refreshToken?this.encryptionService.decryptString(r.refreshToken):void 0,r.refreshToken=n,process.env.GOOGLE_CLASSROOM_DEV_REFRESH_TOKEN&&(r.refreshToken=process.env.GOOGLE_CLASSROOM_DEV_REFRESH_TOKEN),[2,{session:e,user:r}]):[2,null]}})})},t.prototype.verifyAuthSession=function(t,e){return c(this,void 0,void 0,function(){var r,n,i,o;return u(this,function(s){switch(s.label){case 0:return t&&e?[4,this.getSessionAndUser(t)]:[2,null];case 1:return(r=s.sent())&&e&&(null===(o=null==r?void 0:r.session)||void 0===o?void 0:o.accessToken)===e?[4,(n=this.getOAuthClient(e,r.user.refreshToken)).isAuthenticated(e)]:[2,null];case 2:return s.sent()?[2,{session:t,token:e}]:[4,n.refreshAccessToken(r.user.refreshToken)];case 3:return(i=s.sent())?[4,B({loginHint:r.session.loginHint,accessToken:i},{password:this._sessionSecret})]:[3,5];case 4:return[2,{session:s.sent(),token:i}];case 5:return[2,null]}})})},t.prototype.createAttachment=function(t,e,r){return c(this,void 0,void 0,function(){var n,i,o,s;return u(this,function(c){switch(c.label){case 0:return[4,this.getSessionAndUser(r)];case 1:if(!(n=c.sent())||e!==n.session.accessToken)throw new Error("Invalid Google Classroom session");return i=this.getOAuthClient(e,n.user.refreshToken),[4,new F(this.baseUrl,i).createAnnouncementAttachment(t)];case 2:return o=c.sent(),s=a(a({},o),{attachmentId:o.id,createdAt:(new Date).toISOString()}),[4,this.firestoreClient.upsertClassroomAttachment(s)];case 3:return c.sent(),[4,this.firestoreClient.getClassroomAttachmentById(o.id)];case 4:return[2,c.sent()]}})})},t}();exports.OakGoogleClassroomAddOn=Y;
|
|
7
|
+
*/function requireCookie(){if(hasRequiredCookie)return cookie;hasRequiredCookie=1,cookie.parse=function(e,r){if("string"!=typeof e)throw new TypeError("argument str must be a string");var n={},o=e.length;if(o<2)return n;var i=r&&r.decode||l,d=0,u=0,c=0;do{if(-1===(u=e.indexOf("=",d)))break;if(-1===(c=e.indexOf(";",d)))c=o;else if(u>c){d=e.lastIndexOf(";",u-1)+1;continue}var f=a(e,d,u),h=s(e,u,f),m=e.slice(f,h);if(!t.call(n,m)){var g=a(e,u+1,c),y=s(e,c,g);34===e.charCodeAt(g)&&34===e.charCodeAt(y-1)&&(g++,y--);var v=e.slice(g,y);n[m]=p(v,i)}d=c+1}while(d<o);return n},cookie.serialize=function(t,a,s){var l=s&&s.encode||encodeURIComponent;if("function"!=typeof l)throw new TypeError("option encode is invalid");if(!r.test(t))throw new TypeError("argument name is invalid");var p=l(a);if(!n.test(p))throw new TypeError("argument val is invalid");var d=t+"="+p;if(!s)return d;if(null!=s.maxAge){var u=Math.floor(s.maxAge);if(!isFinite(u))throw new TypeError("option maxAge is invalid");d+="; Max-Age="+u}if(s.domain){if(!o.test(s.domain))throw new TypeError("option domain is invalid");d+="; Domain="+s.domain}if(s.path){if(!i.test(s.path))throw new TypeError("option path is invalid");d+="; Path="+s.path}if(s.expires){var c=s.expires;if(!function(t){return"[object Date]"===e.call(t)}(c)||isNaN(c.valueOf()))throw new TypeError("option expires is invalid");d+="; Expires="+c.toUTCString()}s.httpOnly&&(d+="; HttpOnly");s.secure&&(d+="; Secure");s.partitioned&&(d+="; Partitioned");if(s.priority){switch("string"==typeof s.priority?s.priority.toLowerCase():s.priority){case"low":d+="; Priority=Low";break;case"medium":d+="; Priority=Medium";break;case"high":d+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(s.sameSite){switch("string"==typeof s.sameSite?s.sameSite.toLowerCase():s.sameSite){case!0:d+="; SameSite=Strict";break;case"lax":d+="; SameSite=Lax";break;case"strict":d+="; SameSite=Strict";break;case"none":d+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return d};var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,r=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,n=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,o=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/;function a(e,t,r){do{var n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<r);return r}function s(e,t,r){for(;t>r;){var n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return r}function l(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function p(e,t){try{return t(e)}catch(t){return e}}return cookie}requireCookie();var alphabetByEncoding={},alphabetByValue=Array.from({length:64});for(let e=0,t="A".charCodeAt(0),r="Z".charCodeAt(0);e+t<=r;e++){const r=String.fromCharCode(e+t);alphabetByEncoding[r]=e,alphabetByValue[e]=r}for(let e=0,t="a".charCodeAt(0),r="z".charCodeAt(0);e+t<=r;e++){const r=String.fromCharCode(e+t),n=e+26;alphabetByEncoding[r]=n,alphabetByValue[n]=r}for(let e=0;e<10;e++){alphabetByEncoding[e.toString(10)]=e+52;const t=e.toString(10),r=e+52;alphabetByEncoding[t]=r,alphabetByValue[r]=t}alphabetByEncoding["-"]=62,alphabetByValue[62]="-",alphabetByEncoding._=63,alphabetByValue[63]="_";var bitsPerLetter=6,bitsPerByte=8,maxLetterValue=63,stringToBuffer=e=>(new TextEncoder).encode(e),bufferToString=e=>(new TextDecoder).decode(e),base64urlDecode=e=>{const t=e+"=".repeat((4-e.length%4)%4);let r=t.length/4*3;t.endsWith("==")?r-=2:t.endsWith("=")&&r--;const n=new ArrayBuffer(r),o=new DataView(n);for(let e=0;e<t.length;e+=4){let r=0,n=0;for(let o=e,i=e+3;o<=i;o++)if("="===t[o])r>>=bitsPerLetter;else{if(!(t[o]in alphabetByEncoding))throw new TypeError(`Invalid character ${t[o]} in base64 string.`);r|=alphabetByEncoding[t[o]]<<(i-o)*bitsPerLetter,n+=bitsPerLetter}const i=e/4*3;r>>=n%bitsPerByte;const a=Math.floor(n/bitsPerByte);for(let e=0;e<a;e++){const t=(a-e-1)*bitsPerByte;o.setUint8(i+e,(r&255<<t)>>t)}}return new Uint8Array(n)},base64urlEncode=e=>{const t="string"==typeof e?stringToBuffer(e):e;let r="";for(let e=0;e<t.length;e+=3){let n=0,o=0;for(let r=e,i=Math.min(e+3,t.length);r<i;r++)n|=t[r]<<(i-r-1)*bitsPerByte,o+=bitsPerByte;const i=Math.ceil(o/bitsPerLetter);n<<=i*bitsPerLetter-o;for(let e=1;e<=i;e++){const t=(i-e)*bitsPerLetter;r+=alphabetByValue[(n&maxLetterValue<<t)>>t]}}return r},defaults={encryption:{saltBits:256,algorithm:"aes-256-cbc",iterations:1,minPasswordlength:32},integrity:{saltBits:256,algorithm:"sha256",iterations:1,minPasswordlength:32},ttl:0,timestampSkewSec:60,localtimeOffsetMsec:0},clone$1=e=>({...e,encryption:{...e.encryption},integrity:{...e.integrity}}),algorithms={"aes-128-ctr":{keyBits:128,ivBits:128,name:"AES-CTR"},"aes-256-cbc":{keyBits:256,ivBits:128,name:"AES-CBC"},sha256:{keyBits:256,name:"SHA-256"}},macPrefix="Fe26.2",randomBytes=(e,t)=>{const r=new Uint8Array(t);return e.getRandomValues(r),r},randomBits=(e,t)=>{if(t<1)throw new Error("Invalid random bits count");const r=Math.ceil(t/8);return randomBytes(e,r)},pbkdf2=async(e,t,r,n,o,i)=>{const a=stringToBuffer(t),s=await e.subtle.importKey("raw",a,{name:"PBKDF2"},!1,["deriveBits"]),l={name:"PBKDF2",hash:i,salt:stringToBuffer(r),iterations:n};return await e.subtle.deriveBits(l,s,8*o)},generateKey=async(e,t,r)=>{var n;if(!(null==t?void 0:t.length))throw new Error("Empty password");if(null==r||"object"!=typeof r)throw new Error("Bad options");if(!(r.algorithm in algorithms))throw new Error(`Unknown algorithm: ${r.algorithm}`);const o=algorithms[r.algorithm],i={},a=null!=(n=r.hmac)&&n,s=a?{name:"HMAC",hash:o.name}:{name:o.name},l=a?["sign","verify"]:["encrypt","decrypt"];if("string"==typeof t){if(t.length<r.minPasswordlength)throw new Error(`Password string too short (min ${r.minPasswordlength} characters required)`);let{salt:n=""}=r;if(!n){const{saltBits:t=0}=r;if(!t)throw new Error("Missing salt and saltBits options");const o=randomBits(e,t);n=[...new Uint8Array(o)].map(e=>e.toString(16).padStart(2,"0")).join("")}const a=await pbkdf2(e,t,n,r.iterations,o.keyBits/8,"SHA-1"),p=await e.subtle.importKey("raw",a,s,!1,l);i.key=p,i.salt=n}else{if(t.length<o.keyBits/8)throw new Error("Key buffer (password) too small");i.key=await e.subtle.importKey("raw",t,s,!1,l),i.salt=""}return r.iv?i.iv=r.iv:"ivBits"in o&&(i.iv=randomBits(e,o.ivBits)),i},getEncryptParams=(e,t,r)=>["aes-128-ctr"===e?{name:"AES-CTR",counter:t.iv,length:128}:{name:"AES-CBC",iv:t.iv},t.key,"string"==typeof r?stringToBuffer(r):r],encrypt=async(e,t,r,n)=>{const o=await generateKey(e,t,r),i=await e.subtle.encrypt(...getEncryptParams(r.algorithm,o,n));return{encrypted:new Uint8Array(i),key:o}},decrypt=async(e,t,r,n)=>{const o=await generateKey(e,t,r),i=await e.subtle.decrypt(...getEncryptParams(r.algorithm,o,n));return bufferToString(new Uint8Array(i))},hmacWithPassword=async(e,t,r,n)=>{const o=await generateKey(e,t,{...r,hmac:!0}),i=stringToBuffer(n),a=await e.subtle.sign({name:"HMAC"},o.key,i);return{digest:base64urlEncode(new Uint8Array(a)),salt:o.salt}},normalizePassword=e=>"string"==typeof e||e instanceof Uint8Array?{encryption:e,integrity:e}:"secret"in e?{id:e.id,encryption:e.secret,integrity:e.secret}:{id:e.id,encryption:e.encryption,integrity:e.integrity},seal=async(e,t,r,n)=>{if(!r)throw new Error("Empty password");const o=clone$1(n),i=Date.now()+(o.localtimeOffsetMsec||0),a=JSON.stringify(t),s=normalizePassword(r),{id:l="",encryption:p,integrity:d}=s;if(l&&!/^\w+$/.test(l))throw new Error("Invalid password id");const{encrypted:u,key:c}=await encrypt(e,p,o.encryption,a),f=base64urlEncode(new Uint8Array(u)),h=base64urlEncode(c.iv),m=o.ttl?i+o.ttl:"",g=`${macPrefix}*${l}*${c.salt}*${h}*${f}*${m}`,y=await hmacWithPassword(e,d,o.integrity,g);return`${g}*${y.salt}*${y.digest}`},fixedTimeComparison=(e,t)=>{let r=e.length===t.length?0:1;r&&(t=e);for(let n=0;n<e.length;n+=1)r|=e.charCodeAt(n)^t.charCodeAt(n);return 0===r},unseal=async(e,t,r,n)=>{if(!r)throw new Error("Empty password");const o=clone$1(n),i=Date.now()+(o.localtimeOffsetMsec||0),a=t.split("*");if(8!==a.length)throw new Error("Incorrect number of sealed components");const s=a[0];let l=a[1];const p=a[2],d=a[3],u=a[4],c=a[5],f=a[6],h=a[7],m=`${s}*${l}*${p}*${d}*${u}*${c}`;if(macPrefix!==s)throw new Error("Wrong mac prefix");if(c){if(!/^\d+$/.test(c))throw new Error("Invalid expiration");if(Number.parseInt(c,10)<=i-1e3*o.timestampSkewSec)throw new Error("Expired seal")}let g="";if(l=l||"default","string"==typeof r||r instanceof Uint8Array)g=r;else{if(!(l in r))throw new Error(`Cannot find password: ${l}`);g=r[l]}g=normalizePassword(g);const y=o.integrity;y.salt=f;const v=await hmacWithPassword(e,g.integrity,y,m);if(!fixedTimeComparison(v.digest,h))throw new Error("Bad hmac value");const b=base64urlDecode(u),O=o.encryption;O.salt=p,O.iv=base64urlDecode(d);const w=await decrypt(e,g.encryption,O,b);return w?JSON.parse(w):null};const webCrypto=globalThis.crypto,subtle=webCrypto.subtle,randomUUID$1=()=>webCrypto.randomUUID(),getRandomValues$1=e=>webCrypto.getRandomValues(e),_crypto={randomUUID:randomUUID$1,getRandomValues:getRandomValues$1,subtle:subtle};var crypto$1=Object.freeze({__proto__:null,default:_crypto,getRandomValues:getRandomValues$1,randomUUID:randomUUID$1,subtle:subtle}),fourteenDaysInSeconds=1209600,currentMajorVersion=2,versionDelimiter="~";function normalizeStringPasswordToMap(e){return"string"==typeof e?{1:e}:e}function parseSeal(e){const[t,r]=e.split(versionDelimiter);return{sealWithoutVersion:t,tokenVersion:null==r?null:parseInt(r,10)}}function createSealData(e){return async function(t,{password:r,ttl:n=fourteenDaysInSeconds}){const o=normalizeStringPasswordToMap(r),i=Math.max(...Object.keys(o).map(Number)),a={id:i.toString(),secret:o[i]};return`${await seal(e,t,a,{...defaults,ttl:1e3*n})}${versionDelimiter}${currentMajorVersion}`}}function createUnsealData(e){return async function(t,{password:r,ttl:n=fourteenDaysInSeconds}){const o=normalizeStringPasswordToMap(r),{sealWithoutVersion:i,tokenVersion:a}=parseSeal(t);try{const t=await unseal(e,i,o,{...defaults,ttl:1e3*n})??{};return 2===a?t:{...t.persistent}}catch(e){if(e instanceof Error&&/^(Expired seal|Bad hmac value|Cannot find password|Incorrect number of sealed components)/.test(e.message))return{};throw e}}}var sealData=createSealData(crypto$1),unsealData=createUnsealData(crypto$1),createAnnouncementAttachmentArgsSchema=z__default.default.object({courseId:z__default.default.string(),itemId:z__default.default.string(),addOnToken:z__default.default.string(),title:z__default.default.string(),lessonSlug:z__default.default.string(),programmeSlug:z__default.default.string(),unitSlug:z__default.default.string(),maxPoints:z__default.default.number().optional()}),classroomAttachmentSchema=z__default.default.object({courseId:z__default.default.string(),postId:z__default.default.string(),id:z__default.default.string(),title:z__default.default.string(),teacherViewUri:z__default.default.object({uri:z__default.default.string()}),studentViewUri:z__default.default.object({uri:z__default.default.string()}),studentWorkReviewUri:z__default.default.object({uri:z__default.default.string()}).optional(),itemId:z__default.default.string(),maxPoints:z__default.default.number().optional()});z__default.default.string();var googleOAuthUserSchema=z__default.default.object({accessToken:z__default.default.string(),loginHint:z__default.default.string(),refreshToken:z__default.default.string().optional(),profilePictureUrl:z__default.default.string().optional(),email:z__default.default.string().optional()}),tokenPayloadSchema=z__default.default.object({token:z__default.default.string()});z__default.default.tuple([createAnnouncementAttachmentArgsSchema,z__default.default.string().min(1),z__default.default.string().min(1)]);var classroomAttachmentEntitySchema=classroomAttachmentSchema.extend({attachmentId:z__default.default.string(),createdAt:z__default.default.string()}),userCredentialsEntitySchema=z__default.default.object({loginHint:z__default.default.string(),refreshToken:z__default.default.string().optional(),profilePictureUrl:z__default.default.string().optional()}),GoogleClassroomClient=function(){function e(e,t){this.baseUrl=e,this.oAuthClient=t,this.baseUrl=e,this.oAuthClient=t}return e.prototype.getClassroomClient=function(){return __awaiter(this,void 0,void 0,function(){var e;return __generator$1(this,function(t){switch(t.label){case 0:return[4,this.oAuthClient.getOAuth2Client()];case 1:return e=t.sent(),[2,new classroom.classroom_v1.Classroom({auth:e})]}})})},e.prototype.createAnnouncementAttachment=function(e){return __awaiter(this,void 0,void 0,function(){var t,r,n,o,i,a,s,l,p,d,u,c,f;return __generator$1(this,function(h){switch(h.label){case 0:return t=e.courseId,r=e.itemId,n=e.addOnToken,o=e.title,i=e.lessonSlug,a=e.programmeSlug,s=e.unitSlug,l=e.maxPoints,[4,this.getClassroomClient()];case 1:return p=h.sent(),d=l?{maxPoints:l,studentWorkReviewUri:{uri:"".concat(this.baseUrl,"/pupils/programmes/").concat(a,"/units/").concat(s,"/lessons/").concat(i)}}:{},[4,p.courses.courseWork.addOnAttachments.create({courseId:t,itemId:r,addOnToken:n,requestBody:__assign({title:o,teacherViewUri:{uri:"".concat(this.baseUrl,"/pupils/programmes/").concat(a,"/units/").concat(s,"/lessons/").concat(i)},studentViewUri:{uri:"".concat(this.baseUrl,"/pupils/programmes/").concat(a,"/units/").concat(s,"/lessons/").concat(i)}},d)})];case 2:return u=h.sent(),c=classroomAttachmentSchema.parse(u.data),f=c.maxPoints?{maxPoints:c.maxPoints,studentWorkReviewUri:c.studentWorkReviewUri}:{},[2,__assign({courseId:c.courseId,postId:c.postId,id:c.id,title:c.title,teacherViewUri:c.teacherViewUri,studentViewUri:c.studentViewUri,itemId:c.itemId},f)]}})})},e.prototype.submitPupilResponse=function(e){return __awaiter(this,void 0,void 0,function(){return __generator$1(this,function(t){switch(t.label){case 0:return[4,this.getClassroomClient()];case 1:return[4,t.sent().courses.courseWork.addOnAttachments.studentSubmissions.patch({courseId:e.courseId,itemId:e.itemId,attachmentId:e.attachmentId,submissionId:e.submissionId,updateMask:"pointsEarned",requestBody:{pointsEarned:e.pointsEarned}})];case 2:return[2,t.sent().data]}})})},e.prototype.fetchPupilResponse=function(e){return __awaiter(this,void 0,void 0,function(){return __generator$1(this,function(t){switch(t.label){case 0:return[4,this.getClassroomClient()];case 1:return[4,t.sent().courses.courseWork.addOnAttachments.studentSubmissions.get({courseId:e.courseId,itemId:e.itemId,attachmentId:e.attachmentId,submissionId:e.submissionId})];case 2:return[2,t.sent().data]}})})},e}(),ExceptionType,ErrorSeverity;!function(e){e.GoogleOAuth="google-oauth",e.Firestore="firestore",e.Encryption="encryption"}(ExceptionType||(ExceptionType={})),function(e){e.Error="error",e.Warning="warning",e.Info="info"}(ErrorSeverity||(ErrorSeverity={}));var OakGoogleClassroomException=function(e){function t(t,r,n){var o,i,a,s=e.call(this,t)||this;return s.name="OakGoogleClassroomException",s.type=r,s.code=null==n?void 0:n.code,s.shouldRetry=null!==(o=null==n?void 0:n.shouldRetry)&&void 0!==o&&o,s.severity=null!==(i=null==n?void 0:n.severity)&&void 0!==i?i:ErrorSeverity.Error,s.context=null==n?void 0:n.context,s.originalError=null==n?void 0:n.originalError,(null===(a=null==n?void 0:n.originalError)||void 0===a?void 0:a.stack)&&(s.stack=n.originalError.stack),s}return __extends$1(t,e),t}(Error),src$7={},src$6={},callCredentials={},metadata={},logging={},constants={},hasRequiredConstants;function requireConstants(){return hasRequiredConstants||(hasRequiredConstants=1,Object.defineProperty(constants,"__esModule",{value:!0}),constants.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH=constants.DEFAULT_MAX_SEND_MESSAGE_LENGTH=constants.Propagate=constants.LogVerbosity=constants.Status=void 0,function(e){e[e.OK=0]="OK",e[e.CANCELLED=1]="CANCELLED",e[e.UNKNOWN=2]="UNKNOWN",e[e.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",e[e.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",e[e.NOT_FOUND=5]="NOT_FOUND",e[e.ALREADY_EXISTS=6]="ALREADY_EXISTS",e[e.PERMISSION_DENIED=7]="PERMISSION_DENIED",e[e.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",e[e.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",e[e.ABORTED=10]="ABORTED",e[e.OUT_OF_RANGE=11]="OUT_OF_RANGE",e[e.UNIMPLEMENTED=12]="UNIMPLEMENTED",e[e.INTERNAL=13]="INTERNAL",e[e.UNAVAILABLE=14]="UNAVAILABLE",e[e.DATA_LOSS=15]="DATA_LOSS",e[e.UNAUTHENTICATED=16]="UNAUTHENTICATED"}(e||(constants.Status=e={})),function(e){e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.ERROR=2]="ERROR",e[e.NONE=3]="NONE"}(t||(constants.LogVerbosity=t={})),function(e){e[e.DEADLINE=1]="DEADLINE",e[e.CENSUS_STATS_CONTEXT=2]="CENSUS_STATS_CONTEXT",e[e.CENSUS_TRACING_CONTEXT=4]="CENSUS_TRACING_CONTEXT",e[e.CANCELLATION=8]="CANCELLATION",e[e.DEFAULTS=65535]="DEFAULTS"}(r||(constants.Propagate=r={})),constants.DEFAULT_MAX_SEND_MESSAGE_LENGTH=-1,constants.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH=4194304),constants;var e,t,r}var version$3="1.14.0",require$$11={version:version$3},hasRequiredLogging;function requireLogging(){return hasRequiredLogging||(hasRequiredLogging=1,function(e){var t,r,n,o;Object.defineProperty(e,"__esModule",{value:!0}),e.log=e.setLoggerVerbosity=e.setLogger=e.getLogger=void 0,e.trace=function(t,r,n){m(r)&&(0,e.log)(t,(new Date).toISOString()+" | v"+s+" "+a.pid+" | "+r+" | "+n)},e.isTracerEnabled=m;const i=requireConstants(),a=require$$1__default.default,s=require$$11.version,l={error:(e,...t)=>{console.error("E "+e,...t)},info:(e,...t)=>{console.error("I "+e,...t)},debug:(e,...t)=>{console.error("D "+e,...t)}};let p=l,d=i.LogVerbosity.ERROR;switch((null!==(r=null!==(t=process.env.GRPC_NODE_VERBOSITY)&&void 0!==t?t:process.env.GRPC_VERBOSITY)&&void 0!==r?r:"").toUpperCase()){case"DEBUG":d=i.LogVerbosity.DEBUG;break;case"INFO":d=i.LogVerbosity.INFO;break;case"ERROR":d=i.LogVerbosity.ERROR;break;case"NONE":d=i.LogVerbosity.NONE}e.getLogger=()=>p;e.setLogger=e=>{p=e};e.setLoggerVerbosity=e=>{d=e};e.log=(e,...t)=>{let r;if(e>=d){switch(e){case i.LogVerbosity.DEBUG:r=p.debug;break;case i.LogVerbosity.INFO:r=p.info;break;case i.LogVerbosity.ERROR:r=p.error}r||(r=p.error),r&&r.bind(p)(...t)}};const u=null!==(o=null!==(n=process.env.GRPC_NODE_TRACE)&&void 0!==n?n:process.env.GRPC_TRACE)&&void 0!==o?o:"",c=new Set,f=new Set;for(const e of u.split(","))e.startsWith("-")?f.add(e.substring(1)):c.add(e);const h=c.has("all");function m(e){return!f.has(e)&&(h||c.has(e))}}(logging)),logging}var error={},hasRequiredError,hasRequiredMetadata,hasRequiredCallCredentials;function requireError(){if(hasRequiredError)return error;return hasRequiredError=1,Object.defineProperty(error,"__esModule",{value:!0}),error.getErrorMessage=function(e){return e instanceof Error?e.message:String(e)},error.getErrorCode=function(e){return"object"==typeof e&&null!==e&&"code"in e&&"number"==typeof e.code?e.code:null},error}function requireMetadata(){if(hasRequiredMetadata)return metadata;hasRequiredMetadata=1,Object.defineProperty(metadata,"__esModule",{value:!0}),metadata.Metadata=void 0;const e=requireLogging(),t=requireConstants(),r=requireError(),n=/^[:0-9a-z_.-]+$/,o=/^[ -~]*$/;function i(e){return e.endsWith("-bin")}function a(e){return!e.startsWith("grpc-")}function s(e){return e.toLowerCase()}function l(e,t){if(!function(e){return n.test(e)}(e))throw new Error('Metadata key "'+e+'" contains illegal characters');if(null!=t)if(i(e)){if(!Buffer.isBuffer(t))throw new Error("keys that end with '-bin' must have Buffer values")}else{if(Buffer.isBuffer(t))throw new Error("keys that don't end with '-bin' must have String values");if(!function(e){return o.test(e)}(t))throw new Error('Metadata string value "'+t+'" contains illegal characters')}}class p{constructor(e={}){this.internalRepr=new Map,this.opaqueData=new Map,this.options=e}set(e,t){l(e=s(e),t),this.internalRepr.set(e,[t])}add(e,t){l(e=s(e),t);const r=this.internalRepr.get(e);void 0===r?this.internalRepr.set(e,[t]):r.push(t)}remove(e){e=s(e),this.internalRepr.delete(e)}get(e){return e=s(e),this.internalRepr.get(e)||[]}getMap(){const e={};for(const[t,r]of this.internalRepr)if(r.length>0){const n=r[0];e[t]=Buffer.isBuffer(n)?Buffer.from(n):n}return e}clone(){const e=new p(this.options),t=e.internalRepr;for(const[e,r]of this.internalRepr){const n=r.map(e=>Buffer.isBuffer(e)?Buffer.from(e):e);t.set(e,n)}return e}merge(e){for(const[t,r]of e.internalRepr){const e=(this.internalRepr.get(t)||[]).concat(r);this.internalRepr.set(t,e)}}setOptions(e){this.options=e}getOptions(){return this.options}toHttp2Headers(){const e={};for(const[t,r]of this.internalRepr)t.startsWith(":")||(e[t]=r.map(d));return e}toJSON(){const e={};for(const[t,r]of this.internalRepr)e[t]=r;return e}setOpaque(e,t){this.opaqueData.set(e,t)}getOpaque(e){return this.opaqueData.get(e)}static fromHttp2Headers(n){const o=new p;for(const s of Object.keys(n)){if(":"===s.charAt(0))continue;const l=n[s];try{i(s)?Array.isArray(l)?l.forEach(e=>{o.add(s,Buffer.from(e,"base64"))}):void 0!==l&&(a(s)?l.split(",").forEach(e=>{o.add(s,Buffer.from(e.trim(),"base64"))}):o.add(s,Buffer.from(l,"base64"))):Array.isArray(l)?l.forEach(e=>{o.add(s,e)}):void 0!==l&&o.add(s,l)}catch(n){const o=`Failed to add metadata entry ${s}: ${l}. ${(0,r.getErrorMessage)(n)}. For more information see https://github.com/grpc/grpc-node/issues/1173`;(0,e.log)(t.LogVerbosity.ERROR,o)}}return o}}metadata.Metadata=p;const d=e=>Buffer.isBuffer(e)?e.toString("base64"):e;return metadata}function requireCallCredentials(){if(hasRequiredCallCredentials)return callCredentials;hasRequiredCallCredentials=1,Object.defineProperty(callCredentials,"__esModule",{value:!0}),callCredentials.CallCredentials=void 0;const e=requireMetadata();class t{static createFromMetadataGenerator(e){return new n(e)}static createFromGoogleCredential(r){return t.createFromMetadataGenerator((t,n)=>{let o;o=function(e){return"getRequestHeaders"in e&&"function"==typeof e.getRequestHeaders}(r)?r.getRequestHeaders(t.service_url):new Promise((e,n)=>{r.getRequestMetadata(t.service_url,(t,r)=>{t?n(t):r?e(r):n(new Error("Headers not set by metadata plugin"))})}),o.then(t=>{const r=new e.Metadata;for(const e of Object.keys(t))r.add(e,t[e]);n(null,r)},e=>{n(e)})})}static createEmpty(){return new o}}callCredentials.CallCredentials=t;class r extends t{constructor(e){super(),this.creds=e}async generateMetadata(t){const r=new e.Metadata,n=await Promise.all(this.creds.map(e=>e.generateMetadata(t)));for(const e of n)r.merge(e);return r}compose(e){return new r(this.creds.concat([e]))}_equals(e){return this===e||e instanceof r&&this.creds.every((t,r)=>t._equals(e.creds[r]))}}class n extends t{constructor(e){super(),this.metadataGenerator=e}generateMetadata(e){return new Promise((t,r)=>{this.metadataGenerator(e,(e,n)=>{void 0!==n?t(n):r(e)})})}compose(e){return new r([this,e])}_equals(e){return this===e||e instanceof n&&this.metadataGenerator===e.metadataGenerator}}class o extends t{generateMetadata(t){return Promise.resolve(new e.Metadata)}compose(e){return e}_equals(e){return e instanceof o}}return callCredentials}var channel={},channelCredentials={},tlsHelpers={},hasRequiredTlsHelpers;function requireTlsHelpers(){if(hasRequiredTlsHelpers)return tlsHelpers;hasRequiredTlsHelpers=1,Object.defineProperty(tlsHelpers,"__esModule",{value:!0}),tlsHelpers.CIPHER_SUITES=void 0,tlsHelpers.getDefaultRootsData=function(){if(t)return null===r&&(r=e.readFileSync(t)),r;return null};const e=require$$0__default.default;tlsHelpers.CIPHER_SUITES=process.env.GRPC_SSL_CIPHER_SUITES;const t=process.env.GRPC_DEFAULT_SSL_ROOTS_FILE_PATH;let r=null;return tlsHelpers}var uriParser={},hasRequiredUriParser;function requireUriParser(){if(hasRequiredUriParser)return uriParser;hasRequiredUriParser=1,Object.defineProperty(uriParser,"__esModule",{value:!0}),uriParser.parseUri=function(t){const r=e.exec(t);if(null===r)return null;return{scheme:r[1],authority:r[2],path:r[3]}},uriParser.splitHostPort=function(e){if(e.startsWith("[")){const r=e.indexOf("]");if(-1===r)return null;const n=e.substring(1,r);if(-1===n.indexOf(":"))return null;if(e.length>r+1){if(":"===e[r+1]){const o=e.substring(r+2);return t.test(o)?{host:n,port:+o}:null}return null}return{host:n}}{const r=e.split(":");return 2===r.length?t.test(r[1])?{host:r[0],port:+r[1]}:null:{host:e}}},uriParser.combineHostPort=function(e){return void 0===e.port?e.host:e.host.includes(":")?`[${e.host}]:${e.port}`:`${e.host}:${e.port}`},uriParser.uriToString=function(e){let t="";void 0!==e.scheme&&(t+=e.scheme+":");void 0!==e.authority&&(t+="//"+e.authority+"/");return t+=e.path,t};const e=/^(?:([A-Za-z0-9+.-]+):)?(?:\/\/([^/]*)\/)?(.+)$/;const t=/^\d+$/;return uriParser}var resolver={},hasRequiredResolver,hasRequiredChannelCredentials;function requireResolver(){if(hasRequiredResolver)return resolver;hasRequiredResolver=1,Object.defineProperty(resolver,"__esModule",{value:!0}),resolver.CHANNEL_ARGS_CONFIG_SELECTOR_KEY=void 0,resolver.registerResolver=function(e,r){t[e]=r},resolver.registerDefaultScheme=function(e){r=e},resolver.createResolver=function(r,n,o){if(void 0!==r.scheme&&r.scheme in t)return new t[r.scheme](r,n,o);throw new Error(`No resolver could be created for target ${(0,e.uriToString)(r)}`)},resolver.getDefaultAuthority=function(r){if(void 0!==r.scheme&&r.scheme in t)return t[r.scheme].getDefaultAuthority(r);throw new Error(`Invalid target ${(0,e.uriToString)(r)}`)},resolver.mapUriDefaultScheme=function(n){if(void 0===n.scheme||!(n.scheme in t))return null!==r?{scheme:r,authority:void 0,path:(0,e.uriToString)(n)}:null;return n};const e=requireUriParser();resolver.CHANNEL_ARGS_CONFIG_SELECTOR_KEY="grpc.internal.config_selector";const t={};let r=null;return resolver}function requireChannelCredentials(){if(hasRequiredChannelCredentials)return channelCredentials;hasRequiredChannelCredentials=1,Object.defineProperty(channelCredentials,"__esModule",{value:!0}),channelCredentials.ChannelCredentials=void 0,channelCredentials.createCertificateProviderChannelCredentials=function(e,t,r){return new f(e,t,null!=r?r:{})};const e=require$$1__default$1.default,t=requireCallCredentials(),r=requireTlsHelpers(),n=requireUriParser(),o=requireResolver(),i=requireLogging(),a=requireConstants();function s(e,t){if(e&&!(e instanceof Buffer))throw new TypeError(`${t}, if provided, must be a Buffer.`)}class l{compose(e){return new h(this,e)}static createSsl(t,n,o,i){var a;if(s(t,"Root certificate"),s(n,"Private key"),s(o,"Certificate chain"),n&&!o)throw new Error("Private key must be given with accompanying certificate chain");if(!n&&o)throw new Error("Certificate chain must be given with accompanying private key");const l=(0,e.createSecureContext)({ca:null!==(a=null!=t?t:(0,r.getDefaultRootsData)())&&void 0!==a?a:void 0,key:null!=n?n:void 0,cert:null!=o?o:void 0,ciphers:r.CIPHER_SUITES});return new c(l,null!=i?i:{})}static createFromSecureContext(e,t){return new c(e,null!=t?t:{})}static createInsecure(){return new p}}channelCredentials.ChannelCredentials=l;class p extends l{constructor(){super()}compose(e){throw new Error("Cannot compose insecure credentials")}_isSecure(){return!1}_equals(e){return e instanceof p}_createSecureConnector(e,r,n){return{connect:e=>Promise.resolve({socket:e,secure:!1}),waitForReady:()=>Promise.resolve(),getCallCredentials:()=>null!=n?n:t.CallCredentials.createEmpty(),destroy(){}}}}function d(t,r,i,a){var s,l;const p={secureContext:t};let d=i;if("grpc.http_connect_target"in a){const e=(0,n.parseUri)(a["grpc.http_connect_target"]);e&&(d=e)}const u=(0,o.getDefaultAuthority)(d),c=(0,n.splitHostPort)(u),f=null!==(s=null==c?void 0:c.host)&&void 0!==s?s:u;if(p.host=f,r.checkServerIdentity&&(p.checkServerIdentity=r.checkServerIdentity),void 0!==r.rejectUnauthorized&&(p.rejectUnauthorized=r.rejectUnauthorized),p.ALPNProtocols=["h2"],a["grpc.ssl_target_name_override"]){const t=a["grpc.ssl_target_name_override"],r=null!==(l=p.checkServerIdentity)&&void 0!==l?l:e.checkServerIdentity;p.checkServerIdentity=(e,n)=>r(t,n),p.servername=t}else p.servername=f;return a["grpc-node.tls_enable_trace"]&&(p.enableTrace=!0),p}class u{constructor(e,t){this.connectionOptions=e,this.callCredentials=t}connect(t){const r=Object.assign({socket:t},this.connectionOptions);return new Promise((t,n)=>{const o=(0,e.connect)(r,()=>{var e;null!==(e=this.connectionOptions.rejectUnauthorized)&&void 0!==e&&!e||o.authorized?t({socket:o,secure:!0}):n(o.authorizationError)});o.on("error",e=>{n(e)})})}waitForReady(){return Promise.resolve()}getCallCredentials(){return this.callCredentials}destroy(){}}class c extends l{constructor(e,t){super(),this.secureContext=e,this.verifyOptions=t}_isSecure(){return!0}_equals(e){return this===e||e instanceof c&&(this.secureContext===e.secureContext&&this.verifyOptions.checkServerIdentity===e.verifyOptions.checkServerIdentity)}_createSecureConnector(e,r,n){const o=d(this.secureContext,this.verifyOptions,e,r);return new u(o,null!=n?n:t.CallCredentials.createEmpty())}}class f extends l{constructor(e,t,r){super(),this.caCertificateProvider=e,this.identityCertificateProvider=t,this.verifyOptions=r,this.refcount=0,this.latestCaUpdate=void 0,this.latestIdentityUpdate=void 0,this.caCertificateUpdateListener=this.handleCaCertificateUpdate.bind(this),this.identityCertificateUpdateListener=this.handleIdentityCertitificateUpdate.bind(this),this.secureContextWatchers=[]}_isSecure(){return!0}_equals(e){var t,r;return this===e||e instanceof f&&(this.caCertificateProvider===e.caCertificateProvider&&this.identityCertificateProvider===e.identityCertificateProvider&&(null===(t=this.verifyOptions)||void 0===t?void 0:t.checkServerIdentity)===(null===(r=e.verifyOptions)||void 0===r?void 0:r.checkServerIdentity))}ref(){var e;0===this.refcount&&(this.caCertificateProvider.addCaCertificateListener(this.caCertificateUpdateListener),null===(e=this.identityCertificateProvider)||void 0===e||e.addIdentityCertificateListener(this.identityCertificateUpdateListener)),this.refcount+=1}unref(){var e;this.refcount-=1,0===this.refcount&&(this.caCertificateProvider.removeCaCertificateListener(this.caCertificateUpdateListener),null===(e=this.identityCertificateProvider)||void 0===e||e.removeIdentityCertificateListener(this.identityCertificateUpdateListener))}_createSecureConnector(e,r,n){return this.ref(),new f.SecureConnectorImpl(this,e,r,null!=n?n:t.CallCredentials.createEmpty())}maybeUpdateWatchers(){if(this.hasReceivedUpdates()){for(const e of this.secureContextWatchers)e(this.getLatestSecureContext());this.secureContextWatchers=[]}}handleCaCertificateUpdate(e){this.latestCaUpdate=e,this.maybeUpdateWatchers()}handleIdentityCertitificateUpdate(e){this.latestIdentityUpdate=e,this.maybeUpdateWatchers()}hasReceivedUpdates(){return void 0!==this.latestCaUpdate&&(!this.identityCertificateProvider||void 0!==this.latestIdentityUpdate)}getSecureContext(){return this.hasReceivedUpdates()?Promise.resolve(this.getLatestSecureContext()):new Promise(e=>{this.secureContextWatchers.push(e)})}getLatestSecureContext(){var t,n;if(!this.latestCaUpdate)return null;if(null!==this.identityCertificateProvider&&!this.latestIdentityUpdate)return null;try{return(0,e.createSecureContext)({ca:this.latestCaUpdate.caCertificate,key:null===(t=this.latestIdentityUpdate)||void 0===t?void 0:t.privateKey,cert:null===(n=this.latestIdentityUpdate)||void 0===n?void 0:n.certificate,ciphers:r.CIPHER_SUITES})}catch(e){return(0,i.log)(a.LogVerbosity.ERROR,"Failed to createSecureContext with error "+e.message),null}}}f.SecureConnectorImpl=class{constructor(e,t,r,n){this.parent=e,this.channelTarget=t,this.options=r,this.callCredentials=n}connect(t){return new Promise((r,n)=>{const o=this.parent.getLatestSecureContext();if(!o)return void n(new Error("Failed to load credentials"));t.closed&&n(new Error("Socket closed while loading credentials"));const i=d(o,this.parent.verifyOptions,this.channelTarget,this.options),a=Object.assign({socket:t},i),s=()=>{n(new Error("Socket closed"))},l=e=>{n(e)},p=(0,e.connect)(a,()=>{var e;p.removeListener("close",s),p.removeListener("error",l),null!==(e=this.parent.verifyOptions.rejectUnauthorized)&&void 0!==e&&!e||p.authorized?r({socket:p,secure:!0}):n(p.authorizationError)});p.once("close",s),p.once("error",l)})}async waitForReady(){await this.parent.getSecureContext()}getCallCredentials(){return this.callCredentials}destroy(){this.parent.unref()}};class h extends l{constructor(e,t){if(super(),this.channelCredentials=e,this.callCredentials=t,!e._isSecure())throw new Error("Cannot compose insecure credentials")}compose(e){const t=this.callCredentials.compose(e);return new h(this.channelCredentials,t)}_isSecure(){return!0}_equals(e){return this===e||e instanceof h&&(this.channelCredentials._equals(e.channelCredentials)&&this.callCredentials._equals(e.callCredentials))}_createSecureConnector(e,r,n){const o=this.callCredentials.compose(null!=n?n:t.CallCredentials.createEmpty());return this.channelCredentials._createSecureConnector(e,r,o)}}return channelCredentials}var internalChannel={},resolvingLoadBalancer={},loadBalancer={},hasRequiredLoadBalancer;function requireLoadBalancer(){if(hasRequiredLoadBalancer)return loadBalancer;hasRequiredLoadBalancer=1,Object.defineProperty(loadBalancer,"__esModule",{value:!0}),loadBalancer.createChildChannelControlHelper=function(e,t){var r,n,o,i,a,s,l,p,d,u;return{createSubchannel:null!==(n=null===(r=t.createSubchannel)||void 0===r?void 0:r.bind(t))&&void 0!==n?n:e.createSubchannel.bind(e),updateState:null!==(i=null===(o=t.updateState)||void 0===o?void 0:o.bind(t))&&void 0!==i?i:e.updateState.bind(e),requestReresolution:null!==(s=null===(a=t.requestReresolution)||void 0===a?void 0:a.bind(t))&&void 0!==s?s:e.requestReresolution.bind(e),addChannelzChild:null!==(p=null===(l=t.addChannelzChild)||void 0===l?void 0:l.bind(t))&&void 0!==p?p:e.addChannelzChild.bind(e),removeChannelzChild:null!==(u=null===(d=t.removeChannelzChild)||void 0===d?void 0:d.bind(t))&&void 0!==u?u:e.removeChannelzChild.bind(e)}},loadBalancer.registerLoadBalancerType=function(e,t,n){r[e]={LoadBalancer:t,LoadBalancingConfig:n}},loadBalancer.registerDefaultLoadBalancerType=function(e){n=e},loadBalancer.createLoadBalancer=function(e,t){const n=e.getLoadBalancerName();return n in r?new r[n].LoadBalancer(t):null},loadBalancer.isLoadBalancerNameRegistered=function(e){return e in r},loadBalancer.parseLoadBalancingConfig=o,loadBalancer.getDefaultConfig=function(){if(!n)throw new Error("No default load balancer type registered");return new r[n].LoadBalancingConfig},loadBalancer.selectLbConfigFromList=function(i,a=!1){for(const r of i)try{return o(r)}catch(r){(0,e.log)(t.LogVerbosity.DEBUG,"Config parsing failed with error",r.message);continue}return a&&n?new r[n].LoadBalancingConfig:null};const e=requireLogging(),t=requireConstants();const r={};let n=null;function o(e){const t=Object.keys(e);if(1!==t.length)throw new Error("Provided load balancing config has multiple conflicting entries");const n=t[0];if(!(n in r))throw new Error(`Unrecognized load balancing config name ${n}`);try{return r[n].LoadBalancingConfig.createFromJson(e[n])}catch(e){throw new Error(`${n}: ${e.message}`)}}return loadBalancer}var serviceConfig={},hasRequiredServiceConfig;function requireServiceConfig(){if(hasRequiredServiceConfig)return serviceConfig;hasRequiredServiceConfig=1,Object.defineProperty(serviceConfig,"__esModule",{value:!0}),serviceConfig.validateRetryThrottling=a,serviceConfig.validateServiceConfig=l,serviceConfig.extractAndSelectServiceConfig=function(e,t){for(const r of e)if(r.length>0&&r[0].startsWith("grpc_config=")){const e=r.join("").substring(12);return d(JSON.parse(e),t)}return null};const e=require$$0__default$1.default,t=requireConstants(),r=/^\d+(\.\d{1,9})?s$/,n="node";function o(e){if("service"in e&&""!==e.service){if("string"!=typeof e.service)throw new Error("Invalid method config name: invalid service: expected type string, got "+typeof e.service);if("method"in e&&""!==e.method){if("string"!=typeof e.method)throw new Error("Invalid method config name: invalid method: expected type string, got "+typeof e.service);return{service:e.service,method:e.method}}return{service:e.service}}if("method"in e&&void 0!==e.method)throw new Error("Invalid method config name: method set with empty or unset service");return{}}function i(e){var n;const i={name:[]};if(!("name"in e)||!Array.isArray(e.name))throw new Error("Invalid method config: invalid name array");for(const t of e.name)i.name.push(o(t));if("waitForReady"in e){if("boolean"!=typeof e.waitForReady)throw new Error("Invalid method config: invalid waitForReady");i.waitForReady=e.waitForReady}if("timeout"in e)if("object"==typeof e.timeout){if(!("seconds"in e.timeout)||"number"!=typeof e.timeout.seconds)throw new Error("Invalid method config: invalid timeout.seconds");if(!("nanos"in e.timeout)||"number"!=typeof e.timeout.nanos)throw new Error("Invalid method config: invalid timeout.nanos");i.timeout=e.timeout}else{if("string"!=typeof e.timeout||!r.test(e.timeout))throw new Error("Invalid method config: invalid timeout");{const t=e.timeout.substring(0,e.timeout.length-1).split(".");i.timeout={seconds:0|t[0],nanos:0|(null!==(n=t[1])&&void 0!==n?n:0)}}}if("maxRequestBytes"in e){if("number"!=typeof e.maxRequestBytes)throw new Error("Invalid method config: invalid maxRequestBytes");i.maxRequestBytes=e.maxRequestBytes}if("maxResponseBytes"in e){if("number"!=typeof e.maxResponseBytes)throw new Error("Invalid method config: invalid maxRequestBytes");i.maxResponseBytes=e.maxResponseBytes}if("retryPolicy"in e){if("hedgingPolicy"in e)throw new Error("Invalid method config: retryPolicy and hedgingPolicy cannot both be specified");i.retryPolicy=function(e){if(!("maxAttempts"in e)||!Number.isInteger(e.maxAttempts)||e.maxAttempts<2)throw new Error("Invalid method config retry policy: maxAttempts must be an integer at least 2");if(!("initialBackoff"in e)||"string"!=typeof e.initialBackoff||!r.test(e.initialBackoff))throw new Error("Invalid method config retry policy: initialBackoff must be a string consisting of a positive integer or decimal followed by s");if(!("maxBackoff"in e)||"string"!=typeof e.maxBackoff||!r.test(e.maxBackoff))throw new Error("Invalid method config retry policy: maxBackoff must be a string consisting of a positive integer or decimal followed by s");if(!("backoffMultiplier"in e)||"number"!=typeof e.backoffMultiplier||e.backoffMultiplier<=0)throw new Error("Invalid method config retry policy: backoffMultiplier must be a number greater than 0");if(!("retryableStatusCodes"in e)||!Array.isArray(e.retryableStatusCodes))throw new Error("Invalid method config retry policy: retryableStatusCodes is required");if(0===e.retryableStatusCodes.length)throw new Error("Invalid method config retry policy: retryableStatusCodes must be non-empty");for(const r of e.retryableStatusCodes)if("number"==typeof r){if(!Object.values(t.Status).includes(r))throw new Error("Invalid method config retry policy: retryableStatusCodes value not in status code range")}else{if("string"!=typeof r)throw new Error("Invalid method config retry policy: retryableStatusCodes value must be a string or number");if(!Object.values(t.Status).includes(r.toUpperCase()))throw new Error("Invalid method config retry policy: retryableStatusCodes value not a status code name")}return{maxAttempts:e.maxAttempts,initialBackoff:e.initialBackoff,maxBackoff:e.maxBackoff,backoffMultiplier:e.backoffMultiplier,retryableStatusCodes:e.retryableStatusCodes}}(e.retryPolicy)}else"hedgingPolicy"in e&&(i.hedgingPolicy=function(e){if(!("maxAttempts"in e)||!Number.isInteger(e.maxAttempts)||e.maxAttempts<2)throw new Error("Invalid method config hedging policy: maxAttempts must be an integer at least 2");if("hedgingDelay"in e&&("string"!=typeof e.hedgingDelay||!r.test(e.hedgingDelay)))throw new Error("Invalid method config hedging policy: hedgingDelay must be a string consisting of a positive integer followed by s");if("nonFatalStatusCodes"in e&&Array.isArray(e.nonFatalStatusCodes))for(const r of e.nonFatalStatusCodes)if("number"==typeof r){if(!Object.values(t.Status).includes(r))throw new Error("Invalid method config hedging policy: nonFatalStatusCodes value not in status code range")}else{if("string"!=typeof r)throw new Error("Invalid method config hedging policy: nonFatalStatusCodes value must be a string or number");if(!Object.values(t.Status).includes(r.toUpperCase()))throw new Error("Invalid method config hedging policy: nonFatalStatusCodes value not a status code name")}const n={maxAttempts:e.maxAttempts};return e.hedgingDelay&&(n.hedgingDelay=e.hedgingDelay),e.nonFatalStatusCodes&&(n.nonFatalStatusCodes=e.nonFatalStatusCodes),n}(e.hedgingPolicy));return i}function a(e){if(!("maxTokens"in e)||"number"!=typeof e.maxTokens||e.maxTokens<=0||e.maxTokens>1e3)throw new Error("Invalid retryThrottling: maxTokens must be a number in (0, 1000]");if(!("tokenRatio"in e)||"number"!=typeof e.tokenRatio||e.tokenRatio<=0)throw new Error("Invalid retryThrottling: tokenRatio must be a number greater than 0");return{maxTokens:+e.maxTokens.toFixed(3),tokenRatio:+e.tokenRatio.toFixed(3)}}function s(e){if("object"!=typeof e||null===e)throw new Error("Invalid loadBalancingConfig: unexpected type "+typeof e);const t=Object.keys(e);if(t.length>1)throw new Error(`Invalid loadBalancingConfig: unexpected multiple keys ${t}`);if(0===t.length)throw new Error("Invalid loadBalancingConfig: load balancing policy name required");return{[t[0]]:e[t[0]]}}function l(e){const t={loadBalancingConfig:[],methodConfig:[]};if("loadBalancingPolicy"in e){if("string"!=typeof e.loadBalancingPolicy)throw new Error("Invalid service config: invalid loadBalancingPolicy");t.loadBalancingPolicy=e.loadBalancingPolicy}if("loadBalancingConfig"in e){if(!Array.isArray(e.loadBalancingConfig))throw new Error("Invalid service config: invalid loadBalancingConfig");for(const r of e.loadBalancingConfig)t.loadBalancingConfig.push(s(r))}if("methodConfig"in e&&Array.isArray(e.methodConfig))for(const r of e.methodConfig)t.methodConfig.push(i(r));"retryThrottling"in e&&(t.retryThrottling=a(e.retryThrottling));const r=[];for(const e of t.methodConfig)for(const t of e.name){for(const e of r)if(t.service===e.service&&t.method===e.method)throw new Error(`Invalid service config: duplicate name ${t.service}/${t.method}`);r.push(t)}return t}function p(e){if(!("serviceConfig"in e))throw new Error("Invalid service config choice: missing service config");const t={serviceConfig:l(e.serviceConfig)};if("clientLanguage"in e){if(!Array.isArray(e.clientLanguage))throw new Error("Invalid service config choice: invalid clientLanguage");t.clientLanguage=[];for(const r of e.clientLanguage){if("string"!=typeof r)throw new Error("Invalid service config choice: invalid clientLanguage");t.clientLanguage.push(r)}}if("clientHostname"in e){if(!Array.isArray(e.clientHostname))throw new Error("Invalid service config choice: invalid clientHostname");t.clientHostname=[];for(const r of e.clientHostname){if("string"!=typeof r)throw new Error("Invalid service config choice: invalid clientHostname");t.clientHostname.push(r)}}if("percentage"in e){if(!("number"==typeof e.percentage&&0<=e.percentage&&e.percentage<=100))throw new Error("Invalid service config choice: invalid percentage");t.percentage=e.percentage}const r=["clientLanguage","percentage","clientHostname","serviceConfig"];for(const t in e)if(!r.includes(t))throw new Error(`Invalid service config choice: unexpected field ${t}`);return t}function d(t,r){if(!Array.isArray(t))throw new Error("Invalid service config list");for(const o of t){const t=p(o);if(!("number"==typeof t.percentage&&r>t.percentage)){if(Array.isArray(t.clientHostname)){let r=!1;for(const n of t.clientHostname)n===e.hostname()&&(r=!0);if(!r)continue}if(Array.isArray(t.clientLanguage)){let e=!1;for(const r of t.clientLanguage)r===n&&(e=!0);if(!e)continue}return t.serviceConfig}}throw new Error("No matching service config found")}return serviceConfig}var connectivityState={},hasRequiredConnectivityState;function requireConnectivityState(){return hasRequiredConnectivityState||(hasRequiredConnectivityState=1,Object.defineProperty(connectivityState,"__esModule",{value:!0}),connectivityState.ConnectivityState=void 0,function(e){e[e.IDLE=0]="IDLE",e[e.CONNECTING=1]="CONNECTING",e[e.READY=2]="READY",e[e.TRANSIENT_FAILURE=3]="TRANSIENT_FAILURE",e[e.SHUTDOWN=4]="SHUTDOWN"}(e||(connectivityState.ConnectivityState=e={}))),connectivityState;var e}var picker={},hasRequiredPicker;function requirePicker(){if(hasRequiredPicker)return picker;hasRequiredPicker=1,Object.defineProperty(picker,"__esModule",{value:!0}),picker.QueuePicker=picker.UnavailablePicker=picker.PickResultType=void 0;const e=requireMetadata(),t=requireConstants();var r;!function(e){e[e.COMPLETE=0]="COMPLETE",e[e.QUEUE=1]="QUEUE",e[e.TRANSIENT_FAILURE=2]="TRANSIENT_FAILURE",e[e.DROP=3]="DROP"}(r||(picker.PickResultType=r={}));picker.UnavailablePicker=class{constructor(r){this.status=Object.assign({code:t.Status.UNAVAILABLE,details:"No connection established",metadata:new e.Metadata},r)}pick(e){return{pickResultType:r.TRANSIENT_FAILURE,subchannel:null,status:this.status,onCallStarted:null,onCallEnded:null}}};return picker.QueuePicker=class{constructor(e,t){this.loadBalancer=e,this.childPicker=t,this.calledExitIdle=!1}pick(e){return this.calledExitIdle||(process.nextTick(()=>{this.loadBalancer.exitIdle()}),this.calledExitIdle=!0),this.childPicker?this.childPicker.pick(e):{pickResultType:r.QUEUE,subchannel:null,status:null,onCallStarted:null,onCallEnded:null}}},picker}var backoffTimeout={},hasRequiredBackoffTimeout;function requireBackoffTimeout(){if(hasRequiredBackoffTimeout)return backoffTimeout;hasRequiredBackoffTimeout=1,Object.defineProperty(backoffTimeout,"__esModule",{value:!0}),backoffTimeout.BackoffTimeout=void 0;const e=requireConstants(),t=requireLogging();class r{constructor(e,t){this.callback=e,this.initialDelay=1e3,this.multiplier=1.6,this.maxDelay=12e4,this.jitter=.2,this.running=!1,this.hasRef=!0,this.startTime=new Date,this.endTime=new Date,this.id=r.getNextId(),t&&(t.initialDelay&&(this.initialDelay=t.initialDelay),t.multiplier&&(this.multiplier=t.multiplier),t.jitter&&(this.jitter=t.jitter),t.maxDelay&&(this.maxDelay=t.maxDelay)),this.trace("constructed initialDelay="+this.initialDelay+" multiplier="+this.multiplier+" jitter="+this.jitter+" maxDelay="+this.maxDelay),this.nextDelay=this.initialDelay,this.timerId=setTimeout(()=>{},0),clearTimeout(this.timerId)}static getNextId(){return this.nextId++}trace(r){t.trace(e.LogVerbosity.DEBUG,"backoff","{"+this.id+"} "+r)}runTimer(e){var t,r;this.trace("runTimer(delay="+e+")"),this.endTime=this.startTime,this.endTime.setMilliseconds(this.endTime.getMilliseconds()+e),clearTimeout(this.timerId),this.timerId=setTimeout(()=>{this.trace("timer fired"),this.running=!1,this.callback()},e),this.hasRef||null===(r=(t=this.timerId).unref)||void 0===r||r.call(t)}runOnce(){this.trace("runOnce()"),this.running=!0,this.startTime=new Date,this.runTimer(this.nextDelay);const e=Math.min(this.nextDelay*this.multiplier,this.maxDelay),t=e*this.jitter;var r,n;this.nextDelay=e+(r=-t,n=t,Math.random()*(n-r)+r)}stop(){this.trace("stop()"),clearTimeout(this.timerId),this.running=!1}reset(){if(this.trace("reset() running="+this.running),this.nextDelay=this.initialDelay,this.running){const e=new Date,t=this.startTime;t.setMilliseconds(t.getMilliseconds()+this.nextDelay),clearTimeout(this.timerId),e<t?this.runTimer(t.getTime()-e.getTime()):this.running=!1}}isRunning(){return this.running}ref(){var e,t;this.hasRef=!0,null===(t=(e=this.timerId).ref)||void 0===t||t.call(e)}unref(){var e,t;this.hasRef=!1,null===(t=(e=this.timerId).unref)||void 0===t||t.call(e)}getEndTime(){return this.endTime}}return backoffTimeout.BackoffTimeout=r,r.nextId=0,backoffTimeout}var loadBalancerChildHandler={},hasRequiredLoadBalancerChildHandler,hasRequiredResolvingLoadBalancer;function requireLoadBalancerChildHandler(){if(hasRequiredLoadBalancerChildHandler)return loadBalancerChildHandler;hasRequiredLoadBalancerChildHandler=1,Object.defineProperty(loadBalancerChildHandler,"__esModule",{value:!0}),loadBalancerChildHandler.ChildLoadBalancerHandler=void 0;const e=requireLoadBalancer(),t=requireConnectivityState();return loadBalancerChildHandler.ChildLoadBalancerHandler=class{constructor(e){this.channelControlHelper=e,this.currentChild=null,this.pendingChild=null,this.latestConfig=null,this.ChildPolicyHelper=class{constructor(e){this.parent=e,this.child=null}createSubchannel(e,t){return this.parent.channelControlHelper.createSubchannel(e,t)}updateState(e,r,n){var o;if(this.calledByPendingChild()){if(e===t.ConnectivityState.CONNECTING)return;null===(o=this.parent.currentChild)||void 0===o||o.destroy(),this.parent.currentChild=this.parent.pendingChild,this.parent.pendingChild=null}else if(!this.calledByCurrentChild())return;this.parent.channelControlHelper.updateState(e,r,n)}requestReresolution(){var e;const t=null!==(e=this.parent.pendingChild)&&void 0!==e?e:this.parent.currentChild;this.child===t&&this.parent.channelControlHelper.requestReresolution()}setChild(e){this.child=e}addChannelzChild(e){this.parent.channelControlHelper.addChannelzChild(e)}removeChannelzChild(e){this.parent.channelControlHelper.removeChannelzChild(e)}calledByPendingChild(){return this.child===this.parent.pendingChild}calledByCurrentChild(){return this.child===this.parent.currentChild}}}configUpdateRequiresNewPolicyInstance(e,t){return e.getLoadBalancerName()!==t.getLoadBalancerName()}updateAddressList(t,r,n,o){let i;if(null===this.currentChild||null===this.latestConfig||this.configUpdateRequiresNewPolicyInstance(this.latestConfig,r)){const t=new this.ChildPolicyHelper(this),n=(0,e.createLoadBalancer)(r,t);t.setChild(n),null===this.currentChild?(this.currentChild=n,i=this.currentChild):(this.pendingChild&&this.pendingChild.destroy(),this.pendingChild=n,i=this.pendingChild)}else i=null===this.pendingChild?this.currentChild:this.pendingChild;return this.latestConfig=r,i.updateAddressList(t,r,n,o)}exitIdle(){this.currentChild&&(this.currentChild.exitIdle(),this.pendingChild&&this.pendingChild.exitIdle())}resetBackoff(){this.currentChild&&(this.currentChild.resetBackoff(),this.pendingChild&&this.pendingChild.resetBackoff())}destroy(){this.currentChild&&(this.currentChild.destroy(),this.currentChild=null),this.pendingChild&&(this.pendingChild.destroy(),this.pendingChild=null)}getTypeName(){return"child_load_balancer_helper"}},loadBalancerChildHandler}function requireResolvingLoadBalancer(){if(hasRequiredResolvingLoadBalancer)return resolvingLoadBalancer;hasRequiredResolvingLoadBalancer=1,Object.defineProperty(resolvingLoadBalancer,"__esModule",{value:!0}),resolvingLoadBalancer.ResolvingLoadBalancer=void 0;const e=requireLoadBalancer(),t=requireServiceConfig(),r=requireConnectivityState(),n=requireResolver(),o=requirePicker(),i=requireBackoffTimeout(),a=requireConstants(),s=requireMetadata(),l=requireLogging(),p=requireConstants(),d=requireUriParser(),u=requireLoadBalancerChildHandler();function c(e){l.trace(p.LogVerbosity.DEBUG,"resolving_load_balancer",e)}const f=["SERVICE_AND_METHOD","SERVICE","EMPTY"];function h(e,t,r,n){for(const o of r.name)switch(n){case"EMPTY":if(!o.service&&!o.method)return!0;break;case"SERVICE":if(o.service===e&&!o.method)return!0;break;case"SERVICE_AND_METHOD":if(o.service===e&&o.method===t)return!0}return!1}function m(e,t,r,n){for(const o of r)if(h(e,t,o,n))return o;return null}return resolvingLoadBalancer.ResolvingLoadBalancer=class{constructor(e,a,s,l,p){this.target=e,this.channelControlHelper=a,this.channelOptions=s,this.onSuccessfulResolution=l,this.onFailedResolution=p,this.latestChildState=r.ConnectivityState.IDLE,this.latestChildPicker=new o.QueuePicker(this),this.latestChildErrorMessage=null,this.currentState=r.ConnectivityState.IDLE,this.previousServiceConfig=null,this.continueResolving=!1,s["grpc.service_config"]?this.defaultServiceConfig=(0,t.validateServiceConfig)(JSON.parse(s["grpc.service_config"])):this.defaultServiceConfig={loadBalancingConfig:[],methodConfig:[]},this.updateState(r.ConnectivityState.IDLE,new o.QueuePicker(this),null),this.childLoadBalancer=new u.ChildLoadBalancerHandler({createSubchannel:a.createSubchannel.bind(a),requestReresolution:()=>{this.backoffTimeout.isRunning()?(c("requestReresolution delayed by backoff timer until "+this.backoffTimeout.getEndTime().toISOString()),this.continueResolving=!0):this.updateResolution()},updateState:(e,t,r)=>{this.latestChildState=e,this.latestChildPicker=t,this.latestChildErrorMessage=r,this.updateState(e,t,r)},addChannelzChild:a.addChannelzChild.bind(a),removeChannelzChild:a.removeChannelzChild.bind(a)}),this.innerResolver=(0,n.createResolver)(e,this.handleResolverResult.bind(this),s);const d={initialDelay:s["grpc.initial_reconnect_backoff_ms"],maxDelay:s["grpc.max_reconnect_backoff_ms"]};this.backoffTimeout=new i.BackoffTimeout(()=>{this.continueResolving?(this.updateResolution(),this.continueResolving=!1):this.updateState(this.latestChildState,this.latestChildPicker,this.latestChildErrorMessage)},d),this.backoffTimeout.unref()}handleResolverResult(t,r,o,i){var l,p;this.backoffTimeout.stop(),this.backoffTimeout.reset();let d=!0,u=null;if(null===o?u=this.defaultServiceConfig:o.ok?u=o.value:null!==this.previousServiceConfig?u=this.previousServiceConfig:(d=!1,this.handleResolutionFailure(o.error)),null!==u){const n=null!==(l=null==u?void 0:u.loadBalancingConfig)&&void 0!==l?l:[],o=(0,e.selectLbConfigFromList)(n,!0);null===o?(d=!1,this.handleResolutionFailure({code:a.Status.UNAVAILABLE,details:"All load balancer options in service config are not compatible",metadata:new s.Metadata})):d=this.childLoadBalancer.updateAddressList(t,o,Object.assign(Object.assign({},this.channelOptions),r),i)}return d&&this.onSuccessfulResolution(u,null!==(p=r[n.CHANNEL_ARGS_CONFIG_SELECTOR_KEY])&&void 0!==p?p:function(e){return{invoke(t,r){var n,o;const i=t.split("/").filter(e=>e.length>0),s=null!==(n=i[0])&&void 0!==n?n:"",l=null!==(o=i[1])&&void 0!==o?o:"";if(e&&e.methodConfig)for(const t of f){const r=m(s,l,e.methodConfig,t);if(r)return{methodConfig:r,pickInformation:{},status:a.Status.OK,dynamicFilterFactories:[]}}return{methodConfig:{name:[]},pickInformation:{},status:a.Status.OK,dynamicFilterFactories:[]}},unref(){}}}(u)),d}updateResolution(){this.innerResolver.updateResolution(),this.currentState===r.ConnectivityState.IDLE&&this.updateState(r.ConnectivityState.CONNECTING,this.latestChildPicker,this.latestChildErrorMessage),this.backoffTimeout.runOnce()}updateState(e,t,n){c((0,d.uriToString)(this.target)+" "+r.ConnectivityState[this.currentState]+" -> "+r.ConnectivityState[e]),e===r.ConnectivityState.IDLE&&(t=new o.QueuePicker(this,t)),this.currentState=e,this.channelControlHelper.updateState(e,t,n)}handleResolutionFailure(e){this.latestChildState===r.ConnectivityState.IDLE&&(this.updateState(r.ConnectivityState.TRANSIENT_FAILURE,new o.UnavailablePicker(e),e.details),this.onFailedResolution(e))}exitIdle(){this.currentState!==r.ConnectivityState.IDLE&&this.currentState!==r.ConnectivityState.TRANSIENT_FAILURE||(this.backoffTimeout.isRunning()?this.continueResolving=!0:this.updateResolution()),this.childLoadBalancer.exitIdle()}updateAddressList(e,t){throw new Error("updateAddressList not supported on ResolvingLoadBalancer")}resetBackoff(){this.backoffTimeout.reset(),this.childLoadBalancer.resetBackoff()}destroy(){this.childLoadBalancer.destroy(),this.innerResolver.destroy(),this.backoffTimeout.reset(),this.backoffTimeout.stop(),this.latestChildState=r.ConnectivityState.IDLE,this.latestChildPicker=new o.QueuePicker(this),this.currentState=r.ConnectivityState.IDLE,this.previousServiceConfig=null,this.continueResolving=!1}getTypeName(){return"resolving_load_balancer"}},resolvingLoadBalancer}var subchannelPool={},channelOptions={},hasRequiredChannelOptions;function requireChannelOptions(){if(hasRequiredChannelOptions)return channelOptions;return hasRequiredChannelOptions=1,Object.defineProperty(channelOptions,"__esModule",{value:!0}),channelOptions.recognizedOptions=void 0,channelOptions.channelOptionsEqual=function(e,t){const r=Object.keys(e).sort(),n=Object.keys(t).sort();if(r.length!==n.length)return!1;for(let o=0;o<r.length;o+=1){if(r[o]!==n[o])return!1;if(e[r[o]]!==t[n[o]])return!1}return!0},channelOptions.recognizedOptions={"grpc.ssl_target_name_override":!0,"grpc.primary_user_agent":!0,"grpc.secondary_user_agent":!0,"grpc.default_authority":!0,"grpc.keepalive_time_ms":!0,"grpc.keepalive_timeout_ms":!0,"grpc.keepalive_permit_without_calls":!0,"grpc.service_config":!0,"grpc.max_concurrent_streams":!0,"grpc.initial_reconnect_backoff_ms":!0,"grpc.max_reconnect_backoff_ms":!0,"grpc.use_local_subchannel_pool":!0,"grpc.max_send_message_length":!0,"grpc.max_receive_message_length":!0,"grpc.enable_http_proxy":!0,"grpc.enable_channelz":!0,"grpc.dns_min_time_between_resolutions_ms":!0,"grpc.enable_retries":!0,"grpc.per_rpc_retry_buffer_size":!0,"grpc.retry_buffer_size":!0,"grpc.max_connection_age_ms":!0,"grpc.max_connection_age_grace_ms":!0,"grpc-node.max_session_memory":!0,"grpc.service_config_disable_resolution":!0,"grpc.client_idle_timeout_ms":!0,"grpc-node.tls_enable_trace":!0,"grpc.lb.ring_hash.ring_size_cap":!0,"grpc-node.retry_max_attempts_limit":!0,"grpc-node.flow_control_window":!0,"grpc.server_call_metric_recording":!0},channelOptions}var subchannel={},subchannelAddress={},hasRequiredSubchannelAddress;function requireSubchannelAddress(){if(hasRequiredSubchannelAddress)return subchannelAddress;hasRequiredSubchannelAddress=1,Object.defineProperty(subchannelAddress,"__esModule",{value:!0}),subchannelAddress.EndpointMap=void 0,subchannelAddress.isTcpSubchannelAddress=t,subchannelAddress.subchannelAddressEqual=r,subchannelAddress.subchannelAddressToString=n,subchannelAddress.stringToSubchannelAddress=function(t,r){return(0,e.isIP)(t)?{host:t,port:null!=r?r:o}:{path:t}},subchannelAddress.endpointEqual=function(e,t){if(e.addresses.length!==t.addresses.length)return!1;for(let n=0;n<e.addresses.length;n++)if(!r(e.addresses[n],t.addresses[n]))return!1;return!0},subchannelAddress.endpointToString=function(e){return"["+e.addresses.map(n).join(", ")+"]"},subchannelAddress.endpointHasAddress=i;const e=require$$0__default$2.default;function t(e){return"port"in e}function r(e,r){return!e&&!r||!(!e||!r)&&(t(e)?t(r)&&e.host===r.host&&e.port===r.port:!t(r)&&e.path===r.path)}function n(r){return t(r)?(0,e.isIPv6)(r.host)?"["+r.host+"]:"+r.port:r.host+":"+r.port:r.path}const o=443;function i(e,t){for(const n of e.addresses)if(r(n,t))return!0;return!1}function a(e,t){if(e.addresses.length!==t.addresses.length)return!1;for(const n of e.addresses){let e=!1;for(const o of t.addresses)if(r(n,o)){e=!0;break}if(!e)return!1}return!0}return subchannelAddress.EndpointMap=class{constructor(){this.map=new Set}get size(){return this.map.size}getForSubchannelAddress(e){for(const t of this.map)if(i(t.key,e))return t.value}deleteMissing(e){const t=[];for(const r of this.map){let n=!1;for(const t of e)a(t,r.key)&&(n=!0);n||(t.push(r.value),this.map.delete(r))}return t}get(e){for(const t of this.map)if(a(e,t.key))return t.value}set(e,t){for(const r of this.map)if(a(e,r.key))return void(r.value=t);this.map.add({key:e,value:t})}delete(e){for(const t of this.map)if(a(e,t.key))return void this.map.delete(t)}has(e){for(const t of this.map)if(a(e,t.key))return!0;return!1}clear(){this.map.clear()}*keys(){for(const e of this.map)yield e.key}*values(){for(const e of this.map)yield e.value}*entries(){for(const e of this.map)yield[e.key,e.value]}},subchannelAddress}var channelz={},extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},extendStatics(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function __generator(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}"function"==typeof SuppressedError&&SuppressedError;var TreeNode=function(){function e(e,t,r){void 0===r&&(r=1),this.t=void 0,this.i=void 0,this.h=void 0,this.u=e,this.o=t,this.l=r}return e.prototype.v=function(){var e=this,t=e.h.h===e;if(t&&1===e.l)e=e.i;else if(e.t)for(e=e.t;e.i;)e=e.i;else{if(t)return e.h;for(var r=e.h;r.t===e;)r=(e=r).h;e=r}return e},e.prototype.p=function(){var e=this;if(e.i){for(e=e.i;e.t;)e=e.t;return e}for(var t=e.h;t.i===e;)t=(e=t).h;return e.i!==t?t:e},e.prototype.T=function(){var e=this.h,t=this.i,r=t.t;return e.h===this?e.h=t:e.t===this?e.t=t:e.i=t,t.h=e,t.t=this,this.h=t,this.i=r,r&&(r.h=this),t},e.prototype.I=function(){var e=this.h,t=this.t,r=t.i;return e.h===this?e.h=t:e.t===this?e.t=t:e.i=t,t.h=e,t.i=this,this.h=t,this.t=r,r&&(r.h=this),t},e}(),TreeNodeEnableIndex=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.O=1,t}return __extends(t,e),t.prototype.T=function(){var t=e.prototype.T.call(this);return this.M(),t.M(),t},t.prototype.I=function(){var t=e.prototype.I.call(this);return this.M(),t.M(),t},t.prototype.M=function(){this.O=1,this.t&&(this.O+=this.t.O),this.i&&(this.O+=this.i.O)},t}(TreeNode),ContainerIterator=function(){function e(e){void 0===e&&(e=0),this.iteratorType=e}return e.prototype.equals=function(e){return this.C===e.C},e}(),Base=function(){function e(){this._=0}return Object.defineProperty(e.prototype,"length",{get:function(){return this._},enumerable:!1,configurable:!0}),e.prototype.size=function(){return this._},e.prototype.empty=function(){return 0===this._},e}(),Container=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(Base);function throwIteratorAccessError(){throw new RangeError("Iterator access denied!")}var TreeContainer=function(e){function t(t,r){void 0===t&&(t=function(e,t){return e<t?-1:e>t?1:0}),void 0===r&&(r=!1);var n=e.call(this)||this;return n.N=void 0,n.g=t,n.enableIndex=r,n.S=r?TreeNodeEnableIndex:TreeNode,n.A=new n.S,n}return __extends(t,e),t.prototype.m=function(e,t){for(var r=this.A;e;){var n=this.g(e.u,t);if(n<0)e=e.i;else{if(!(n>0))return e;r=e,e=e.t}}return r},t.prototype.B=function(e,t){for(var r=this.A;e;){this.g(e.u,t)<=0?e=e.i:(r=e,e=e.t)}return r},t.prototype.j=function(e,t){for(var r=this.A;e;){var n=this.g(e.u,t);if(n<0)r=e,e=e.i;else{if(!(n>0))return e;e=e.t}}return r},t.prototype.k=function(e,t){for(var r=this.A;e;){this.g(e.u,t)<0?(r=e,e=e.i):e=e.t}return r},t.prototype.R=function(e){for(;;){var t,r=e.h;if(r===this.A)return;if(1===e.l)return void(e.l=0);if(e===r.t)if(1===(t=r.i).l)t.l=0,r.l=1,r===this.N?this.N=r.T():r.T();else{if(t.i&&1===t.i.l)return t.l=r.l,r.l=0,t.i.l=0,void(r===this.N?this.N=r.T():r.T());t.t&&1===t.t.l?(t.l=1,t.t.l=0,t.I()):(t.l=1,e=r)}else if(1===(t=r.t).l)t.l=0,r.l=1,r===this.N?this.N=r.I():r.I();else{if(t.t&&1===t.t.l)return t.l=r.l,r.l=0,t.t.l=0,void(r===this.N?this.N=r.I():r.I());t.i&&1===t.i.l?(t.l=1,t.i.l=0,t.T()):(t.l=1,e=r)}}},t.prototype.G=function(e){if(1!==this._){for(var t=e;t.t||t.i;){if(t.i)for(t=t.i;t.t;)t=t.t;else t=t.t;var r=e.u;e.u=t.u,t.u=r;var n=e.o;e.o=t.o,t.o=n,e=t}this.A.t===t?this.A.t=t.h:this.A.i===t&&(this.A.i=t.h),this.R(t);var o=t.h;if(t===o.t?o.t=void 0:o.i=void 0,this._-=1,this.N.l=0,this.enableIndex)for(;o!==this.A;)o.O-=1,o=o.h}else this.clear()},t.prototype.P=function(e){for(var t="number"==typeof e?e:void 0,r="function"==typeof e?e:void 0,n=void 0===e?[]:void 0,o=0,i=this.N,a=[];a.length||i;)if(i)a.push(i),i=i.t;else{if(i=a.pop(),o===t)return i;n&&n.push(i),r&&r(i,o,this),o+=1,i=i.i}return n},t.prototype.q=function(e){for(;;){var t=e.h;if(0===t.l)return;var r=t.h;if(t===r.t){if((n=r.i)&&1===n.l){if(n.l=t.l=0,r===this.N)return;r.l=1,e=r;continue}if(e!==t.i)return t.l=0,r===this.N?this.N=r.I():r.I(),void(r.l=1);e.l=0,e.t&&(e.t.h=t),e.i&&(e.i.h=r),t.i=e.t,r.t=e.i,e.t=t,e.i=r,r===this.N?(this.N=e,this.A.h=e):(o=r.h).t===r?o.t=e:o.i=e,e.h=r.h,t.h=e,r.h=e,r.l=1}else{var n,o;if((n=r.t)&&1===n.l){if(n.l=t.l=0,r===this.N)return;r.l=1,e=r;continue}if(e!==t.t)return t.l=0,r===this.N?this.N=r.T():r.T(),void(r.l=1);e.l=0,e.t&&(e.t.h=r),e.i&&(e.i.h=t),r.i=e.t,t.t=e.i,e.t=r,e.i=t,r===this.N?(this.N=e,this.A.h=e):(o=r.h).t===r?o.t=e:o.i=e,e.h=r.h,t.h=e,r.h=e,r.l=1}return void(this.enableIndex&&(t.M(),r.M(),e.M()))}},t.prototype.D=function(e,t,r){if(void 0===this.N)return this._+=1,this.N=new this.S(e,t,0),this.N.h=this.A,this.A.h=this.A.t=this.A.i=this.N,this._;var n,o=this.A.t,i=this.g(o.u,e);if(0===i)return o.o=t,this._;if(i>0)o.t=new this.S(e,t),o.t.h=o,n=o.t,this.A.t=n;else{var a=this.A.i,s=this.g(a.u,e);if(0===s)return a.o=t,this._;if(s<0)a.i=new this.S(e,t),a.i.h=a,n=a.i,this.A.i=n;else{if(void 0!==r){var l=r.C;if(l!==this.A){var p=this.g(l.u,e);if(0===p)return l.o=t,this._;if(p>0){var d=l.v(),u=this.g(d.u,e);if(0===u)return d.o=t,this._;u<0&&(n=new this.S(e,t),void 0===d.i?(d.i=n,n.h=d):(l.t=n,n.h=l))}}}if(void 0===n)for(n=this.N;;){var c=this.g(n.u,e);if(c>0){if(void 0===n.t){n.t=new this.S(e,t),n.t.h=n,n=n.t;break}n=n.t}else{if(!(c<0))return n.o=t,this._;if(void 0===n.i){n.i=new this.S(e,t),n.i.h=n,n=n.i;break}n=n.i}}}}if(this.enableIndex)for(var f=n.h;f!==this.A;)f.O+=1,f=f.h;return this.q(n),this._+=1,this._},t.prototype.F=function(e,t){for(;e;){var r=this.g(e.u,t);if(r<0)e=e.i;else{if(!(r>0))return e;e=e.t}}return e||this.A},t.prototype.clear=function(){this._=0,this.N=void 0,this.A.h=void 0,this.A.t=this.A.i=void 0},t.prototype.updateKeyByIterator=function(e,t){var r=e.C;if(r===this.A&&throwIteratorAccessError(),1===this._)return r.u=t,!0;var n=r.p().u;if(r===this.A.t)return this.g(n,t)>0&&(r.u=t,!0);var o=r.v().u;return r===this.A.i?this.g(o,t)<0&&(r.u=t,!0):!(this.g(o,t)>=0||this.g(n,t)<=0)&&(r.u=t,!0)},t.prototype.eraseElementByPos=function(e){if(e<0||e>this._-1)throw new RangeError;var t=this.P(e);return this.G(t),this._},t.prototype.eraseElementByKey=function(e){if(0===this._)return!1;var t=this.F(this.N,e);return t!==this.A&&(this.G(t),!0)},t.prototype.eraseElementByIterator=function(e){var t=e.C;t===this.A&&throwIteratorAccessError();var r=void 0===t.i;return 0===e.iteratorType?r&&e.next():r&&void 0!==t.t||e.next(),this.G(t),e},t.prototype.getHeight=function(){if(0===this._)return 0;return function e(t){return t?Math.max(e(t.t),e(t.i))+1:0}(this.N)},t}(Container),TreeIterator=function(e){function t(t,r,n){var o=e.call(this,n)||this;return o.C=t,o.A=r,0===o.iteratorType?(o.pre=function(){return this.C===this.A.t&&throwIteratorAccessError(),this.C=this.C.v(),this},o.next=function(){return this.C===this.A&&throwIteratorAccessError(),this.C=this.C.p(),this}):(o.pre=function(){return this.C===this.A.i&&throwIteratorAccessError(),this.C=this.C.p(),this},o.next=function(){return this.C===this.A&&throwIteratorAccessError(),this.C=this.C.v(),this}),o}return __extends(t,e),Object.defineProperty(t.prototype,"index",{get:function(){var e=this.C,t=this.A.h;if(e===this.A)return t?t.O-1:0;var r=0;for(e.t&&(r+=e.t.O);e!==t;){var n=e.h;e===n.i&&(r+=1,n.t&&(r+=n.t.O)),e=n}return r},enumerable:!1,configurable:!0}),t.prototype.isAccessible=function(){return this.C!==this.A},t}(ContainerIterator),OrderedMapIterator=function(e){function t(t,r,n,o){var i=e.call(this,t,r,o)||this;return i.container=n,i}return __extends(t,e),Object.defineProperty(t.prototype,"pointer",{get:function(){this.C===this.A&&throwIteratorAccessError();var e=this;return new Proxy([],{get:function(t,r){return"0"===r?e.C.u:"1"===r?e.C.o:(t[0]=e.C.u,t[1]=e.C.o,t[r])},set:function(t,r,n){if("1"!==r)throw new TypeError("prop must be 1");return e.C.o=n,!0}})},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.C,this.A,this.container,this.iteratorType)},t}(TreeIterator),OrderedMap=function(e){function t(t,r,n){void 0===t&&(t=[]);var o=e.call(this,r,n)||this,i=o;return t.forEach(function(e){i.setElement(e[0],e[1])}),o}return __extends(t,e),t.prototype.begin=function(){return new OrderedMapIterator(this.A.t||this.A,this.A,this)},t.prototype.end=function(){return new OrderedMapIterator(this.A,this.A,this)},t.prototype.rBegin=function(){return new OrderedMapIterator(this.A.i||this.A,this.A,this,1)},t.prototype.rEnd=function(){return new OrderedMapIterator(this.A,this.A,this,1)},t.prototype.front=function(){if(0!==this._){var e=this.A.t;return[e.u,e.o]}},t.prototype.back=function(){if(0!==this._){var e=this.A.i;return[e.u,e.o]}},t.prototype.lowerBound=function(e){var t=this.m(this.N,e);return new OrderedMapIterator(t,this.A,this)},t.prototype.upperBound=function(e){var t=this.B(this.N,e);return new OrderedMapIterator(t,this.A,this)},t.prototype.reverseLowerBound=function(e){var t=this.j(this.N,e);return new OrderedMapIterator(t,this.A,this)},t.prototype.reverseUpperBound=function(e){var t=this.k(this.N,e);return new OrderedMapIterator(t,this.A,this)},t.prototype.forEach=function(e){this.P(function(t,r,n){e([t.u,t.o],r,n)})},t.prototype.setElement=function(e,t,r){return this.D(e,t,r)},t.prototype.getElementByPos=function(e){if(e<0||e>this._-1)throw new RangeError;var t=this.P(e);return[t.u,t.o]},t.prototype.find=function(e){var t=this.F(this.N,e);return new OrderedMapIterator(t,this.A,this)},t.prototype.getElementByKey=function(e){return this.F(this.N,e).o},t.prototype.union=function(e){var t=this;return e.forEach(function(e){t.setElement(e[0],e[1])}),this._},t.prototype[Symbol.iterator]=function(){var e,t,r,n;return __generator(this,function(o){switch(o.label){case 0:e=this._,t=this.P(),r=0,o.label=1;case 1:return r<e?[4,[(n=t[r]).u,n.o]]:[3,4];case 2:o.sent(),o.label=3;case 3:return++r,[3,1];case 4:return[2]}})},t}(TreeContainer),esm=Object.freeze({__proto__:null,OrderedMap:OrderedMap}),require$$1$2=getAugmentedNamespace(esm),admin={},hasRequiredAdmin;function requireAdmin(){if(hasRequiredAdmin)return admin;hasRequiredAdmin=1,Object.defineProperty(admin,"__esModule",{value:!0}),admin.registerAdminService=function(t,r){e.push({getServiceDefinition:t,getHandlers:r})},admin.addAdminServicesToServer=function(t){for(const{getServiceDefinition:r,getHandlers:n}of e)t.addService(r(),n())};const e=[];return admin}var makeClient={},client={},call$1={},hasRequiredCall$1;function requireCall$1(){if(hasRequiredCall$1)return call$1;hasRequiredCall$1=1,Object.defineProperty(call$1,"__esModule",{value:!0}),call$1.ClientDuplexStreamImpl=call$1.ClientWritableStreamImpl=call$1.ClientReadableStreamImpl=call$1.ClientUnaryCallImpl=void 0,call$1.callErrorFromStatus=function(e,t){const n=`${e.code} ${r.Status[e.code]}: ${e.details}`,o=new Error(n),i=`${o.stack}\nfor call at\n${t}`;return Object.assign(new Error(n),e,{stack:i})};const e=require$$0__default$3.default,t=Stream__default.default,r=requireConstants();class n extends e.EventEmitter{constructor(){super()}cancel(){var e;null===(e=this.call)||void 0===e||e.cancelWithStatus(r.Status.CANCELLED,"Cancelled on client")}getPeer(){var e,t;return null!==(t=null===(e=this.call)||void 0===e?void 0:e.getPeer())&&void 0!==t?t:"unknown"}getAuthContext(){var e,t;return null!==(t=null===(e=this.call)||void 0===e?void 0:e.getAuthContext())&&void 0!==t?t:null}}call$1.ClientUnaryCallImpl=n;class o extends t.Readable{constructor(e){super({objectMode:!0}),this.deserialize=e}cancel(){var e;null===(e=this.call)||void 0===e||e.cancelWithStatus(r.Status.CANCELLED,"Cancelled on client")}getPeer(){var e,t;return null!==(t=null===(e=this.call)||void 0===e?void 0:e.getPeer())&&void 0!==t?t:"unknown"}getAuthContext(){var e,t;return null!==(t=null===(e=this.call)||void 0===e?void 0:e.getAuthContext())&&void 0!==t?t:null}_read(e){var t;null===(t=this.call)||void 0===t||t.startRead()}}call$1.ClientReadableStreamImpl=o;class i extends t.Writable{constructor(e){super({objectMode:!0}),this.serialize=e}cancel(){var e;null===(e=this.call)||void 0===e||e.cancelWithStatus(r.Status.CANCELLED,"Cancelled on client")}getPeer(){var e,t;return null!==(t=null===(e=this.call)||void 0===e?void 0:e.getPeer())&&void 0!==t?t:"unknown"}getAuthContext(){var e,t;return null!==(t=null===(e=this.call)||void 0===e?void 0:e.getAuthContext())&&void 0!==t?t:null}_write(e,t,r){var n;const o={callback:r},i=Number(t);Number.isNaN(i)||(o.flags=i),null===(n=this.call)||void 0===n||n.sendMessageWithContext(o,e)}_final(e){var t;null===(t=this.call)||void 0===t||t.halfClose(),e()}}call$1.ClientWritableStreamImpl=i;class a extends t.Duplex{constructor(e,t){super({objectMode:!0}),this.serialize=e,this.deserialize=t}cancel(){var e;null===(e=this.call)||void 0===e||e.cancelWithStatus(r.Status.CANCELLED,"Cancelled on client")}getPeer(){var e,t;return null!==(t=null===(e=this.call)||void 0===e?void 0:e.getPeer())&&void 0!==t?t:"unknown"}getAuthContext(){var e,t;return null!==(t=null===(e=this.call)||void 0===e?void 0:e.getAuthContext())&&void 0!==t?t:null}_read(e){var t;null===(t=this.call)||void 0===t||t.startRead()}_write(e,t,r){var n;const o={callback:r},i=Number(t);Number.isNaN(i)||(o.flags=i),null===(n=this.call)||void 0===n||n.sendMessageWithContext(o,e)}_final(e){var t;null===(t=this.call)||void 0===t||t.halfClose(),e()}}return call$1.ClientDuplexStreamImpl=a,call$1}var clientInterceptors={},callInterface={},hasRequiredCallInterface,hasRequiredClientInterceptors,hasRequiredClient,hasRequiredMakeClient;function requireCallInterface(){if(hasRequiredCallInterface)return callInterface;hasRequiredCallInterface=1,Object.defineProperty(callInterface,"__esModule",{value:!0}),callInterface.InterceptingListenerImpl=void 0,callInterface.statusOrFromValue=function(e){return{ok:!0,value:e}},callInterface.statusOrFromError=function(t){var r;return{ok:!1,error:Object.assign(Object.assign({},t),{metadata:null!==(r=t.metadata)&&void 0!==r?r:new e.Metadata})}},callInterface.isInterceptingListener=function(e){return void 0!==e.onReceiveMetadata&&1===e.onReceiveMetadata.length};const e=requireMetadata();return callInterface.InterceptingListenerImpl=class{constructor(e,t){this.listener=e,this.nextListener=t,this.processingMetadata=!1,this.hasPendingMessage=!1,this.processingMessage=!1,this.pendingStatus=null}processPendingMessage(){this.hasPendingMessage&&(this.nextListener.onReceiveMessage(this.pendingMessage),this.pendingMessage=null,this.hasPendingMessage=!1)}processPendingStatus(){this.pendingStatus&&this.nextListener.onReceiveStatus(this.pendingStatus)}onReceiveMetadata(e){this.processingMetadata=!0,this.listener.onReceiveMetadata(e,e=>{this.processingMetadata=!1,this.nextListener.onReceiveMetadata(e),this.processPendingMessage(),this.processPendingStatus()})}onReceiveMessage(e){this.processingMessage=!0,this.listener.onReceiveMessage(e,e=>{this.processingMessage=!1,this.processingMetadata?(this.pendingMessage=e,this.hasPendingMessage=!0):(this.nextListener.onReceiveMessage(e),this.processPendingStatus())})}onReceiveStatus(e){this.listener.onReceiveStatus(e,e=>{this.processingMetadata||this.processingMessage?this.pendingStatus=e:this.nextListener.onReceiveStatus(e)})}},callInterface}function requireClientInterceptors(){if(hasRequiredClientInterceptors)return clientInterceptors;hasRequiredClientInterceptors=1,Object.defineProperty(clientInterceptors,"__esModule",{value:!0}),clientInterceptors.InterceptingCall=clientInterceptors.RequesterBuilder=clientInterceptors.ListenerBuilder=clientInterceptors.InterceptorConfigurationError=void 0,clientInterceptors.getInterceptingCall=function(e,t,r,n){if(e.clientInterceptors.length>0&&e.clientInterceptorProviders.length>0)throw new o("Both interceptors and interceptor_providers were passed as options to the client constructor. Only one of these is allowed.");if(e.callInterceptors.length>0&&e.callInterceptorProviders.length>0)throw new o("Both interceptors and interceptor_providers were passed as call options. Only one of these is allowed.");let i=[];i=e.callInterceptors.length>0||e.callInterceptorProviders.length>0?[].concat(e.callInterceptors,e.callInterceptorProviders.map(e=>e(t))).filter(e=>e):[].concat(e.clientInterceptors,e.clientInterceptorProviders.map(e=>e(t))).filter(e=>e);const a=Object.assign({},r,{method_definition:t}),s=i.reduceRight((e,t)=>r=>t(r,e),e=>d(n,e,t));return s(a)};const e=requireMetadata(),t=requireCallInterface(),r=requireConstants(),n=requireError();class o extends Error{constructor(e){super(e),this.name="InterceptorConfigurationError",Error.captureStackTrace(this,o)}}clientInterceptors.InterceptorConfigurationError=o;clientInterceptors.ListenerBuilder=class{constructor(){this.metadata=void 0,this.message=void 0,this.status=void 0}withOnReceiveMetadata(e){return this.metadata=e,this}withOnReceiveMessage(e){return this.message=e,this}withOnReceiveStatus(e){return this.status=e,this}build(){return{onReceiveMetadata:this.metadata,onReceiveMessage:this.message,onReceiveStatus:this.status}}};clientInterceptors.RequesterBuilder=class{constructor(){this.start=void 0,this.message=void 0,this.halfClose=void 0,this.cancel=void 0}withStart(e){return this.start=e,this}withSendMessage(e){return this.message=e,this}withHalfClose(e){return this.halfClose=e,this}withCancel(e){return this.cancel=e,this}build(){return{start:this.start,sendMessage:this.message,halfClose:this.halfClose,cancel:this.cancel}}};const i={onReceiveMetadata:(e,t)=>{t(e)},onReceiveMessage:(e,t)=>{t(e)},onReceiveStatus:(e,t)=>{t(e)}},a={start:(e,t,r)=>{r(e,t)},sendMessage:(e,t)=>{t(e)},halfClose:e=>{e()},cancel:e=>{e()}};clientInterceptors.InterceptingCall=class{constructor(e,t){var r,n,o,i;this.nextCall=e,this.processingMetadata=!1,this.pendingMessageContext=null,this.processingMessage=!1,this.pendingHalfClose=!1,this.requester=t?{start:null!==(r=t.start)&&void 0!==r?r:a.start,sendMessage:null!==(n=t.sendMessage)&&void 0!==n?n:a.sendMessage,halfClose:null!==(o=t.halfClose)&&void 0!==o?o:a.halfClose,cancel:null!==(i=t.cancel)&&void 0!==i?i:a.cancel}:a}cancelWithStatus(e,t){this.requester.cancel(()=>{this.nextCall.cancelWithStatus(e,t)})}getPeer(){return this.nextCall.getPeer()}processPendingMessage(){this.pendingMessageContext&&(this.nextCall.sendMessageWithContext(this.pendingMessageContext,this.pendingMessage),this.pendingMessageContext=null,this.pendingMessage=null)}processPendingHalfClose(){this.pendingHalfClose&&this.nextCall.halfClose()}start(e,r){var n,o,a,s,l,p;const d={onReceiveMetadata:null!==(o=null===(n=null==r?void 0:r.onReceiveMetadata)||void 0===n?void 0:n.bind(r))&&void 0!==o?o:e=>{},onReceiveMessage:null!==(s=null===(a=null==r?void 0:r.onReceiveMessage)||void 0===a?void 0:a.bind(r))&&void 0!==s?s:e=>{},onReceiveStatus:null!==(p=null===(l=null==r?void 0:r.onReceiveStatus)||void 0===l?void 0:l.bind(r))&&void 0!==p?p:e=>{}};this.processingMetadata=!0,this.requester.start(e,d,(e,r)=>{var n,o,a;let s;if(this.processingMetadata=!1,(0,t.isInterceptingListener)(r))s=r;else{const e={onReceiveMetadata:null!==(n=r.onReceiveMetadata)&&void 0!==n?n:i.onReceiveMetadata,onReceiveMessage:null!==(o=r.onReceiveMessage)&&void 0!==o?o:i.onReceiveMessage,onReceiveStatus:null!==(a=r.onReceiveStatus)&&void 0!==a?a:i.onReceiveStatus};s=new t.InterceptingListenerImpl(e,d)}this.nextCall.start(e,s),this.processPendingMessage(),this.processPendingHalfClose()})}sendMessageWithContext(e,t){this.processingMessage=!0,this.requester.sendMessage(t,r=>{this.processingMessage=!1,this.processingMetadata?(this.pendingMessageContext=e,this.pendingMessage=t):(this.nextCall.sendMessageWithContext(e,r),this.processPendingHalfClose())})}sendMessage(e){this.sendMessageWithContext({},e)}startRead(){this.nextCall.startRead()}halfClose(){this.requester.halfClose(()=>{this.processingMetadata||this.processingMessage?this.pendingHalfClose=!0:this.nextCall.halfClose()})}getAuthContext(){return this.nextCall.getAuthContext()}};class s{constructor(e,t){this.call=e,this.methodDefinition=t}cancelWithStatus(e,t){this.call.cancelWithStatus(e,t)}getPeer(){return this.call.getPeer()}sendMessageWithContext(e,t){let o;try{o=this.methodDefinition.requestSerialize(t)}catch(e){return void this.call.cancelWithStatus(r.Status.INTERNAL,`Request message serialization failure: ${(0,n.getErrorMessage)(e)}`)}this.call.sendMessageWithContext(e,o)}sendMessage(e){this.sendMessageWithContext({},e)}start(t,o){let i=null;this.call.start(t,{onReceiveMetadata:e=>{var t;null===(t=null==o?void 0:o.onReceiveMetadata)||void 0===t||t.call(o,e)},onReceiveMessage:t=>{var a;let s;try{s=this.methodDefinition.responseDeserialize(t)}catch(t){return i={code:r.Status.INTERNAL,details:`Response message parsing error: ${(0,n.getErrorMessage)(t)}`,metadata:new e.Metadata},void this.call.cancelWithStatus(i.code,i.details)}null===(a=null==o?void 0:o.onReceiveMessage)||void 0===a||a.call(o,s)},onReceiveStatus:e=>{var t,r;i?null===(t=null==o?void 0:o.onReceiveStatus)||void 0===t||t.call(o,i):null===(r=null==o?void 0:o.onReceiveStatus)||void 0===r||r.call(o,e)}})}startRead(){this.call.startRead()}halfClose(){this.call.halfClose()}getAuthContext(){return this.call.getAuthContext()}}class l extends s{constructor(e,t){super(e,t)}start(e,t){var r,n;let o=!1;const i={onReceiveMetadata:null!==(n=null===(r=null==t?void 0:t.onReceiveMetadata)||void 0===r?void 0:r.bind(t))&&void 0!==n?n:e=>{},onReceiveMessage:e=>{var r;o=!0,null===(r=null==t?void 0:t.onReceiveMessage)||void 0===r||r.call(t,e)},onReceiveStatus:e=>{var r,n;o||null===(r=null==t?void 0:t.onReceiveMessage)||void 0===r||r.call(t,null),null===(n=null==t?void 0:t.onReceiveStatus)||void 0===n||n.call(t,e)}};super.start(e,i),this.call.startRead()}}class p extends s{}function d(e,t,r){const n=function(e,t,r){var n,o;const i=null!==(n=r.deadline)&&void 0!==n?n:1/0,a=r.host,s=null!==(o=r.parent)&&void 0!==o?o:null,l=r.propagate_flags,p=r.credentials,d=e.createCall(t,i,a,s,l);return p&&d.setCredentials(p),d}(e,r.path,t);return r.responseStream?new p(n,r):new l(n,r)}return clientInterceptors}function requireClient(){if(hasRequiredClient)return client;hasRequiredClient=1,Object.defineProperty(client,"__esModule",{value:!0}),client.Client=void 0;const e=requireCall$1(),t=requireChannel(),r=requireConnectivityState(),n=requireConstants(),o=requireMetadata(),i=requireClientInterceptors(),a=Symbol(),s=Symbol(),l=Symbol(),p=Symbol();function d(e){return"function"==typeof e}function u(e){var t;return(null===(t=e.stack)||void 0===t?void 0:t.split("\n").slice(1).join("\n"))||"no stack trace available"}return client.Client=class{constructor(e,r,n={}){var o,i;if(n=Object.assign({},n),this[s]=null!==(o=n.interceptors)&&void 0!==o?o:[],delete n.interceptors,this[l]=null!==(i=n.interceptor_providers)&&void 0!==i?i:[],delete n.interceptor_providers,this[s].length>0&&this[l].length>0)throw new Error("Both interceptors and interceptor_providers were passed as options to the client constructor. Only one of these is allowed.");if(this[p]=n.callInvocationTransformer,delete n.callInvocationTransformer,n.channelOverride)this[a]=n.channelOverride;else if(n.channelFactoryOverride){const t=n.channelFactoryOverride;delete n.channelFactoryOverride,this[a]=t(e,r,n)}else this[a]=new t.ChannelImplementation(e,r,n)}close(){this[a].close()}getChannel(){return this[a]}waitForReady(e,t){const n=o=>{if(o)return void t(new Error("Failed to connect before the deadline"));let i;try{i=this[a].getConnectivityState(!0)}catch(e){return void t(new Error("The channel has been closed"))}if(i===r.ConnectivityState.READY)t();else try{this[a].watchConnectivityState(i,e,n)}catch(e){t(new Error("The channel has been closed"))}};setImmediate(n)}checkOptionalUnaryResponseArguments(e,t,r){if(d(e))return{metadata:new o.Metadata,options:{},callback:e};if(d(t))return e instanceof o.Metadata?{metadata:e,options:{},callback:t}:{metadata:new o.Metadata,options:e,callback:t};if(!(e instanceof o.Metadata&&t instanceof Object&&d(r)))throw new Error("Incorrect arguments passed");return{metadata:e,options:t,callback:r}}makeUnaryRequest(t,r,o,d,c,f,h){var m,g;const y=this.checkOptionalUnaryResponseArguments(c,f,h),v={path:t,requestStream:!1,responseStream:!1,requestSerialize:r,responseDeserialize:o};let b={argument:d,metadata:y.metadata,call:new e.ClientUnaryCallImpl,channel:this[a],methodDefinition:v,callOptions:y.options,callback:y.callback};this[p]&&(b=this[p](b));const O=b.call,w={clientInterceptors:this[s],clientInterceptorProviders:this[l],callInterceptors:null!==(m=b.callOptions.interceptors)&&void 0!==m?m:[],callInterceptorProviders:null!==(g=b.callOptions.interceptor_providers)&&void 0!==g?g:[]},S=(0,i.getInterceptingCall)(w,b.methodDefinition,b.callOptions,b.channel);O.call=S;let _=null,P=!1,E=new Error;return S.start(b.metadata,{onReceiveMetadata:e=>{O.emit("metadata",e)},onReceiveMessage(e){null!==_&&S.cancelWithStatus(n.Status.UNIMPLEMENTED,"Too many responses received"),_=e},onReceiveStatus(t){if(!P){if(P=!0,t.code===n.Status.OK)if(null===_){const r=u(E);b.callback((0,e.callErrorFromStatus)({code:n.Status.UNIMPLEMENTED,details:"No message received",metadata:t.metadata},r))}else b.callback(null,_);else{const r=u(E);b.callback((0,e.callErrorFromStatus)(t,r))}E=null,O.emit("status",t)}}}),S.sendMessage(d),S.halfClose(),O}makeClientStreamRequest(t,r,o,d,c,f){var h,m;const g=this.checkOptionalUnaryResponseArguments(d,c,f),y={path:t,requestStream:!0,responseStream:!1,requestSerialize:r,responseDeserialize:o};let v={metadata:g.metadata,call:new e.ClientWritableStreamImpl(r),channel:this[a],methodDefinition:y,callOptions:g.options,callback:g.callback};this[p]&&(v=this[p](v));const b=v.call,O={clientInterceptors:this[s],clientInterceptorProviders:this[l],callInterceptors:null!==(h=v.callOptions.interceptors)&&void 0!==h?h:[],callInterceptorProviders:null!==(m=v.callOptions.interceptor_providers)&&void 0!==m?m:[]},w=(0,i.getInterceptingCall)(O,v.methodDefinition,v.callOptions,v.channel);b.call=w;let S=null,_=!1,P=new Error;return w.start(v.metadata,{onReceiveMetadata:e=>{b.emit("metadata",e)},onReceiveMessage(e){null!==S&&w.cancelWithStatus(n.Status.UNIMPLEMENTED,"Too many responses received"),S=e,w.startRead()},onReceiveStatus(t){if(!_){if(_=!0,t.code===n.Status.OK)if(null===S){const r=u(P);v.callback((0,e.callErrorFromStatus)({code:n.Status.UNIMPLEMENTED,details:"No message received",metadata:t.metadata},r))}else v.callback(null,S);else{const r=u(P);v.callback((0,e.callErrorFromStatus)(t,r))}P=null,b.emit("status",t)}}}),b}checkMetadataAndOptions(e,t){let r,n;return e instanceof o.Metadata?(r=e,n=t||{}):(n=e||{},r=new o.Metadata),{metadata:r,options:n}}makeServerStreamRequest(t,r,o,d,c,f){var h,m;const g=this.checkMetadataAndOptions(c,f),y={path:t,requestStream:!1,responseStream:!0,requestSerialize:r,responseDeserialize:o};let v={argument:d,metadata:g.metadata,call:new e.ClientReadableStreamImpl(o),channel:this[a],methodDefinition:y,callOptions:g.options};this[p]&&(v=this[p](v));const b=v.call,O={clientInterceptors:this[s],clientInterceptorProviders:this[l],callInterceptors:null!==(h=v.callOptions.interceptors)&&void 0!==h?h:[],callInterceptorProviders:null!==(m=v.callOptions.interceptor_providers)&&void 0!==m?m:[]},w=(0,i.getInterceptingCall)(O,v.methodDefinition,v.callOptions,v.channel);b.call=w;let S=!1,_=new Error;return w.start(v.metadata,{onReceiveMetadata(e){b.emit("metadata",e)},onReceiveMessage(e){b.push(e)},onReceiveStatus(t){if(!S){if(S=!0,b.push(null),t.code!==n.Status.OK){const r=u(_);b.emit("error",(0,e.callErrorFromStatus)(t,r))}_=null,b.emit("status",t)}}}),w.sendMessage(d),w.halfClose(),b}makeBidiStreamRequest(t,r,o,d,c){var f,h;const m=this.checkMetadataAndOptions(d,c),g={path:t,requestStream:!0,responseStream:!0,requestSerialize:r,responseDeserialize:o};let y={metadata:m.metadata,call:new e.ClientDuplexStreamImpl(r,o),channel:this[a],methodDefinition:g,callOptions:m.options};this[p]&&(y=this[p](y));const v=y.call,b={clientInterceptors:this[s],clientInterceptorProviders:this[l],callInterceptors:null!==(f=y.callOptions.interceptors)&&void 0!==f?f:[],callInterceptorProviders:null!==(h=y.callOptions.interceptor_providers)&&void 0!==h?h:[]},O=(0,i.getInterceptingCall)(b,y.methodDefinition,y.callOptions,y.channel);v.call=O;let w=!1,S=new Error;return O.start(y.metadata,{onReceiveMetadata(e){v.emit("metadata",e)},onReceiveMessage(e){v.push(e)},onReceiveStatus(t){if(!w){if(w=!0,v.push(null),t.code!==n.Status.OK){const r=u(S);v.emit("error",(0,e.callErrorFromStatus)(t,r))}S=null,v.emit("status",t)}}}),v}},client}function requireMakeClient(){if(hasRequiredMakeClient)return makeClient;hasRequiredMakeClient=1,Object.defineProperty(makeClient,"__esModule",{value:!0}),makeClient.makeClientConstructor=n,makeClient.loadPackageDefinition=function(e){const t={};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const a=e[i],s=i.split(".");if(s.some(e=>r(e)))continue;const l=s[s.length-1];let p=t;for(const e of s.slice(0,-1))p[e]||(p[e]={}),p=p[e];o(a)?p[l]=a:p[l]=n(a,l)}return t};const e=requireClient(),t={unary:e.Client.prototype.makeUnaryRequest,server_stream:e.Client.prototype.makeServerStreamRequest,client_stream:e.Client.prototype.makeClientStreamRequest,bidi:e.Client.prototype.makeBidiStreamRequest};function r(e){return["__proto__","prototype","constructor"].includes(e)}function n(n,o,i){class a extends e.Client{}return Object.keys(n).forEach(e=>{if(r(e))return;const o=n[e];let i;if("string"==typeof e&&"$"===e.charAt(0))throw new Error("Method names cannot start with $");i=o.requestStream?o.responseStream?"bidi":"client_stream":o.responseStream?"server_stream":"unary";const s=o.requestSerialize,l=o.responseDeserialize,p=function(e,t,r,n){return function(...o){return e.call(this,t,r,n,...o)}}(t[i],o.path,s,l);a.prototype[e]=p,Object.assign(a.prototype[e],o),o.originalName&&!r(o.originalName)&&(a.prototype[o.originalName]=a.prototype[e])}),a.service=n,a.serviceName=o,a}function o(e){return"format"in e}return makeClient}var src$5={},lodash_camelcase,hasRequiredLodash_camelcase;function requireLodash_camelcase(){if(hasRequiredLodash_camelcase)return lodash_camelcase;hasRequiredLodash_camelcase=1;var e="[object Symbol]",t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n="\\ud800-\\udfff",o="\\u0300-\\u036f\\ufe20-\\ufe23",i="\\u20d0-\\u20f0",a="\\u2700-\\u27bf",s="a-z\\xdf-\\xf6\\xf8-\\xff",l="A-Z\\xc0-\\xd6\\xd8-\\xde",p="\\ufe0e\\ufe0f",d="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",u="['’]",c="["+n+"]",f="["+d+"]",h="["+o+i+"]",m="\\d+",g="["+a+"]",y="["+s+"]",v="[^"+n+d+m+a+s+l+"]",b="\\ud83c[\\udffb-\\udfff]",O="[^"+n+"]",w="(?:\\ud83c[\\udde6-\\uddff]){2}",S="[\\ud800-\\udbff][\\udc00-\\udfff]",_="["+l+"]",P="\\u200d",E="(?:"+y+"|"+v+")",T="(?:"+_+"|"+v+")",C="(?:['’](?:d|ll|m|re|s|t|ve))?",R="(?:['’](?:D|LL|M|RE|S|T|VE))?",D="(?:"+h+"|"+b+")"+"?",k="["+p+"]?",x=k+D+("(?:"+P+"(?:"+[O,w,S].join("|")+")"+k+D+")*"),j="(?:"+[g,w,S].join("|")+")"+x,A="(?:"+[O+h+"?",h,w,S,c].join("|")+")",N=RegExp(u,"g"),I=RegExp(h,"g"),q=RegExp(b+"(?="+b+")|"+A+x,"g"),M=RegExp([_+"?"+y+"+"+C+"(?="+[f,_,"$"].join("|")+")",T+"+"+R+"(?="+[f,_+E,"$"].join("|")+")",_+"?"+E+"+"+C,_+"+"+R,m,j].join("|"),"g"),L=RegExp("["+P+n+o+i+p+"]"),F=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,B="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,V="object"==typeof self&&self&&self.Object===Object&&self,U=B||V||Function("return this")();var $=function(e){return function(t){return null==e?void 0:e[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"});function G(e){return L.test(e)}function H(e){return G(e)?function(e){return e.match(q)||[]}(e):function(e){return e.split("")}(e)}var z=Object.prototype.toString,W=U.Symbol,J=W?W.prototype:void 0,Y=J?J.toString:void 0;function K(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(e){return!!e&&"object"==typeof e}(t)&&z.call(t)==e}(t))return Y?Y.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}function X(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}(e,t,r)}function Q(e){return null==e?"":K(e)}var Z,ee=(Z=function(e,t,r){return t=t.toLowerCase(),e+(r?re(Q(t).toLowerCase()):t)},function(e){return function(e,t,r){for(var n=-1,o=e?e.length:0;++n<o;)r=t(r,e[n],n,e);return r}(function(e,r){return e=Q(e),void 0===r?function(e){return F.test(e)}(e)?function(e){return e.match(M)||[]}(e):function(e){return e.match(t)||[]}(e):e.match(r)||[]}(function(e){return(e=Q(e))&&e.replace(r,$).replace(I,"")}(e).replace(N,"")),Z,"")});var te,re=(te="toUpperCase",function(e){var t=G(e=Q(e))?H(e):void 0,r=t?t[0]:e.charAt(0),n=t?X(t,1).join(""):e.slice(1);return r[te]()+n});return lodash_camelcase=ee}var src$4={exports:{}},indexLight={exports:{}},indexMinimal={},minimal$1={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;return hasRequiredAspromise=1,aspromise=function(e,t){var r=new Array(arguments.length-1),n=0,o=2,i=!0;for(;o<arguments.length;)r[n++]=arguments[o++];return new Promise(function(o,a){r[n]=function(e){if(i)if(i=!1,e)a(e);else{for(var t=new Array(arguments.length-1),r=0;r<t.length;)t[r++]=arguments[r];o.apply(null,t)}};try{e.apply(t||null,r)}catch(e){i&&(i=!1,a(e))}})},aspromise}var base64={},hasRequiredBase64,eventemitter,hasRequiredEventemitter,float,hasRequiredFloat,inquire_1,hasRequiredInquire;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=1,function(e){var t=e;t.length=function(e){var t=e.length;if(!t)return 0;for(var r=0;--t%4>1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var r=new Array(64),n=new Array(123),o=0;o<64;)n[r[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;t.encode=function(e,t,n){for(var o,i=null,a=[],s=0,l=0;t<n;){var p=e[t++];switch(l){case 0:a[s++]=r[p>>2],o=(3&p)<<4,l=1;break;case 1:a[s++]=r[o|p>>4],o=(15&p)<<2,l=2;break;case 2:a[s++]=r[o|p>>6],a[s++]=r[63&p],l=0}s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,a)),s=0)}return l&&(a[s++]=r[o],a[s++]=61,1===l&&(a[s++]=61)),i?(s&&i.push(String.fromCharCode.apply(String,a.slice(0,s))),i.join("")):String.fromCharCode.apply(String,a.slice(0,s))};var i="invalid encoding";t.decode=function(e,t,r){for(var o,a=r,s=0,l=0;l<e.length;){var p=e.charCodeAt(l++);if(61===p&&s>1)break;if(void 0===(p=n[p]))throw Error(i);switch(s){case 0:o=p,s=1;break;case 1:t[r++]=o<<2|(48&p)>>4,o=p,s=2;break;case 2:t[r++]=(15&o)<<4|(60&p)>>2,o=p,s=3;break;case 3:t[r++]=(3&o)<<6|p,s=0}}if(1===s)throw Error(i);return r-a},t.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(base64)),base64}function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;function e(){this._listeners={}}return hasRequiredEventemitter=1,eventemitter=e,e.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},e.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],n=0;n<r.length;)r[n].fn===t?r.splice(n,1):++n;return this},e.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var r=[],n=1;n<arguments.length;)r.push(arguments[n++]);for(n=0;n<t.length;)t[n].fn.apply(t[n++].ctx,r)}return this},eventemitter}function requireFloat(){if(hasRequiredFloat)return float;function e(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),n=128===r[3];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3]}function i(e,n,o){t[0]=e,n[o]=r[3],n[o+1]=r[2],n[o+2]=r[1],n[o+3]=r[0]}function a(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],t[0]}function s(e,n){return r[3]=e[n],r[2]=e[n+1],r[1]=e[n+2],r[0]=e[n+3],t[0]}e.writeFloatLE=n?o:i,e.writeFloatBE=n?i:o,e.readFloatLE=n?a:s,e.readFloatBE=n?s:a}():function(){function i(e,t,r,n){var o=t<0?1:0;if(o&&(t=-t),0===t)e(1/t>0?0:2147483648,r,n);else if(isNaN(t))e(2143289344,r,n);else if(t>34028234663852886e22)e((o<<31|2139095040)>>>0,r,n);else if(t<11754943508222875e-54)e((o<<31|Math.round(t/1401298464324817e-60))>>>0,r,n);else{var i=Math.floor(Math.log(t)/Math.LN2);e((o<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,r,n)}}function a(e,t,r){var n=e(t,r),o=2*(n>>31)+1,i=n>>>23&255,a=8388607&n;return 255===i?a?NaN:o*(1/0):0===i?1401298464324817e-60*o*a:o*Math.pow(2,i-150)*(a+8388608)}e.writeFloatLE=i.bind(null,t),e.writeFloatBE=i.bind(null,r),e.readFloatLE=a.bind(null,n),e.readFloatBE=a.bind(null,o)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),n=128===r[7];function o(e,n,o){t[0]=e,n[o]=r[0],n[o+1]=r[1],n[o+2]=r[2],n[o+3]=r[3],n[o+4]=r[4],n[o+5]=r[5],n[o+6]=r[6],n[o+7]=r[7]}function i(e,n,o){t[0]=e,n[o]=r[7],n[o+1]=r[6],n[o+2]=r[5],n[o+3]=r[4],n[o+4]=r[3],n[o+5]=r[2],n[o+6]=r[1],n[o+7]=r[0]}function a(e,n){return r[0]=e[n],r[1]=e[n+1],r[2]=e[n+2],r[3]=e[n+3],r[4]=e[n+4],r[5]=e[n+5],r[6]=e[n+6],r[7]=e[n+7],t[0]}function s(e,n){return r[7]=e[n],r[6]=e[n+1],r[5]=e[n+2],r[4]=e[n+3],r[3]=e[n+4],r[2]=e[n+5],r[1]=e[n+6],r[0]=e[n+7],t[0]}e.writeDoubleLE=n?o:i,e.writeDoubleBE=n?i:o,e.readDoubleLE=n?a:s,e.readDoubleBE=n?s:a}():function(){function i(e,t,r,n,o,i){var a=n<0?1:0;if(a&&(n=-n),0===n)e(0,o,i+t),e(1/n>0?0:2147483648,o,i+r);else if(isNaN(n))e(0,o,i+t),e(2146959360,o,i+r);else if(n>17976931348623157e292)e(0,o,i+t),e((a<<31|2146435072)>>>0,o,i+r);else{var s;if(n<22250738585072014e-324)e((s=n/5e-324)>>>0,o,i+t),e((a<<31|s/4294967296)>>>0,o,i+r);else{var l=Math.floor(Math.log(n)/Math.LN2);1024===l&&(l=1023),e(4503599627370496*(s=n*Math.pow(2,-l))>>>0,o,i+t),e((a<<31|l+1023<<20|1048576*s&1048575)>>>0,o,i+r)}}}function a(e,t,r,n,o){var i=e(n,o+t),a=e(n,o+r),s=2*(a>>31)+1,l=a>>>20&2047,p=4294967296*(1048575&a)+i;return 2047===l?p?NaN:s*(1/0):0===l?5e-324*s*p:s*Math.pow(2,l-1075)*(p+4503599627370496)}e.writeDoubleLE=i.bind(null,t,0,4),e.writeDoubleBE=i.bind(null,r,4,0),e.readDoubleLE=a.bind(null,n,0,4),e.readDoubleBE=a.bind(null,o,4,0)}(),e}function t(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function r(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function n(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}return hasRequiredFloat=1,float=e(e)}function requireInquire(){if(hasRequiredInquire)return inquire_1;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}return hasRequiredInquire=1,inquire_1=inquire,inquire_1}var utf8={},hasRequiredUtf8,pool_1,hasRequiredPool,longbits,hasRequiredLongbits,hasRequiredMinimal$1,writer,hasRequiredWriter,writer_buffer,hasRequiredWriter_buffer,reader,hasRequiredReader,reader_buffer,hasRequiredReader_buffer;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=1,function(e){var t=e;t.length=function(e){for(var t=0,r=0,n=0;n<e.length;++n)(r=e.charCodeAt(n))<128?t+=1:r<2048?t+=2:55296==(64512&r)&&56320==(64512&e.charCodeAt(n+1))?(++n,t+=4):t+=3;return t},t.read=function(e,t,r){if(r-t<1)return"";for(var n,o=null,i=[],a=0;t<r;)(n=e[t++])<128?i[a++]=n:n>191&&n<224?i[a++]=(31&n)<<6|63&e[t++]:n>239&&n<365?(n=((7&n)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[a++]=55296+(n>>10),i[a++]=56320+(1023&n)):i[a++]=(15&n)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,i)),a=0);return o?(a&&o.push(String.fromCharCode.apply(String,i.slice(0,a))),o.join("")):String.fromCharCode.apply(String,i.slice(0,a))},t.write=function(e,t,r){for(var n,o,i=r,a=0;a<e.length;++a)(n=e.charCodeAt(a))<128?t[r++]=n:n<2048?(t[r++]=n>>6|192,t[r++]=63&n|128):55296==(64512&n)&&56320==(64512&(o=e.charCodeAt(a+1)))?(n=65536+((1023&n)<<10)+(1023&o),++a,t[r++]=n>>18|240,t[r++]=n>>12&63|128,t[r++]=n>>6&63|128,t[r++]=63&n|128):(t[r++]=n>>12|224,t[r++]=n>>6&63|128,t[r++]=63&n|128);return r-i}}(utf8)),utf8}function requirePool(){if(hasRequiredPool)return pool_1;return hasRequiredPool=1,pool_1=function(e,t,r){var n=r||8192,o=n>>>1,i=null,a=n;return function(r){if(r<1||r>o)return e(r);a+r>n&&(i=e(n),a=0);var s=t.call(i,a,a+=r);return 7&a&&(a=1+(7|a)),s}}}function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=t;var e=requireMinimal$1();function t(e,t){this.lo=e>>>0,this.hi=t>>>0}var r=t.zero=new t(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var n=t.zeroHash="\0\0\0\0\0\0\0\0";t.fromNumber=function(e){if(0===e)return r;var n=e<0;n&&(e=-e);var o=e>>>0,i=(e-o)/4294967296>>>0;return n&&(i=~i>>>0,o=~o>>>0,++o>4294967295&&(o=0,++i>4294967295&&(i=0))),new t(o,i)},t.from=function(n){if("number"==typeof n)return t.fromNumber(n);if(e.isString(n)){if(!e.Long)return t.fromNumber(parseInt(n,10));n=e.Long.fromString(n)}return n.low||n.high?new t(n.low>>>0,n.high>>>0):r},t.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},t.prototype.toLong=function(t){return e.Long?new e.Long(0|this.lo,0|this.hi,Boolean(t)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(t)}};var o=String.prototype.charCodeAt;return t.fromHash=function(e){return e===n?r:new t((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)},t.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},t.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},t.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},t.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10},longbits}function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=1,function(){var e=minimal$1;function t(e,t,r){for(var n=Object.keys(t),o=0;o<n.length;++o)void 0!==e[n[o]]&&r||(e[n[o]]=t[n[o]]);return e}function r(e){function r(e,n){if(!(this instanceof r))return new r(e,n);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,r):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),n&&t(this,n)}return r.prototype=Object.create(Error.prototype,{constructor:{value:r,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}}),r}e.asPromise=requireAspromise(),e.base64=requireBase64(),e.EventEmitter=requireEventemitter(),e.float=requireFloat(),e.inquire=requireInquire(),e.utf8=requireUtf8(),e.pool=requirePool(),e.LongBits=requireLongbits(),e.isNode=Boolean(void 0!==commonjsGlobal&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),e.global=e.isNode&&commonjsGlobal||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||minimal$1,e.emptyArray=Object.freeze?Object.freeze([]):[],e.emptyObject=Object.freeze?Object.freeze({}):{},e.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},e.isString=function(e){return"string"==typeof e||e instanceof String},e.isObject=function(e){return e&&"object"==typeof e},e.isset=e.isSet=function(e,t){var r=e[t];return!(null==r||!e.hasOwnProperty(t))&&("object"!=typeof r||(Array.isArray(r)?r.length:Object.keys(r).length)>0)},e.Buffer=function(){try{var t=e.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(e){return null}}(),e._Buffer_from=null,e._Buffer_allocUnsafe=null,e.newBuffer=function(t){return"number"==typeof t?e.Buffer?e._Buffer_allocUnsafe(t):new e.Array(t):e.Buffer?e._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},e.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,e.Long=e.global.dcodeIO&&e.global.dcodeIO.Long||e.global.Long||e.inquire("long"),e.key2Re=/^true|false|0|1$/,e.key32Re=/^-?(?:0|[1-9][0-9]*)$/,e.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,e.longToHash=function(t){return t?e.LongBits.from(t).toHash():e.LongBits.zeroHash},e.longFromHash=function(t,r){var n=e.LongBits.fromHash(t);return e.Long?e.Long.fromBits(n.lo,n.hi,r):n.toNumber(Boolean(r))},e.merge=t,e.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},e.newError=r,e.ProtocolError=r("ProtocolError"),e.oneOfGetter=function(e){for(var t={},r=0;r<e.length;++r)t[e[r]]=1;return function(){for(var e=Object.keys(this),r=e.length-1;r>-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},e.oneOfSetter=function(e){return function(t){for(var r=0;r<e.length;++r)e[r]!==t&&delete this[e[r]]}},e.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},e._configure=function(){var t=e.Buffer;t?(e._Buffer_from=t.from!==Uint8Array.from&&t.from||function(e,r){return new t(e,r)},e._Buffer_allocUnsafe=t.allocUnsafe||function(e){return new t(e)}):e._Buffer_from=e._Buffer_allocUnsafe=null}}()),minimal$1}function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=1,writer=l;var e,t=requireMinimal$1(),r=t.LongBits,n=t.base64,o=t.utf8;function i(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function a(){}function s(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function l(){this.len=0,this.head=new i(a,0,0),this.tail=this.head,this.states=null}var p=function(){return t.Buffer?function(){return(l.create=function(){return new e})()}:function(){return new l}};function d(e,t,r){t[r]=255&e}function u(e,t){this.len=e,this.next=void 0,this.val=t}function c(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function f(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}l.create=p(),l.alloc=function(e){return new t.Array(e)},t.Array!==Array&&(l.alloc=t.pool(l.alloc,t.Array.prototype.subarray)),l.prototype._push=function(e,t,r){return this.tail=this.tail.next=new i(e,t,r),this.len+=t,this},u.prototype=Object.create(i.prototype),u.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},l.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new u((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},l.prototype.int32=function(e){return e<0?this._push(c,10,r.fromNumber(e)):this.uint32(e)},l.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},l.prototype.uint64=function(e){var t=r.from(e);return this._push(c,t.length(),t)},l.prototype.int64=l.prototype.uint64,l.prototype.sint64=function(e){var t=r.from(e).zzEncode();return this._push(c,t.length(),t)},l.prototype.bool=function(e){return this._push(d,1,e?1:0)},l.prototype.fixed32=function(e){return this._push(f,4,e>>>0)},l.prototype.sfixed32=l.prototype.fixed32,l.prototype.fixed64=function(e){var t=r.from(e);return this._push(f,4,t.lo)._push(f,4,t.hi)},l.prototype.sfixed64=l.prototype.fixed64,l.prototype.float=function(e){return this._push(t.float.writeFloatLE,4,e)},l.prototype.double=function(e){return this._push(t.float.writeDoubleLE,8,e)};var h=t.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var n=0;n<e.length;++n)t[r+n]=e[n]};return l.prototype.bytes=function(e){var r=e.length>>>0;if(!r)return this._push(d,1,0);if(t.isString(e)){var o=l.alloc(r=n.length(e));n.decode(e,o,0),e=o}return this.uint32(r)._push(h,r,e)},l.prototype.string=function(e){var t=o.length(e);return t?this.uint32(t)._push(o.write,t,e):this._push(d,1,0)},l.prototype.fork=function(){return this.states=new s(this),this.head=this.tail=new i(a,0,0),this.len=0,this},l.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 i(a,0,0),this.len=0),this},l.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},l.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},l._configure=function(t){e=t,l.create=p(),e._configure()},writer}function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=1,writer_buffer=r;var e=requireWriter();(r.prototype=Object.create(e.prototype)).constructor=r;var t=requireMinimal$1();function r(){e.call(this)}function n(e,r,n){e.length<40?t.utf8.write(e,r,n):r.utf8Write?r.utf8Write(e,n):r.write(e,n)}return r._configure=function(){r.alloc=t._Buffer_allocUnsafe,r.writeBytesBuffer=t.Buffer&&t.Buffer.prototype instanceof Uint8Array&&"set"===t.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var n=0;n<e.length;)t[r++]=e[n++]}},r.prototype.bytes=function(e){t.isString(e)&&(e=t._Buffer_from(e,"base64"));var n=e.length>>>0;return this.uint32(n),n&&this._push(r.writeBytesBuffer,n,e),this},r.prototype.string=function(e){var r=t.Buffer.byteLength(e);return this.uint32(r),r&&this._push(n,r,e),this},r._configure(),writer_buffer}function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=1,reader=i;var e,t=requireMinimal$1(),r=t.LongBits,n=t.utf8;function o(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function i(e){this.buf=e,this.pos=0,this.len=e.length}var a="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new i(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new i(e);throw Error("illegal buffer")},s=function(){return t.Buffer?function(r){return(i.create=function(r){return t.Buffer.isBuffer(r)?new e(r):a(r)})(r)}:a};function l(){var e=new r(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw o(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+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|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function p(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw o(this,8);return new r(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}return i.create=s(),i.prototype._slice=t.Array.prototype.subarray||t.Array.prototype.slice,i.prototype.uint32=function(){var e=4294967295;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return e;if(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return e;if((this.pos+=5)>this.len)throw this.pos=this.len,o(this,10);return e}}(),i.prototype.int32=function(){return 0|this.uint32()},i.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},i.prototype.bool=function(){return 0!==this.uint32()},i.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return p(this.buf,this.pos+=4)},i.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return 0|p(this.buf,this.pos+=4)},i.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var e=t.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},i.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var e=t.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},i.prototype.bytes=function(){var e=this.uint32(),r=this.pos,n=this.pos+e;if(n>this.len)throw o(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(r,n);if(r===n){var i=t.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,r,n)},i.prototype.string=function(){var e=this.bytes();return n.read(e,0,e.length)},i.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw o(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw o(this)}while(128&this.buf[this.pos++]);return this},i.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},i._configure=function(r){e=r,i.create=s(),e._configure();var n=t.Long?"toLong":"toNumber";t.merge(i.prototype,{int64:function(){return l.call(this)[n](!1)},uint64:function(){return l.call(this)[n](!0)},sint64:function(){return l.call(this).zzDecode()[n](!1)},fixed64:function(){return d.call(this)[n](!0)},sfixed64:function(){return d.call(this)[n](!1)}})},reader}function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=1,reader_buffer=r;var e=requireReader();(r.prototype=Object.create(e.prototype)).constructor=r;var t=requireMinimal$1();function r(t){e.call(this,t)}return r._configure=function(){t.Buffer&&(r.prototype._slice=t.Buffer.prototype.slice)},r.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},r._configure(),reader_buffer}var rpc={},service$1,hasRequiredService$1,hasRequiredRpc,roots,hasRequiredRoots,hasRequiredIndexMinimal;function requireService$1(){if(hasRequiredService$1)return service$1;hasRequiredService$1=1,service$1=t;var e=requireMinimal$1();function t(t,r,n){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");e.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=Boolean(r),this.responseDelimited=Boolean(n)}return(t.prototype=Object.create(e.EventEmitter.prototype)).constructor=t,t.prototype.rpcCall=function t(r,n,o,i,a){if(!i)throw TypeError("request must be specified");var s=this;if(!a)return e.asPromise(t,s,r,n,o,i);if(s.rpcImpl)try{return s.rpcImpl(r,n[s.requestDelimited?"encodeDelimited":"encode"](i).finish(),function(e,t){if(e)return s.emit("error",e,r),a(e);if(null!==t){if(!(t instanceof o))try{t=o[s.responseDelimited?"decodeDelimited":"decode"](t)}catch(e){return s.emit("error",e,r),a(e)}return s.emit("data",t,r),a(null,t)}s.end(!0)})}catch(e){return s.emit("error",e,r),void setTimeout(function(){a(e)},0)}else setTimeout(function(){a(Error("already ended"))},0)},t.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},service$1}function requireRpc(){return hasRequiredRpc||(hasRequiredRpc=1,function(e){e.Service=requireService$1()}(rpc)),rpc}function requireRoots(){return hasRequiredRoots?roots:(hasRequiredRoots=1,roots={})}function requireIndexMinimal(){return hasRequiredIndexMinimal||(hasRequiredIndexMinimal=1,function(){var e=indexMinimal;function t(){e.util._configure(),e.Writer._configure(e.BufferWriter),e.Reader._configure(e.BufferReader)}e.build="minimal",e.Writer=requireWriter(),e.BufferWriter=requireWriter_buffer(),e.Reader=requireReader(),e.BufferReader=requireReader_buffer(),e.util=requireMinimal$1(),e.rpc=requireRpc(),e.roots=requireRoots(),e.configure=t,t()}()),indexMinimal}var types$1={},util$5={exports:{}},codegen_1,hasRequiredCodegen,fetch_1,hasRequiredFetch;function requireCodegen(){if(hasRequiredCodegen)return codegen_1;function e(t,r){"string"==typeof t&&(r=t,t=void 0);var n=[];function o(t){if("string"!=typeof t){var r=i();if(e.verbose&&console.log("codegen: "+r),r="return "+r,t){for(var a=Object.keys(t),s=new Array(a.length+1),l=new Array(a.length),p=0;p<a.length;)s[p]=a[p],l[p]=t[a[p++]];return s[p]=r,Function.apply(null,s).apply(null,l)}return Function(r)()}for(var d=new Array(arguments.length-1),u=0;u<d.length;)d[u]=arguments[++u];if(u=0,t=t.replace(/%([%dfijs])/g,function(e,t){var r=d[u++];switch(t){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"%"}),u!==d.length)throw Error("parameter count mismatch");return n.push(t),o}function i(e){return"function "+(e||r||"")+"("+(t&&t.join(",")||"")+"){\n "+n.join("\n ")+"\n}"}return o.toString=i,o}return hasRequiredCodegen=1,codegen_1=e,e.verbose=!1,codegen_1}function requireFetch(){if(hasRequiredFetch)return fetch_1;hasRequiredFetch=1,fetch_1=r;var e=requireAspromise(),t=requireInquire()("fs");function r(n,o,i){return"function"==typeof o?(i=o,o={}):o||(o={}),i?!o.xhr&&t&&t.readFile?t.readFile(n,function(e,t){return e&&"undefined"!=typeof XMLHttpRequest?r.xhr(n,o,i):e?i(e):i(null,o.binary?t:t.toString("utf8"))}):r.xhr(n,o,i):e(r,this,n,o)}return r.xhr=function(e,t,r){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(4===n.readyState){if(0!==n.status&&200!==n.status)return r(Error("status "+n.status));if(t.binary){var e=n.response;if(!e){e=[];for(var o=0;o<n.responseText.length;++o)e.push(255&n.responseText.charCodeAt(o))}return r(null,"undefined"!=typeof Uint8Array?new Uint8Array(e):e)}return r(null,n.responseText)}},t.binary&&("overrideMimeType"in n&&n.overrideMimeType("text/plain; charset=x-user-defined"),n.responseType="arraybuffer"),n.open("GET",e),n.send()},fetch_1}var path={},hasRequiredPath,namespace,hasRequiredNamespace,mapfield,hasRequiredMapfield,method,hasRequiredMethod,service,hasRequiredService,message,hasRequiredMessage,decoder_1,hasRequiredDecoder,verifier_1,hasRequiredVerifier;function requirePath(){return hasRequiredPath||(hasRequiredPath=1,function(e){var t=e,r=t.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},n=t.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),n=r(e),o="";n&&(o=t.shift()+"/");for(var i=0;i<t.length;)".."===t[i]?i>0&&".."!==t[i-1]?t.splice(--i,2):n?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return o+t.join("/")};t.resolve=function(e,t,o){return o||(t=n(t)),r(t)?t:(o||(e=n(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?n(e+"/"+t):t)}}(path)),path}function requireNamespace(){if(hasRequiredNamespace)return namespace;hasRequiredNamespace=1,namespace=l;var e=requireObject();((l.prototype=Object.create(e.prototype)).constructor=l).className="Namespace";var t,r,n,o=requireField(),i=requireUtil$5(),a=requireOneof();function s(e,t){if(e&&e.length){for(var r={},n=0;n<e.length;++n)r[e[n].name]=e[n].toJSON(t);return r}}function l(t,r){e.call(this,t,r),this.nested=void 0,this._nestedArray=null,this._lookupCache={},this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}function p(e){e._nestedArray=null,e._lookupCache={};for(var t=e;t=t.parent;)t._lookupCache={};return e}return l.fromJSON=function(e,t){return new l(e,t.options).addJSON(t.nested)},l.arrayToJSON=s,l.isReservedId=function(e,t){if(e)for(var r=0;r<e.length;++r)if("string"!=typeof e[r]&&e[r][0]<=t&&e[r][1]>t)return!0;return!1},l.isReservedName=function(e,t){if(e)for(var r=0;r<e.length;++r)if(e[r]===t)return!0;return!1},Object.defineProperty(l.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=i.toArray(this.nested))}}),l.prototype.toJSON=function(e){return i.toObject(["options",this.options,"nested",s(this.nestedArray,e)])},l.prototype.addJSON=function(e){if(e)for(var i,a=Object.keys(e),s=0;s<a.length;++s)i=e[a[s]],this.add((void 0!==i.fields?t.fromJSON:void 0!==i.values?n.fromJSON:void 0!==i.methods?r.fromJSON:void 0!==i.id?o.fromJSON:l.fromJSON)(a[s],i));return this},l.prototype.get=function(e){return this.nested&&this.nested[e]||null},l.prototype.getEnum=function(e){if(this.nested&&this.nested[e]instanceof n)return this.nested[e].values;throw Error("no such enum: "+e)},l.prototype.add=function(e){if(!(e instanceof o&&void 0!==e.extend||e instanceof t||e instanceof a||e instanceof n||e instanceof r||e instanceof l))throw TypeError("object must be a valid nested object");if(this.nested){var i=this.get(e.name);if(i){if(!(i instanceof l&&e instanceof l)||i instanceof t||i instanceof r)throw Error("duplicate name '"+e.name+"' in "+this);for(var s=i.nestedArray,d=0;d<s.length;++d)e.add(s[d]);this.remove(i),this.nested||(this.nested={}),e.setOptions(i.options,!0)}}else this.nested={};this.nested[e.name]=e,this instanceof t||this instanceof r||this instanceof n||this instanceof o||e._edition||(e._edition=e._defaultEdition),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;for(var u=this;u=u.parent;)u._needsRecursiveFeatureResolution=!0,u._needsRecursiveResolve=!0;return e.onAdd(this),p(this)},l.prototype.remove=function(t){if(!(t instanceof e))throw TypeError("object must be a ReflectionObject");if(t.parent!==this)throw Error(t+" is not a member of "+this);return delete this.nested[t.name],Object.keys(this.nested).length||(this.nested=void 0),t.onRemove(this),p(this)},l.prototype.define=function(e,t){if(i.isString(e))e=e.split(".");else if(!Array.isArray(e))throw TypeError("illegal path");if(e&&e.length&&""===e[0])throw Error("path must be relative");for(var r=this;e.length>0;){var n=e.shift();if(r.nested&&r.nested[n]){if(!((r=r.nested[n])instanceof l))throw Error("path conflicts with non-namespace objects")}else r.add(r=new l(n))}return t&&r.addJSON(t),r},l.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t<e.length;)e[t]instanceof l?e[t++].resolveAll():e[t++].resolve();return this._needsRecursiveResolve=!1,this},l.prototype._resolveFeaturesRecursive=function(t){return this._needsRecursiveFeatureResolution?(this._needsRecursiveFeatureResolution=!1,t=this._edition||t,e.prototype._resolveFeaturesRecursive.call(this,t),this.nestedArray.forEach(e=>{e._resolveFeaturesRecursive(t)}),this):this},l.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),i.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var n=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var o=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+n];if(o&&(!t||t.indexOf(o.constructor)>-1))return o;if((o=this._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;if(r)return null;for(var a=this;a.parent;){if((o=a.parent._lookupImpl(e,n))&&(!t||t.indexOf(o.constructor)>-1))return o;a=a.parent}return null},l.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),n=null;if(r)1===e.length?n=r:r instanceof l&&(e=e.slice(1),n=r._lookupImpl(e,e.join(".")));else for(var o=0;o<this.nestedArray.length;++o)this._nestedArray[o]instanceof l&&(r=this._nestedArray[o]._lookupImpl(e,t))&&(n=r);return this._lookupCache[t]=n,n},l.prototype.lookupType=function(e){var r=this.lookup(e,[t]);if(!r)throw Error("no such type: "+e);return r},l.prototype.lookupEnum=function(e){var t=this.lookup(e,[n]);if(!t)throw Error("no such Enum '"+e+"' in "+this);return t},l.prototype.lookupTypeOrEnum=function(e){var r=this.lookup(e,[t,n]);if(!r)throw Error("no such Type or Enum '"+e+"' in "+this);return r},l.prototype.lookupService=function(e){var t=this.lookup(e,[r]);if(!t)throw Error("no such Service '"+e+"' in "+this);return t},l._configure=function(e,o,i){t=e,r=o,n=i},namespace}function requireMapfield(){if(hasRequiredMapfield)return mapfield;hasRequiredMapfield=1,mapfield=n;var e=requireField();((n.prototype=Object.create(e.prototype)).constructor=n).className="MapField";var t=requireTypes(),r=requireUtil$5();function n(t,n,o,i,a,s){if(e.call(this,t,n,i,void 0,void 0,a,s),!r.isString(o))throw TypeError("keyType must be a string");this.keyType=o,this.resolvedKeyType=null,this.map=!0}return n.fromJSON=function(e,t){return new n(e,t.id,t.keyType,t.type,t.options,t.comment)},n.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return r.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},n.prototype.resolve=function(){if(this.resolved)return this;if(void 0===t.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return e.prototype.resolve.call(this)},n.d=function(e,t,o){return"function"==typeof o?o=r.decorateType(o).name:o&&"object"==typeof o&&(o=r.decorateEnum(o).name),function(i,a){r.decorateType(i.constructor).add(new n(a,e,t,o))}},mapfield}function requireMethod(){if(hasRequiredMethod)return method;hasRequiredMethod=1,method=r;var e=requireObject();((r.prototype=Object.create(e.prototype)).constructor=r).className="Method";var t=requireUtil$5();function r(r,n,o,i,a,s,l,p,d){if(t.isObject(a)?(l=a,a=s=void 0):t.isObject(s)&&(l=s,s=void 0),void 0!==n&&!t.isString(n))throw TypeError("type must be a string");if(!t.isString(o))throw TypeError("requestType must be a string");if(!t.isString(i))throw TypeError("responseType must be a string");e.call(this,r,l),this.type=n||"rpc",this.requestType=o,this.requestStream=!!a||void 0,this.responseType=i,this.responseStream=!!s||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=p,this.parsedOptions=d}return r.fromJSON=function(e,t){return new r(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},r.prototype.toJSON=function(e){var r=!!e&&Boolean(e.keepComments);return t.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",r?this.comment:void 0,"parsedOptions",this.parsedOptions])},r.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),e.prototype.resolve.call(this))},method}function requireService(){if(hasRequiredService)return service;hasRequiredService=1,service=o;var e=requireNamespace();((o.prototype=Object.create(e.prototype)).constructor=o).className="Service";var t=requireMethod(),r=requireUtil$5(),n=requireRpc();function o(t,r){e.call(this,t,r),this.methods={},this._methodsArray=null}function i(e){return e._methodsArray=null,e}return o.fromJSON=function(e,r){var n=new o(e,r.options);if(r.methods)for(var i=Object.keys(r.methods),a=0;a<i.length;++a)n.add(t.fromJSON(i[a],r.methods[i[a]]));return r.nested&&n.addJSON(r.nested),r.edition&&(n._edition=r.edition),n.comment=r.comment,n._defaultEdition="proto3",n},o.prototype.toJSON=function(t){var n=e.prototype.toJSON.call(this,t),o=!!t&&Boolean(t.keepComments);return r.toObject(["edition",this._editionToJSON(),"options",n&&n.options||void 0,"methods",e.arrayToJSON(this.methodsArray,t)||{},"nested",n&&n.nested||void 0,"comment",o?this.comment:void 0])},Object.defineProperty(o.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=r.toArray(this.methods))}}),o.prototype.get=function(t){return this.methods[t]||e.prototype.get.call(this,t)},o.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;e.prototype.resolve.call(this);for(var t=this.methodsArray,r=0;r<t.length;++r)t[r].resolve();return this},o.prototype._resolveFeaturesRecursive=function(t){return this._needsRecursiveFeatureResolution?(t=this._edition||t,e.prototype._resolveFeaturesRecursive.call(this,t),this.methodsArray.forEach(e=>{e._resolveFeaturesRecursive(t)}),this):this},o.prototype.add=function(r){if(this.get(r.name))throw Error("duplicate name '"+r.name+"' in "+this);return r instanceof t?(this.methods[r.name]=r,r.parent=this,i(this)):e.prototype.add.call(this,r)},o.prototype.remove=function(r){if(r instanceof t){if(this.methods[r.name]!==r)throw Error(r+" is not a member of "+this);return delete this.methods[r.name],r.parent=null,i(this)}return e.prototype.remove.call(this,r)},o.prototype.create=function(e,t,o){for(var i,a=new n.Service(e,t,o),s=0;s<this.methodsArray.length;++s){var l=r.lcFirst((i=this._methodsArray[s]).resolve().name).replace(/[^$\w_]/g,"");a[l]=r.codegen(["r","c"],r.isReserved(l)?l+"_":l)("return this.rpcCall(m,q,s,r,c)")({m:i,q:i.resolvedRequestType.ctor,s:i.resolvedResponseType.ctor})}return a},service}function requireMessage(){if(hasRequiredMessage)return message;hasRequiredMessage=1,message=t;var e=requireMinimal$1();function t(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)this[t[r]]=e[t[r]]}return t.create=function(e){return this.$type.create(e)},t.encode=function(e,t){return this.$type.encode(e,t)},t.encodeDelimited=function(e,t){return this.$type.encodeDelimited(e,t)},t.decode=function(e){return this.$type.decode(e)},t.decodeDelimited=function(e){return this.$type.decodeDelimited(e)},t.verify=function(e){return this.$type.verify(e)},t.fromObject=function(e){return this.$type.fromObject(e)},t.toObject=function(e,t){return this.$type.toObject(e,t)},t.prototype.toJSON=function(){return this.$type.toObject(this,e.toJSONOptions)},message}function requireDecoder(){if(hasRequiredDecoder)return decoder_1;hasRequiredDecoder=1,decoder_1=function(o){for(var i=r.codegen(["r","l","e"],o.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(o.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){"),a=0;a<o.fieldsArray.length;++a){var s=o._fieldsArray[a].resolve(),l=s.resolvedType instanceof e?"int32":s.type,p="m"+r.safeProp(s.name);i("case %i: {",s.id),s.map?(i("if(%s===util.emptyObject)",p)("%s={}",p)("var c2 = r.uint32()+r.pos"),void 0!==t.defaults[s.keyType]?i("k=%j",t.defaults[s.keyType]):i("k=null"),void 0!==t.defaults[l]?i("value=%j",t.defaults[l]):i("value=null"),i("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",s.keyType)("case 2:"),void 0===t.basic[l]?i("value=types[%i].decode(r,r.uint32())",a):i("value=r.%s()",l),i("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==t.long[s.keyType]?i('%s[typeof k==="object"?util.longToHash(k):k]=value',p):i("%s[k]=value",p)):s.repeated?(i("if(!(%s&&%s.length))",p,p)("%s=[]",p),void 0!==t.packed[l]&&i("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",p,l)("}else"),void 0===t.basic[l]?i(s.delimited?"%s.push(types[%i].decode(r,undefined,((t&~7)|4)))":"%s.push(types[%i].decode(r,r.uint32()))",p,a):i("%s.push(r.%s())",p,l)):void 0===t.basic[l]?i(s.delimited?"%s=types[%i].decode(r,undefined,((t&~7)|4))":"%s=types[%i].decode(r,r.uint32())",p,a):i("%s=r.%s()",p,l),i("break")("}")}for(i("default:")("r.skipType(t&7)")("break")("}")("}"),a=0;a<o._fieldsArray.length;++a){var d=o._fieldsArray[a];d.required&&i("if(!m.hasOwnProperty(%j))",d.name)("throw util.ProtocolError(%j,{instance:m})",n(d))}return i("return m")};var e=require_enum$1(),t=requireTypes(),r=requireUtil$5();function n(e){return"missing required '"+e.name+"'"}return decoder_1}function requireVerifier(){if(hasRequiredVerifier)return verifier_1;hasRequiredVerifier=1,verifier_1=function(e){var i=t.codegen(["m"],e.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),a=e.oneofsArray,s={};a.length&&i("var p={}");for(var l=0;l<e.fieldsArray.length;++l){var p=e._fieldsArray[l].resolve(),d="m"+t.safeProp(p.name);if(p.optional&&i("if(%s!=null&&m.hasOwnProperty(%j)){",d,p.name),p.map)i("if(!util.isObject(%s))",d)("return%j",r(p,"object"))("var k=Object.keys(%s)",d)("for(var i=0;i<k.length;++i){"),o(i,p,"k[i]"),n(i,p,l,d+"[k[i]]")("}");else if(p.repeated)i("if(!Array.isArray(%s))",d)("return%j",r(p,"array"))("for(var i=0;i<%s.length;++i){",d),n(i,p,l,d+"[i]")("}");else{if(p.partOf){var u=t.safeProp(p.partOf.name);1===s[p.partOf.name]&&i("if(p%s===1)",u)("return%j",p.partOf.name+": multiple values"),s[p.partOf.name]=1,i("p%s=1",u)}n(i,p,l,d)}p.optional&&i("}")}return i("return null")};var e=require_enum$1(),t=requireUtil$5();function r(e,t){return e.name+": "+t+(e.repeated&&"array"!==t?"[]":e.map&&"object"!==t?"{k:"+e.keyType+"}":"")+" expected"}function n(t,n,o,i){if(n.resolvedType)if(n.resolvedType instanceof e){t("switch(%s){",i)("default:")("return%j",r(n,"enum value"));for(var a=Object.keys(n.resolvedType.values),s=0;s<a.length;++s)t("case %i:",n.resolvedType.values[a[s]]);t("break")("}")}else t("{")("var e=types[%i].verify(%s);",o,i)("if(e)")("return%j+e",n.name+".")("}");else switch(n.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":t("if(!util.isInteger(%s))",i)("return%j",r(n,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":t("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",i,i,i,i)("return%j",r(n,"integer|Long"));break;case"float":case"double":t('if(typeof %s!=="number")',i)("return%j",r(n,"number"));break;case"bool":t('if(typeof %s!=="boolean")',i)("return%j",r(n,"boolean"));break;case"string":t("if(!util.isString(%s))",i)("return%j",r(n,"string"));break;case"bytes":t('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',i,i,i)("return%j",r(n,"buffer"))}return t}function o(e,t,n){switch(t.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":e("if(!util.key32Re.test(%s))",n)("return%j",r(t,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":e("if(!util.key64Re.test(%s))",n)("return%j",r(t,"integer|Long key"));break;case"bool":e("if(!util.key2Re.test(%s))",n)("return%j",r(t,"boolean key"))}return e}return verifier_1}var converter={},hasRequiredConverter;function requireConverter(){return hasRequiredConverter||(hasRequiredConverter=1,function(e){var t=e,r=require_enum$1(),n=requireUtil$5();function o(e,t,n,o){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof r){e("switch(d%s){",o);for(var a=t.resolvedType.values,s=Object.keys(a),l=0;l<s.length;++l)a[s[l]]!==t.typeDefault||i||(e("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',o,o,o),t.repeated||e("break"),i=!0),e("case%j:",s[l])("case %i:",a[s[l]])("m%s=%j",o,a[s[l]])("break");e("}")}else e('if(typeof d%s!=="object")',o)("throw TypeError(%j)",t.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",o,n,o);else{var p=!1;switch(t.type){case"double":case"float":e("m%s=Number(d%s)",o,o);break;case"uint32":case"fixed32":e("m%s=d%s>>>0",o,o);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",o,o);break;case"uint64":p=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",o,o,p)('else if(typeof d%s==="string")',o)("m%s=parseInt(d%s,10)",o,o)('else if(typeof d%s==="number")',o)("m%s=d%s",o,o)('else if(typeof d%s==="object")',o)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",o,o,o,p?"true":"");break;case"bytes":e('if(typeof d%s==="string")',o)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",o,o,o)("else if(d%s.length >= 0)",o)("m%s=d%s",o,o);break;case"string":e("m%s=String(d%s)",o,o);break;case"bool":e("m%s=Boolean(d%s)",o,o)}}return e}function i(e,t,n,o){if(t.resolvedType)t.resolvedType instanceof r?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",o,n,o,o,n,o,o):e("d%s=types[%i].toObject(m%s,o)",o,n,o);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",o,o,o,o);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',o)("d%s=o.longs===String?String(m%s):m%s",o,o,o)("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",o,o,o,o,i?"true":"",o);break;case"bytes":e("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",o,o,o,o,o);break;default:e("d%s=m%s",o,o)}}return e}t.fromObject=function(e){var t=e.fieldsArray,i=n.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return i("return new this.ctor");i("var m=new this.ctor");for(var a=0;a<t.length;++a){var s=t[a].resolve(),l=n.safeProp(s.name);s.map?(i("if(d%s){",l)('if(typeof d%s!=="object")',l)("throw TypeError(%j)",s.fullName+": object expected")("m%s={}",l)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",l),o(i,s,a,l+"[ks[i]]")("}")("}")):s.repeated?(i("if(d%s){",l)("if(!Array.isArray(d%s))",l)("throw TypeError(%j)",s.fullName+": array expected")("m%s=[]",l)("for(var i=0;i<d%s.length;++i){",l),o(i,s,a,l+"[i]")("}")("}")):(s.resolvedType instanceof r||i("if(d%s!=null){",l),o(i,s,a,l),s.resolvedType instanceof r||i("}"))}return i("return m")},t.toObject=function(e){var t=e.fieldsArray.slice().sort(n.compareFieldsById);if(!t.length)return n.codegen()("return {}");for(var o=n.codegen(["m","o"],e.name+"$toObject")("if(!o)")("o={}")("var d={}"),a=[],s=[],l=[],p=0;p<t.length;++p)t[p].partOf||(t[p].resolve().repeated?a:t[p].map?s:l).push(t[p]);if(a.length){for(o("if(o.arrays||o.defaults){"),p=0;p<a.length;++p)o("d%s=[]",n.safeProp(a[p].name));o("}")}if(s.length){for(o("if(o.objects||o.defaults){"),p=0;p<s.length;++p)o("d%s={}",n.safeProp(s[p].name));o("}")}if(l.length){for(o("if(o.defaults){"),p=0;p<l.length;++p){var d=l[p],u=n.safeProp(d.name);if(d.resolvedType instanceof r)o("d%s=o.enums===String?%j:%j",u,d.resolvedType.valuesById[d.typeDefault],d.typeDefault);else if(d.long)o("if(util.Long){")("var n=new util.Long(%i,%i,%j)",d.typeDefault.low,d.typeDefault.high,d.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",u)("}else")("d%s=o.longs===String?%j:%i",u,d.typeDefault.toString(),d.typeDefault.toNumber());else if(d.bytes){var c="["+Array.prototype.slice.call(d.typeDefault).join(",")+"]";o("if(o.bytes===String)d%s=%j",u,String.fromCharCode.apply(String,d.typeDefault))("else{")("d%s=%s",u,c)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",u,u)("}")}else o("d%s=%j",u,d.typeDefault)}o("}")}var f=!1;for(p=0;p<t.length;++p){d=t[p];var h=e._fieldsArray.indexOf(d);u=n.safeProp(d.name);d.map?(f||(f=!0,o("var ks2")),o("if(m%s&&(ks2=Object.keys(m%s)).length){",u,u)("d%s={}",u)("for(var j=0;j<ks2.length;++j){"),i(o,d,h,u+"[ks2[j]]")("}")):d.repeated?(o("if(m%s&&m%s.length){",u,u)("d%s=[]",u)("for(var j=0;j<m%s.length;++j){",u),i(o,d,h,u+"[j]")("}")):(o("if(m%s!=null&&m.hasOwnProperty(%j)){",u,d.name),i(o,d,h,u),d.partOf&&o("if(o.oneofs)")("d%s=%j",n.safeProp(d.partOf.name),d.name)),o("}")}return o("return d")}}(converter)),converter}var wrappers$2={},hasRequiredWrappers$1,type,hasRequiredType,root,hasRequiredRoot,hasRequiredUtil$5,hasRequiredTypes,field,hasRequiredField,oneof,hasRequiredOneof,object,hasRequiredObject,_enum$1,hasRequired_enum$1,encoder_1,hasRequiredEncoder,hasRequiredIndexLight,tokenize_1,hasRequiredTokenize,parse_1,hasRequiredParse,common_1,hasRequiredCommon$2,hasRequiredSrc$7,protobufjs,hasRequiredProtobufjs;function requireWrappers$1(){return hasRequiredWrappers$1||(hasRequiredWrappers$1=1,function(){var e=wrappers$2,t=requireMessage();e[".google.protobuf.Any"]={fromObject:function(e){if(e&&e["@type"]){var t=e["@type"].substring(e["@type"].lastIndexOf("/")+1),r=this.lookup(t);if(r){var n="."===e["@type"].charAt(0)?e["@type"].slice(1):e["@type"];return-1===n.indexOf("/")&&(n="/"+n),this.create({type_url:n,value:r.encode(r.fromObject(e)).finish()})}}return this.fromObject(e)},toObject:function(e,r){var n="",o="";if(r&&r.json&&e.type_url&&e.value){o=e.type_url.substring(e.type_url.lastIndexOf("/")+1),n=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var i=this.lookup(o);i&&(e=i.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof t){var a=e.$type.toObject(e,r);return""===n&&(n="type.googleapis.com/"),o=n+("."===e.$type.fullName[0]?e.$type.fullName.slice(1):e.$type.fullName),a["@type"]=o,a}return this.toObject(e,r)}}}()),wrappers$2}function requireType(){if(hasRequiredType)return type;hasRequiredType=1,type=m;var e=requireNamespace();((m.prototype=Object.create(e.prototype)).constructor=m).className="Type";var t=require_enum$1(),r=requireOneof(),n=requireField(),o=requireMapfield(),i=requireService(),a=requireMessage(),s=requireReader(),l=requireWriter(),p=requireUtil$5(),d=requireEncoder(),u=requireDecoder(),c=requireVerifier(),f=requireConverter(),h=requireWrappers$1();function m(t,r){e.call(this,t,r),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function g(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}return Object.defineProperties(m.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t<e.length;++t){var r=this.fields[e[t]],n=r.id;if(this._fieldsById[n])throw Error("duplicate id "+n+" in "+this);this._fieldsById[n]=r}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=p.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=p.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=m.generateConstructor(this)())},set:function(e){var t=e.prototype;t instanceof a||((e.prototype=new a).constructor=e,p.merge(e.prototype,t)),e.$type=e.prototype.$type=this,p.merge(e,a,!0),this._ctor=e;for(var r=0;r<this.fieldsArray.length;++r)this._fieldsArray[r].resolve();var n={};for(r=0;r<this.oneofsArray.length;++r)n[this._oneofsArray[r].resolve().name]={get:p.oneOfGetter(this._oneofsArray[r].oneof),set:p.oneOfSetter(this._oneofsArray[r].oneof)};r&&Object.defineProperties(e.prototype,n)}}}),m.generateConstructor=function(e){for(var t,r=p.codegen(["p"],e.name),n=0;n<e.fieldsArray.length;++n)(t=e._fieldsArray[n]).map?r("this%s={}",p.safeProp(t.name)):t.repeated&&r("this%s=[]",p.safeProp(t.name));return r("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")},m.fromJSON=function(a,s){var l=new m(a,s.options);l.extensions=s.extensions,l.reserved=s.reserved;for(var p=Object.keys(s.fields),d=0;d<p.length;++d)l.add((void 0!==s.fields[p[d]].keyType?o.fromJSON:n.fromJSON)(p[d],s.fields[p[d]]));if(s.oneofs)for(p=Object.keys(s.oneofs),d=0;d<p.length;++d)l.add(r.fromJSON(p[d],s.oneofs[p[d]]));if(s.nested)for(p=Object.keys(s.nested),d=0;d<p.length;++d){var u=s.nested[p[d]];l.add((void 0!==u.id?n.fromJSON:void 0!==u.fields?m.fromJSON:void 0!==u.values?t.fromJSON:void 0!==u.methods?i.fromJSON:e.fromJSON)(p[d],u))}return s.extensions&&s.extensions.length&&(l.extensions=s.extensions),s.reserved&&s.reserved.length&&(l.reserved=s.reserved),s.group&&(l.group=!0),s.comment&&(l.comment=s.comment),s.edition&&(l._edition=s.edition),l._defaultEdition="proto3",l},m.prototype.toJSON=function(t){var r=e.prototype.toJSON.call(this,t),n=!!t&&Boolean(t.keepComments);return p.toObject(["edition",this._editionToJSON(),"options",r&&r.options||void 0,"oneofs",e.arrayToJSON(this.oneofsArray,t),"fields",e.arrayToJSON(this.fieldsArray.filter(function(e){return!e.declaringField}),t)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",r&&r.nested||void 0,"comment",n?this.comment:void 0])},m.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;e.prototype.resolveAll.call(this);var t=this.oneofsArray;for(n=0;n<t.length;)t[n++].resolve();for(var r=this.fieldsArray,n=0;n<r.length;)r[n++].resolve();return this},m.prototype._resolveFeaturesRecursive=function(t){return this._needsRecursiveFeatureResolution?(t=this._edition||t,e.prototype._resolveFeaturesRecursive.call(this,t),this.oneofsArray.forEach(e=>{e._resolveFeatures(t)}),this.fieldsArray.forEach(e=>{e._resolveFeatures(t)}),this):this},m.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},m.prototype.add=function(t){if(this.get(t.name))throw Error("duplicate name '"+t.name+"' in "+this);if(t instanceof n&&void 0===t.extend){if(this._fieldsById?this._fieldsById[t.id]:this.fieldsById[t.id])throw Error("duplicate id "+t.id+" in "+this);if(this.isReservedId(t.id))throw Error("id "+t.id+" is reserved in "+this);if(this.isReservedName(t.name))throw Error("name '"+t.name+"' is reserved in "+this);return t.parent&&t.parent.remove(t),this.fields[t.name]=t,t.message=this,t.onAdd(this),g(this)}return t instanceof r?(this.oneofs||(this.oneofs={}),this.oneofs[t.name]=t,t.onAdd(this),g(this)):e.prototype.add.call(this,t)},m.prototype.remove=function(t){if(t instanceof n&&void 0===t.extend){if(!this.fields||this.fields[t.name]!==t)throw Error(t+" is not a member of "+this);return delete this.fields[t.name],t.parent=null,t.onRemove(this),g(this)}if(t instanceof r){if(!this.oneofs||this.oneofs[t.name]!==t)throw Error(t+" is not a member of "+this);return delete this.oneofs[t.name],t.parent=null,t.onRemove(this),g(this)}return e.prototype.remove.call(this,t)},m.prototype.isReservedId=function(t){return e.isReservedId(this.reserved,t)},m.prototype.isReservedName=function(t){return e.isReservedName(this.reserved,t)},m.prototype.create=function(e){return new this.ctor(e)},m.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r<this.fieldsArray.length;++r)t.push(this._fieldsArray[r].resolve().resolvedType);this.encode=d(this)({Writer:l,types:t,util:p}),this.decode=u(this)({Reader:s,types:t,util:p}),this.verify=c(this)({types:t,util:p}),this.fromObject=f.fromObject(this)({types:t,util:p}),this.toObject=f.toObject(this)({types:t,util:p});var n=h[e];if(n){var o=Object.create(this);o.fromObject=this.fromObject,this.fromObject=n.fromObject.bind(o),o.toObject=this.toObject,this.toObject=n.toObject.bind(o)}return this},m.prototype.encode=function(e,t){return this.setup().encode(e,t)},m.prototype.encodeDelimited=function(e,t){return this.encode(e,t&&t.len?t.fork():t).ldelim()},m.prototype.decode=function(e,t){return this.setup().decode(e,t)},m.prototype.decodeDelimited=function(e){return e instanceof s||(e=s.create(e)),this.decode(e,e.uint32())},m.prototype.verify=function(e){return this.setup().verify(e)},m.prototype.fromObject=function(e){return this.setup().fromObject(e)},m.prototype.toObject=function(e,t){return this.setup().toObject(e,t)},m.d=function(e){return function(t){p.decorateType(t,e)}},type}function requireRoot(){if(hasRequiredRoot)return root;hasRequiredRoot=1,root=l;var e=requireNamespace();((l.prototype=Object.create(e.prototype)).constructor=l).className="Root";var t,r,n,o=requireField(),i=require_enum$1(),a=requireOneof(),s=requireUtil$5();function l(t){e.call(this,"",t),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function p(){}l.fromJSON=function(e,t){return t||(t=new l),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},l.prototype.resolvePath=s.path.resolve,l.prototype.fetch=s.fetch,l.prototype.load=function e(t,o,i){"function"==typeof o&&(i=o,o=void 0);var a=this;if(!i)return s.asPromise(e,a,t,o);var l=i===p;function d(e,t){if(i){if(l)throw e;t&&t.resolveAll();var r=i;i=null,r(e,t)}}function u(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in n)return r}return null}function c(e,t){try{if(s.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),s.isString(t)){r.filename=e;var n,i=r(t,a,o),p=0;if(i.imports)for(;p<i.imports.length;++p)(n=u(i.imports[p])||a.resolvePath(e,i.imports[p]))&&f(n);if(i.weakImports)for(p=0;p<i.weakImports.length;++p)(n=u(i.weakImports[p])||a.resolvePath(e,i.weakImports[p]))&&f(n,!0)}else a.setOptions(t.options).addJSON(t.nested)}catch(e){d(e)}l||h||d(null,a)}function f(e,t){if(e=u(e)||e,!(a.files.indexOf(e)>-1))if(a.files.push(e),e in n)l?c(e,n[e]):(++h,setTimeout(function(){--h,c(e,n[e])}));else if(l){var r;try{r=s.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||d(e))}c(e,r)}else++h,a.fetch(e,function(r,n){--h,i&&(r?t?h||d(null,a):d(r):c(e,n))})}var h=0;s.isString(t)&&(t=[t]);for(var m,g=0;g<t.length;++g)(m=a.resolvePath("",t[g]))&&f(m);return l?(a.resolveAll(),a):(h||d(null,a),a)},l.prototype.loadSync=function(e,t){if(!s.isNode)throw Error("not supported");return this.load(e,t,p)},l.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(e){return"'extend "+e.extend+"' in "+e.parent.fullName}).join(", "));return e.prototype.resolveAll.call(this)};var d=/^[A-Z]/;function u(e,t){var r=t.parent.lookup(t.extend);if(r){var n=new o(t.fullName,t.id,t.type,t.rule,void 0,t.options);return r.get(n.name)||(n.declaringField=t,t.extensionField=n,r.add(n)),!0}return!1}return l.prototype._handleAdd=function(e){if(e instanceof o)void 0===e.extend||e.extensionField||u(0,e)||this.deferred.push(e);else if(e instanceof i)d.test(e.name)&&(e.parent[e.name]=e.values);else if(!(e instanceof a)){if(e instanceof t)for(var r=0;r<this.deferred.length;)u(0,this.deferred[r])?this.deferred.splice(r,1):++r;for(var n=0;n<e.nestedArray.length;++n)this._handleAdd(e._nestedArray[n]);d.test(e.name)&&(e.parent[e.name]=e)}(e instanceof t||e instanceof i||e instanceof o)&&(this._fullyQualifiedObjects[e.fullName]=e)},l.prototype._handleRemove=function(t){if(t instanceof o){if(void 0!==t.extend)if(t.extensionField)t.extensionField.parent.remove(t.extensionField),t.extensionField=null;else{var r=this.deferred.indexOf(t);r>-1&&this.deferred.splice(r,1)}}else if(t instanceof i)d.test(t.name)&&delete t.parent[t.name];else if(t instanceof e){for(var n=0;n<t.nestedArray.length;++n)this._handleRemove(t._nestedArray[n]);d.test(t.name)&&delete t.parent[t.name]}delete this._fullyQualifiedObjects[t.fullName]},l._configure=function(e,o,i){t=e,r=o,n=i},root}function requireUtil$5(){if(hasRequiredUtil$5)return util$5.exports;hasRequiredUtil$5=1;var e,t,r=util$5.exports=requireMinimal$1(),n=requireRoots();r.codegen=requireCodegen(),r.fetch=requireFetch(),r.path=requirePath(),r.fs=r.inquire("fs"),r.toArray=function(e){if(e){for(var t=Object.keys(e),r=new Array(t.length),n=0;n<t.length;)r[n]=e[t[n++]];return r}return[]},r.toObject=function(e){for(var t={},r=0;r<e.length;){var n=e[r++],o=e[r++];void 0!==o&&(t[n]=o)}return t};var o=/\\/g,i=/"/g;r.isReserved=function(e){return/^(?: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)$/.test(e)},r.safeProp=function(e){return!/^[$\w_]+$/.test(e)||r.isReserved(e)?'["'+e.replace(o,"\\\\").replace(i,'\\"')+'"]':"."+e},r.ucFirst=function(e){return e.charAt(0).toUpperCase()+e.substring(1)};var a=/_([a-z])/g;r.camelCase=function(e){return e.substring(0,1)+e.substring(1).replace(a,function(e,t){return t.toUpperCase()})},r.compareFieldsById=function(e,t){return e.id-t.id},r.decorateType=function(t,n){if(t.$type)return n&&t.$type.name!==n&&(r.decorateRoot.remove(t.$type),t.$type.name=n,r.decorateRoot.add(t.$type)),t.$type;e||(e=requireType());var o=new e(n||t.name);return r.decorateRoot.add(o),o.ctor=t,Object.defineProperty(t,"$type",{value:o,enumerable:!1}),Object.defineProperty(t.prototype,"$type",{value:o,enumerable:!1}),o};var s=0;return r.decorateEnum=function(e){if(e.$type)return e.$type;t||(t=require_enum$1());var n=new t("Enum"+s++,e);return r.decorateRoot.add(n),Object.defineProperty(e,"$type",{value:n,enumerable:!1}),n},r.setProperty=function(e,t,r,n){if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return function e(t,r,o){var i=r.shift();if("__proto__"===i||"prototype"===i)return t;if(r.length>0)t[i]=e(t[i]||{},r,o);else{var a=t[i];if(a&&n)return t;a&&(o=[].concat(a).concat(o)),t[i]=o}return t}(e,t=t.split("."),r)},Object.defineProperty(r,"decorateRoot",{get:function(){return n.decorated||(n.decorated=new(requireRoot()))}}),util$5.exports}function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,function(){var e=types$1,t=requireUtil$5(),r=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function n(e,t){var n=0,o={};for(t|=0;n<e.length;)o[r[n+t]]=e[n++];return o}e.basic=n([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),e.defaults=n([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",t.emptyArray,null]),e.long=n([0,0,0,1,1],7),e.mapKey=n([0,0,0,5,5,0,0,0,1,1,0,2],2),e.packed=n([1,5,0,0,0,5,5,0,0,0,1,1,0])}()),types$1}function requireField(){if(hasRequiredField)return field;hasRequiredField=1,field=a;var e=requireObject();((a.prototype=Object.create(e.prototype)).constructor=a).className="Field";var t,r=require_enum$1(),n=requireTypes(),o=requireUtil$5(),i=/^required|optional|repeated$/;function a(t,r,a,s,l,p,d){if(o.isObject(s)?(d=l,p=s,s=l=void 0):o.isObject(l)&&(d=p,p=l,l=void 0),e.call(this,t,p),!o.isInteger(r)||r<0)throw TypeError("id must be a non-negative integer");if(!o.isString(a))throw TypeError("type must be a string");if(void 0!==s&&!i.test(s=s.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==l&&!o.isString(l))throw TypeError("extend must be a string");"proto3_optional"===s&&(s="optional"),this.rule=s&&"optional"!==s?s:void 0,this.type=a,this.id=r,this.extend=l||void 0,this.repeated="repeated"===s,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!o.Long&&void 0!==n.long[a],this.bytes="bytes"===a,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=d}return a.fromJSON=function(e,t){var r=new a(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(a.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(a.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(a.prototype,"delimited",{get:function(){return this.resolvedType instanceof t&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(a.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(a.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),a.prototype.setOption=function(t,r,n){return e.prototype.setOption.call(this,t,r,n)},a.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},a.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=n.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof t?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof r&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof r||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=o.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var i;o.base64.test(this.typeDefault)?o.base64.decode(this.typeDefault,i=o.newBuffer(o.base64.length(this.typeDefault)),0):o.utf8.write(this.typeDefault,i=o.newBuffer(o.utf8.length(this.typeDefault)),0),this.typeDefault=i}return this.map?this.defaultValue=o.emptyObject:this.repeated?this.defaultValue=o.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof t&&(this.parent.ctor.prototype[this.name]=this.defaultValue),e.prototype.resolve.call(this)},a.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var r={};if("required"===this.rule&&(r.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===n.defaults[this.type]){var o=this.parent.get(this.type.split(".").pop());o&&o instanceof t&&o.group&&(r.message_encoding="DELIMITED")}return!0===this.getOption("packed")?r.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(r.repeated_field_encoding="EXPANDED"),r},a.prototype._resolveFeatures=function(t){return e.prototype._resolveFeatures.call(this,this._edition||t)},a.d=function(e,t,r,n){return"function"==typeof t?t=o.decorateType(t).name:t&&"object"==typeof t&&(t=o.decorateEnum(t).name),function(i,s){o.decorateType(i.constructor).add(new a(s,e,t,r,{default:n}))}},a._configure=function(e){t=e},field}function requireOneof(){if(hasRequiredOneof)return oneof;hasRequiredOneof=1,oneof=n;var e=requireObject();((n.prototype=Object.create(e.prototype)).constructor=n).className="OneOf";var t=requireField(),r=requireUtil$5();function n(t,r,n,o){if(Array.isArray(r)||(n=r,r=void 0),e.call(this,t,n),void 0!==r&&!Array.isArray(r))throw TypeError("fieldNames must be an Array");this.oneof=r||[],this.fieldsArray=[],this.comment=o}function o(e){if(e.parent)for(var t=0;t<e.fieldsArray.length;++t)e.fieldsArray[t].parent||e.parent.add(e.fieldsArray[t])}return n.fromJSON=function(e,t){return new n(e,t.oneof,t.options,t.comment)},n.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return r.toObject(["options",this.options,"oneof",this.oneof,"comment",t?this.comment:void 0])},n.prototype.add=function(e){if(!(e instanceof t))throw TypeError("field must be a Field");return e.parent&&e.parent!==this.parent&&e.parent.remove(e),this.oneof.push(e.name),this.fieldsArray.push(e),e.partOf=this,o(this),this},n.prototype.remove=function(e){if(!(e instanceof t))throw TypeError("field must be a Field");var r=this.fieldsArray.indexOf(e);if(r<0)throw Error(e+" is not a member of "+this);return this.fieldsArray.splice(r,1),(r=this.oneof.indexOf(e.name))>-1&&this.oneof.splice(r,1),e.partOf=null,this},n.prototype.onAdd=function(t){e.prototype.onAdd.call(this,t);for(var r=0;r<this.oneof.length;++r){var n=t.get(this.oneof[r]);n&&!n.partOf&&(n.partOf=this,this.fieldsArray.push(n))}o(this)},n.prototype.onRemove=function(t){for(var r,n=0;n<this.fieldsArray.length;++n)(r=this.fieldsArray[n]).parent&&r.parent.remove(r);e.prototype.onRemove.call(this,t)},Object.defineProperty(n.prototype,"isProto3Optional",{get:function(){if(null==this.fieldsArray||1!==this.fieldsArray.length)return!1;var e=this.fieldsArray[0];return null!=e.options&&!0===e.options.proto3_optional}}),n.d=function(){for(var e=new Array(arguments.length),t=0;t<arguments.length;)e[t]=arguments[t++];return function(t,o){r.decorateType(t.constructor).add(new n(o,e)),Object.defineProperty(t,o,{get:r.oneOfGetter(e),set:r.oneOfSetter(e)})}},oneof}function requireObject(){if(hasRequiredObject)return object;hasRequiredObject=1,object=a,a.className="ReflectionObject";const e=requireOneof();var t,r=requireUtil$5(),n={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"},o={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE"},i={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"};function a(e,t){if(!r.isString(e))throw TypeError("name must be a string");if(t&&!r.isObject(t))throw TypeError("options must be an object");this.options=t,this.parsedOptions=null,this.name=e,this._edition=null,this._defaultEdition="proto2",this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}return Object.defineProperties(a.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),a.prototype.toJSON=function(){throw Error()},a.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var r=e.root;r instanceof t&&r._handleAdd(this)},a.prototype.onRemove=function(e){var r=e.root;r instanceof t&&r._handleRemove(this),this.parent=null,this.resolved=!1},a.prototype.resolve=function(){return this.resolved||this.root instanceof t&&(this.resolved=!0),this},a.prototype._resolveFeaturesRecursive=function(e){return this._resolveFeatures(this._edition||e)},a.prototype._resolveFeatures=function(t){if(!this._featuresResolved){var r={};if(!t)throw new Error("Unknown edition for "+this.fullName);var a=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures(t));if(this._edition){if("proto2"===t)r=Object.assign({},o);else if("proto3"===t)r=Object.assign({},i);else{if("2023"!==t)throw new Error("Unknown edition: "+t);r=Object.assign({},n)}return this._features=Object.assign(r,a||{}),void(this._featuresResolved=!0)}if(this.partOf instanceof e){var s=Object.assign({},this.partOf._features);this._features=Object.assign(s,a||{})}else if(this.declaringField);else{if(!this.parent)throw new Error("Unable to find a parent for "+this.fullName);var l=Object.assign({},this.parent._features);this._features=Object.assign(l,a||{})}this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},a.prototype._inferLegacyProtoFeatures=function(){return{}},a.prototype.getOption=function(e){if(this.options)return this.options[e]},a.prototype.setOption=function(e,t,n){return this.options||(this.options={}),/^features\./.test(e)?r.setProperty(this.options,e,t,n):n&&void 0!==this.options[e]||(this.getOption(e)!==t&&(this.resolved=!1),this.options[e]=t),this},a.prototype.setParsedOption=function(e,t,n){this.parsedOptions||(this.parsedOptions=[]);var o=this.parsedOptions;if(n){var i=o.find(function(t){return Object.prototype.hasOwnProperty.call(t,e)});if(i){var a=i[e];r.setProperty(a,n,t)}else(i={})[e]=r.setProperty({},n,t),o.push(i)}else{var s={};s[e]=t,o.push(s)}return this},a.prototype.setOptions=function(e,t){if(e)for(var r=Object.keys(e),n=0;n<r.length;++n)this.setOption(r[n],e[r[n]],t);return this},a.prototype.toString=function(){var e=this.constructor.className,t=this.fullName;return t.length?e+" "+t:e},a.prototype._editionToJSON=function(){if(this._edition&&"proto3"!==this._edition)return this._edition},a._configure=function(e){t=e},object}function require_enum$1(){if(hasRequired_enum$1)return _enum$1;hasRequired_enum$1=1,_enum$1=n;var e=requireObject();((n.prototype=Object.create(e.prototype)).constructor=n).className="Enum";var t=requireNamespace(),r=requireUtil$5();function n(t,r,n,o,i,a){if(e.call(this,t,n),r&&"object"!=typeof r)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=i||{},this.valuesOptions=a,this._valuesFeatures={},this.reserved=void 0,r)for(var s=Object.keys(r),l=0;l<s.length;++l)"number"==typeof r[s[l]]&&(this.valuesById[this.values[s[l]]=r[s[l]]]=s[l])}return n.prototype._resolveFeatures=function(t){return t=this._edition||t,e.prototype._resolveFeatures.call(this,t),Object.keys(this.values).forEach(e=>{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},n.fromJSON=function(e,t){var r=new n(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},n.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return r.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},n.prototype.add=function(e,t,n,o){if(!r.isString(e))throw TypeError("name must be a string");if(!r.isInteger(t))throw TypeError("id must be an integer");if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return o&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=o||null),this.comments[e]=n||null,this},n.prototype.remove=function(e){if(!r.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},n.prototype.isReservedId=function(e){return t.isReservedId(this.reserved,e)},n.prototype.isReservedName=function(e){return t.isReservedName(this.reserved,e)},_enum$1}function requireEncoder(){if(hasRequiredEncoder)return encoder_1;hasRequiredEncoder=1,encoder_1=function(o){for(var i,a=r.codegen(["m","w"],o.name+"$encode")("if(!w)")("w=Writer.create()"),s=o.fieldsArray.slice().sort(r.compareFieldsById),l=0;l<s.length;++l){var p=s[l].resolve(),d=o._fieldsArray.indexOf(p),u=p.resolvedType instanceof e?"int32":p.type,c=t.basic[u];i="m"+r.safeProp(p.name),p.map?(a("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",i,p.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",i)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(p.id<<3|2)>>>0,8|t.mapKey[p.keyType],p.keyType),void 0===c?a("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",d,i):a(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|c,u,i),a("}")("}")):p.repeated?(a("if(%s!=null&&%s.length){",i,i),p.packed&&void 0!==t.packed[u]?a("w.uint32(%i).fork()",(p.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",i)("w.%s(%s[i])",u,i)("w.ldelim()"):(a("for(var i=0;i<%s.length;++i)",i),void 0===c?n(a,p,d,i+"[i]"):a("w.uint32(%i).%s(%s[i])",(p.id<<3|c)>>>0,u,i)),a("}")):(p.optional&&a("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",i,p.name),void 0===c?n(a,p,d,i):a("w.uint32(%i).%s(%s)",(p.id<<3|c)>>>0,u,i))}return a("return w")};var e=require_enum$1(),t=requireTypes(),r=requireUtil$5();function n(e,t,r,n){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,n,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,n,(t.id<<3|2)>>>0)}return encoder_1}function requireIndexLight(){if(hasRequiredIndexLight)return indexLight.exports;hasRequiredIndexLight=1;var e=indexLight.exports=requireIndexMinimal();return e.build="light",e.load=function(t,r,n){return"function"==typeof r?(n=r,r=new e.Root):r||(r=new e.Root),r.load(t,n)},e.loadSync=function(t,r){return r||(r=new e.Root),r.loadSync(t)},e.encoder=requireEncoder(),e.decoder=requireDecoder(),e.verifier=requireVerifier(),e.converter=requireConverter(),e.ReflectionObject=requireObject(),e.Namespace=requireNamespace(),e.Root=requireRoot(),e.Enum=require_enum$1(),e.Type=requireType(),e.Field=requireField(),e.OneOf=requireOneof(),e.MapField=requireMapfield(),e.Service=requireService(),e.Method=requireMethod(),e.Message=requireMessage(),e.wrappers=requireWrappers$1(),e.types=requireTypes(),e.util=requireUtil$5(),e.ReflectionObject._configure(e.Root),e.Namespace._configure(e.Type,e.Service,e.Enum),e.Root._configure(e.Type),e.Field._configure(e.Type),indexLight.exports}function requireTokenize(){if(hasRequiredTokenize)return tokenize_1;hasRequiredTokenize=1,tokenize_1=d;var e=/[\s{}=;:[\],'"()<>]/g,t=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,r=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,n=/^ *[*/]+ */,o=/^\s*\*?\/*/,i=/\n/g,a=/\s/,s=/\\(.?)/g,l={0:"\0",r:"\r",n:"\n",t:"\t"};function p(e){return e.replace(s,function(e,t){switch(t){case"\\":case"":return t;default:return l[t]||""}})}function d(s,l){s=s.toString();var d=0,u=s.length,c=1,f=0,h={},m=[],g=null;function y(e){return Error("illegal "+e+" (line "+c+")")}function v(e){return s.charAt(e)}function b(e,t,r){var a,p={type:s.charAt(e++),lineEmpty:!1,leading:r},d=e-(l?2:3);do{if(--d<0||"\n"===(a=s.charAt(d))){p.lineEmpty=!0;break}}while(" "===a||"\t"===a);for(var u=s.substring(e,t).split(i),m=0;m<u.length;++m)u[m]=u[m].replace(l?o:n,"").trim();p.text=u.join("\n").trim(),h[c]=p,f=c}function O(e){var t=w(e),r=s.substring(e,t);return/^\s*\/\//.test(r)}function w(e){for(var t=e;t<u&&"\n"!==v(t);)t++;return t}function S(){if(m.length>0)return m.shift();if(g)return function(){var e="'"===g?r:t;e.lastIndex=d-1;var n=e.exec(s);if(!n)throw y("string");return d=e.lastIndex,_(g),g=null,p(n[1])}();var n,o,i,f,h,S=0===d;do{if(d===u)return null;for(n=!1;a.test(i=v(d));)if("\n"===i&&(S=!0,++c),++d===u)return null;if("/"===v(d)){if(++d===u)throw y("comment");if("/"===v(d))if(l){if(f=d,h=!1,O(d-1)){h=!0;do{if((d=w(d))===u)break;if(d++,!S)break}while(O(d))}else d=Math.min(u,w(d)+1);h&&(b(f,d,S),S=!0),c++,n=!0}else{for(h="/"===v(f=d+1);"\n"!==v(++d);)if(d===u)return null;++d,h&&(b(f,d-1,S),S=!0),++c,n=!0}else{if("*"!==(i=v(d)))return"/";f=d+1,h=l||"*"===v(f);do{if("\n"===i&&++c,++d===u)throw y("comment");o=i,i=v(d)}while("*"!==o||"/"!==i);++d,h&&(b(f,d-2,S),S=!0),n=!0}}}while(n);var P=d;if(e.lastIndex=0,!e.test(v(P++)))for(;P<u&&!e.test(v(P));)++P;var E=s.substring(d,d=P);return'"'!==E&&"'"!==E||(g=E),E}function _(e){m.push(e)}function P(){if(!m.length){var e=S();if(null===e)return null;_(e)}return m[0]}return Object.defineProperty({next:S,peek:P,push:_,skip:function(e,t){var r=P();if(r===e)return S(),!0;if(!t)throw y("token '"+r+"', '"+e+"' expected");return!1},cmnt:function(e){var t,r=null;return void 0===e?(t=h[c-1],delete h[c-1],t&&(l||"*"===t.type||t.lineEmpty)&&(r=t.leading?t.text:null)):(f<e&&P(),t=h[e],delete h[e],!t||t.lineEmpty||!l&&"/"!==t.type||(r=t.leading?null:t.text)),r}},"line",{get:function(){return c}})}return d.unescape=p,tokenize_1}function requireParse(){if(hasRequiredParse)return parse_1;hasRequiredParse=1,parse_1=w,w.filename=null,w.defaults={keepCase:!1};var e=requireTokenize(),t=requireRoot(),r=requireType(),n=requireField(),o=requireMapfield(),i=requireOneof(),a=require_enum$1(),s=requireService(),l=requireMethod(),p=requireObject(),d=requireTypes(),u=requireUtil$5(),c=/^[1-9][0-9]*$/,f=/^-?[1-9][0-9]*$/,h=/^0[x][0-9a-fA-F]+$/,m=/^-?0[x][0-9a-fA-F]+$/,g=/^0[0-7]+$/,y=/^-?0[0-7]+$/,v=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,b=/^[a-zA-Z_][a-zA-Z_0-9]*$/,O=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/;function w(S,_,P){_ instanceof t||(P=_,_=new t),P||(P=w.defaults);var E,T,C,R,D=P.preferTrailingComment||!1,k=e(S,P.alternateCommentMode||!1),x=k.next,j=k.push,A=k.peek,N=k.skip,I=k.cmnt,q=!0,M="proto2",L=_,F=[],B={},V=P.keepCase?function(e){return e}:u.camelCase;function U(e,t,r){var n=w.filename;return r||(w.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(n?n+", ":"")+"line "+k.line+")")}function $(){var e,t=[];do{if('"'!==(e=x())&&"'"!==e)throw U(e);t.push(x()),N(e),e=A()}while('"'===e||"'"===e);return t.join("")}function G(e){var t=x();switch(t){case"'":case'"':return j(t),$();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return function(e,t){var r=1;"-"===e.charAt(0)&&(r=-1,e=e.substring(1));switch(e){case"inf":case"INF":case"Inf":return r*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(c.test(e))return r*parseInt(e,10);if(h.test(e))return r*parseInt(e,16);if(g.test(e))return r*parseInt(e,8);if(v.test(e))return r*parseFloat(e);throw U(e,"number",t)}(t,!0)}catch(e){if(O.test(t))return t;throw U(t,"value")}}function H(e,t){var r,n;do{if(!t||'"'!==(r=A())&&"'"!==r)try{e.push([n=z(x()),N("to",!0)?z(x()):n])}catch(n){if(!(t&&O.test(r)&&M>=2023))throw n;e.push(r)}else{var o=$();if(e.push(o),M>=2023)throw U(o,"id")}}while(N(",",!0));var i={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Q(i,function(e){if("option"!==e)throw U(e);re(i,e),N(";")},function(){ie(i)})}function z(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw U(e,"id");if(f.test(e))return parseInt(e,10);if(m.test(e))return parseInt(e,16);if(y.test(e))return parseInt(e,8);throw U(e,"id")}function W(){if(void 0!==E)throw U("package");if(E=x(),!O.test(E))throw U(E,"name");L=L.define(E),N(";")}function J(){var e,t=A();switch(t){case"weak":e=C||(C=[]),x();break;case"public":x();default:e=T||(T=[])}t=$(),N(";"),e.push(t)}function Y(){if(N("="),(M=$())<2023)throw U(M,"syntax");N(";")}function K(){N("="),M=$();if(!["2023"].includes(M))throw U(M,"edition");N(";")}function X(e,t){switch(t){case"option":return re(e,t),N(";"),!0;case"message":return Z(e,t),!0;case"enum":return te(e,t),!0;case"service":return function(e,t){if(!b.test(t=x()))throw U(t,"service name");var r=new s(t);Q(r,function(e){if(!X(r,e)){if("rpc"!==e)throw U(e);!function(e,t){var r=I(),n=t;if(!b.test(t=x()))throw U(t,"name");var o,i,a,s,p=t;N("("),N("stream",!0)&&(i=!0);if(!O.test(t=x()))throw U(t);o=t,N(")"),N("returns"),N("("),N("stream",!0)&&(s=!0);if(!O.test(t=x()))throw U(t);a=t,N(")");var d=new l(p,n,o,a,i,s);d.comment=r,Q(d,function(e){if("option"!==e)throw U(e);re(d,e),N(";")}),e.add(d)}(r,e)}}),e.add(r),e===L&&F.push(r)}(e,t),!0;case"extend":return function(e,t){if(!O.test(t=x()))throw U(t,"reference");var r=t;Q(null,function(t){switch(t){case"required":case"repeated":ee(e,t,r);break;case"optional":ee(e,"proto3"===M?"proto3_optional":"optional",r);break;default:if("proto2"===M||!O.test(t))throw U(t);j(t),ee(e,"optional",r)}})}(e,t),!0}return!1}function Q(e,t,r){var n=k.line;if(e&&("string"!=typeof e.comment&&(e.comment=I()),e.filename=w.filename),N("{",!0)){for(var o;"}"!==(o=x());)t(o);N(";",!0)}else r&&r(),N(";"),e&&("string"!=typeof e.comment||D)&&(e.comment=I(n)||e.comment)}function Z(e,t){if(!b.test(t=x()))throw U(t,"type name");var n=new r(t);Q(n,function(e){if(!X(n,e))switch(e){case"map":!function(e){N("<");var t=x();if(void 0===d.mapKey[t])throw U(t,"type");N(",");var r=x();if(!O.test(r))throw U(r,"type");N(">");var n=x();if(!b.test(n))throw U(n,"name");N("=");var i=new o(V(n),z(x()),t,r);Q(i,function(e){if("option"!==e)throw U(e);re(i,e),N(";")},function(){ie(i)}),e.add(i)}(n);break;case"required":if("proto2"!==M)throw U(e);case"repeated":ee(n,e);break;case"optional":if("proto3"===M)ee(n,"proto3_optional");else{if("proto2"!==M)throw U(e);ee(n,"optional")}break;case"oneof":!function(e,t){if(!b.test(t=x()))throw U(t,"name");var r=new i(V(t));Q(r,function(e){"option"===e?(re(r,e),N(";")):(j(e),ee(r,"optional"))}),e.add(r)}(n,e);break;case"extensions":H(n.extensions||(n.extensions=[]));break;case"reserved":H(n.reserved||(n.reserved=[]),!0);break;default:if("proto2"===M||!O.test(e))throw U(e);j(e),ee(n,"optional")}}),e.add(n),e===L&&F.push(n)}function ee(e,t,o){var a=x();if("group"!==a){for(;a.endsWith(".")||A().startsWith(".");)a+=x();if(!O.test(a))throw U(a,"type");var s=x();if(!b.test(s))throw U(s,"name");s=V(s),N("=");var l=new n(s,z(x()),a,t,o);if(Q(l,function(e){if("option"!==e)throw U(e);re(l,e),N(";")},function(){ie(l)}),"proto3_optional"===t){var p=new i("_"+s);l.setOption("proto3_optional",!0),p.add(l),e.add(p)}else e.add(l);e===L&&F.push(l)}else!function(e,t){if(M>=2023)throw U("group");var o=x();if(!b.test(o))throw U(o,"name");var i=u.lcFirst(o);o===i&&(o=u.ucFirst(o));N("=");var a=z(x()),s=new r(o);s.group=!0;var l=new n(i,a,o,t);l.filename=w.filename,Q(s,function(e){switch(e){case"option":re(s,e),N(";");break;case"required":case"repeated":ee(s,e);break;case"optional":ee(s,"proto3"===M?"proto3_optional":"optional");break;case"message":Z(s,e);break;case"enum":te(s,e);break;case"reserved":H(s.reserved||(s.reserved=[]),!0);break;default:throw U(e)}}),e.add(s).add(l)}(e,t)}function te(e,t){if(!b.test(t=x()))throw U(t,"name");var r=new a(t);Q(r,function(e){switch(e){case"option":re(r,e),N(";");break;case"reserved":H(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:!function(e,t){if(!b.test(t))throw U(t,"name");N("=");var r=z(x(),!0),n={options:void 0,getOption:function(e){return this.options[e]}};n.setOption=function(e,t){p.prototype.setOption.call(n,e,t)},n.setParsedOption=function(){},Q(n,function(e){if("option"!==e)throw U(e);re(n,e),N(";")},function(){ie(n)}),e.add(t,r,n.comment,n.parsedOptions||n.options)}(r,e)}}),e.add(r),e===L&&F.push(r)}function re(e,t){var r,n,o=!0;for("option"===t&&(t=x());"="!==t;){if("("===t){var i=x();N(")"),t="("+i+")"}if(o){if(o=!1,t.includes(".")&&!t.includes("(")){var a=t.split(".");r=a[0]+".",t=a[1];continue}r=t}else n=n?n+=t:t;t=x()}var s=ne(e,n?r.concat(n):r);n=n&&"."===n[0]?n.slice(1):n,function(e,t,r,n){e.setParsedOption&&e.setParsedOption(t,r,n)}(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,s,n)}function ne(e,t){if(N("{",!0)){for(var r={};!N("}",!0);){if(!b.test(R=x()))throw U(R,"name");if(null===R)throw U(R,"end of input");var n,o=R;if(N(":",!0),"{"===A())n=ne(e,t+"."+R);else if("["===A()){var i;if(n=[],N("[",!0)){do{i=G(),n.push(i)}while(N(",",!0));N("]"),void 0!==i&&oe(e,t+"."+R,i)}}else n=G(),oe(e,t+"."+R,n);var a=r[o];a&&(n=[].concat(a).concat(n)),r[o]=n,N(",",!0),N(";",!0)}return r}var s=G();return oe(e,t,s),s}function oe(e,t,r){L===e&&/^features\./.test(t)?B[t]=r:e.setOption&&e.setOption(t,r)}function ie(e){if(N("[",!0)){do{re(e,"option")}while(N(",",!0));N("]")}return e}for(;null!==(R=x());)switch(R){case"package":if(!q)throw U(R);W();break;case"import":if(!q)throw U(R);J();break;case"syntax":if(!q)throw U(R);Y();break;case"edition":if(!q)throw U(R);K();break;case"option":re(L,R),N(";",!0);break;default:if(X(L,R)){q=!1;continue}throw U(R)}return F.forEach(e=>{e._edition=M,Object.keys(B).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,B[t],!0)})}),w.filename=null,{package:E,imports:T,weakImports:C,root:_}}return parse_1}function requireCommon$2(){if(hasRequiredCommon$2)return common_1;hasRequiredCommon$2=1,common_1=r;var e,t=/\/|\./;function r(e,n){t.test(e)||(e="google/protobuf/"+e+".proto",n={nested:{google:{nested:{protobuf:{nested:n}}}}}),r[e]=n}return r("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),r("duration",{Duration:e={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),r("timestamp",{Timestamp:e}),r("empty",{Empty:{fields:{}}}),r("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}}}}),r("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}}}}),r("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),r.get=function(e){return r[e]||null},common_1}function requireSrc$7(){if(hasRequiredSrc$7)return src$4.exports;hasRequiredSrc$7=1;var e=src$4.exports=requireIndexLight();return e.build="full",e.tokenize=requireTokenize(),e.parse=requireParse(),e.common=requireCommon$2(),e.Root._configure(e.Type,e.parse,e.common),src$4.exports}function requireProtobufjs(){return hasRequiredProtobufjs?protobufjs:(hasRequiredProtobufjs=1,protobufjs=requireSrc$7())}var descriptor$1={exports:{}},nested$7={google:{nested:{protobuf:{options:{go_package:"google.golang.org/protobuf/types/descriptorpb",java_package:"com.google.protobuf",java_outer_classname:"DescriptorProtos",csharp_namespace:"Google.Protobuf.Reflection",objc_class_prefix:"GPB",cc_enable_arenas:!0,optimize_for:"SPEED"},nested:{FileDescriptorSet:{edition:"proto2",fields:{file:{rule:"repeated",type:"FileDescriptorProto",id:1}},extensions:[[536e6,536e6]]},Edition:{edition:"proto2",values:{EDITION_UNKNOWN:0,EDITION_LEGACY:900,EDITION_PROTO2:998,EDITION_PROTO3:999,EDITION_2023:1e3,EDITION_2024:1001,EDITION_1_TEST_ONLY:1,EDITION_2_TEST_ONLY:2,EDITION_99997_TEST_ONLY:99997,EDITION_99998_TEST_ONLY:99998,EDITION_99999_TEST_ONLY:99999,EDITION_MAX:2147483647}},FileDescriptorProto:{edition:"proto2",fields:{name:{type:"string",id:1},package:{type:"string",id:2},dependency:{rule:"repeated",type:"string",id:3},publicDependency:{rule:"repeated",type:"int32",id:10},weakDependency:{rule:"repeated",type:"int32",id:11},optionDependency:{rule:"repeated",type:"string",id:15},messageType:{rule:"repeated",type:"DescriptorProto",id:4},enumType:{rule:"repeated",type:"EnumDescriptorProto",id:5},service:{rule:"repeated",type:"ServiceDescriptorProto",id:6},extension:{rule:"repeated",type:"FieldDescriptorProto",id:7},options:{type:"FileOptions",id:8},sourceCodeInfo:{type:"SourceCodeInfo",id:9},syntax:{type:"string",id:12},edition:{type:"Edition",id:14}}},DescriptorProto:{edition:"proto2",fields:{name:{type:"string",id:1},field:{rule:"repeated",type:"FieldDescriptorProto",id:2},extension:{rule:"repeated",type:"FieldDescriptorProto",id:6},nestedType:{rule:"repeated",type:"DescriptorProto",id:3},enumType:{rule:"repeated",type:"EnumDescriptorProto",id:4},extensionRange:{rule:"repeated",type:"ExtensionRange",id:5},oneofDecl:{rule:"repeated",type:"OneofDescriptorProto",id:8},options:{type:"MessageOptions",id:7},reservedRange:{rule:"repeated",type:"ReservedRange",id:9},reservedName:{rule:"repeated",type:"string",id:10},visibility:{type:"SymbolVisibility",id:11}},nested:{ExtensionRange:{fields:{start:{type:"int32",id:1},end:{type:"int32",id:2},options:{type:"ExtensionRangeOptions",id:3}}},ReservedRange:{fields:{start:{type:"int32",id:1},end:{type:"int32",id:2}}}}},ExtensionRangeOptions:{edition:"proto2",fields:{uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999},declaration:{rule:"repeated",type:"Declaration",id:2,options:{retention:"RETENTION_SOURCE"}},features:{type:"FeatureSet",id:50},verification:{type:"VerificationState",id:3,options:{default:"UNVERIFIED",retention:"RETENTION_SOURCE"}}},extensions:[[1e3,536870911]],nested:{Declaration:{fields:{number:{type:"int32",id:1},fullName:{type:"string",id:2},type:{type:"string",id:3},reserved:{type:"bool",id:5},repeated:{type:"bool",id:6}},reserved:[[4,4]]},VerificationState:{values:{DECLARATION:0,UNVERIFIED:1}}}},FieldDescriptorProto:{edition:"proto2",fields:{name:{type:"string",id:1},number:{type:"int32",id:3},label:{type:"Label",id:4},type:{type:"Type",id:5},typeName:{type:"string",id:6},extendee:{type:"string",id:2},defaultValue:{type:"string",id:7},oneofIndex:{type:"int32",id:9},jsonName:{type:"string",id:10},options:{type:"FieldOptions",id:8},proto3Optional:{type:"bool",id:17}},nested:{Type:{values:{TYPE_DOUBLE:1,TYPE_FLOAT:2,TYPE_INT64:3,TYPE_UINT64:4,TYPE_INT32:5,TYPE_FIXED64:6,TYPE_FIXED32:7,TYPE_BOOL:8,TYPE_STRING:9,TYPE_GROUP:10,TYPE_MESSAGE:11,TYPE_BYTES:12,TYPE_UINT32:13,TYPE_ENUM:14,TYPE_SFIXED32:15,TYPE_SFIXED64:16,TYPE_SINT32:17,TYPE_SINT64:18}},Label:{values:{LABEL_OPTIONAL:1,LABEL_REPEATED:3,LABEL_REQUIRED:2}}}},OneofDescriptorProto:{edition:"proto2",fields:{name:{type:"string",id:1},options:{type:"OneofOptions",id:2}}},EnumDescriptorProto:{edition:"proto2",fields:{name:{type:"string",id:1},value:{rule:"repeated",type:"EnumValueDescriptorProto",id:2},options:{type:"EnumOptions",id:3},reservedRange:{rule:"repeated",type:"EnumReservedRange",id:4},reservedName:{rule:"repeated",type:"string",id:5},visibility:{type:"SymbolVisibility",id:6}},nested:{EnumReservedRange:{fields:{start:{type:"int32",id:1},end:{type:"int32",id:2}}}}},EnumValueDescriptorProto:{edition:"proto2",fields:{name:{type:"string",id:1},number:{type:"int32",id:2},options:{type:"EnumValueOptions",id:3}}},ServiceDescriptorProto:{edition:"proto2",fields:{name:{type:"string",id:1},method:{rule:"repeated",type:"MethodDescriptorProto",id:2},options:{type:"ServiceOptions",id:3}}},MethodDescriptorProto:{edition:"proto2",fields:{name:{type:"string",id:1},inputType:{type:"string",id:2},outputType:{type:"string",id:3},options:{type:"MethodOptions",id:4},clientStreaming:{type:"bool",id:5},serverStreaming:{type:"bool",id:6}}},FileOptions:{edition:"proto2",fields:{javaPackage:{type:"string",id:1},javaOuterClassname:{type:"string",id:8},javaMultipleFiles:{type:"bool",id:10},javaGenerateEqualsAndHash:{type:"bool",id:20,options:{deprecated:!0}},javaStringCheckUtf8:{type:"bool",id:27},optimizeFor:{type:"OptimizeMode",id:9,options:{default:"SPEED"}},goPackage:{type:"string",id:11},ccGenericServices:{type:"bool",id:16},javaGenericServices:{type:"bool",id:17},pyGenericServices:{type:"bool",id:18},deprecated:{type:"bool",id:23},ccEnableArenas:{type:"bool",id:31,options:{default:!0}},objcClassPrefix:{type:"string",id:36},csharpNamespace:{type:"string",id:37},swiftPrefix:{type:"string",id:39},phpClassPrefix:{type:"string",id:40},phpNamespace:{type:"string",id:41},phpMetadataNamespace:{type:"string",id:44},rubyPackage:{type:"string",id:45},features:{type:"FeatureSet",id:50},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],reserved:[[42,42],[38,38],"php_generic_services"],nested:{OptimizeMode:{values:{SPEED:1,CODE_SIZE:2,LITE_RUNTIME:3}}}},MessageOptions:{edition:"proto2",fields:{messageSetWireFormat:{type:"bool",id:1},noStandardDescriptorAccessor:{type:"bool",id:2},deprecated:{type:"bool",id:3},mapEntry:{type:"bool",id:7},deprecatedLegacyJsonFieldConflicts:{type:"bool",id:11,options:{deprecated:!0}},features:{type:"FeatureSet",id:12},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],reserved:[[4,4],[5,5],[6,6],[8,8],[9,9]]},FieldOptions:{edition:"proto2",fields:{ctype:{type:"CType",id:1,options:{default:"STRING"}},packed:{type:"bool",id:2},jstype:{type:"JSType",id:6,options:{default:"JS_NORMAL"}},lazy:{type:"bool",id:5},unverifiedLazy:{type:"bool",id:15},deprecated:{type:"bool",id:3},weak:{type:"bool",id:10,options:{deprecated:!0}},debugRedact:{type:"bool",id:16},retention:{type:"OptionRetention",id:17},targets:{rule:"repeated",type:"OptionTargetType",id:19},editionDefaults:{rule:"repeated",type:"EditionDefault",id:20},features:{type:"FeatureSet",id:21},featureSupport:{type:"FeatureSupport",id:22},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],reserved:[[4,4],[18,18]],nested:{CType:{values:{STRING:0,CORD:1,STRING_PIECE:2}},JSType:{values:{JS_NORMAL:0,JS_STRING:1,JS_NUMBER:2}},OptionRetention:{values:{RETENTION_UNKNOWN:0,RETENTION_RUNTIME:1,RETENTION_SOURCE:2}},OptionTargetType:{values:{TARGET_TYPE_UNKNOWN:0,TARGET_TYPE_FILE:1,TARGET_TYPE_EXTENSION_RANGE:2,TARGET_TYPE_MESSAGE:3,TARGET_TYPE_FIELD:4,TARGET_TYPE_ONEOF:5,TARGET_TYPE_ENUM:6,TARGET_TYPE_ENUM_ENTRY:7,TARGET_TYPE_SERVICE:8,TARGET_TYPE_METHOD:9}},EditionDefault:{fields:{edition:{type:"Edition",id:3},value:{type:"string",id:2}}},FeatureSupport:{fields:{editionIntroduced:{type:"Edition",id:1},editionDeprecated:{type:"Edition",id:2},deprecationWarning:{type:"string",id:3},editionRemoved:{type:"Edition",id:4}}}}},OneofOptions:{edition:"proto2",fields:{features:{type:"FeatureSet",id:1},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]]},EnumOptions:{edition:"proto2",fields:{allowAlias:{type:"bool",id:2},deprecated:{type:"bool",id:3},deprecatedLegacyJsonFieldConflicts:{type:"bool",id:6,options:{deprecated:!0}},features:{type:"FeatureSet",id:7},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],reserved:[[5,5]]},EnumValueOptions:{edition:"proto2",fields:{deprecated:{type:"bool",id:1},features:{type:"FeatureSet",id:2},debugRedact:{type:"bool",id:3},featureSupport:{type:"FieldOptions.FeatureSupport",id:4},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]]},ServiceOptions:{edition:"proto2",fields:{features:{type:"FeatureSet",id:34},deprecated:{type:"bool",id:33},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]]},MethodOptions:{edition:"proto2",fields:{deprecated:{type:"bool",id:33},idempotencyLevel:{type:"IdempotencyLevel",id:34,options:{default:"IDEMPOTENCY_UNKNOWN"}},features:{type:"FeatureSet",id:35},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],nested:{IdempotencyLevel:{values:{IDEMPOTENCY_UNKNOWN:0,NO_SIDE_EFFECTS:1,IDEMPOTENT:2}}}},UninterpretedOption:{edition:"proto2",fields:{name:{rule:"repeated",type:"NamePart",id:2},identifierValue:{type:"string",id:3},positiveIntValue:{type:"uint64",id:4},negativeIntValue:{type:"int64",id:5},doubleValue:{type:"double",id:6},stringValue:{type:"bytes",id:7},aggregateValue:{type:"string",id:8}},nested:{NamePart:{fields:{namePart:{rule:"required",type:"string",id:1},isExtension:{rule:"required",type:"bool",id:2}}}}},FeatureSet:{edition:"proto2",fields:{fieldPresence:{type:"FieldPresence",id:1,options:{retention:"RETENTION_RUNTIME",targets:"TARGET_TYPE_FILE","feature_support.edition_introduced":"EDITION_2023","edition_defaults.edition":"EDITION_2023","edition_defaults.value":"EXPLICIT"}},enumType:{type:"EnumType",id:2,options:{retention:"RETENTION_RUNTIME",targets:"TARGET_TYPE_FILE","feature_support.edition_introduced":"EDITION_2023","edition_defaults.edition":"EDITION_PROTO3","edition_defaults.value":"OPEN"}},repeatedFieldEncoding:{type:"RepeatedFieldEncoding",id:3,options:{retention:"RETENTION_RUNTIME",targets:"TARGET_TYPE_FILE","feature_support.edition_introduced":"EDITION_2023","edition_defaults.edition":"EDITION_PROTO3","edition_defaults.value":"PACKED"}},utf8Validation:{type:"Utf8Validation",id:4,options:{retention:"RETENTION_RUNTIME",targets:"TARGET_TYPE_FILE","feature_support.edition_introduced":"EDITION_2023","edition_defaults.edition":"EDITION_PROTO3","edition_defaults.value":"VERIFY"}},messageEncoding:{type:"MessageEncoding",id:5,options:{retention:"RETENTION_RUNTIME",targets:"TARGET_TYPE_FILE","feature_support.edition_introduced":"EDITION_2023","edition_defaults.edition":"EDITION_LEGACY","edition_defaults.value":"LENGTH_PREFIXED"}},jsonFormat:{type:"JsonFormat",id:6,options:{retention:"RETENTION_RUNTIME",targets:"TARGET_TYPE_FILE","feature_support.edition_introduced":"EDITION_2023","edition_defaults.edition":"EDITION_PROTO3","edition_defaults.value":"ALLOW"}},enforceNamingStyle:{type:"EnforceNamingStyle",id:7,options:{retention:"RETENTION_SOURCE",targets:"TARGET_TYPE_METHOD","feature_support.edition_introduced":"EDITION_2024","edition_defaults.edition":"EDITION_2024","edition_defaults.value":"STYLE2024"}},defaultSymbolVisibility:{type:"VisibilityFeature.DefaultSymbolVisibility",id:8,options:{retention:"RETENTION_SOURCE",targets:"TARGET_TYPE_FILE","feature_support.edition_introduced":"EDITION_2024","edition_defaults.edition":"EDITION_2024","edition_defaults.value":"EXPORT_TOP_LEVEL"}}},extensions:[[1e3,9994],[9995,9999],[1e4,1e4]],reserved:[[999,999]],nested:{FieldPresence:{values:{FIELD_PRESENCE_UNKNOWN:0,EXPLICIT:1,IMPLICIT:2,LEGACY_REQUIRED:3}},EnumType:{values:{ENUM_TYPE_UNKNOWN:0,OPEN:1,CLOSED:2}},RepeatedFieldEncoding:{values:{REPEATED_FIELD_ENCODING_UNKNOWN:0,PACKED:1,EXPANDED:2}},Utf8Validation:{values:{UTF8_VALIDATION_UNKNOWN:0,VERIFY:2,NONE:3}},MessageEncoding:{values:{MESSAGE_ENCODING_UNKNOWN:0,LENGTH_PREFIXED:1,DELIMITED:2}},JsonFormat:{values:{JSON_FORMAT_UNKNOWN:0,ALLOW:1,LEGACY_BEST_EFFORT:2}},EnforceNamingStyle:{values:{ENFORCE_NAMING_STYLE_UNKNOWN:0,STYLE2024:1,STYLE_LEGACY:2}},VisibilityFeature:{fields:{},reserved:[[1,536870911]],nested:{DefaultSymbolVisibility:{values:{DEFAULT_SYMBOL_VISIBILITY_UNKNOWN:0,EXPORT_ALL:1,EXPORT_TOP_LEVEL:2,LOCAL_ALL:3,STRICT:4}}}}}},FeatureSetDefaults:{edition:"proto2",fields:{defaults:{rule:"repeated",type:"FeatureSetEditionDefault",id:1},minimumEdition:{type:"Edition",id:4},maximumEdition:{type:"Edition",id:5}},nested:{FeatureSetEditionDefault:{fields:{edition:{type:"Edition",id:3},overridableFeatures:{type:"FeatureSet",id:4},fixedFeatures:{type:"FeatureSet",id:5}},reserved:[[1,1],[2,2],"features"]}}},SourceCodeInfo:{edition:"proto2",fields:{location:{rule:"repeated",type:"Location",id:1}},extensions:[[536e6,536e6]],nested:{Location:{fields:{path:{rule:"repeated",type:"int32",id:1,options:{packed:!0}},span:{rule:"repeated",type:"int32",id:2,options:{packed:!0}},leadingComments:{type:"string",id:3},trailingComments:{type:"string",id:4},leadingDetachedComments:{rule:"repeated",type:"string",id:6}}}}},GeneratedCodeInfo:{edition:"proto2",fields:{annotation:{rule:"repeated",type:"Annotation",id:1}},nested:{Annotation:{fields:{path:{rule:"repeated",type:"int32",id:1,options:{packed:!0}},sourceFile:{type:"string",id:2},begin:{type:"int32",id:3},end:{type:"int32",id:4},semantic:{type:"Semantic",id:5}},nested:{Semantic:{values:{NONE:0,SET:1,ALIAS:2}}}}}},SymbolVisibility:{edition:"proto2",values:{VISIBILITY_UNSET:0,VISIBILITY_LOCAL:1,VISIBILITY_EXPORT:2}}}}}}},require$$4$2={nested:nested$7},hasRequiredDescriptor$1;function requireDescriptor$1(){return hasRequiredDescriptor$1||(hasRequiredDescriptor$1=1,function(e,t){var r=requireProtobufjs();e.exports=t=r.descriptor=r.Root.fromJSON(require$$4$2).lookup(".google.protobuf");var n=r.Namespace,o=r.Root,i=r.Enum,a=r.Type,s=r.Field,l=r.MapField,p=r.OneOf,d=r.Service,u=r.Method;function c(e,r,l){var p=t.FileDescriptorProto.create({name:e.filename||(e.fullName.substring(1).replace(/\./g,"_")||"root")+".proto"});!function(e,r){if(!e)return;if("proto2"===e||"proto3"===e)r.syntax=e;else{if(r.syntax="editions","2023"!==e)throw new Error("Unsupported edition "+e);r.edition=t.Edition.EDITION_2023}}(l,p),e instanceof o||(p.package=e.fullName.substring(1));for(var u,f=0;f<e.nestedArray.length;++f)(u=e._nestedArray[f])instanceof a?p.messageType.push(u.toDescriptor(l)):u instanceof i?p.enumType.push(u.toDescriptor()):u instanceof s?p.extension.push(u.toDescriptor(l)):u instanceof d?p.service.push(u.toDescriptor()):u instanceof n&&c(u,r,l);p.options=_(e.options,t.FileOptions),p.messageType.length+p.enumType.length+p.extension.length+p.service.length&&r.push(p)}o.fromDescriptor=function(e){"number"==typeof e.length&&(e=t.FileDescriptorSet.decode(e));var r=new o;if(e.file)for(var n,l,p,u=0;u<e.file.length;++u){l=r,(n=e.file[u]).package&&n.package.length&&(l=r.define(n.package));var c=T(n);if(n.name&&n.name.length&&r.files.push(l.filename=n.name),n.messageType)for(p=0;p<n.messageType.length;++p)l.add(a.fromDescriptor(n.messageType[p],c));if(n.enumType)for(p=0;p<n.enumType.length;++p)l.add(i.fromDescriptor(n.enumType[p],c));if(n.extension)for(p=0;p<n.extension.length;++p)l.add(s.fromDescriptor(n.extension[p],c));if(n.service)for(p=0;p<n.service.length;++p)l.add(d.fromDescriptor(n.service[p],c));var f=w(n.options,t.FileOptions);if(f){var h=Object.keys(f);for(p=0;p<h.length;++p)l.setOption(h[p],f[h[p]])}}return r.resolveAll()},o.prototype.toDescriptor=function(e){var r=t.FileDescriptorSet.create();return c(this,r.file,e),r};var f=0;a.fromDescriptor=function(e,r,n){"number"==typeof e.length&&(e=t.DescriptorProto.decode(e));var o,l=new a(e.name.length?e.name:"Type"+f++,w(e.options,t.MessageOptions));if(n||(l._edition=r),e.oneofDecl)for(o=0;o<e.oneofDecl.length;++o)l.add(p.fromDescriptor(e.oneofDecl[o]));if(e.field)for(o=0;o<e.field.length;++o){var d=s.fromDescriptor(e.field[o],r,!0);l.add(d),e.field[o].hasOwnProperty("oneofIndex")&&l.oneofsArray[e.field[o].oneofIndex].add(d)}if(e.extension)for(o=0;o<e.extension.length;++o)l.add(s.fromDescriptor(e.extension[o],r,!0));if(e.nestedType)for(o=0;o<e.nestedType.length;++o)l.add(a.fromDescriptor(e.nestedType[o],r,!0)),e.nestedType[o].options&&e.nestedType[o].options.mapEntry&&l.setOption("map_entry",!0);if(e.enumType)for(o=0;o<e.enumType.length;++o)l.add(i.fromDescriptor(e.enumType[o],r,!0));if(e.extensionRange&&e.extensionRange.length)for(l.extensions=[],o=0;o<e.extensionRange.length;++o)l.extensions.push([e.extensionRange[o].start,e.extensionRange[o].end]);if(e.reservedRange&&e.reservedRange.length||e.reservedName&&e.reservedName.length){if(l.reserved=[],e.reservedRange)for(o=0;o<e.reservedRange.length;++o)l.reserved.push([e.reservedRange[o].start,e.reservedRange[o].end]);if(e.reservedName)for(o=0;o<e.reservedName.length;++o)l.reserved.push(e.reservedName[o])}return l},a.prototype.toDescriptor=function(e){var r,n=t.DescriptorProto.create({name:this.name});for(r=0;r<this.fieldsArray.length;++r){var o;if(n.field.push(o=this._fieldsArray[r].toDescriptor(e)),this._fieldsArray[r]instanceof l){var p=b(this._fieldsArray[r].keyType,this._fieldsArray[r].resolvedKeyType,!1),d=b(this._fieldsArray[r].type,this._fieldsArray[r].resolvedType,!1),u=11===d||14===d?this._fieldsArray[r].resolvedType&&P(this.parent,this._fieldsArray[r].resolvedType)||this._fieldsArray[r].type:void 0;n.nestedType.push(t.DescriptorProto.create({name:o.typeName,field:[t.FieldDescriptorProto.create({name:"key",number:1,label:1,type:p}),t.FieldDescriptorProto.create({name:"value",number:2,label:1,type:d,typeName:u})],options:t.MessageOptions.create({mapEntry:!0})}))}}for(r=0;r<this.oneofsArray.length;++r)n.oneofDecl.push(this._oneofsArray[r].toDescriptor());for(r=0;r<this.nestedArray.length;++r)this._nestedArray[r]instanceof s?n.field.push(this._nestedArray[r].toDescriptor(e)):this._nestedArray[r]instanceof a?n.nestedType.push(this._nestedArray[r].toDescriptor(e)):this._nestedArray[r]instanceof i&&n.enumType.push(this._nestedArray[r].toDescriptor());if(this.extensions)for(r=0;r<this.extensions.length;++r)n.extensionRange.push(t.DescriptorProto.ExtensionRange.create({start:this.extensions[r][0],end:this.extensions[r][1]}));if(this.reserved)for(r=0;r<this.reserved.length;++r)"string"==typeof this.reserved[r]?n.reservedName.push(this.reserved[r]):n.reservedRange.push(t.DescriptorProto.ReservedRange.create({start:this.reserved[r][0],end:this.reserved[r][1]}));return n.options=_(this.options,t.MessageOptions),n};var h=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/;s.fromDescriptor=function(e,r,n){if("number"==typeof e.length&&(e=t.DescriptorProto.decode(e)),"number"!=typeof e.number)throw Error("missing field id");var o,i;switch(o=e.typeName&&e.typeName.length?e.typeName:function(e){switch(e){case 1:return"double";case 2:return"float";case 3:return"int64";case 4:return"uint64";case 5:return"int32";case 6:return"fixed64";case 7:return"fixed32";case 8:return"bool";case 9:return"string";case 12:return"bytes";case 13:return"uint32";case 15:return"sfixed32";case 16:return"sfixed64";case 17:return"sint32";case 18:return"sint64"}throw Error("illegal type: "+e)}(e.type),e.label){case 1:i=void 0;break;case 2:i="required";break;case 3:i="repeated";break;default:throw Error("illegal label: "+e.label)}var a=e.extendee;void 0!==e.extendee&&(a=a.length?a:void 0);var l=new s(e.name.length?e.name:"field"+e.number,e.number,o,i,a);if(n||(l._edition=r),l.options=w(e.options,t.FieldOptions),e.proto3_optional&&(l.options.proto3_optional=!0),e.defaultValue&&e.defaultValue.length){var p=e.defaultValue;switch(p){case"true":case"TRUE":p=!0;break;case"false":case"FALSE":p=!1;break;default:h.exec(p)&&(p=parseInt(p))}l.setOption("default",p)}return function(e){switch(e){case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 13:case 14:case 15:case 16:case 17:case 18:return!0}return!1}(e.type)&&("proto3"===r?e.options&&!e.options.packed&&l.setOption("packed",!1):r&&"proto2"!==r||!e.options||!e.options.packed||l.setOption("packed",!0)),l},s.prototype.toDescriptor=function(e){var n=t.FieldDescriptorProto.create({name:this.name,number:this.id});if(this.map)n.type=11,n.typeName=r.util.ucFirst(this.name),n.label=3;else{switch(n.type=b(this.type,this.resolve().resolvedType,this.delimited)){case 10:case 11:case 14:n.typeName=this.resolvedType?P(this.parent,this.resolvedType):this.type}"repeated"===this.rule?n.label=3:this.required&&"proto2"===e?n.label=2:n.label=1}if(n.extendee=this.extensionField?this.extensionField.parent.fullName:this.extend,this.partOf&&(n.oneofIndex=this.parent.oneofsArray.indexOf(this.partOf))<0)throw Error("missing oneof");return this.options&&(n.options=_(this.options,t.FieldOptions),null!=this.options.default&&(n.defaultValue=String(this.options.default)),this.options.proto3_optional&&(n.proto3_optional=!0)),"proto3"===e?this.packed||((n.options||(n.options=t.FieldOptions.create())).packed=!1):e&&"proto2"!==e||!this.packed||((n.options||(n.options=t.FieldOptions.create())).packed=!0),n};var m=0;i.fromDescriptor=function(e,r,n){"number"==typeof e.length&&(e=t.EnumDescriptorProto.decode(e));var o={};if(e.value)for(var a=0;a<e.value.length;++a){var s=e.value[a].name,l=e.value[a].number||0;o[s&&s.length?s:"NAME"+l]=l}var p=new i(e.name&&e.name.length?e.name:"Enum"+m++,o,w(e.options,t.EnumOptions));return n||(p._edition=r),p},i.prototype.toDescriptor=function(){for(var e=[],r=0,n=Object.keys(this.values);r<n.length;++r)e.push(t.EnumValueDescriptorProto.create({name:n[r],number:this.values[n[r]]}));return t.EnumDescriptorProto.create({name:this.name,value:e,options:_(this.options,t.EnumOptions)})};var g=0;p.fromDescriptor=function(e){return"number"==typeof e.length&&(e=t.OneofDescriptorProto.decode(e)),new p(e.name&&e.name.length?e.name:"oneof"+g++)},p.prototype.toDescriptor=function(){return t.OneofDescriptorProto.create({name:this.name})};var y=0;d.fromDescriptor=function(e,r,n){"number"==typeof e.length&&(e=t.ServiceDescriptorProto.decode(e));var o=new d(e.name&&e.name.length?e.name:"Service"+y++,w(e.options,t.ServiceOptions));if(n||(o._edition=r),e.method)for(var i=0;i<e.method.length;++i)o.add(u.fromDescriptor(e.method[i]));return o},d.prototype.toDescriptor=function(){for(var e=[],r=0;r<this.methodsArray.length;++r)e.push(this._methodsArray[r].toDescriptor());return t.ServiceDescriptorProto.create({name:this.name,method:e,options:_(this.options,t.ServiceOptions)})};var v=0;function b(e,t,r){switch(e){case"double":return 1;case"float":return 2;case"int64":return 3;case"uint64":return 4;case"int32":return 5;case"fixed64":return 6;case"fixed32":return 7;case"bool":return 8;case"string":return 9;case"bytes":return 12;case"uint32":return 13;case"sfixed32":return 15;case"sfixed64":return 16;case"sint32":return 17;case"sint64":return 18}if(t instanceof i)return 14;if(t instanceof a)return r?10:11;throw Error("illegal type: "+e)}function O(e,t){for(var r,n,o={},s=0;s<t.fieldsArray.length;++s)if("uninterpretedOption"!==(n=(r=t._fieldsArray[s]).name)&&Object.prototype.hasOwnProperty.call(e,n)){var l=E(n);r.resolvedType instanceof a?o[l]=O(e[n],r.resolvedType):r.resolvedType instanceof i?o[l]=r.resolvedType.valuesById[e[n]]:o[l]=e[n]}return o}function w(e,t){if(e)return O(t.toObject(e),t)}function S(e,t){for(var n={},o=Object.keys(e),i=0;i<o.length;++i){var s=o[i],l=r.util.camelCase(s);if(Object.prototype.hasOwnProperty.call(t.fields,l)){var p=t.fields[l];p.resolvedType instanceof a?n[l]=S(e[s],p.resolvedType):n[l]=e[s],p.repeated&&!Array.isArray(n[l])&&(n[l]=[n[l]])}}return n}function _(e,t){if(e)return t.fromObject(S(e,t))}function P(e,t){var r=e.fullName.split("."),i=t.fullName.split("."),a=0,s=0,l=i.length-1;if(!(e instanceof o)&&t instanceof n)for(;a<r.length&&s<l&&r[a]===i[s];){var p=t.lookup(r[a++],!0);if(null!==p&&p!==t)break;++s}else for(;a<r.length&&s<l&&r[a]===i[s];++a,++s);return i.slice(s).join(".")}function E(e){return e.substring(0,1)+e.substring(1).replace(/([A-Z])(?=[a-z]|$)/g,function(e,t){return"_"+t.toLowerCase()})}function T(e){if("editions"===e.syntax){if(e.edition===t.Edition.EDITION_2023)return"2023";throw new Error("Unsupported edition "+e.edition)}return"proto3"===e.syntax?"proto3":"proto2"}u.fromDescriptor=function(e){return"number"==typeof e.length&&(e=t.MethodDescriptorProto.decode(e)),new u(e.name&&e.name.length?e.name:"Method"+v++,"rpc",e.inputType,e.outputType,Boolean(e.clientStreaming),Boolean(e.serverStreaming),w(e.options,t.MethodOptions))},u.prototype.toDescriptor=function(){return t.MethodDescriptorProto.create({name:this.name,inputType:this.resolvedRequestType?this.resolvedRequestType.fullName:this.requestType,outputType:this.resolvedResponseType?this.resolvedResponseType.fullName:this.responseType,clientStreaming:this.requestStream,serverStreaming:this.responseStream,options:_(this.options,t.MethodOptions)})}}(descriptor$1,descriptor$1.exports)),descriptor$1.exports}var util$4={},nested$6={google:{nested:{protobuf:{nested:{Api:{fields:{name:{type:"string",id:1},methods:{rule:"repeated",type:"Method",id:2},options:{rule:"repeated",type:"Option",id:3},version:{type:"string",id:4},sourceContext:{type:"SourceContext",id:5},mixins:{rule:"repeated",type:"Mixin",id:6},syntax:{type:"Syntax",id:7}}},Method:{fields:{name:{type:"string",id:1},requestTypeUrl:{type:"string",id:2},requestStreaming:{type:"bool",id:3},responseTypeUrl:{type:"string",id:4},responseStreaming:{type:"bool",id:5},options:{rule:"repeated",type:"Option",id:6},syntax:{type:"Syntax",id:7}}},Mixin:{fields:{name:{type:"string",id:1},root:{type:"string",id:2}}},SourceContext:{fields:{fileName:{type:"string",id:1}}},Option:{fields:{name:{type:"string",id:1},value:{type:"Any",id:2}}},Syntax:{values:{SYNTAX_PROTO2:0,SYNTAX_PROTO3:1}}}}}}},require$$3$1={nested:nested$6},nested$5={google:{nested:{protobuf:{nested:{SourceContext:{fields:{fileName:{type:"string",id:1}}}}}}}},require$$5$2={nested:nested$5},nested$4={google:{nested:{protobuf:{nested:{Type:{fields:{name:{type:"string",id:1},fields:{rule:"repeated",type:"Field",id:2},oneofs:{rule:"repeated",type:"string",id:3},options:{rule:"repeated",type:"Option",id:4},sourceContext:{type:"SourceContext",id:5},syntax:{type:"Syntax",id:6}}},Field:{fields:{kind:{type:"Kind",id:1},cardinality:{type:"Cardinality",id:2},number:{type:"int32",id:3},name:{type:"string",id:4},typeUrl:{type:"string",id:6},oneofIndex:{type:"int32",id:7},packed:{type:"bool",id:8},options:{rule:"repeated",type:"Option",id:9},jsonName:{type:"string",id:10},defaultValue:{type:"string",id:11}},nested:{Kind:{values:{TYPE_UNKNOWN:0,TYPE_DOUBLE:1,TYPE_FLOAT:2,TYPE_INT64:3,TYPE_UINT64:4,TYPE_INT32:5,TYPE_FIXED64:6,TYPE_FIXED32:7,TYPE_BOOL:8,TYPE_STRING:9,TYPE_GROUP:10,TYPE_MESSAGE:11,TYPE_BYTES:12,TYPE_UINT32:13,TYPE_ENUM:14,TYPE_SFIXED32:15,TYPE_SFIXED64:16,TYPE_SINT32:17,TYPE_SINT64:18}},Cardinality:{values:{CARDINALITY_UNKNOWN:0,CARDINALITY_OPTIONAL:1,CARDINALITY_REQUIRED:2,CARDINALITY_REPEATED:3}}}},Enum:{fields:{name:{type:"string",id:1},enumvalue:{rule:"repeated",type:"EnumValue",id:2},options:{rule:"repeated",type:"Option",id:3},sourceContext:{type:"SourceContext",id:4},syntax:{type:"Syntax",id:5}}},EnumValue:{fields:{name:{type:"string",id:1},number:{type:"int32",id:2},options:{rule:"repeated",type:"Option",id:3}}},Option:{fields:{name:{type:"string",id:1},value:{type:"Any",id:2}}},Syntax:{values:{SYNTAX_PROTO2:0,SYNTAX_PROTO3:1}},Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}},SourceContext:{fields:{fileName:{type:"string",id:1}}}}}}}},require$$6$1={nested:nested$4},hasRequiredUtil$4;function requireUtil$4(){if(hasRequiredUtil$4)return util$4;hasRequiredUtil$4=1,
|
|
8
|
+
/**
|
|
9
|
+
* @license
|
|
10
|
+
* Copyright 2018 gRPC authors.
|
|
11
|
+
*
|
|
12
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
13
|
+
* you may not use this file except in compliance with the License.
|
|
14
|
+
* You may obtain a copy of the License at
|
|
15
|
+
*
|
|
16
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
+
*
|
|
18
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
19
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
20
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
21
|
+
* See the License for the specific language governing permissions and
|
|
22
|
+
* limitations under the License.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
Object.defineProperty(util$4,"__esModule",{value:!0}),util$4.addCommonProtos=util$4.loadProtosWithOptionsSync=util$4.loadProtosWithOptions=void 0;const e=require$$0__default.default,t=require$$1__default$2.default,r=requireProtobufjs();function n(r,n){const o=r.resolvePath;r.resolvePath=(r,i)=>{if(t.isAbsolute(i))return i;for(const r of n){const n=t.join(r,i);try{return e.accessSync(n,e.constants.R_OK),n}catch(e){continue}}return process.emitWarning(`${i} not found in any of the include paths ${n}`),o(r,i)}}return util$4.loadProtosWithOptions=async function(e,t){const o=new r.Root;if((t=t||{}).includeDirs){if(!Array.isArray(t.includeDirs))return Promise.reject(new Error("The includeDirs option must be an array"));n(o,t.includeDirs)}const i=await o.load(e,t);return i.resolveAll(),i},util$4.loadProtosWithOptionsSync=function(e,t){const o=new r.Root;if((t=t||{}).includeDirs){if(!Array.isArray(t.includeDirs))throw new Error("The includeDirs option must be an array");n(o,t.includeDirs)}const i=o.loadSync(e,t);return i.resolveAll(),i},util$4.addCommonProtos=function(){const e=require$$3$1,t=require$$4$2,n=require$$5$2,o=require$$6$1;r.common("api",e.nested.google.nested.protobuf.nested),r.common("descriptor",t.nested.google.nested.protobuf.nested),r.common("source_context",n.nested.google.nested.protobuf.nested),r.common("type",o.nested.google.nested.protobuf.nested)},util$4}var umd$1={exports:{}},umd=umd$1.exports,hasRequiredUmd,hasRequiredSrc$6,hasRequiredChannelz;function requireUmd(){return hasRequiredUmd||(hasRequiredUmd=1,function(e,t){"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;
|
|
26
|
+
/**
|
|
27
|
+
* @license
|
|
28
|
+
* Copyright 2009 The Closure Library Authors
|
|
29
|
+
* Copyright 2020 Daniel Wirtz / The long.js Authors.
|
|
30
|
+
*
|
|
31
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
32
|
+
* you may not use this file except in compliance with the License.
|
|
33
|
+
* You may obtain a copy of the License at
|
|
34
|
+
*
|
|
35
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
36
|
+
*
|
|
37
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
38
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
39
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
40
|
+
* See the License for the specific language governing permissions and
|
|
41
|
+
* limitations under the License.
|
|
42
|
+
*
|
|
43
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
44
|
+
*/
|
|
45
|
+
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 r(e,t,r){this.low=0|e,this.high=0|t,this.unsigned=!!r}function n(e){return!0===(e&&e.__isLong__)}function o(e){var t=Math.clz32(e&-e);return e?31-t:t}r.prototype.__isLong__,Object.defineProperty(r.prototype,"__isLong__",{value:!0}),r.isLong=n;var i={},a={};function s(e,t){var r,n,o;return t?(o=0<=(e>>>=0)&&e<256)&&(n=a[e])?n:(r=p(e,0,!0),o&&(a[e]=r),r):(o=-128<=(e|=0)&&e<128)&&(n=i[e])?n:(r=p(e,e<0?-1:0,!1),o&&(i[e]=r),r)}function l(e,t){if(isNaN(e))return t?b:v;if(t){if(e<0)return b;if(e>=m)return P}else{if(e<=-g)return E;if(e+1>=g)return _}return e<0?l(-e,t).neg():p(e%h|0,e/h|0,t)}function p(e,t,n){return new r(e,t,n)}r.fromInt=s,r.fromNumber=l,r.fromBits=p;var d=Math.pow;function u(e,t,r){if(0===e.length)throw Error("empty string");if("number"==typeof t?(r=t,t=!1):t=!!t,"NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return t?b:v;if((r=r||10)<2||36<r)throw RangeError("radix");var n;if((n=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===n)return u(e.substring(1),t,r).neg();for(var o=l(d(r,8)),i=v,a=0;a<e.length;a+=8){var s=Math.min(8,e.length-a),p=parseInt(e.substring(a,a+s),r);if(s<8){var c=l(d(r,s));i=i.mul(c).add(l(p))}else i=(i=i.mul(o)).add(l(p))}return i.unsigned=t,i}function c(e,t){return"number"==typeof e?l(e,t):"string"==typeof e?u(e,t):p(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}r.fromString=u,r.fromValue=c;var f=65536,h=f*f,m=h*h,g=m/2,y=s(1<<24),v=s(0);r.ZERO=v;var b=s(0,!0);r.UZERO=b;var O=s(1);r.ONE=O;var w=s(1,!0);r.UONE=w;var S=s(-1);r.NEG_ONE=S;var _=p(-1,2147483647,!1);r.MAX_VALUE=_;var P=p(-1,-1,!0);r.MAX_UNSIGNED_VALUE=P;var E=p(0,-2147483648,!1);r.MIN_VALUE=E;var T=r.prototype;T.toInt=function(){return this.unsigned?this.low>>>0:this.low},T.toNumber=function(){return this.unsigned?(this.high>>>0)*h+(this.low>>>0):this.high*h+(this.low>>>0)},T.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(E)){var t=l(e),r=this.div(t),n=r.mul(t).sub(this);return r.toString(e)+n.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var o=l(d(e,6),this.unsigned),i=this,a="";;){var s=i.div(o),p=(i.sub(s.mul(o)).toInt()>>>0).toString(e);if((i=s).isZero())return p+a;for(;p.length<6;)p="0"+p;a=""+p+a}},T.getHighBits=function(){return this.high},T.getHighBitsUnsigned=function(){return this.high>>>0},T.getLowBits=function(){return this.low},T.getLowBitsUnsigned=function(){return this.low>>>0},T.getNumBitsAbs=function(){if(this.isNegative())return this.eq(E)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&!(e&1<<t);t--);return 0!=this.high?t+33:t+1},T.isSafeInteger=function(){var e=this.high>>21;return!e||!this.unsigned&&-1===e&&!(0===this.low&&-2097152===this.high)},T.isZero=function(){return 0===this.high&&0===this.low},T.eqz=T.isZero,T.isNegative=function(){return!this.unsigned&&this.high<0},T.isPositive=function(){return this.unsigned||this.high>=0},T.isOdd=function(){return!(1&~this.low)},T.isEven=function(){return!(1&this.low)},T.equals=function(e){return n(e)||(e=c(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},T.eq=T.equals,T.notEquals=function(e){return!this.eq(e)},T.neq=T.notEquals,T.ne=T.notEquals,T.lessThan=function(e){return this.comp(e)<0},T.lt=T.lessThan,T.lessThanOrEqual=function(e){return this.comp(e)<=0},T.lte=T.lessThanOrEqual,T.le=T.lessThanOrEqual,T.greaterThan=function(e){return this.comp(e)>0},T.gt=T.greaterThan,T.greaterThanOrEqual=function(e){return this.comp(e)>=0},T.gte=T.greaterThanOrEqual,T.ge=T.greaterThanOrEqual,T.compare=function(e){if(n(e)||(e=c(e)),this.eq(e))return 0;var t=this.isNegative(),r=e.isNegative();return t&&!r?-1:!t&&r?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},T.comp=T.compare,T.negate=function(){return!this.unsigned&&this.eq(E)?E:this.not().add(O)},T.neg=T.negate,T.add=function(e){n(e)||(e=c(e));var t=this.high>>>16,r=65535&this.high,o=this.low>>>16,i=65535&this.low,a=e.high>>>16,s=65535&e.high,l=e.low>>>16,d=0,u=0,f=0,h=0;return f+=(h+=i+(65535&e.low))>>>16,u+=(f+=o+l)>>>16,d+=(u+=r+s)>>>16,d+=t+a,p((f&=65535)<<16|(h&=65535),(d&=65535)<<16|(u&=65535),this.unsigned)},T.subtract=function(e){return n(e)||(e=c(e)),this.add(e.neg())},T.sub=T.subtract,T.multiply=function(e){if(this.isZero())return this;if(n(e)||(e=c(e)),t)return p(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return this.unsigned?b:v;if(this.eq(E))return e.isOdd()?E:v;if(e.eq(E))return this.isOdd()?E:v;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(y)&&e.lt(y))return l(this.toNumber()*e.toNumber(),this.unsigned);var r=this.high>>>16,o=65535&this.high,i=this.low>>>16,a=65535&this.low,s=e.high>>>16,d=65535&e.high,u=e.low>>>16,f=65535&e.low,h=0,m=0,g=0,O=0;return g+=(O+=a*f)>>>16,m+=(g+=i*f)>>>16,g&=65535,m+=(g+=a*u)>>>16,h+=(m+=o*f)>>>16,m&=65535,h+=(m+=i*u)>>>16,m&=65535,h+=(m+=a*d)>>>16,h+=r*f+o*u+i*d+a*s,p((g&=65535)<<16|(O&=65535),(h&=65535)<<16|(m&=65535),this.unsigned)},T.mul=T.multiply,T.divide=function(e){if(n(e)||(e=c(e)),e.isZero())throw Error("division by zero");var r,o,i;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?p((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?b:v;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return b;if(e.gt(this.shru(1)))return w;i=b}else{if(this.eq(E))return e.eq(O)||e.eq(S)?E:e.eq(E)?O:(r=this.shr(1).div(e).shl(1)).eq(v)?e.isNegative()?O:S:(o=this.sub(e.mul(r)),i=r.add(o.div(e)));if(e.eq(E))return this.unsigned?b:v;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();i=v}for(o=this;o.gte(e);){r=Math.max(1,Math.floor(o.toNumber()/e.toNumber()));for(var a=Math.ceil(Math.log(r)/Math.LN2),s=a<=48?1:d(2,a-48),u=l(r),f=u.mul(e);f.isNegative()||f.gt(o);)f=(u=l(r-=s,this.unsigned)).mul(e);u.isZero()&&(u=O),i=i.add(u),o=o.sub(f)}return i},T.div=T.divide,T.modulo=function(e){return n(e)||(e=c(e)),t?p((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))},T.mod=T.modulo,T.rem=T.modulo,T.not=function(){return p(~this.low,~this.high,this.unsigned)},T.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},T.clz=T.countLeadingZeros,T.countTrailingZeros=function(){return this.low?o(this.low):o(this.high)+32},T.ctz=T.countTrailingZeros,T.and=function(e){return n(e)||(e=c(e)),p(this.low&e.low,this.high&e.high,this.unsigned)},T.or=function(e){return n(e)||(e=c(e)),p(this.low|e.low,this.high|e.high,this.unsigned)},T.xor=function(e){return n(e)||(e=c(e)),p(this.low^e.low,this.high^e.high,this.unsigned)},T.shiftLeft=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?p(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):p(0,this.low<<e-32,this.unsigned)},T.shl=T.shiftLeft,T.shiftRight=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?p(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):p(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},T.shr=T.shiftRight,T.shiftRightUnsigned=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?p(this.low>>>e|this.high<<32-e,this.high>>>e,this.unsigned):p(32===e?this.high:this.high>>>e-32,0,this.unsigned)},T.shru=T.shiftRightUnsigned,T.shr_u=T.shiftRightUnsigned,T.rotateLeft=function(e){var t;return n(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?p(this.high,this.low,this.unsigned):e<32?(t=32-e,p(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned)):(t=32-(e-=32),p(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned))},T.rotl=T.rotateLeft,T.rotateRight=function(e){var t;return n(e)&&(e=e.toInt()),0==(e&=63)?this:32===e?p(this.high,this.low,this.unsigned):e<32?(t=32-e,p(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned)):(t=32-(e-=32),p(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned))},T.rotr=T.rotateRight,T.toSigned=function(){return this.unsigned?p(this.low,this.high,!1):this},T.toUnsigned=function(){return this.unsigned?this:p(this.low,this.high,!0)},T.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},T.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},T.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},r.fromBytes=function(e,t,n){return n?r.fromBytesLE(e,t):r.fromBytesBE(e,t)},r.fromBytesLE=function(e,t){return new r(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},r.fromBytesBE=function(e,t){return new r(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)},"function"==typeof BigInt&&(r.fromBigInt=function(e,t){return p(Number(BigInt.asIntN(32,e)),Number(BigInt.asIntN(32,e>>BigInt(32))),t)},r.fromValue=function(e,t){return"bigint"==typeof e?r.fromBigInt(e,t):c(e,t)},T.toBigInt=function(){var e=BigInt(this.low>>>0);return BigInt(this.unsigned?this.high>>>0:this.high)<<BigInt(32)|e}),e.default=r}(t),e.exports=function(e){return e.default||e}(t)}(umd$1,umd$1.exports)),umd$1.exports}function requireSrc$6(){return hasRequiredSrc$6||(hasRequiredSrc$6=1,function(e){
|
|
46
|
+
/**
|
|
47
|
+
* @license
|
|
48
|
+
* Copyright 2018 gRPC authors.
|
|
49
|
+
*
|
|
50
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
51
|
+
* you may not use this file except in compliance with the License.
|
|
52
|
+
* You may obtain a copy of the License at
|
|
53
|
+
*
|
|
54
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
55
|
+
*
|
|
56
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
57
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
58
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
59
|
+
* See the License for the specific language governing permissions and
|
|
60
|
+
* limitations under the License.
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
Object.defineProperty(e,"__esModule",{value:!0}),e.loadFileDescriptorSetFromObject=e.loadFileDescriptorSetFromBuffer=e.fromJSON=e.loadSync=e.load=e.IdempotencyLevel=e.isAnyExtension=e.Long=void 0;const t=requireLodash_camelcase(),r=requireProtobufjs(),n=requireDescriptor$1(),o=requireUtil$4(),i=requireUmd();var a;e.Long=i,e.isAnyExtension=function(e){return"@type"in e&&"string"==typeof e["@type"]},function(e){e.IDEMPOTENCY_UNKNOWN="IDEMPOTENCY_UNKNOWN",e.NO_SIDE_EFFECTS="NO_SIDE_EFFECTS",e.IDEMPOTENT="IDEMPOTENT"}(a=e.IdempotencyLevel||(e.IdempotencyLevel={}));const s={longs:String,enums:String,bytes:String,defaults:!0,oneofs:!0,json:!0};function l(e,t){const n=function(e,t){return""===e?t:e+"."+t}(t,e.name);return function(e){return e instanceof r.Service||e instanceof r.Type||e instanceof r.Enum}(e)?[[n,e]]:function(e){return e instanceof r.Namespace||e instanceof r.Root}(e)&&void 0!==e.nested?Object.keys(e.nested).map(t=>l(e.nested[t],n)).reduce((e,t)=>e.concat(t),[]):[]}function p(e,t){return function(r){return e.toObject(e.decode(r),t)}}function d(e){return function(t){if(Array.isArray(t))throw new Error(`Failed to serialize message: expected object with ${e.name} structure, got array instead`);const r=e.fromObject(t);return e.encode(r).finish()}}function u(e){return(e||[]).reduce((e,t)=>{for(const[r,n]of Object.entries(t))if("uninterpreted_option"===r)e.uninterpreted_option.push(t.uninterpreted_option);else e[r]=n;return e},{deprecated:!1,idempotency_level:a.IDEMPOTENCY_UNKNOWN,uninterpreted_option:[]})}function c(e,r,n,o){const i=e.resolvedRequestType,a=e.resolvedResponseType;return{path:"/"+r+"/"+e.name,requestStream:!!e.requestStream,responseStream:!!e.responseStream,requestSerialize:d(i),requestDeserialize:p(i,n),responseSerialize:d(a),responseDeserialize:p(a,n),originalName:t(e.name),requestType:f(i,n,o),responseType:f(a,n,o),options:u(e.parsedOptions)}}function f(e,t,r){const n=e.toDescriptor("proto3");return{format:"Protocol Buffer 3 DescriptorProto",type:n.$type.toObject(n,s),fileDescriptorProtos:r,serialize:d(e),deserialize:p(e,t)}}function h(e,t,n,o){if(e instanceof r.Service)return function(e,t,r,n){const o={};for(const i of e.methodsArray)o[i.name]=c(i,t,r,n);return o}(e,t,n,o);if(e instanceof r.Type)return f(e,n,o);if(e instanceof r.Enum)return function(e,t){const r=e.toDescriptor("proto3");return{format:"Protocol Buffer 3 EnumDescriptorProto",type:r.$type.toObject(r,s),fileDescriptorProtos:t}}(e,o);throw new Error("Type mismatch in reflection object handling")}function m(e,t){const r={};e.resolveAll();const o=e.toDescriptor("proto3").file.map(e=>Buffer.from(n.FileDescriptorProto.encode(e).finish()));for(const[n,i]of l(e,""))r[n]=h(i,n,t,o);return r}function g(e,t){t=t||{};const n=r.Root.fromDescriptor(e);return n.resolveAll(),m(n,t)}e.load=function(e,t){return(0,o.loadProtosWithOptions)(e,t).then(e=>m(e,t))},e.loadSync=function(e,t){return m((0,o.loadProtosWithOptionsSync)(e,t),t)},e.fromJSON=function(e,t){t=t||{};const n=r.Root.fromJSON(e);return n.resolveAll(),m(n,t)},e.loadFileDescriptorSetFromBuffer=function(e,t){return g(n.FileDescriptorSet.decode(e),t)},e.loadFileDescriptorSetFromObject=function(e,t){return g(n.FileDescriptorSet.fromObject(e),t)},(0,o.addCommonProtos)()}(src$5)),src$5}function requireChannelz(){if(hasRequiredChannelz)return channelz;hasRequiredChannelz=1,Object.defineProperty(channelz,"__esModule",{value:!0}),channelz.registerChannelzSocket=channelz.registerChannelzServer=channelz.registerChannelzSubchannel=channelz.registerChannelzChannel=channelz.ChannelzCallTrackerStub=channelz.ChannelzCallTracker=channelz.ChannelzChildrenTrackerStub=channelz.ChannelzChildrenTracker=channelz.ChannelzTrace=channelz.ChannelzTraceStub=void 0,channelz.unregisterChannelzRef=function(e){f[e.kind].eraseElementByKey(e.id)},channelz.getChannelzHandlers=k,channelz.getChannelzServiceDefinition=j,channelz.setup=function(){(0,i.registerAdminService)(j,k)};const e=require$$0__default$2.default,t=require$$1$2,r=requireConnectivityState(),n=requireConstants(),o=requireSubchannelAddress(),i=requireAdmin(),a=requireMakeClient();function s(e){return{channel_id:e.id,name:e.name}}function l(e){return{subchannel_id:e.id,name:e.name}}function p(e){return{socket_id:e.id,name:e.name}}const d=100;channelz.ChannelzTraceStub=class{constructor(){this.events=[],this.creationTimestamp=new Date,this.eventsLogged=0}addTrace(){}getTraceMessage(){return{creation_timestamp:b(this.creationTimestamp),num_events_logged:this.eventsLogged,events:[]}}};channelz.ChannelzTrace=class{constructor(){this.events=[],this.eventsLogged=0,this.creationTimestamp=new Date}addTrace(e,t,r){const n=new Date;this.events.push({description:t,severity:e,timestamp:n,childChannel:"channel"===(null==r?void 0:r.kind)?r:void 0,childSubchannel:"subchannel"===(null==r?void 0:r.kind)?r:void 0}),this.events.length>=64&&(this.events=this.events.slice(32)),this.eventsLogged+=1}getTraceMessage(){return{creation_timestamp:b(this.creationTimestamp),num_events_logged:this.eventsLogged,events:this.events.map(e=>({description:e.description,severity:e.severity,timestamp:b(e.timestamp),channel_ref:e.childChannel?s(e.childChannel):null,subchannel_ref:e.childSubchannel?l(e.childSubchannel):null}))}}};class u{constructor(){this.channelChildren=new t.OrderedMap,this.subchannelChildren=new t.OrderedMap,this.socketChildren=new t.OrderedMap,this.trackerMap={channel:this.channelChildren,subchannel:this.subchannelChildren,socket:this.socketChildren}}refChild(e){const t=this.trackerMap[e.kind],r=t.find(e.id);r.equals(t.end())?t.setElement(e.id,{ref:e,count:1},r):r.pointer[1].count+=1}unrefChild(e){const t=this.trackerMap[e.kind],r=t.getElementByKey(e.id);void 0!==r&&(r.count-=1,0===r.count&&t.eraseElementByKey(e.id))}getChildLists(){return{channels:this.channelChildren,subchannels:this.subchannelChildren,sockets:this.socketChildren}}}channelz.ChannelzChildrenTracker=u;channelz.ChannelzChildrenTrackerStub=class extends u{refChild(){}unrefChild(){}};class c{constructor(){this.callsStarted=0,this.callsSucceeded=0,this.callsFailed=0,this.lastCallStartedTimestamp=null}addCallStarted(){this.callsStarted+=1,this.lastCallStartedTimestamp=new Date}addCallSucceeded(){this.callsSucceeded+=1}addCallFailed(){this.callsFailed+=1}}channelz.ChannelzCallTracker=c;channelz.ChannelzCallTrackerStub=class extends c{addCallStarted(){}addCallSucceeded(){}addCallFailed(){}};const f={channel:new t.OrderedMap,subchannel:new t.OrderedMap,server:new t.OrderedMap,socket:new t.OrderedMap},h=e=>{let t=1;const r=f[e];return(n,o,i)=>{const a=t++,s={id:a,name:n,kind:e};return i&&r.setElement(a,{ref:s,getInfo:o}),s}};function m(e){if(""===e)return[];const t=e.split(":").map(e=>function(e){const t=Number.parseInt(e,16);return[t/256|0,t%256]}(e));return[].concat(...t)}function g(e){return Buffer.from(Uint8Array.from(e.split(".").map(e=>Number.parseInt(e))))}function y(t){if((0,e.isIPv4)(t))return g(t);if(function(t){return(0,e.isIPv6)(t)&&t.toLowerCase().startsWith("::ffff:")&&(0,e.isIPv4)(t.substring(7))}(t))return g(t.substring(7));if((0,e.isIPv6)(t)){let e,r;const n=t.indexOf("::");-1===n?(e=t,r=""):(e=t.substring(0,n),r=t.substring(n+2));const o=Buffer.from(m(e)),i=Buffer.from(m(r)),a=Buffer.alloc(16-o.length-i.length,0);return Buffer.concat([o,a,i])}return null}function v(e){switch(e){case r.ConnectivityState.CONNECTING:return{state:"CONNECTING"};case r.ConnectivityState.IDLE:return{state:"IDLE"};case r.ConnectivityState.READY:return{state:"READY"};case r.ConnectivityState.SHUTDOWN:return{state:"SHUTDOWN"};case r.ConnectivityState.TRANSIENT_FAILURE:return{state:"TRANSIENT_FAILURE"};default:return{state:"UNKNOWN"}}}function b(e){if(!e)return null;const t=e.getTime();return{seconds:t/1e3|0,nanos:t%1e3*1e6}}function O(e){const t=e.getInfo(),r=[],n=[];return t.children.channels.forEach(e=>{r.push(s(e[1].ref))}),t.children.subchannels.forEach(e=>{n.push(l(e[1].ref))}),{ref:s(e.ref),data:{target:t.target,state:v(t.state),calls_started:t.callTracker.callsStarted,calls_succeeded:t.callTracker.callsSucceeded,calls_failed:t.callTracker.callsFailed,last_call_started_timestamp:b(t.callTracker.lastCallStartedTimestamp),trace:t.trace.getTraceMessage()},channel_ref:r,subchannel_ref:n}}function w(e,t){const r=parseInt(e.request.channel_id,10),o=f.channel.getElementByKey(r);void 0!==o?t(null,{channel:O(o)}):t({code:n.Status.NOT_FOUND,details:"No channel data found for id "+r})}function S(e,t){const r=parseInt(e.request.max_results,10)||d,n=[],o=parseInt(e.request.start_channel_id,10),i=f.channel;let a;for(a=i.lowerBound(o);!a.equals(i.end())&&n.length<r;a=a.next())n.push(O(a.pointer[1]));t(null,{channel:n,end:a.equals(i.end())})}function _(e){const t=e.getInfo(),r=[];return t.listenerChildren.sockets.forEach(e=>{r.push(p(e[1].ref))}),{ref:(n=e.ref,{server_id:n.id}),data:{calls_started:t.callTracker.callsStarted,calls_succeeded:t.callTracker.callsSucceeded,calls_failed:t.callTracker.callsFailed,last_call_started_timestamp:b(t.callTracker.lastCallStartedTimestamp),trace:t.trace.getTraceMessage()},listen_socket:r};var n}function P(e,t){const r=parseInt(e.request.server_id,10),o=f.server.getElementByKey(r);void 0!==o?t(null,{server:_(o)}):t({code:n.Status.NOT_FOUND,details:"No server data found for id "+r})}function E(e,t){const r=parseInt(e.request.max_results,10)||d,n=parseInt(e.request.start_server_id,10),o=f.server,i=[];let a;for(a=o.lowerBound(n);!a.equals(o.end())&&i.length<r;a=a.next())i.push(_(a.pointer[1]));t(null,{server:i,end:a.equals(o.end())})}function T(e,t){const r=parseInt(e.request.subchannel_id,10),o=f.subchannel.getElementByKey(r);if(void 0===o)return void t({code:n.Status.NOT_FOUND,details:"No subchannel data found for id "+r});const i=o.getInfo(),a=[];i.children.sockets.forEach(e=>{a.push(p(e[1].ref))});t(null,{subchannel:{ref:l(o.ref),data:{target:i.target,state:v(i.state),calls_started:i.callTracker.callsStarted,calls_succeeded:i.callTracker.callsSucceeded,calls_failed:i.callTracker.callsFailed,last_call_started_timestamp:b(i.callTracker.lastCallStartedTimestamp),trace:i.trace.getTraceMessage()},socket_ref:a}})}function C(e){var t;return(0,o.isTcpSubchannelAddress)(e)?{address:"tcpip_address",tcpip_address:{ip_address:null!==(t=y(e.host))&&void 0!==t?t:void 0,port:e.port}}:{address:"uds_address",uds_address:{filename:e.path}}}function R(e,t){var r,o,i,a,s;const l=parseInt(e.request.socket_id,10),d=f.socket.getElementByKey(l);if(void 0===d)return void t({code:n.Status.NOT_FOUND,details:"No socket data found for id "+l});const u=d.getInfo(),c=u.security?{model:"tls",tls:{cipher_suite:u.security.cipherSuiteStandardName?"standard_name":"other_name",standard_name:null!==(r=u.security.cipherSuiteStandardName)&&void 0!==r?r:void 0,other_name:null!==(o=u.security.cipherSuiteOtherName)&&void 0!==o?o:void 0,local_certificate:null!==(i=u.security.localCertificate)&&void 0!==i?i:void 0,remote_certificate:null!==(a=u.security.remoteCertificate)&&void 0!==a?a:void 0}}:null;t(null,{socket:{ref:p(d.ref),local:u.localAddress?C(u.localAddress):null,remote:u.remoteAddress?C(u.remoteAddress):null,remote_name:null!==(s=u.remoteName)&&void 0!==s?s:void 0,security:c,data:{keep_alives_sent:u.keepAlivesSent,streams_started:u.streamsStarted,streams_succeeded:u.streamsSucceeded,streams_failed:u.streamsFailed,last_local_stream_created_timestamp:b(u.lastLocalStreamCreatedTimestamp),last_remote_stream_created_timestamp:b(u.lastRemoteStreamCreatedTimestamp),messages_received:u.messagesReceived,messages_sent:u.messagesSent,last_message_received_timestamp:b(u.lastMessageReceivedTimestamp),last_message_sent_timestamp:b(u.lastMessageSentTimestamp),local_flow_control_window:u.localFlowControlWindow?{value:u.localFlowControlWindow}:null,remote_flow_control_window:u.remoteFlowControlWindow?{value:u.remoteFlowControlWindow}:null}}})}function D(e,t){const r=parseInt(e.request.server_id,10),o=f.server.getElementByKey(r);if(void 0===o)return void t({code:n.Status.NOT_FOUND,details:"No server data found for id "+r});const i=parseInt(e.request.start_socket_id,10),a=parseInt(e.request.max_results,10)||d,s=o.getInfo().sessionChildren.sockets,l=[];let u;for(u=s.lowerBound(i);!u.equals(s.end())&&l.length<a;u=u.next())l.push(p(u.pointer[1].ref));t(null,{socket_ref:l,end:u.equals(s.end())})}function k(){return{GetChannel:w,GetTopChannels:S,GetServer:P,GetServers:E,GetSubchannel:T,GetSocket:R,GetServerSockets:D}}channelz.registerChannelzChannel=h("channel"),channelz.registerChannelzSubchannel=h("subchannel"),channelz.registerChannelzServer=h("server"),channelz.registerChannelzSocket=h("socket");let x=null;function j(){if(x)return x;const e=(0,requireSrc$6().loadSync)("channelz.proto",{keepCase:!0,longs:String,enums:String,defaults:!0,oneofs:!0,includeDirs:[`${__dirname}/../../proto`]}),t=(0,a.loadPackageDefinition)(e);return x=t.grpc.channelz.v1.Channelz.service,x}return channelz}var singleSubchannelChannel={},callNumber={},hasRequiredCallNumber;function requireCallNumber(){if(hasRequiredCallNumber)return callNumber;hasRequiredCallNumber=1,Object.defineProperty(callNumber,"__esModule",{value:!0}),callNumber.getNextCallNumber=function(){return e++};let e=0;return callNumber}var compressionFilter={},compressionAlgorithms={},hasRequiredCompressionAlgorithms;function requireCompressionAlgorithms(){return hasRequiredCompressionAlgorithms||(hasRequiredCompressionAlgorithms=1,Object.defineProperty(compressionAlgorithms,"__esModule",{value:!0}),compressionAlgorithms.CompressionAlgorithms=void 0,function(e){e[e.identity=0]="identity",e[e.deflate=1]="deflate",e[e.gzip=2]="gzip"}(e||(compressionAlgorithms.CompressionAlgorithms=e={}))),compressionAlgorithms;var e}var filter={},hasRequiredFilter,hasRequiredCompressionFilter;function requireFilter(){if(hasRequiredFilter)return filter;hasRequiredFilter=1,Object.defineProperty(filter,"__esModule",{value:!0}),filter.BaseFilter=void 0;return filter.BaseFilter=class{async sendMetadata(e){return e}receiveMetadata(e){return e}async sendMessage(e){return e}async receiveMessage(e){return e}receiveTrailers(e){return e}},filter}function requireCompressionFilter(){if(hasRequiredCompressionFilter)return compressionFilter;hasRequiredCompressionFilter=1,Object.defineProperty(compressionFilter,"__esModule",{value:!0}),compressionFilter.CompressionFilterFactory=compressionFilter.CompressionFilter=void 0;const e=zlib__default.default,t=requireCompressionAlgorithms(),r=requireConstants(),n=requireFilter(),o=requireLogging();class i{async writeMessage(e,t){let r=e;t&&(r=await this.compressMessage(r));const n=Buffer.allocUnsafe(r.length+5);return n.writeUInt8(t?1:0,0),n.writeUInt32BE(r.length,1),r.copy(n,5),n}async readMessage(e){const t=1===e.readUInt8(0);let r=e.slice(5);return t&&(r=await this.decompressMessage(r)),r}}class a extends i{async compressMessage(e){return e}async writeMessage(e,t){const r=Buffer.allocUnsafe(e.length+5);return r.writeUInt8(0,0),r.writeUInt32BE(e.length,1),e.copy(r,5),r}decompressMessage(e){return Promise.reject(new Error('Received compressed message but "grpc-encoding" header was identity'))}}class s extends i{constructor(e){super(),this.maxRecvMessageLength=e}compressMessage(t){return new Promise((r,n)=>{e.deflate(t,(e,t)=>{e?n(e):r(t)})})}decompressMessage(t){return new Promise((n,o)=>{let i=0;const a=[],s=e.createInflate();s.on("data",e=>{a.push(e),i+=e.byteLength,-1!==this.maxRecvMessageLength&&i>this.maxRecvMessageLength&&(s.destroy(),o({code:r.Status.RESOURCE_EXHAUSTED,details:`Received message that decompresses to a size larger than ${this.maxRecvMessageLength}`}))}),s.on("end",()=>{n(Buffer.concat(a))}),s.write(t),s.end()})}}class l extends i{constructor(e){super(),this.maxRecvMessageLength=e}compressMessage(t){return new Promise((r,n)=>{e.gzip(t,(e,t)=>{e?n(e):r(t)})})}decompressMessage(t){return new Promise((n,o)=>{let i=0;const a=[],s=e.createGunzip();s.on("data",e=>{a.push(e),i+=e.byteLength,-1!==this.maxRecvMessageLength&&i>this.maxRecvMessageLength&&(s.destroy(),o({code:r.Status.RESOURCE_EXHAUSTED,details:`Received message that decompresses to a size larger than ${this.maxRecvMessageLength}`}))}),s.on("end",()=>{n(Buffer.concat(a))}),s.write(t),s.end()})}}class p extends i{constructor(e){super(),this.compressionName=e}compressMessage(e){return Promise.reject(new Error(`Received message compressed with unsupported compression method ${this.compressionName}`))}decompressMessage(e){return Promise.reject(new Error(`Compression method not supported: ${this.compressionName}`))}}function d(e,t){switch(e){case"identity":return new a;case"deflate":return new s(t);case"gzip":return new l(t);default:return new p(e)}}class u extends n.BaseFilter{constructor(e,n){var i,s,l;super(),this.sharedFilterConfig=n,this.sendCompression=new a,this.receiveCompression=new a,this.currentCompressionAlgorithm="identity";const p=e["grpc.default_compression_algorithm"];if(this.maxReceiveMessageLength=null!==(i=e["grpc.max_receive_message_length"])&&void 0!==i?i:r.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH,this.maxSendMessageLength=null!==(s=e["grpc.max_send_message_length"])&&void 0!==s?s:r.DEFAULT_MAX_SEND_MESSAGE_LENGTH,void 0!==p)if("number"==typeof(u=p)&&"string"==typeof t.CompressionAlgorithms[u]){const e=t.CompressionAlgorithms[p],r=null===(l=n.serverSupportedEncodingHeader)||void 0===l?void 0:l.split(",");r&&!r.includes(e)||(this.currentCompressionAlgorithm=e,this.sendCompression=d(this.currentCompressionAlgorithm,-1))}else o.log(r.LogVerbosity.ERROR,`Invalid value provided for grpc.default_compression_algorithm option: ${p}`);var u}async sendMetadata(e){const t=await e;return t.set("grpc-accept-encoding","identity,deflate,gzip"),t.set("accept-encoding","identity"),"identity"===this.currentCompressionAlgorithm?t.remove("grpc-encoding"):t.set("grpc-encoding",this.currentCompressionAlgorithm),t}receiveMetadata(e){const t=e.get("grpc-encoding");if(t.length>0){const e=t[0];"string"==typeof e&&(this.receiveCompression=d(e,this.maxReceiveMessageLength))}e.remove("grpc-encoding");const r=e.get("grpc-accept-encoding")[0];if(r){this.sharedFilterConfig.serverSupportedEncodingHeader=r;r.split(",").includes(this.currentCompressionAlgorithm)||(this.sendCompression=new a,this.currentCompressionAlgorithm="identity")}return e.remove("grpc-accept-encoding"),e}async sendMessage(e){var t;const n=await e;if(-1!==this.maxSendMessageLength&&n.message.length>this.maxSendMessageLength)throw{code:r.Status.RESOURCE_EXHAUSTED,details:`Attempted to send message with a size larger than ${this.maxSendMessageLength}`};let o;return o=!(this.sendCompression instanceof a)&&!(2&(null!==(t=n.flags)&&void 0!==t?t:0)),{message:await this.sendCompression.writeMessage(n.message,o),flags:n.flags}}async receiveMessage(e){return this.receiveCompression.readMessage(await e)}}compressionFilter.CompressionFilter=u;return compressionFilter.CompressionFilterFactory=class{constructor(e,t){this.options=t,this.sharedFilterConfig={}}createFilter(){return new u(this.options,this.sharedFilterConfig)}},compressionFilter}var controlPlaneStatus={},hasRequiredControlPlaneStatus;function requireControlPlaneStatus(){if(hasRequiredControlPlaneStatus)return controlPlaneStatus;hasRequiredControlPlaneStatus=1,Object.defineProperty(controlPlaneStatus,"__esModule",{value:!0}),controlPlaneStatus.restrictControlPlaneStatusCode=function(r,n){return t.includes(r)?{code:e.Status.INTERNAL,details:`Invalid status from control plane: ${r} ${e.Status[r]} ${n}`}:{code:r,details:n}};const e=requireConstants(),t=[e.Status.OK,e.Status.INVALID_ARGUMENT,e.Status.NOT_FOUND,e.Status.ALREADY_EXISTS,e.Status.FAILED_PRECONDITION,e.Status.ABORTED,e.Status.OUT_OF_RANGE,e.Status.DATA_LOSS];return controlPlaneStatus}var deadline={},hasRequiredDeadline;function requireDeadline(){if(hasRequiredDeadline)return deadline;hasRequiredDeadline=1,Object.defineProperty(deadline,"__esModule",{value:!0}),deadline.minDeadline=function(...e){let t=1/0;for(const r of e){const e=r instanceof Date?r.getTime():r;e<t&&(t=e)}return t},deadline.getDeadlineTimeoutString=function(t){const r=(new Date).getTime();t instanceof Date&&(t=t.getTime());const n=Math.max(t-r,0);for(const[t,r]of e){const e=n/r;if(e<1e8)return String(Math.ceil(e))+t}throw new Error("Deadline is too far in the future")},deadline.getRelativeTimeout=function(e){const r=e instanceof Date?e.getTime():e,n=(new Date).getTime(),o=r-n;return o<0?0:o>t?1/0:o},deadline.deadlineToString=function(e){if(e instanceof Date)return e.toISOString();{const t=new Date(e);return Number.isNaN(t.getTime())?""+e:t.toISOString()}},deadline.formatDateDifference=function(e,t){return((t.getTime()-e.getTime())/1e3).toFixed(3)+"s"};const e=[["m",1],["S",1e3],["M",6e4],["H",36e5]];const t=2147483647;return deadline}var filterStack={},hasRequiredFilterStack,hasRequiredSingleSubchannelChannel,hasRequiredSubchannel;function requireFilterStack(){if(hasRequiredFilterStack)return filterStack;hasRequiredFilterStack=1,Object.defineProperty(filterStack,"__esModule",{value:!0}),filterStack.FilterStackFactory=filterStack.FilterStack=void 0;class e{constructor(e){this.filters=e}sendMetadata(e){let t=e;for(let e=0;e<this.filters.length;e++)t=this.filters[e].sendMetadata(t);return t}receiveMetadata(e){let t=e;for(let e=this.filters.length-1;e>=0;e--)t=this.filters[e].receiveMetadata(t);return t}sendMessage(e){let t=e;for(let e=0;e<this.filters.length;e++)t=this.filters[e].sendMessage(t);return t}receiveMessage(e){let t=e;for(let e=this.filters.length-1;e>=0;e--)t=this.filters[e].receiveMessage(t);return t}receiveTrailers(e){let t=e;for(let e=this.filters.length-1;e>=0;e--)t=this.filters[e].receiveTrailers(t);return t}push(e){this.filters.unshift(...e)}getFilters(){return this.filters}}filterStack.FilterStack=e;class t{constructor(e){this.factories=e}push(e){this.factories.unshift(...e)}clone(){return new t([...this.factories])}createFilter(){return new e(this.factories.map(e=>e.createFilter()))}}return filterStack.FilterStackFactory=t,filterStack}function requireSingleSubchannelChannel(){if(hasRequiredSingleSubchannelChannel)return singleSubchannelChannel;hasRequiredSingleSubchannelChannel=1,Object.defineProperty(singleSubchannelChannel,"__esModule",{value:!0}),singleSubchannelChannel.SingleSubchannelChannel=void 0;const e=requireCallNumber(),t=requireChannelz(),r=requireCompressionFilter(),n=requireConnectivityState(),o=requireConstants(),i=requireControlPlaneStatus(),a=requireDeadline(),s=requireFilterStack(),l=requireMetadata(),p=requireResolver(),d=requireUriParser();class u{constructor(e,t,r,n,i){var s,l;this.subchannel=e,this.method=t,this.options=n,this.callNumber=i,this.childCall=null,this.pendingMessage=null,this.readPending=!1,this.halfClosePending=!1,this.pendingStatus=null,this.readFilterPending=!1,this.writeFilterPending=!1;const p=this.method.split("/");let u="";p.length>=2&&(u=p[1]);const c=null!==(l=null===(s=(0,d.splitHostPort)(this.options.host))||void 0===s?void 0:s.host)&&void 0!==l?l:"localhost";this.serviceUrl=`https://${c}/${u}`;const f=(0,a.getRelativeTimeout)(n.deadline);f!==1/0&&(f<=0?this.cancelWithStatus(o.Status.DEADLINE_EXCEEDED,"Deadline exceeded"):setTimeout(()=>{this.cancelWithStatus(o.Status.DEADLINE_EXCEEDED,"Deadline exceeded")},f)),this.filterStack=r.createFilter()}cancelWithStatus(e,t){this.childCall?this.childCall.cancelWithStatus(e,t):this.pendingStatus={code:e,details:t,metadata:new l.Metadata}}getPeer(){var e,t;return null!==(t=null===(e=this.childCall)||void 0===e?void 0:e.getPeer())&&void 0!==t?t:this.subchannel.getAddress()}async start(e,t){if(this.pendingStatus)return void t.onReceiveStatus(this.pendingStatus);if(this.subchannel.getConnectivityState()!==n.ConnectivityState.READY)return void t.onReceiveStatus({code:o.Status.UNAVAILABLE,details:"Subchannel not ready",metadata:new l.Metadata});const r=await this.filterStack.sendMetadata(Promise.resolve(e));let a;try{a=await this.subchannel.getCallCredentials().generateMetadata({method_name:this.method,service_url:this.serviceUrl})}catch(e){const r=e,{code:n,details:a}=(0,i.restrictControlPlaneStatusCode)("number"==typeof r.code?r.code:o.Status.UNKNOWN,`Getting metadata from plugin failed with error: ${r.message}`);return void t.onReceiveStatus({code:n,details:a,metadata:new l.Metadata})}a.merge(r);const s={onReceiveMetadata:async e=>{t.onReceiveMetadata(await this.filterStack.receiveMetadata(e))},onReceiveMessage:async e=>{this.readFilterPending=!0;const r=await this.filterStack.receiveMessage(e);this.readFilterPending=!1,t.onReceiveMessage(r),this.pendingStatus&&t.onReceiveStatus(this.pendingStatus)},onReceiveStatus:async e=>{const r=await this.filterStack.receiveTrailers(e);this.readFilterPending?this.pendingStatus=r:t.onReceiveStatus(r)}};this.childCall=this.subchannel.createCall(a,this.options.host,this.method,s),this.readPending&&this.childCall.startRead(),this.pendingMessage&&this.childCall.sendMessageWithContext(this.pendingMessage.context,this.pendingMessage.message),this.halfClosePending&&!this.writeFilterPending&&this.childCall.halfClose()}async sendMessageWithContext(e,t){this.writeFilterPending=!0;const r=await this.filterStack.sendMessage(Promise.resolve({message:t,flags:e.flags}));this.writeFilterPending=!1,this.childCall?(this.childCall.sendMessageWithContext(e,r.message),this.halfClosePending&&this.childCall.halfClose()):this.pendingMessage={context:e,message:r.message}}startRead(){this.childCall?this.childCall.startRead():this.readPending=!0}halfClose(){this.childCall&&!this.writeFilterPending?this.childCall.halfClose():this.halfClosePending=!0}getCallNumber(){return this.callNumber}setCredentials(e){throw new Error("Method not implemented.")}getAuthContext(){return this.childCall?this.childCall.getAuthContext():null}}return singleSubchannelChannel.SingleSubchannelChannel=class{constructor(e,n,o){this.subchannel=e,this.target=n,this.channelzEnabled=!1,this.channelzTrace=new t.ChannelzTrace,this.callTracker=new t.ChannelzCallTracker,this.childrenTracker=new t.ChannelzChildrenTracker,this.channelzEnabled=0!==o["grpc.enable_channelz"],this.channelzRef=(0,t.registerChannelzChannel)((0,d.uriToString)(n),()=>({target:`${(0,d.uriToString)(n)} (${e.getAddress()})`,state:this.subchannel.getConnectivityState(),trace:this.channelzTrace,callTracker:this.callTracker,children:this.childrenTracker.getChildLists()}),this.channelzEnabled),this.channelzEnabled&&this.childrenTracker.refChild(e.getChannelzRef()),this.filterStackFactory=new s.FilterStackFactory([new r.CompressionFilterFactory(this,o)])}close(){this.channelzEnabled&&this.childrenTracker.unrefChild(this.subchannel.getChannelzRef()),(0,t.unregisterChannelzRef)(this.channelzRef)}getTarget(){return(0,d.uriToString)(this.target)}getConnectivityState(e){throw new Error("Method not implemented.")}watchConnectivityState(e,t,r){throw new Error("Method not implemented.")}getChannelzRef(){return this.channelzRef}createCall(t,r){const n={deadline:r,host:(0,p.getDefaultAuthority)(this.target),flags:o.Propagate.DEFAULTS,parentCall:null};return new u(this.subchannel,t,this.filterStackFactory,n,(0,e.getNextCallNumber)())}},singleSubchannelChannel}function requireSubchannel(){if(hasRequiredSubchannel)return subchannel;hasRequiredSubchannel=1,Object.defineProperty(subchannel,"__esModule",{value:!0}),subchannel.Subchannel=void 0;const e=requireConnectivityState(),t=requireBackoffTimeout(),r=requireLogging(),n=requireConstants(),o=requireUriParser(),i=requireSubchannelAddress(),a=requireChannelz(),s=requireSingleSubchannelChannel();return subchannel.Subchannel=class{constructor(r,n,o,s,l){var p;this.channelTarget=r,this.subchannelAddress=n,this.options=o,this.connector=l,this.connectivityState=e.ConnectivityState.IDLE,this.transport=null,this.continueConnecting=!1,this.stateListeners=new Set,this.refcount=0,this.channelzEnabled=!0,this.dataProducers=new Map,this.subchannelChannel=null;const d={initialDelay:o["grpc.initial_reconnect_backoff_ms"],maxDelay:o["grpc.max_reconnect_backoff_ms"]};this.backoffTimeout=new t.BackoffTimeout(()=>{this.handleBackoffTimer()},d),this.backoffTimeout.unref(),this.subchannelAddressString=(0,i.subchannelAddressToString)(n),this.keepaliveTime=null!==(p=o["grpc.keepalive_time_ms"])&&void 0!==p?p:-1,0===o["grpc.enable_channelz"]?(this.channelzEnabled=!1,this.channelzTrace=new a.ChannelzTraceStub,this.callTracker=new a.ChannelzCallTrackerStub,this.childrenTracker=new a.ChannelzChildrenTrackerStub,this.streamTracker=new a.ChannelzCallTrackerStub):(this.channelzTrace=new a.ChannelzTrace,this.callTracker=new a.ChannelzCallTracker,this.childrenTracker=new a.ChannelzChildrenTracker,this.streamTracker=new a.ChannelzCallTracker),this.channelzRef=(0,a.registerChannelzSubchannel)(this.subchannelAddressString,()=>this.getChannelzInfo(),this.channelzEnabled),this.channelzTrace.addTrace("CT_INFO","Subchannel created"),this.trace("Subchannel constructed with options "+JSON.stringify(o,void 0,2)),this.secureConnector=s._createSecureConnector(r,o)}getChannelzInfo(){return{state:this.connectivityState,trace:this.channelzTrace,callTracker:this.callTracker,children:this.childrenTracker.getChildLists(),target:this.subchannelAddressString}}trace(e){r.trace(n.LogVerbosity.DEBUG,"subchannel","("+this.channelzRef.id+") "+this.subchannelAddressString+" "+e)}refTrace(e){r.trace(n.LogVerbosity.DEBUG,"subchannel_refcount","("+this.channelzRef.id+") "+this.subchannelAddressString+" "+e)}handleBackoffTimer(){this.continueConnecting?this.transitionToState([e.ConnectivityState.TRANSIENT_FAILURE],e.ConnectivityState.CONNECTING):this.transitionToState([e.ConnectivityState.TRANSIENT_FAILURE],e.ConnectivityState.IDLE)}startBackoff(){this.backoffTimeout.runOnce()}stopBackoff(){this.backoffTimeout.stop(),this.backoffTimeout.reset()}startConnectingInternal(){let t=this.options;if(t["grpc.keepalive_time_ms"]){const e=Math.min(this.keepaliveTime,2147483647);t=Object.assign(Object.assign({},t),{"grpc.keepalive_time_ms":e})}this.connector.connect(this.subchannelAddress,this.secureConnector,t).then(t=>{this.transitionToState([e.ConnectivityState.CONNECTING],e.ConnectivityState.READY)?(this.transport=t,this.channelzEnabled&&this.childrenTracker.refChild(t.getChannelzRef()),t.addDisconnectListener(t=>{this.transitionToState([e.ConnectivityState.READY],e.ConnectivityState.IDLE),t&&this.keepaliveTime>0&&(this.keepaliveTime*=2,r.log(n.LogVerbosity.ERROR,`Connection to ${(0,o.uriToString)(this.channelTarget)} at ${this.subchannelAddressString} rejected by server because of excess pings. Increasing ping interval to ${this.keepaliveTime} ms`))})):t.shutdown()},t=>{this.transitionToState([e.ConnectivityState.CONNECTING],e.ConnectivityState.TRANSIENT_FAILURE,`${t}`)})}transitionToState(t,r,n){var o,i;if(-1===t.indexOf(this.connectivityState))return!1;n?this.trace(e.ConnectivityState[this.connectivityState]+" -> "+e.ConnectivityState[r]+' with error "'+n+'"'):this.trace(e.ConnectivityState[this.connectivityState]+" -> "+e.ConnectivityState[r]),this.channelzEnabled&&this.channelzTrace.addTrace("CT_INFO","Connectivity state change to "+e.ConnectivityState[r]);const a=this.connectivityState;switch(this.connectivityState=r,r){case e.ConnectivityState.READY:this.stopBackoff();break;case e.ConnectivityState.CONNECTING:this.startBackoff(),this.startConnectingInternal(),this.continueConnecting=!1;break;case e.ConnectivityState.TRANSIENT_FAILURE:this.channelzEnabled&&this.transport&&this.childrenTracker.unrefChild(this.transport.getChannelzRef()),null===(o=this.transport)||void 0===o||o.shutdown(),this.transport=null,this.backoffTimeout.isRunning()||process.nextTick(()=>{this.handleBackoffTimer()});break;case e.ConnectivityState.IDLE:this.channelzEnabled&&this.transport&&this.childrenTracker.unrefChild(this.transport.getChannelzRef()),null===(i=this.transport)||void 0===i||i.shutdown(),this.transport=null;break;default:throw new Error(`Invalid state: unknown ConnectivityState ${r}`)}for(const e of this.stateListeners)e(this,a,r,this.keepaliveTime,n);return!0}ref(){this.refTrace("refcount "+this.refcount+" -> "+(this.refcount+1)),this.refcount+=1}unref(){this.refTrace("refcount "+this.refcount+" -> "+(this.refcount-1)),this.refcount-=1,0===this.refcount&&(this.channelzTrace.addTrace("CT_INFO","Shutting down"),(0,a.unregisterChannelzRef)(this.channelzRef),this.secureConnector.destroy(),process.nextTick(()=>{this.transitionToState([e.ConnectivityState.CONNECTING,e.ConnectivityState.READY],e.ConnectivityState.IDLE)}))}unrefIfOneRef(){return 1===this.refcount&&(this.unref(),!0)}createCall(e,t,r,o){if(!this.transport)throw new Error("Cannot create call, subchannel not READY");let i;return this.channelzEnabled?(this.callTracker.addCallStarted(),this.streamTracker.addCallStarted(),i={onCallEnd:e=>{e.code===n.Status.OK?this.callTracker.addCallSucceeded():this.callTracker.addCallFailed()}}):i={},this.transport.createCall(e,t,r,o,i)}startConnecting(){process.nextTick(()=>{this.transitionToState([e.ConnectivityState.IDLE],e.ConnectivityState.CONNECTING)||this.connectivityState===e.ConnectivityState.TRANSIENT_FAILURE&&(this.continueConnecting=!0)})}getConnectivityState(){return this.connectivityState}addConnectivityStateListener(e){this.stateListeners.add(e)}removeConnectivityStateListener(e){this.stateListeners.delete(e)}resetBackoff(){process.nextTick(()=>{this.backoffTimeout.reset(),this.transitionToState([e.ConnectivityState.TRANSIENT_FAILURE],e.ConnectivityState.CONNECTING)})}getAddress(){return this.subchannelAddressString}getChannelzRef(){return this.channelzRef}isHealthy(){return!0}addHealthStateWatcher(e){}removeHealthStateWatcher(e){}getRealSubchannel(){return this}realSubchannelEquals(e){return e.getRealSubchannel()===this}throttleKeepalive(e){e>this.keepaliveTime&&(this.keepaliveTime=e)}getCallCredentials(){return this.secureConnector.getCallCredentials()}getChannel(){return this.subchannelChannel||(this.subchannelChannel=new s.SingleSubchannelChannel(this,this.channelTarget,this.options)),this.subchannelChannel}addDataWatcher(e){throw new Error("Not implemented")}getOrCreateDataProducer(e,t){const r=this.dataProducers.get(e);if(r)return r;const n=t(this);return this.dataProducers.set(e,n),n}removeDataProducer(e){this.dataProducers.delete(e)}},subchannel}var transport={},http_proxy={},resolverDns={},environment={},hasRequiredEnvironment,hasRequiredResolverDns,hasRequiredHttp_proxy;function requireEnvironment(){return hasRequiredEnvironment||(hasRequiredEnvironment=1,Object.defineProperty(environment,"__esModule",{value:!0}),environment.GRPC_NODE_USE_ALTERNATIVE_RESOLVER=void 0,environment.GRPC_NODE_USE_ALTERNATIVE_RESOLVER="true"===(null!==(e=process.env.GRPC_NODE_USE_ALTERNATIVE_RESOLVER)&&void 0!==e?e:"false")),environment;var e}function requireResolverDns(){return hasRequiredResolverDns||(hasRequiredResolverDns=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_PORT=void 0,e.setup=function(){(0,t.registerResolver)("dns",h),(0,t.registerDefaultScheme)("dns")};const t=requireResolver(),r=require$$1__default$3.default,n=requireServiceConfig(),o=requireConstants(),i=requireCallInterface(),a=requireMetadata(),s=requireLogging(),l=requireConstants(),p=requireUriParser(),d=require$$0__default$2.default,u=requireBackoffTimeout(),c=requireEnvironment();function f(e){s.trace(l.LogVerbosity.DEBUG,"dns_resolver",e)}e.DEFAULT_PORT=443;class h{constructor(t,n,i){var s,l,c;this.target=t,this.listener=n,this.pendingLookupPromise=null,this.pendingTxtPromise=null,this.latestLookupResult=null,this.latestServiceConfigResult=null,this.continueResolving=!1,this.isNextResolutionTimerRunning=!1,this.isServiceConfigEnabled=!0,this.returnedIpResult=!1,this.alternativeResolver=new r.promises.Resolver,f("Resolver constructed for target "+(0,p.uriToString)(t)),t.authority&&this.alternativeResolver.setServers([t.authority]);const h=(0,p.splitHostPort)(t.path);null===h?(this.ipResult=null,this.dnsHostname=null,this.port=null):(0,d.isIPv4)(h.host)||(0,d.isIPv6)(h.host)?(this.ipResult=[{addresses:[{host:h.host,port:null!==(s=h.port)&&void 0!==s?s:e.DEFAULT_PORT}]}],this.dnsHostname=null,this.port=null):(this.ipResult=null,this.dnsHostname=h.host,this.port=null!==(l=h.port)&&void 0!==l?l:e.DEFAULT_PORT),this.percentage=100*Math.random(),1===i["grpc.service_config_disable_resolution"]&&(this.isServiceConfigEnabled=!1),this.defaultResolutionError={code:o.Status.UNAVAILABLE,details:`Name resolution failed for target ${(0,p.uriToString)(this.target)}`,metadata:new a.Metadata};const m={initialDelay:i["grpc.initial_reconnect_backoff_ms"],maxDelay:i["grpc.max_reconnect_backoff_ms"]};this.backoff=new u.BackoffTimeout(()=>{this.continueResolving&&this.startResolutionWithBackoff()},m),this.backoff.unref(),this.minTimeBetweenResolutionsMs=null!==(c=i["grpc.dns_min_time_between_resolutions_ms"])&&void 0!==c?c:3e4,this.nextResolutionTimer=setTimeout(()=>{},0),clearTimeout(this.nextResolutionTimer)}startResolution(){if(null!==this.ipResult)return this.returnedIpResult||(f("Returning IP address for target "+(0,p.uriToString)(this.target)),setImmediate(()=>{this.listener((0,i.statusOrFromValue)(this.ipResult),{},null,"")}),this.returnedIpResult=!0),this.backoff.stop(),this.backoff.reset(),void this.stopNextResolutionTimer();if(null===this.dnsHostname)f("Failed to parse DNS address "+(0,p.uriToString)(this.target)),setImmediate(()=>{this.listener((0,i.statusOrFromError)({code:o.Status.UNAVAILABLE,details:`Failed to parse DNS address ${(0,p.uriToString)(this.target)}`}),{},null,"")}),this.stopNextResolutionTimer();else{if(null!==this.pendingLookupPromise)return;f("Looking up DNS hostname "+this.dnsHostname),this.latestLookupResult=null;const e=this.dnsHostname;this.pendingLookupPromise=this.lookup(e),this.pendingLookupPromise.then(e=>{if(null===this.pendingLookupPromise)return;this.pendingLookupPromise=null,this.latestLookupResult=(0,i.statusOrFromValue)(e.map(e=>({addresses:[e]})));const t="["+e.map(e=>e.host+":"+e.port).join(",")+"]";f("Resolved addresses for target "+(0,p.uriToString)(this.target)+": "+t);const r=this.listener(this.latestLookupResult,{},this.latestServiceConfigResult,"");this.handleHealthStatus(r)},e=>{null!==this.pendingLookupPromise&&(f("Resolution error for target "+(0,p.uriToString)(this.target)+": "+e.message),this.pendingLookupPromise=null,this.stopNextResolutionTimer(),this.listener((0,i.statusOrFromError)(this.defaultResolutionError),{},this.latestServiceConfigResult,""))}),this.isServiceConfigEnabled&&null===this.pendingTxtPromise&&(this.pendingTxtPromise=this.resolveTxt(e),this.pendingTxtPromise.then(e=>{if(null===this.pendingTxtPromise)return;let t;this.pendingTxtPromise=null;try{t=(0,n.extractAndSelectServiceConfig)(e,this.percentage),this.latestServiceConfigResult=t?(0,i.statusOrFromValue)(t):null}catch(e){this.latestServiceConfigResult=(0,i.statusOrFromError)({code:o.Status.UNAVAILABLE,details:`Parsing service config failed with error ${e.message}`})}null!==this.latestLookupResult&&this.listener(this.latestLookupResult,{},this.latestServiceConfigResult,"")},e=>{}))}}handleHealthStatus(e){e?(this.backoff.stop(),this.backoff.reset()):this.continueResolving=!0}async lookup(e){if(c.GRPC_NODE_USE_ALTERNATIVE_RESOLVER){f("Using alternative DNS resolver.");const t=await Promise.allSettled([this.alternativeResolver.resolve4(e),this.alternativeResolver.resolve6(e)]);if(t.every(e=>"rejected"===e.status))throw new Error(t[0].reason);return t.reduce((e,t)=>"fulfilled"===t.status?[...e,...t.value]:e,[]).map(e=>({host:e,port:+this.port}))}return(await r.promises.lookup(e,{all:!0})).map(e=>({host:e.address,port:+this.port}))}async resolveTxt(e){return c.GRPC_NODE_USE_ALTERNATIVE_RESOLVER?(f("Using alternative DNS resolver."),this.alternativeResolver.resolveTxt(e)):r.promises.resolveTxt(e)}startNextResolutionTimer(){var e,t;clearTimeout(this.nextResolutionTimer),this.nextResolutionTimer=setTimeout(()=>{this.stopNextResolutionTimer(),this.continueResolving&&this.startResolutionWithBackoff()},this.minTimeBetweenResolutionsMs),null===(t=(e=this.nextResolutionTimer).unref)||void 0===t||t.call(e),this.isNextResolutionTimerRunning=!0}stopNextResolutionTimer(){clearTimeout(this.nextResolutionTimer),this.isNextResolutionTimerRunning=!1}startResolutionWithBackoff(){null===this.pendingLookupPromise&&(this.continueResolving=!1,this.backoff.runOnce(),this.startNextResolutionTimer(),this.startResolution())}updateResolution(){null===this.pendingLookupPromise&&(this.isNextResolutionTimerRunning||this.backoff.isRunning()?(this.isNextResolutionTimerRunning?f('resolution update delayed by "min time between resolutions" rate limit'):f("resolution update delayed by backoff timer until "+this.backoff.getEndTime().toISOString()),this.continueResolving=!0):this.startResolutionWithBackoff())}destroy(){this.continueResolving=!1,this.backoff.reset(),this.backoff.stop(),this.stopNextResolutionTimer(),this.pendingLookupPromise=null,this.pendingTxtPromise=null,this.latestLookupResult=null,this.latestServiceConfigResult=null,this.returnedIpResult=!1}static getDefaultAuthority(e){return e.path}}}(resolverDns)),resolverDns}function requireHttp_proxy(){if(hasRequiredHttp_proxy)return http_proxy;hasRequiredHttp_proxy=1,Object.defineProperty(http_proxy,"__esModule",{value:!0}),http_proxy.parseCIDR=u,http_proxy.mapProxyName=function(n,o){var i;const l={target:n,extraOptions:{}};if(0===(null!==(i=o["grpc.enable_http_proxy"])&&void 0!==i?i:1))return l;if("unix"===n.scheme)return l;const p=function(){let r,n="",o="";if(process.env.grpc_proxy)o="grpc_proxy",n=process.env.grpc_proxy;else if(process.env.https_proxy)o="https_proxy",n=process.env.https_proxy;else{if(!process.env.http_proxy)return{};o="http_proxy",n=process.env.http_proxy}try{r=new s.URL(n)}catch(r){return(0,e.log)(t.LogVerbosity.ERROR,`cannot parse value of "${o}" env var`),{}}if("http:"!==r.protocol)return(0,e.log)(t.LogVerbosity.ERROR,`"${r.protocol}" scheme not supported in proxy URI`),{};let i=null;r.username&&(r.password?((0,e.log)(t.LogVerbosity.INFO,"userinfo found in proxy URI"),i=decodeURIComponent(`${r.username}:${r.password}`)):i=r.username);const a=r.hostname;let l=r.port;""===l&&(l="80");const p={address:`${a}:${l}`};i&&(p.creds=i);return d("Proxy server "+p.address+" set by environment variable "+o),p}();if(!p.address)return l;const c=(0,a.splitHostPort)(n.path);if(!c)return l;if(function(e){for(const t of function(){let e=process.env.no_grpc_proxy,t="no_grpc_proxy";e||(e=process.env.no_proxy,t="no_proxy");return e?(d("No proxy server list set by environment variable "+t),e.split(",")):[]}()){const n=u(t);if((0,r.isIPv4)(e)&&n&&f(n,e))return!0;if(e.endsWith(t))return!0}return!1}(c.host))return d("Not using proxy for target in no_proxy list: "+(0,a.uriToString)(n)),l;const h={"grpc.http_connect_target":(0,a.uriToString)(n)};p.creds&&(h["grpc.http_connect_creds"]=p.creds);return{target:{scheme:"dns",path:p.address},extraOptions:h}},http_proxy.getProxiedConnection=function(r,o){var s;if(!("grpc.http_connect_target"in o))return Promise.resolve(null);const p=o["grpc.http_connect_target"],u=(0,a.parseUri)(p);if(null===u)return Promise.resolve(null);const c=(0,a.splitHostPort)(u.path);if(null===c)return Promise.resolve(null);const f=`${c.host}:${null!==(s=c.port)&&void 0!==s?s:l.DEFAULT_PORT}`,h={method:"CONNECT",path:f},m={Host:f};(0,i.isTcpSubchannelAddress)(r)?(h.host=r.host,h.port=r.port):h.socketPath=r.path;"grpc.http_connect_creds"in o&&(m["Proxy-Authorization"]="Basic "+Buffer.from(o["grpc.http_connect_creds"]).toString("base64"));h.headers=m;const g=(0,i.subchannelAddressToString)(r);return d("Using proxy "+g+" to connect to "+h.path),new Promise((r,o)=>{const i=n.request(h);i.once("connect",(n,a,s)=>{i.removeAllListeners(),a.removeAllListeners(),200===n.statusCode?(d("Successfully connected to "+h.path+" through proxy "+g),s.length>0&&a.unshift(s),d("Successfully established a plaintext connection to "+h.path+" through proxy "+g),r(a)):((0,e.log)(t.LogVerbosity.ERROR,"Failed to connect to "+h.path+" through proxy "+g+" with status "+n.statusCode),o())}),i.once("error",r=>{i.removeAllListeners(),(0,e.log)(t.LogVerbosity.ERROR,"Failed to connect to proxy "+g+" with error "+r.message),o()}),i.end()})};const e=requireLogging(),t=requireConstants(),r=require$$0__default$2.default,n=http__default.default,o=requireLogging(),i=requireSubchannelAddress(),a=requireUriParser(),s=Url__default.default,l=requireResolverDns(),p="proxy";function d(e){o.trace(t.LogVerbosity.DEBUG,p,e)}function u(e){const t=e.split("/");if(2!==t.length)return null;const n=parseInt(t[1],10);return!(0,r.isIPv4)(t[0])||Number.isNaN(n)||n<0||n>32?null:{ip:c(t[0]),prefixLength:n}}function c(e){return e.split(".").reduce((e,t)=>(e<<8)+parseInt(t,10),0)}function f(e,t){const r=e.ip,n=-1<<32-e.prefixLength;return(c(t)&n)===(r&n)}return http_proxy}var subchannelCall={},streamDecoder={},hasRequiredStreamDecoder,hasRequiredSubchannelCall,hasRequiredTransport,hasRequiredSubchannelPool;function requireStreamDecoder(){if(hasRequiredStreamDecoder)return streamDecoder;var e;hasRequiredStreamDecoder=1,Object.defineProperty(streamDecoder,"__esModule",{value:!0}),streamDecoder.StreamDecoder=void 0,function(e){e[e.NO_DATA=0]="NO_DATA",e[e.READING_SIZE=1]="READING_SIZE",e[e.READING_MESSAGE=2]="READING_MESSAGE"}(e||(e={}));return streamDecoder.StreamDecoder=class{constructor(t){this.maxReadMessageLength=t,this.readState=e.NO_DATA,this.readCompressFlag=Buffer.alloc(1),this.readPartialSize=Buffer.alloc(4),this.readSizeRemaining=4,this.readMessageSize=0,this.readPartialMessage=[],this.readMessageRemaining=0}write(t){let r,n=0;const o=[];for(;n<t.length;)switch(this.readState){case e.NO_DATA:this.readCompressFlag=t.slice(n,n+1),n+=1,this.readState=e.READING_SIZE,this.readPartialSize.fill(0),this.readSizeRemaining=4,this.readMessageSize=0,this.readMessageRemaining=0,this.readPartialMessage=[];break;case e.READING_SIZE:if(r=Math.min(t.length-n,this.readSizeRemaining),t.copy(this.readPartialSize,4-this.readSizeRemaining,n,n+r),this.readSizeRemaining-=r,n+=r,0===this.readSizeRemaining){if(this.readMessageSize=this.readPartialSize.readUInt32BE(0),-1!==this.maxReadMessageLength&&this.readMessageSize>this.maxReadMessageLength)throw new Error(`Received message larger than max (${this.readMessageSize} vs ${this.maxReadMessageLength})`);if(this.readMessageRemaining=this.readMessageSize,this.readMessageRemaining>0)this.readState=e.READING_MESSAGE;else{const t=Buffer.concat([this.readCompressFlag,this.readPartialSize],5);this.readState=e.NO_DATA,o.push(t)}}break;case e.READING_MESSAGE:if(r=Math.min(t.length-n,this.readMessageRemaining),this.readPartialMessage.push(t.slice(n,n+r)),this.readMessageRemaining-=r,n+=r,0===this.readMessageRemaining){const t=[this.readCompressFlag,this.readPartialSize].concat(this.readPartialMessage),r=Buffer.concat(t,this.readMessageSize+5);this.readState=e.NO_DATA,o.push(r)}break;default:throw new Error("Unexpected read state")}return o}},streamDecoder}function requireSubchannelCall(){if(hasRequiredSubchannelCall)return subchannelCall;hasRequiredSubchannelCall=1,Object.defineProperty(subchannelCall,"__esModule",{value:!0}),subchannelCall.Http2SubchannelCall=void 0;const e=require$$0__default$4.default,t=require$$0__default$1.default,r=requireConstants(),n=requireMetadata(),o=requireStreamDecoder(),i=requireLogging(),a=requireConstants();function s(e){const t=`Received HTTP status code ${e}`;let o;switch(e){case 400:o=r.Status.INTERNAL;break;case 401:o=r.Status.UNAUTHENTICATED;break;case 403:o=r.Status.PERMISSION_DENIED;break;case 404:o=r.Status.UNIMPLEMENTED;break;case 429:case 502:case 503:case 504:o=r.Status.UNAVAILABLE;break;default:o=r.Status.UNKNOWN}return{code:o,details:t,metadata:new n.Metadata}}return subchannelCall.Http2SubchannelCall=class{constructor(i,a,l,p,d){var u;this.http2Stream=i,this.callEventTracker=a,this.listener=l,this.transport=p,this.callId=d,this.isReadFilterPending=!1,this.isPushPending=!1,this.canPush=!1,this.readsClosed=!1,this.statusOutput=!1,this.unpushedReadMessages=[],this.finalStatus=null,this.internalError=null,this.serverEndedCall=!1,this.connectionDropped=!1;const c=null!==(u=p.getOptions()["grpc.max_receive_message_length"])&&void 0!==u?u:r.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH;this.decoder=new o.StreamDecoder(c),i.on("response",(t,o)=>{let i="";for(const e of Object.keys(t))i+="\t\t"+e+": "+t[e]+"\n";if(this.trace("Received server headers:\n"+i),this.httpStatusCode=t[":status"],o&e.constants.NGHTTP2_FLAG_END_STREAM)this.handleTrailers(t);else{let e;try{e=n.Metadata.fromHttp2Headers(t)}catch(e){return void this.endCall({code:r.Status.UNKNOWN,details:e.message,metadata:new n.Metadata})}this.listener.onReceiveMetadata(e)}}),i.on("trailers",e=>{this.handleTrailers(e)}),i.on("data",e=>{if(this.statusOutput)return;let t;this.trace("receive HTTP/2 data frame of length "+e.length);try{t=this.decoder.write(e)}catch(e){if(void 0!==this.httpStatusCode&&200!==this.httpStatusCode){const e=s(this.httpStatusCode);this.cancelWithStatus(e.code,e.details)}else this.cancelWithStatus(r.Status.RESOURCE_EXHAUSTED,e.message);return}for(const e of t)this.trace("parsed message of length "+e.length),this.callEventTracker.addMessageReceived(),this.tryPush(e)}),i.on("end",()=>{this.readsClosed=!0,this.maybeOutputStatus()}),i.on("close",()=>{this.serverEndedCall=!0,process.nextTick(()=>{var t;if(this.trace("HTTP/2 stream closed with code "+i.rstCode),(null===(t=this.finalStatus)||void 0===t?void 0:t.code)===r.Status.OK)return;let o,a="";switch(i.rstCode){case e.constants.NGHTTP2_NO_ERROR:if(null!==this.finalStatus)return;if(this.httpStatusCode&&200!==this.httpStatusCode){const e=s(this.httpStatusCode);o=e.code,a=e.details}else o=r.Status.INTERNAL,a=`Received RST_STREAM with code ${i.rstCode} (Call ended without gRPC status)`;break;case e.constants.NGHTTP2_REFUSED_STREAM:o=r.Status.UNAVAILABLE,a="Stream refused by server";break;case e.constants.NGHTTP2_CANCEL:this.connectionDropped?(o=r.Status.UNAVAILABLE,a="Connection dropped"):(o=r.Status.CANCELLED,a="Call cancelled");break;case e.constants.NGHTTP2_ENHANCE_YOUR_CALM:o=r.Status.RESOURCE_EXHAUSTED,a="Bandwidth exhausted or memory limit exceeded";break;case e.constants.NGHTTP2_INADEQUATE_SECURITY:o=r.Status.PERMISSION_DENIED,a="Protocol not secure enough";break;case e.constants.NGHTTP2_INTERNAL_ERROR:o=r.Status.INTERNAL,null===this.internalError?a=`Received RST_STREAM with code ${i.rstCode} (Internal server error)`:"ECONNRESET"===this.internalError.code||"ETIMEDOUT"===this.internalError.code?(o=r.Status.UNAVAILABLE,a=this.internalError.message):a=`Received RST_STREAM with code ${i.rstCode} triggered by internal client error: ${this.internalError.message}`;break;default:o=r.Status.INTERNAL,a=`Received RST_STREAM with code ${i.rstCode}`}this.endCall({code:o,details:a,metadata:new n.Metadata,rstCode:i.rstCode})})}),i.on("error",e=>{"ERR_HTTP2_STREAM_ERROR"!==e.code&&(this.trace("Node error event: message="+e.message+" code="+e.code+" errno="+function(e){for(const[r,n]of Object.entries(t.constants.errno))if(n===e)return r;return"Unknown system error "+e}(e.errno)+" syscall="+e.syscall),this.internalError=e),this.callEventTracker.onStreamEnd(!1)})}getDeadlineInfo(){return[`remote_addr=${this.getPeer()}`]}onDisconnect(){this.connectionDropped=!0,setImmediate(()=>{this.endCall({code:r.Status.UNAVAILABLE,details:"Connection dropped",metadata:new n.Metadata})})}outputStatus(){this.statusOutput||(this.statusOutput=!0,this.trace("ended with status: code="+this.finalStatus.code+' details="'+this.finalStatus.details+'"'),this.callEventTracker.onCallEnd(this.finalStatus),process.nextTick(()=>{this.listener.onReceiveStatus(this.finalStatus)}),this.http2Stream.resume())}trace(e){i.trace(a.LogVerbosity.DEBUG,"subchannel_call","["+this.callId+"] "+e)}endCall(e){null!==this.finalStatus&&this.finalStatus.code!==r.Status.OK||(this.finalStatus=e,this.maybeOutputStatus()),this.destroyHttp2Stream()}maybeOutputStatus(){null!==this.finalStatus&&(this.finalStatus.code!==r.Status.OK||this.readsClosed&&0===this.unpushedReadMessages.length&&!this.isReadFilterPending&&!this.isPushPending)&&this.outputStatus()}push(e){this.trace("pushing to reader message of length "+(e instanceof Buffer?e.length:null)),this.canPush=!1,this.isPushPending=!0,process.nextTick(()=>{this.isPushPending=!1,this.statusOutput||(this.listener.onReceiveMessage(e),this.maybeOutputStatus())})}tryPush(e){this.canPush?(this.http2Stream.pause(),this.push(e)):(this.trace("unpushedReadMessages.push message of length "+e.length),this.unpushedReadMessages.push(e))}handleTrailers(e){this.serverEndedCall=!0,this.callEventTracker.onStreamEnd(!0);let t,o="";for(const t of Object.keys(e))o+="\t\t"+t+": "+e[t]+"\n";this.trace("Received server trailers:\n"+o);try{t=n.Metadata.fromHttp2Headers(e)}catch(e){t=new n.Metadata}const i=t.getMap();let a;if("string"==typeof i["grpc-status"]){const e=Number(i["grpc-status"]);this.trace("received status code "+e+" from server"),t.remove("grpc-status");let r="";if("string"==typeof i["grpc-message"]){try{r=decodeURI(i["grpc-message"])}catch(e){r=i["grpc-message"]}t.remove("grpc-message"),this.trace('received status details string "'+r+'" from server')}a={code:e,details:r,metadata:t}}else this.httpStatusCode?(a=s(this.httpStatusCode),a.metadata=t):a={code:r.Status.UNKNOWN,details:"No status information received",metadata:t};this.endCall(a)}destroyHttp2Stream(){var t;if(!this.http2Stream.destroyed)if(this.serverEndedCall)this.http2Stream.end();else{let n;n=(null===(t=this.finalStatus)||void 0===t?void 0:t.code)===r.Status.OK?e.constants.NGHTTP2_NO_ERROR:e.constants.NGHTTP2_CANCEL,this.trace("close http2 stream with code "+n),this.http2Stream.close(n)}}cancelWithStatus(e,t){this.trace("cancelWithStatus code: "+e+' details: "'+t+'"'),this.endCall({code:e,details:t,metadata:new n.Metadata})}getStatus(){return this.finalStatus}getPeer(){return this.transport.getPeerName()}getCallNumber(){return this.callId}getAuthContext(){return this.transport.getAuthContext()}startRead(){if(null!==this.finalStatus&&this.finalStatus.code!==r.Status.OK)return this.readsClosed=!0,void this.maybeOutputStatus();if(this.canPush=!0,this.unpushedReadMessages.length>0){const e=this.unpushedReadMessages.shift();return void this.push(e)}this.http2Stream.resume()}sendMessageWithContext(e,t){this.trace("write() called with message of length "+t.length);const o=t=>{process.nextTick(()=>{var n;let o=r.Status.UNAVAILABLE;"ERR_STREAM_WRITE_AFTER_END"===(null==t?void 0:t.code)&&(o=r.Status.INTERNAL),t&&this.cancelWithStatus(o,`Write error: ${t.message}`),null===(n=e.callback)||void 0===n||n.call(e)})};this.trace("sending data chunk of length "+t.length),this.callEventTracker.addMessageSent();try{this.http2Stream.write(t,o)}catch(e){this.endCall({code:r.Status.UNAVAILABLE,details:`Write failed with error ${e.message}`,metadata:new n.Metadata})}}halfClose(){this.trace("end() called"),this.trace("calling end() on HTTP/2 stream"),this.http2Stream.end()}},subchannelCall}function requireTransport(){if(hasRequiredTransport)return transport;hasRequiredTransport=1,Object.defineProperty(transport,"__esModule",{value:!0}),transport.Http2SubchannelConnector=void 0;const e=require$$0__default$4.default,t=require$$1__default$1.default,r=requireChannelz(),n=requireConstants(),o=requireHttp_proxy(),i=requireLogging(),a=requireResolver(),s=requireSubchannelAddress(),l=requireUriParser(),p=require$$0__default$2.default,d=requireSubchannelCall(),u=requireCallNumber(),c="transport",f=require$$11.version,{HTTP2_HEADER_AUTHORITY:h,HTTP2_HEADER_CONTENT_TYPE:m,HTTP2_HEADER_METHOD:g,HTTP2_HEADER_PATH:y,HTTP2_HEADER_TE:v,HTTP2_HEADER_USER_AGENT:b}=e.constants,O=Buffer.from("too_many_pings","ascii");class w{constructor(n,o,a,l){this.session=n,this.options=a,this.remoteName=l,this.keepaliveTimer=null,this.pendingSendKeepalivePing=!1,this.activeCalls=new Set,this.disconnectListeners=[],this.disconnectHandled=!1,this.channelzEnabled=!0,this.keepalivesSent=0,this.messagesSent=0,this.messagesReceived=0,this.lastMessageSentTimestamp=null,this.lastMessageReceivedTimestamp=null,this.subchannelAddressString=(0,s.subchannelAddressToString)(o),0===a["grpc.enable_channelz"]?(this.channelzEnabled=!1,this.streamTracker=new r.ChannelzCallTrackerStub):this.streamTracker=new r.ChannelzCallTracker,this.channelzRef=(0,r.registerChannelzSocket)(this.subchannelAddressString,()=>this.getChannelzInfo(),this.channelzEnabled),this.userAgent=[a["grpc.primary_user_agent"],`grpc-node-js/${f}`,a["grpc.secondary_user_agent"]].filter(e=>e).join(" "),this.keepaliveTimeMs="grpc.keepalive_time_ms"in a?a["grpc.keepalive_time_ms"]:-1,this.keepaliveTimeoutMs="grpc.keepalive_timeout_ms"in a?a["grpc.keepalive_timeout_ms"]:2e4,this.keepaliveWithoutCalls="grpc.keepalive_permit_without_calls"in a&&1===a["grpc.keepalive_permit_without_calls"],n.once("close",()=>{this.trace("session closed"),this.handleDisconnect()}),n.once("goaway",(t,r,n)=>{let o=!1;t===e.constants.NGHTTP2_ENHANCE_YOUR_CALM&&n&&n.equals(O)&&(o=!0),this.trace("connection closed by GOAWAY with code "+t+" and data "+(null==n?void 0:n.toString())),this.reportDisconnectToOwner(o)}),n.once("error",e=>{this.trace("connection closed with error "+e.message),this.handleDisconnect()}),n.socket.once("close",e=>{this.trace("connection closed. hadError="+e),this.handleDisconnect()}),i.isTracerEnabled(c)&&(n.on("remoteSettings",e=>{this.trace("new settings received"+(this.session!==n?" on the old connection":"")+": "+JSON.stringify(e))}),n.on("localSettings",e=>{this.trace("local settings acknowledged by remote"+(this.session!==n?" on the old connection":"")+": "+JSON.stringify(e))})),this.keepaliveWithoutCalls&&this.maybeStartKeepalivePingTimer(),n.socket instanceof t.TLSSocket?this.authContext={transportSecurityType:"ssl",sslPeerCertificate:n.socket.getPeerCertificate()}:this.authContext={}}getChannelzInfo(){var e,t,r;const n=this.session.socket,o=n.remoteAddress?(0,s.stringToSubchannelAddress)(n.remoteAddress,n.remotePort):null,i=n.localAddress?(0,s.stringToSubchannelAddress)(n.localAddress,n.localPort):null;let a;if(this.session.encrypted){const t=n,r=t.getCipher(),o=t.getCertificate(),i=t.getPeerCertificate();a={cipherSuiteStandardName:null!==(e=r.standardName)&&void 0!==e?e:null,cipherSuiteOtherName:r.standardName?null:r.name,localCertificate:o&&"raw"in o?o.raw:null,remoteCertificate:i&&"raw"in i?i.raw:null}}else a=null;return{remoteAddress:o,localAddress:i,security:a,remoteName:this.remoteName,streamsStarted:this.streamTracker.callsStarted,streamsSucceeded:this.streamTracker.callsSucceeded,streamsFailed:this.streamTracker.callsFailed,messagesSent:this.messagesSent,messagesReceived:this.messagesReceived,keepAlivesSent:this.keepalivesSent,lastLocalStreamCreatedTimestamp:this.streamTracker.lastCallStartedTimestamp,lastRemoteStreamCreatedTimestamp:null,lastMessageSentTimestamp:this.lastMessageSentTimestamp,lastMessageReceivedTimestamp:this.lastMessageReceivedTimestamp,localFlowControlWindow:null!==(t=this.session.state.localWindowSize)&&void 0!==t?t:null,remoteFlowControlWindow:null!==(r=this.session.state.remoteWindowSize)&&void 0!==r?r:null}}trace(e){i.trace(n.LogVerbosity.DEBUG,c,"("+this.channelzRef.id+") "+this.subchannelAddressString+" "+e)}keepaliveTrace(e){i.trace(n.LogVerbosity.DEBUG,"keepalive","("+this.channelzRef.id+") "+this.subchannelAddressString+" "+e)}flowControlTrace(e){i.trace(n.LogVerbosity.DEBUG,"transport_flowctrl","("+this.channelzRef.id+") "+this.subchannelAddressString+" "+e)}internalsTrace(e){i.trace(n.LogVerbosity.DEBUG,"transport_internals","("+this.channelzRef.id+") "+this.subchannelAddressString+" "+e)}reportDisconnectToOwner(e){this.disconnectHandled||(this.disconnectHandled=!0,this.disconnectListeners.forEach(t=>t(e)))}handleDisconnect(){this.clearKeepaliveTimeout(),this.reportDisconnectToOwner(!1);for(const e of this.activeCalls)e.onDisconnect();setImmediate(()=>{this.session.destroy()})}addDisconnectListener(e){this.disconnectListeners.push(e)}canSendPing(){return!this.session.destroyed&&this.keepaliveTimeMs>0&&(this.keepaliveWithoutCalls||this.activeCalls.size>0)}maybeSendPing(){var e,t;if(!this.canSendPing())return void(this.pendingSendKeepalivePing=!0);if(this.keepaliveTimer)return void console.error("keepaliveTimeout is not null");this.channelzEnabled&&(this.keepalivesSent+=1),this.keepaliveTrace("Sending ping with timeout "+this.keepaliveTimeoutMs+"ms"),this.keepaliveTimer=setTimeout(()=>{this.keepaliveTimer=null,this.keepaliveTrace("Ping timeout passed without response"),this.handleDisconnect()},this.keepaliveTimeoutMs),null===(t=(e=this.keepaliveTimer).unref)||void 0===t||t.call(e);let r="";try{this.session.ping((e,t,r)=>{this.clearKeepaliveTimeout(),e?(this.keepaliveTrace("Ping failed with error "+e.message),this.handleDisconnect()):(this.keepaliveTrace("Received ping response"),this.maybeStartKeepalivePingTimer())})||(r="Ping returned false")}catch(e){r=(e instanceof Error?e.message:"")||"Unknown error"}r&&(this.keepaliveTrace("Ping send failed: "+r),this.handleDisconnect())}maybeStartKeepalivePingTimer(){var e,t;this.canSendPing()&&(this.pendingSendKeepalivePing?(this.pendingSendKeepalivePing=!1,this.maybeSendPing()):this.keepaliveTimer||(this.keepaliveTrace("Starting keepalive timer for "+this.keepaliveTimeMs+"ms"),this.keepaliveTimer=setTimeout(()=>{this.keepaliveTimer=null,this.maybeSendPing()},this.keepaliveTimeMs),null===(t=(e=this.keepaliveTimer).unref)||void 0===t||t.call(e)))}clearKeepaliveTimeout(){this.keepaliveTimer&&(clearTimeout(this.keepaliveTimer),this.keepaliveTimer=null)}removeActiveCall(e){this.activeCalls.delete(e),0===this.activeCalls.size&&this.session.unref()}addActiveCall(e){this.activeCalls.add(e),1===this.activeCalls.size&&(this.session.ref(),this.keepaliveWithoutCalls||this.maybeStartKeepalivePingTimer())}createCall(e,t,r,n,o){const i=e.toHttp2Headers();let a,s,l;i[h]=t,i[b]=this.userAgent,i[m]="application/grpc",i[g]="POST",i[y]=r,i[v]="trailers";try{a=this.session.request(i)}catch(e){throw this.handleDisconnect(),e}return this.flowControlTrace("local window size: "+this.session.state.localWindowSize+" remote window size: "+this.session.state.remoteWindowSize),this.internalsTrace("session.closed="+this.session.closed+" session.destroyed="+this.session.destroyed+" session.socket.destroyed="+this.session.socket.destroyed),this.channelzEnabled?(this.streamTracker.addCallStarted(),s={addMessageSent:()=>{var e;this.messagesSent+=1,this.lastMessageSentTimestamp=new Date,null===(e=o.addMessageSent)||void 0===e||e.call(o)},addMessageReceived:()=>{var e;this.messagesReceived+=1,this.lastMessageReceivedTimestamp=new Date,null===(e=o.addMessageReceived)||void 0===e||e.call(o)},onCallEnd:e=>{var t;null===(t=o.onCallEnd)||void 0===t||t.call(o,e),this.removeActiveCall(l)},onStreamEnd:e=>{var t;e?this.streamTracker.addCallSucceeded():this.streamTracker.addCallFailed(),null===(t=o.onStreamEnd)||void 0===t||t.call(o,e)}}):s={addMessageSent:()=>{var e;null===(e=o.addMessageSent)||void 0===e||e.call(o)},addMessageReceived:()=>{var e;null===(e=o.addMessageReceived)||void 0===e||e.call(o)},onCallEnd:e=>{var t;null===(t=o.onCallEnd)||void 0===t||t.call(o,e),this.removeActiveCall(l)},onStreamEnd:e=>{var t;null===(t=o.onStreamEnd)||void 0===t||t.call(o,e)}},l=new d.Http2SubchannelCall(a,s,n,this,(0,u.getNextCallNumber)()),this.addActiveCall(l),l}getChannelzRef(){return this.channelzRef}getPeerName(){return this.subchannelAddressString}getOptions(){return this.options}getAuthContext(){return this.authContext}shutdown(){this.session.close(),(0,r.unregisterChannelzRef)(this.channelzRef)}}return transport.Http2SubchannelConnector=class{constructor(e){this.channelTarget=e,this.session=null,this.isShutdown=!1}trace(e){i.trace(n.LogVerbosity.DEBUG,c,(0,l.uriToString)(this.channelTarget)+" "+e)}createSession(t,r,n){return this.isShutdown?Promise.reject():t.socket.closed?Promise.reject("Connection closed before starting HTTP/2 handshake"):new Promise((o,i)=>{var s,p,d,u,c,f,h;let m=null,g=this.channelTarget;if("grpc.http_connect_target"in n){const e=(0,l.parseUri)(n["grpc.http_connect_target"]);e&&(g=e,m=(0,l.uriToString)(e))}const y=t.secure?"https":"http",v=(0,a.getDefaultAuthority)(g),b=()=>{var e;null===(e=this.session)||void 0===e||e.destroy(),this.session=null,setImmediate(()=>{C||(C=!0,i(`${T.trim()} (${(new Date).toISOString()})`))})},O=e=>{var t;null===(t=this.session)||void 0===t||t.destroy(),T=e.message,this.trace("connection failed with error "+T),C||(C=!0,i(`${T} (${(new Date).toISOString()})`))},S={createConnection:(e,r)=>t.socket,settings:{initialWindowSize:null!==(u=null!==(s=n["grpc-node.flow_control_window"])&&void 0!==s?s:null===(d=null===(p=e.getDefaultSettings)||void 0===p?void 0:p.call(e))||void 0===d?void 0:d.initialWindowSize)&&void 0!==u?u:65535}},_=e.connect(`${y}://${v}`,S),P=null!==(h=null===(f=null===(c=e.getDefaultSettings)||void 0===c?void 0:c.call(e))||void 0===f?void 0:f.initialWindowSize)&&void 0!==h?h:65535,E=n["grpc-node.flow_control_window"];this.session=_;let T="Failed to connect",C=!1;_.unref(),_.once("remoteSettings",()=>{var e;if(E&&E>P)try{_.setLocalWindowSize(E)}catch(t){const r=E-(null!==(e=_.state.localWindowSize)&&void 0!==e?e:P);r>0&&_.incrementWindowSize(r)}_.removeAllListeners(),t.socket.removeListener("close",b),t.socket.removeListener("error",O),o(new w(_,r,n,m)),this.session=null}),_.once("close",b),_.once("error",O),t.socket.once("close",b),t.socket.once("error",O)})}tcpConnect(e,t){return(0,o.getProxiedConnection)(e,t).then(t=>t||new Promise((t,r)=>{const n=()=>{r(new Error("Socket closed"))},o=e=>{r(e)},i=p.connect(e,()=>{i.removeListener("close",n),i.removeListener("error",o),t(i)});i.once("close",n),i.once("error",o)}))}async connect(e,t,r){if(this.isShutdown)return Promise.reject();let n=null,o=null;const i=(0,s.subchannelAddressToString)(e);try{return this.trace(i+" Waiting for secureConnector to be ready"),await t.waitForReady(),this.trace(i+" secureConnector is ready"),n=await this.tcpConnect(e,r),n.setNoDelay(),this.trace(i+" Established TCP connection"),o=await t.connect(n),this.trace(i+" Established secure connection"),this.createSession(o,e,r)}catch(e){throw null==n||n.destroy(),null==o||o.socket.destroy(),e}}shutdown(){var e;this.isShutdown=!0,null===(e=this.session)||void 0===e||e.close(),this.session=null}},transport}function requireSubchannelPool(){if(hasRequiredSubchannelPool)return subchannelPool;hasRequiredSubchannelPool=1,Object.defineProperty(subchannelPool,"__esModule",{value:!0}),subchannelPool.SubchannelPool=void 0,subchannelPool.getSubchannelPool=function(e){return e?a:new i};const e=requireChannelOptions(),t=requireSubchannel(),r=requireSubchannelAddress(),n=requireUriParser(),o=requireTransport();class i{constructor(){this.pool=Object.create(null),this.cleanupTimer=null}unrefUnusedSubchannels(){let e=!0;for(const t in this.pool){const r=this.pool[t].filter(e=>!e.subchannel.unrefIfOneRef());r.length>0&&(e=!1),this.pool[t]=r}e&&null!==this.cleanupTimer&&(clearInterval(this.cleanupTimer),this.cleanupTimer=null)}ensureCleanupTask(){var e,t;null===this.cleanupTimer&&(this.cleanupTimer=setInterval(()=>{this.unrefUnusedSubchannels()},1e4),null===(t=(e=this.cleanupTimer).unref)||void 0===t||t.call(e))}getOrCreateSubchannel(i,a,s,l){this.ensureCleanupTask();const p=(0,n.uriToString)(i);if(p in this.pool){const t=this.pool[p];for(const n of t)if((0,r.subchannelAddressEqual)(a,n.subchannelAddress)&&(0,e.channelOptionsEqual)(s,n.channelArguments)&&l._equals(n.channelCredentials))return n.subchannel}const d=new t.Subchannel(i,a,s,l,new o.Http2SubchannelConnector(i));return p in this.pool||(this.pool[p]=[]),this.pool[p].push({subchannelAddress:a,channelArguments:s,channelCredentials:l,subchannel:d}),d.ref(),d}}subchannelPool.SubchannelPool=i;const a=new i;return subchannelPool}var loadBalancingCall={},hasRequiredLoadBalancingCall;function requireLoadBalancingCall(){if(hasRequiredLoadBalancingCall)return loadBalancingCall;hasRequiredLoadBalancingCall=1,Object.defineProperty(loadBalancingCall,"__esModule",{value:!0}),loadBalancingCall.LoadBalancingCall=void 0;const e=requireConnectivityState(),t=requireConstants(),r=requireDeadline(),n=requireMetadata(),o=requirePicker(),i=requireUriParser(),a=requireLogging(),s=requireControlPlaneStatus(),l=require$$0__default$4.default;return loadBalancingCall.LoadBalancingCall=class{constructor(e,t,r,n,o,a,s){var l,p;this.channel=e,this.callConfig=t,this.methodName=r,this.host=n,this.credentials=o,this.deadline=a,this.callNumber=s,this.child=null,this.readPending=!1,this.pendingMessage=null,this.pendingHalfClose=!1,this.ended=!1,this.metadata=null,this.listener=null,this.onCallEnded=null,this.childStartTime=null;const d=this.methodName.split("/");let u="";d.length>=2&&(u=d[1]);const c=null!==(p=null===(l=(0,i.splitHostPort)(this.host))||void 0===l?void 0:l.host)&&void 0!==p?p:"localhost";this.serviceUrl=`https://${c}/${u}`,this.startTime=new Date}getDeadlineInfo(){var e,t;const n=[];return this.childStartTime?(this.childStartTime>this.startTime&&((null===(e=this.metadata)||void 0===e?void 0:e.getOptions().waitForReady)&&n.push("wait_for_ready"),n.push(`LB pick: ${(0,r.formatDateDifference)(this.startTime,this.childStartTime)}`)),n.push(...this.child.getDeadlineInfo()),n):((null===(t=this.metadata)||void 0===t?void 0:t.getOptions().waitForReady)&&n.push("wait_for_ready"),n.push("Waiting for LB pick"),n)}trace(e){a.trace(t.LogVerbosity.DEBUG,"load_balancing_call","["+this.callNumber+"] "+e)}outputStatus(e,t){var r,n;if(!this.ended){this.ended=!0,this.trace("ended with status: code="+e.code+' details="'+e.details+'" start time='+this.startTime.toISOString());const o=Object.assign(Object.assign({},e),{progress:t});null===(r=this.listener)||void 0===r||r.onReceiveStatus(o),null===(n=this.onCallEnded)||void 0===n||n.call(this,o.code,o.details,o.metadata)}}doPick(){var i,a;if(this.ended)return;if(!this.metadata)throw new Error("doPick called before start");this.trace("Pick called");const p=this.metadata.clone(),d=this.channel.doPick(p,this.callConfig.pickInformation),u=d.subchannel?"("+d.subchannel.getChannelzRef().id+") "+d.subchannel.getAddress():""+d.subchannel;switch(this.trace("Pick result: "+o.PickResultType[d.pickResultType]+" subchannel: "+u+" status: "+(null===(i=d.status)||void 0===i?void 0:i.code)+" "+(null===(a=d.status)||void 0===a?void 0:a.details)),d.pickResultType){case o.PickResultType.COMPLETE:this.credentials.compose(d.subchannel.getCallCredentials()).generateMetadata({method_name:this.methodName,service_url:this.serviceUrl}).then(o=>{var i;if(this.ended)this.trace("Credentials metadata generation finished after call ended");else{if(p.merge(o),p.get("authorization").length>1&&this.outputStatus({code:t.Status.INTERNAL,details:'"authorization" metadata cannot have multiple values',metadata:new n.Metadata},"PROCESSED"),d.subchannel.getConnectivityState()!==e.ConnectivityState.READY)return this.trace("Picked subchannel "+u+" has state "+e.ConnectivityState[d.subchannel.getConnectivityState()]+" after getting credentials metadata. Retrying pick"),void this.doPick();this.deadline!==1/0&&p.set("grpc-timeout",(0,r.getDeadlineTimeoutString)(this.deadline));try{this.child=d.subchannel.getRealSubchannel().createCall(p,this.host,this.methodName,{onReceiveMetadata:e=>{this.trace("Received metadata"),this.listener.onReceiveMetadata(e)},onReceiveMessage:e=>{this.trace("Received message"),this.listener.onReceiveMessage(e)},onReceiveStatus:e=>{this.trace("Received status"),e.rstCode===l.constants.NGHTTP2_REFUSED_STREAM?this.outputStatus(e,"REFUSED"):this.outputStatus(e,"PROCESSED")}}),this.childStartTime=new Date}catch(e){return this.trace("Failed to start call on picked subchannel "+u+" with error "+e.message),void this.outputStatus({code:t.Status.INTERNAL,details:"Failed to start HTTP/2 stream with error "+e.message,metadata:new n.Metadata},"NOT_STARTED")}null===(i=d.onCallStarted)||void 0===i||i.call(d),this.onCallEnded=d.onCallEnded,this.trace("Created child call ["+this.child.getCallNumber()+"]"),this.readPending&&this.child.startRead(),this.pendingMessage&&this.child.sendMessageWithContext(this.pendingMessage.context,this.pendingMessage.message),this.pendingHalfClose&&this.child.halfClose()}},e=>{const{code:r,details:o}=(0,s.restrictControlPlaneStatusCode)("number"==typeof e.code?e.code:t.Status.UNKNOWN,`Getting metadata from plugin failed with error: ${e.message}`);this.outputStatus({code:r,details:o,metadata:new n.Metadata},"PROCESSED")});break;case o.PickResultType.DROP:const{code:i,details:a}=(0,s.restrictControlPlaneStatusCode)(d.status.code,d.status.details);setImmediate(()=>{this.outputStatus({code:i,details:a,metadata:d.status.metadata},"DROP")});break;case o.PickResultType.TRANSIENT_FAILURE:if(this.metadata.getOptions().waitForReady)this.channel.queueCallForPick(this);else{const{code:e,details:t}=(0,s.restrictControlPlaneStatusCode)(d.status.code,d.status.details);setImmediate(()=>{this.outputStatus({code:e,details:t,metadata:d.status.metadata},"PROCESSED")})}break;case o.PickResultType.QUEUE:this.channel.queueCallForPick(this)}}cancelWithStatus(e,t){var r;this.trace("cancelWithStatus code: "+e+' details: "'+t+'"'),null===(r=this.child)||void 0===r||r.cancelWithStatus(e,t),this.outputStatus({code:e,details:t,metadata:new n.Metadata},"PROCESSED")}getPeer(){var e,t;return null!==(t=null===(e=this.child)||void 0===e?void 0:e.getPeer())&&void 0!==t?t:this.channel.getTarget()}start(e,t){this.trace("start called"),this.listener=t,this.metadata=e,this.doPick()}sendMessageWithContext(e,t){this.trace("write() called with message of length "+t.length),this.child?this.child.sendMessageWithContext(e,t):this.pendingMessage={context:e,message:t}}startRead(){this.trace("startRead called"),this.child?this.child.startRead():this.readPending=!0}halfClose(){this.trace("halfClose called"),this.child?this.child.halfClose():this.pendingHalfClose=!0}setCredentials(e){throw new Error("Method not implemented.")}getCallNumber(){return this.callNumber}getAuthContext(){return this.child?this.child.getAuthContext():null}},loadBalancingCall}var resolvingCall={},hasRequiredResolvingCall;function requireResolvingCall(){if(hasRequiredResolvingCall)return resolvingCall;hasRequiredResolvingCall=1,Object.defineProperty(resolvingCall,"__esModule",{value:!0}),resolvingCall.ResolvingCall=void 0;const e=requireCallCredentials(),t=requireConstants(),r=requireDeadline(),n=requireMetadata(),o=requireLogging(),i=requireControlPlaneStatus();return resolvingCall.ResolvingCall=class{constructor(n,o,i,a,s){this.channel=n,this.method=o,this.filterStackFactory=a,this.callNumber=s,this.child=null,this.readPending=!1,this.pendingMessage=null,this.pendingHalfClose=!1,this.ended=!1,this.readFilterPending=!1,this.writeFilterPending=!1,this.pendingChildStatus=null,this.metadata=null,this.listener=null,this.statusWatchers=[],this.deadlineTimer=setTimeout(()=>{},0),this.filterStack=null,this.deadlineStartTime=null,this.configReceivedTime=null,this.childStartTime=null,this.credentials=e.CallCredentials.createEmpty(),this.deadline=i.deadline,this.host=i.host,i.parentCall&&(i.flags&t.Propagate.CANCELLATION&&i.parentCall.on("cancelled",()=>{this.cancelWithStatus(t.Status.CANCELLED,"Cancelled by parent call")}),i.flags&t.Propagate.DEADLINE&&(this.trace("Propagating deadline from parent: "+i.parentCall.getDeadline()),this.deadline=(0,r.minDeadline)(this.deadline,i.parentCall.getDeadline()))),this.trace("Created"),this.runDeadlineTimer()}trace(e){o.trace(t.LogVerbosity.DEBUG,"resolving_call","["+this.callNumber+"] "+e)}runDeadlineTimer(){clearTimeout(this.deadlineTimer),this.deadlineStartTime=new Date,this.trace("Deadline: "+(0,r.deadlineToString)(this.deadline));const e=(0,r.getRelativeTimeout)(this.deadline);if(e!==1/0){this.trace("Deadline will be reached in "+e+"ms");const n=()=>{if(!this.deadlineStartTime)return void this.cancelWithStatus(t.Status.DEADLINE_EXCEEDED,"Deadline exceeded");const e=[],n=new Date;e.push(`Deadline exceeded after ${(0,r.formatDateDifference)(this.deadlineStartTime,n)}`),this.configReceivedTime?(this.configReceivedTime>this.deadlineStartTime&&e.push(`name resolution: ${(0,r.formatDateDifference)(this.deadlineStartTime,this.configReceivedTime)}`),this.childStartTime?this.childStartTime>this.configReceivedTime&&e.push(`metadata filters: ${(0,r.formatDateDifference)(this.configReceivedTime,this.childStartTime)}`):e.push("waiting for metadata filters")):e.push("waiting for name resolution"),this.child&&e.push(...this.child.getDeadlineInfo()),this.cancelWithStatus(t.Status.DEADLINE_EXCEEDED,e.join(","))};e<=0?process.nextTick(n):this.deadlineTimer=setTimeout(n,e)}}outputStatus(e){if(!this.ended){this.ended=!0,this.filterStack||(this.filterStack=this.filterStackFactory.createFilter()),clearTimeout(this.deadlineTimer);const t=this.filterStack.receiveTrailers(e);this.trace("ended with status: code="+t.code+' details="'+t.details+'"'),this.statusWatchers.forEach(e=>e(t)),process.nextTick(()=>{var e;null===(e=this.listener)||void 0===e||e.onReceiveStatus(t)})}}sendMessageOnChild(e,t){if(!this.child)throw new Error("sendMessageonChild called with child not populated");const r=this.child;this.writeFilterPending=!0,this.filterStack.sendMessage(Promise.resolve({message:t,flags:e.flags})).then(t=>{this.writeFilterPending=!1,r.sendMessageWithContext(e,t.message),this.pendingHalfClose&&r.halfClose()},e=>{this.cancelWithStatus(e.code,e.details)})}getConfig(){if(this.ended)return;if(!this.metadata||!this.listener)throw new Error("getConfig called before start");const e=this.channel.getConfig(this.method,this.metadata);if("NONE"===e.type)return void this.channel.queueCallForConfig(this);if("ERROR"===e.type)return void(this.metadata.getOptions().waitForReady?this.channel.queueCallForConfig(this):this.outputStatus(e.error));this.configReceivedTime=new Date;const o=e.config;if(o.status!==t.Status.OK){const{code:e,details:t}=(0,i.restrictControlPlaneStatusCode)(o.status,"Failed to route call to method "+this.method);return void this.outputStatus({code:e,details:t,metadata:new n.Metadata})}if(o.methodConfig.timeout){const e=new Date;e.setSeconds(e.getSeconds()+o.methodConfig.timeout.seconds),e.setMilliseconds(e.getMilliseconds()+o.methodConfig.timeout.nanos/1e6),this.deadline=(0,r.minDeadline)(this.deadline,e),this.runDeadlineTimer()}this.filterStackFactory.push(o.dynamicFilterFactories),this.filterStack=this.filterStackFactory.createFilter(),this.filterStack.sendMetadata(Promise.resolve(this.metadata)).then(e=>{this.child=this.channel.createRetryingCall(o,this.method,this.host,this.credentials,this.deadline),this.trace("Created child ["+this.child.getCallNumber()+"]"),this.childStartTime=new Date,this.child.start(e,{onReceiveMetadata:e=>{this.trace("Received metadata"),this.listener.onReceiveMetadata(this.filterStack.receiveMetadata(e))},onReceiveMessage:e=>{this.trace("Received message"),this.readFilterPending=!0,this.filterStack.receiveMessage(e).then(e=>{this.trace("Finished filtering received message"),this.readFilterPending=!1,this.listener.onReceiveMessage(e),this.pendingChildStatus&&this.outputStatus(this.pendingChildStatus)},e=>{this.cancelWithStatus(e.code,e.details)})},onReceiveStatus:e=>{this.trace("Received status"),this.readFilterPending?this.pendingChildStatus=e:this.outputStatus(e)}}),this.readPending&&this.child.startRead(),this.pendingMessage?this.sendMessageOnChild(this.pendingMessage.context,this.pendingMessage.message):this.pendingHalfClose&&this.child.halfClose()},e=>{this.outputStatus(e)})}reportResolverError(e){var t;(null===(t=this.metadata)||void 0===t?void 0:t.getOptions().waitForReady)?this.channel.queueCallForConfig(this):this.outputStatus(e)}cancelWithStatus(e,t){var r;this.trace("cancelWithStatus code: "+e+' details: "'+t+'"'),null===(r=this.child)||void 0===r||r.cancelWithStatus(e,t),this.outputStatus({code:e,details:t,metadata:new n.Metadata})}getPeer(){var e,t;return null!==(t=null===(e=this.child)||void 0===e?void 0:e.getPeer())&&void 0!==t?t:this.channel.getTarget()}start(e,t){this.trace("start called"),this.metadata=e.clone(),this.listener=t,this.getConfig()}sendMessageWithContext(e,t){this.trace("write() called with message of length "+t.length),this.child?this.sendMessageOnChild(e,t):this.pendingMessage={context:e,message:t}}startRead(){this.trace("startRead called"),this.child?this.child.startRead():this.readPending=!0}halfClose(){this.trace("halfClose called"),this.child&&!this.writeFilterPending?this.child.halfClose():this.pendingHalfClose=!0}setCredentials(e){this.credentials=e}addStatusWatcher(e){this.statusWatchers.push(e)}getCallNumber(){return this.callNumber}getAuthContext(){return this.child?this.child.getAuthContext():null}},resolvingCall}var retryingCall={},hasRequiredRetryingCall;function requireRetryingCall(){if(hasRequiredRetryingCall)return retryingCall;hasRequiredRetryingCall=1,Object.defineProperty(retryingCall,"__esModule",{value:!0}),retryingCall.RetryingCall=retryingCall.MessageBufferTracker=retryingCall.RetryThrottler=void 0;const e=requireConstants(),t=requireDeadline(),r=requireMetadata(),n=requireLogging();retryingCall.RetryThrottler=class{constructor(e,t,r){this.maxTokens=e,this.tokenRatio=t,this.tokens=r?r.tokens*(e/r.maxTokens):e}addCallSucceeded(){this.tokens=Math.min(this.tokens+this.tokenRatio,this.maxTokens)}addCallFailed(){this.tokens=Math.max(this.tokens-1,0)}canRetryCall(){return this.tokens>this.maxTokens/2}};retryingCall.MessageBufferTracker=class{constructor(e,t){this.totalLimit=e,this.limitPerCall=t,this.totalAllocated=0,this.allocatedPerCall=new Map}allocate(e,t){var r;const n=null!==(r=this.allocatedPerCall.get(t))&&void 0!==r?r:0;return!(this.limitPerCall-n<e||this.totalLimit-this.totalAllocated<e)&&(this.allocatedPerCall.set(t,n+e),this.totalAllocated+=e,!0)}free(e,t){var r;if(this.totalAllocated<e)throw new Error(`Invalid buffer allocation state: call ${t} freed ${e} > total allocated ${this.totalAllocated}`);this.totalAllocated-=e;const n=null!==(r=this.allocatedPerCall.get(t))&&void 0!==r?r:0;if(n<e)throw new Error(`Invalid buffer allocation state: call ${t} freed ${e} > allocated for call ${n}`);this.allocatedPerCall.set(t,n-e)}freeAll(e){var t;const r=null!==(t=this.allocatedPerCall.get(e))&&void 0!==t?t:0;if(this.totalAllocated<r)throw new Error(`Invalid buffer allocation state: call ${e} allocated ${r} > total allocated ${this.totalAllocated}`);this.totalAllocated-=r,this.allocatedPerCall.delete(e)}};const o="grpc-previous-rpc-attempts";return retryingCall.RetryingCall=class{constructor(e,t,r,n,o,i,a,s,l){var p;this.channel=e,this.callConfig=t,this.methodName=r,this.host=n,this.credentials=o,this.deadline=i,this.callNumber=a,this.bufferTracker=s,this.retryThrottler=l,this.listener=null,this.initialMetadata=null,this.underlyingCalls=[],this.writeBuffer=[],this.writeBufferOffset=0,this.readStarted=!1,this.transparentRetryUsed=!1,this.attempts=0,this.hedgingTimer=null,this.committedCallIndex=null,this.initialRetryBackoffSec=0,this.nextRetryBackoffSec=0;const d=null!==(p=e.getOptions()["grpc-node.retry_max_attempts_limit"])&&void 0!==p?p:5;if(0===e.getOptions()["grpc.enable_retries"])this.state="NO_RETRY",this.maxAttempts=1;else if(t.methodConfig.retryPolicy){this.state="RETRY";const e=t.methodConfig.retryPolicy;this.nextRetryBackoffSec=this.initialRetryBackoffSec=Number(e.initialBackoff.substring(0,e.initialBackoff.length-1)),this.maxAttempts=Math.min(e.maxAttempts,d)}else t.methodConfig.hedgingPolicy?(this.state="HEDGING",this.maxAttempts=Math.min(t.methodConfig.hedgingPolicy.maxAttempts,d)):(this.state="TRANSPARENT_ONLY",this.maxAttempts=1);this.startTime=new Date}getDeadlineInfo(){if(0===this.underlyingCalls.length)return[];const e=[],r=this.underlyingCalls[this.underlyingCalls.length-1];return this.underlyingCalls.length>1&&e.push("previous attempts: "+(this.underlyingCalls.length-1)),r.startTime>this.startTime&&e.push(`time to current attempt start: ${(0,t.formatDateDifference)(this.startTime,r.startTime)}`),e.push(...r.call.getDeadlineInfo()),e}getCallNumber(){return this.callNumber}trace(t){n.trace(e.LogVerbosity.DEBUG,"retrying_call","["+this.callNumber+"] "+t)}reportStatus(e){this.trace("ended with status: code="+e.code+' details="'+e.details+'" start time='+this.startTime.toISOString()),this.bufferTracker.freeAll(this.callNumber),this.writeBufferOffset=this.writeBufferOffset+this.writeBuffer.length,this.writeBuffer=[],process.nextTick(()=>{var t;null===(t=this.listener)||void 0===t||t.onReceiveStatus({code:e.code,details:e.details,metadata:e.metadata})})}cancelWithStatus(e,t){this.trace("cancelWithStatus code: "+e+' details: "'+t+'"'),this.reportStatus({code:e,details:t,metadata:new r.Metadata});for(const{call:r}of this.underlyingCalls)r.cancelWithStatus(e,t)}getPeer(){return null!==this.committedCallIndex?this.underlyingCalls[this.committedCallIndex].call.getPeer():"unknown"}getBufferEntry(e){var t;return null!==(t=this.writeBuffer[e-this.writeBufferOffset])&&void 0!==t?t:{entryType:"FREED",allocated:!1}}getNextBufferIndex(){return this.writeBufferOffset+this.writeBuffer.length}clearSentMessages(){if("COMMITTED"!==this.state)return;let e;e="COMPLETED"===this.underlyingCalls[this.committedCallIndex].state?this.getNextBufferIndex():this.underlyingCalls[this.committedCallIndex].nextMessageToSend;for(let t=this.writeBufferOffset;t<e;t++){const e=this.getBufferEntry(t);e.allocated&&this.bufferTracker.free(e.message.message.length,this.callNumber)}this.writeBuffer=this.writeBuffer.slice(e-this.writeBufferOffset),this.writeBufferOffset=e}commitCall(t){var r,n;if("COMMITTED"!==this.state){this.trace("Committing call ["+this.underlyingCalls[t].call.getCallNumber()+"] at index "+t),this.state="COMMITTED",null===(n=(r=this.callConfig).onCommitted)||void 0===n||n.call(r),this.committedCallIndex=t;for(let r=0;r<this.underlyingCalls.length;r++)r!==t&&"COMPLETED"!==this.underlyingCalls[r].state&&(this.underlyingCalls[r].state="COMPLETED",this.underlyingCalls[r].call.cancelWithStatus(e.Status.CANCELLED,"Discarded in favor of other hedged attempt"));this.clearSentMessages()}}commitCallWithMostMessages(){if("COMMITTED"===this.state)return;let e=-1,t=-1;for(const[r,n]of this.underlyingCalls.entries())"ACTIVE"===n.state&&n.nextMessageToSend>e&&(e=n.nextMessageToSend,t=r);-1===t?this.state="TRANSPARENT_ONLY":this.commitCall(t)}isStatusCodeInList(t,r){return t.some(t=>{var n;return t===r||t.toString().toLowerCase()===(null===(n=e.Status[r])||void 0===n?void 0:n.toLowerCase())})}getNextRetryJitter(){return Math.random()*(1.2-.8)+.8}getNextRetryBackoffMs(){var e;const t=null===(e=this.callConfig)||void 0===e?void 0:e.methodConfig.retryPolicy;if(!t)return 0;const r=this.getNextRetryJitter()*this.nextRetryBackoffSec*1e3,n=Number(t.maxBackoff.substring(0,t.maxBackoff.length-1));return this.nextRetryBackoffSec=Math.min(this.nextRetryBackoffSec*t.backoffMultiplier,n),r}maybeRetryCall(e,t){if("RETRY"!==this.state)return void t(!1);if(this.attempts>=this.maxAttempts)return void t(!1);let r;if(null===e)r=this.getNextRetryBackoffMs();else{if(e<0)return this.state="TRANSPARENT_ONLY",void t(!1);r=e,this.nextRetryBackoffSec=this.initialRetryBackoffSec}setTimeout(()=>{var e,r;"RETRY"===this.state?null===(r=null===(e=this.retryThrottler)||void 0===e?void 0:e.canRetryCall())||void 0===r||r?(t(!0),this.attempts+=1,this.startNewAttempt()):(this.trace("Retry attempt denied by throttling policy"),t(!1)):t(!1)},r)}countActiveCalls(){let e=0;for(const t of this.underlyingCalls)"ACTIVE"===(null==t?void 0:t.state)&&(e+=1);return e}handleProcessedStatus(e,t,r){var n,o,i;switch(this.state){case"COMMITTED":case"NO_RETRY":case"TRANSPARENT_ONLY":this.commitCall(t),this.reportStatus(e);break;case"HEDGING":if(this.isStatusCodeInList(null!==(n=this.callConfig.methodConfig.hedgingPolicy.nonFatalStatusCodes)&&void 0!==n?n:[],e.code)){let n;if(null===(o=this.retryThrottler)||void 0===o||o.addCallFailed(),null===r)n=0;else{if(r<0)return this.state="TRANSPARENT_ONLY",this.commitCall(t),void this.reportStatus(e);n=r}setTimeout(()=>{this.maybeStartHedgingAttempt(),0===this.countActiveCalls()&&(this.commitCall(t),this.reportStatus(e))},n)}else this.commitCall(t),this.reportStatus(e);break;case"RETRY":this.isStatusCodeInList(this.callConfig.methodConfig.retryPolicy.retryableStatusCodes,e.code)?(null===(i=this.retryThrottler)||void 0===i||i.addCallFailed(),this.maybeRetryCall(r,r=>{r||(this.commitCall(t),this.reportStatus(e))})):(this.commitCall(t),this.reportStatus(e))}}getPushback(e){const t=e.get("grpc-retry-pushback-ms");if(0===t.length)return null;try{return parseInt(t[0])}catch(e){return-1}}handleChildStatus(t,r){var n;if("COMPLETED"===this.underlyingCalls[r].state)return;if(this.trace("state="+this.state+" handling status with progress "+t.progress+" from child ["+this.underlyingCalls[r].call.getCallNumber()+"] in state "+this.underlyingCalls[r].state),this.underlyingCalls[r].state="COMPLETED",t.code===e.Status.OK)return null===(n=this.retryThrottler)||void 0===n||n.addCallSucceeded(),this.commitCall(r),void this.reportStatus(t);if("NO_RETRY"===this.state)return this.commitCall(r),void this.reportStatus(t);if("COMMITTED"===this.state)return void this.reportStatus(t);const o=this.getPushback(t.metadata);switch(t.progress){case"NOT_STARTED":this.startNewAttempt();break;case"REFUSED":this.transparentRetryUsed?this.handleProcessedStatus(t,r,o):(this.transparentRetryUsed=!0,this.startNewAttempt());break;case"DROP":this.commitCall(r),this.reportStatus(t);break;case"PROCESSED":this.handleProcessedStatus(t,r,o)}}maybeStartHedgingAttempt(){"HEDGING"===this.state&&this.callConfig.methodConfig.hedgingPolicy&&(this.attempts>=this.maxAttempts||(this.attempts+=1,this.startNewAttempt(),this.maybeStartHedgingTimer()))}maybeStartHedgingTimer(){var e,t,r;if(this.hedgingTimer&&clearTimeout(this.hedgingTimer),"HEDGING"!==this.state)return;if(!this.callConfig.methodConfig.hedgingPolicy)return;const n=this.callConfig.methodConfig.hedgingPolicy;if(this.attempts>=this.maxAttempts)return;const o=null!==(e=n.hedgingDelay)&&void 0!==e?e:"0s",i=Number(o.substring(0,o.length-1));this.hedgingTimer=setTimeout(()=>{this.maybeStartHedgingAttempt()},1e3*i),null===(r=(t=this.hedgingTimer).unref)||void 0===r||r.call(t)}startNewAttempt(){const e=this.channel.createLoadBalancingCall(this.callConfig,this.methodName,this.host,this.credentials,this.deadline);this.trace("Created child call ["+e.getCallNumber()+"] for attempt "+this.attempts);const t=this.underlyingCalls.length;this.underlyingCalls.push({state:"ACTIVE",call:e,nextMessageToSend:0,startTime:new Date});const r=this.attempts-1,n=this.initialMetadata.clone();r>0&&n.set(o,`${r}`);let i=!1;e.start(n,{onReceiveMetadata:n=>{this.trace("Received metadata from child ["+e.getCallNumber()+"]"),this.commitCall(t),i=!0,r>0&&n.set(o,`${r}`),"ACTIVE"===this.underlyingCalls[t].state&&this.listener.onReceiveMetadata(n)},onReceiveMessage:r=>{this.trace("Received message from child ["+e.getCallNumber()+"]"),this.commitCall(t),"ACTIVE"===this.underlyingCalls[t].state&&this.listener.onReceiveMessage(r)},onReceiveStatus:n=>{this.trace("Received status from child ["+e.getCallNumber()+"]"),!i&&r>0&&n.metadata.set(o,`${r}`),this.handleChildStatus(n,t)}}),this.sendNextChildMessage(t),this.readStarted&&e.startRead()}start(e,t){this.trace("start called"),this.listener=t,this.initialMetadata=e,this.attempts+=1,this.startNewAttempt(),this.maybeStartHedgingTimer()}handleChildWriteCompleted(e){var t,r;const n=this.underlyingCalls[e],o=n.nextMessageToSend;null===(r=(t=this.getBufferEntry(o)).callback)||void 0===r||r.call(t),this.clearSentMessages(),n.nextMessageToSend+=1,this.sendNextChildMessage(e)}sendNextChildMessage(e){const t=this.underlyingCalls[e];if("COMPLETED"!==t.state&&this.getBufferEntry(t.nextMessageToSend)){const r=this.getBufferEntry(t.nextMessageToSend);switch(r.entryType){case"MESSAGE":t.call.sendMessageWithContext({callback:t=>{this.handleChildWriteCompleted(e)}},r.message.message);break;case"HALF_CLOSE":t.nextMessageToSend+=1,t.call.halfClose()}}}sendMessageWithContext(e,t){var r;this.trace("write() called with message of length "+t.length);const n={message:t,flags:e.flags},o=this.getNextBufferIndex(),i={entryType:"MESSAGE",message:n,allocated:this.bufferTracker.allocate(t.length,this.callNumber)};if(this.writeBuffer.push(i),i.allocated){null===(r=e.callback)||void 0===r||r.call(e);for(const[e,r]of this.underlyingCalls.entries())"ACTIVE"===r.state&&r.nextMessageToSend===o&&r.call.sendMessageWithContext({callback:t=>{this.handleChildWriteCompleted(e)}},t)}else{if(this.commitCallWithMostMessages(),null===this.committedCallIndex)return;const r=this.underlyingCalls[this.committedCallIndex];i.callback=e.callback,"ACTIVE"===r.state&&r.nextMessageToSend===o&&r.call.sendMessageWithContext({callback:e=>{this.handleChildWriteCompleted(this.committedCallIndex)}},t)}}startRead(){this.trace("startRead called"),this.readStarted=!0;for(const e of this.underlyingCalls)"ACTIVE"===(null==e?void 0:e.state)&&e.call.startRead()}halfClose(){this.trace("halfClose called");const e=this.getNextBufferIndex();this.writeBuffer.push({entryType:"HALF_CLOSE",allocated:!1});for(const t of this.underlyingCalls)"ACTIVE"===(null==t?void 0:t.state)&&t.nextMessageToSend===e&&(t.nextMessageToSend+=1,t.call.halfClose())}setCredentials(e){throw new Error("Method not implemented.")}getMethod(){return this.methodName}getHost(){return this.host}getAuthContext(){return null!==this.committedCallIndex?this.underlyingCalls[this.committedCallIndex].call.getAuthContext():null}},retryingCall}var subchannelInterface={},hasRequiredSubchannelInterface,hasRequiredInternalChannel,hasRequiredChannel;function requireSubchannelInterface(){if(hasRequiredSubchannelInterface)return subchannelInterface;hasRequiredSubchannelInterface=1,Object.defineProperty(subchannelInterface,"__esModule",{value:!0}),subchannelInterface.BaseSubchannelWrapper=void 0;return subchannelInterface.BaseSubchannelWrapper=class{constructor(e){this.child=e,this.healthy=!0,this.healthListeners=new Set,this.refcount=0,this.dataWatchers=new Set,e.addHealthStateWatcher(e=>{this.healthy&&this.updateHealthListeners()})}updateHealthListeners(){for(const e of this.healthListeners)e(this.isHealthy())}getConnectivityState(){return this.child.getConnectivityState()}addConnectivityStateListener(e){this.child.addConnectivityStateListener(e)}removeConnectivityStateListener(e){this.child.removeConnectivityStateListener(e)}startConnecting(){this.child.startConnecting()}getAddress(){return this.child.getAddress()}throttleKeepalive(e){this.child.throttleKeepalive(e)}ref(){this.child.ref(),this.refcount+=1}unref(){this.child.unref(),this.refcount-=1,0===this.refcount&&this.destroy()}destroy(){for(const e of this.dataWatchers)e.destroy()}getChannelzRef(){return this.child.getChannelzRef()}isHealthy(){return this.healthy&&this.child.isHealthy()}addHealthStateWatcher(e){this.healthListeners.add(e)}removeHealthStateWatcher(e){this.healthListeners.delete(e)}addDataWatcher(e){e.setSubchannel(this.getRealSubchannel()),this.dataWatchers.add(e)}setHealthy(e){e!==this.healthy&&(this.healthy=e,this.child.isHealthy()&&this.updateHealthListeners())}getRealSubchannel(){return this.child.getRealSubchannel()}realSubchannelEquals(e){return this.getRealSubchannel()===e.getRealSubchannel()}getCallCredentials(){return this.child.getCallCredentials()}getChannel(){return this.child.getChannel()}},subchannelInterface}function requireInternalChannel(){return hasRequiredInternalChannel||(hasRequiredInternalChannel=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InternalChannel=e.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX=void 0;const t=requireChannelCredentials(),r=requireResolvingLoadBalancer(),n=requireSubchannelPool(),o=requirePicker(),i=requireMetadata(),a=requireConstants(),s=requireFilterStack(),l=requireCompressionFilter(),p=requireResolver(),d=requireLogging(),u=requireHttp_proxy(),c=requireUriParser(),f=requireConnectivityState(),h=requireChannelz(),m=requireLoadBalancingCall(),g=requireDeadline(),y=requireResolvingCall(),v=requireCallNumber(),b=requireControlPlaneStatus(),O=requireRetryingCall(),w=requireSubchannelInterface(),S=new Map;class _ extends w.BaseSubchannelWrapper{constructor(e,t){super(e),this.channel=t,this.refCount=0,this.subchannelStateListener=(e,r,n,o)=>{t.throttleKeepalive(o)}}ref(){0===this.refCount&&(this.child.addConnectivityStateListener(this.subchannelStateListener),this.channel.addWrappedSubchannel(this)),this.child.ref(),this.refCount+=1}unref(){this.child.unref(),this.refCount-=1,this.refCount<=0&&(this.child.removeConnectivityStateListener(this.subchannelStateListener),this.channel.removeWrappedSubchannel(this))}}class P{pick(e){return{pickResultType:o.PickResultType.DROP,status:{code:a.Status.UNAVAILABLE,details:"Channel closed before call started",metadata:new i.Metadata},subchannel:null,onCallStarted:null,onCallEnded:null}}}e.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX="grpc.internal.no_subchannel";class E{constructor(e){this.target=e,this.trace=new h.ChannelzTrace,this.callTracker=new h.ChannelzCallTracker,this.childrenTracker=new h.ChannelzChildrenTracker,this.state=f.ConnectivityState.IDLE}getChannelzInfoCallback(){return()=>({target:this.target,state:this.state,trace:this.trace,callTracker:this.callTracker,children:this.childrenTracker.getChildLists()})}}e.InternalChannel=class{constructor(i,m,g){var y,v,w,P,T,C;if(this.credentials=m,this.options=g,this.connectivityState=f.ConnectivityState.IDLE,this.currentPicker=new o.UnavailablePicker,this.configSelectionQueue=[],this.pickQueue=[],this.connectivityStateWatchers=[],this.callRefTimer=null,this.configSelector=null,this.currentResolutionError=null,this.wrappedSubchannels=new Set,this.callCount=0,this.idleTimer=null,this.channelzEnabled=!0,this.randomChannelId=Math.floor(Math.random()*Number.MAX_SAFE_INTEGER),"string"!=typeof i)throw new TypeError("Channel target must be a string");if(!(m instanceof t.ChannelCredentials))throw new TypeError("Channel credentials must be a ChannelCredentials object");if(g&&"object"!=typeof g)throw new TypeError("Channel options must be an object");this.channelzInfoTracker=new E(i);const R=(0,c.parseUri)(i);if(null===R)throw new Error(`Could not parse target name "${i}"`);const D=(0,p.mapUriDefaultScheme)(R);if(null===D)throw new Error(`Could not find a default scheme for target name "${i}"`);0===this.options["grpc.enable_channelz"]&&(this.channelzEnabled=!1),this.channelzRef=(0,h.registerChannelzChannel)(i,this.channelzInfoTracker.getChannelzInfoCallback(),this.channelzEnabled),this.channelzEnabled&&this.channelzInfoTracker.trace.addTrace("CT_INFO","Channel created"),this.options["grpc.default_authority"]?this.defaultAuthority=this.options["grpc.default_authority"]:this.defaultAuthority=(0,p.getDefaultAuthority)(D);const k=(0,u.mapProxyName)(D,g);this.target=k.target,this.options=Object.assign({},this.options,k.extraOptions),this.subchannelPool=(0,n.getSubchannelPool)(0===(null!==(y=this.options["grpc.use_local_subchannel_pool"])&&void 0!==y?y:0)),this.retryBufferTracker=new O.MessageBufferTracker(null!==(v=this.options["grpc.retry_buffer_size"])&&void 0!==v?v:16777216,null!==(w=this.options["grpc.per_rpc_retry_buffer_size"])&&void 0!==w?w:1048576),this.keepaliveTime=null!==(P=this.options["grpc.keepalive_time_ms"])&&void 0!==P?P:-1,this.idleTimeoutMs=Math.max(null!==(T=this.options["grpc.client_idle_timeout_ms"])&&void 0!==T?T:18e5,1e3);const x={createSubchannel:(t,r)=>{const n={};for(const[t,o]of Object.entries(r))t.startsWith(e.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX)||(n[t]=o);const o=this.subchannelPool.getOrCreateSubchannel(this.target,t,n,this.credentials);o.throttleKeepalive(this.keepaliveTime),this.channelzEnabled&&this.channelzInfoTracker.trace.addTrace("CT_INFO","Created subchannel or used existing subchannel",o.getChannelzRef());return new _(o,this)},updateState:(e,t)=>{this.currentPicker=t;const r=this.pickQueue.slice();this.pickQueue=[],r.length>0&&this.callRefTimerUnref();for(const e of r)e.doPick();this.updateState(e)},requestReresolution:()=>{throw new Error("Resolving load balancer should never call requestReresolution")},addChannelzChild:e=>{this.channelzEnabled&&this.channelzInfoTracker.childrenTracker.refChild(e)},removeChannelzChild:e=>{this.channelzEnabled&&this.channelzInfoTracker.childrenTracker.unrefChild(e)}};this.resolvingLoadBalancer=new r.ResolvingLoadBalancer(this.target,x,this.options,(e,t)=>{var r;e.retryThrottling?S.set(this.getTarget(),new O.RetryThrottler(e.retryThrottling.maxTokens,e.retryThrottling.tokenRatio,S.get(this.getTarget()))):S.delete(this.getTarget()),this.channelzEnabled&&this.channelzInfoTracker.trace.addTrace("CT_INFO","Address resolution succeeded"),null===(r=this.configSelector)||void 0===r||r.unref(),this.configSelector=t,this.currentResolutionError=null,process.nextTick(()=>{const e=this.configSelectionQueue;this.configSelectionQueue=[],e.length>0&&this.callRefTimerUnref();for(const t of e)t.getConfig()})},e=>{this.channelzEnabled&&this.channelzInfoTracker.trace.addTrace("CT_WARNING","Address resolution failed with code "+e.code+' and details "'+e.details+'"'),this.configSelectionQueue.length>0&&this.trace("Name resolution failed with calls queued for config selection"),null===this.configSelector&&(this.currentResolutionError=Object.assign(Object.assign({},(0,b.restrictControlPlaneStatusCode)(e.code,e.details)),{metadata:e.metadata}));const t=this.configSelectionQueue;this.configSelectionQueue=[],t.length>0&&this.callRefTimerUnref();for(const r of t)r.reportResolverError(e)}),this.filterStackFactory=new s.FilterStackFactory([new l.CompressionFilterFactory(this,this.options)]),this.trace("Channel constructed with options "+JSON.stringify(g,void 0,2));const j=new Error;(0,d.isTracerEnabled)("channel_stacktrace")&&(0,d.trace)(a.LogVerbosity.DEBUG,"channel_stacktrace","("+this.channelzRef.id+") Channel constructed \n"+(null===(C=j.stack)||void 0===C?void 0:C.substring(j.stack.indexOf("\n")+1))),this.lastActivityTimestamp=new Date}trace(e,t){(0,d.trace)(null!=t?t:a.LogVerbosity.DEBUG,"channel","("+this.channelzRef.id+") "+(0,c.uriToString)(this.target)+" "+e)}callRefTimerRef(){var e,t,r,n;this.callRefTimer||(this.callRefTimer=setInterval(()=>{},2147483647)),(null===(t=(e=this.callRefTimer).hasRef)||void 0===t?void 0:t.call(e))||(this.trace("callRefTimer.ref | configSelectionQueue.length="+this.configSelectionQueue.length+" pickQueue.length="+this.pickQueue.length),null===(n=(r=this.callRefTimer).ref)||void 0===n||n.call(r))}callRefTimerUnref(){var e,t,r;(null===(e=this.callRefTimer)||void 0===e?void 0:e.hasRef)&&!this.callRefTimer.hasRef()||(this.trace("callRefTimer.unref | configSelectionQueue.length="+this.configSelectionQueue.length+" pickQueue.length="+this.pickQueue.length),null===(r=null===(t=this.callRefTimer)||void 0===t?void 0:t.unref)||void 0===r||r.call(t))}removeConnectivityStateWatcher(e){const t=this.connectivityStateWatchers.findIndex(t=>t===e);t>=0&&this.connectivityStateWatchers.splice(t,1)}updateState(e){(0,d.trace)(a.LogVerbosity.DEBUG,"connectivity_state","("+this.channelzRef.id+") "+(0,c.uriToString)(this.target)+" "+f.ConnectivityState[this.connectivityState]+" -> "+f.ConnectivityState[e]),this.channelzEnabled&&this.channelzInfoTracker.trace.addTrace("CT_INFO","Connectivity state change to "+f.ConnectivityState[e]),this.connectivityState=e,this.channelzInfoTracker.state=e;const t=this.connectivityStateWatchers.slice();for(const r of t)e!==r.currentState&&(r.timer&&clearTimeout(r.timer),this.removeConnectivityStateWatcher(r),r.callback());e!==f.ConnectivityState.TRANSIENT_FAILURE&&(this.currentResolutionError=null)}throttleKeepalive(e){if(e>this.keepaliveTime){this.keepaliveTime=e;for(const t of this.wrappedSubchannels)t.throttleKeepalive(e)}}addWrappedSubchannel(e){this.wrappedSubchannels.add(e)}removeWrappedSubchannel(e){this.wrappedSubchannels.delete(e)}doPick(e,t){return this.currentPicker.pick({metadata:e,extraPickInfo:t})}queueCallForPick(e){this.pickQueue.push(e),this.callRefTimerRef()}getConfig(e,t){return this.connectivityState!==f.ConnectivityState.SHUTDOWN&&this.resolvingLoadBalancer.exitIdle(),this.configSelector?{type:"SUCCESS",config:this.configSelector.invoke(e,t,this.randomChannelId)}:this.currentResolutionError?{type:"ERROR",error:this.currentResolutionError}:{type:"NONE"}}queueCallForConfig(e){this.configSelectionQueue.push(e),this.callRefTimerRef()}enterIdle(){this.resolvingLoadBalancer.destroy(),this.updateState(f.ConnectivityState.IDLE),this.currentPicker=new o.QueuePicker(this.resolvingLoadBalancer),this.idleTimer&&(clearTimeout(this.idleTimer),this.idleTimer=null),this.callRefTimer&&(clearInterval(this.callRefTimer),this.callRefTimer=null)}startIdleTimeout(e){var t,r;this.idleTimer=setTimeout(()=>{if(this.callCount>0)return void this.startIdleTimeout(this.idleTimeoutMs);const e=(new Date).valueOf()-this.lastActivityTimestamp.valueOf();e>=this.idleTimeoutMs?(this.trace("Idle timer triggered after "+this.idleTimeoutMs+"ms of inactivity"),this.enterIdle()):this.startIdleTimeout(this.idleTimeoutMs-e)},e),null===(r=(t=this.idleTimer).unref)||void 0===r||r.call(t)}maybeStartIdleTimer(){this.connectivityState===f.ConnectivityState.SHUTDOWN||this.idleTimer||this.startIdleTimeout(this.idleTimeoutMs)}onCallStart(){this.channelzEnabled&&this.channelzInfoTracker.callTracker.addCallStarted(),this.callCount+=1}onCallEnd(e){this.channelzEnabled&&(e.code===a.Status.OK?this.channelzInfoTracker.callTracker.addCallSucceeded():this.channelzInfoTracker.callTracker.addCallFailed()),this.callCount-=1,this.lastActivityTimestamp=new Date,this.maybeStartIdleTimer()}createLoadBalancingCall(e,t,r,n,o){const i=(0,v.getNextCallNumber)();return this.trace("createLoadBalancingCall ["+i+'] method="'+t+'"'),new m.LoadBalancingCall(this,e,t,r,n,o,i)}createRetryingCall(e,t,r,n,o){const i=(0,v.getNextCallNumber)();return this.trace("createRetryingCall ["+i+'] method="'+t+'"'),new O.RetryingCall(this,e,t,r,n,o,i,this.retryBufferTracker,S.get(this.getTarget()))}createResolvingCall(e,t,r,n,o){const i=(0,v.getNextCallNumber)();this.trace("createResolvingCall ["+i+'] method="'+e+'", deadline='+(0,g.deadlineToString)(t));const s={deadline:t,flags:null!=o?o:a.Propagate.DEFAULTS,host:null!=r?r:this.defaultAuthority,parentCall:n},l=new y.ResolvingCall(this,e,s,this.filterStackFactory.clone(),i);return this.onCallStart(),l.addStatusWatcher(e=>{this.onCallEnd(e)}),l}close(){var e;this.resolvingLoadBalancer.destroy(),this.updateState(f.ConnectivityState.SHUTDOWN),this.currentPicker=new P;for(const e of this.configSelectionQueue)e.cancelWithStatus(a.Status.UNAVAILABLE,"Channel closed before call started");this.configSelectionQueue=[];for(const e of this.pickQueue)e.cancelWithStatus(a.Status.UNAVAILABLE,"Channel closed before call started");this.pickQueue=[],this.callRefTimer&&clearInterval(this.callRefTimer),this.idleTimer&&clearTimeout(this.idleTimer),this.channelzEnabled&&(0,h.unregisterChannelzRef)(this.channelzRef),this.subchannelPool.unrefUnusedSubchannels(),null===(e=this.configSelector)||void 0===e||e.unref(),this.configSelector=null}getTarget(){return(0,c.uriToString)(this.target)}getConnectivityState(e){const t=this.connectivityState;return e&&(this.resolvingLoadBalancer.exitIdle(),this.lastActivityTimestamp=new Date,this.maybeStartIdleTimer()),t}watchConnectivityState(e,t,r){if(this.connectivityState===f.ConnectivityState.SHUTDOWN)throw new Error("Channel has been shut down");let n=null;if(t!==1/0){const e=t instanceof Date?t:new Date(t),i=new Date;if(t===-1/0||e<=i)return void process.nextTick(r,new Error("Deadline passed without connectivity state change"));n=setTimeout(()=>{this.removeConnectivityStateWatcher(o),r(new Error("Deadline passed without connectivity state change"))},e.getTime()-i.getTime())}const o={currentState:e,callback:r,timer:n};this.connectivityStateWatchers.push(o)}getChannelzRef(){return this.channelzRef}createCall(e,t,r,n,o){if("string"!=typeof e)throw new TypeError("Channel#createCall: method must be a string");if(!("number"==typeof t||t instanceof Date))throw new TypeError("Channel#createCall: deadline must be a number or Date");if(this.connectivityState===f.ConnectivityState.SHUTDOWN)throw new Error("Channel has been shut down");return this.createResolvingCall(e,t,r,n,o)}getOptions(){return this.options}}}(internalChannel)),internalChannel}function requireChannel(){if(hasRequiredChannel)return channel;hasRequiredChannel=1,Object.defineProperty(channel,"__esModule",{value:!0}),channel.ChannelImplementation=void 0;const e=requireChannelCredentials(),t=requireInternalChannel();return channel.ChannelImplementation=class{constructor(r,n,o){if("string"!=typeof r)throw new TypeError("Channel target must be a string");if(!(n instanceof e.ChannelCredentials))throw new TypeError("Channel credentials must be a ChannelCredentials object");if(o&&"object"!=typeof o)throw new TypeError("Channel options must be an object");this.internalChannel=new t.InternalChannel(r,n,o)}close(){this.internalChannel.close()}getTarget(){return this.internalChannel.getTarget()}getConnectivityState(e){return this.internalChannel.getConnectivityState(e)}watchConnectivityState(e,t,r){this.internalChannel.watchConnectivityState(e,t,r)}getChannelzRef(){return this.internalChannel.getChannelzRef()}createCall(e,t,r,n,o){if("string"!=typeof e)throw new TypeError("Channel#createCall: method must be a string");if(!("number"==typeof t||t instanceof Date))throw new TypeError("Channel#createCall: deadline must be a number or Date");return this.internalChannel.createCall(e,t,r,n,o)}},channel}var server={},serverCall={},hasRequiredServerCall;function requireServerCall(){if(hasRequiredServerCall)return serverCall;hasRequiredServerCall=1,Object.defineProperty(serverCall,"__esModule",{value:!0}),serverCall.ServerDuplexStreamImpl=serverCall.ServerWritableStreamImpl=serverCall.ServerReadableStreamImpl=serverCall.ServerUnaryCallImpl=void 0,serverCall.serverErrorToStatus=o;const e=require$$0__default$3.default,t=Stream__default.default,r=requireConstants(),n=requireMetadata();function o(e,t){var n;const o={code:r.Status.UNKNOWN,details:"message"in e?e.message:"Unknown Error",metadata:null!==(n=null!=t?t:e.metadata)&&void 0!==n?n:null};return"code"in e&&"number"==typeof e.code&&Number.isInteger(e.code)&&(o.code=e.code,"details"in e&&"string"==typeof e.details&&(o.details=e.details)),o}class i extends e.EventEmitter{constructor(e,t,r,n){super(),this.path=e,this.call=t,this.metadata=r,this.request=n,this.cancelled=!1}getPeer(){return this.call.getPeer()}sendMetadata(e){this.call.sendMetadata(e)}getDeadline(){return this.call.getDeadline()}getPath(){return this.path}getHost(){return this.call.getHost()}getAuthContext(){return this.call.getAuthContext()}getMetricsRecorder(){return this.call.getMetricsRecorder()}}serverCall.ServerUnaryCallImpl=i;class a extends t.Readable{constructor(e,t,r){super({objectMode:!0}),this.path=e,this.call=t,this.metadata=r,this.cancelled=!1}_read(e){this.call.startRead()}getPeer(){return this.call.getPeer()}sendMetadata(e){this.call.sendMetadata(e)}getDeadline(){return this.call.getDeadline()}getPath(){return this.path}getHost(){return this.call.getHost()}getAuthContext(){return this.call.getAuthContext()}getMetricsRecorder(){return this.call.getMetricsRecorder()}}serverCall.ServerReadableStreamImpl=a;class s extends t.Writable{constructor(e,t,i,a){super({objectMode:!0}),this.path=e,this.call=t,this.metadata=i,this.request=a,this.pendingStatus={code:r.Status.OK,details:"OK"},this.cancelled=!1,this.trailingMetadata=new n.Metadata,this.on("error",e=>{this.pendingStatus=o(e),this.end()})}getPeer(){return this.call.getPeer()}sendMetadata(e){this.call.sendMetadata(e)}getDeadline(){return this.call.getDeadline()}getPath(){return this.path}getHost(){return this.call.getHost()}getAuthContext(){return this.call.getAuthContext()}getMetricsRecorder(){return this.call.getMetricsRecorder()}_write(e,t,r){this.call.sendMessage(e,r)}_final(e){var t;e(null),this.call.sendStatus(Object.assign(Object.assign({},this.pendingStatus),{metadata:null!==(t=this.pendingStatus.metadata)&&void 0!==t?t:this.trailingMetadata}))}end(e){return e&&(this.trailingMetadata=e),super.end()}}serverCall.ServerWritableStreamImpl=s;class l extends t.Duplex{constructor(e,t,i){super({objectMode:!0}),this.path=e,this.call=t,this.metadata=i,this.pendingStatus={code:r.Status.OK,details:"OK"},this.cancelled=!1,this.trailingMetadata=new n.Metadata,this.on("error",e=>{this.pendingStatus=o(e),this.end()})}getPeer(){return this.call.getPeer()}sendMetadata(e){this.call.sendMetadata(e)}getDeadline(){return this.call.getDeadline()}getPath(){return this.path}getHost(){return this.call.getHost()}getAuthContext(){return this.call.getAuthContext()}getMetricsRecorder(){return this.call.getMetricsRecorder()}_read(e){this.call.startRead()}_write(e,t,r){this.call.sendMessage(e,r)}_final(e){var t;e(null),this.call.sendStatus(Object.assign(Object.assign({},this.pendingStatus),{metadata:null!==(t=this.pendingStatus.metadata)&&void 0!==t?t:this.trailingMetadata}))}end(e){return e&&(this.trailingMetadata=e),super.end()}}return serverCall.ServerDuplexStreamImpl=l,serverCall}var serverCredentials={},hasRequiredServerCredentials;function requireServerCredentials(){if(hasRequiredServerCredentials)return serverCredentials;hasRequiredServerCredentials=1,Object.defineProperty(serverCredentials,"__esModule",{value:!0}),serverCredentials.ServerCredentials=void 0,serverCredentials.createCertificateProviderServerCredentials=function(e,t,r){return new o(e,t,r)},serverCredentials.createServerCredentialsWithInterceptors=function(e,t){return new i(e,t)};const e=requireTlsHelpers();class t{constructor(e,t){this.serverConstructorOptions=e,this.watchers=new Set,this.latestContextOptions=null,this.latestContextOptions=null!=t?t:null}_addWatcher(e){this.watchers.add(e)}_removeWatcher(e){this.watchers.delete(e)}getWatcherCount(){return this.watchers.size}updateSecureContextOptions(e){this.latestContextOptions=e;for(const e of this.watchers)e(this.latestContextOptions)}_isSecure(){return null!==this.serverConstructorOptions}_getSecureContextOptions(){return this.latestContextOptions}_getConstructorOptions(){return this.serverConstructorOptions}_getInterceptors(){return[]}static createInsecure(){return new r}static createSsl(t,r,o=!1){var i;if(null!==t&&!Buffer.isBuffer(t))throw new TypeError("rootCerts must be null or a Buffer");if(!Array.isArray(r))throw new TypeError("keyCertPairs must be an array");if("boolean"!=typeof o)throw new TypeError("checkClientCertificate must be a boolean");const a=[],s=[];for(let e=0;e<r.length;e++){const t=r[e];if(null===t||"object"!=typeof t)throw new TypeError(`keyCertPair[${e}] must be an object`);if(!Buffer.isBuffer(t.private_key))throw new TypeError(`keyCertPair[${e}].private_key must be a Buffer`);if(!Buffer.isBuffer(t.cert_chain))throw new TypeError(`keyCertPair[${e}].cert_chain must be a Buffer`);a.push(t.cert_chain),s.push(t.private_key)}return new n({requestCert:o,ciphers:e.CIPHER_SUITES},{ca:null!==(i=null!=t?t:(0,e.getDefaultRootsData)())&&void 0!==i?i:void 0,cert:a,key:s})}}serverCredentials.ServerCredentials=t;class r extends t{constructor(){super(null)}_getSettings(){return null}_equals(e){return e instanceof r}}class n extends t{constructor(e,t){super(e,t),this.options=Object.assign(Object.assign({},e),t)}_equals(e){if(this===e)return!0;if(!(e instanceof n))return!1;if(Buffer.isBuffer(this.options.ca)&&Buffer.isBuffer(e.options.ca)){if(!this.options.ca.equals(e.options.ca))return!1}else if(this.options.ca!==e.options.ca)return!1;if(Array.isArray(this.options.cert)&&Array.isArray(e.options.cert)){if(this.options.cert.length!==e.options.cert.length)return!1;for(let t=0;t<this.options.cert.length;t++){const r=this.options.cert[t],n=e.options.cert[t];if(Buffer.isBuffer(r)&&Buffer.isBuffer(n)){if(!r.equals(n))return!1}else if(r!==n)return!1}}else if(this.options.cert!==e.options.cert)return!1;if(Array.isArray(this.options.key)&&Array.isArray(e.options.key)){if(this.options.key.length!==e.options.key.length)return!1;for(let t=0;t<this.options.key.length;t++){const r=this.options.key[t],n=e.options.key[t];if(Buffer.isBuffer(r)&&Buffer.isBuffer(n)){if(!r.equals(n))return!1}else if(r!==n)return!1}}else if(this.options.key!==e.options.key)return!1;return this.options.requestCert===e.options.requestCert}}class o extends t{constructor(t,r,n){super({requestCert:null!==r,rejectUnauthorized:n,ciphers:e.CIPHER_SUITES}),this.identityCertificateProvider=t,this.caCertificateProvider=r,this.requireClientCertificate=n,this.latestCaUpdate=null,this.latestIdentityUpdate=null,this.caCertificateUpdateListener=this.handleCaCertificateUpdate.bind(this),this.identityCertificateUpdateListener=this.handleIdentityCertitificateUpdate.bind(this)}_addWatcher(e){var t;0===this.getWatcherCount()&&(null===(t=this.caCertificateProvider)||void 0===t||t.addCaCertificateListener(this.caCertificateUpdateListener),this.identityCertificateProvider.addIdentityCertificateListener(this.identityCertificateUpdateListener)),super._addWatcher(e)}_removeWatcher(e){var t;super._removeWatcher(e),0===this.getWatcherCount()&&(null===(t=this.caCertificateProvider)||void 0===t||t.removeCaCertificateListener(this.caCertificateUpdateListener),this.identityCertificateProvider.removeIdentityCertificateListener(this.identityCertificateUpdateListener))}_equals(e){return this===e||e instanceof o&&(this.caCertificateProvider===e.caCertificateProvider&&this.identityCertificateProvider===e.identityCertificateProvider&&this.requireClientCertificate===e.requireClientCertificate)}calculateSecureContextOptions(){var e;return null===this.latestIdentityUpdate||null!==this.caCertificateProvider&&null===this.latestCaUpdate?null:{ca:null===(e=this.latestCaUpdate)||void 0===e?void 0:e.caCertificate,cert:[this.latestIdentityUpdate.certificate],key:[this.latestIdentityUpdate.privateKey]}}finalizeUpdate(){const e=this.calculateSecureContextOptions();this.updateSecureContextOptions(e)}handleCaCertificateUpdate(e){this.latestCaUpdate=e,this.finalizeUpdate()}handleIdentityCertitificateUpdate(e){this.latestIdentityUpdate=e,this.finalizeUpdate()}}class i extends t{constructor(e,t){super({}),this.childCredentials=e,this.interceptors=t}_isSecure(){return this.childCredentials._isSecure()}_equals(e){if(!(e instanceof i))return!1;if(!this.childCredentials._equals(e.childCredentials))return!1;if(this.interceptors.length!==e.interceptors.length)return!1;for(let t=0;t<this.interceptors.length;t++)if(this.interceptors[t]!==e.interceptors[t])return!1;return!0}_getInterceptors(){return this.interceptors}_addWatcher(e){this.childCredentials._addWatcher(e)}_removeWatcher(e){this.childCredentials._removeWatcher(e)}_getConstructorOptions(){return this.childCredentials._getConstructorOptions()}_getSecureContextOptions(){return this.childCredentials._getSecureContextOptions()}}return serverCredentials}var serverInterceptors={},orca={},duration$1={},hasRequiredDuration$1,hasRequiredOrca,hasRequiredServerInterceptors,hasRequiredServer;function requireDuration$1(){if(hasRequiredDuration$1)return duration$1;hasRequiredDuration$1=1,Object.defineProperty(duration$1,"__esModule",{value:!0}),duration$1.durationMessageToDuration=function(e){return{seconds:Number.parseInt(e.seconds),nanos:e.nanos}},duration$1.msToDuration=function(e){return{seconds:e/1e3|0,nanos:e%1e3*1e6|0}},duration$1.durationToMs=function(e){return 1e3*e.seconds+e.nanos/1e6|0},duration$1.isDuration=function(e){return"number"==typeof e.seconds&&"number"==typeof e.nanos},duration$1.isDurationMessage=function(e){return"string"==typeof e.seconds&&"number"==typeof e.nanos},duration$1.parseDuration=function(t){const r=t.match(e);if(!r)return null;return{seconds:Number.parseInt(r[1],10),nanos:r[2]?Number.parseInt(r[2].padEnd(9,"0"),10):0}},duration$1.durationToString=function(e){if(0===e.nanos)return`${e.seconds}s`;let t;t=e.nanos%1e6==0?1e6:e.nanos%1e3==0?1e3:1;return`${e.seconds}.${e.nanos/t}s`};const e=/^(\d+)(?:\.(\d+))?s$/;return duration$1}function requireOrca(){return hasRequiredOrca||(hasRequiredOrca=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.OrcaOobMetricsSubchannelWrapper=e.GRPC_METRICS_HEADER=e.ServerMetricRecorder=e.PerRequestMetricRecorder=void 0,e.createOrcaClient=p,e.createMetricsReader=function(t,r){return(n,o,i)=>{let a=i.getOpaque(d);if(a)t(a);else{const r=i.get(e.GRPC_METRICS_HEADER);if(r.length>0){a=l().xds.data.orca.v3.OrcaLoadReport.deserialize(r[0]),t(a),i.setOpaque(d,a)}}r&&r(n,o,i)}};const t=requireMakeClient(),r=requireDuration$1(),n=requireChannelCredentials(),o=requireSubchannelInterface(),i=requireConstants(),a=requireBackoffTimeout(),s=requireConnectivityState();function l(){const e=(0,requireSrc$6().loadSync)("xds/service/orca/v3/orca.proto",{keepCase:!0,longs:String,enums:String,defaults:!0,oneofs:!0,includeDirs:[`${__dirname}/../../proto/xds`,`${__dirname}/../../proto/protoc-gen-validate`]});return(0,t.loadPackageDefinition)(e)}e.PerRequestMetricRecorder=class{constructor(){this.message={}}recordRequestCostMetric(e,t){this.message.request_cost||(this.message.request_cost={}),this.message.request_cost[e]=t}recordUtilizationMetric(e,t){this.message.utilization||(this.message.utilization={}),this.message.utilization[e]=t}recordNamedMetric(e,t){this.message.named_metrics||(this.message.named_metrics={}),this.message.named_metrics[e]=t}recordCPUUtilizationMetric(e){this.message.cpu_utilization=e}recordMemoryUtilizationMetric(e){this.message.mem_utilization=e}recordApplicationUtilizationMetric(e){this.message.application_utilization=e}recordQpsMetric(e){this.message.rps_fractional=e}recordEpsMetric(e){this.message.eps=e}serialize(){return l().xds.data.orca.v3.OrcaLoadReport.serialize(this.message)}};function p(e){return new(0,l().xds.service.orca.v3.OpenRcaService)("unused",n.ChannelCredentials.createInsecure(),{channelOverride:e})}e.ServerMetricRecorder=class{constructor(){this.message={},this.serviceImplementation={StreamCoreMetrics:e=>{const t=e.request.report_interval?(0,r.durationToMs)((0,r.durationMessageToDuration)(e.request.report_interval)):3e4,n=setInterval(()=>{e.write(this.message)},t);e.on("cancelled",()=>{clearInterval(n)})}}}putUtilizationMetric(e,t){this.message.utilization||(this.message.utilization={}),this.message.utilization[e]=t}setAllUtilizationMetrics(e){this.message.utilization=Object.assign({},e)}deleteUtilizationMetric(e){var t;null===(t=this.message.utilization)||void 0===t||delete t[e]}setCpuUtilizationMetric(e){this.message.cpu_utilization=e}deleteCpuUtilizationMetric(){delete this.message.cpu_utilization}setApplicationUtilizationMetric(e){this.message.application_utilization=e}deleteApplicationUtilizationMetric(){delete this.message.application_utilization}setQpsMetric(e){this.message.rps_fractional=e}deleteQpsMetric(){delete this.message.rps_fractional}setEpsMetric(e){this.message.eps=e}deleteEpsMetric(){delete this.message.eps}addToServer(e){const t=l().xds.service.orca.v3.OpenRcaService.service;e.addService(t,this.serviceImplementation)}},e.GRPC_METRICS_HEADER="endpoint-load-metrics-bin";const d="grpc_orca_load_report";const u="orca_oob_metrics";class c{constructor(e,t){this.metricsListener=e,this.intervalMs=t,this.dataProducer=null}setSubchannel(e){const t=e.getOrCreateDataProducer(u,m);this.dataProducer=t,t.addDataWatcher(this)}destroy(){var e;null===(e=this.dataProducer)||void 0===e||e.removeDataWatcher(this)}getInterval(){return this.intervalMs}onMetricsUpdate(e){this.metricsListener(e)}}class f{constructor(e){this.subchannel=e,this.dataWatchers=new Set,this.orcaSupported=!0,this.metricsCall=null,this.currentInterval=1/0,this.backoffTimer=new a.BackoffTimeout(()=>this.updateMetricsSubscription()),this.subchannelStateListener=()=>this.updateMetricsSubscription();const t=e.getChannel();this.client=p(t),e.addConnectivityStateListener(this.subchannelStateListener)}addDataWatcher(e){this.dataWatchers.add(e),this.updateMetricsSubscription()}removeDataWatcher(e){var t;this.dataWatchers.delete(e),0===this.dataWatchers.size?(this.subchannel.removeDataProducer(u),null===(t=this.metricsCall)||void 0===t||t.cancel(),this.metricsCall=null,this.client.close(),this.subchannel.removeConnectivityStateListener(this.subchannelStateListener)):this.updateMetricsSubscription()}updateMetricsSubscription(){var e;if(0===this.dataWatchers.size||!this.orcaSupported||this.subchannel.getConnectivityState()!==s.ConnectivityState.READY)return;const t=Math.min(...Array.from(this.dataWatchers).map(e=>e.getInterval()));if(!this.metricsCall||t!==this.currentInterval){null===(e=this.metricsCall)||void 0===e||e.cancel(),this.currentInterval=t;const n=this.client.streamCoreMetrics({report_interval:(0,r.msToDuration)(t)});this.metricsCall=n,n.on("data",e=>{this.dataWatchers.forEach(t=>{t.onMetricsUpdate(e)})}),n.on("error",e=>{this.metricsCall=null,e.code!==i.Status.UNIMPLEMENTED?e.code!==i.Status.CANCELLED&&this.backoffTimer.runOnce():this.orcaSupported=!1})}}}class h extends o.BaseSubchannelWrapper{constructor(e,t,r){super(e),this.addDataWatcher(new c(t,r))}getWrappedSubchannel(){return this.child}}function m(e){return new f(e)}e.OrcaOobMetricsSubchannelWrapper=h}(orca)),orca}function requireServerInterceptors(){if(hasRequiredServerInterceptors)return serverInterceptors;hasRequiredServerInterceptors=1,Object.defineProperty(serverInterceptors,"__esModule",{value:!0}),serverInterceptors.BaseServerInterceptingCall=serverInterceptors.ServerInterceptingCall=serverInterceptors.ResponderBuilder=serverInterceptors.ServerListenerBuilder=void 0,serverInterceptors.isInterceptingServerListener=function(e){return void 0!==e.onReceiveMetadata&&1===e.onReceiveMetadata.length},serverInterceptors.getServerInterceptingCall=function(e,t,r,n,o,i){const a={path:o.path,requestStream:"clientStream"===o.type||"bidi"===o.type,responseStream:"serverStream"===o.type||"bidi"===o.type,requestDeserialize:o.deserialize,responseSerialize:o.serialize},s=new P(t,r,n,o,i);return e.reduce((e,t)=>t(a,e),s)};const e=requireMetadata(),t=requireConstants(),r=require$$0__default$4.default,n=requireError(),o=zlib__default.default,i=requireStreamDecoder(),a=requireLogging(),s=require$$1__default$1.default,l=requireOrca(),p="server_call";function d(e){a.trace(t.LogVerbosity.DEBUG,p,e)}serverInterceptors.ServerListenerBuilder=class{constructor(){this.metadata=void 0,this.message=void 0,this.halfClose=void 0,this.cancel=void 0}withOnReceiveMetadata(e){return this.metadata=e,this}withOnReceiveMessage(e){return this.message=e,this}withOnReceiveHalfClose(e){return this.halfClose=e,this}withOnCancel(e){return this.cancel=e,this}build(){return{onReceiveMetadata:this.metadata,onReceiveMessage:this.message,onReceiveHalfClose:this.halfClose,onCancel:this.cancel}}};class u{constructor(e,t){this.listener=e,this.nextListener=t,this.cancelled=!1,this.processingMetadata=!1,this.hasPendingMessage=!1,this.pendingMessage=null,this.processingMessage=!1,this.hasPendingHalfClose=!1}processPendingMessage(){this.hasPendingMessage&&(this.nextListener.onReceiveMessage(this.pendingMessage),this.pendingMessage=null,this.hasPendingMessage=!1)}processPendingHalfClose(){this.hasPendingHalfClose&&(this.nextListener.onReceiveHalfClose(),this.hasPendingHalfClose=!1)}onReceiveMetadata(e){this.cancelled||(this.processingMetadata=!0,this.listener.onReceiveMetadata(e,e=>{this.processingMetadata=!1,this.cancelled||(this.nextListener.onReceiveMetadata(e),this.processPendingMessage(),this.processPendingHalfClose())}))}onReceiveMessage(e){this.cancelled||(this.processingMessage=!0,this.listener.onReceiveMessage(e,e=>{this.processingMessage=!1,this.cancelled||(this.processingMetadata?(this.pendingMessage=e,this.hasPendingMessage=!0):(this.nextListener.onReceiveMessage(e),this.processPendingHalfClose()))}))}onReceiveHalfClose(){this.cancelled||this.listener.onReceiveHalfClose(()=>{this.cancelled||(this.processingMetadata||this.processingMessage?this.hasPendingHalfClose=!0:this.nextListener.onReceiveHalfClose())})}onCancel(){this.cancelled=!0,this.listener.onCancel(),this.nextListener.onCancel()}}serverInterceptors.ResponderBuilder=class{constructor(){this.start=void 0,this.metadata=void 0,this.message=void 0,this.status=void 0}withStart(e){return this.start=e,this}withSendMetadata(e){return this.metadata=e,this}withSendMessage(e){return this.message=e,this}withSendStatus(e){return this.status=e,this}build(){return{start:this.start,sendMetadata:this.metadata,sendMessage:this.message,sendStatus:this.status}}};const c={onReceiveMetadata:(e,t)=>{t(e)},onReceiveMessage:(e,t)=>{t(e)},onReceiveHalfClose:e=>{e()},onCancel:()=>{}},f={start:e=>{e()},sendMetadata:(e,t)=>{t(e)},sendMessage:(e,t)=>{t(e)},sendStatus:(e,t)=>{t(e)}};serverInterceptors.ServerInterceptingCall=class{constructor(e,t){var r,n,o,i;this.nextCall=e,this.processingMetadata=!1,this.sentMetadata=!1,this.processingMessage=!1,this.pendingMessage=null,this.pendingMessageCallback=null,this.pendingStatus=null,this.responder={start:null!==(r=null==t?void 0:t.start)&&void 0!==r?r:f.start,sendMetadata:null!==(n=null==t?void 0:t.sendMetadata)&&void 0!==n?n:f.sendMetadata,sendMessage:null!==(o=null==t?void 0:t.sendMessage)&&void 0!==o?o:f.sendMessage,sendStatus:null!==(i=null==t?void 0:t.sendStatus)&&void 0!==i?i:f.sendStatus}}processPendingMessage(){this.pendingMessageCallback&&(this.nextCall.sendMessage(this.pendingMessage,this.pendingMessageCallback),this.pendingMessage=null,this.pendingMessageCallback=null)}processPendingStatus(){this.pendingStatus&&(this.nextCall.sendStatus(this.pendingStatus),this.pendingStatus=null)}start(e){this.responder.start(t=>{var r,n,o,i;const a={onReceiveMetadata:null!==(r=null==t?void 0:t.onReceiveMetadata)&&void 0!==r?r:c.onReceiveMetadata,onReceiveMessage:null!==(n=null==t?void 0:t.onReceiveMessage)&&void 0!==n?n:c.onReceiveMessage,onReceiveHalfClose:null!==(o=null==t?void 0:t.onReceiveHalfClose)&&void 0!==o?o:c.onReceiveHalfClose,onCancel:null!==(i=null==t?void 0:t.onCancel)&&void 0!==i?i:c.onCancel},s=new u(a,e);this.nextCall.start(s)})}sendMetadata(e){this.processingMetadata=!0,this.sentMetadata=!0,this.responder.sendMetadata(e,e=>{this.processingMetadata=!1,this.nextCall.sendMetadata(e),this.processPendingMessage(),this.processPendingStatus()})}sendMessage(t,r){this.processingMessage=!0,this.sentMetadata||this.sendMetadata(new e.Metadata),this.responder.sendMessage(t,e=>{this.processingMessage=!1,this.processingMetadata?(this.pendingMessage=e,this.pendingMessageCallback=r):this.nextCall.sendMessage(e,r)})}sendStatus(e){this.responder.sendStatus(e,e=>{this.processingMetadata||this.processingMessage?this.pendingStatus=e:this.nextCall.sendStatus(e)})}startRead(){this.nextCall.startRead()}getPeer(){return this.nextCall.getPeer()}getDeadline(){return this.nextCall.getDeadline()}getHost(){return this.nextCall.getHost()}getAuthContext(){return this.nextCall.getAuthContext()}getConnectionInfo(){return this.nextCall.getConnectionInfo()}getMetricsRecorder(){return this.nextCall.getMetricsRecorder()}};const h="grpc-accept-encoding",m="grpc-encoding",g="grpc-message",y="grpc-status",v="grpc-timeout",b=/(\d{1,8})\s*([HMSmun])/,O={H:36e5,M:6e4,S:1e3,m:1,u:.001,n:1e-6},w={[h]:"identity,deflate,gzip",[m]:"identity"},S={[r.constants.HTTP2_HEADER_STATUS]:r.constants.HTTP_STATUS_OK,[r.constants.HTTP2_HEADER_CONTENT_TYPE]:"application/grpc+proto"},_={waitForTrailers:!0};class P{constructor(n,o,s,u,c){var f,g;this.stream=n,this.callEventTracker=s,this.handler=u,this.listener=null,this.deadlineTimer=null,this.deadline=1/0,this.maxSendMessageSize=t.DEFAULT_MAX_SEND_MESSAGE_LENGTH,this.maxReceiveMessageSize=t.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH,this.cancelled=!1,this.metadataSent=!1,this.wantTrailers=!1,this.cancelNotified=!1,this.incomingEncoding="identity",this.readQueue=[],this.isReadPending=!1,this.receivedHalfClose=!1,this.streamEnded=!1,this.metricsRecorder=new l.PerRequestMetricRecorder,this.stream.once("error",e=>{}),this.stream.once("close",()=>{var e;d("Request to method "+(null===(e=this.handler)||void 0===e?void 0:e.path)+" stream closed with rstCode "+this.stream.rstCode),this.callEventTracker&&!this.streamEnded&&(this.streamEnded=!0,this.callEventTracker.onStreamEnd(!1),this.callEventTracker.onCallEnd({code:t.Status.CANCELLED,details:"Stream closed before sending status",metadata:null})),this.notifyOnCancel()}),this.stream.on("data",e=>{this.handleDataFrame(e)}),this.stream.pause(),this.stream.on("end",()=>{this.handleEndEvent()}),"grpc.max_send_message_length"in c&&(this.maxSendMessageSize=c["grpc.max_send_message_length"]),"grpc.max_receive_message_length"in c&&(this.maxReceiveMessageSize=c["grpc.max_receive_message_length"]),this.host=null!==(f=o[":authority"])&&void 0!==f?f:o.host,this.decoder=new i.StreamDecoder(this.maxReceiveMessageSize);const y=e.Metadata.fromHttp2Headers(o);a.isTracerEnabled(p)&&d("Request to "+this.handler.path+" received headers "+JSON.stringify(y.toJSON()));const b=y.get(v);b.length>0&&this.handleTimeoutHeader(b[0]);const O=y.get(m);O.length>0&&(this.incomingEncoding=O[0]),y.remove(v),y.remove(m),y.remove(h),y.remove(r.constants.HTTP2_HEADER_ACCEPT_ENCODING),y.remove(r.constants.HTTP2_HEADER_TE),y.remove(r.constants.HTTP2_HEADER_CONTENT_TYPE),this.metadata=y;const w=null===(g=n.session)||void 0===g?void 0:g.socket;this.connectionInfo={localAddress:null==w?void 0:w.localAddress,localPort:null==w?void 0:w.localPort,remoteAddress:null==w?void 0:w.remoteAddress,remotePort:null==w?void 0:w.remotePort},this.shouldSendMetrics=!!c["grpc.server_call_metric_recording"]}handleTimeoutHeader(e){const r=e.toString().match(b);if(null===r){const r={code:t.Status.INTERNAL,details:`Invalid ${v} value "${e}"`,metadata:null};return void process.nextTick(()=>{this.sendStatus(r)})}const n=+r[1]*O[r[2]]|0,o=new Date;this.deadline=o.setMilliseconds(o.getMilliseconds()+n),this.deadlineTimer=setTimeout(()=>{const e={code:t.Status.DEADLINE_EXCEEDED,details:"Deadline exceeded",metadata:null};this.sendStatus(e)},n)}checkCancelled(){return this.cancelled||!this.stream.destroyed&&!this.stream.closed||(this.notifyOnCancel(),this.cancelled=!0),this.cancelled}notifyOnCancel(){this.cancelNotified||(this.cancelNotified=!0,this.cancelled=!0,process.nextTick(()=>{var e;null===(e=this.listener)||void 0===e||e.onCancel()}),this.deadlineTimer&&clearTimeout(this.deadlineTimer),this.stream.resume())}maybeSendMetadata(){this.metadataSent||this.sendMetadata(new e.Metadata)}serializeMessage(e){const t=this.handler.serialize(e),r=t.byteLength,n=Buffer.allocUnsafe(r+5);return n.writeUInt8(0,0),n.writeUInt32BE(r,1),t.copy(n,5),n}decompressMessage(e,r){const n=e.subarray(5);if("identity"===r)return n;if("deflate"===r||"gzip"===r){let e;return e="deflate"===r?o.createInflate():o.createGunzip(),new Promise((r,o)=>{let i=0;const a=[];e.on("data",r=>{a.push(r),i+=r.byteLength,-1!==this.maxReceiveMessageSize&&i>this.maxReceiveMessageSize&&(e.destroy(),o({code:t.Status.RESOURCE_EXHAUSTED,details:`Received message that decompresses to a size larger than ${this.maxReceiveMessageSize}`}))}),e.on("end",()=>{r(Buffer.concat(a))}),e.write(n),e.end()})}return Promise.reject({code:t.Status.UNIMPLEMENTED,details:`Received message compressed with unsupported encoding "${r}"`})}async decompressAndMaybePush(e){if("COMPRESSED"!==e.type)throw new Error(`Invalid queue entry type: ${e.type}`);const r=1===e.compressedMessage.readUInt8(0)?this.incomingEncoding:"identity";let n;try{n=await this.decompressMessage(e.compressedMessage,r)}catch(e){return void this.sendStatus(e)}try{e.parsedMessage=this.handler.deserialize(n)}catch(e){return void this.sendStatus({code:t.Status.INTERNAL,details:`Error deserializing request: ${e.message}`})}e.type="READABLE",this.maybePushNextMessage()}maybePushNextMessage(){if(this.listener&&this.isReadPending&&this.readQueue.length>0&&"COMPRESSED"!==this.readQueue[0].type){this.isReadPending=!1;const e=this.readQueue.shift();"READABLE"===e.type?this.listener.onReceiveMessage(e.parsedMessage):this.listener.onReceiveHalfClose()}}handleDataFrame(e){var r;if(this.checkCancelled())return;let n;d("Request to "+this.handler.path+" received data frame of size "+e.length);try{n=this.decoder.write(e)}catch(e){return void this.sendStatus({code:t.Status.RESOURCE_EXHAUSTED,details:e.message})}for(const e of n){this.stream.pause();const t={type:"COMPRESSED",compressedMessage:e,parsedMessage:null};this.readQueue.push(t),this.decompressAndMaybePush(t),null===(r=this.callEventTracker)||void 0===r||r.addMessageReceived()}}handleEndEvent(){this.readQueue.push({type:"HALF_CLOSE",compressedMessage:null,parsedMessage:null}),this.receivedHalfClose=!0,this.maybePushNextMessage()}start(e){d("Request to "+this.handler.path+" start called"),this.checkCancelled()||(this.listener=e,e.onReceiveMetadata(this.metadata))}sendMetadata(e){if(this.checkCancelled())return;if(this.metadataSent)return;this.metadataSent=!0;const t=e?e.toHttp2Headers():null,r=Object.assign(Object.assign(Object.assign({},S),w),t);this.stream.respond(r,_)}sendMessage(e,r){if(this.checkCancelled())return;let o;try{o=this.serializeMessage(e)}catch(e){return void this.sendStatus({code:t.Status.INTERNAL,details:`Error serializing response: ${(0,n.getErrorMessage)(e)}`,metadata:null})}-1!==this.maxSendMessageSize&&o.length-5>this.maxSendMessageSize?this.sendStatus({code:t.Status.RESOURCE_EXHAUSTED,details:`Sent message larger than max (${o.length} vs. ${this.maxSendMessageSize})`,metadata:null}):(this.maybeSendMetadata(),d("Request to "+this.handler.path+" sent data frame of size "+o.length),this.stream.write(o,e=>{var o;e?this.sendStatus({code:t.Status.INTERNAL,details:`Error writing message: ${(0,n.getErrorMessage)(e)}`,metadata:null}):(null===(o=this.callEventTracker)||void 0===o||o.addMessageSent(),r())}))}sendStatus(r){var n,o,i;if(this.checkCancelled())return;d("Request to method "+(null===(n=this.handler)||void 0===n?void 0:n.path)+" ended with status code: "+t.Status[r.code]+" details: "+r.details);const a=null!==(i=null===(o=r.metadata)||void 0===o?void 0:o.clone())&&void 0!==i?i:new e.Metadata;if(this.shouldSendMetrics&&a.set(l.GRPC_METRICS_HEADER,this.metricsRecorder.serialize()),this.metadataSent)this.wantTrailers?this.notifyOnCancel():(this.wantTrailers=!0,this.stream.once("wantTrailers",()=>{this.callEventTracker&&!this.streamEnded&&(this.streamEnded=!0,this.callEventTracker.onStreamEnd(!0),this.callEventTracker.onCallEnd(r));const e=Object.assign({[y]:r.code,[g]:encodeURI(r.details)},a.toHttp2Headers());this.stream.sendTrailers(e),this.notifyOnCancel()}),this.stream.end());else{this.callEventTracker&&!this.streamEnded&&(this.streamEnded=!0,this.callEventTracker.onStreamEnd(!0),this.callEventTracker.onCallEnd(r));const e=Object.assign(Object.assign({[y]:r.code,[g]:encodeURI(r.details)},S),a.toHttp2Headers());this.stream.respond(e,{endStream:!0}),this.notifyOnCancel()}}startRead(){d("Request to "+this.handler.path+" startRead called"),this.checkCancelled()||(this.isReadPending=!0,0===this.readQueue.length?this.receivedHalfClose||this.stream.resume():this.maybePushNextMessage())}getPeer(){var e;const t=null===(e=this.stream.session)||void 0===e?void 0:e.socket;return(null==t?void 0:t.remoteAddress)?t.remotePort?`${t.remoteAddress}:${t.remotePort}`:t.remoteAddress:"unknown"}getDeadline(){return this.deadline}getHost(){return this.host}getAuthContext(){var e;if((null===(e=this.stream.session)||void 0===e?void 0:e.socket)instanceof s.TLSSocket){const e=this.stream.session.socket.getPeerCertificate();return{transportSecurityType:"ssl",sslPeerCertificate:e.raw?e:void 0}}return{}}getConnectionInfo(){return this.connectionInfo}getMetricsRecorder(){return this.metricsRecorder}}return serverInterceptors.BaseServerInterceptingCall=P,serverInterceptors}function requireServer(){if(hasRequiredServer)return server;hasRequiredServer=1;var e=server&&server.__runInitializers||function(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0},t=server&&server.__esDecorate||function(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=n.kind,p="getter"===l?"get":"setter"===l?"set":"value",d=!t&&e?n.static?e:e.prototype:null,u=t||(d?Object.getOwnPropertyDescriptor(d,n.name):{}),c=!1,f=r.length-1;f>=0;f--){var h={};for(var m in n)h[m]="access"===m?{}:n[m];for(var m in n.access)h.access[m]=n.access[m];h.addInitializer=function(e){if(c)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var g=(0,r[f])("accessor"===l?{get:u.get,set:u.set}:u[p],h);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(s=a(g.get))&&(u.get=s),(s=a(g.set))&&(u.set=s),(s=a(g.init))&&o.unshift(s)}else(s=a(g))&&("field"===l?o.unshift(s):u[p]=s)}d&&Object.defineProperty(d,n.name,u),c=!0};Object.defineProperty(server,"__esModule",{value:!0}),server.Server=void 0;const r=require$$0__default$4.default,n=require$$1__default$4.default,o=requireConstants(),i=requireServerCall(),a=requireServerCredentials(),s=requireResolver(),l=requireLogging(),p=requireSubchannelAddress(),d=requireUriParser(),u=requireChannelz(),c=requireServerInterceptors(),f=2147483647,h=2147483647,m=2147483647,{HTTP2_HEADER_PATH:g}=r.constants,y=Buffer.from("max_age");function v(e){l.trace(o.LogVerbosity.DEBUG,"server_call",e)}function b(){}function O(e){return function(t,r){return n.deprecate(t,e)}}function w(e){return{code:o.Status.UNIMPLEMENTED,details:`The server does not implement the method ${e}`}}let S=(()=>{var n;let S,_=[];return n=class{constructor(t){var r,n,o,i,a,s;this.boundPorts=(e(this,_),new Map),this.http2Servers=new Map,this.sessionIdleTimeouts=new Map,this.handlers=new Map,this.sessions=new Map,this.started=!1,this.shutdown=!1,this.serverAddressString="null",this.channelzEnabled=!0,this.options=null!=t?t:{},0===this.options["grpc.enable_channelz"]?(this.channelzEnabled=!1,this.channelzTrace=new u.ChannelzTraceStub,this.callTracker=new u.ChannelzCallTrackerStub,this.listenerChildrenTracker=new u.ChannelzChildrenTrackerStub,this.sessionChildrenTracker=new u.ChannelzChildrenTrackerStub):(this.channelzTrace=new u.ChannelzTrace,this.callTracker=new u.ChannelzCallTracker,this.listenerChildrenTracker=new u.ChannelzChildrenTracker,this.sessionChildrenTracker=new u.ChannelzChildrenTracker),this.channelzRef=(0,u.registerChannelzServer)("server",()=>this.getChannelzInfo(),this.channelzEnabled),this.channelzTrace.addTrace("CT_INFO","Server created"),this.maxConnectionAgeMs=null!==(r=this.options["grpc.max_connection_age_ms"])&&void 0!==r?r:f,this.maxConnectionAgeGraceMs=null!==(n=this.options["grpc.max_connection_age_grace_ms"])&&void 0!==n?n:f,this.keepaliveTimeMs=null!==(o=this.options["grpc.keepalive_time_ms"])&&void 0!==o?o:h,this.keepaliveTimeoutMs=null!==(i=this.options["grpc.keepalive_timeout_ms"])&&void 0!==i?i:2e4,this.sessionIdleTimeout=null!==(a=this.options["grpc.max_connection_idle_ms"])&&void 0!==a?a:m,this.commonServerOptions={maxSendHeaderBlockLength:Number.MAX_SAFE_INTEGER},"grpc-node.max_session_memory"in this.options?this.commonServerOptions.maxSessionMemory=this.options["grpc-node.max_session_memory"]:this.commonServerOptions.maxSessionMemory=Number.MAX_SAFE_INTEGER,"grpc.max_concurrent_streams"in this.options&&(this.commonServerOptions.settings={maxConcurrentStreams:this.options["grpc.max_concurrent_streams"]}),this.interceptors=null!==(s=this.options.interceptors)&&void 0!==s?s:[],this.trace("Server constructed")}getChannelzInfo(){return{trace:this.channelzTrace,callTracker:this.callTracker,listenerChildren:this.listenerChildrenTracker.getChildLists(),sessionChildren:this.sessionChildrenTracker.getChildLists()}}getChannelzSessionInfo(e){var t,r,n;const o=this.sessions.get(e),i=e.socket,a=i.remoteAddress?(0,p.stringToSubchannelAddress)(i.remoteAddress,i.remotePort):null,s=i.localAddress?(0,p.stringToSubchannelAddress)(i.localAddress,i.localPort):null;let l;if(e.encrypted){const e=i,r=e.getCipher(),n=e.getCertificate(),o=e.getPeerCertificate();l={cipherSuiteStandardName:null!==(t=r.standardName)&&void 0!==t?t:null,cipherSuiteOtherName:r.standardName?null:r.name,localCertificate:n&&"raw"in n?n.raw:null,remoteCertificate:o&&"raw"in o?o.raw:null}}else l=null;return{remoteAddress:a,localAddress:s,security:l,remoteName:null,streamsStarted:o.streamTracker.callsStarted,streamsSucceeded:o.streamTracker.callsSucceeded,streamsFailed:o.streamTracker.callsFailed,messagesSent:o.messagesSent,messagesReceived:o.messagesReceived,keepAlivesSent:o.keepAlivesSent,lastLocalStreamCreatedTimestamp:null,lastRemoteStreamCreatedTimestamp:o.streamTracker.lastCallStartedTimestamp,lastMessageSentTimestamp:o.lastMessageSentTimestamp,lastMessageReceivedTimestamp:o.lastMessageReceivedTimestamp,localFlowControlWindow:null!==(r=e.state.localWindowSize)&&void 0!==r?r:null,remoteFlowControlWindow:null!==(n=e.state.remoteWindowSize)&&void 0!==n?n:null}}trace(e){l.trace(o.LogVerbosity.DEBUG,"server","("+this.channelzRef.id+") "+e)}keepaliveTrace(e){l.trace(o.LogVerbosity.DEBUG,"keepalive","("+this.channelzRef.id+") "+e)}addProtoService(){throw new Error("Not implemented. Use addService() instead")}addService(e,t){if(null===e||"object"!=typeof e||null===t||"object"!=typeof t)throw new Error("addService() requires two objects as arguments");const r=Object.keys(e);if(0===r.length)throw new Error("Cannot add an empty service to a server");r.forEach(r=>{const n=e[r];let o;o=n.requestStream?n.responseStream?"bidi":"clientStream":n.responseStream?"serverStream":"unary";let i,a=t[r];void 0===a&&"string"==typeof n.originalName&&(a=t[n.originalName]),i=void 0!==a?a.bind(t):function(e,t){const r=w(t);switch(e){case"unary":case"clientStream":return(e,t)=>{t(r,null)};case"serverStream":case"bidi":return e=>{e.emit("error",r)};default:throw new Error(`Invalid handlerType ${e}`)}}(o,r);if(!1===this.register(n.path,i,n.responseSerialize,n.requestDeserialize,o))throw new Error(`Method handler for ${n.path} already provided.`)})}removeService(e){if(null===e||"object"!=typeof e)throw new Error("removeService() requires object as argument");Object.keys(e).forEach(t=>{const r=e[t];this.unregister(r.path)})}bind(e,t){throw new Error("Not implemented. Use bindAsync() instead")}experimentalRegisterListenerToChannelz(e){return(0,u.registerChannelzSocket)((0,p.subchannelAddressToString)(e),()=>({localAddress:e,remoteAddress:null,security:null,remoteName:null,streamsStarted:0,streamsSucceeded:0,streamsFailed:0,messagesSent:0,messagesReceived:0,keepAlivesSent:0,lastLocalStreamCreatedTimestamp:null,lastRemoteStreamCreatedTimestamp:null,lastMessageSentTimestamp:null,lastMessageReceivedTimestamp:null,localFlowControlWindow:null,remoteFlowControlWindow:null}),this.channelzEnabled)}experimentalUnregisterListenerFromChannelz(e){(0,u.unregisterChannelzRef)(e)}createHttp2Server(e){let t;if(e._isSecure()){const n=e._getConstructorOptions(),i=e._getSecureContextOptions(),a=Object.assign(Object.assign(Object.assign(Object.assign({},this.commonServerOptions),n),i),{enableTrace:1===this.options["grpc-node.tls_enable_trace"]});let s=null!==i;this.trace("Initial credentials valid: "+s),t=r.createSecureServer(a),t.prependListener("connection",e=>{s||(this.trace("Dropped connection from "+JSON.stringify(e.address())+" due to unloaded credentials"),e.destroy())}),t.on("secureConnection",e=>{e.on("error",e=>{this.trace("An incoming TLS connection closed with error: "+e.message)})});const p=e=>{if(e){const r=t;try{r.setSecureContext(e)}catch(t){l.log(o.LogVerbosity.ERROR,"Failed to set secure context with error "+t.message),e=null}}s=null!==e,this.trace("Post-update credentials valid: "+s)};e._addWatcher(p),t.on("close",()=>{e._removeWatcher(p)})}else t=r.createServer(this.commonServerOptions);return t.setTimeout(0,b),this._setupHandlers(t,e._getInterceptors()),t}bindOneAddress(e,t){this.trace("Attempting to bind "+(0,p.subchannelAddressToString)(e));const r=this.createHttp2Server(t.credentials);return new Promise((n,o)=>{const i=t=>{this.trace("Failed to bind "+(0,p.subchannelAddressToString)(e)+" with error "+t.message),n({port:"port"in e?e.port:1,error:t.message})};r.once("error",i),r.listen(e,()=>{const e=r.address();let o;o="string"==typeof e?{path:e}:{host:e.address,port:e.port};const a=this.experimentalRegisterListenerToChannelz(o);this.listenerChildrenTracker.refChild(a),this.http2Servers.set(r,{channelzRef:a,sessions:new Set,ownsChannelzRef:!0}),t.listeningServers.add(r),this.trace("Successfully bound "+(0,p.subchannelAddressToString)(o)),n({port:"port"in o?o.port:1}),r.removeListener("error",i)})})}async bindManyPorts(e,t){if(0===e.length)return{count:0,port:0,errors:[]};if((0,p.isTcpSubchannelAddress)(e[0])&&0===e[0].port){const r=await this.bindOneAddress(e[0],t);if(r.error){const n=await this.bindManyPorts(e.slice(1),t);return Object.assign(Object.assign({},n),{errors:[r.error,...n.errors]})}{const n=e.slice(1).map(e=>(0,p.isTcpSubchannelAddress)(e)?{host:e.host,port:r.port}:e),o=await Promise.all(n.map(e=>this.bindOneAddress(e,t))),i=[r,...o];return{count:i.filter(e=>void 0===e.error).length,port:r.port,errors:i.filter(e=>e.error).map(e=>e.error)}}}{const r=await Promise.all(e.map(e=>this.bindOneAddress(e,t)));return{count:r.filter(e=>void 0===e.error).length,port:r[0].port,errors:r.filter(e=>e.error).map(e=>e.error)}}}async bindAddressList(e,t){const r=await this.bindManyPorts(e,t);if(r.count>0)return r.count<e.length&&l.log(o.LogVerbosity.INFO,`WARNING Only ${r.count} addresses added out of total ${e.length} resolved`),r.port;{const t=`No address added out of total ${e.length} resolved`;throw l.log(o.LogVerbosity.ERROR,t),new Error(`${t} errors: [${r.errors.join(",")}]`)}}resolvePort(e){return new Promise((t,r)=>{let n=!1;(0,s.createResolver)(e,(o,i,a,s)=>{if(n)return!0;if(n=!0,!o.ok)return r(new Error(o.error.details)),!0;const l=[].concat(...o.value.map(e=>e.addresses));return 0===l.length?(r(new Error(`No addresses resolved for port ${e}`)),!0):(t(l),!0)},this.options).updateResolution()})}async bindPort(e,t){const r=await this.resolvePort(e);if(t.cancelled)throw this.completeUnbind(t),new Error("bindAsync operation cancelled by unbind call");const n=await this.bindAddressList(r,t);if(t.cancelled)throw this.completeUnbind(t),new Error("bindAsync operation cancelled by unbind call");return n}normalizePort(e){const t=(0,d.parseUri)(e);if(null===t)throw new Error(`Could not parse port "${e}"`);const r=(0,s.mapUriDefaultScheme)(t);if(null===r)throw new Error(`Could not get a default scheme for port "${e}"`);return r}bindAsync(e,t,r){if(this.shutdown)throw new Error("bindAsync called after shutdown");if("string"!=typeof e)throw new TypeError("port must be a string");if(null===t||!(t instanceof a.ServerCredentials))throw new TypeError("creds must be a ServerCredentials object");if("function"!=typeof r)throw new TypeError("callback must be a function");this.trace("bindAsync port="+e);const n=this.normalizePort(e),o=(e,t)=>{process.nextTick(()=>r(e,t))};let i=this.boundPorts.get((0,d.uriToString)(n));if(i)return t._equals(i.credentials)?(i.cancelled=!1,void(i.completionPromise?i.completionPromise.then(e=>r(null,e),e=>r(e,0)):o(null,i.portNumber))):void o(new Error(`${e} already bound with incompatible credentials`),0);i={mapKey:(0,d.uriToString)(n),originalUri:n,completionPromise:null,cancelled:!1,portNumber:0,credentials:t,listeningServers:new Set};const s=(0,d.splitHostPort)(n.path),l=this.bindPort(n,i);i.completionPromise=l,0===(null==s?void 0:s.port)?l.then(e=>{const t={scheme:n.scheme,authority:n.authority,path:(0,d.combineHostPort)({host:s.host,port:e})};i.mapKey=(0,d.uriToString)(t),i.completionPromise=null,i.portNumber=e,this.boundPorts.set(i.mapKey,i),r(null,e)},e=>{r(e,0)}):(this.boundPorts.set(i.mapKey,i),l.then(e=>{i.completionPromise=null,i.portNumber=e,r(null,e)},e=>{r(e,0)}))}registerInjectorToChannelz(){return(0,u.registerChannelzSocket)("injector",()=>({localAddress:null,remoteAddress:null,security:null,remoteName:null,streamsStarted:0,streamsSucceeded:0,streamsFailed:0,messagesSent:0,messagesReceived:0,keepAlivesSent:0,lastLocalStreamCreatedTimestamp:null,lastRemoteStreamCreatedTimestamp:null,lastMessageSentTimestamp:null,lastMessageReceivedTimestamp:null,localFlowControlWindow:null,remoteFlowControlWindow:null}),this.channelzEnabled)}experimentalCreateConnectionInjectorWithChannelzRef(e,t,n=!1){if(null===e||!(e instanceof a.ServerCredentials))throw new TypeError("creds must be a ServerCredentials object");this.channelzEnabled&&this.listenerChildrenTracker.refChild(t);const o=this.createHttp2Server(e),i=new Set;return this.http2Servers.set(o,{channelzRef:t,sessions:i,ownsChannelzRef:n}),{injectConnection:e=>{o.emit("connection",e)},drain:e=>{var t,n;for(const e of i)this.closeSession(e);null===(n=(t=setTimeout(()=>{for(const e of i)e.destroy(r.constants.NGHTTP2_CANCEL)},e)).unref)||void 0===n||n.call(t)},destroy:()=>{this.closeServer(o);for(const e of i)this.closeSession(e)}}}createConnectionInjector(e){if(null===e||!(e instanceof a.ServerCredentials))throw new TypeError("creds must be a ServerCredentials object");const t=this.registerInjectorToChannelz();return this.experimentalCreateConnectionInjectorWithChannelzRef(e,t,!0)}closeServer(e,t){this.trace("Closing server with address "+JSON.stringify(e.address()));const r=this.http2Servers.get(e);e.close(()=>{r&&r.ownsChannelzRef&&(this.listenerChildrenTracker.unrefChild(r.channelzRef),(0,u.unregisterChannelzRef)(r.channelzRef)),this.http2Servers.delete(e),null==t||t()})}closeSession(e,t){var r;this.trace("Closing session initiated by "+(null===(r=e.socket)||void 0===r?void 0:r.remoteAddress));const n=this.sessions.get(e),o=()=>{n&&(this.sessionChildrenTracker.unrefChild(n.ref),(0,u.unregisterChannelzRef)(n.ref)),null==t||t()};e.closed?queueMicrotask(o):e.close(o)}completeUnbind(e){for(const t of e.listeningServers){const r=this.http2Servers.get(t);if(this.closeServer(t,()=>{e.listeningServers.delete(t)}),r)for(const e of r.sessions)this.closeSession(e)}this.boundPorts.delete(e.mapKey)}unbind(e){this.trace("unbind port="+e);const t=this.normalizePort(e),r=(0,d.splitHostPort)(t.path);if(0===(null==r?void 0:r.port))throw new Error("Cannot unbind port 0");const n=this.boundPorts.get((0,d.uriToString)(t));n&&(this.trace("unbinding "+n.mapKey+" originally bound as "+(0,d.uriToString)(n.originalUri)),n.completionPromise?n.cancelled=!0:this.completeUnbind(n))}drain(e,t){var n,o;this.trace("drain port="+e+" graceTimeMs="+t);const i=this.normalizePort(e),a=(0,d.splitHostPort)(i.path);if(0===(null==a?void 0:a.port))throw new Error("Cannot drain port 0");const s=this.boundPorts.get((0,d.uriToString)(i));if(!s)return;const l=new Set;for(const e of s.listeningServers){const t=this.http2Servers.get(e);if(t)for(const e of t.sessions)l.add(e),this.closeSession(e,()=>{l.delete(e)})}null===(o=(n=setTimeout(()=>{for(const e of l)e.destroy(r.constants.NGHTTP2_CANCEL)},t)).unref)||void 0===o||o.call(n)}forceShutdown(){for(const e of this.boundPorts.values())e.cancelled=!0;this.boundPorts.clear();for(const e of this.http2Servers.keys())this.closeServer(e);this.sessions.forEach((e,t)=>{this.closeSession(t),t.destroy(r.constants.NGHTTP2_CANCEL)}),this.sessions.clear(),(0,u.unregisterChannelzRef)(this.channelzRef),this.shutdown=!0}register(e,t,r,n,o){return!this.handlers.has(e)&&(this.handlers.set(e,{func:t,serialize:r,deserialize:n,type:o,path:e}),!0)}unregister(e){return this.handlers.delete(e)}start(){if(0===this.http2Servers.size||[...this.http2Servers.keys()].every(e=>!e.listening))throw new Error("server must be bound in order to start");if(!0===this.started)throw new Error("server is already started");this.started=!0}tryShutdown(e){var t;const r=t=>{(0,u.unregisterChannelzRef)(this.channelzRef),e(t)};let n=0;function o(){n--,0===n&&r()}this.shutdown=!0;for(const[e,r]of this.http2Servers.entries()){n++;const i=r.channelzRef.name;this.trace("Waiting for server "+i+" to close"),this.closeServer(e,()=>{this.trace("Server "+i+" finished closing"),o()});for(const e of r.sessions.keys()){n++;const r=null===(t=e.socket)||void 0===t?void 0:t.remoteAddress;this.trace("Waiting for session "+r+" to close"),this.closeSession(e,()=>{this.trace("Session "+r+" finished closing"),o()})}}0===n&&r()}addHttp2Port(){throw new Error("Not yet implemented")}getChannelzRef(){return this.channelzRef}_verifyContentType(e,t){const n=t[r.constants.HTTP2_HEADER_CONTENT_TYPE];return!("string"!=typeof n||!n.startsWith("application/grpc"))||(e.respond({[r.constants.HTTP2_HEADER_STATUS]:r.constants.HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE},{endStream:!0}),!1)}_retrieveHandler(e){v("Received call to method "+e+" at address "+this.serverAddressString);const t=this.handlers.get(e);return void 0===t?(v("No handler registered for method "+e+". Sending UNIMPLEMENTED status."),null):t}_respondWithError(e,t,n=null){var i,a;const s=Object.assign({"grpc-status":null!==(i=e.code)&&void 0!==i?i:o.Status.INTERNAL,"grpc-message":e.details,[r.constants.HTTP2_HEADER_STATUS]:r.constants.HTTP_STATUS_OK,[r.constants.HTTP2_HEADER_CONTENT_TYPE]:"application/grpc+proto"},null===(a=e.metadata)||void 0===a?void 0:a.toHttp2Headers());t.respond(s,{endStream:!0}),this.callTracker.addCallFailed(),null==n||n.streamTracker.addCallFailed()}_channelzHandler(e,t,r){this.onStreamOpened(t);const n=this.sessions.get(t.session);if(this.callTracker.addCallStarted(),null==n||n.streamTracker.addCallStarted(),!this._verifyContentType(t,r))return this.callTracker.addCallFailed(),void(null==n||n.streamTracker.addCallFailed());const i=r[g],a=this._retrieveHandler(i);if(!a)return void this._respondWithError(w(i),t,n);const s={addMessageSent:()=>{n&&(n.messagesSent+=1,n.lastMessageSentTimestamp=new Date)},addMessageReceived:()=>{n&&(n.messagesReceived+=1,n.lastMessageReceivedTimestamp=new Date)},onCallEnd:e=>{e.code===o.Status.OK?this.callTracker.addCallSucceeded():this.callTracker.addCallFailed()},onStreamEnd:e=>{n&&(e?n.streamTracker.addCallSucceeded():n.streamTracker.addCallFailed())}},l=(0,c.getServerInterceptingCall)([...e,...this.interceptors],t,r,s,a,this.options);this._runHandlerForCall(l,a)||(this.callTracker.addCallFailed(),null==n||n.streamTracker.addCallFailed(),l.sendStatus({code:o.Status.INTERNAL,details:`Unknown handler type: ${a.type}`}))}_streamHandler(e,t,r){if(this.onStreamOpened(t),!0!==this._verifyContentType(t,r))return;const n=r[g],i=this._retrieveHandler(n);if(!i)return void this._respondWithError(w(n),t,null);const a=(0,c.getServerInterceptingCall)([...e,...this.interceptors],t,r,null,i,this.options);this._runHandlerForCall(a,i)||a.sendStatus({code:o.Status.INTERNAL,details:`Unknown handler type: ${i.type}`})}_runHandlerForCall(e,t){const{type:r}=t;if("unary"===r)!async function(e,t){let r,n;function a(t,r,n,a){t?e.sendStatus((0,i.serverErrorToStatus)(t,n)):e.sendMessage(r,()=>{e.sendStatus({code:o.Status.OK,details:"OK",metadata:null!=n?n:null})})}let s=null;e.start({onReceiveMetadata(t){n=t,e.startRead()},onReceiveMessage(r){s?e.sendStatus({code:o.Status.UNIMPLEMENTED,details:`Received a second request message for server streaming method ${t.path}`,metadata:null}):(s=r,e.startRead())},onReceiveHalfClose(){if(s){r=new i.ServerWritableStreamImpl(t.path,e,n,s);try{t.func(r,a)}catch(t){e.sendStatus({code:o.Status.UNKNOWN,details:`Server method handler threw error ${t.message}`,metadata:null})}}else e.sendStatus({code:o.Status.UNIMPLEMENTED,details:`Received no request message for server streaming method ${t.path}`,metadata:null})},onCancel(){r&&(r.cancelled=!0,r.emit("cancelled","cancelled"))}})}(e,t);else if("clientStream"===r)!function(e,t){let r;function n(t,r,n,a){t?e.sendStatus((0,i.serverErrorToStatus)(t,n)):e.sendMessage(r,()=>{e.sendStatus({code:o.Status.OK,details:"OK",metadata:null!=n?n:null})})}e.start({onReceiveMetadata(a){r=new i.ServerDuplexStreamImpl(t.path,e,a);try{t.func(r,n)}catch(t){e.sendStatus({code:o.Status.UNKNOWN,details:`Server method handler threw error ${t.message}`,metadata:null})}},onReceiveMessage(e){r.push(e)},onReceiveHalfClose(){r.push(null)},onCancel(){r&&(r.cancelled=!0,r.emit("cancelled","cancelled"),r.destroy())}})}(e,t);else if("serverStream"===r)!function(e,t){let r,n,a=null;e.start({onReceiveMetadata(t){n=t,e.startRead()},onReceiveMessage(r){a?e.sendStatus({code:o.Status.UNIMPLEMENTED,details:`Received a second request message for server streaming method ${t.path}`,metadata:null}):(a=r,e.startRead())},onReceiveHalfClose(){if(a){r=new i.ServerWritableStreamImpl(t.path,e,n,a);try{t.func(r)}catch(t){e.sendStatus({code:o.Status.UNKNOWN,details:`Server method handler threw error ${t.message}`,metadata:null})}}else e.sendStatus({code:o.Status.UNIMPLEMENTED,details:`Received no request message for server streaming method ${t.path}`,metadata:null})},onCancel(){r&&(r.cancelled=!0,r.emit("cancelled","cancelled"),r.destroy())}})}(e,t);else{if("bidi"!==r)return!1;!function(e,t){let r;e.start({onReceiveMetadata(n){r=new i.ServerDuplexStreamImpl(t.path,e,n);try{t.func(r)}catch(t){e.sendStatus({code:o.Status.UNKNOWN,details:`Server method handler threw error ${t.message}`,metadata:null})}},onReceiveMessage(e){r.push(e)},onReceiveHalfClose(){r.push(null)},onCancel(){r&&(r.cancelled=!0,r.emit("cancelled","cancelled"),r.destroy())}})}(e,t)}return!0}_setupHandlers(e,t){if(null===e)return;const r=e.address();let n="null";r&&(n="string"==typeof r?r:r.address+":"+r.port),this.serverAddressString=n;const o=this.channelzEnabled?this._channelzHandler:this._streamHandler,i=this.channelzEnabled?this._channelzSessionHandler(e):this._sessionHandler(e);e.on("stream",o.bind(this,t)),e.on("session",i)}_sessionHandler(e){return t=>{var n,o;null===(n=this.http2Servers.get(e))||void 0===n||n.sessions.add(t);let i=null,a=null,s=null,l=!1;const p=this.enableIdleTimeout(t);if(this.maxConnectionAgeMs!==f){const e=this.maxConnectionAgeMs/10,n=Math.random()*e*2-e;i=setTimeout(()=>{var e,n;l=!0,this.trace("Connection dropped by max connection age: "+(null===(e=t.socket)||void 0===e?void 0:e.remoteAddress));try{t.goaway(r.constants.NGHTTP2_NO_ERROR,~(1<<31),y)}catch(e){return void t.destroy()}t.close(),this.maxConnectionAgeGraceMs!==f&&(a=setTimeout(()=>{t.destroy()},this.maxConnectionAgeGraceMs),null===(n=a.unref)||void 0===n||n.call(a))},this.maxConnectionAgeMs+n),null===(o=i.unref)||void 0===o||o.call(i)}const d=()=>{s&&(clearTimeout(s),s=null)},u=()=>!t.destroyed&&this.keepaliveTimeMs<h&&this.keepaliveTimeMs>0;let c;const m=()=>{var e;u()&&(this.keepaliveTrace("Starting keepalive timer for "+this.keepaliveTimeMs+"ms"),s=setTimeout(()=>{d(),c()},this.keepaliveTimeMs),null===(e=s.unref)||void 0===e||e.call(s))};c=()=>{var e;if(!u())return;this.keepaliveTrace("Sending ping with timeout "+this.keepaliveTimeoutMs+"ms");let r="";try{t.ping((e,r,n)=>{d(),e?(this.keepaliveTrace("Ping failed with error: "+e.message),l=!0,t.close()):(this.keepaliveTrace("Received ping response"),m())})||(r="Ping returned false")}catch(e){r=(e instanceof Error?e.message:"")||"Unknown error"}if(r)return this.keepaliveTrace("Ping send failed: "+r),this.trace("Connection dropped due to ping send error: "+r),l=!0,void t.close();s=setTimeout(()=>{d(),this.keepaliveTrace("Ping timeout passed without response"),this.trace("Connection dropped by keepalive timeout"),l=!0,t.close()},this.keepaliveTimeoutMs),null===(e=s.unref)||void 0===e||e.call(s)},m(),t.on("close",()=>{var r,n;l||this.trace(`Connection dropped by client ${null===(r=t.socket)||void 0===r?void 0:r.remoteAddress}`),i&&clearTimeout(i),a&&clearTimeout(a),d(),null!==p&&(clearTimeout(p.timeout),this.sessionIdleTimeouts.delete(t)),null===(n=this.http2Servers.get(e))||void 0===n||n.sessions.delete(t)})}}_channelzSessionHandler(e){return t=>{var n,o,i,a;const s=(0,u.registerChannelzSocket)(null!==(o=null===(n=t.socket)||void 0===n?void 0:n.remoteAddress)&&void 0!==o?o:"unknown",this.getChannelzSessionInfo.bind(this,t),this.channelzEnabled),l={ref:s,streamTracker:new u.ChannelzCallTracker,messagesSent:0,messagesReceived:0,keepAlivesSent:0,lastMessageSentTimestamp:null,lastMessageReceivedTimestamp:null};null===(i=this.http2Servers.get(e))||void 0===i||i.sessions.add(t),this.sessions.set(t,l);const p=`${t.socket.remoteAddress}:${t.socket.remotePort}`;this.channelzTrace.addTrace("CT_INFO","Connection established by client "+p),this.trace("Connection established by client "+p),this.sessionChildrenTracker.refChild(s);let d=null,c=null,m=null,g=!1;const v=this.enableIdleTimeout(t);if(this.maxConnectionAgeMs!==f){const e=this.maxConnectionAgeMs/10,n=Math.random()*e*2-e;d=setTimeout(()=>{var e;g=!0,this.channelzTrace.addTrace("CT_INFO","Connection dropped by max connection age from "+p);try{t.goaway(r.constants.NGHTTP2_NO_ERROR,~(1<<31),y)}catch(e){return void t.destroy()}t.close(),this.maxConnectionAgeGraceMs!==f&&(c=setTimeout(()=>{t.destroy()},this.maxConnectionAgeGraceMs),null===(e=c.unref)||void 0===e||e.call(c))},this.maxConnectionAgeMs+n),null===(a=d.unref)||void 0===a||a.call(d)}const b=()=>{m&&(clearTimeout(m),m=null)},O=()=>!t.destroyed&&this.keepaliveTimeMs<h&&this.keepaliveTimeMs>0;let w;const S=()=>{var e;O()&&(this.keepaliveTrace("Starting keepalive timer for "+this.keepaliveTimeMs+"ms"),m=setTimeout(()=>{b(),w()},this.keepaliveTimeMs),null===(e=m.unref)||void 0===e||e.call(m))};w=()=>{var e;if(!O())return;this.keepaliveTrace("Sending ping with timeout "+this.keepaliveTimeoutMs+"ms");let r="";try{const e=t.ping((e,r,n)=>{b(),e?(this.keepaliveTrace("Ping failed with error: "+e.message),this.channelzTrace.addTrace("CT_INFO","Connection dropped due to error of a ping frame "+e.message+" return in "+r),g=!0,t.close()):(this.keepaliveTrace("Received ping response"),S())});e||(r="Ping returned false")}catch(e){r=(e instanceof Error?e.message:"")||"Unknown error"}if(r)return this.keepaliveTrace("Ping send failed: "+r),this.channelzTrace.addTrace("CT_INFO","Connection dropped due to ping send error: "+r),g=!0,void t.close();l.keepAlivesSent+=1,m=setTimeout(()=>{b(),this.keepaliveTrace("Ping timeout passed without response"),this.channelzTrace.addTrace("CT_INFO","Connection dropped by keepalive timeout from "+p),g=!0,t.close()},this.keepaliveTimeoutMs),null===(e=m.unref)||void 0===e||e.call(m)},S(),t.on("close",()=>{var r;g||this.channelzTrace.addTrace("CT_INFO","Connection dropped by client "+p),this.sessionChildrenTracker.unrefChild(s),(0,u.unregisterChannelzRef)(s),d&&clearTimeout(d),c&&clearTimeout(c),b(),null!==v&&(clearTimeout(v.timeout),this.sessionIdleTimeouts.delete(t)),null===(r=this.http2Servers.get(e))||void 0===r||r.sessions.delete(t),this.sessions.delete(t)})}}enableIdleTimeout(e){var t,r;if(this.sessionIdleTimeout>=m)return null;const n={activeStreams:0,lastIdle:Date.now(),onClose:this.onStreamClose.bind(this,e),timeout:setTimeout(this.onIdleTimeout,this.sessionIdleTimeout,this,e)};null===(r=(t=n.timeout).unref)||void 0===r||r.call(t),this.sessionIdleTimeouts.set(e,n);const{socket:o}=e;return this.trace("Enable idle timeout for "+o.remoteAddress+":"+o.remotePort),n}onIdleTimeout(e,t){const{socket:r}=t,n=e.sessionIdleTimeouts.get(t);void 0!==n&&0===n.activeStreams&&(Date.now()-n.lastIdle>=e.sessionIdleTimeout?(e.trace("Session idle timeout triggered for "+(null==r?void 0:r.remoteAddress)+":"+(null==r?void 0:r.remotePort)+" last idle at "+n.lastIdle),e.closeSession(t)):n.timeout.refresh())}onStreamOpened(e){const t=e.session,r=this.sessionIdleTimeouts.get(t);r&&(r.activeStreams+=1,e.once("close",r.onClose))}onStreamClose(e){var t,r;const n=this.sessionIdleTimeouts.get(e);n&&(n.activeStreams-=1,0===n.activeStreams&&(n.lastIdle=Date.now(),n.timeout.refresh(),this.trace("Session onStreamClose"+(null===(t=e.socket)||void 0===t?void 0:t.remoteAddress)+":"+(null===(r=e.socket)||void 0===r?void 0:r.remotePort)+" at "+n.lastIdle)))}},(()=>{const e="function"==typeof Symbol&&Symbol.metadata?Object.create(null):void 0;S=[O("Calling start() is no longer necessary. It can be safely omitted.")],t(n,null,S,{kind:"method",name:"start",static:!1,private:!1,access:{has:e=>"start"in e,get:e=>e.start},metadata:e},null,_),e&&Object.defineProperty(n,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})(),n})();return server.Server=S,server}var statusBuilder={},hasRequiredStatusBuilder;function requireStatusBuilder(){if(hasRequiredStatusBuilder)return statusBuilder;hasRequiredStatusBuilder=1,Object.defineProperty(statusBuilder,"__esModule",{value:!0}),statusBuilder.StatusBuilder=void 0;return statusBuilder.StatusBuilder=class{constructor(){this.code=null,this.details=null,this.metadata=null}withCode(e){return this.code=e,this}withDetails(e){return this.details=e,this}withMetadata(e){return this.metadata=e,this}build(){const e={};return null!==this.code&&(e.code=this.code),null!==this.details&&(e.details=this.details),null!==this.metadata&&(e.metadata=this.metadata),e}},statusBuilder}var experimental={},loadBalancerPickFirst={},hasRequiredLoadBalancerPickFirst;function requireLoadBalancerPickFirst(){if(hasRequiredLoadBalancerPickFirst)return loadBalancerPickFirst;hasRequiredLoadBalancerPickFirst=1,Object.defineProperty(loadBalancerPickFirst,"__esModule",{value:!0}),loadBalancerPickFirst.LeafLoadBalancer=loadBalancerPickFirst.PickFirstLoadBalancer=loadBalancerPickFirst.PickFirstLoadBalancingConfig=void 0,loadBalancerPickFirst.shuffled=f,loadBalancerPickFirst.setup=function(){(0,e.registerLoadBalancerType)(d,m,u),(0,e.registerDefaultLoadBalancerType)(d)};const e=requireLoadBalancer(),t=requireConnectivityState(),r=requirePicker(),n=requireSubchannelAddress(),o=requireLogging(),i=requireConstants(),a=requireSubchannelAddress(),s=require$$0__default$2.default,l=requireCallInterface();function p(e){o.trace(i.LogVerbosity.DEBUG,"pick_first",e)}const d="pick_first";class u{constructor(e){this.shuffleAddressList=e}getLoadBalancerName(){return d}toJsonObject(){return{[d]:{shuffleAddressList:this.shuffleAddressList}}}getShuffleAddressList(){return this.shuffleAddressList}static createFromJson(e){if("shuffleAddressList"in e&&"boolean"!=typeof e.shuffleAddressList)throw new Error("pick_first config field shuffleAddressList must be a boolean if provided");return new u(!0===e.shuffleAddressList)}}loadBalancerPickFirst.PickFirstLoadBalancingConfig=u;class c{constructor(e){this.subchannel=e}pick(e){return{pickResultType:r.PickResultType.COMPLETE,subchannel:this.subchannel,status:null,onCallStarted:null,onCallEnded:null}}}function f(e){const t=e.slice();for(let e=t.length-1;e>1;e--){const r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}return t}const h="grpc-node.internal.pick-first.report_health_status";class m{constructor(e){this.channelControlHelper=e,this.children=[],this.currentState=t.ConnectivityState.IDLE,this.currentSubchannelIndex=0,this.currentPick=null,this.subchannelStateListener=(e,t,r,n,o)=>{this.onSubchannelStateUpdate(e,t,r,o)},this.pickedSubchannelHealthListener=()=>this.calculateAndReportNewState(),this.stickyTransientFailureMode=!1,this.reportHealthStatus=!1,this.lastError=null,this.latestAddressList=null,this.latestOptions={},this.latestResolutionNote="",this.connectionDelayTimeout=setTimeout(()=>{},0),clearTimeout(this.connectionDelayTimeout)}allChildrenHaveReportedTF(){return this.children.every(e=>e.hasReportedTransientFailure)}resetChildrenReportedTF(){this.children.every(e=>e.hasReportedTransientFailure=!1)}calculateAndReportNewState(){var e;if(this.currentPick)if(this.reportHealthStatus&&!this.currentPick.isHealthy()){const e=`Picked subchannel ${this.currentPick.getAddress()} is unhealthy`;this.updateState(t.ConnectivityState.TRANSIENT_FAILURE,new r.UnavailablePicker({details:e}),e)}else this.updateState(t.ConnectivityState.READY,new c(this.currentPick),null);else if(0===(null===(e=this.latestAddressList)||void 0===e?void 0:e.length)){const e=`No connection established. Last error: ${this.lastError}. Resolution note: ${this.latestResolutionNote}`;this.updateState(t.ConnectivityState.TRANSIENT_FAILURE,new r.UnavailablePicker({details:e}),e)}else if(0===this.children.length)this.updateState(t.ConnectivityState.IDLE,new r.QueuePicker(this),null);else if(this.stickyTransientFailureMode){const e=`No connection established. Last error: ${this.lastError}. Resolution note: ${this.latestResolutionNote}`;this.updateState(t.ConnectivityState.TRANSIENT_FAILURE,new r.UnavailablePicker({details:e}),e)}else this.updateState(t.ConnectivityState.CONNECTING,new r.QueuePicker(this),null)}requestReresolution(){this.channelControlHelper.requestReresolution()}maybeEnterStickyTransientFailureMode(){if(this.allChildrenHaveReportedTF())if(this.requestReresolution(),this.resetChildrenReportedTF(),this.stickyTransientFailureMode)this.calculateAndReportNewState();else{this.stickyTransientFailureMode=!0;for(const{subchannel:e}of this.children)e.startConnecting();this.calculateAndReportNewState()}}removeCurrentPick(){null!==this.currentPick&&(this.currentPick.removeConnectivityStateListener(this.subchannelStateListener),this.channelControlHelper.removeChannelzChild(this.currentPick.getChannelzRef()),this.currentPick.removeHealthStateWatcher(this.pickedSubchannelHealthListener),this.currentPick.unref(),this.currentPick=null)}onSubchannelStateUpdate(e,r,n,o){var i;if(null===(i=this.currentPick)||void 0===i?void 0:i.realSubchannelEquals(e))n!==t.ConnectivityState.READY&&(this.removeCurrentPick(),this.calculateAndReportNewState());else for(const[r,i]of this.children.entries())if(e.realSubchannelEquals(i.subchannel))return n===t.ConnectivityState.READY&&this.pickSubchannel(i.subchannel),n===t.ConnectivityState.TRANSIENT_FAILURE&&(i.hasReportedTransientFailure=!0,o&&(this.lastError=o),this.maybeEnterStickyTransientFailureMode(),r===this.currentSubchannelIndex&&this.startNextSubchannelConnecting(r+1)),void i.subchannel.startConnecting()}startNextSubchannelConnecting(e){clearTimeout(this.connectionDelayTimeout);for(const[r,n]of this.children.entries())if(r>=e){const e=n.subchannel.getConnectivityState();if(e===t.ConnectivityState.IDLE||e===t.ConnectivityState.CONNECTING)return void this.startConnecting(r)}this.maybeEnterStickyTransientFailureMode()}startConnecting(e){var r,n;clearTimeout(this.connectionDelayTimeout),this.currentSubchannelIndex=e,this.children[e].subchannel.getConnectivityState()===t.ConnectivityState.IDLE&&(p("Start connecting to subchannel with address "+this.children[e].subchannel.getAddress()),process.nextTick(()=>{var t;null===(t=this.children[e])||void 0===t||t.subchannel.startConnecting()})),this.connectionDelayTimeout=setTimeout(()=>{this.startNextSubchannelConnecting(e+1)},250),null===(n=(r=this.connectionDelayTimeout).unref)||void 0===n||n.call(r)}pickSubchannel(e){p("Pick subchannel with address "+e.getAddress()),this.stickyTransientFailureMode=!1,e.ref(),this.channelControlHelper.addChannelzChild(e.getChannelzRef()),this.removeCurrentPick(),this.resetSubchannelList(),e.addConnectivityStateListener(this.subchannelStateListener),e.addHealthStateWatcher(this.pickedSubchannelHealthListener),this.currentPick=e,clearTimeout(this.connectionDelayTimeout),this.calculateAndReportNewState()}updateState(e,r,n){p(t.ConnectivityState[this.currentState]+" -> "+t.ConnectivityState[e]),this.currentState=e,this.channelControlHelper.updateState(e,r,n)}resetSubchannelList(){for(const e of this.children)e.subchannel.removeConnectivityStateListener(this.subchannelStateListener),e.subchannel.unref(),this.channelControlHelper.removeChannelzChild(e.subchannel.getChannelzRef());this.currentSubchannelIndex=0,this.children=[]}connectToAddressList(e,r){p("connectToAddressList(["+e.map(e=>(0,n.subchannelAddressToString)(e))+"])");const o=e.map(e=>({subchannel:this.channelControlHelper.createSubchannel(e,r),hasReportedTransientFailure:!1}));for(const{subchannel:e}of o)if(e.getConnectivityState()===t.ConnectivityState.READY)return void this.pickSubchannel(e);for(const{subchannel:e}of o)e.ref(),this.channelControlHelper.addChannelzChild(e.getChannelzRef());this.resetSubchannelList(),this.children=o;for(const{subchannel:e}of this.children)e.addConnectivityStateListener(this.subchannelStateListener);for(const e of this.children)e.subchannel.getConnectivityState()===t.ConnectivityState.TRANSIENT_FAILURE&&(e.hasReportedTransientFailure=!0);this.startNextSubchannelConnecting(0),this.calculateAndReportNewState()}updateAddressList(e,o,i,l){if(!(o instanceof u))return!1;if(!e.ok)return 0===this.children.length&&null===this.currentPick&&this.channelControlHelper.updateState(t.ConnectivityState.TRANSIENT_FAILURE,new r.UnavailablePicker(e.error),e.error.details),!0;let d=e.value;this.reportHealthStatus=i[h],o.getShuffleAddressList()&&(d=f(d));const c=[].concat(...d.map(e=>e.addresses));p("updateAddressList(["+c.map(e=>(0,n.subchannelAddressToString)(e))+"])");const m=function(e){if(0===e.length)return[];const t=[],r=[],n=[],o=(0,a.isTcpSubchannelAddress)(e[0])&&(0,s.isIPv6)(e[0].host);for(const t of e)(0,a.isTcpSubchannelAddress)(t)&&(0,s.isIPv6)(t.host)?r.push(t):n.push(t);const i=o?r:n,l=o?n:r;for(let e=0;e<Math.max(i.length,l.length);e++)e<i.length&&t.push(i[e]),e<l.length&&t.push(l[e]);return t}(c);return this.latestAddressList=m,this.latestOptions=i,this.connectToAddressList(m,i),this.latestResolutionNote=l,c.length>0||(this.lastError="No addresses resolved",!1)}exitIdle(){this.currentState===t.ConnectivityState.IDLE&&this.latestAddressList&&this.connectToAddressList(this.latestAddressList,this.latestOptions)}resetBackoff(){}destroy(){this.resetSubchannelList(),this.removeCurrentPick()}getTypeName(){return d}}loadBalancerPickFirst.PickFirstLoadBalancer=m;const g=new u(!1);return loadBalancerPickFirst.LeafLoadBalancer=class{constructor(n,o,i,a){this.endpoint=n,this.options=i,this.resolutionNote=a,this.latestState=t.ConnectivityState.IDLE;const s=(0,e.createChildChannelControlHelper)(o,{updateState:(e,t,r)=>{this.latestState=e,this.latestPicker=t,o.updateState(e,t,r)}});this.pickFirstBalancer=new m(s),this.latestPicker=new r.QueuePicker(this.pickFirstBalancer)}startConnecting(){this.pickFirstBalancer.updateAddressList((0,l.statusOrFromValue)([this.endpoint]),g,Object.assign(Object.assign({},this.options),{[h]:!0}),this.resolutionNote)}updateEndpoint(e,r){this.options=r,this.endpoint=e,this.latestState!==t.ConnectivityState.IDLE&&this.startConnecting()}getConnectivityState(){return this.latestState}getPicker(){return this.latestPicker}getEndpoint(){return this.endpoint}exitIdle(){this.pickFirstBalancer.exitIdle()}destroy(){this.pickFirstBalancer.destroy()}},loadBalancerPickFirst}var certificateProvider={},hasRequiredCertificateProvider,hasRequiredExperimental;function requireCertificateProvider(){if(hasRequiredCertificateProvider)return certificateProvider;hasRequiredCertificateProvider=1,Object.defineProperty(certificateProvider,"__esModule",{value:!0}),certificateProvider.FileWatcherCertificateProvider=void 0;const e=require$$0__default.default,t=requireLogging(),r=requireConstants(),n=require$$1__default$4.default;function o(e){t.trace(r.LogVerbosity.DEBUG,"certificate_provider",e)}const i=(0,n.promisify)(e.readFile);return certificateProvider.FileWatcherCertificateProvider=class{constructor(e){if(this.config=e,this.refreshTimer=null,this.fileResultPromise=null,this.latestCaUpdate=void 0,this.caListeners=new Set,this.latestIdentityUpdate=void 0,this.identityListeners=new Set,this.lastUpdateTime=null,void 0===e.certificateFile!=(void 0===e.privateKeyFile))throw new Error("certificateFile and privateKeyFile must be set or unset together");if(void 0===e.certificateFile&&void 0===e.caCertificateFile)throw new Error("At least one of certificateFile and caCertificateFile must be set");o("File watcher constructed with config "+JSON.stringify(e))}updateCertificates(){this.fileResultPromise||(this.fileResultPromise=Promise.allSettled([this.config.certificateFile?i(this.config.certificateFile):Promise.reject(),this.config.privateKeyFile?i(this.config.privateKeyFile):Promise.reject(),this.config.caCertificateFile?i(this.config.caCertificateFile):Promise.reject()]),this.fileResultPromise.then(([e,t,r])=>{if(this.refreshTimer){o("File watcher read certificates certificate "+e.status+", privateKey "+t.status+", CA certificate "+r.status),this.lastUpdateTime=new Date,this.fileResultPromise=null,"fulfilled"===e.status&&"fulfilled"===t.status?this.latestIdentityUpdate={certificate:e.value,privateKey:t.value}:this.latestIdentityUpdate=null,"fulfilled"===r.status?this.latestCaUpdate={caCertificate:r.value}:this.latestCaUpdate=null;for(const e of this.identityListeners)e(this.latestIdentityUpdate);for(const e of this.caListeners)e(this.latestCaUpdate)}}),o("File watcher initiated certificate update"))}maybeStartWatchingFiles(){if(!this.refreshTimer){const e=this.lastUpdateTime?(new Date).getTime()-this.lastUpdateTime.getTime():1/0;e>this.config.refreshIntervalMs&&this.updateCertificates(),e>2*this.config.refreshIntervalMs&&(this.latestCaUpdate=void 0,this.latestIdentityUpdate=void 0),this.refreshTimer=setInterval(()=>this.updateCertificates(),this.config.refreshIntervalMs),o("File watcher started watching")}}maybeStopWatchingFiles(){0===this.caListeners.size&&0===this.identityListeners.size&&(this.fileResultPromise=null,this.refreshTimer&&(clearInterval(this.refreshTimer),this.refreshTimer=null))}addCaCertificateListener(e){this.caListeners.add(e),this.maybeStartWatchingFiles(),void 0!==this.latestCaUpdate&&process.nextTick(e,this.latestCaUpdate)}removeCaCertificateListener(e){this.caListeners.delete(e),this.maybeStopWatchingFiles()}addIdentityCertificateListener(e){this.identityListeners.add(e),this.maybeStartWatchingFiles(),void 0!==this.latestIdentityUpdate&&process.nextTick(e,this.latestIdentityUpdate)}removeIdentityCertificateListener(e){this.identityListeners.delete(e),this.maybeStopWatchingFiles()}},certificateProvider}function requireExperimental(){return hasRequiredExperimental||(hasRequiredExperimental=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX=e.createCertificateProviderChannelCredentials=e.FileWatcherCertificateProvider=e.createCertificateProviderServerCredentials=e.createServerCredentialsWithInterceptors=e.BaseSubchannelWrapper=e.registerAdminService=e.FilterStackFactory=e.BaseFilter=e.statusOrFromError=e.statusOrFromValue=e.PickResultType=e.QueuePicker=e.UnavailablePicker=e.ChildLoadBalancerHandler=e.EndpointMap=e.endpointHasAddress=e.endpointToString=e.subchannelAddressToString=e.LeafLoadBalancer=e.isLoadBalancerNameRegistered=e.parseLoadBalancingConfig=e.selectLbConfigFromList=e.registerLoadBalancerType=e.createChildChannelControlHelper=e.BackoffTimeout=e.parseDuration=e.durationToMs=e.splitHostPort=e.uriToString=e.CHANNEL_ARGS_CONFIG_SELECTOR_KEY=e.createResolver=e.registerResolver=e.log=e.trace=void 0;var t=requireLogging();Object.defineProperty(e,"trace",{enumerable:!0,get:function(){return t.trace}}),Object.defineProperty(e,"log",{enumerable:!0,get:function(){return t.log}});var r=requireResolver();Object.defineProperty(e,"registerResolver",{enumerable:!0,get:function(){return r.registerResolver}}),Object.defineProperty(e,"createResolver",{enumerable:!0,get:function(){return r.createResolver}}),Object.defineProperty(e,"CHANNEL_ARGS_CONFIG_SELECTOR_KEY",{enumerable:!0,get:function(){return r.CHANNEL_ARGS_CONFIG_SELECTOR_KEY}});var n=requireUriParser();Object.defineProperty(e,"uriToString",{enumerable:!0,get:function(){return n.uriToString}}),Object.defineProperty(e,"splitHostPort",{enumerable:!0,get:function(){return n.splitHostPort}});var o=requireDuration$1();Object.defineProperty(e,"durationToMs",{enumerable:!0,get:function(){return o.durationToMs}}),Object.defineProperty(e,"parseDuration",{enumerable:!0,get:function(){return o.parseDuration}});var i=requireBackoffTimeout();Object.defineProperty(e,"BackoffTimeout",{enumerable:!0,get:function(){return i.BackoffTimeout}});var a=requireLoadBalancer();Object.defineProperty(e,"createChildChannelControlHelper",{enumerable:!0,get:function(){return a.createChildChannelControlHelper}}),Object.defineProperty(e,"registerLoadBalancerType",{enumerable:!0,get:function(){return a.registerLoadBalancerType}}),Object.defineProperty(e,"selectLbConfigFromList",{enumerable:!0,get:function(){return a.selectLbConfigFromList}}),Object.defineProperty(e,"parseLoadBalancingConfig",{enumerable:!0,get:function(){return a.parseLoadBalancingConfig}}),Object.defineProperty(e,"isLoadBalancerNameRegistered",{enumerable:!0,get:function(){return a.isLoadBalancerNameRegistered}});var s=requireLoadBalancerPickFirst();Object.defineProperty(e,"LeafLoadBalancer",{enumerable:!0,get:function(){return s.LeafLoadBalancer}});var l=requireSubchannelAddress();Object.defineProperty(e,"subchannelAddressToString",{enumerable:!0,get:function(){return l.subchannelAddressToString}}),Object.defineProperty(e,"endpointToString",{enumerable:!0,get:function(){return l.endpointToString}}),Object.defineProperty(e,"endpointHasAddress",{enumerable:!0,get:function(){return l.endpointHasAddress}}),Object.defineProperty(e,"EndpointMap",{enumerable:!0,get:function(){return l.EndpointMap}});var p=requireLoadBalancerChildHandler();Object.defineProperty(e,"ChildLoadBalancerHandler",{enumerable:!0,get:function(){return p.ChildLoadBalancerHandler}});var d=requirePicker();Object.defineProperty(e,"UnavailablePicker",{enumerable:!0,get:function(){return d.UnavailablePicker}}),Object.defineProperty(e,"QueuePicker",{enumerable:!0,get:function(){return d.QueuePicker}}),Object.defineProperty(e,"PickResultType",{enumerable:!0,get:function(){return d.PickResultType}});var u=requireCallInterface();Object.defineProperty(e,"statusOrFromValue",{enumerable:!0,get:function(){return u.statusOrFromValue}}),Object.defineProperty(e,"statusOrFromError",{enumerable:!0,get:function(){return u.statusOrFromError}});var c=requireFilter();Object.defineProperty(e,"BaseFilter",{enumerable:!0,get:function(){return c.BaseFilter}});var f=requireFilterStack();Object.defineProperty(e,"FilterStackFactory",{enumerable:!0,get:function(){return f.FilterStackFactory}});var h=requireAdmin();Object.defineProperty(e,"registerAdminService",{enumerable:!0,get:function(){return h.registerAdminService}});var m=requireSubchannelInterface();Object.defineProperty(e,"BaseSubchannelWrapper",{enumerable:!0,get:function(){return m.BaseSubchannelWrapper}});var g=requireServerCredentials();Object.defineProperty(e,"createServerCredentialsWithInterceptors",{enumerable:!0,get:function(){return g.createServerCredentialsWithInterceptors}}),Object.defineProperty(e,"createCertificateProviderServerCredentials",{enumerable:!0,get:function(){return g.createCertificateProviderServerCredentials}});var y=requireCertificateProvider();Object.defineProperty(e,"FileWatcherCertificateProvider",{enumerable:!0,get:function(){return y.FileWatcherCertificateProvider}});var v=requireChannelCredentials();Object.defineProperty(e,"createCertificateProviderChannelCredentials",{enumerable:!0,get:function(){return v.createCertificateProviderChannelCredentials}});var b=requireInternalChannel();Object.defineProperty(e,"SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX",{enumerable:!0,get:function(){return b.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX}})}(experimental)),experimental}var resolverUds={},hasRequiredResolverUds;function requireResolverUds(){if(hasRequiredResolverUds)return resolverUds;hasRequiredResolverUds=1,Object.defineProperty(resolverUds,"__esModule",{value:!0}),resolverUds.setup=function(){(0,e.registerResolver)("unix",r)};const e=requireResolver(),t=requireCallInterface();class r{constructor(e,t,r){let n;this.listener=t,this.hasReturnedResult=!1,this.endpoints=[],n=""===e.authority?"/"+e.path:e.path,this.endpoints=[{addresses:[{path:n}]}]}updateResolution(){this.hasReturnedResult||(this.hasReturnedResult=!0,process.nextTick(this.listener,(0,t.statusOrFromValue)(this.endpoints),{},null,""))}destroy(){this.hasReturnedResult=!1}static getDefaultAuthority(e){return"localhost"}}return resolverUds}var resolverIp={},hasRequiredResolverIp;function requireResolverIp(){if(hasRequiredResolverIp)return resolverIp;hasRequiredResolverIp=1,Object.defineProperty(resolverIp,"__esModule",{value:!0}),resolverIp.setup=function(){(0,o.registerResolver)(p,u),(0,o.registerResolver)(d,u)};const e=require$$0__default$2.default,t=requireCallInterface(),r=requireConstants(),n=requireMetadata(),o=requireResolver(),i=requireSubchannelAddress(),a=requireUriParser(),s=requireLogging();function l(e){s.trace(r.LogVerbosity.DEBUG,"ip_resolver",e)}const p="ipv4",d="ipv6";class u{constructor(t,o,s){var u;this.listener=o,this.endpoints=[],this.error=null,this.hasReturnedResult=!1,l("Resolver constructed for target "+(0,a.uriToString)(t));const c=[];if(t.scheme!==p&&t.scheme!==d)return void(this.error={code:r.Status.UNAVAILABLE,details:`Unrecognized scheme ${t.scheme} in IP resolver`,metadata:new n.Metadata});const f=t.path.split(",");for(const o of f){const i=(0,a.splitHostPort)(o);if(null===i)return void(this.error={code:r.Status.UNAVAILABLE,details:`Failed to parse ${t.scheme} address ${o}`,metadata:new n.Metadata});if(t.scheme===p&&!(0,e.isIPv4)(i.host)||t.scheme===d&&!(0,e.isIPv6)(i.host))return void(this.error={code:r.Status.UNAVAILABLE,details:`Failed to parse ${t.scheme} address ${o}`,metadata:new n.Metadata});c.push({host:i.host,port:null!==(u=i.port)&&void 0!==u?u:443})}this.endpoints=c.map(e=>({addresses:[e]})),l("Parsed "+t.scheme+" address list "+c.map(i.subchannelAddressToString))}updateResolution(){this.hasReturnedResult||(this.hasReturnedResult=!0,process.nextTick(()=>{this.error?this.listener((0,t.statusOrFromError)(this.error),{},null,""):this.listener((0,t.statusOrFromValue)(this.endpoints),{},null,"")}))}destroy(){this.hasReturnedResult=!1}static getDefaultAuthority(e){return e.path.split(",")[0]}}return resolverIp}var loadBalancerRoundRobin={},hasRequiredLoadBalancerRoundRobin;function requireLoadBalancerRoundRobin(){if(hasRequiredLoadBalancerRoundRobin)return loadBalancerRoundRobin;hasRequiredLoadBalancerRoundRobin=1,Object.defineProperty(loadBalancerRoundRobin,"__esModule",{value:!0}),loadBalancerRoundRobin.RoundRobinLoadBalancer=void 0,loadBalancerRoundRobin.setup=function(){(0,e.registerLoadBalancerType)(l,u,p)};const e=requireLoadBalancer(),t=requireConnectivityState(),r=requirePicker(),n=requireLogging(),o=requireConstants(),i=requireSubchannelAddress(),a=requireLoadBalancerPickFirst();function s(e){n.trace(o.LogVerbosity.DEBUG,"round_robin",e)}const l="round_robin";class p{getLoadBalancerName(){return l}constructor(){}toJsonObject(){return{[l]:{}}}static createFromJson(e){return new p}}class d{constructor(e,t=0){this.children=e,this.nextIndex=t}pick(e){const t=this.children[this.nextIndex].picker;return this.nextIndex=(this.nextIndex+1)%this.children.length,t.pick(e)}peekNextEndpoint(){return this.children[this.nextIndex].endpoint}}class u{constructor(r){this.channelControlHelper=r,this.children=[],this.currentState=t.ConnectivityState.IDLE,this.currentReadyPicker=null,this.updatesPaused=!1,this.lastError=null,this.childChannelControlHelper=(0,e.createChildChannelControlHelper)(r,{updateState:(e,r,n)=>{this.currentState===t.ConnectivityState.READY&&e!==t.ConnectivityState.READY&&this.channelControlHelper.requestReresolution(),n&&(this.lastError=n),this.calculateAndUpdateState()}})}countChildrenWithState(e){return this.children.filter(t=>t.getConnectivityState()===e).length}calculateAndUpdateState(){if(!this.updatesPaused){if(this.countChildrenWithState(t.ConnectivityState.READY)>0){const e=this.children.filter(e=>e.getConnectivityState()===t.ConnectivityState.READY);let r=0;if(null!==this.currentReadyPicker){const t=this.currentReadyPicker.peekNextEndpoint();r=e.findIndex(e=>(0,i.endpointEqual)(e.getEndpoint(),t)),r<0&&(r=0)}this.updateState(t.ConnectivityState.READY,new d(e.map(e=>({endpoint:e.getEndpoint(),picker:e.getPicker()})),r),null)}else if(this.countChildrenWithState(t.ConnectivityState.CONNECTING)>0)this.updateState(t.ConnectivityState.CONNECTING,new r.QueuePicker(this),null);else if(this.countChildrenWithState(t.ConnectivityState.TRANSIENT_FAILURE)>0){const e=`round_robin: No connection established. Last error: ${this.lastError}`;this.updateState(t.ConnectivityState.TRANSIENT_FAILURE,new r.UnavailablePicker({details:e}),e)}else this.updateState(t.ConnectivityState.IDLE,new r.QueuePicker(this),null);for(const e of this.children)e.getConnectivityState()===t.ConnectivityState.IDLE&&e.exitIdle()}}updateState(e,r,n){s(t.ConnectivityState[this.currentState]+" -> "+t.ConnectivityState[e]),e===t.ConnectivityState.READY?this.currentReadyPicker=r:this.currentReadyPicker=null,this.currentState=e,this.channelControlHelper.updateState(e,r,n)}resetSubchannelList(){for(const e of this.children)e.destroy();this.children=[]}updateAddressList(e,n,o,l){if(!(n instanceof p))return!1;if(!e.ok)return 0===this.children.length&&this.updateState(t.ConnectivityState.TRANSIENT_FAILURE,new r.UnavailablePicker(e.error),e.error.details),!0;const d=Math.random()*e.value.length|0,u=function(e,t){return[...e.slice(t),...e.slice(0,t)]}(e.value,d);if(this.resetSubchannelList(),0===u.length){const e=`No addresses resolved. Resolution note: ${l}`;this.updateState(t.ConnectivityState.TRANSIENT_FAILURE,new r.UnavailablePicker({details:e}),e)}s("Connect to endpoint list "+u.map(i.endpointToString)),this.updatesPaused=!0,this.children=u.map(e=>new a.LeafLoadBalancer(e,this.childChannelControlHelper,o,l));for(const e of this.children)e.startConnecting();return this.updatesPaused=!1,this.calculateAndUpdateState(),!0}exitIdle(){}resetBackoff(){}destroy(){this.resetSubchannelList()}getTypeName(){return l}}return loadBalancerRoundRobin.RoundRobinLoadBalancer=u,loadBalancerRoundRobin}var loadBalancerOutlierDetection={},hasRequiredLoadBalancerOutlierDetection;function requireLoadBalancerOutlierDetection(){if(hasRequiredLoadBalancerOutlierDetection)return loadBalancerOutlierDetection;var e;hasRequiredLoadBalancerOutlierDetection=1,Object.defineProperty(loadBalancerOutlierDetection,"__esModule",{value:!0}),loadBalancerOutlierDetection.OutlierDetectionLoadBalancer=loadBalancerOutlierDetection.OutlierDetectionLoadBalancingConfig=void 0,loadBalancerOutlierDetection.setup=function(){f&&(0,o.registerLoadBalancerType)(c,_,b)};const t=requireConnectivityState(),r=requireConstants(),n=requireDuration$1(),o=requireExperimental(),i=requireLoadBalancer(),a=requireLoadBalancerChildHandler(),s=requirePicker(),l=requireSubchannelAddress(),p=requireSubchannelInterface(),d=requireLogging();function u(e){d.trace(r.LogVerbosity.DEBUG,"outlier_detection",e)}const c="outlier_detection",f="true"===(null!==(e=process.env.GRPC_EXPERIMENTAL_ENABLE_OUTLIER_DETECTION)&&void 0!==e?e:"true"),h={stdev_factor:1900,enforcement_percentage:100,minimum_hosts:5,request_volume:100},m={threshold:85,enforcement_percentage:100,minimum_hosts:5,request_volume:50};function g(e,t,r,n){if(t in e&&void 0!==e[t]&&typeof e[t]!==r){throw new Error(`outlier detection config ${n?`${n}.${t}`:t} parse error: expected ${r}, got ${typeof e[t]}`)}}function y(e,t,r){const o=t;if(t in e&&void 0!==e[t]){if(!(0,n.isDuration)(e[t]))throw new Error(`outlier detection config ${o} parse error: expected Duration, got ${typeof e[t]}`);if(!(e[t].seconds>=0&&e[t].seconds<=315576e6&&e[t].nanos>=0&&e[t].nanos<=999999999))throw new Error(`outlier detection config ${o} parse error: values out of range for non-negative Duaration`)}}function v(e,t,r){const n=r?`${r}.${t}`:t;if(g(e,t,"number",r),t in e&&void 0!==e[t]&&!(e[t]>=0&&e[t]<=100))throw new Error(`outlier detection config ${n} parse error: value out of range for percentage (0-100)`)}class b{constructor(e,t,r,n,o,i,a){if(this.childPolicy=a,"pick_first"===a.getLoadBalancerName())throw new Error("outlier_detection LB policy cannot have a pick_first child policy");this.intervalMs=null!=e?e:1e4,this.baseEjectionTimeMs=null!=t?t:3e4,this.maxEjectionTimeMs=null!=r?r:3e5,this.maxEjectionPercent=null!=n?n:10,this.successRateEjection=o?Object.assign(Object.assign({},h),o):null,this.failurePercentageEjection=i?Object.assign(Object.assign({},m),i):null}getLoadBalancerName(){return c}toJsonObject(){var e,t;return{outlier_detection:{interval:(0,n.msToDuration)(this.intervalMs),base_ejection_time:(0,n.msToDuration)(this.baseEjectionTimeMs),max_ejection_time:(0,n.msToDuration)(this.maxEjectionTimeMs),max_ejection_percent:this.maxEjectionPercent,success_rate_ejection:null!==(e=this.successRateEjection)&&void 0!==e?e:void 0,failure_percentage_ejection:null!==(t=this.failurePercentageEjection)&&void 0!==t?t:void 0,child_policy:[this.childPolicy.toJsonObject()]}}}getIntervalMs(){return this.intervalMs}getBaseEjectionTimeMs(){return this.baseEjectionTimeMs}getMaxEjectionTimeMs(){return this.maxEjectionTimeMs}getMaxEjectionPercent(){return this.maxEjectionPercent}getSuccessRateEjectionConfig(){return this.successRateEjection}getFailurePercentageEjectionConfig(){return this.failurePercentageEjection}getChildPolicy(){return this.childPolicy}static createFromJson(e){var t;if(y(e,"interval"),y(e,"base_ejection_time"),y(e,"max_ejection_time"),v(e,"max_ejection_percent"),"success_rate_ejection"in e&&void 0!==e.success_rate_ejection){if("object"!=typeof e.success_rate_ejection)throw new Error("outlier detection config success_rate_ejection must be an object");g(e.success_rate_ejection,"stdev_factor","number","success_rate_ejection"),v(e.success_rate_ejection,"enforcement_percentage","success_rate_ejection"),g(e.success_rate_ejection,"minimum_hosts","number","success_rate_ejection"),g(e.success_rate_ejection,"request_volume","number","success_rate_ejection")}if("failure_percentage_ejection"in e&&void 0!==e.failure_percentage_ejection){if("object"!=typeof e.failure_percentage_ejection)throw new Error("outlier detection config failure_percentage_ejection must be an object");v(e.failure_percentage_ejection,"threshold","failure_percentage_ejection"),v(e.failure_percentage_ejection,"enforcement_percentage","failure_percentage_ejection"),g(e.failure_percentage_ejection,"minimum_hosts","number","failure_percentage_ejection"),g(e.failure_percentage_ejection,"request_volume","number","failure_percentage_ejection")}if(!("child_policy"in e)||!Array.isArray(e.child_policy))throw new Error("outlier detection config child_policy must be an array");const r=(0,i.selectLbConfigFromList)(e.child_policy);if(!r)throw new Error("outlier detection config child_policy: no valid recognized policy found");return new b(e.interval?(0,n.durationToMs)(e.interval):null,e.base_ejection_time?(0,n.durationToMs)(e.base_ejection_time):null,e.max_ejection_time?(0,n.durationToMs)(e.max_ejection_time):null,null!==(t=e.max_ejection_percent)&&void 0!==t?t:null,e.success_rate_ejection,e.failure_percentage_ejection,r)}}loadBalancerOutlierDetection.OutlierDetectionLoadBalancingConfig=b;class O extends p.BaseSubchannelWrapper{constructor(e,t){super(e),this.mapEntry=t,this.refCount=0}ref(){this.child.ref(),this.refCount+=1}unref(){if(this.child.unref(),this.refCount-=1,this.refCount<=0&&this.mapEntry){const e=this.mapEntry.subchannelWrappers.indexOf(this);e>=0&&this.mapEntry.subchannelWrappers.splice(e,1)}}eject(){this.setHealthy(!1)}uneject(){this.setHealthy(!0)}getMapEntry(){return this.mapEntry}getWrappedSubchannel(){return this.child}}class w{constructor(){this.activeBucket={success:0,failure:0},this.inactiveBucket={success:0,failure:0}}addSuccess(){this.activeBucket.success+=1}addFailure(){this.activeBucket.failure+=1}switchBuckets(){this.inactiveBucket=this.activeBucket,this.activeBucket={success:0,failure:0}}getLastSuccesses(){return this.inactiveBucket.success}getLastFailures(){return this.inactiveBucket.failure}}class S{constructor(e,t){this.wrappedPicker=e,this.countCalls=t}pick(e){const t=this.wrappedPicker.pick(e);if(t.pickResultType===s.PickResultType.COMPLETE){const e=t.subchannel,n=e.getMapEntry();if(n){let o=t.onCallEnded;return this.countCalls&&(o=(e,o,i)=>{var a;e===r.Status.OK?n.counter.addSuccess():n.counter.addFailure(),null===(a=t.onCallEnded)||void 0===a||a.call(t,e,o,i)}),Object.assign(Object.assign({},t),{subchannel:e.getWrappedSubchannel(),onCallEnded:o})}return Object.assign(Object.assign({},t),{subchannel:e.getWrappedSubchannel()})}return t}}class _{constructor(e){this.entryMap=new l.EndpointMap,this.latestConfig=null,this.timerStartTime=null,this.childBalancer=new a.ChildLoadBalancerHandler((0,o.createChildChannelControlHelper)(e,{createSubchannel:(t,r)=>{const n=e.createSubchannel(t,r),o=this.entryMap.getForSubchannelAddress(t),i=new O(n,o);return null!==(null==o?void 0:o.currentEjectionTimestamp)&&i.eject(),null==o||o.subchannelWrappers.push(i),i},updateState:(r,n,o)=>{r===t.ConnectivityState.READY?e.updateState(r,new S(n,this.isCountingEnabled()),o):e.updateState(r,n,o)}})),this.ejectionTimer=setInterval(()=>{},0),clearInterval(this.ejectionTimer)}isCountingEnabled(){return null!==this.latestConfig&&(null!==this.latestConfig.getSuccessRateEjectionConfig()||null!==this.latestConfig.getFailurePercentageEjectionConfig())}getCurrentEjectionPercent(){let e=0;for(const t of this.entryMap.values())null!==t.currentEjectionTimestamp&&(e+=1);return 100*e/this.entryMap.size}runSuccessRateCheck(e){if(!this.latestConfig)return;const t=this.latestConfig.getSuccessRateEjectionConfig();if(!t)return;u("Running success rate check");const r=t.request_volume;let n=0;const o=[];for(const[e,t]of this.entryMap.entries()){const i=t.counter.getLastSuccesses(),a=t.counter.getLastFailures();u("Stats for "+(0,l.endpointToString)(e)+": successes="+i+" failures="+a+" targetRequestVolume="+r),i+a>=r&&(n+=1,o.push(i/(i+a)))}if(u("Found "+n+" success rate candidates; currentEjectionPercent="+this.getCurrentEjectionPercent()+" successRates=["+o+"]"),n<t.minimum_hosts)return;const i=o.reduce((e,t)=>e+t)/o.length;let a=0;for(const e of o){const t=e-i;a+=t*t}const s=a/o.length,p=Math.sqrt(s),d=i-p*(t.stdev_factor/1e3);u("stdev="+p+" ejectionThreshold="+d);for(const[n,o]of this.entryMap.entries()){if(this.getCurrentEjectionPercent()>=this.latestConfig.getMaxEjectionPercent())break;const i=o.counter.getLastSuccesses(),a=o.counter.getLastFailures();if(i+a<r)continue;const s=i/(i+a);if(u("Checking candidate "+n+" successRate="+s),s<d){const r=100*Math.random();u("Candidate "+n+" randomNumber="+r+" enforcement_percentage="+t.enforcement_percentage),r<t.enforcement_percentage&&(u("Ejecting candidate "+n),this.eject(o,e))}}}runFailurePercentageCheck(e){if(!this.latestConfig)return;const t=this.latestConfig.getFailurePercentageEjectionConfig();if(!t)return;u("Running failure percentage check. threshold="+t.threshold+" request volume threshold="+t.request_volume);let r=0;for(const e of this.entryMap.values()){e.counter.getLastSuccesses()+e.counter.getLastFailures()>=t.request_volume&&(r+=1)}if(!(r<t.minimum_hosts))for(const[r,n]of this.entryMap.entries()){if(this.getCurrentEjectionPercent()>=this.latestConfig.getMaxEjectionPercent())break;const o=n.counter.getLastSuccesses(),i=n.counter.getLastFailures();if(u("Candidate successes="+o+" failures="+i),o+i<t.request_volume)continue;if(100*i/(i+o)>t.threshold){const o=100*Math.random();u("Candidate "+r+" randomNumber="+o+" enforcement_percentage="+t.enforcement_percentage),o<t.enforcement_percentage&&(u("Ejecting candidate "+r),this.eject(n,e))}}}eject(e,t){e.currentEjectionTimestamp=new Date,e.ejectionTimeMultiplier+=1;for(const t of e.subchannelWrappers)t.eject()}uneject(e){e.currentEjectionTimestamp=null;for(const t of e.subchannelWrappers)t.uneject()}switchAllBuckets(){for(const e of this.entryMap.values())e.counter.switchBuckets()}startTimer(e){var t,r;this.ejectionTimer=setTimeout(()=>this.runChecks(),e),null===(r=(t=this.ejectionTimer).unref)||void 0===r||r.call(t)}runChecks(){const e=new Date;if(u("Ejection timer running"),this.switchAllBuckets(),this.latestConfig){this.timerStartTime=e,this.startTimer(this.latestConfig.getIntervalMs()),this.runSuccessRateCheck(e),this.runFailurePercentageCheck(e);for(const[e,t]of this.entryMap.entries())if(null===t.currentEjectionTimestamp)t.ejectionTimeMultiplier>0&&(t.ejectionTimeMultiplier-=1);else{const r=this.latestConfig.getBaseEjectionTimeMs(),n=this.latestConfig.getMaxEjectionTimeMs(),o=new Date(t.currentEjectionTimestamp.getTime());o.setMilliseconds(o.getMilliseconds()+Math.min(r*t.ejectionTimeMultiplier,Math.max(r,n))),o<new Date&&(u("Unejecting "+e),this.uneject(t))}}}updateAddressList(e,t,r,n){if(!(t instanceof b))return!1;if(u("Received update with config: "+JSON.stringify(t.toJsonObject(),void 0,2)),e.ok){for(const t of e.value)this.entryMap.has(t)||(u("Adding map entry for "+(0,l.endpointToString)(t)),this.entryMap.set(t,{counter:new w,currentEjectionTimestamp:null,ejectionTimeMultiplier:0,subchannelWrappers:[]}));this.entryMap.deleteMissing(e.value)}const o=t.getChildPolicy();if(this.childBalancer.updateAddressList(e,o,r,n),t.getSuccessRateEjectionConfig()||t.getFailurePercentageEjectionConfig())if(this.timerStartTime){u("Previous timer existed. Replacing timer"),clearTimeout(this.ejectionTimer);const e=t.getIntervalMs()-((new Date).getTime()-this.timerStartTime.getTime());this.startTimer(e)}else u("Starting new timer"),this.timerStartTime=new Date,this.startTimer(t.getIntervalMs()),this.switchAllBuckets();else{u("Counting disabled. Cancelling timer."),this.timerStartTime=null,clearTimeout(this.ejectionTimer);for(const e of this.entryMap.values())this.uneject(e),e.ejectionTimeMultiplier=0}return this.latestConfig=t,!0}exitIdle(){this.childBalancer.exitIdle()}resetBackoff(){this.childBalancer.resetBackoff()}destroy(){clearTimeout(this.ejectionTimer),this.childBalancer.destroy()}getTypeName(){return c}}return loadBalancerOutlierDetection.OutlierDetectionLoadBalancer=_,loadBalancerOutlierDetection}var loadBalancerWeightedRoundRobin={},priorityQueue={},hasRequiredPriorityQueue,hasRequiredLoadBalancerWeightedRoundRobin,hasRequiredSrc$5;function requirePriorityQueue(){if(hasRequiredPriorityQueue)return priorityQueue;hasRequiredPriorityQueue=1,Object.defineProperty(priorityQueue,"__esModule",{value:!0}),priorityQueue.PriorityQueue=void 0;const e=e=>Math.floor(e/2),t=e=>2*e+1,r=e=>2*e+2;return priorityQueue.PriorityQueue=class{constructor(e=(e,t)=>e>t){this.comparator=e,this.heap=[]}size(){return this.heap.length}isEmpty(){return 0==this.size()}peek(){return this.heap[0]}push(...e){return e.forEach(e=>{this.heap.push(e),this.siftUp()}),this.size()}pop(){const e=this.peek(),t=this.size()-1;return t>0&&this.swap(0,t),this.heap.pop(),this.siftDown(),e}replace(e){const t=this.peek();return this.heap[0]=e,this.siftDown(),t}greater(e,t){return this.comparator(this.heap[e],this.heap[t])}swap(e,t){[this.heap[e],this.heap[t]]=[this.heap[t],this.heap[e]]}siftUp(){let t=this.size()-1;for(;t>0&&this.greater(t,e(t));)this.swap(t,e(t)),t=e(t)}siftDown(){let e=0;for(;t(e)<this.size()&&this.greater(t(e),e)||r(e)<this.size()&&this.greater(r(e),e);){let n=r(e)<this.size()&&this.greater(r(e),t(e))?r(e):t(e);this.swap(e,n),e=n}}},priorityQueue}function requireLoadBalancerWeightedRoundRobin(){if(hasRequiredLoadBalancerWeightedRoundRobin)return loadBalancerWeightedRoundRobin;hasRequiredLoadBalancerWeightedRoundRobin=1,Object.defineProperty(loadBalancerWeightedRoundRobin,"__esModule",{value:!0}),loadBalancerWeightedRoundRobin.WeightedRoundRobinLoadBalancingConfig=void 0,loadBalancerWeightedRoundRobin.setup=function(){(0,n.registerLoadBalancerType)(u,g,h)};const e=requireConnectivityState(),t=requireConstants(),r=requireDuration$1(),n=requireLoadBalancer(),o=requireLoadBalancerPickFirst(),i=requireLogging(),a=requireOrca(),s=requirePicker(),l=requirePriorityQueue(),p=requireSubchannelAddress();function d(e){i.trace(t.LogVerbosity.DEBUG,"weighted_round_robin",e)}const u="weighted_round_robin";function c(e,t,r){if(t in e&&void 0!==e[t]&&typeof e[t]!==r)throw new Error(`weighted round robin config ${t} parse error: expected ${r}, got ${typeof e[t]}`)}function f(e,t){if(t in e&&void 0!==e[t]&&null!==e[t]){let n;if((0,r.isDuration)(e[t]))n=e[t];else if((0,r.isDurationMessage)(e[t]))n=(0,r.durationMessageToDuration)(e[t]);else{if("string"!=typeof e[t])throw new Error(`weighted round robin config ${t}: expected duration, got ${typeof e[t]}`);{const o=(0,r.parseDuration)(e[t]);if(!o)throw new Error(`weighted round robin config ${t}: failed to parse duration string ${e[t]}`);n=o}}return(0,r.durationToMs)(n)}return null}class h{constructor(e,t,r,n,o,i){this.enableOobLoadReport=null!=e&&e,this.oobLoadReportingPeriodMs=null!=t?t:1e4,this.blackoutPeriodMs=null!=r?r:1e4,this.weightExpirationPeriodMs=null!=n?n:18e4,this.weightUpdatePeriodMs=Math.max(null!=o?o:1e3,100),this.errorUtilizationPenalty=null!=i?i:1}getLoadBalancerName(){return u}toJsonObject(){return{enable_oob_load_report:this.enableOobLoadReport,oob_load_reporting_period:(0,r.durationToString)((0,r.msToDuration)(this.oobLoadReportingPeriodMs)),blackout_period:(0,r.durationToString)((0,r.msToDuration)(this.blackoutPeriodMs)),weight_expiration_period:(0,r.durationToString)((0,r.msToDuration)(this.weightExpirationPeriodMs)),weight_update_period:(0,r.durationToString)((0,r.msToDuration)(this.weightUpdatePeriodMs)),error_utilization_penalty:this.errorUtilizationPenalty}}static createFromJson(e){if(c(e,"enable_oob_load_report","boolean"),c(e,"error_utilization_penalty","number"),e.error_utilization_penalty<0)throw new Error("weighted round robin config error_utilization_penalty < 0");return new h(e.enable_oob_load_report,f(e,"oob_load_reporting_period"),f(e,"blackout_period"),f(e,"weight_expiration_period"),f(e,"weight_update_period"),e.error_utilization_penalty)}getEnableOobLoadReport(){return this.enableOobLoadReport}getOobLoadReportingPeriodMs(){return this.oobLoadReportingPeriodMs}getBlackoutPeriodMs(){return this.blackoutPeriodMs}getWeightExpirationPeriodMs(){return this.weightExpirationPeriodMs}getWeightUpdatePeriodMs(){return this.weightUpdatePeriodMs}getErrorUtilizationPenalty(){return this.errorUtilizationPenalty}}loadBalancerWeightedRoundRobin.WeightedRoundRobinLoadBalancingConfig=h;class m{constructor(e,t){this.metricsHandler=t,this.queue=new l.PriorityQueue((e,t)=>e.deadline<t.deadline);const r=e.filter(e=>e.weight>0);let n;if(r.length<2)n=1;else{let e=0;for(const{weight:t}of r)e+=t;n=e/r.length}for(const t of e){const e=t.weight>0?1/t.weight:n;this.queue.push({endpointName:t.endpointName,picker:t.picker,period:e,deadline:Math.random()*e})}}pick(e){const t=this.queue.pop();this.queue.push(Object.assign(Object.assign({},t),{deadline:t.deadline+t.period}));const r=t.picker.pick(e);if(r.pickResultType===s.PickResultType.COMPLETE){if(this.metricsHandler)return Object.assign(Object.assign({},r),{onCallEnded:(0,a.createMetricsReader)(e=>this.metricsHandler(e,t.endpointName),r.onCallEnded)});{const e=r.subchannel;return Object.assign(Object.assign({},r),{subchannel:e.getWrappedSubchannel()})}}return r}}class g{constructor(t){this.channelControlHelper=t,this.latestConfig=null,this.children=new Map,this.currentState=e.ConnectivityState.IDLE,this.updatesPaused=!1,this.lastError=null,this.weightUpdateTimer=null}countChildrenWithState(e){let t=0;for(const r of this.children.values())r.child.getConnectivityState()===e&&(t+=1);return t}updateWeight(e,t){var r,n;const o=t.rps_fractional;let i=t.application_utilization;i>0&&o>0&&(i+=t.eps/o*(null!==(n=null===(r=this.latestConfig)||void 0===r?void 0:r.getErrorUtilizationPenalty())&&void 0!==n?n:0));const a=0===i?0:o/i;if(0===a)return;const s=new Date;null===e.nonEmptySince&&(e.nonEmptySince=s),e.lastUpdated=s,e.weight=a}getWeight(e){if(!this.latestConfig)return 0;const t=(new Date).getTime();if(t-e.lastUpdated.getTime()>=this.latestConfig.getWeightExpirationPeriodMs())return e.nonEmptySince=null,0;const r=this.latestConfig.getBlackoutPeriodMs();return r>0&&(null===e.nonEmptySince||t-e.nonEmptySince.getTime()<r)?0:e.weight}calculateAndUpdateState(){if(!this.updatesPaused&&this.latestConfig){if(this.countChildrenWithState(e.ConnectivityState.READY)>0){const t=[];for(const[r,n]of this.children)n.child.getConnectivityState()===e.ConnectivityState.READY&&t.push({endpointName:r,picker:n.child.getPicker(),weight:this.getWeight(n)});let r;d("Created picker with weights: "+t.map(e=>e.endpointName+":"+e.weight).join(",")),r=this.latestConfig.getEnableOobLoadReport()?null:(e,t)=>{const r=this.children.get(t);r&&this.updateWeight(r,e)},this.updateState(e.ConnectivityState.READY,new m(t,r),null)}else if(this.countChildrenWithState(e.ConnectivityState.CONNECTING)>0)this.updateState(e.ConnectivityState.CONNECTING,new s.QueuePicker(this),null);else if(this.countChildrenWithState(e.ConnectivityState.TRANSIENT_FAILURE)>0){const t=`weighted_round_robin: No connection established. Last error: ${this.lastError}`;this.updateState(e.ConnectivityState.TRANSIENT_FAILURE,new s.UnavailablePicker({details:t}),t)}else this.updateState(e.ConnectivityState.IDLE,new s.QueuePicker(this),null);for(const{child:t}of this.children.values())t.getConnectivityState()===e.ConnectivityState.IDLE&&t.exitIdle()}}updateState(t,r,n){d(e.ConnectivityState[this.currentState]+" -> "+e.ConnectivityState[t]),this.currentState=t,this.channelControlHelper.updateState(t,r,n)}updateAddressList(t,r,i,l){var u,c;if(!(r instanceof h))return!1;if(!t.ok)return 0===this.children.size&&this.updateState(e.ConnectivityState.TRANSIENT_FAILURE,new s.UnavailablePicker(t.error),t.error.details),!0;if(0===t.value.length){const t=`No addresses resolved. Resolution note: ${l}`;return this.updateState(e.ConnectivityState.TRANSIENT_FAILURE,new s.UnavailablePicker({details:t}),t),!1}d("Connect to endpoint list "+t.value.map(p.endpointToString));const f=new Date,m=new Set;this.updatesPaused=!0,this.latestConfig=r;for(const s of t.value){const t=(0,p.endpointToString)(s);m.add(t);let d=this.children.get(t);d||(d={child:new o.LeafLoadBalancer(s,(0,n.createChildChannelControlHelper)(this.channelControlHelper,{updateState:(t,r,n)=>{this.currentState===e.ConnectivityState.READY&&t!==e.ConnectivityState.READY&&this.channelControlHelper.requestReresolution(),t===e.ConnectivityState.READY&&(d.nonEmptySince=null),n&&(this.lastError=n),this.calculateAndUpdateState()},createSubchannel:(e,t)=>{const r=this.channelControlHelper.createSubchannel(e,t);return(null==d?void 0:d.oobMetricsListener)?new a.OrcaOobMetricsSubchannelWrapper(r,d.oobMetricsListener,this.latestConfig.getOobLoadReportingPeriodMs()):r}}),i,l),lastUpdated:f,nonEmptySince:null,weight:0,oobMetricsListener:null},this.children.set(t,d)),r.getEnableOobLoadReport()?d.oobMetricsListener=e=>{this.updateWeight(d,e)}:d.oobMetricsListener=null}for(const[e,t]of this.children)m.has(e)?t.child.startConnecting():(t.child.destroy(),this.children.delete(e));return this.updatesPaused=!1,this.calculateAndUpdateState(),this.weightUpdateTimer&&clearInterval(this.weightUpdateTimer),this.weightUpdateTimer=null===(c=(u=setInterval(()=>{this.currentState===e.ConnectivityState.READY&&this.calculateAndUpdateState()},r.getWeightUpdatePeriodMs())).unref)||void 0===c?void 0:c.call(u),!0}exitIdle(){}resetBackoff(){}destroy(){for(const e of this.children.values())e.child.destroy();this.children.clear(),this.weightUpdateTimer&&clearInterval(this.weightUpdateTimer)}getTypeName(){return u}}return loadBalancerWeightedRoundRobin}function requireSrc$5(){return hasRequiredSrc$5||(hasRequiredSrc$5=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.experimental=e.ServerMetricRecorder=e.ServerInterceptingCall=e.ResponderBuilder=e.ServerListenerBuilder=e.addAdminServicesToServer=e.getChannelzHandlers=e.getChannelzServiceDefinition=e.InterceptorConfigurationError=e.InterceptingCall=e.RequesterBuilder=e.ListenerBuilder=e.StatusBuilder=e.getClientChannel=e.ServerCredentials=e.Server=e.setLogVerbosity=e.setLogger=e.load=e.loadObject=e.CallCredentials=e.ChannelCredentials=e.waitForClientReady=e.closeClient=e.Channel=e.makeGenericClientConstructor=e.makeClientConstructor=e.loadPackageDefinition=e.Client=e.compressionAlgorithms=e.propagate=e.connectivityState=e.status=e.logVerbosity=e.Metadata=e.credentials=void 0;const t=requireCallCredentials();Object.defineProperty(e,"CallCredentials",{enumerable:!0,get:function(){return t.CallCredentials}});const r=requireChannel();Object.defineProperty(e,"Channel",{enumerable:!0,get:function(){return r.ChannelImplementation}});const n=requireCompressionAlgorithms();Object.defineProperty(e,"compressionAlgorithms",{enumerable:!0,get:function(){return n.CompressionAlgorithms}});const o=requireConnectivityState();Object.defineProperty(e,"connectivityState",{enumerable:!0,get:function(){return o.ConnectivityState}});const i=requireChannelCredentials();Object.defineProperty(e,"ChannelCredentials",{enumerable:!0,get:function(){return i.ChannelCredentials}});const a=requireClient();Object.defineProperty(e,"Client",{enumerable:!0,get:function(){return a.Client}});const s=requireConstants();Object.defineProperty(e,"logVerbosity",{enumerable:!0,get:function(){return s.LogVerbosity}}),Object.defineProperty(e,"status",{enumerable:!0,get:function(){return s.Status}}),Object.defineProperty(e,"propagate",{enumerable:!0,get:function(){return s.Propagate}});const l=requireLogging(),p=requireMakeClient();Object.defineProperty(e,"loadPackageDefinition",{enumerable:!0,get:function(){return p.loadPackageDefinition}}),Object.defineProperty(e,"makeClientConstructor",{enumerable:!0,get:function(){return p.makeClientConstructor}}),Object.defineProperty(e,"makeGenericClientConstructor",{enumerable:!0,get:function(){return p.makeClientConstructor}});const d=requireMetadata();Object.defineProperty(e,"Metadata",{enumerable:!0,get:function(){return d.Metadata}});const u=requireServer();Object.defineProperty(e,"Server",{enumerable:!0,get:function(){return u.Server}});const c=requireServerCredentials();Object.defineProperty(e,"ServerCredentials",{enumerable:!0,get:function(){return c.ServerCredentials}});const f=requireStatusBuilder();Object.defineProperty(e,"StatusBuilder",{enumerable:!0,get:function(){return f.StatusBuilder}}),e.credentials={combineChannelCredentials:(e,...t)=>t.reduce((e,t)=>e.compose(t),e),combineCallCredentials:(e,...t)=>t.reduce((e,t)=>e.compose(t),e),createInsecure:i.ChannelCredentials.createInsecure,createSsl:i.ChannelCredentials.createSsl,createFromSecureContext:i.ChannelCredentials.createFromSecureContext,createFromMetadataGenerator:t.CallCredentials.createFromMetadataGenerator,createFromGoogleCredential:t.CallCredentials.createFromGoogleCredential,createEmpty:t.CallCredentials.createEmpty};e.closeClient=e=>e.close();e.waitForClientReady=(e,t,r)=>e.waitForReady(t,r);e.loadObject=(e,t)=>{throw new Error("Not available in this library. Use @grpc/proto-loader and loadPackageDefinition instead")};e.load=(e,t,r)=>{throw new Error("Not available in this library. Use @grpc/proto-loader and loadPackageDefinition instead")};e.setLogger=e=>{l.setLogger(e)};e.setLogVerbosity=e=>{l.setLoggerVerbosity(e)};e.getClientChannel=e=>a.Client.prototype.getChannel.call(e);var h=requireClientInterceptors();Object.defineProperty(e,"ListenerBuilder",{enumerable:!0,get:function(){return h.ListenerBuilder}}),Object.defineProperty(e,"RequesterBuilder",{enumerable:!0,get:function(){return h.RequesterBuilder}}),Object.defineProperty(e,"InterceptingCall",{enumerable:!0,get:function(){return h.InterceptingCall}}),Object.defineProperty(e,"InterceptorConfigurationError",{enumerable:!0,get:function(){return h.InterceptorConfigurationError}});var m=requireChannelz();Object.defineProperty(e,"getChannelzServiceDefinition",{enumerable:!0,get:function(){return m.getChannelzServiceDefinition}}),Object.defineProperty(e,"getChannelzHandlers",{enumerable:!0,get:function(){return m.getChannelzHandlers}});var g=requireAdmin();Object.defineProperty(e,"addAdminServicesToServer",{enumerable:!0,get:function(){return g.addAdminServicesToServer}});var y=requireServerInterceptors();Object.defineProperty(e,"ServerListenerBuilder",{enumerable:!0,get:function(){return y.ServerListenerBuilder}}),Object.defineProperty(e,"ResponderBuilder",{enumerable:!0,get:function(){return y.ResponderBuilder}}),Object.defineProperty(e,"ServerInterceptingCall",{enumerable:!0,get:function(){return y.ServerInterceptingCall}});var v=requireOrca();Object.defineProperty(e,"ServerMetricRecorder",{enumerable:!0,get:function(){return v.ServerMetricRecorder}});const b=requireExperimental();e.experimental=b;const O=requireResolverDns(),w=requireResolverUds(),S=requireResolverIp(),_=requireLoadBalancerPickFirst(),P=requireLoadBalancerRoundRobin(),E=requireLoadBalancerOutlierDetection(),T=requireLoadBalancerWeightedRoundRobin(),C=requireChannelz();O.setup(),w.setup(),S.setup(),_.setup(),P.setup(),E.setup(),T.setup(),C.setup()}(src$6)),src$6}var grpc={},src$3={},util$3={},hasRequiredUtil$3,hasRequiredSrc$4;function requireUtil$3(){if(hasRequiredUtil$3)return util$3;hasRequiredUtil$3=1,
|
|
64
|
+
/**
|
|
65
|
+
* @license
|
|
66
|
+
* Copyright 2018 gRPC authors.
|
|
67
|
+
*
|
|
68
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
69
|
+
* you may not use this file except in compliance with the License.
|
|
70
|
+
* You may obtain a copy of the License at
|
|
71
|
+
*
|
|
72
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
73
|
+
*
|
|
74
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
75
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
76
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
77
|
+
* See the License for the specific language governing permissions and
|
|
78
|
+
* limitations under the License.
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
Object.defineProperty(util$3,"__esModule",{value:!0}),util$3.addCommonProtos=util$3.loadProtosWithOptionsSync=util$3.loadProtosWithOptions=void 0;const e=require$$0__default.default,t=require$$1__default$2.default,r=requireProtobufjs();function n(r,n){const o=r.resolvePath;r.resolvePath=(r,i)=>{if(t.isAbsolute(i))return i;for(const r of n){const n=t.join(r,i);try{return e.accessSync(n,e.constants.R_OK),n}catch(e){continue}}return process.emitWarning(`${i} not found in any of the include paths ${n}`),o(r,i)}}return util$3.loadProtosWithOptions=async function(e,t){const o=new r.Root;if((t=t||{}).includeDirs){if(!Array.isArray(t.includeDirs))return Promise.reject(new Error("The includeDirs option must be an array"));n(o,t.includeDirs)}const i=await o.load(e,t);return i.resolveAll(),i},util$3.loadProtosWithOptionsSync=function(e,t){const o=new r.Root;if((t=t||{}).includeDirs){if(!Array.isArray(t.includeDirs))throw new Error("The includeDirs option must be an array");n(o,t.includeDirs)}const i=o.loadSync(e,t);return i.resolveAll(),i},util$3.addCommonProtos=function(){const e=require$$3$1,t=require$$4$2,n=require$$5$2,o=require$$6$1;r.common("api",e.nested.google.nested.protobuf.nested),r.common("descriptor",t.nested.google.nested.protobuf.nested),r.common("source_context",n.nested.google.nested.protobuf.nested),r.common("type",o.nested.google.nested.protobuf.nested)},util$3}function requireSrc$4(){return hasRequiredSrc$4||(hasRequiredSrc$4=1,function(e){
|
|
82
|
+
/**
|
|
83
|
+
* @license
|
|
84
|
+
* Copyright 2018 gRPC authors.
|
|
85
|
+
*
|
|
86
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
87
|
+
* you may not use this file except in compliance with the License.
|
|
88
|
+
* You may obtain a copy of the License at
|
|
89
|
+
*
|
|
90
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
91
|
+
*
|
|
92
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
93
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
94
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
95
|
+
* See the License for the specific language governing permissions and
|
|
96
|
+
* limitations under the License.
|
|
97
|
+
*
|
|
98
|
+
*/
|
|
99
|
+
Object.defineProperty(e,"__esModule",{value:!0}),e.loadFileDescriptorSetFromObject=e.loadFileDescriptorSetFromBuffer=e.fromJSON=e.loadSync=e.load=e.IdempotencyLevel=e.isAnyExtension=e.Long=void 0;const t=requireLodash_camelcase(),r=requireProtobufjs(),n=requireDescriptor$1(),o=requireUtil$3(),i=requireUmd();var a;e.Long=i,e.isAnyExtension=function(e){return"@type"in e&&"string"==typeof e["@type"]},function(e){e.IDEMPOTENCY_UNKNOWN="IDEMPOTENCY_UNKNOWN",e.NO_SIDE_EFFECTS="NO_SIDE_EFFECTS",e.IDEMPOTENT="IDEMPOTENT"}(a=e.IdempotencyLevel||(e.IdempotencyLevel={}));const s={longs:String,enums:String,bytes:String,defaults:!0,oneofs:!0,json:!0};function l(e,t){const n=function(e,t){return""===e?t:e+"."+t}(t,e.name);return function(e){return e instanceof r.Service||e instanceof r.Type||e instanceof r.Enum}(e)?[[n,e]]:function(e){return e instanceof r.Namespace||e instanceof r.Root}(e)&&void 0!==e.nested?Object.keys(e.nested).map(t=>l(e.nested[t],n)).reduce((e,t)=>e.concat(t),[]):[]}function p(e,t){return function(r){return e.toObject(e.decode(r),t)}}function d(e){return function(t){if(Array.isArray(t))throw new Error(`Failed to serialize message: expected object with ${e.name} structure, got array instead`);const r=e.fromObject(t);return e.encode(r).finish()}}function u(e){return(e||[]).reduce((e,t)=>{for(const[r,n]of Object.entries(t))if("uninterpreted_option"===r)e.uninterpreted_option.push(t.uninterpreted_option);else e[r]=n;return e},{deprecated:!1,idempotency_level:a.IDEMPOTENCY_UNKNOWN,uninterpreted_option:[]})}function c(e,r,n,o){const i=e.resolvedRequestType,a=e.resolvedResponseType;return{path:"/"+r+"/"+e.name,requestStream:!!e.requestStream,responseStream:!!e.responseStream,requestSerialize:d(i),requestDeserialize:p(i,n),responseSerialize:d(a),responseDeserialize:p(a,n),originalName:t(e.name),requestType:f(i,o),responseType:f(a,o),options:u(e.parsedOptions)}}function f(e,t){const r=e.toDescriptor("proto3");return{format:"Protocol Buffer 3 DescriptorProto",type:r.$type.toObject(r,s),fileDescriptorProtos:t}}function h(e,t,n,o){if(e instanceof r.Service)return function(e,t,r,n){const o={};for(const i of e.methodsArray)o[i.name]=c(i,t,r,n);return o}(e,t,n,o);if(e instanceof r.Type)return f(e,o);if(e instanceof r.Enum)return function(e,t){const r=e.toDescriptor("proto3");return{format:"Protocol Buffer 3 EnumDescriptorProto",type:r.$type.toObject(r,s),fileDescriptorProtos:t}}(e,o);throw new Error("Type mismatch in reflection object handling")}function m(e,t){const r={};e.resolveAll();const o=e.toDescriptor("proto3").file.map(e=>Buffer.from(n.FileDescriptorProto.encode(e).finish()));for(const[n,i]of l(e,""))r[n]=h(i,n,t,o);return r}function g(e,t){t=t||{};const n=r.Root.fromDescriptor(e);return n.resolveAll(),m(n,t)}e.load=function(e,t){return(0,o.loadProtosWithOptions)(e,t).then(e=>m(e,t))},e.loadSync=function(e,t){return m((0,o.loadProtosWithOptionsSync)(e,t),t)},e.fromJSON=function(e,t){t=t||{};const n=r.Root.fromJSON(e);return n.resolveAll(),m(n,t)},e.loadFileDescriptorSetFromBuffer=function(e,t){return g(n.FileDescriptorSet.decode(e),t)},e.loadFileDescriptorSetFromObject=function(e,t){return g(n.FileDescriptorSet.fromObject(e),t)},(0,o.addCommonProtos)()}(src$3)),src$3}var objectHash={exports:{}},hasRequiredObjectHash;function requireObjectHash(){return hasRequiredObjectHash||(hasRequiredObjectHash=1,function(e,t){var r=crypto__default.default;function n(e,t){return function(e,t){var n;n="passthrough"!==t.algorithm?r.createHash(t.algorithm):new p;void 0===n.write&&(n.write=n.update,n.end=n.update);var o=l(t,n);o.dispatch(e),n.update||n.end("");if(n.digest)return n.digest("buffer"===t.encoding?void 0:t.encoding);var i=n.read();if("buffer"===t.encoding)return i;return i.toString(t.encoding)}(e,t=a(e,t))}(t=e.exports=n).sha1=function(e){return n(e)},t.keys=function(e){return n(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},t.MD5=function(e){return n(e,{algorithm:"md5",encoding:"hex"})},t.keysMD5=function(e){return n(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var o=r.getHashes?r.getHashes().slice():["sha1","md5"];o.push("passthrough");var i=["buffer","hex","binary","base64"];function a(e,t){t=t||{};var r={};if(r.algorithm=t.algorithm||"sha1",r.encoding=t.encoding||"hex",r.excludeValues=!!t.excludeValues,r.algorithm=r.algorithm.toLowerCase(),r.encoding=r.encoding.toLowerCase(),r.ignoreUnknown=!0===t.ignoreUnknown,r.respectType=!1!==t.respectType,r.respectFunctionNames=!1!==t.respectFunctionNames,r.respectFunctionProperties=!1!==t.respectFunctionProperties,r.unorderedArrays=!0===t.unorderedArrays,r.unorderedSets=!1!==t.unorderedSets,r.unorderedObjects=!1!==t.unorderedObjects,r.replacer=t.replacer||void 0,r.excludeKeys=t.excludeKeys||void 0,void 0===e)throw new Error("Object argument required.");for(var n=0;n<o.length;++n)o[n].toLowerCase()===r.algorithm.toLowerCase()&&(r.algorithm=o[n]);if(-1===o.indexOf(r.algorithm))throw new Error('Algorithm "'+r.algorithm+'" not supported. supported values: '+o.join(", "));if(-1===i.indexOf(r.encoding)&&"passthrough"!==r.algorithm)throw new Error('Encoding "'+r.encoding+'" not supported. supported values: '+i.join(", "));return r}function s(e){if("function"!=typeof e)return!1;return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function l(e,t,r){r=r||[];var n=function(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")};return{dispatch:function(t){e.replacer&&(t=e.replacer(t));var r=typeof t;return null===t&&(r="null"),this["_"+r](t)},_object:function(t){var o=Object.prototype.toString.call(t),i=/\[object (.*)\]/i.exec(o);i=(i=i?i[1]:"unknown:["+o+"]").toLowerCase();var a;if((a=r.indexOf(t))>=0)return this.dispatch("[CIRCULAR:"+a+"]");if(r.push(t),"undefined"!=typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(t))return n("buffer:"),n(t);if("object"===i||"function"===i||"asyncfunction"===i){var l=Object.keys(t);e.unorderedObjects&&(l=l.sort()),!1===e.respectType||s(t)||l.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(l=l.filter(function(t){return!e.excludeKeys(t)})),n("object:"+l.length+":");var p=this;return l.forEach(function(r){p.dispatch(r),n(":"),e.excludeValues||p.dispatch(t[r]),n(",")})}if(!this["_"+i]){if(e.ignoreUnknown)return n("["+i+"]");throw new Error('Unknown object type "'+i+'"')}this["_"+i](t)},_array:function(t,o){o=void 0!==o?o:!1!==e.unorderedArrays;var i=this;if(n("array:"+t.length+":"),!o||t.length<=1)return t.forEach(function(e){return i.dispatch(e)});var a=[],s=t.map(function(t){var n=new p,o=r.slice();return l(e,n,o).dispatch(t),a=a.concat(o.slice(r.length)),n.read().toString()});return r=r.concat(a),s.sort(),this._array(s,!1)},_date:function(e){return n("date:"+e.toJSON())},_symbol:function(e){return n("symbol:"+e.toString())},_error:function(e){return n("error:"+e.toString())},_boolean:function(e){return n("bool:"+e.toString())},_string:function(e){n("string:"+e.length+":"),n(e.toString())},_function:function(t){n("fn:"),s(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return n("number:"+e.toString())},_xml:function(e){return n("xml:"+e.toString())},_null:function(){return n("Null")},_undefined:function(){return n("Undefined")},_regexp:function(e){return n("regex:"+e.toString())},_uint8array:function(e){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return n("int8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return n("int16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return n("int32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return n("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return n("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return n("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return n("url:"+e.toString())},_map:function(t){n("map:");var r=Array.from(t);return this._array(r,!1!==e.unorderedSets)},_set:function(t){n("set:");var r=Array.from(t);return this._array(r,!1!==e.unorderedSets)},_file:function(e){return n("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return n("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return n("domwindow")},_bigint:function(e){return n("bigint:"+e.toString())},_process:function(){return n("process")},_timer:function(){return n("timer")},_pipe:function(){return n("pipe")},_tcp:function(){return n("tcp")},_udp:function(){return n("udp")},_tty:function(){return n("tty")},_statwatcher:function(){return n("statwatcher")},_securecontext:function(){return n("securecontext")},_connection:function(){return n("connection")},_zlib:function(){return n("zlib")},_context:function(){return n("context")},_nodescript:function(){return n("nodescript")},_httpparser:function(){return n("httpparser")},_dataview:function(){return n("dataview")},_signal:function(){return n("signal")},_fsevent:function(){return n("fsevent")},_tlswrap:function(){return n("tlswrap")}}}function p(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}t.writeToStream=function(e,t,r){return void 0===r&&(r=t,t={}),l(t=a(e,t),r).dispatch(e)}}(objectHash,objectHash.exports)),objectHash.exports}var gax={},warnings={},featureDetection={},hasRequiredFeatureDetection,hasRequiredWarnings;function requireFeatureDetection(){if(hasRequiredFeatureDetection)return featureDetection;var e;hasRequiredFeatureDetection=1,Object.defineProperty(featureDetection,"__esModule",{value:!0}),featureDetection.hasWindowFetch=function(){return t.windowFetch},featureDetection.isNodeJS=function(){return t.nodeJS},featureDetection.hasAbortController=function(){return t.abortController};const t={windowFetch:"undefined"!=typeof window&&(null===window||void 0===window?void 0:window.fetch)&&"function"==typeof(null===window||void 0===window?void 0:window.fetch),nodeJS:"undefined"!=typeof process&&(null===(e=null===process||void 0===process?void 0:process.versions)||void 0===e?void 0:e.node),abortController:"undefined"!=typeof AbortController};return featureDetection}function requireWarnings(){if(hasRequiredWarnings)return warnings;hasRequiredWarnings=1,Object.defineProperty(warnings,"__esModule",{value:!0}),warnings.warn=function(r,n,o){if(t.has(r))return;t.add(r),(0,e.isNodeJS)()?void 0!==o?process.emitWarning(n,{type:o}):process.emitWarning(n):console.warn(n)};const e=requireFeatureDetection(),t=new Set;return warnings}var util$2={};let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(e){return"string"==typeof e&®EX.test(e)}const byteToHex=[];for(let e=0;e<256;++e)byteToHex.push((e+256).toString(16).slice(1));function unsafeStringify(e,t=0){return byteToHex[e[t+0]]+byteToHex[e[t+1]]+byteToHex[e[t+2]]+byteToHex[e[t+3]]+"-"+byteToHex[e[t+4]]+byteToHex[e[t+5]]+"-"+byteToHex[e[t+6]]+byteToHex[e[t+7]]+"-"+byteToHex[e[t+8]]+byteToHex[e[t+9]]+"-"+byteToHex[e[t+10]]+byteToHex[e[t+11]]+byteToHex[e[t+12]]+byteToHex[e[t+13]]+byteToHex[e[t+14]]+byteToHex[e[t+15]]}function stringify(e,t=0){const r=unsafeStringify(e,t);if(!validate(r))throw TypeError("Stringified UUID is invalid");return r}let _nodeId,_clockseq,_lastMSecs=0,_lastNSecs=0;function v1(e,t,r){let n=t&&r||0;const o=t||new Array(16);let i=(e=e||{}).node||_nodeId,a=void 0!==e.clockseq?e.clockseq:_clockseq;if(null==i||null==a){const t=e.random||(e.rng||rng)();null==i&&(i=_nodeId=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==a&&(a=_clockseq=16383&(t[6]<<8|t[7]))}let s=void 0!==e.msecs?e.msecs:Date.now(),l=void 0!==e.nsecs?e.nsecs:_lastNSecs+1;const p=s-_lastMSecs+(l-_lastNSecs)/1e4;if(p<0&&void 0===e.clockseq&&(a=a+1&16383),(p<0||s>_lastMSecs)&&void 0===e.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_lastMSecs=s,_lastNSecs=l,_clockseq=a,s+=122192928e5;const d=(1e4*(268435455&s)+l)%4294967296;o[n++]=d>>>24&255,o[n++]=d>>>16&255,o[n++]=d>>>8&255,o[n++]=255&d;const u=s/4294967296*1e4&268435455;o[n++]=u>>>8&255,o[n++]=255&u,o[n++]=u>>>24&15|16,o[n++]=u>>>16&255,o[n++]=a>>>8|128,o[n++]=255&a;for(let e=0;e<6;++e)o[n+e]=i[e];return t||unsafeStringify(o)}function parse(e){if(!validate(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}const DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",URL$3="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function v35(e,t,r){function n(e,n,o,i){var a;if("string"==typeof e&&(e=stringToBytes(e)),"string"==typeof n&&(n=parse(n)),16!==(null===(a=n)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+e.length);if(s.set(n),s.set(e,n.length),s=r(s),s[6]=15&s[6]|t,s[8]=63&s[8]|128,o){i=i||0;for(let e=0;e<16;++e)o[i+e]=s[e];return o}return unsafeStringify(s)}try{n.name=e}catch(e){}return n.DNS=DNS,n.URL=URL$3,n}function md5(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return md5ToHexEncodedArray(wordsToMd5(bytesToWords(e),8*e.length))}function md5ToHexEncodedArray(e){const t=[],r=32*e.length,n="0123456789abcdef";for(let o=0;o<r;o+=8){const r=e[o>>5]>>>o%32&255,i=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);t.push(i)}return t}function getOutputLength(e){return 14+(e+64>>>9<<4)+1}function wordsToMd5(e,t){e[t>>5]|=128<<t%32,e[getOutputLength(t)-1]=t;let r=1732584193,n=-271733879,o=-1732584194,i=271733878;for(let t=0;t<e.length;t+=16){const a=r,s=n,l=o,p=i;r=md5ff(r,n,o,i,e[t],7,-680876936),i=md5ff(i,r,n,o,e[t+1],12,-389564586),o=md5ff(o,i,r,n,e[t+2],17,606105819),n=md5ff(n,o,i,r,e[t+3],22,-1044525330),r=md5ff(r,n,o,i,e[t+4],7,-176418897),i=md5ff(i,r,n,o,e[t+5],12,1200080426),o=md5ff(o,i,r,n,e[t+6],17,-1473231341),n=md5ff(n,o,i,r,e[t+7],22,-45705983),r=md5ff(r,n,o,i,e[t+8],7,1770035416),i=md5ff(i,r,n,o,e[t+9],12,-1958414417),o=md5ff(o,i,r,n,e[t+10],17,-42063),n=md5ff(n,o,i,r,e[t+11],22,-1990404162),r=md5ff(r,n,o,i,e[t+12],7,1804603682),i=md5ff(i,r,n,o,e[t+13],12,-40341101),o=md5ff(o,i,r,n,e[t+14],17,-1502002290),n=md5ff(n,o,i,r,e[t+15],22,1236535329),r=md5gg(r,n,o,i,e[t+1],5,-165796510),i=md5gg(i,r,n,o,e[t+6],9,-1069501632),o=md5gg(o,i,r,n,e[t+11],14,643717713),n=md5gg(n,o,i,r,e[t],20,-373897302),r=md5gg(r,n,o,i,e[t+5],5,-701558691),i=md5gg(i,r,n,o,e[t+10],9,38016083),o=md5gg(o,i,r,n,e[t+15],14,-660478335),n=md5gg(n,o,i,r,e[t+4],20,-405537848),r=md5gg(r,n,o,i,e[t+9],5,568446438),i=md5gg(i,r,n,o,e[t+14],9,-1019803690),o=md5gg(o,i,r,n,e[t+3],14,-187363961),n=md5gg(n,o,i,r,e[t+8],20,1163531501),r=md5gg(r,n,o,i,e[t+13],5,-1444681467),i=md5gg(i,r,n,o,e[t+2],9,-51403784),o=md5gg(o,i,r,n,e[t+7],14,1735328473),n=md5gg(n,o,i,r,e[t+12],20,-1926607734),r=md5hh(r,n,o,i,e[t+5],4,-378558),i=md5hh(i,r,n,o,e[t+8],11,-2022574463),o=md5hh(o,i,r,n,e[t+11],16,1839030562),n=md5hh(n,o,i,r,e[t+14],23,-35309556),r=md5hh(r,n,o,i,e[t+1],4,-1530992060),i=md5hh(i,r,n,o,e[t+4],11,1272893353),o=md5hh(o,i,r,n,e[t+7],16,-155497632),n=md5hh(n,o,i,r,e[t+10],23,-1094730640),r=md5hh(r,n,o,i,e[t+13],4,681279174),i=md5hh(i,r,n,o,e[t],11,-358537222),o=md5hh(o,i,r,n,e[t+3],16,-722521979),n=md5hh(n,o,i,r,e[t+6],23,76029189),r=md5hh(r,n,o,i,e[t+9],4,-640364487),i=md5hh(i,r,n,o,e[t+12],11,-421815835),o=md5hh(o,i,r,n,e[t+15],16,530742520),n=md5hh(n,o,i,r,e[t+2],23,-995338651),r=md5ii(r,n,o,i,e[t],6,-198630844),i=md5ii(i,r,n,o,e[t+7],10,1126891415),o=md5ii(o,i,r,n,e[t+14],15,-1416354905),n=md5ii(n,o,i,r,e[t+5],21,-57434055),r=md5ii(r,n,o,i,e[t+12],6,1700485571),i=md5ii(i,r,n,o,e[t+3],10,-1894986606),o=md5ii(o,i,r,n,e[t+10],15,-1051523),n=md5ii(n,o,i,r,e[t+1],21,-2054922799),r=md5ii(r,n,o,i,e[t+8],6,1873313359),i=md5ii(i,r,n,o,e[t+15],10,-30611744),o=md5ii(o,i,r,n,e[t+6],15,-1560198380),n=md5ii(n,o,i,r,e[t+13],21,1309151649),r=md5ii(r,n,o,i,e[t+4],6,-145523070),i=md5ii(i,r,n,o,e[t+11],10,-1120210379),o=md5ii(o,i,r,n,e[t+2],15,718787259),n=md5ii(n,o,i,r,e[t+9],21,-343485551),r=safeAdd(r,a),n=safeAdd(n,s),o=safeAdd(o,l),i=safeAdd(i,p)}return[r,n,o,i]}function bytesToWords(e){if(0===e.length)return[];const t=8*e.length,r=new Uint32Array(getOutputLength(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}function safeAdd(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function bitRotateLeft(e,t){return e<<t|e>>>32-t}function md5cmn(e,t,r,n,o,i){return safeAdd(bitRotateLeft(safeAdd(safeAdd(t,e),safeAdd(n,i)),o),r)}function md5ff(e,t,r,n,o,i,a){return md5cmn(t&r|~t&n,e,t,o,i,a)}function md5gg(e,t,r,n,o,i,a){return md5cmn(t&n|r&~n,e,t,o,i,a)}function md5hh(e,t,r,n,o,i,a){return md5cmn(t^r^n,e,t,o,i,a)}function md5ii(e,t,r,n,o,i,a){return md5cmn(r^(t|~n),e,t,o,i,a)}const v3=v35("v3",48,md5),randomUUID="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var native={randomUUID:randomUUID};function v4(e,t,r){if(native.randomUUID&&!t&&!e)return native.randomUUID();const n=(e=e||{}).random||(e.rng||rng)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return unsafeStringify(n)}function f(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function ROTL(e,t){return e<<t|e>>>32-t}function sha1(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const n=e.length/4+2,o=Math.ceil(n/16),i=new Array(o);for(let t=0;t<o;++t){const r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];i[t]=r}i[o-1][14]=8*(e.length-1)/Math.pow(2,32),i[o-1][14]=Math.floor(i[o-1][14]),i[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const n=new Uint32Array(80);for(let t=0;t<16;++t)n[t]=i[e][t];for(let e=16;e<80;++e)n[e]=ROTL(n[e-3]^n[e-8]^n[e-14]^n[e-16],1);let o=r[0],a=r[1],s=r[2],l=r[3],p=r[4];for(let e=0;e<80;++e){const r=Math.floor(e/20),i=ROTL(o,5)+f(r,a,s,l)+p+t[r]+n[e]>>>0;p=l,l=s,s=ROTL(a,30)>>>0,a=o,o=i}r[0]=r[0]+o>>>0,r[1]=r[1]+a>>>0,r[2]=r[2]+s>>>0,r[3]=r[3]+l>>>0,r[4]=r[4]+p>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}const v5=v35("v5",80,sha1);var nil="00000000-0000-0000-0000-000000000000";function version$2(e){if(!validate(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}var esmBrowser=Object.freeze({__proto__:null,NIL:nil,parse:parse,stringify:stringify,v1:v1,v3:v3,v4:v4,v5:v5,validate:validate,version:version$2}),require$$9=getAugmentedNamespace(esmBrowser),hasRequiredUtil$2;function requireUtil$2(){if(hasRequiredUtil$2)return util$2;hasRequiredUtil$2=1,Object.defineProperty(util$2,"__esModule",{value:!0}),util$2.camelToSnakeCase=function(e){const n=t(e);if(0===n.length)return e;const o=[n[0]];return o.push(...n.slice(1).map(r)),o.join("_")},util$2.toCamelCase=n,util$2.toLowerCamelCase=function(e){const t=n(e);if(0===t.length)return t;return t[0].toLowerCase()+t.slice(1)},util$2.makeUUID=function(){return(0,e.v4)()};const e=require$$9;function t(e,t=!1){return t&&(e=e.replace(/([A-Z])([A-Z]+)([A-Z])/g,e=>e[0]+e.slice(1,e.length-1).toLowerCase()+e[e.length-1])),e.split(/(?=[A-Z])|[^A-Za-z0-9.]+/).filter(e=>e.length>0).map((e,t)=>0===t?e:e.toLowerCase())}function r(e){return 0===e.length?e:e[0].toLowerCase()+e.slice(1)}function n(e){const r=t(e,!0);if(0===r.length)return e;const n=[r[0]];return n.push(...r.slice(1).map(e=>e.match(/^\d+$/)?"_"+e:function(e){return 0===e.length?e:e[0].toUpperCase()+e.slice(1)}(e))),n.join("")}return util$2}var status={},hasRequiredStatus,hasRequiredGax;function requireStatus(){return hasRequiredStatus||(hasRequiredStatus=1,function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.HttpCodeToRpcCodeMap=e.Status=void 0,e.rpcCodeFromHttpStatusCode=function(r){if(e.HttpCodeToRpcCodeMap.has(r))return e.HttpCodeToRpcCodeMap.get(r);if(r>=200&&r<300)return t.OK;if(r>=400&&r<500)return t.FAILED_PRECONDITION;if(r>=500&&r<600)return t.INTERNAL;return t.UNKNOWN},function(e){e[e.OK=0]="OK",e[e.CANCELLED=1]="CANCELLED",e[e.UNKNOWN=2]="UNKNOWN",e[e.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",e[e.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",e[e.NOT_FOUND=5]="NOT_FOUND",e[e.ALREADY_EXISTS=6]="ALREADY_EXISTS",e[e.PERMISSION_DENIED=7]="PERMISSION_DENIED",e[e.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",e[e.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",e[e.ABORTED=10]="ABORTED",e[e.OUT_OF_RANGE=11]="OUT_OF_RANGE",e[e.UNIMPLEMENTED=12]="UNIMPLEMENTED",e[e.INTERNAL=13]="INTERNAL",e[e.UNAVAILABLE=14]="UNAVAILABLE",e[e.DATA_LOSS=15]="DATA_LOSS",e[e.UNAUTHENTICATED=16]="UNAUTHENTICATED"}(t||(e.Status=t={})),e.HttpCodeToRpcCodeMap=new Map([[400,t.INVALID_ARGUMENT],[401,t.UNAUTHENTICATED],[403,t.PERMISSION_DENIED],[404,t.NOT_FOUND],[409,t.ABORTED],[416,t.OUT_OF_RANGE],[429,t.RESOURCE_EXHAUSTED],[499,t.CANCELLED],[501,t.UNIMPLEMENTED],[503,t.UNAVAILABLE],[504,t.DEADLINE_EXCEEDED]])}(status)),status}function requireGax(){if(hasRequiredGax)return gax;hasRequiredGax=1,Object.defineProperty(gax,"__esModule",{value:!0}),gax.CallSettings=gax.RetryOptions=void 0,gax.convertRetryOptions=function(t,n){var i,s,l,p;if(!t)return t;if(!n)return t;if(t.retry&&t.retryRequestOptions)throw new Error("Only one of retry or retryRequestOptions may be set");if(t.retryRequestOptions){void 0!==t.retryRequestOptions.objectMode&&(0,e.warn)("retry_request_options","objectMode override is not supported. It is set to true internally by default in gax.","UnsupportedParameterWarning"),void 0!==t.retryRequestOptions.noResponseRetries&&(0,e.warn)("retry_request_options","noResponseRetries override is not supported. Please specify retry codes or a function to determine retry eligibility.","UnsupportedParameterWarning"),void 0!==t.retryRequestOptions.currentRetryAttempt&&(0,e.warn)("retry_request_options","currentRetryAttempt override is not supported. Retry attempts are tracked internally.","UnsupportedParameterWarning");let n,d=[r.Status.UNAVAILABLE];t.retryRequestOptions.shouldRetryFn&&(d=[],n=t.retryRequestOptions.shouldRetryFn),t.maxRetries=null!==(s=null===(i=null==t?void 0:t.retryRequestOptions)||void 0===i?void 0:i.retries)&&void 0!==s?s:t.maxRetries;const u=a();let c,f;void 0!==t.retryRequestOptions.maxRetryDelay&&(c=1e3*t.retryRequestOptions.maxRetryDelay);const h=null!==(p=null===(l=null==t?void 0:t.retryRequestOptions)||void 0===l?void 0:l.retryDelayMultiplier)&&void 0!==p?p:u.retryDelayMultiplier;void 0!==t.retryRequestOptions.totalTimeout?f=1e3*t.retryRequestOptions.totalTimeout:void 0===t.maxRetries&&(f=3e4,(0,e.warn)("retry_request_options_no_max_retries_timeout","Neither maxRetries nor totalTimeout were passed. Defaulting to totalTimeout of 30000ms.","MissingParameterWarning")),u.maxRetryDelayMillis=null!=c?c:u.maxRetryDelayMillis,u.retryDelayMultiplier=null!=h?h:u.retryDelayMultiplier,u.totalTimeoutMillis=null!=f?f:u.totalTimeoutMillis;const m=o(d,u,n);t.retry=m,delete t.retryRequestOptions,(0,e.warn)("retry_request_options","retryRequestOptions will be deprecated in a future release. Please use retryOptions to pass retry options at call time","DeprecationWarning")}return t},gax.createRetryOptions=o,gax.createBackoffSettings=i,gax.createDefaultBackoffSettings=a,gax.createMaxRetriesBackoffSettings=function(e,t,r,n,o,i,a){return{initialRetryDelayMillis:e,retryDelayMultiplier:t,maxRetryDelayMillis:r,initialRpcTimeoutMillis:n,rpcTimeoutMultiplier:o,maxRpcTimeoutMillis:i,maxRetries:a}},gax.createBundleOptions=s,gax.constructSettings=function(e,r,o,i,a){a=a||{};const d={},u=(r.interfaces||{})[e];if(!u)return null;const c=(o.interfaces||{})[e]||{},f=u.methods,h=c.methods||{};for(const r in f){const o=f[r],m=(0,t.toLowerCamelCase)(r);let g=l(o,u.retry_codes,u.retry_params,i),y=o.bundling,v=o.timeout_millis;if(r in h){const e=h[r];e&&("bundling"in e&&(y=e.bundling),"timeout_millis"in e&&(v=e.timeout_millis)),g=p(g,l(e,c.retry_codes,c.retry_params,i))}const b=e;d[m]=new n({timeout:v,retry:g,bundleOptions:y?s(y):null,otherArgs:a,apiName:b})}return d},gax.createByteLengthFunction=function(t){return function(r){try{return t.encode(r).finish().length}catch(t){const n=JSON.stringify(r);return(0,e.warn)("error_encoding_protobufjs_object",`Cannot encode protobuf.js object: ${n}: ${t}`),n.length}}};const e=requireWarnings(),t=requireUtil$2(),r=requireStatus();gax.RetryOptions=class{constructor(e,t,r,n){this.retryCodes=e,this.backoffSettings=t,this.shouldRetryFn=r,this.getResumptionRequestFn=n}};class n{constructor(e){var t;e=e||{},this.timeout=e.timeout||3e4,this.retry=e.retry,this.autoPaginate=!("autoPaginate"in e)||e.autoPaginate,this.maxResults=e.maxResults,this.otherArgs=e.otherArgs||{},this.bundleOptions=e.bundleOptions,this.isBundling=!("isBundling"in e)||e.isBundling,this.longrunning="longrunning"in e?e.longrunning:void 0,this.apiName=null!==(t=e.apiName)&&void 0!==t?t:void 0,this.retryRequestOptions=e.retryRequestOptions}merge(e){if(!e)return new n(this);let t=this.timeout,r=this.retry,o=this.autoPaginate,i=this.maxResults,a=this.otherArgs,s=this.isBundling,l=this.longrunning,d=this.apiName,u=this.retryRequestOptions;if("timeout"in e&&(t=e.timeout),(null==r?void 0:r.retryCodes)&&(r.backoffSettings.initialRpcTimeoutMillis=t,r.backoffSettings.maxRpcTimeoutMillis=t,r.backoffSettings.totalTimeoutMillis=t),"retry"in e&&(r=p(r||{},e.retry)),"autoPaginate"in e&&!e.autoPaginate&&(o=!1),"maxResults"in e&&(i=e.maxResults),"otherArgs"in e){a={};for(const e in this.otherArgs)a[e]=this.otherArgs[e];for(const t in e.otherArgs)a[t]=e.otherArgs[t]}return"isBundling"in e&&(s=e.isBundling),"maxRetries"in e&&void 0!==e.maxRetries&&(r.backoffSettings.maxRetries=e.maxRetries,delete r.backoffSettings.totalTimeoutMillis),"longrunning"in e&&(l=e.longrunning),"apiName"in e&&(d=e.apiName),"retryRequestOptions"in e&&(u=e.retryRequestOptions),new n({timeout:t,retry:r,bundleOptions:this.bundleOptions,longrunning:l,autoPaginate:o,maxResults:i,otherArgs:a,isBundling:s,apiName:d,retryRequestOptions:u})}}function o(e,t,r,n){return{retryCodes:e,backoffSettings:t,shouldRetryFn:r,getResumptionRequestFn:n}}function i(e,t,r,n,o,i,a){return{initialRetryDelayMillis:e,retryDelayMultiplier:t,maxRetryDelayMillis:r,initialRpcTimeoutMillis:n,rpcTimeoutMultiplier:o,maxRpcTimeoutMillis:i,totalTimeoutMillis:a}}function a(){return i(100,1.3,6e4,null,null,null,null)}function s(e){["element_count_threshold","element_count_limit","request_byte_threshold","request_byte_limit","delay_threshold_millis"].forEach(t=>{if(t in e&&"number"!=typeof e[t])throw new Error(`${t} should be a number`)});const t=e.element_count_threshold||0,r=e.element_count_limit||0,n=e.request_byte_threshold||0,o=e.request_byte_limit||0,i=e.delay_threshold_millis||0;if(0===t&&0===n&&0===i)throw new Error("one threshold should be > 0");return{elementCountThreshold:t,elementCountLimit:r,requestByteThreshold:n,requestByteLimit:o,delayThreshold:i}}function l(e,t,r,n){if(!e)return null;let a=null;if(t&&"retry_codes_name"in e){a=(t[e.retry_codes_name]||[]).map(e=>Number(n[e]))}let s=null;if(r&&"retry_params_name"in e){const t=r[e.retry_params_name];s=i(t.initial_retry_delay_millis,t.retry_delay_multiplier,t.max_retry_delay_millis,t.initial_rpc_timeout_millis,t.rpc_timeout_multiplier,t.max_rpc_timeout_millis,t.total_timeout_millis)}return o(a,s)}function p(e,t){if(!t)return null;if(!(t.retryCodes||t.backoffSettings||t.shouldRetryFn||t.getResumptionRequestFn))return e;return o(t.retryCodes?t.retryCodes:e.retryCodes,t.backoffSettings?t.backoffSettings:e.backoffSettings,t.shouldRetryFn?t.shouldRetryFn:e.shouldRetryFn,t.getResumptionRequestFn?t.getResumptionRequestFn:e.getResumptionRequestFn)}return gax.CallSettings=n,gax}var require$$10=["google/api/annotations.proto","google/api/apikeys/v2/apikeys.proto","google/api/apikeys/v2/resources.proto","google/api/auth.proto","google/api/backend.proto","google/api/billing.proto","google/api/client.proto","google/api/cloudquotas/v1/cloudquotas.proto","google/api/cloudquotas/v1/resources.proto","google/api/config_change.proto","google/api/consumer.proto","google/api/context.proto","google/api/control.proto","google/api/distribution.proto","google/api/documentation.proto","google/api/endpoint.proto","google/api/error_reason.proto","google/api/expr/conformance/v1alpha1/conformance_service.proto","google/api/expr/v1alpha1/checked.proto","google/api/expr/v1alpha1/eval.proto","google/api/expr/v1alpha1/explain.proto","google/api/expr/v1alpha1/syntax.proto","google/api/expr/v1alpha1/value.proto","google/api/expr/v1beta1/decl.proto","google/api/expr/v1beta1/eval.proto","google/api/expr/v1beta1/expr.proto","google/api/expr/v1beta1/source.proto","google/api/expr/v1beta1/value.proto","google/api/field_behavior.proto","google/api/field_info.proto","google/api/http.proto","google/api/httpbody.proto","google/api/label.proto","google/api/launch_stage.proto","google/api/log.proto","google/api/logging.proto","google/api/metric.proto","google/api/monitored_resource.proto","google/api/monitoring.proto","google/api/policy.proto","google/api/quota.proto","google/api/resource.proto","google/api/routing.proto","google/api/service.proto","google/api/servicecontrol/v1/check_error.proto","google/api/servicecontrol/v1/distribution.proto","google/api/servicecontrol/v1/http_request.proto","google/api/servicecontrol/v1/log_entry.proto","google/api/servicecontrol/v1/metric_value.proto","google/api/servicecontrol/v1/operation.proto","google/api/servicecontrol/v1/quota_controller.proto","google/api/servicecontrol/v1/service_controller.proto","google/api/servicecontrol/v2/service_controller.proto","google/api/servicemanagement/v1/resources.proto","google/api/servicemanagement/v1/servicemanager.proto","google/api/serviceusage/v1/resources.proto","google/api/serviceusage/v1/serviceusage.proto","google/api/serviceusage/v1beta1/resources.proto","google/api/serviceusage/v1beta1/serviceusage.proto","google/api/source_info.proto","google/api/system_parameter.proto","google/api/usage.proto","google/api/visibility.proto","google/cloud/location/locations.proto","google/iam/v1/iam_policy.proto","google/iam/v1/logging/audit_data.proto","google/iam/v1/options.proto","google/iam/v1/policy.proto","google/logging/type/http_request.proto","google/logging/type/log_severity.proto","google/longrunning/operations.proto","google/monitoring/v3/alert.proto","google/monitoring/v3/alert_service.proto","google/monitoring/v3/common.proto","google/monitoring/v3/dropped_labels.proto","google/monitoring/v3/group.proto","google/monitoring/v3/group_service.proto","google/monitoring/v3/metric.proto","google/monitoring/v3/metric_service.proto","google/monitoring/v3/mutation_record.proto","google/monitoring/v3/notification.proto","google/monitoring/v3/notification_service.proto","google/monitoring/v3/query_service.proto","google/monitoring/v3/service.proto","google/monitoring/v3/service_service.proto","google/monitoring/v3/snooze.proto","google/monitoring/v3/snooze_service.proto","google/monitoring/v3/span_context.proto","google/monitoring/v3/uptime.proto","google/monitoring/v3/uptime_service.proto","google/protobuf/any.proto","google/protobuf/api.proto","google/protobuf/bridge/message_set.proto","google/protobuf/compiler/plugin.proto","google/protobuf/compiler/ruby/ruby_generated_code.proto","google/protobuf/compiler/ruby/ruby_generated_code_proto2.proto","google/protobuf/compiler/ruby/ruby_generated_code_proto2_import.proto","google/protobuf/compiler/ruby/ruby_generated_pkg_explicit.proto","google/protobuf/compiler/ruby/ruby_generated_pkg_explicit_legacy.proto","google/protobuf/compiler/ruby/ruby_generated_pkg_implicit.proto","google/protobuf/cpp_features.proto","google/protobuf/descriptor.proto","google/protobuf/duration.proto","google/protobuf/empty.proto","google/protobuf/field_mask.proto","google/protobuf/source_context.proto","google/protobuf/struct.proto","google/protobuf/timestamp.proto","google/protobuf/type.proto","google/protobuf/util/json_format.proto","google/protobuf/util/json_format_proto3.proto","google/protobuf/wrappers.proto","google/rpc/code.proto","google/rpc/context/attribute_context.proto","google/rpc/context/audit_context.proto","google/rpc/error_details.proto","google/rpc/http.proto","google/rpc/status.proto","google/type/calendar_period.proto","google/type/color.proto","google/type/date.proto","google/type/datetime.proto","google/type/dayofweek.proto","google/type/decimal.proto","google/type/expr.proto","google/type/fraction.proto","google/type/interval.proto","google/type/latlng.proto","google/type/localized_text.proto","google/type/money.proto","google/type/month.proto","google/type/phone_number.proto","google/type/postal_address.proto","google/type/quaternion.proto","google/type/timeofday.proto"],hasRequiredGrpc;function requireGrpc(){if(hasRequiredGrpc)return grpc;hasRequiredGrpc=1,Object.defineProperty(grpc,"__esModule",{value:!0}),grpc.GoogleProtoFilesRoot=grpc.GrpcClient=grpc.ClientStub=void 0;const e=requireSrc$4(),t=require$$1__default$5.default,r=require$$0__default.default,n=require$$3__default.default,o=requireSrc$5(),i=require$$0__default$1.default,a=require$$1__default$2.default,s=require$$1__default$2.default,l=requireProtobufjs(),p=requireObjectHash(),d=requireGax(),u=s.join(__dirname,"..","..","build","protos"),c=[];c.push(u);const f=require$$10.map(e=>e.replace(/[/\\]/g,s.sep));class h extends o.Client{}grpc.ClientStub=h;class m{static protoCacheKey(e,t){if(e&&(!Array.isArray(e)||0!==e.length&&e[0]))return JSON.stringify(e)+" "+JSON.stringify(t)}static clearProtoCache(){m.protoCache.clear()}constructor(e={}){var t;this.auth=e.auth||new n.GoogleAuth(e),this.fallback=!1;const r=Number(null===(t=process.version.match(/^v(\d+)/))||void 0===t?void 0:t[1]);if(Number.isNaN(r)||r<10){throw new Error("Node.js v10.0.0 is a minimum requirement. To learn about legacy version support visit: https://github.com/googleapis/google-cloud-node#supported-nodejs-versions")}"grpc"in e?(this.grpc=e.grpc,this.grpcVersion=""):(this.grpc=o,this.grpcVersion=require$$11.version)}async _getCredentials(e){if(e.sslCreds)return e.sslCreds;const t=this.grpc,r=e.cert&&e.key?t.credentials.createSsl(null,Buffer.from(e.key),Buffer.from(e.cert)):t.credentials.createSsl(),n=await this.auth.getClient();return t.credentials.combineChannelCredentials(r,t.credentials.createFromGoogleCredential(n))}static defaultOptions(){const e=c.slice();return{keepCase:!1,longs:String,enums:String,defaults:!0,oneofs:!0,includeDirs:e}}loadFromProto(t,r,n=!1){const o=m.protoCacheKey(t,r);let i=o?m.protoCache.get(o):void 0;if(n||!i){const n=e.loadSync(t,r);i=this.grpc.loadPackageDefinition(n),o&&m.protoCache.set(o,i)}return i}loadProto(e,t,r=!1){if(t||(t=s.basename(e),e=s.dirname(e)),Array.isArray(t)&&0===t.length)return{};const n=m.defaultOptions();return n.includeDirs.unshift(e),this.loadFromProto(t,n,r)}static _resolveFile(e,t){if(r.existsSync(s.join(e,t)))return s.join(e,t);if(f.indexOf(t)>-1)return s.join(u,t);throw new Error(t+" could not be found in "+e)}loadProtoJSON(t,r=!1){const n=p(JSON.stringify(t)).toString(),o=m.protoCache.get(n);if(o&&!r)return o;const i=m.defaultOptions(),a=e.fromJSON(t,i),s=this.grpc.loadPackageDefinition(a);return m.protoCache.set(n,s),s}metadataBuilder(e){const t=new(0,this.grpc.Metadata);for(const r in e){const n=e[r];Array.isArray(n)?n.forEach(e=>t.add(r,e)):t.set(r,`${n}`)}return function(e,r){let n=!1,o=t;if(r)for(const e in r)if("x-goog-api-client"!==e.toLowerCase()){n||(n=!0,o=o.clone());const t=r[e];Array.isArray(t)?t.forEach(t=>o.add(e,t)):o.set(e,`${t}`)}return o}}constructSettings(e,t,r,n){return d.constructSettings(e,t,r,this.grpc.status,{metadataBuilder:this.metadataBuilder(n)})}async createStub(e,t,r){const n=["grpc.callInvocationTransformer","grpc.channelFactoryOverride","grpc.gcpApiConfig"],[o,i]=await this._detectClientCertificate(t,t.universeDomain),a=this._mtlsServicePath(t.servicePath,r,o&&i),s=Object.assign({},t,{cert:o,key:i,servicePath:a}),l=a+":"+s.port;if(t.universeDomain||(t.universeDomain="googleapis.com"),t.universeDomain){const e=await this.auth.getUniverseDomain();if(e&&t.universeDomain!==e)throw new Error(`The configured universe domain (${t.universeDomain}) does not match the universe domain found in the credentials (${e}). If you haven't configured the universe domain explicitly, googleapis.com is the default.`)}const p=await this._getCredentials(s),d={"grpc.max_receive_message_length":-1,"grpc.max_send_message_length":-1,"grpc.initial_reconnect_backoff_ms":1e3};Object.keys(s).forEach(e=>{const r=t[e];e.startsWith("grpc.grpc.")&&(e=e.replace(/^grpc\./,"")),e.startsWith("grpc.")&&(n.includes(e)&&(e=e.replace(/^grpc\./,"")),d[e]=r),e.startsWith("grpc-node.")&&(d[e]=r)});return new e(l,p,d)}async _detectClientCertificate(e,n){var o;const s=/(?<cert>-----BEGIN CERTIFICATE-----.*?-----END CERTIFICATE-----)/s,l=/(?<key>-----BEGIN PRIVATE KEY-----.*?-----END PRIVATE KEY-----)/s;if("undefined"!=typeof process&&"true"===(null===(o=null===process||void 0===process?void 0:process.env)||void 0===o?void 0:o.GOOGLE_API_USE_CLIENT_CERTIFICATE)){if(n&&"googleapis.com"!==n)throw new Error("mTLS is not supported outside of googleapis.com universe domain.");if((null==e?void 0:e.cert)&&(null==e?void 0:e.key))return[e.cert,e.key];const o=(0,a.join)(i.homedir(),".secureConnect","context_aware_metadata.json"),p=JSON.parse(await async function(e){return new Promise((t,n)=>{r.readFile(e,"utf8",(e,r)=>{if(e)return n(e);t(r)})})}(o));if(!p.cert_provider_command)throw Error("no cert_provider_command found");const d=await async function(e,r){return new Promise((n,o)=>{(0,t.execFile)(e,r,(e,t)=>{if(e)return o(e);n(t)})})}(p.cert_provider_command[0],p.cert_provider_command.slice(1)),u=d.toString().match(s),c=d.toString().match(l);if((null==u?void 0:u.groups)&&(null==c?void 0:c.groups))return[u.groups.cert,c.groups.key];throw Error("unable to parse certificate and key")}return[void 0,void 0]}_mtlsServicePath(e,t,r){var n,o;return t||!e||"undefined"!=typeof process&&"never"===(null===(n=null===process||void 0===process?void 0:process.env)||void 0===n?void 0:n.GOOGLE_API_USE_MTLS_ENDPOINT)?e:"undefined"!=typeof process&&"always"===(null===(o=null===process||void 0===process?void 0:process.env)||void 0===o?void 0:o.GOOGLE_API_USE_MTLS_ENDPOINT)||r?e.replace("googleapis.com","mtls.googleapis.com"):e}static createByteLengthFunction(e){return d.createByteLengthFunction(e)}}grpc.GrpcClient=m,m.protoCache=new Map;class g extends l.Root{constructor(...e){super(...e)}resolvePath(e,t){if(e=s.normalize(e),t=s.normalize(t),s.isAbsolute(t)){if(!r.existsSync(t))throw new Error("The include `"+t+"` was not found.");return t}return f.indexOf(t)>-1?s.join(u,t):g._findIncludePath(e,t)}static _findIncludePath(e,t){e=s.normalize(e),t=s.normalize(t);let n=e,o=r.existsSync(s.join(n,t));for(;!o&&n.length>0;)n=n.substring(0,n.lastIndexOf(s.sep)),o=r.existsSync(s.join(n,t));if(!o)throw new Error("The include `"+t+"` was not found.");return s.join(n,t)}}return grpc.GoogleProtoFilesRoot=g,grpc}function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var iam_service={exports:{}},minimal,hasRequiredMinimal,hasRequiredIam_service;function requireMinimal(){return hasRequiredMinimal?minimal:(hasRequiredMinimal=1,minimal=requireIndexMinimal())}function requireIam_service(){return hasRequiredIam_service||(hasRequiredIam_service=1,e=iam_service,"function"==typeof commonjsRequire&&e&&e.exports&&(e.exports=function(e){var t,r,n,o,i,a=e.Reader,s=e.Writer,l=e.util,p=e.roots.iam_protos||(e.roots.iam_protos={});function d(t,r,n){e.rpc.Service.call(this,t,r,n)}function u(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function c(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function f(e){if(this.permissions=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function h(e){if(this.permissions=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function m(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function g(e){if(this.bindings=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function y(e){if(this.members=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function v(e){if(this.bindingDeltas=[],this.auditConfigDeltas=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function b(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function O(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function w(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function S(e){if(this.rules=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function _(e){if(this.additionalBindings=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function P(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function E(e){if(this.pattern=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function T(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function C(e){if(this.file=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function R(e){if(this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function D(e){if(this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.reservedRange=[],this.reservedName=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function k(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function x(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function j(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function A(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function N(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function I(e){if(this.value=[],this.reservedRange=[],this.reservedName=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function q(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function M(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function L(e){if(this.method=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function F(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function B(e){if(this.uninterpretedOption=[],this[".google.api.resourceDefinition"]=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function V(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function U(e){if(this.uninterpretedOption=[],this[".google.api.fieldBehavior"]=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function $(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function G(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function H(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function z(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function W(e){if(this.uninterpretedOption=[],this[".google.api.methodSignature"]=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function J(e){if(this.name=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function Y(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function K(e){if(this.location=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function X(e){if(this.path=[],this.span=[],this.leadingDetachedComments=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function Q(e){if(this.annotation=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function Z(e){if(this.path=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function ee(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return p.google=((i={}).iam=((n={}).v1=((r={}).IAMPolicy=(((d.prototype=Object.create(e.rpc.Service.prototype)).constructor=d).create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(d.prototype.setIamPolicy=function e(t,r){return this.rpcCall(e,p.google.iam.v1.SetIamPolicyRequest,p.google.iam.v1.Policy,t,r)},"name",{value:"SetIamPolicy"}),Object.defineProperty(d.prototype.getIamPolicy=function e(t,r){return this.rpcCall(e,p.google.iam.v1.GetIamPolicyRequest,p.google.iam.v1.Policy,t,r)},"name",{value:"GetIamPolicy"}),Object.defineProperty(d.prototype.testIamPermissions=function e(t,r){return this.rpcCall(e,p.google.iam.v1.TestIamPermissionsRequest,p.google.iam.v1.TestIamPermissionsResponse,t,r)},"name",{value:"TestIamPermissions"}),d),r.SetIamPolicyRequest=(u.prototype.resource="",u.prototype.policy=null,u.create=function(e){return new u(e)},u.encode=function(e,t){return t=t||s.create(),null!=e.resource&&Object.hasOwnProperty.call(e,"resource")&&t.uint32(10).string(e.resource),null!=e.policy&&Object.hasOwnProperty.call(e,"policy")&&p.google.iam.v1.Policy.encode(e.policy,t.uint32(18).fork()).ldelim(),t},u.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},u.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.iam.v1.SetIamPolicyRequest;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.resource=e.string();break;case 2:n.policy=p.google.iam.v1.Policy.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},u.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},u.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.resource&&e.hasOwnProperty("resource")&&!l.isString(e.resource)?"resource: string expected":null!=e.policy&&e.hasOwnProperty("policy")&&(e=p.google.iam.v1.Policy.verify(e.policy))?"policy."+e:null},u.fromObject=function(e){if(e instanceof p.google.iam.v1.SetIamPolicyRequest)return e;var t=new p.google.iam.v1.SetIamPolicyRequest;if(null!=e.resource&&(t.resource=String(e.resource)),null!=e.policy){if("object"!=typeof e.policy)throw TypeError(".google.iam.v1.SetIamPolicyRequest.policy: object expected");t.policy=p.google.iam.v1.Policy.fromObject(e.policy)}return t},u.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.resource="",r.policy=null),null!=e.resource&&e.hasOwnProperty("resource")&&(r.resource=e.resource),null!=e.policy&&e.hasOwnProperty("policy")&&(r.policy=p.google.iam.v1.Policy.toObject(e.policy,t)),r},u.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},u),r.GetIamPolicyRequest=(c.prototype.resource="",c.prototype.options=null,c.create=function(e){return new c(e)},c.encode=function(e,t){return t=t||s.create(),null!=e.resource&&Object.hasOwnProperty.call(e,"resource")&&t.uint32(10).string(e.resource),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&p.google.iam.v1.GetPolicyOptions.encode(e.options,t.uint32(18).fork()).ldelim(),t},c.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},c.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.iam.v1.GetIamPolicyRequest;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.resource=e.string();break;case 2:n.options=p.google.iam.v1.GetPolicyOptions.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},c.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},c.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.resource&&e.hasOwnProperty("resource")&&!l.isString(e.resource)?"resource: string expected":null!=e.options&&e.hasOwnProperty("options")&&(e=p.google.iam.v1.GetPolicyOptions.verify(e.options))?"options."+e:null},c.fromObject=function(e){if(e instanceof p.google.iam.v1.GetIamPolicyRequest)return e;var t=new p.google.iam.v1.GetIamPolicyRequest;if(null!=e.resource&&(t.resource=String(e.resource)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.iam.v1.GetIamPolicyRequest.options: object expected");t.options=p.google.iam.v1.GetPolicyOptions.fromObject(e.options)}return t},c.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.resource="",r.options=null),null!=e.resource&&e.hasOwnProperty("resource")&&(r.resource=e.resource),null!=e.options&&e.hasOwnProperty("options")&&(r.options=p.google.iam.v1.GetPolicyOptions.toObject(e.options,t)),r},c.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},c),r.TestIamPermissionsRequest=(f.prototype.resource="",f.prototype.permissions=l.emptyArray,f.create=function(e){return new f(e)},f.encode=function(e,t){if(t=t||s.create(),null!=e.resource&&Object.hasOwnProperty.call(e,"resource")&&t.uint32(10).string(e.resource),null!=e.permissions&&e.permissions.length)for(var r=0;r<e.permissions.length;++r)t.uint32(18).string(e.permissions[r]);return t},f.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},f.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.iam.v1.TestIamPermissionsRequest;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.resource=e.string();break;case 2:n.permissions&&n.permissions.length||(n.permissions=[]),n.permissions.push(e.string());break;default:e.skipType(7&o)}}return n},f.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},f.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.resource&&e.hasOwnProperty("resource")&&!l.isString(e.resource))return"resource: string expected";if(null!=e.permissions&&e.hasOwnProperty("permissions")){if(!Array.isArray(e.permissions))return"permissions: array expected";for(var t=0;t<e.permissions.length;++t)if(!l.isString(e.permissions[t]))return"permissions: string[] expected"}return null},f.fromObject=function(e){if(e instanceof p.google.iam.v1.TestIamPermissionsRequest)return e;var t=new p.google.iam.v1.TestIamPermissionsRequest;if(null!=e.resource&&(t.resource=String(e.resource)),e.permissions){if(!Array.isArray(e.permissions))throw TypeError(".google.iam.v1.TestIamPermissionsRequest.permissions: array expected");t.permissions=[];for(var r=0;r<e.permissions.length;++r)t.permissions[r]=String(e.permissions[r])}return t},f.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.permissions=[]),t.defaults&&(r.resource=""),null!=e.resource&&e.hasOwnProperty("resource")&&(r.resource=e.resource),e.permissions&&e.permissions.length){r.permissions=[];for(var n=0;n<e.permissions.length;++n)r.permissions[n]=e.permissions[n]}return r},f.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},f),r.TestIamPermissionsResponse=(h.prototype.permissions=l.emptyArray,h.create=function(e){return new h(e)},h.encode=function(e,t){if(t=t||s.create(),null!=e.permissions&&e.permissions.length)for(var r=0;r<e.permissions.length;++r)t.uint32(10).string(e.permissions[r]);return t},h.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},h.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.iam.v1.TestIamPermissionsResponse;e.pos<r;){var o=e.uint32();o>>>3==1?(n.permissions&&n.permissions.length||(n.permissions=[]),n.permissions.push(e.string())):e.skipType(7&o)}return n},h.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},h.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.permissions&&e.hasOwnProperty("permissions")){if(!Array.isArray(e.permissions))return"permissions: array expected";for(var t=0;t<e.permissions.length;++t)if(!l.isString(e.permissions[t]))return"permissions: string[] expected"}return null},h.fromObject=function(e){if(e instanceof p.google.iam.v1.TestIamPermissionsResponse)return e;var t=new p.google.iam.v1.TestIamPermissionsResponse;if(e.permissions){if(!Array.isArray(e.permissions))throw TypeError(".google.iam.v1.TestIamPermissionsResponse.permissions: array expected");t.permissions=[];for(var r=0;r<e.permissions.length;++r)t.permissions[r]=String(e.permissions[r])}return t},h.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.permissions=[]),e.permissions&&e.permissions.length){r.permissions=[];for(var n=0;n<e.permissions.length;++n)r.permissions[n]=e.permissions[n]}return r},h.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},h),r.GetPolicyOptions=(m.prototype.requestedPolicyVersion=0,m.create=function(e){return new m(e)},m.encode=function(e,t){return t=t||s.create(),null!=e.requestedPolicyVersion&&Object.hasOwnProperty.call(e,"requestedPolicyVersion")&&t.uint32(8).int32(e.requestedPolicyVersion),t},m.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},m.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.iam.v1.GetPolicyOptions;e.pos<r;){var o=e.uint32();o>>>3==1?n.requestedPolicyVersion=e.int32():e.skipType(7&o)}return n},m.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},m.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.requestedPolicyVersion&&e.hasOwnProperty("requestedPolicyVersion")&&!l.isInteger(e.requestedPolicyVersion)?"requestedPolicyVersion: integer expected":null},m.fromObject=function(e){var t;return e instanceof p.google.iam.v1.GetPolicyOptions?e:(t=new p.google.iam.v1.GetPolicyOptions,null!=e.requestedPolicyVersion&&(t.requestedPolicyVersion=0|e.requestedPolicyVersion),t)},m.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.requestedPolicyVersion=0),null!=e.requestedPolicyVersion&&e.hasOwnProperty("requestedPolicyVersion")&&(r.requestedPolicyVersion=e.requestedPolicyVersion),r},m.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},m),r.Policy=(g.prototype.version=0,g.prototype.bindings=l.emptyArray,g.prototype.etag=l.newBuffer([]),g.create=function(e){return new g(e)},g.encode=function(e,t){if(t=t||s.create(),null!=e.version&&Object.hasOwnProperty.call(e,"version")&&t.uint32(8).int32(e.version),null!=e.etag&&Object.hasOwnProperty.call(e,"etag")&&t.uint32(26).bytes(e.etag),null!=e.bindings&&e.bindings.length)for(var r=0;r<e.bindings.length;++r)p.google.iam.v1.Binding.encode(e.bindings[r],t.uint32(34).fork()).ldelim();return t},g.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},g.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.iam.v1.Policy;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.version=e.int32();break;case 4:n.bindings&&n.bindings.length||(n.bindings=[]),n.bindings.push(p.google.iam.v1.Binding.decode(e,e.uint32()));break;case 3:n.etag=e.bytes();break;default:e.skipType(7&o)}}return n},g.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},g.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.version&&e.hasOwnProperty("version")&&!l.isInteger(e.version))return"version: integer expected";if(null!=e.bindings&&e.hasOwnProperty("bindings")){if(!Array.isArray(e.bindings))return"bindings: array expected";for(var t=0;t<e.bindings.length;++t){var r=p.google.iam.v1.Binding.verify(e.bindings[t]);if(r)return"bindings."+r}}return null!=e.etag&&e.hasOwnProperty("etag")&&!(e.etag&&"number"==typeof e.etag.length||l.isString(e.etag))?"etag: buffer expected":null},g.fromObject=function(e){if(e instanceof p.google.iam.v1.Policy)return e;var t=new p.google.iam.v1.Policy;if(null!=e.version&&(t.version=0|e.version),e.bindings){if(!Array.isArray(e.bindings))throw TypeError(".google.iam.v1.Policy.bindings: array expected");t.bindings=[];for(var r=0;r<e.bindings.length;++r){if("object"!=typeof e.bindings[r])throw TypeError(".google.iam.v1.Policy.bindings: object expected");t.bindings[r]=p.google.iam.v1.Binding.fromObject(e.bindings[r])}}return null!=e.etag&&("string"==typeof e.etag?l.base64.decode(e.etag,t.etag=l.newBuffer(l.base64.length(e.etag)),0):e.etag.length&&(t.etag=e.etag)),t},g.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.bindings=[]),t.defaults&&(r.version=0,t.bytes===String?r.etag="":(r.etag=[],t.bytes!==Array&&(r.etag=l.newBuffer(r.etag)))),null!=e.version&&e.hasOwnProperty("version")&&(r.version=e.version),null!=e.etag&&e.hasOwnProperty("etag")&&(r.etag=t.bytes===String?l.base64.encode(e.etag,0,e.etag.length):t.bytes===Array?Array.prototype.slice.call(e.etag):e.etag),e.bindings&&e.bindings.length){r.bindings=[];for(var n=0;n<e.bindings.length;++n)r.bindings[n]=p.google.iam.v1.Binding.toObject(e.bindings[n],t)}return r},g.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},g),r.Binding=(y.prototype.role="",y.prototype.members=l.emptyArray,y.prototype.condition=null,y.create=function(e){return new y(e)},y.encode=function(e,t){if(t=t||s.create(),null!=e.role&&Object.hasOwnProperty.call(e,"role")&&t.uint32(10).string(e.role),null!=e.members&&e.members.length)for(var r=0;r<e.members.length;++r)t.uint32(18).string(e.members[r]);return null!=e.condition&&Object.hasOwnProperty.call(e,"condition")&&p.google.type.Expr.encode(e.condition,t.uint32(26).fork()).ldelim(),t},y.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},y.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.iam.v1.Binding;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.role=e.string();break;case 2:n.members&&n.members.length||(n.members=[]),n.members.push(e.string());break;case 3:n.condition=p.google.type.Expr.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},y.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},y.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.role&&e.hasOwnProperty("role")&&!l.isString(e.role))return"role: string expected";if(null!=e.members&&e.hasOwnProperty("members")){if(!Array.isArray(e.members))return"members: array expected";for(var t=0;t<e.members.length;++t)if(!l.isString(e.members[t]))return"members: string[] expected"}if(null!=e.condition&&e.hasOwnProperty("condition")){var r=p.google.type.Expr.verify(e.condition);if(r)return"condition."+r}return null},y.fromObject=function(e){if(e instanceof p.google.iam.v1.Binding)return e;var t=new p.google.iam.v1.Binding;if(null!=e.role&&(t.role=String(e.role)),e.members){if(!Array.isArray(e.members))throw TypeError(".google.iam.v1.Binding.members: array expected");t.members=[];for(var r=0;r<e.members.length;++r)t.members[r]=String(e.members[r])}if(null!=e.condition){if("object"!=typeof e.condition)throw TypeError(".google.iam.v1.Binding.condition: object expected");t.condition=p.google.type.Expr.fromObject(e.condition)}return t},y.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.members=[]),t.defaults&&(r.role="",r.condition=null),null!=e.role&&e.hasOwnProperty("role")&&(r.role=e.role),e.members&&e.members.length){r.members=[];for(var n=0;n<e.members.length;++n)r.members[n]=e.members[n]}return null!=e.condition&&e.hasOwnProperty("condition")&&(r.condition=p.google.type.Expr.toObject(e.condition,t)),r},y.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},y),r.PolicyDelta=(v.prototype.bindingDeltas=l.emptyArray,v.prototype.auditConfigDeltas=l.emptyArray,v.create=function(e){return new v(e)},v.encode=function(e,t){if(t=t||s.create(),null!=e.bindingDeltas&&e.bindingDeltas.length)for(var r=0;r<e.bindingDeltas.length;++r)p.google.iam.v1.BindingDelta.encode(e.bindingDeltas[r],t.uint32(10).fork()).ldelim();if(null!=e.auditConfigDeltas&&e.auditConfigDeltas.length)for(r=0;r<e.auditConfigDeltas.length;++r)p.google.iam.v1.AuditConfigDelta.encode(e.auditConfigDeltas[r],t.uint32(18).fork()).ldelim();return t},v.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},v.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.iam.v1.PolicyDelta;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.bindingDeltas&&n.bindingDeltas.length||(n.bindingDeltas=[]),n.bindingDeltas.push(p.google.iam.v1.BindingDelta.decode(e,e.uint32()));break;case 2:n.auditConfigDeltas&&n.auditConfigDeltas.length||(n.auditConfigDeltas=[]),n.auditConfigDeltas.push(p.google.iam.v1.AuditConfigDelta.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return n},v.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},v.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.bindingDeltas&&e.hasOwnProperty("bindingDeltas")){if(!Array.isArray(e.bindingDeltas))return"bindingDeltas: array expected";for(var t=0;t<e.bindingDeltas.length;++t)if(r=p.google.iam.v1.BindingDelta.verify(e.bindingDeltas[t]))return"bindingDeltas."+r}if(null!=e.auditConfigDeltas&&e.hasOwnProperty("auditConfigDeltas")){if(!Array.isArray(e.auditConfigDeltas))return"auditConfigDeltas: array expected";var r;for(t=0;t<e.auditConfigDeltas.length;++t)if(r=p.google.iam.v1.AuditConfigDelta.verify(e.auditConfigDeltas[t]))return"auditConfigDeltas."+r}return null},v.fromObject=function(e){if(e instanceof p.google.iam.v1.PolicyDelta)return e;var t=new p.google.iam.v1.PolicyDelta;if(e.bindingDeltas){if(!Array.isArray(e.bindingDeltas))throw TypeError(".google.iam.v1.PolicyDelta.bindingDeltas: array expected");t.bindingDeltas=[];for(var r=0;r<e.bindingDeltas.length;++r){if("object"!=typeof e.bindingDeltas[r])throw TypeError(".google.iam.v1.PolicyDelta.bindingDeltas: object expected");t.bindingDeltas[r]=p.google.iam.v1.BindingDelta.fromObject(e.bindingDeltas[r])}}if(e.auditConfigDeltas){if(!Array.isArray(e.auditConfigDeltas))throw TypeError(".google.iam.v1.PolicyDelta.auditConfigDeltas: array expected");for(t.auditConfigDeltas=[],r=0;r<e.auditConfigDeltas.length;++r){if("object"!=typeof e.auditConfigDeltas[r])throw TypeError(".google.iam.v1.PolicyDelta.auditConfigDeltas: object expected");t.auditConfigDeltas[r]=p.google.iam.v1.AuditConfigDelta.fromObject(e.auditConfigDeltas[r])}}return t},v.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.bindingDeltas=[],r.auditConfigDeltas=[]),e.bindingDeltas&&e.bindingDeltas.length){r.bindingDeltas=[];for(var n=0;n<e.bindingDeltas.length;++n)r.bindingDeltas[n]=p.google.iam.v1.BindingDelta.toObject(e.bindingDeltas[n],t)}if(e.auditConfigDeltas&&e.auditConfigDeltas.length)for(r.auditConfigDeltas=[],n=0;n<e.auditConfigDeltas.length;++n)r.auditConfigDeltas[n]=p.google.iam.v1.AuditConfigDelta.toObject(e.auditConfigDeltas[n],t);return r},v.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},v),r.BindingDelta=(b.prototype.action=0,b.prototype.role="",b.prototype.member="",b.prototype.condition=null,b.create=function(e){return new b(e)},b.encode=function(e,t){return t=t||s.create(),null!=e.action&&Object.hasOwnProperty.call(e,"action")&&t.uint32(8).int32(e.action),null!=e.role&&Object.hasOwnProperty.call(e,"role")&&t.uint32(18).string(e.role),null!=e.member&&Object.hasOwnProperty.call(e,"member")&&t.uint32(26).string(e.member),null!=e.condition&&Object.hasOwnProperty.call(e,"condition")&&p.google.type.Expr.encode(e.condition,t.uint32(34).fork()).ldelim(),t},b.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},b.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.iam.v1.BindingDelta;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.action=e.int32();break;case 2:n.role=e.string();break;case 3:n.member=e.string();break;case 4:n.condition=p.google.type.Expr.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},b.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},b.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.action&&e.hasOwnProperty("action"))switch(e.action){default:return"action: enum value expected";case 0:case 1:case 2:}return null!=e.role&&e.hasOwnProperty("role")&&!l.isString(e.role)?"role: string expected":null!=e.member&&e.hasOwnProperty("member")&&!l.isString(e.member)?"member: string expected":null!=e.condition&&e.hasOwnProperty("condition")&&(e=p.google.type.Expr.verify(e.condition))?"condition."+e:null},b.fromObject=function(e){if(e instanceof p.google.iam.v1.BindingDelta)return e;var t=new p.google.iam.v1.BindingDelta;switch(e.action){case"ACTION_UNSPECIFIED":case 0:t.action=0;break;case"ADD":case 1:t.action=1;break;case"REMOVE":case 2:t.action=2}if(null!=e.role&&(t.role=String(e.role)),null!=e.member&&(t.member=String(e.member)),null!=e.condition){if("object"!=typeof e.condition)throw TypeError(".google.iam.v1.BindingDelta.condition: object expected");t.condition=p.google.type.Expr.fromObject(e.condition)}return t},b.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.action=t.enums===String?"ACTION_UNSPECIFIED":0,r.role="",r.member="",r.condition=null),null!=e.action&&e.hasOwnProperty("action")&&(r.action=t.enums===String?p.google.iam.v1.BindingDelta.Action[e.action]:e.action),null!=e.role&&e.hasOwnProperty("role")&&(r.role=e.role),null!=e.member&&e.hasOwnProperty("member")&&(r.member=e.member),null!=e.condition&&e.hasOwnProperty("condition")&&(r.condition=p.google.type.Expr.toObject(e.condition,t)),r},b.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},b.Action=(t={},(o=Object.create(t))[t[0]="ACTION_UNSPECIFIED"]=0,o[t[1]="ADD"]=1,o[t[2]="REMOVE"]=2,o),b),r.AuditConfigDelta=(O.prototype.action=0,O.prototype.service="",O.prototype.exemptedMember="",O.prototype.logType="",O.create=function(e){return new O(e)},O.encode=function(e,t){return t=t||s.create(),null!=e.action&&Object.hasOwnProperty.call(e,"action")&&t.uint32(8).int32(e.action),null!=e.service&&Object.hasOwnProperty.call(e,"service")&&t.uint32(18).string(e.service),null!=e.exemptedMember&&Object.hasOwnProperty.call(e,"exemptedMember")&&t.uint32(26).string(e.exemptedMember),null!=e.logType&&Object.hasOwnProperty.call(e,"logType")&&t.uint32(34).string(e.logType),t},O.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},O.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.iam.v1.AuditConfigDelta;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.action=e.int32();break;case 2:n.service=e.string();break;case 3:n.exemptedMember=e.string();break;case 4:n.logType=e.string();break;default:e.skipType(7&o)}}return n},O.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},O.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.action&&e.hasOwnProperty("action"))switch(e.action){default:return"action: enum value expected";case 0:case 1:case 2:}return null!=e.service&&e.hasOwnProperty("service")&&!l.isString(e.service)?"service: string expected":null!=e.exemptedMember&&e.hasOwnProperty("exemptedMember")&&!l.isString(e.exemptedMember)?"exemptedMember: string expected":null!=e.logType&&e.hasOwnProperty("logType")&&!l.isString(e.logType)?"logType: string expected":null},O.fromObject=function(e){if(e instanceof p.google.iam.v1.AuditConfigDelta)return e;var t=new p.google.iam.v1.AuditConfigDelta;switch(e.action){case"ACTION_UNSPECIFIED":case 0:t.action=0;break;case"ADD":case 1:t.action=1;break;case"REMOVE":case 2:t.action=2}return null!=e.service&&(t.service=String(e.service)),null!=e.exemptedMember&&(t.exemptedMember=String(e.exemptedMember)),null!=e.logType&&(t.logType=String(e.logType)),t},O.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.action=t.enums===String?"ACTION_UNSPECIFIED":0,r.service="",r.exemptedMember="",r.logType=""),null!=e.action&&e.hasOwnProperty("action")&&(r.action=t.enums===String?p.google.iam.v1.AuditConfigDelta.Action[e.action]:e.action),null!=e.service&&e.hasOwnProperty("service")&&(r.service=e.service),null!=e.exemptedMember&&e.hasOwnProperty("exemptedMember")&&(r.exemptedMember=e.exemptedMember),null!=e.logType&&e.hasOwnProperty("logType")&&(r.logType=e.logType),r},O.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},O.Action=(t={},(o=Object.create(t))[t[0]="ACTION_UNSPECIFIED"]=0,o[t[1]="ADD"]=1,o[t[2]="REMOVE"]=2,o),O),r.logging=((t={}).AuditData=(w.prototype.policyDelta=null,w.create=function(e){return new w(e)},w.encode=function(e,t){return t=t||s.create(),null!=e.policyDelta&&Object.hasOwnProperty.call(e,"policyDelta")&&p.google.iam.v1.PolicyDelta.encode(e.policyDelta,t.uint32(18).fork()).ldelim(),t},w.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},w.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.iam.v1.logging.AuditData;e.pos<r;){var o=e.uint32();o>>>3==2?n.policyDelta=p.google.iam.v1.PolicyDelta.decode(e,e.uint32()):e.skipType(7&o)}return n},w.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},w.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.policyDelta&&e.hasOwnProperty("policyDelta")&&(e=p.google.iam.v1.PolicyDelta.verify(e.policyDelta))?"policyDelta."+e:null},w.fromObject=function(e){if(e instanceof p.google.iam.v1.logging.AuditData)return e;var t=new p.google.iam.v1.logging.AuditData;if(null!=e.policyDelta){if("object"!=typeof e.policyDelta)throw TypeError(".google.iam.v1.logging.AuditData.policyDelta: object expected");t.policyDelta=p.google.iam.v1.PolicyDelta.fromObject(e.policyDelta)}return t},w.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.policyDelta=null),null!=e.policyDelta&&e.hasOwnProperty("policyDelta")&&(r.policyDelta=p.google.iam.v1.PolicyDelta.toObject(e.policyDelta,t)),r},w.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},w),t),r),n),i.api=((o={}).Http=(S.prototype.rules=l.emptyArray,S.prototype.fullyDecodeReservedExpansion=!1,S.create=function(e){return new S(e)},S.encode=function(e,t){if(t=t||s.create(),null!=e.rules&&e.rules.length)for(var r=0;r<e.rules.length;++r)p.google.api.HttpRule.encode(e.rules[r],t.uint32(10).fork()).ldelim();return null!=e.fullyDecodeReservedExpansion&&Object.hasOwnProperty.call(e,"fullyDecodeReservedExpansion")&&t.uint32(16).bool(e.fullyDecodeReservedExpansion),t},S.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},S.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.api.Http;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.rules&&n.rules.length||(n.rules=[]),n.rules.push(p.google.api.HttpRule.decode(e,e.uint32()));break;case 2:n.fullyDecodeReservedExpansion=e.bool();break;default:e.skipType(7&o)}}return n},S.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},S.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.rules&&e.hasOwnProperty("rules")){if(!Array.isArray(e.rules))return"rules: array expected";for(var t=0;t<e.rules.length;++t){var r=p.google.api.HttpRule.verify(e.rules[t]);if(r)return"rules."+r}}return null!=e.fullyDecodeReservedExpansion&&e.hasOwnProperty("fullyDecodeReservedExpansion")&&"boolean"!=typeof e.fullyDecodeReservedExpansion?"fullyDecodeReservedExpansion: boolean expected":null},S.fromObject=function(e){if(e instanceof p.google.api.Http)return e;var t=new p.google.api.Http;if(e.rules){if(!Array.isArray(e.rules))throw TypeError(".google.api.Http.rules: array expected");t.rules=[];for(var r=0;r<e.rules.length;++r){if("object"!=typeof e.rules[r])throw TypeError(".google.api.Http.rules: object expected");t.rules[r]=p.google.api.HttpRule.fromObject(e.rules[r])}}return null!=e.fullyDecodeReservedExpansion&&(t.fullyDecodeReservedExpansion=Boolean(e.fullyDecodeReservedExpansion)),t},S.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.rules=[]),t.defaults&&(r.fullyDecodeReservedExpansion=!1),e.rules&&e.rules.length){r.rules=[];for(var n=0;n<e.rules.length;++n)r.rules[n]=p.google.api.HttpRule.toObject(e.rules[n],t)}return null!=e.fullyDecodeReservedExpansion&&e.hasOwnProperty("fullyDecodeReservedExpansion")&&(r.fullyDecodeReservedExpansion=e.fullyDecodeReservedExpansion),r},S.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},S),o.HttpRule=(_.prototype.selector="",_.prototype.get="",_.prototype.put="",_.prototype.post="",_.prototype.delete="",_.prototype.patch="",_.prototype.custom=null,_.prototype.body="",_.prototype.responseBody="",_.prototype.additionalBindings=l.emptyArray,Object.defineProperty(_.prototype,"pattern",{get:l.oneOfGetter(t=["get","put","post","delete","patch","custom"]),set:l.oneOfSetter(t)}),_.create=function(e){return new _(e)},_.encode=function(e,t){if(t=t||s.create(),null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&t.uint32(10).string(e.selector),null!=e.get&&Object.hasOwnProperty.call(e,"get")&&t.uint32(18).string(e.get),null!=e.put&&Object.hasOwnProperty.call(e,"put")&&t.uint32(26).string(e.put),null!=e.post&&Object.hasOwnProperty.call(e,"post")&&t.uint32(34).string(e.post),null!=e.delete&&Object.hasOwnProperty.call(e,"delete")&&t.uint32(42).string(e.delete),null!=e.patch&&Object.hasOwnProperty.call(e,"patch")&&t.uint32(50).string(e.patch),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(58).string(e.body),null!=e.custom&&Object.hasOwnProperty.call(e,"custom")&&p.google.api.CustomHttpPattern.encode(e.custom,t.uint32(66).fork()).ldelim(),null!=e.additionalBindings&&e.additionalBindings.length)for(var r=0;r<e.additionalBindings.length;++r)p.google.api.HttpRule.encode(e.additionalBindings[r],t.uint32(90).fork()).ldelim();return null!=e.responseBody&&Object.hasOwnProperty.call(e,"responseBody")&&t.uint32(98).string(e.responseBody),t},_.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},_.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.api.HttpRule;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.selector=e.string();break;case 2:n.get=e.string();break;case 3:n.put=e.string();break;case 4:n.post=e.string();break;case 5:n.delete=e.string();break;case 6:n.patch=e.string();break;case 8:n.custom=p.google.api.CustomHttpPattern.decode(e,e.uint32());break;case 7:n.body=e.string();break;case 12:n.responseBody=e.string();break;case 11:n.additionalBindings&&n.additionalBindings.length||(n.additionalBindings=[]),n.additionalBindings.push(p.google.api.HttpRule.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return n},_.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},_.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var t={};if(null!=e.selector&&e.hasOwnProperty("selector")&&!l.isString(e.selector))return"selector: string expected";if(null!=e.get&&e.hasOwnProperty("get")&&(t.pattern=1,!l.isString(e.get)))return"get: string expected";if(null!=e.put&&e.hasOwnProperty("put")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!l.isString(e.put))return"put: string expected"}if(null!=e.post&&e.hasOwnProperty("post")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!l.isString(e.post))return"post: string expected"}if(null!=e.delete&&e.hasOwnProperty("delete")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!l.isString(e.delete))return"delete: string expected"}if(null!=e.patch&&e.hasOwnProperty("patch")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!l.isString(e.patch))return"patch: string expected"}if(null!=e.custom&&e.hasOwnProperty("custom")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,r=p.google.api.CustomHttpPattern.verify(e.custom))return"custom."+r}if(null!=e.body&&e.hasOwnProperty("body")&&!l.isString(e.body))return"body: string expected";if(null!=e.responseBody&&e.hasOwnProperty("responseBody")&&!l.isString(e.responseBody))return"responseBody: string expected";if(null!=e.additionalBindings&&e.hasOwnProperty("additionalBindings")){if(!Array.isArray(e.additionalBindings))return"additionalBindings: array expected";for(var r,n=0;n<e.additionalBindings.length;++n)if(r=p.google.api.HttpRule.verify(e.additionalBindings[n]))return"additionalBindings."+r}return null},_.fromObject=function(e){if(e instanceof p.google.api.HttpRule)return e;var t=new p.google.api.HttpRule;if(null!=e.selector&&(t.selector=String(e.selector)),null!=e.get&&(t.get=String(e.get)),null!=e.put&&(t.put=String(e.put)),null!=e.post&&(t.post=String(e.post)),null!=e.delete&&(t.delete=String(e.delete)),null!=e.patch&&(t.patch=String(e.patch)),null!=e.custom){if("object"!=typeof e.custom)throw TypeError(".google.api.HttpRule.custom: object expected");t.custom=p.google.api.CustomHttpPattern.fromObject(e.custom)}if(null!=e.body&&(t.body=String(e.body)),null!=e.responseBody&&(t.responseBody=String(e.responseBody)),e.additionalBindings){if(!Array.isArray(e.additionalBindings))throw TypeError(".google.api.HttpRule.additionalBindings: array expected");t.additionalBindings=[];for(var r=0;r<e.additionalBindings.length;++r){if("object"!=typeof e.additionalBindings[r])throw TypeError(".google.api.HttpRule.additionalBindings: object expected");t.additionalBindings[r]=p.google.api.HttpRule.fromObject(e.additionalBindings[r])}}return t},_.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.additionalBindings=[]),t.defaults&&(r.selector="",r.body="",r.responseBody=""),null!=e.selector&&e.hasOwnProperty("selector")&&(r.selector=e.selector),null!=e.get&&e.hasOwnProperty("get")&&(r.get=e.get,t.oneofs)&&(r.pattern="get"),null!=e.put&&e.hasOwnProperty("put")&&(r.put=e.put,t.oneofs)&&(r.pattern="put"),null!=e.post&&e.hasOwnProperty("post")&&(r.post=e.post,t.oneofs)&&(r.pattern="post"),null!=e.delete&&e.hasOwnProperty("delete")&&(r.delete=e.delete,t.oneofs)&&(r.pattern="delete"),null!=e.patch&&e.hasOwnProperty("patch")&&(r.patch=e.patch,t.oneofs)&&(r.pattern="patch"),null!=e.body&&e.hasOwnProperty("body")&&(r.body=e.body),null!=e.custom&&e.hasOwnProperty("custom")&&(r.custom=p.google.api.CustomHttpPattern.toObject(e.custom,t),t.oneofs)&&(r.pattern="custom"),e.additionalBindings&&e.additionalBindings.length){r.additionalBindings=[];for(var n=0;n<e.additionalBindings.length;++n)r.additionalBindings[n]=p.google.api.HttpRule.toObject(e.additionalBindings[n],t)}return null!=e.responseBody&&e.hasOwnProperty("responseBody")&&(r.responseBody=e.responseBody),r},_.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},_),o.CustomHttpPattern=(P.prototype.kind="",P.prototype.path="",P.create=function(e){return new P(e)},P.encode=function(e,t){return t=t||s.create(),null!=e.kind&&Object.hasOwnProperty.call(e,"kind")&&t.uint32(10).string(e.kind),null!=e.path&&Object.hasOwnProperty.call(e,"path")&&t.uint32(18).string(e.path),t},P.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},P.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.api.CustomHttpPattern;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.kind=e.string();break;case 2:n.path=e.string();break;default:e.skipType(7&o)}}return n},P.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},P.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.kind&&e.hasOwnProperty("kind")&&!l.isString(e.kind)?"kind: string expected":null!=e.path&&e.hasOwnProperty("path")&&!l.isString(e.path)?"path: string expected":null},P.fromObject=function(e){var t;return e instanceof p.google.api.CustomHttpPattern?e:(t=new p.google.api.CustomHttpPattern,null!=e.kind&&(t.kind=String(e.kind)),null!=e.path&&(t.path=String(e.path)),t)},P.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.kind="",r.path=""),null!=e.kind&&e.hasOwnProperty("kind")&&(r.kind=e.kind),null!=e.path&&e.hasOwnProperty("path")&&(r.path=e.path),r},P.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},P),o.FieldBehavior=(t={},(r=Object.create(t))[t[0]="FIELD_BEHAVIOR_UNSPECIFIED"]=0,r[t[1]="OPTIONAL"]=1,r[t[2]="REQUIRED"]=2,r[t[3]="OUTPUT_ONLY"]=3,r[t[4]="INPUT_ONLY"]=4,r[t[5]="IMMUTABLE"]=5,r),o.ResourceDescriptor=(E.prototype.type="",E.prototype.pattern=l.emptyArray,E.prototype.nameField="",E.prototype.history=0,E.prototype.plural="",E.prototype.singular="",E.create=function(e){return new E(e)},E.encode=function(e,t){if(t=t||s.create(),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),null!=e.pattern&&e.pattern.length)for(var r=0;r<e.pattern.length;++r)t.uint32(18).string(e.pattern[r]);return null!=e.nameField&&Object.hasOwnProperty.call(e,"nameField")&&t.uint32(26).string(e.nameField),null!=e.history&&Object.hasOwnProperty.call(e,"history")&&t.uint32(32).int32(e.history),null!=e.plural&&Object.hasOwnProperty.call(e,"plural")&&t.uint32(42).string(e.plural),null!=e.singular&&Object.hasOwnProperty.call(e,"singular")&&t.uint32(50).string(e.singular),t},E.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},E.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.api.ResourceDescriptor;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.type=e.string();break;case 2:n.pattern&&n.pattern.length||(n.pattern=[]),n.pattern.push(e.string());break;case 3:n.nameField=e.string();break;case 4:n.history=e.int32();break;case 5:n.plural=e.string();break;case 6:n.singular=e.string();break;default:e.skipType(7&o)}}return n},E.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},E.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type")&&!l.isString(e.type))return"type: string expected";if(null!=e.pattern&&e.hasOwnProperty("pattern")){if(!Array.isArray(e.pattern))return"pattern: array expected";for(var t=0;t<e.pattern.length;++t)if(!l.isString(e.pattern[t]))return"pattern: string[] expected"}if(null!=e.nameField&&e.hasOwnProperty("nameField")&&!l.isString(e.nameField))return"nameField: string expected";if(null!=e.history&&e.hasOwnProperty("history"))switch(e.history){default:return"history: enum value expected";case 0:case 1:case 2:}return null!=e.plural&&e.hasOwnProperty("plural")&&!l.isString(e.plural)?"plural: string expected":null!=e.singular&&e.hasOwnProperty("singular")&&!l.isString(e.singular)?"singular: string expected":null},E.fromObject=function(e){if(e instanceof p.google.api.ResourceDescriptor)return e;var t=new p.google.api.ResourceDescriptor;if(null!=e.type&&(t.type=String(e.type)),e.pattern){if(!Array.isArray(e.pattern))throw TypeError(".google.api.ResourceDescriptor.pattern: array expected");t.pattern=[];for(var r=0;r<e.pattern.length;++r)t.pattern[r]=String(e.pattern[r])}switch(null!=e.nameField&&(t.nameField=String(e.nameField)),e.history){case"HISTORY_UNSPECIFIED":case 0:t.history=0;break;case"ORIGINALLY_SINGLE_PATTERN":case 1:t.history=1;break;case"FUTURE_MULTI_PATTERN":case 2:t.history=2}return null!=e.plural&&(t.plural=String(e.plural)),null!=e.singular&&(t.singular=String(e.singular)),t},E.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.pattern=[]),t.defaults&&(r.type="",r.nameField="",r.history=t.enums===String?"HISTORY_UNSPECIFIED":0,r.plural="",r.singular=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=e.type),e.pattern&&e.pattern.length){r.pattern=[];for(var n=0;n<e.pattern.length;++n)r.pattern[n]=e.pattern[n]}return null!=e.nameField&&e.hasOwnProperty("nameField")&&(r.nameField=e.nameField),null!=e.history&&e.hasOwnProperty("history")&&(r.history=t.enums===String?p.google.api.ResourceDescriptor.History[e.history]:e.history),null!=e.plural&&e.hasOwnProperty("plural")&&(r.plural=e.plural),null!=e.singular&&e.hasOwnProperty("singular")&&(r.singular=e.singular),r},E.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},E.History=(t={},(r=Object.create(t))[t[0]="HISTORY_UNSPECIFIED"]=0,r[t[1]="ORIGINALLY_SINGLE_PATTERN"]=1,r[t[2]="FUTURE_MULTI_PATTERN"]=2,r),E),o.ResourceReference=(T.prototype.type="",T.prototype.childType="",T.create=function(e){return new T(e)},T.encode=function(e,t){return t=t||s.create(),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),null!=e.childType&&Object.hasOwnProperty.call(e,"childType")&&t.uint32(18).string(e.childType),t},T.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},T.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.api.ResourceReference;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.type=e.string();break;case 2:n.childType=e.string();break;default:e.skipType(7&o)}}return n},T.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},T.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.type&&e.hasOwnProperty("type")&&!l.isString(e.type)?"type: string expected":null!=e.childType&&e.hasOwnProperty("childType")&&!l.isString(e.childType)?"childType: string expected":null},T.fromObject=function(e){var t;return e instanceof p.google.api.ResourceReference?e:(t=new p.google.api.ResourceReference,null!=e.type&&(t.type=String(e.type)),null!=e.childType&&(t.childType=String(e.childType)),t)},T.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.type="",r.childType=""),null!=e.type&&e.hasOwnProperty("type")&&(r.type=e.type),null!=e.childType&&e.hasOwnProperty("childType")&&(r.childType=e.childType),r},T.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},T),o),i.protobuf=((n={}).FileDescriptorSet=(C.prototype.file=l.emptyArray,C.create=function(e){return new C(e)},C.encode=function(e,t){if(t=t||s.create(),null!=e.file&&e.file.length)for(var r=0;r<e.file.length;++r)p.google.protobuf.FileDescriptorProto.encode(e.file[r],t.uint32(10).fork()).ldelim();return t},C.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},C.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.FileDescriptorSet;e.pos<r;){var o=e.uint32();o>>>3==1?(n.file&&n.file.length||(n.file=[]),n.file.push(p.google.protobuf.FileDescriptorProto.decode(e,e.uint32()))):e.skipType(7&o)}return n},C.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},C.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.file&&e.hasOwnProperty("file")){if(!Array.isArray(e.file))return"file: array expected";for(var t=0;t<e.file.length;++t){var r=p.google.protobuf.FileDescriptorProto.verify(e.file[t]);if(r)return"file."+r}}return null},C.fromObject=function(e){if(e instanceof p.google.protobuf.FileDescriptorSet)return e;var t=new p.google.protobuf.FileDescriptorSet;if(e.file){if(!Array.isArray(e.file))throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected");t.file=[];for(var r=0;r<e.file.length;++r){if("object"!=typeof e.file[r])throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected");t.file[r]=p.google.protobuf.FileDescriptorProto.fromObject(e.file[r])}}return t},C.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.file=[]),e.file&&e.file.length){r.file=[];for(var n=0;n<e.file.length;++n)r.file[n]=p.google.protobuf.FileDescriptorProto.toObject(e.file[n],t)}return r},C.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},C),n.FileDescriptorProto=(R.prototype.name="",R.prototype.package="",R.prototype.dependency=l.emptyArray,R.prototype.publicDependency=l.emptyArray,R.prototype.weakDependency=l.emptyArray,R.prototype.messageType=l.emptyArray,R.prototype.enumType=l.emptyArray,R.prototype.service=l.emptyArray,R.prototype.extension=l.emptyArray,R.prototype.options=null,R.prototype.sourceCodeInfo=null,R.prototype.syntax="",R.create=function(e){return new R(e)},R.encode=function(e,t){if(t=t||s.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.package&&Object.hasOwnProperty.call(e,"package")&&t.uint32(18).string(e.package),null!=e.dependency&&e.dependency.length)for(var r=0;r<e.dependency.length;++r)t.uint32(26).string(e.dependency[r]);if(null!=e.messageType&&e.messageType.length)for(r=0;r<e.messageType.length;++r)p.google.protobuf.DescriptorProto.encode(e.messageType[r],t.uint32(34).fork()).ldelim();if(null!=e.enumType&&e.enumType.length)for(r=0;r<e.enumType.length;++r)p.google.protobuf.EnumDescriptorProto.encode(e.enumType[r],t.uint32(42).fork()).ldelim();if(null!=e.service&&e.service.length)for(r=0;r<e.service.length;++r)p.google.protobuf.ServiceDescriptorProto.encode(e.service[r],t.uint32(50).fork()).ldelim();if(null!=e.extension&&e.extension.length)for(r=0;r<e.extension.length;++r)p.google.protobuf.FieldDescriptorProto.encode(e.extension[r],t.uint32(58).fork()).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&p.google.protobuf.FileOptions.encode(e.options,t.uint32(66).fork()).ldelim(),null!=e.sourceCodeInfo&&Object.hasOwnProperty.call(e,"sourceCodeInfo")&&p.google.protobuf.SourceCodeInfo.encode(e.sourceCodeInfo,t.uint32(74).fork()).ldelim(),null!=e.publicDependency&&e.publicDependency.length)for(r=0;r<e.publicDependency.length;++r)t.uint32(80).int32(e.publicDependency[r]);if(null!=e.weakDependency&&e.weakDependency.length)for(r=0;r<e.weakDependency.length;++r)t.uint32(88).int32(e.weakDependency[r]);return null!=e.syntax&&Object.hasOwnProperty.call(e,"syntax")&&t.uint32(98).string(e.syntax),t},R.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},R.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.FileDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.package=e.string();break;case 3:n.dependency&&n.dependency.length||(n.dependency=[]),n.dependency.push(e.string());break;case 10:if(n.publicDependency&&n.publicDependency.length||(n.publicDependency=[]),2==(7&o))for(var i=e.uint32()+e.pos;e.pos<i;)n.publicDependency.push(e.int32());else n.publicDependency.push(e.int32());break;case 11:if(n.weakDependency&&n.weakDependency.length||(n.weakDependency=[]),2==(7&o))for(i=e.uint32()+e.pos;e.pos<i;)n.weakDependency.push(e.int32());else n.weakDependency.push(e.int32());break;case 4:n.messageType&&n.messageType.length||(n.messageType=[]),n.messageType.push(p.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 5:n.enumType&&n.enumType.length||(n.enumType=[]),n.enumType.push(p.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 6:n.service&&n.service.length||(n.service=[]),n.service.push(p.google.protobuf.ServiceDescriptorProto.decode(e,e.uint32()));break;case 7:n.extension&&n.extension.length||(n.extension=[]),n.extension.push(p.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 8:n.options=p.google.protobuf.FileOptions.decode(e,e.uint32());break;case 9:n.sourceCodeInfo=p.google.protobuf.SourceCodeInfo.decode(e,e.uint32());break;case 12:n.syntax=e.string();break;default:e.skipType(7&o)}}return n},R.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},R.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!l.isString(e.name))return"name: string expected";if(null!=e.package&&e.hasOwnProperty("package")&&!l.isString(e.package))return"package: string expected";if(null!=e.dependency&&e.hasOwnProperty("dependency")){if(!Array.isArray(e.dependency))return"dependency: array expected";for(var t=0;t<e.dependency.length;++t)if(!l.isString(e.dependency[t]))return"dependency: string[] expected"}if(null!=e.publicDependency&&e.hasOwnProperty("publicDependency")){if(!Array.isArray(e.publicDependency))return"publicDependency: array expected";for(t=0;t<e.publicDependency.length;++t)if(!l.isInteger(e.publicDependency[t]))return"publicDependency: integer[] expected"}if(null!=e.weakDependency&&e.hasOwnProperty("weakDependency")){if(!Array.isArray(e.weakDependency))return"weakDependency: array expected";for(t=0;t<e.weakDependency.length;++t)if(!l.isInteger(e.weakDependency[t]))return"weakDependency: integer[] expected"}if(null!=e.messageType&&e.hasOwnProperty("messageType")){if(!Array.isArray(e.messageType))return"messageType: array expected";for(t=0;t<e.messageType.length;++t)if(r=p.google.protobuf.DescriptorProto.verify(e.messageType[t]))return"messageType."+r}if(null!=e.enumType&&e.hasOwnProperty("enumType")){if(!Array.isArray(e.enumType))return"enumType: array expected";for(t=0;t<e.enumType.length;++t)if(r=p.google.protobuf.EnumDescriptorProto.verify(e.enumType[t]))return"enumType."+r}if(null!=e.service&&e.hasOwnProperty("service")){if(!Array.isArray(e.service))return"service: array expected";for(t=0;t<e.service.length;++t)if(r=p.google.protobuf.ServiceDescriptorProto.verify(e.service[t]))return"service."+r}if(null!=e.extension&&e.hasOwnProperty("extension")){if(!Array.isArray(e.extension))return"extension: array expected";for(t=0;t<e.extension.length;++t)if(r=p.google.protobuf.FieldDescriptorProto.verify(e.extension[t]))return"extension."+r}var r;return null!=e.options&&e.hasOwnProperty("options")&&(r=p.google.protobuf.FileOptions.verify(e.options))?"options."+r:null!=e.sourceCodeInfo&&e.hasOwnProperty("sourceCodeInfo")&&(r=p.google.protobuf.SourceCodeInfo.verify(e.sourceCodeInfo))?"sourceCodeInfo."+r:null!=e.syntax&&e.hasOwnProperty("syntax")&&!l.isString(e.syntax)?"syntax: string expected":null},R.fromObject=function(e){if(e instanceof p.google.protobuf.FileDescriptorProto)return e;var t=new p.google.protobuf.FileDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.package&&(t.package=String(e.package)),e.dependency){if(!Array.isArray(e.dependency))throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected");t.dependency=[];for(var r=0;r<e.dependency.length;++r)t.dependency[r]=String(e.dependency[r])}if(e.publicDependency){if(!Array.isArray(e.publicDependency))throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected");for(t.publicDependency=[],r=0;r<e.publicDependency.length;++r)t.publicDependency[r]=0|e.publicDependency[r]}if(e.weakDependency){if(!Array.isArray(e.weakDependency))throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected");for(t.weakDependency=[],r=0;r<e.weakDependency.length;++r)t.weakDependency[r]=0|e.weakDependency[r]}if(e.messageType){if(!Array.isArray(e.messageType))throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");for(t.messageType=[],r=0;r<e.messageType.length;++r){if("object"!=typeof e.messageType[r])throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected");t.messageType[r]=p.google.protobuf.DescriptorProto.fromObject(e.messageType[r])}}if(e.enumType){if(!Array.isArray(e.enumType))throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected");for(t.enumType=[],r=0;r<e.enumType.length;++r){if("object"!=typeof e.enumType[r])throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected");t.enumType[r]=p.google.protobuf.EnumDescriptorProto.fromObject(e.enumType[r])}}if(e.service){if(!Array.isArray(e.service))throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected");for(t.service=[],r=0;r<e.service.length;++r){if("object"!=typeof e.service[r])throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected");t.service[r]=p.google.protobuf.ServiceDescriptorProto.fromObject(e.service[r])}}if(e.extension){if(!Array.isArray(e.extension))throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected");for(t.extension=[],r=0;r<e.extension.length;++r){if("object"!=typeof e.extension[r])throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected");t.extension[r]=p.google.protobuf.FieldDescriptorProto.fromObject(e.extension[r])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected");t.options=p.google.protobuf.FileOptions.fromObject(e.options)}if(null!=e.sourceCodeInfo){if("object"!=typeof e.sourceCodeInfo)throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected");t.sourceCodeInfo=p.google.protobuf.SourceCodeInfo.fromObject(e.sourceCodeInfo)}return null!=e.syntax&&(t.syntax=String(e.syntax)),t},R.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.dependency=[],r.messageType=[],r.enumType=[],r.service=[],r.extension=[],r.publicDependency=[],r.weakDependency=[]),t.defaults&&(r.name="",r.package="",r.options=null,r.sourceCodeInfo=null,r.syntax=""),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.package&&e.hasOwnProperty("package")&&(r.package=e.package),e.dependency&&e.dependency.length){r.dependency=[];for(var n=0;n<e.dependency.length;++n)r.dependency[n]=e.dependency[n]}if(e.messageType&&e.messageType.length)for(r.messageType=[],n=0;n<e.messageType.length;++n)r.messageType[n]=p.google.protobuf.DescriptorProto.toObject(e.messageType[n],t);if(e.enumType&&e.enumType.length)for(r.enumType=[],n=0;n<e.enumType.length;++n)r.enumType[n]=p.google.protobuf.EnumDescriptorProto.toObject(e.enumType[n],t);if(e.service&&e.service.length)for(r.service=[],n=0;n<e.service.length;++n)r.service[n]=p.google.protobuf.ServiceDescriptorProto.toObject(e.service[n],t);if(e.extension&&e.extension.length)for(r.extension=[],n=0;n<e.extension.length;++n)r.extension[n]=p.google.protobuf.FieldDescriptorProto.toObject(e.extension[n],t);if(null!=e.options&&e.hasOwnProperty("options")&&(r.options=p.google.protobuf.FileOptions.toObject(e.options,t)),null!=e.sourceCodeInfo&&e.hasOwnProperty("sourceCodeInfo")&&(r.sourceCodeInfo=p.google.protobuf.SourceCodeInfo.toObject(e.sourceCodeInfo,t)),e.publicDependency&&e.publicDependency.length)for(r.publicDependency=[],n=0;n<e.publicDependency.length;++n)r.publicDependency[n]=e.publicDependency[n];if(e.weakDependency&&e.weakDependency.length)for(r.weakDependency=[],n=0;n<e.weakDependency.length;++n)r.weakDependency[n]=e.weakDependency[n];return null!=e.syntax&&e.hasOwnProperty("syntax")&&(r.syntax=e.syntax),r},R.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},R),n.DescriptorProto=(D.prototype.name="",D.prototype.field=l.emptyArray,D.prototype.extension=l.emptyArray,D.prototype.nestedType=l.emptyArray,D.prototype.enumType=l.emptyArray,D.prototype.extensionRange=l.emptyArray,D.prototype.oneofDecl=l.emptyArray,D.prototype.options=null,D.prototype.reservedRange=l.emptyArray,D.prototype.reservedName=l.emptyArray,D.create=function(e){return new D(e)},D.encode=function(e,t){if(t=t||s.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.field&&e.field.length)for(var r=0;r<e.field.length;++r)p.google.protobuf.FieldDescriptorProto.encode(e.field[r],t.uint32(18).fork()).ldelim();if(null!=e.nestedType&&e.nestedType.length)for(r=0;r<e.nestedType.length;++r)p.google.protobuf.DescriptorProto.encode(e.nestedType[r],t.uint32(26).fork()).ldelim();if(null!=e.enumType&&e.enumType.length)for(r=0;r<e.enumType.length;++r)p.google.protobuf.EnumDescriptorProto.encode(e.enumType[r],t.uint32(34).fork()).ldelim();if(null!=e.extensionRange&&e.extensionRange.length)for(r=0;r<e.extensionRange.length;++r)p.google.protobuf.DescriptorProto.ExtensionRange.encode(e.extensionRange[r],t.uint32(42).fork()).ldelim();if(null!=e.extension&&e.extension.length)for(r=0;r<e.extension.length;++r)p.google.protobuf.FieldDescriptorProto.encode(e.extension[r],t.uint32(50).fork()).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&p.google.protobuf.MessageOptions.encode(e.options,t.uint32(58).fork()).ldelim(),null!=e.oneofDecl&&e.oneofDecl.length)for(r=0;r<e.oneofDecl.length;++r)p.google.protobuf.OneofDescriptorProto.encode(e.oneofDecl[r],t.uint32(66).fork()).ldelim();if(null!=e.reservedRange&&e.reservedRange.length)for(r=0;r<e.reservedRange.length;++r)p.google.protobuf.DescriptorProto.ReservedRange.encode(e.reservedRange[r],t.uint32(74).fork()).ldelim();if(null!=e.reservedName&&e.reservedName.length)for(r=0;r<e.reservedName.length;++r)t.uint32(82).string(e.reservedName[r]);return t},D.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},D.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.DescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.field&&n.field.length||(n.field=[]),n.field.push(p.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 6:n.extension&&n.extension.length||(n.extension=[]),n.extension.push(p.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 3:n.nestedType&&n.nestedType.length||(n.nestedType=[]),n.nestedType.push(p.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 4:n.enumType&&n.enumType.length||(n.enumType=[]),n.enumType.push(p.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 5:n.extensionRange&&n.extensionRange.length||(n.extensionRange=[]),n.extensionRange.push(p.google.protobuf.DescriptorProto.ExtensionRange.decode(e,e.uint32()));break;case 8:n.oneofDecl&&n.oneofDecl.length||(n.oneofDecl=[]),n.oneofDecl.push(p.google.protobuf.OneofDescriptorProto.decode(e,e.uint32()));break;case 7:n.options=p.google.protobuf.MessageOptions.decode(e,e.uint32());break;case 9:n.reservedRange&&n.reservedRange.length||(n.reservedRange=[]),n.reservedRange.push(p.google.protobuf.DescriptorProto.ReservedRange.decode(e,e.uint32()));break;case 10:n.reservedName&&n.reservedName.length||(n.reservedName=[]),n.reservedName.push(e.string());break;default:e.skipType(7&o)}}return n},D.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},D.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!l.isString(e.name))return"name: string expected";if(null!=e.field&&e.hasOwnProperty("field")){if(!Array.isArray(e.field))return"field: array expected";for(var t=0;t<e.field.length;++t)if(r=p.google.protobuf.FieldDescriptorProto.verify(e.field[t]))return"field."+r}if(null!=e.extension&&e.hasOwnProperty("extension")){if(!Array.isArray(e.extension))return"extension: array expected";for(t=0;t<e.extension.length;++t)if(r=p.google.protobuf.FieldDescriptorProto.verify(e.extension[t]))return"extension."+r}if(null!=e.nestedType&&e.hasOwnProperty("nestedType")){if(!Array.isArray(e.nestedType))return"nestedType: array expected";for(t=0;t<e.nestedType.length;++t)if(r=p.google.protobuf.DescriptorProto.verify(e.nestedType[t]))return"nestedType."+r}if(null!=e.enumType&&e.hasOwnProperty("enumType")){if(!Array.isArray(e.enumType))return"enumType: array expected";for(t=0;t<e.enumType.length;++t)if(r=p.google.protobuf.EnumDescriptorProto.verify(e.enumType[t]))return"enumType."+r}if(null!=e.extensionRange&&e.hasOwnProperty("extensionRange")){if(!Array.isArray(e.extensionRange))return"extensionRange: array expected";for(t=0;t<e.extensionRange.length;++t)if(r=p.google.protobuf.DescriptorProto.ExtensionRange.verify(e.extensionRange[t]))return"extensionRange."+r}if(null!=e.oneofDecl&&e.hasOwnProperty("oneofDecl")){if(!Array.isArray(e.oneofDecl))return"oneofDecl: array expected";for(t=0;t<e.oneofDecl.length;++t)if(r=p.google.protobuf.OneofDescriptorProto.verify(e.oneofDecl[t]))return"oneofDecl."+r}if(null!=e.options&&e.hasOwnProperty("options")&&(r=p.google.protobuf.MessageOptions.verify(e.options)))return"options."+r;if(null!=e.reservedRange&&e.hasOwnProperty("reservedRange")){if(!Array.isArray(e.reservedRange))return"reservedRange: array expected";var r;for(t=0;t<e.reservedRange.length;++t)if(r=p.google.protobuf.DescriptorProto.ReservedRange.verify(e.reservedRange[t]))return"reservedRange."+r}if(null!=e.reservedName&&e.hasOwnProperty("reservedName")){if(!Array.isArray(e.reservedName))return"reservedName: array expected";for(t=0;t<e.reservedName.length;++t)if(!l.isString(e.reservedName[t]))return"reservedName: string[] expected"}return null},D.fromObject=function(e){if(e instanceof p.google.protobuf.DescriptorProto)return e;var t=new p.google.protobuf.DescriptorProto;if(null!=e.name&&(t.name=String(e.name)),e.field){if(!Array.isArray(e.field))throw TypeError(".google.protobuf.DescriptorProto.field: array expected");t.field=[];for(var r=0;r<e.field.length;++r){if("object"!=typeof e.field[r])throw TypeError(".google.protobuf.DescriptorProto.field: object expected");t.field[r]=p.google.protobuf.FieldDescriptorProto.fromObject(e.field[r])}}if(e.extension){if(!Array.isArray(e.extension))throw TypeError(".google.protobuf.DescriptorProto.extension: array expected");for(t.extension=[],r=0;r<e.extension.length;++r){if("object"!=typeof e.extension[r])throw TypeError(".google.protobuf.DescriptorProto.extension: object expected");t.extension[r]=p.google.protobuf.FieldDescriptorProto.fromObject(e.extension[r])}}if(e.nestedType){if(!Array.isArray(e.nestedType))throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected");for(t.nestedType=[],r=0;r<e.nestedType.length;++r){if("object"!=typeof e.nestedType[r])throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected");t.nestedType[r]=p.google.protobuf.DescriptorProto.fromObject(e.nestedType[r])}}if(e.enumType){if(!Array.isArray(e.enumType))throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected");for(t.enumType=[],r=0;r<e.enumType.length;++r){if("object"!=typeof e.enumType[r])throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected");t.enumType[r]=p.google.protobuf.EnumDescriptorProto.fromObject(e.enumType[r])}}if(e.extensionRange){if(!Array.isArray(e.extensionRange))throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected");for(t.extensionRange=[],r=0;r<e.extensionRange.length;++r){if("object"!=typeof e.extensionRange[r])throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected");t.extensionRange[r]=p.google.protobuf.DescriptorProto.ExtensionRange.fromObject(e.extensionRange[r])}}if(e.oneofDecl){if(!Array.isArray(e.oneofDecl))throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected");for(t.oneofDecl=[],r=0;r<e.oneofDecl.length;++r){if("object"!=typeof e.oneofDecl[r])throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected");t.oneofDecl[r]=p.google.protobuf.OneofDescriptorProto.fromObject(e.oneofDecl[r])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.DescriptorProto.options: object expected");t.options=p.google.protobuf.MessageOptions.fromObject(e.options)}if(e.reservedRange){if(!Array.isArray(e.reservedRange))throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected");for(t.reservedRange=[],r=0;r<e.reservedRange.length;++r){if("object"!=typeof e.reservedRange[r])throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected");t.reservedRange[r]=p.google.protobuf.DescriptorProto.ReservedRange.fromObject(e.reservedRange[r])}}if(e.reservedName){if(!Array.isArray(e.reservedName))throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected");for(t.reservedName=[],r=0;r<e.reservedName.length;++r)t.reservedName[r]=String(e.reservedName[r])}return t},D.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.field=[],r.nestedType=[],r.enumType=[],r.extensionRange=[],r.extension=[],r.oneofDecl=[],r.reservedRange=[],r.reservedName=[]),t.defaults&&(r.name="",r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),e.field&&e.field.length){r.field=[];for(var n=0;n<e.field.length;++n)r.field[n]=p.google.protobuf.FieldDescriptorProto.toObject(e.field[n],t)}if(e.nestedType&&e.nestedType.length)for(r.nestedType=[],n=0;n<e.nestedType.length;++n)r.nestedType[n]=p.google.protobuf.DescriptorProto.toObject(e.nestedType[n],t);if(e.enumType&&e.enumType.length)for(r.enumType=[],n=0;n<e.enumType.length;++n)r.enumType[n]=p.google.protobuf.EnumDescriptorProto.toObject(e.enumType[n],t);if(e.extensionRange&&e.extensionRange.length)for(r.extensionRange=[],n=0;n<e.extensionRange.length;++n)r.extensionRange[n]=p.google.protobuf.DescriptorProto.ExtensionRange.toObject(e.extensionRange[n],t);if(e.extension&&e.extension.length)for(r.extension=[],n=0;n<e.extension.length;++n)r.extension[n]=p.google.protobuf.FieldDescriptorProto.toObject(e.extension[n],t);if(null!=e.options&&e.hasOwnProperty("options")&&(r.options=p.google.protobuf.MessageOptions.toObject(e.options,t)),e.oneofDecl&&e.oneofDecl.length)for(r.oneofDecl=[],n=0;n<e.oneofDecl.length;++n)r.oneofDecl[n]=p.google.protobuf.OneofDescriptorProto.toObject(e.oneofDecl[n],t);if(e.reservedRange&&e.reservedRange.length)for(r.reservedRange=[],n=0;n<e.reservedRange.length;++n)r.reservedRange[n]=p.google.protobuf.DescriptorProto.ReservedRange.toObject(e.reservedRange[n],t);if(e.reservedName&&e.reservedName.length)for(r.reservedName=[],n=0;n<e.reservedName.length;++n)r.reservedName[n]=e.reservedName[n];return r},D.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},D.ExtensionRange=(k.prototype.start=0,k.prototype.end=0,k.prototype.options=null,k.create=function(e){return new k(e)},k.encode=function(e,t){return t=t||s.create(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&p.google.protobuf.ExtensionRangeOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},k.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},k.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.DescriptorProto.ExtensionRange;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.start=e.int32();break;case 2:n.end=e.int32();break;case 3:n.options=p.google.protobuf.ExtensionRangeOptions.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},k.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},k.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!l.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!l.isInteger(e.end)?"end: integer expected":null!=e.options&&e.hasOwnProperty("options")&&(e=p.google.protobuf.ExtensionRangeOptions.verify(e.options))?"options."+e:null},k.fromObject=function(e){if(e instanceof p.google.protobuf.DescriptorProto.ExtensionRange)return e;var t=new p.google.protobuf.DescriptorProto.ExtensionRange;if(null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected");t.options=p.google.protobuf.ExtensionRangeOptions.fromObject(e.options)}return t},k.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.start=0,r.end=0,r.options=null),null!=e.start&&e.hasOwnProperty("start")&&(r.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(r.end=e.end),null!=e.options&&e.hasOwnProperty("options")&&(r.options=p.google.protobuf.ExtensionRangeOptions.toObject(e.options,t)),r},k.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},k),D.ReservedRange=(x.prototype.start=0,x.prototype.end=0,x.create=function(e){return new x(e)},x.encode=function(e,t){return t=t||s.create(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},x.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},x.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.DescriptorProto.ReservedRange;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.start=e.int32();break;case 2:n.end=e.int32();break;default:e.skipType(7&o)}}return n},x.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},x.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!l.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!l.isInteger(e.end)?"end: integer expected":null},x.fromObject=function(e){var t;return e instanceof p.google.protobuf.DescriptorProto.ReservedRange?e:(t=new p.google.protobuf.DescriptorProto.ReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},x.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.start=0,r.end=0),null!=e.start&&e.hasOwnProperty("start")&&(r.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(r.end=e.end),r},x.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},x),D),n.ExtensionRangeOptions=(j.prototype.uninterpretedOption=l.emptyArray,j.create=function(e){return new j(e)},j.encode=function(e,t){if(t=t||s.create(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)p.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},j.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},j.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.ExtensionRangeOptions;e.pos<r;){var o=e.uint32();o>>>3==999?(n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&o)}return n},j.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},j.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=p.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null},j.fromObject=function(e){if(e instanceof p.google.protobuf.ExtensionRangeOptions)return e;var t=new p.google.protobuf.ExtensionRangeOptions;if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=p.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},j.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=p.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},j.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},j),n.FieldDescriptorProto=(A.prototype.name="",A.prototype.number=0,A.prototype.label=1,A.prototype.type=1,A.prototype.typeName="",A.prototype.extendee="",A.prototype.defaultValue="",A.prototype.oneofIndex=0,A.prototype.jsonName="",A.prototype.options=null,A.prototype.proto3Optional=!1,A.create=function(e){return new A(e)},A.encode=function(e,t){return t=t||s.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.extendee&&Object.hasOwnProperty.call(e,"extendee")&&t.uint32(18).string(e.extendee),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(24).int32(e.number),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(32).int32(e.label),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(40).int32(e.type),null!=e.typeName&&Object.hasOwnProperty.call(e,"typeName")&&t.uint32(50).string(e.typeName),null!=e.defaultValue&&Object.hasOwnProperty.call(e,"defaultValue")&&t.uint32(58).string(e.defaultValue),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&p.google.protobuf.FieldOptions.encode(e.options,t.uint32(66).fork()).ldelim(),null!=e.oneofIndex&&Object.hasOwnProperty.call(e,"oneofIndex")&&t.uint32(72).int32(e.oneofIndex),null!=e.jsonName&&Object.hasOwnProperty.call(e,"jsonName")&&t.uint32(82).string(e.jsonName),null!=e.proto3Optional&&Object.hasOwnProperty.call(e,"proto3Optional")&&t.uint32(136).bool(e.proto3Optional),t},A.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},A.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.FieldDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 3:n.number=e.int32();break;case 4:n.label=e.int32();break;case 5:n.type=e.int32();break;case 6:n.typeName=e.string();break;case 2:n.extendee=e.string();break;case 7:n.defaultValue=e.string();break;case 9:n.oneofIndex=e.int32();break;case 10:n.jsonName=e.string();break;case 8:n.options=p.google.protobuf.FieldOptions.decode(e,e.uint32());break;case 17:n.proto3Optional=e.bool();break;default:e.skipType(7&o)}}return n},A.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},A.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!l.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!l.isInteger(e.number))return"number: integer expected";if(null!=e.label&&e.hasOwnProperty("label"))switch(e.label){default:return"label: enum value expected";case 1:case 2:case 3:}if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:}if(null!=e.typeName&&e.hasOwnProperty("typeName")&&!l.isString(e.typeName))return"typeName: string expected";if(null!=e.extendee&&e.hasOwnProperty("extendee")&&!l.isString(e.extendee))return"extendee: string expected";if(null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&!l.isString(e.defaultValue))return"defaultValue: string expected";if(null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&!l.isInteger(e.oneofIndex))return"oneofIndex: integer expected";if(null!=e.jsonName&&e.hasOwnProperty("jsonName")&&!l.isString(e.jsonName))return"jsonName: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=p.google.protobuf.FieldOptions.verify(e.options);if(t)return"options."+t}return null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&"boolean"!=typeof e.proto3Optional?"proto3Optional: boolean expected":null},A.fromObject=function(e){if(e instanceof p.google.protobuf.FieldDescriptorProto)return e;var t=new p.google.protobuf.FieldDescriptorProto;switch(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),e.label){case"LABEL_OPTIONAL":case 1:t.label=1;break;case"LABEL_REQUIRED":case 2:t.label=2;break;case"LABEL_REPEATED":case 3:t.label=3}switch(e.type){case"TYPE_DOUBLE":case 1:t.type=1;break;case"TYPE_FLOAT":case 2:t.type=2;break;case"TYPE_INT64":case 3:t.type=3;break;case"TYPE_UINT64":case 4:t.type=4;break;case"TYPE_INT32":case 5:t.type=5;break;case"TYPE_FIXED64":case 6:t.type=6;break;case"TYPE_FIXED32":case 7:t.type=7;break;case"TYPE_BOOL":case 8:t.type=8;break;case"TYPE_STRING":case 9:t.type=9;break;case"TYPE_GROUP":case 10:t.type=10;break;case"TYPE_MESSAGE":case 11:t.type=11;break;case"TYPE_BYTES":case 12:t.type=12;break;case"TYPE_UINT32":case 13:t.type=13;break;case"TYPE_ENUM":case 14:t.type=14;break;case"TYPE_SFIXED32":case 15:t.type=15;break;case"TYPE_SFIXED64":case 16:t.type=16;break;case"TYPE_SINT32":case 17:t.type=17;break;case"TYPE_SINT64":case 18:t.type=18}if(null!=e.typeName&&(t.typeName=String(e.typeName)),null!=e.extendee&&(t.extendee=String(e.extendee)),null!=e.defaultValue&&(t.defaultValue=String(e.defaultValue)),null!=e.oneofIndex&&(t.oneofIndex=0|e.oneofIndex),null!=e.jsonName&&(t.jsonName=String(e.jsonName)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");t.options=p.google.protobuf.FieldOptions.fromObject(e.options)}return null!=e.proto3Optional&&(t.proto3Optional=Boolean(e.proto3Optional)),t},A.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name="",r.extendee="",r.number=0,r.label=t.enums===String?"LABEL_OPTIONAL":1,r.type=t.enums===String?"TYPE_DOUBLE":1,r.typeName="",r.defaultValue="",r.options=null,r.oneofIndex=0,r.jsonName="",r.proto3Optional=!1),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.extendee&&e.hasOwnProperty("extendee")&&(r.extendee=e.extendee),null!=e.number&&e.hasOwnProperty("number")&&(r.number=e.number),null!=e.label&&e.hasOwnProperty("label")&&(r.label=t.enums===String?p.google.protobuf.FieldDescriptorProto.Label[e.label]:e.label),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?p.google.protobuf.FieldDescriptorProto.Type[e.type]:e.type),null!=e.typeName&&e.hasOwnProperty("typeName")&&(r.typeName=e.typeName),null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&(r.defaultValue=e.defaultValue),null!=e.options&&e.hasOwnProperty("options")&&(r.options=p.google.protobuf.FieldOptions.toObject(e.options,t)),null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&(r.oneofIndex=e.oneofIndex),null!=e.jsonName&&e.hasOwnProperty("jsonName")&&(r.jsonName=e.jsonName),null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&(r.proto3Optional=e.proto3Optional),r},A.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},A.Type=(t={},(r=Object.create(t))[t[1]="TYPE_DOUBLE"]=1,r[t[2]="TYPE_FLOAT"]=2,r[t[3]="TYPE_INT64"]=3,r[t[4]="TYPE_UINT64"]=4,r[t[5]="TYPE_INT32"]=5,r[t[6]="TYPE_FIXED64"]=6,r[t[7]="TYPE_FIXED32"]=7,r[t[8]="TYPE_BOOL"]=8,r[t[9]="TYPE_STRING"]=9,r[t[10]="TYPE_GROUP"]=10,r[t[11]="TYPE_MESSAGE"]=11,r[t[12]="TYPE_BYTES"]=12,r[t[13]="TYPE_UINT32"]=13,r[t[14]="TYPE_ENUM"]=14,r[t[15]="TYPE_SFIXED32"]=15,r[t[16]="TYPE_SFIXED64"]=16,r[t[17]="TYPE_SINT32"]=17,r[t[18]="TYPE_SINT64"]=18,r),A.Label=(t={},(r=Object.create(t))[t[1]="LABEL_OPTIONAL"]=1,r[t[2]="LABEL_REQUIRED"]=2,r[t[3]="LABEL_REPEATED"]=3,r),A),n.OneofDescriptorProto=(N.prototype.name="",N.prototype.options=null,N.create=function(e){return new N(e)},N.encode=function(e,t){return t=t||s.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&p.google.protobuf.OneofOptions.encode(e.options,t.uint32(18).fork()).ldelim(),t},N.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},N.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.OneofDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.options=p.google.protobuf.OneofOptions.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},N.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},N.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!l.isString(e.name)?"name: string expected":null!=e.options&&e.hasOwnProperty("options")&&(e=p.google.protobuf.OneofOptions.verify(e.options))?"options."+e:null},N.fromObject=function(e){if(e instanceof p.google.protobuf.OneofDescriptorProto)return e;var t=new p.google.protobuf.OneofDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected");t.options=p.google.protobuf.OneofOptions.fromObject(e.options)}return t},N.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name="",r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.options&&e.hasOwnProperty("options")&&(r.options=p.google.protobuf.OneofOptions.toObject(e.options,t)),r},N.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},N),n.EnumDescriptorProto=(I.prototype.name="",I.prototype.value=l.emptyArray,I.prototype.options=null,I.prototype.reservedRange=l.emptyArray,I.prototype.reservedName=l.emptyArray,I.create=function(e){return new I(e)},I.encode=function(e,t){if(t=t||s.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&e.value.length)for(var r=0;r<e.value.length;++r)p.google.protobuf.EnumValueDescriptorProto.encode(e.value[r],t.uint32(18).fork()).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&p.google.protobuf.EnumOptions.encode(e.options,t.uint32(26).fork()).ldelim(),null!=e.reservedRange&&e.reservedRange.length)for(r=0;r<e.reservedRange.length;++r)p.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(e.reservedRange[r],t.uint32(34).fork()).ldelim();if(null!=e.reservedName&&e.reservedName.length)for(r=0;r<e.reservedName.length;++r)t.uint32(42).string(e.reservedName[r]);return t},I.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},I.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.EnumDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.value&&n.value.length||(n.value=[]),n.value.push(p.google.protobuf.EnumValueDescriptorProto.decode(e,e.uint32()));break;case 3:n.options=p.google.protobuf.EnumOptions.decode(e,e.uint32());break;case 4:n.reservedRange&&n.reservedRange.length||(n.reservedRange=[]),n.reservedRange.push(p.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(e,e.uint32()));break;case 5:n.reservedName&&n.reservedName.length||(n.reservedName=[]),n.reservedName.push(e.string());break;default:e.skipType(7&o)}}return n},I.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},I.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!l.isString(e.name))return"name: string expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(var t=0;t<e.value.length;++t)if(r=p.google.protobuf.EnumValueDescriptorProto.verify(e.value[t]))return"value."+r}if(null!=e.options&&e.hasOwnProperty("options")&&(r=p.google.protobuf.EnumOptions.verify(e.options)))return"options."+r;if(null!=e.reservedRange&&e.hasOwnProperty("reservedRange")){if(!Array.isArray(e.reservedRange))return"reservedRange: array expected";var r;for(t=0;t<e.reservedRange.length;++t)if(r=p.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(e.reservedRange[t]))return"reservedRange."+r}if(null!=e.reservedName&&e.hasOwnProperty("reservedName")){if(!Array.isArray(e.reservedName))return"reservedName: array expected";for(t=0;t<e.reservedName.length;++t)if(!l.isString(e.reservedName[t]))return"reservedName: string[] expected"}return null},I.fromObject=function(e){if(e instanceof p.google.protobuf.EnumDescriptorProto)return e;var t=new p.google.protobuf.EnumDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),e.value){if(!Array.isArray(e.value))throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected");t.value=[];for(var r=0;r<e.value.length;++r){if("object"!=typeof e.value[r])throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected");t.value[r]=p.google.protobuf.EnumValueDescriptorProto.fromObject(e.value[r])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected");t.options=p.google.protobuf.EnumOptions.fromObject(e.options)}if(e.reservedRange){if(!Array.isArray(e.reservedRange))throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected");for(t.reservedRange=[],r=0;r<e.reservedRange.length;++r){if("object"!=typeof e.reservedRange[r])throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected");t.reservedRange[r]=p.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(e.reservedRange[r])}}if(e.reservedName){if(!Array.isArray(e.reservedName))throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected");for(t.reservedName=[],r=0;r<e.reservedName.length;++r)t.reservedName[r]=String(e.reservedName[r])}return t},I.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.value=[],r.reservedRange=[],r.reservedName=[]),t.defaults&&(r.name="",r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),e.value&&e.value.length){r.value=[];for(var n=0;n<e.value.length;++n)r.value[n]=p.google.protobuf.EnumValueDescriptorProto.toObject(e.value[n],t)}if(null!=e.options&&e.hasOwnProperty("options")&&(r.options=p.google.protobuf.EnumOptions.toObject(e.options,t)),e.reservedRange&&e.reservedRange.length)for(r.reservedRange=[],n=0;n<e.reservedRange.length;++n)r.reservedRange[n]=p.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(e.reservedRange[n],t);if(e.reservedName&&e.reservedName.length)for(r.reservedName=[],n=0;n<e.reservedName.length;++n)r.reservedName[n]=e.reservedName[n];return r},I.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},I.EnumReservedRange=(q.prototype.start=0,q.prototype.end=0,q.create=function(e){return new q(e)},q.encode=function(e,t){return t=t||s.create(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},q.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},q.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.EnumDescriptorProto.EnumReservedRange;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.start=e.int32();break;case 2:n.end=e.int32();break;default:e.skipType(7&o)}}return n},q.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},q.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!l.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!l.isInteger(e.end)?"end: integer expected":null},q.fromObject=function(e){var t;return e instanceof p.google.protobuf.EnumDescriptorProto.EnumReservedRange?e:(t=new p.google.protobuf.EnumDescriptorProto.EnumReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},q.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.start=0,r.end=0),null!=e.start&&e.hasOwnProperty("start")&&(r.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(r.end=e.end),r},q.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},q),I),n.EnumValueDescriptorProto=(M.prototype.name="",M.prototype.number=0,M.prototype.options=null,M.create=function(e){return new M(e)},M.encode=function(e,t){return t=t||s.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(16).int32(e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&p.google.protobuf.EnumValueOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},M.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},M.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.EnumValueDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.number=e.int32();break;case 3:n.options=p.google.protobuf.EnumValueOptions.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},M.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},M.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!l.isString(e.name)?"name: string expected":null!=e.number&&e.hasOwnProperty("number")&&!l.isInteger(e.number)?"number: integer expected":null!=e.options&&e.hasOwnProperty("options")&&(e=p.google.protobuf.EnumValueOptions.verify(e.options))?"options."+e:null},M.fromObject=function(e){if(e instanceof p.google.protobuf.EnumValueDescriptorProto)return e;var t=new p.google.protobuf.EnumValueDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected");t.options=p.google.protobuf.EnumValueOptions.fromObject(e.options)}return t},M.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name="",r.number=0,r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.number&&e.hasOwnProperty("number")&&(r.number=e.number),null!=e.options&&e.hasOwnProperty("options")&&(r.options=p.google.protobuf.EnumValueOptions.toObject(e.options,t)),r},M.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},M),n.ServiceDescriptorProto=(L.prototype.name="",L.prototype.method=l.emptyArray,L.prototype.options=null,L.create=function(e){return new L(e)},L.encode=function(e,t){if(t=t||s.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.method&&e.method.length)for(var r=0;r<e.method.length;++r)p.google.protobuf.MethodDescriptorProto.encode(e.method[r],t.uint32(18).fork()).ldelim();return null!=e.options&&Object.hasOwnProperty.call(e,"options")&&p.google.protobuf.ServiceOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},L.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},L.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.ServiceDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.method&&n.method.length||(n.method=[]),n.method.push(p.google.protobuf.MethodDescriptorProto.decode(e,e.uint32()));break;case 3:n.options=p.google.protobuf.ServiceOptions.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},L.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},L.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!l.isString(e.name))return"name: string expected";if(null!=e.method&&e.hasOwnProperty("method")){if(!Array.isArray(e.method))return"method: array expected";for(var t=0;t<e.method.length;++t)if(r=p.google.protobuf.MethodDescriptorProto.verify(e.method[t]))return"method."+r}var r;return null!=e.options&&e.hasOwnProperty("options")&&(r=p.google.protobuf.ServiceOptions.verify(e.options))?"options."+r:null},L.fromObject=function(e){if(e instanceof p.google.protobuf.ServiceDescriptorProto)return e;var t=new p.google.protobuf.ServiceDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),e.method){if(!Array.isArray(e.method))throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected");t.method=[];for(var r=0;r<e.method.length;++r){if("object"!=typeof e.method[r])throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected");t.method[r]=p.google.protobuf.MethodDescriptorProto.fromObject(e.method[r])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected");t.options=p.google.protobuf.ServiceOptions.fromObject(e.options)}return t},L.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.method=[]),t.defaults&&(r.name="",r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),e.method&&e.method.length){r.method=[];for(var n=0;n<e.method.length;++n)r.method[n]=p.google.protobuf.MethodDescriptorProto.toObject(e.method[n],t)}return null!=e.options&&e.hasOwnProperty("options")&&(r.options=p.google.protobuf.ServiceOptions.toObject(e.options,t)),r},L.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},L),n.MethodDescriptorProto=(F.prototype.name="",F.prototype.inputType="",F.prototype.outputType="",F.prototype.options=null,F.prototype.clientStreaming=!1,F.prototype.serverStreaming=!1,F.create=function(e){return new F(e)},F.encode=function(e,t){return t=t||s.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.inputType&&Object.hasOwnProperty.call(e,"inputType")&&t.uint32(18).string(e.inputType),null!=e.outputType&&Object.hasOwnProperty.call(e,"outputType")&&t.uint32(26).string(e.outputType),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&p.google.protobuf.MethodOptions.encode(e.options,t.uint32(34).fork()).ldelim(),null!=e.clientStreaming&&Object.hasOwnProperty.call(e,"clientStreaming")&&t.uint32(40).bool(e.clientStreaming),null!=e.serverStreaming&&Object.hasOwnProperty.call(e,"serverStreaming")&&t.uint32(48).bool(e.serverStreaming),t},F.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},F.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.MethodDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.inputType=e.string();break;case 3:n.outputType=e.string();break;case 4:n.options=p.google.protobuf.MethodOptions.decode(e,e.uint32());break;case 5:n.clientStreaming=e.bool();break;case 6:n.serverStreaming=e.bool();break;default:e.skipType(7&o)}}return n},F.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},F.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!l.isString(e.name))return"name: string expected";if(null!=e.inputType&&e.hasOwnProperty("inputType")&&!l.isString(e.inputType))return"inputType: string expected";if(null!=e.outputType&&e.hasOwnProperty("outputType")&&!l.isString(e.outputType))return"outputType: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=p.google.protobuf.MethodOptions.verify(e.options);if(t)return"options."+t}return null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&"boolean"!=typeof e.clientStreaming?"clientStreaming: boolean expected":null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&"boolean"!=typeof e.serverStreaming?"serverStreaming: boolean expected":null},F.fromObject=function(e){if(e instanceof p.google.protobuf.MethodDescriptorProto)return e;var t=new p.google.protobuf.MethodDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.inputType&&(t.inputType=String(e.inputType)),null!=e.outputType&&(t.outputType=String(e.outputType)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected");t.options=p.google.protobuf.MethodOptions.fromObject(e.options)}return null!=e.clientStreaming&&(t.clientStreaming=Boolean(e.clientStreaming)),null!=e.serverStreaming&&(t.serverStreaming=Boolean(e.serverStreaming)),t},F.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name="",r.inputType="",r.outputType="",r.options=null,r.clientStreaming=!1,r.serverStreaming=!1),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.inputType&&e.hasOwnProperty("inputType")&&(r.inputType=e.inputType),null!=e.outputType&&e.hasOwnProperty("outputType")&&(r.outputType=e.outputType),null!=e.options&&e.hasOwnProperty("options")&&(r.options=p.google.protobuf.MethodOptions.toObject(e.options,t)),null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&(r.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&(r.serverStreaming=e.serverStreaming),r},F.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},F),n.FileOptions=(B.prototype.javaPackage="",B.prototype.javaOuterClassname="",B.prototype.javaMultipleFiles=!1,B.prototype.javaGenerateEqualsAndHash=!1,B.prototype.javaStringCheckUtf8=!1,B.prototype.optimizeFor=1,B.prototype.goPackage="",B.prototype.ccGenericServices=!1,B.prototype.javaGenericServices=!1,B.prototype.pyGenericServices=!1,B.prototype.phpGenericServices=!1,B.prototype.deprecated=!1,B.prototype.ccEnableArenas=!0,B.prototype.objcClassPrefix="",B.prototype.csharpNamespace="",B.prototype.swiftPrefix="",B.prototype.phpClassPrefix="",B.prototype.phpNamespace="",B.prototype.phpMetadataNamespace="",B.prototype.rubyPackage="",B.prototype.uninterpretedOption=l.emptyArray,B.prototype[".google.api.resourceDefinition"]=l.emptyArray,B.create=function(e){return new B(e)},B.encode=function(e,t){if(t=t||s.create(),null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&t.uint32(10).string(e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&t.uint32(66).string(e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&t.uint32(72).int32(e.optimizeFor),null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&t.uint32(80).bool(e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&t.uint32(90).string(e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&t.uint32(128).bool(e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&t.uint32(136).bool(e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&t.uint32(144).bool(e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&t.uint32(160).bool(e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(184).bool(e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&t.uint32(216).bool(e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&t.uint32(248).bool(e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&t.uint32(290).string(e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&t.uint32(298).string(e.csharpNamespace),null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&t.uint32(314).string(e.swiftPrefix),null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&t.uint32(322).string(e.phpClassPrefix),null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&t.uint32(330).string(e.phpNamespace),null!=e.phpGenericServices&&Object.hasOwnProperty.call(e,"phpGenericServices")&&t.uint32(336).bool(e.phpGenericServices),null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&t.uint32(354).string(e.phpMetadataNamespace),null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&t.uint32(362).string(e.rubyPackage),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)p.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();if(null!=e[".google.api.resourceDefinition"]&&e[".google.api.resourceDefinition"].length)for(r=0;r<e[".google.api.resourceDefinition"].length;++r)p.google.api.ResourceDescriptor.encode(e[".google.api.resourceDefinition"][r],t.uint32(8426).fork()).ldelim();return t},B.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},B.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.FileOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.javaPackage=e.string();break;case 8:n.javaOuterClassname=e.string();break;case 10:n.javaMultipleFiles=e.bool();break;case 20:n.javaGenerateEqualsAndHash=e.bool();break;case 27:n.javaStringCheckUtf8=e.bool();break;case 9:n.optimizeFor=e.int32();break;case 11:n.goPackage=e.string();break;case 16:n.ccGenericServices=e.bool();break;case 17:n.javaGenericServices=e.bool();break;case 18:n.pyGenericServices=e.bool();break;case 42:n.phpGenericServices=e.bool();break;case 23:n.deprecated=e.bool();break;case 31:n.ccEnableArenas=e.bool();break;case 36:n.objcClassPrefix=e.string();break;case 37:n.csharpNamespace=e.string();break;case 39:n.swiftPrefix=e.string();break;case 40:n.phpClassPrefix=e.string();break;case 41:n.phpNamespace=e.string();break;case 44:n.phpMetadataNamespace=e.string();break;case 45:n.rubyPackage=e.string();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1053:n[".google.api.resourceDefinition"]&&n[".google.api.resourceDefinition"].length||(n[".google.api.resourceDefinition"]=[]),n[".google.api.resourceDefinition"].push(p.google.api.ResourceDescriptor.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return n},B.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},B.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.javaPackage&&e.hasOwnProperty("javaPackage")&&!l.isString(e.javaPackage))return"javaPackage: string expected";if(null!=e.javaOuterClassname&&e.hasOwnProperty("javaOuterClassname")&&!l.isString(e.javaOuterClassname))return"javaOuterClassname: string expected";if(null!=e.javaMultipleFiles&&e.hasOwnProperty("javaMultipleFiles")&&"boolean"!=typeof e.javaMultipleFiles)return"javaMultipleFiles: boolean expected";if(null!=e.javaGenerateEqualsAndHash&&e.hasOwnProperty("javaGenerateEqualsAndHash")&&"boolean"!=typeof e.javaGenerateEqualsAndHash)return"javaGenerateEqualsAndHash: boolean expected";if(null!=e.javaStringCheckUtf8&&e.hasOwnProperty("javaStringCheckUtf8")&&"boolean"!=typeof e.javaStringCheckUtf8)return"javaStringCheckUtf8: boolean expected";if(null!=e.optimizeFor&&e.hasOwnProperty("optimizeFor"))switch(e.optimizeFor){default:return"optimizeFor: enum value expected";case 1:case 2:case 3:}if(null!=e.goPackage&&e.hasOwnProperty("goPackage")&&!l.isString(e.goPackage))return"goPackage: string expected";if(null!=e.ccGenericServices&&e.hasOwnProperty("ccGenericServices")&&"boolean"!=typeof e.ccGenericServices)return"ccGenericServices: boolean expected";if(null!=e.javaGenericServices&&e.hasOwnProperty("javaGenericServices")&&"boolean"!=typeof e.javaGenericServices)return"javaGenericServices: boolean expected";if(null!=e.pyGenericServices&&e.hasOwnProperty("pyGenericServices")&&"boolean"!=typeof e.pyGenericServices)return"pyGenericServices: boolean expected";if(null!=e.phpGenericServices&&e.hasOwnProperty("phpGenericServices")&&"boolean"!=typeof e.phpGenericServices)return"phpGenericServices: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.ccEnableArenas&&e.hasOwnProperty("ccEnableArenas")&&"boolean"!=typeof e.ccEnableArenas)return"ccEnableArenas: boolean expected";if(null!=e.objcClassPrefix&&e.hasOwnProperty("objcClassPrefix")&&!l.isString(e.objcClassPrefix))return"objcClassPrefix: string expected";if(null!=e.csharpNamespace&&e.hasOwnProperty("csharpNamespace")&&!l.isString(e.csharpNamespace))return"csharpNamespace: string expected";if(null!=e.swiftPrefix&&e.hasOwnProperty("swiftPrefix")&&!l.isString(e.swiftPrefix))return"swiftPrefix: string expected";if(null!=e.phpClassPrefix&&e.hasOwnProperty("phpClassPrefix")&&!l.isString(e.phpClassPrefix))return"phpClassPrefix: string expected";if(null!=e.phpNamespace&&e.hasOwnProperty("phpNamespace")&&!l.isString(e.phpNamespace))return"phpNamespace: string expected";if(null!=e.phpMetadataNamespace&&e.hasOwnProperty("phpMetadataNamespace")&&!l.isString(e.phpMetadataNamespace))return"phpMetadataNamespace: string expected";if(null!=e.rubyPackage&&e.hasOwnProperty("rubyPackage")&&!l.isString(e.rubyPackage))return"rubyPackage: string expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t)if(r=p.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]))return"uninterpretedOption."+r}if(null!=e[".google.api.resourceDefinition"]&&e.hasOwnProperty(".google.api.resourceDefinition")){if(!Array.isArray(e[".google.api.resourceDefinition"]))return".google.api.resourceDefinition: array expected";var r;for(t=0;t<e[".google.api.resourceDefinition"].length;++t)if(r=p.google.api.ResourceDescriptor.verify(e[".google.api.resourceDefinition"][t]))return".google.api.resourceDefinition."+r}return null},B.fromObject=function(e){if(e instanceof p.google.protobuf.FileOptions)return e;var t=new p.google.protobuf.FileOptions;switch(null!=e.javaPackage&&(t.javaPackage=String(e.javaPackage)),null!=e.javaOuterClassname&&(t.javaOuterClassname=String(e.javaOuterClassname)),null!=e.javaMultipleFiles&&(t.javaMultipleFiles=Boolean(e.javaMultipleFiles)),null!=e.javaGenerateEqualsAndHash&&(t.javaGenerateEqualsAndHash=Boolean(e.javaGenerateEqualsAndHash)),null!=e.javaStringCheckUtf8&&(t.javaStringCheckUtf8=Boolean(e.javaStringCheckUtf8)),e.optimizeFor){case"SPEED":case 1:t.optimizeFor=1;break;case"CODE_SIZE":case 2:t.optimizeFor=2;break;case"LITE_RUNTIME":case 3:t.optimizeFor=3}if(null!=e.goPackage&&(t.goPackage=String(e.goPackage)),null!=e.ccGenericServices&&(t.ccGenericServices=Boolean(e.ccGenericServices)),null!=e.javaGenericServices&&(t.javaGenericServices=Boolean(e.javaGenericServices)),null!=e.pyGenericServices&&(t.pyGenericServices=Boolean(e.pyGenericServices)),null!=e.phpGenericServices&&(t.phpGenericServices=Boolean(e.phpGenericServices)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),null!=e.ccEnableArenas&&(t.ccEnableArenas=Boolean(e.ccEnableArenas)),null!=e.objcClassPrefix&&(t.objcClassPrefix=String(e.objcClassPrefix)),null!=e.csharpNamespace&&(t.csharpNamespace=String(e.csharpNamespace)),null!=e.swiftPrefix&&(t.swiftPrefix=String(e.swiftPrefix)),null!=e.phpClassPrefix&&(t.phpClassPrefix=String(e.phpClassPrefix)),null!=e.phpNamespace&&(t.phpNamespace=String(e.phpNamespace)),null!=e.phpMetadataNamespace&&(t.phpMetadataNamespace=String(e.phpMetadataNamespace)),null!=e.rubyPackage&&(t.rubyPackage=String(e.rubyPackage)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=p.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}if(e[".google.api.resourceDefinition"]){if(!Array.isArray(e[".google.api.resourceDefinition"]))throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: array expected");for(t[".google.api.resourceDefinition"]=[],r=0;r<e[".google.api.resourceDefinition"].length;++r){if("object"!=typeof e[".google.api.resourceDefinition"][r])throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected");t[".google.api.resourceDefinition"][r]=p.google.api.ResourceDescriptor.fromObject(e[".google.api.resourceDefinition"][r])}}return t},B.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[],r[".google.api.resourceDefinition"]=[]),t.defaults&&(r.javaPackage="",r.javaOuterClassname="",r.optimizeFor=t.enums===String?"SPEED":1,r.javaMultipleFiles=!1,r.goPackage="",r.ccGenericServices=!1,r.javaGenericServices=!1,r.pyGenericServices=!1,r.javaGenerateEqualsAndHash=!1,r.deprecated=!1,r.javaStringCheckUtf8=!1,r.ccEnableArenas=!0,r.objcClassPrefix="",r.csharpNamespace="",r.swiftPrefix="",r.phpClassPrefix="",r.phpNamespace="",r.phpGenericServices=!1,r.phpMetadataNamespace="",r.rubyPackage=""),null!=e.javaPackage&&e.hasOwnProperty("javaPackage")&&(r.javaPackage=e.javaPackage),null!=e.javaOuterClassname&&e.hasOwnProperty("javaOuterClassname")&&(r.javaOuterClassname=e.javaOuterClassname),null!=e.optimizeFor&&e.hasOwnProperty("optimizeFor")&&(r.optimizeFor=t.enums===String?p.google.protobuf.FileOptions.OptimizeMode[e.optimizeFor]:e.optimizeFor),null!=e.javaMultipleFiles&&e.hasOwnProperty("javaMultipleFiles")&&(r.javaMultipleFiles=e.javaMultipleFiles),null!=e.goPackage&&e.hasOwnProperty("goPackage")&&(r.goPackage=e.goPackage),null!=e.ccGenericServices&&e.hasOwnProperty("ccGenericServices")&&(r.ccGenericServices=e.ccGenericServices),null!=e.javaGenericServices&&e.hasOwnProperty("javaGenericServices")&&(r.javaGenericServices=e.javaGenericServices),null!=e.pyGenericServices&&e.hasOwnProperty("pyGenericServices")&&(r.pyGenericServices=e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&e.hasOwnProperty("javaGenerateEqualsAndHash")&&(r.javaGenerateEqualsAndHash=e.javaGenerateEqualsAndHash),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),null!=e.javaStringCheckUtf8&&e.hasOwnProperty("javaStringCheckUtf8")&&(r.javaStringCheckUtf8=e.javaStringCheckUtf8),null!=e.ccEnableArenas&&e.hasOwnProperty("ccEnableArenas")&&(r.ccEnableArenas=e.ccEnableArenas),null!=e.objcClassPrefix&&e.hasOwnProperty("objcClassPrefix")&&(r.objcClassPrefix=e.objcClassPrefix),null!=e.csharpNamespace&&e.hasOwnProperty("csharpNamespace")&&(r.csharpNamespace=e.csharpNamespace),null!=e.swiftPrefix&&e.hasOwnProperty("swiftPrefix")&&(r.swiftPrefix=e.swiftPrefix),null!=e.phpClassPrefix&&e.hasOwnProperty("phpClassPrefix")&&(r.phpClassPrefix=e.phpClassPrefix),null!=e.phpNamespace&&e.hasOwnProperty("phpNamespace")&&(r.phpNamespace=e.phpNamespace),null!=e.phpGenericServices&&e.hasOwnProperty("phpGenericServices")&&(r.phpGenericServices=e.phpGenericServices),null!=e.phpMetadataNamespace&&e.hasOwnProperty("phpMetadataNamespace")&&(r.phpMetadataNamespace=e.phpMetadataNamespace),null!=e.rubyPackage&&e.hasOwnProperty("rubyPackage")&&(r.rubyPackage=e.rubyPackage),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=p.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}if(e[".google.api.resourceDefinition"]&&e[".google.api.resourceDefinition"].length)for(r[".google.api.resourceDefinition"]=[],n=0;n<e[".google.api.resourceDefinition"].length;++n)r[".google.api.resourceDefinition"][n]=p.google.api.ResourceDescriptor.toObject(e[".google.api.resourceDefinition"][n],t);return r},B.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},B.OptimizeMode=(t={},(r=Object.create(t))[t[1]="SPEED"]=1,r[t[2]="CODE_SIZE"]=2,r[t[3]="LITE_RUNTIME"]=3,r),B),n.MessageOptions=(V.prototype.messageSetWireFormat=!1,V.prototype.noStandardDescriptorAccessor=!1,V.prototype.deprecated=!1,V.prototype.mapEntry=!1,V.prototype.uninterpretedOption=l.emptyArray,V.prototype[".google.api.resource"]=null,V.create=function(e){return new V(e)},V.encode=function(e,t){if(t=t||s.create(),null!=e.messageSetWireFormat&&Object.hasOwnProperty.call(e,"messageSetWireFormat")&&t.uint32(8).bool(e.messageSetWireFormat),null!=e.noStandardDescriptorAccessor&&Object.hasOwnProperty.call(e,"noStandardDescriptorAccessor")&&t.uint32(16).bool(e.noStandardDescriptorAccessor),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.mapEntry&&Object.hasOwnProperty.call(e,"mapEntry")&&t.uint32(56).bool(e.mapEntry),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)p.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return null!=e[".google.api.resource"]&&Object.hasOwnProperty.call(e,".google.api.resource")&&p.google.api.ResourceDescriptor.encode(e[".google.api.resource"],t.uint32(8426).fork()).ldelim(),t},V.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},V.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.MessageOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.messageSetWireFormat=e.bool();break;case 2:n.noStandardDescriptorAccessor=e.bool();break;case 3:n.deprecated=e.bool();break;case 7:n.mapEntry=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1053:n[".google.api.resource"]=p.google.api.ResourceDescriptor.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},V.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},V.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.messageSetWireFormat&&e.hasOwnProperty("messageSetWireFormat")&&"boolean"!=typeof e.messageSetWireFormat)return"messageSetWireFormat: boolean expected";if(null!=e.noStandardDescriptorAccessor&&e.hasOwnProperty("noStandardDescriptorAccessor")&&"boolean"!=typeof e.noStandardDescriptorAccessor)return"noStandardDescriptorAccessor: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.mapEntry&&e.hasOwnProperty("mapEntry")&&"boolean"!=typeof e.mapEntry)return"mapEntry: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t)if(r=p.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]))return"uninterpretedOption."+r}var r;return null!=e[".google.api.resource"]&&e.hasOwnProperty(".google.api.resource")&&(r=p.google.api.ResourceDescriptor.verify(e[".google.api.resource"]))?".google.api.resource."+r:null},V.fromObject=function(e){if(e instanceof p.google.protobuf.MessageOptions)return e;var t=new p.google.protobuf.MessageOptions;if(null!=e.messageSetWireFormat&&(t.messageSetWireFormat=Boolean(e.messageSetWireFormat)),null!=e.noStandardDescriptorAccessor&&(t.noStandardDescriptorAccessor=Boolean(e.noStandardDescriptorAccessor)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),null!=e.mapEntry&&(t.mapEntry=Boolean(e.mapEntry)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=p.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}if(null!=e[".google.api.resource"]){if("object"!=typeof e[".google.api.resource"])throw TypeError(".google.protobuf.MessageOptions..google.api.resource: object expected");t[".google.api.resource"]=p.google.api.ResourceDescriptor.fromObject(e[".google.api.resource"])}return t},V.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.messageSetWireFormat=!1,r.noStandardDescriptorAccessor=!1,r.deprecated=!1,r.mapEntry=!1,r[".google.api.resource"]=null),null!=e.messageSetWireFormat&&e.hasOwnProperty("messageSetWireFormat")&&(r.messageSetWireFormat=e.messageSetWireFormat),null!=e.noStandardDescriptorAccessor&&e.hasOwnProperty("noStandardDescriptorAccessor")&&(r.noStandardDescriptorAccessor=e.noStandardDescriptorAccessor),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),null!=e.mapEntry&&e.hasOwnProperty("mapEntry")&&(r.mapEntry=e.mapEntry),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=p.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return null!=e[".google.api.resource"]&&e.hasOwnProperty(".google.api.resource")&&(r[".google.api.resource"]=p.google.api.ResourceDescriptor.toObject(e[".google.api.resource"],t)),r},V.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},V),n.FieldOptions=(U.prototype.ctype=0,U.prototype.packed=!1,U.prototype.jstype=0,U.prototype.lazy=!1,U.prototype.deprecated=!1,U.prototype.weak=!1,U.prototype.uninterpretedOption=l.emptyArray,U.prototype[".google.api.fieldBehavior"]=l.emptyArray,U.prototype[".google.api.resourceReference"]=null,U.create=function(e){return new U(e)},U.encode=function(e,t){if(t=t||s.create(),null!=e.ctype&&Object.hasOwnProperty.call(e,"ctype")&&t.uint32(8).int32(e.ctype),null!=e.packed&&Object.hasOwnProperty.call(e,"packed")&&t.uint32(16).bool(e.packed),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.lazy&&Object.hasOwnProperty.call(e,"lazy")&&t.uint32(40).bool(e.lazy),null!=e.jstype&&Object.hasOwnProperty.call(e,"jstype")&&t.uint32(48).int32(e.jstype),null!=e.weak&&Object.hasOwnProperty.call(e,"weak")&&t.uint32(80).bool(e.weak),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)p.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();if(null!=e[".google.api.fieldBehavior"]&&e[".google.api.fieldBehavior"].length){for(t.uint32(8418).fork(),r=0;r<e[".google.api.fieldBehavior"].length;++r)t.int32(e[".google.api.fieldBehavior"][r]);t.ldelim()}return null!=e[".google.api.resourceReference"]&&Object.hasOwnProperty.call(e,".google.api.resourceReference")&&p.google.api.ResourceReference.encode(e[".google.api.resourceReference"],t.uint32(8442).fork()).ldelim(),t},U.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},U.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.FieldOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.ctype=e.int32();break;case 2:n.packed=e.bool();break;case 6:n.jstype=e.int32();break;case 5:n.lazy=e.bool();break;case 3:n.deprecated=e.bool();break;case 10:n.weak=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1052:if(n[".google.api.fieldBehavior"]&&n[".google.api.fieldBehavior"].length||(n[".google.api.fieldBehavior"]=[]),2==(7&o))for(var i=e.uint32()+e.pos;e.pos<i;)n[".google.api.fieldBehavior"].push(e.int32());else n[".google.api.fieldBehavior"].push(e.int32());break;case 1055:n[".google.api.resourceReference"]=p.google.api.ResourceReference.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},U.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},U.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.ctype&&e.hasOwnProperty("ctype"))switch(e.ctype){default:return"ctype: enum value expected";case 0:case 1:case 2:}if(null!=e.packed&&e.hasOwnProperty("packed")&&"boolean"!=typeof e.packed)return"packed: boolean expected";if(null!=e.jstype&&e.hasOwnProperty("jstype"))switch(e.jstype){default:return"jstype: enum value expected";case 0:case 1:case 2:}if(null!=e.lazy&&e.hasOwnProperty("lazy")&&"boolean"!=typeof e.lazy)return"lazy: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.weak&&e.hasOwnProperty("weak")&&"boolean"!=typeof e.weak)return"weak: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t)if(r=p.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]))return"uninterpretedOption."+r}if(null!=e[".google.api.fieldBehavior"]&&e.hasOwnProperty(".google.api.fieldBehavior")){if(!Array.isArray(e[".google.api.fieldBehavior"]))return".google.api.fieldBehavior: array expected";for(t=0;t<e[".google.api.fieldBehavior"].length;++t)switch(e[".google.api.fieldBehavior"][t]){default:return".google.api.fieldBehavior: enum value[] expected";case 0:case 1:case 2:case 3:case 4:case 5:}}var r;return null!=e[".google.api.resourceReference"]&&e.hasOwnProperty(".google.api.resourceReference")&&(r=p.google.api.ResourceReference.verify(e[".google.api.resourceReference"]))?".google.api.resourceReference."+r:null},U.fromObject=function(e){if(e instanceof p.google.protobuf.FieldOptions)return e;var t=new p.google.protobuf.FieldOptions;switch(e.ctype){case"STRING":case 0:t.ctype=0;break;case"CORD":case 1:t.ctype=1;break;case"STRING_PIECE":case 2:t.ctype=2}switch(null!=e.packed&&(t.packed=Boolean(e.packed)),e.jstype){case"JS_NORMAL":case 0:t.jstype=0;break;case"JS_STRING":case 1:t.jstype=1;break;case"JS_NUMBER":case 2:t.jstype=2}if(null!=e.lazy&&(t.lazy=Boolean(e.lazy)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),null!=e.weak&&(t.weak=Boolean(e.weak)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=p.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}if(e[".google.api.fieldBehavior"]){if(!Array.isArray(e[".google.api.fieldBehavior"]))throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected");for(t[".google.api.fieldBehavior"]=[],r=0;r<e[".google.api.fieldBehavior"].length;++r)switch(e[".google.api.fieldBehavior"][r]){default:case"FIELD_BEHAVIOR_UNSPECIFIED":case 0:t[".google.api.fieldBehavior"][r]=0;break;case"OPTIONAL":case 1:t[".google.api.fieldBehavior"][r]=1;break;case"REQUIRED":case 2:t[".google.api.fieldBehavior"][r]=2;break;case"OUTPUT_ONLY":case 3:t[".google.api.fieldBehavior"][r]=3;break;case"INPUT_ONLY":case 4:t[".google.api.fieldBehavior"][r]=4;break;case"IMMUTABLE":case 5:t[".google.api.fieldBehavior"][r]=5}}if(null!=e[".google.api.resourceReference"]){if("object"!=typeof e[".google.api.resourceReference"])throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected");t[".google.api.resourceReference"]=p.google.api.ResourceReference.fromObject(e[".google.api.resourceReference"])}return t},U.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[],r[".google.api.fieldBehavior"]=[]),t.defaults&&(r.ctype=t.enums===String?"STRING":0,r.packed=!1,r.deprecated=!1,r.lazy=!1,r.jstype=t.enums===String?"JS_NORMAL":0,r.weak=!1,r[".google.api.resourceReference"]=null),null!=e.ctype&&e.hasOwnProperty("ctype")&&(r.ctype=t.enums===String?p.google.protobuf.FieldOptions.CType[e.ctype]:e.ctype),null!=e.packed&&e.hasOwnProperty("packed")&&(r.packed=e.packed),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),null!=e.lazy&&e.hasOwnProperty("lazy")&&(r.lazy=e.lazy),null!=e.jstype&&e.hasOwnProperty("jstype")&&(r.jstype=t.enums===String?p.google.protobuf.FieldOptions.JSType[e.jstype]:e.jstype),null!=e.weak&&e.hasOwnProperty("weak")&&(r.weak=e.weak),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=p.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}if(e[".google.api.fieldBehavior"]&&e[".google.api.fieldBehavior"].length)for(r[".google.api.fieldBehavior"]=[],n=0;n<e[".google.api.fieldBehavior"].length;++n)r[".google.api.fieldBehavior"][n]=t.enums===String?p.google.api.FieldBehavior[e[".google.api.fieldBehavior"][n]]:e[".google.api.fieldBehavior"][n];return null!=e[".google.api.resourceReference"]&&e.hasOwnProperty(".google.api.resourceReference")&&(r[".google.api.resourceReference"]=p.google.api.ResourceReference.toObject(e[".google.api.resourceReference"],t)),r},U.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},U.CType=(t={},(r=Object.create(t))[t[0]="STRING"]=0,r[t[1]="CORD"]=1,r[t[2]="STRING_PIECE"]=2,r),U.JSType=(t={},(r=Object.create(t))[t[0]="JS_NORMAL"]=0,r[t[1]="JS_STRING"]=1,r[t[2]="JS_NUMBER"]=2,r),U),n.OneofOptions=($.prototype.uninterpretedOption=l.emptyArray,$.create=function(e){return new $(e)},$.encode=function(e,t){if(t=t||s.create(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)p.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},$.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},$.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.OneofOptions;e.pos<r;){var o=e.uint32();o>>>3==999?(n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&o)}return n},$.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},$.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=p.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null},$.fromObject=function(e){if(e instanceof p.google.protobuf.OneofOptions)return e;var t=new p.google.protobuf.OneofOptions;if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=p.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},$.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=p.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},$.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},$),n.EnumOptions=(G.prototype.allowAlias=!1,G.prototype.deprecated=!1,G.prototype.uninterpretedOption=l.emptyArray,G.create=function(e){return new G(e)},G.encode=function(e,t){if(t=t||s.create(),null!=e.allowAlias&&Object.hasOwnProperty.call(e,"allowAlias")&&t.uint32(16).bool(e.allowAlias),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)p.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},G.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},G.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.EnumOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 2:n.allowAlias=e.bool();break;case 3:n.deprecated=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return n},G.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},G.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.allowAlias&&e.hasOwnProperty("allowAlias")&&"boolean"!=typeof e.allowAlias)return"allowAlias: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=p.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null},G.fromObject=function(e){if(e instanceof p.google.protobuf.EnumOptions)return e;var t=new p.google.protobuf.EnumOptions;if(null!=e.allowAlias&&(t.allowAlias=Boolean(e.allowAlias)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=p.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},G.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.allowAlias=!1,r.deprecated=!1),null!=e.allowAlias&&e.hasOwnProperty("allowAlias")&&(r.allowAlias=e.allowAlias),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=p.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},G.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},G),n.EnumValueOptions=(H.prototype.deprecated=!1,H.prototype.uninterpretedOption=l.emptyArray,H.create=function(e){return new H(e)},H.encode=function(e,t){if(t=t||s.create(),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(8).bool(e.deprecated),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)p.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},H.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},H.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.EnumValueOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.deprecated=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return n},H.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},H.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=p.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null},H.fromObject=function(e){if(e instanceof p.google.protobuf.EnumValueOptions)return e;var t=new p.google.protobuf.EnumValueOptions;if(null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=p.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},H.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.deprecated=!1),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=p.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},H.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},H),n.ServiceOptions=(z.prototype.deprecated=!1,z.prototype.uninterpretedOption=l.emptyArray,z.prototype[".google.api.defaultHost"]="",z.prototype[".google.api.oauthScopes"]="",z.create=function(e){return new z(e)},z.encode=function(e,t){if(t=t||s.create(),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(264).bool(e.deprecated),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)p.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return null!=e[".google.api.defaultHost"]&&Object.hasOwnProperty.call(e,".google.api.defaultHost")&&t.uint32(8394).string(e[".google.api.defaultHost"]),null!=e[".google.api.oauthScopes"]&&Object.hasOwnProperty.call(e,".google.api.oauthScopes")&&t.uint32(8402).string(e[".google.api.oauthScopes"]),t},z.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},z.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.ServiceOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 33:n.deprecated=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1049:n[".google.api.defaultHost"]=e.string();break;case 1050:n[".google.api.oauthScopes"]=e.string();break;default:e.skipType(7&o)}}return n},z.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},z.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=p.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null!=e[".google.api.defaultHost"]&&e.hasOwnProperty(".google.api.defaultHost")&&!l.isString(e[".google.api.defaultHost"])?".google.api.defaultHost: string expected":null!=e[".google.api.oauthScopes"]&&e.hasOwnProperty(".google.api.oauthScopes")&&!l.isString(e[".google.api.oauthScopes"])?".google.api.oauthScopes: string expected":null},z.fromObject=function(e){if(e instanceof p.google.protobuf.ServiceOptions)return e;var t=new p.google.protobuf.ServiceOptions;if(null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=p.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return null!=e[".google.api.defaultHost"]&&(t[".google.api.defaultHost"]=String(e[".google.api.defaultHost"])),null!=e[".google.api.oauthScopes"]&&(t[".google.api.oauthScopes"]=String(e[".google.api.oauthScopes"])),t},z.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.deprecated=!1,r[".google.api.defaultHost"]="",r[".google.api.oauthScopes"]=""),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=p.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return null!=e[".google.api.defaultHost"]&&e.hasOwnProperty(".google.api.defaultHost")&&(r[".google.api.defaultHost"]=e[".google.api.defaultHost"]),null!=e[".google.api.oauthScopes"]&&e.hasOwnProperty(".google.api.oauthScopes")&&(r[".google.api.oauthScopes"]=e[".google.api.oauthScopes"]),r},z.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},z),n.MethodOptions=(W.prototype.deprecated=!1,W.prototype.idempotencyLevel=0,W.prototype.uninterpretedOption=l.emptyArray,W.prototype[".google.api.http"]=null,W.prototype[".google.api.methodSignature"]=l.emptyArray,W.create=function(e){return new W(e)},W.encode=function(e,t){if(t=t||s.create(),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(264).bool(e.deprecated),null!=e.idempotencyLevel&&Object.hasOwnProperty.call(e,"idempotencyLevel")&&t.uint32(272).int32(e.idempotencyLevel),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)p.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();if(null!=e[".google.api.methodSignature"]&&e[".google.api.methodSignature"].length)for(r=0;r<e[".google.api.methodSignature"].length;++r)t.uint32(8410).string(e[".google.api.methodSignature"][r]);return null!=e[".google.api.http"]&&Object.hasOwnProperty.call(e,".google.api.http")&&p.google.api.HttpRule.encode(e[".google.api.http"],t.uint32(578365826).fork()).ldelim(),t},W.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},W.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.MethodOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 33:n.deprecated=e.bool();break;case 34:n.idempotencyLevel=e.int32();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(p.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 72295728:n[".google.api.http"]=p.google.api.HttpRule.decode(e,e.uint32());break;case 1051:n[".google.api.methodSignature"]&&n[".google.api.methodSignature"].length||(n[".google.api.methodSignature"]=[]),n[".google.api.methodSignature"].push(e.string());break;default:e.skipType(7&o)}}return n},W.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},W.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.idempotencyLevel&&e.hasOwnProperty("idempotencyLevel"))switch(e.idempotencyLevel){default:return"idempotencyLevel: enum value expected";case 0:case 1:case 2:}if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t)if(r=p.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]))return"uninterpretedOption."+r}var r;if(null!=e[".google.api.http"]&&e.hasOwnProperty(".google.api.http")&&(r=p.google.api.HttpRule.verify(e[".google.api.http"])))return".google.api.http."+r;if(null!=e[".google.api.methodSignature"]&&e.hasOwnProperty(".google.api.methodSignature")){if(!Array.isArray(e[".google.api.methodSignature"]))return".google.api.methodSignature: array expected";for(t=0;t<e[".google.api.methodSignature"].length;++t)if(!l.isString(e[".google.api.methodSignature"][t]))return".google.api.methodSignature: string[] expected"}return null},W.fromObject=function(e){if(e instanceof p.google.protobuf.MethodOptions)return e;var t=new p.google.protobuf.MethodOptions;switch(null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.idempotencyLevel){case"IDEMPOTENCY_UNKNOWN":case 0:t.idempotencyLevel=0;break;case"NO_SIDE_EFFECTS":case 1:t.idempotencyLevel=1;break;case"IDEMPOTENT":case 2:t.idempotencyLevel=2}if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=p.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}if(null!=e[".google.api.http"]){if("object"!=typeof e[".google.api.http"])throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected");t[".google.api.http"]=p.google.api.HttpRule.fromObject(e[".google.api.http"])}if(e[".google.api.methodSignature"]){if(!Array.isArray(e[".google.api.methodSignature"]))throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected");for(t[".google.api.methodSignature"]=[],r=0;r<e[".google.api.methodSignature"].length;++r)t[".google.api.methodSignature"][r]=String(e[".google.api.methodSignature"][r])}return t},W.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[],r[".google.api.methodSignature"]=[]),t.defaults&&(r.deprecated=!1,r.idempotencyLevel=t.enums===String?"IDEMPOTENCY_UNKNOWN":0,r[".google.api.http"]=null),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),null!=e.idempotencyLevel&&e.hasOwnProperty("idempotencyLevel")&&(r.idempotencyLevel=t.enums===String?p.google.protobuf.MethodOptions.IdempotencyLevel[e.idempotencyLevel]:e.idempotencyLevel),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=p.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}if(e[".google.api.methodSignature"]&&e[".google.api.methodSignature"].length)for(r[".google.api.methodSignature"]=[],n=0;n<e[".google.api.methodSignature"].length;++n)r[".google.api.methodSignature"][n]=e[".google.api.methodSignature"][n];return null!=e[".google.api.http"]&&e.hasOwnProperty(".google.api.http")&&(r[".google.api.http"]=p.google.api.HttpRule.toObject(e[".google.api.http"],t)),r},W.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},W.IdempotencyLevel=(t={},(r=Object.create(t))[t[0]="IDEMPOTENCY_UNKNOWN"]=0,r[t[1]="NO_SIDE_EFFECTS"]=1,r[t[2]="IDEMPOTENT"]=2,r),W),n.UninterpretedOption=(J.prototype.name=l.emptyArray,J.prototype.identifierValue="",J.prototype.positiveIntValue=l.Long?l.Long.fromBits(0,0,!0):0,J.prototype.negativeIntValue=l.Long?l.Long.fromBits(0,0,!1):0,J.prototype.doubleValue=0,J.prototype.stringValue=l.newBuffer([]),J.prototype.aggregateValue="",J.create=function(e){return new J(e)},J.encode=function(e,t){if(t=t||s.create(),null!=e.name&&e.name.length)for(var r=0;r<e.name.length;++r)p.google.protobuf.UninterpretedOption.NamePart.encode(e.name[r],t.uint32(18).fork()).ldelim();return null!=e.identifierValue&&Object.hasOwnProperty.call(e,"identifierValue")&&t.uint32(26).string(e.identifierValue),null!=e.positiveIntValue&&Object.hasOwnProperty.call(e,"positiveIntValue")&&t.uint32(32).uint64(e.positiveIntValue),null!=e.negativeIntValue&&Object.hasOwnProperty.call(e,"negativeIntValue")&&t.uint32(40).int64(e.negativeIntValue),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(49).double(e.doubleValue),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&t.uint32(58).bytes(e.stringValue),null!=e.aggregateValue&&Object.hasOwnProperty.call(e,"aggregateValue")&&t.uint32(66).string(e.aggregateValue),t},J.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},J.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.UninterpretedOption;e.pos<r;){var o=e.uint32();switch(o>>>3){case 2:n.name&&n.name.length||(n.name=[]),n.name.push(p.google.protobuf.UninterpretedOption.NamePart.decode(e,e.uint32()));break;case 3:n.identifierValue=e.string();break;case 4:n.positiveIntValue=e.uint64();break;case 5:n.negativeIntValue=e.int64();break;case 6:n.doubleValue=e.double();break;case 7:n.stringValue=e.bytes();break;case 8:n.aggregateValue=e.string();break;default:e.skipType(7&o)}}return n},J.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},J.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")){if(!Array.isArray(e.name))return"name: array expected";for(var t=0;t<e.name.length;++t){var r=p.google.protobuf.UninterpretedOption.NamePart.verify(e.name[t]);if(r)return"name."+r}}return null!=e.identifierValue&&e.hasOwnProperty("identifierValue")&&!l.isString(e.identifierValue)?"identifierValue: string expected":null!=e.positiveIntValue&&e.hasOwnProperty("positiveIntValue")&&!(l.isInteger(e.positiveIntValue)||e.positiveIntValue&&l.isInteger(e.positiveIntValue.low)&&l.isInteger(e.positiveIntValue.high))?"positiveIntValue: integer|Long expected":null!=e.negativeIntValue&&e.hasOwnProperty("negativeIntValue")&&!(l.isInteger(e.negativeIntValue)||e.negativeIntValue&&l.isInteger(e.negativeIntValue.low)&&l.isInteger(e.negativeIntValue.high))?"negativeIntValue: integer|Long expected":null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&"number"!=typeof e.doubleValue?"doubleValue: number expected":null!=e.stringValue&&e.hasOwnProperty("stringValue")&&!(e.stringValue&&"number"==typeof e.stringValue.length||l.isString(e.stringValue))?"stringValue: buffer expected":null!=e.aggregateValue&&e.hasOwnProperty("aggregateValue")&&!l.isString(e.aggregateValue)?"aggregateValue: string expected":null},J.fromObject=function(e){if(e instanceof p.google.protobuf.UninterpretedOption)return e;var t=new p.google.protobuf.UninterpretedOption;if(e.name){if(!Array.isArray(e.name))throw TypeError(".google.protobuf.UninterpretedOption.name: array expected");t.name=[];for(var r=0;r<e.name.length;++r){if("object"!=typeof e.name[r])throw TypeError(".google.protobuf.UninterpretedOption.name: object expected");t.name[r]=p.google.protobuf.UninterpretedOption.NamePart.fromObject(e.name[r])}}return null!=e.identifierValue&&(t.identifierValue=String(e.identifierValue)),null!=e.positiveIntValue&&(l.Long?(t.positiveIntValue=l.Long.fromValue(e.positiveIntValue)).unsigned=!0:"string"==typeof e.positiveIntValue?t.positiveIntValue=parseInt(e.positiveIntValue,10):"number"==typeof e.positiveIntValue?t.positiveIntValue=e.positiveIntValue:"object"==typeof e.positiveIntValue&&(t.positiveIntValue=new l.LongBits(e.positiveIntValue.low>>>0,e.positiveIntValue.high>>>0).toNumber(!0))),null!=e.negativeIntValue&&(l.Long?(t.negativeIntValue=l.Long.fromValue(e.negativeIntValue)).unsigned=!1:"string"==typeof e.negativeIntValue?t.negativeIntValue=parseInt(e.negativeIntValue,10):"number"==typeof e.negativeIntValue?t.negativeIntValue=e.negativeIntValue:"object"==typeof e.negativeIntValue&&(t.negativeIntValue=new l.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber())),null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.stringValue&&("string"==typeof e.stringValue?l.base64.decode(e.stringValue,t.stringValue=l.newBuffer(l.base64.length(e.stringValue)),0):e.stringValue.length&&(t.stringValue=e.stringValue)),null!=e.aggregateValue&&(t.aggregateValue=String(e.aggregateValue)),t},J.toObject=function(e,t){var r,n={};if(((t=t||{}).arrays||t.defaults)&&(n.name=[]),t.defaults&&(n.identifierValue="",l.Long?(r=new l.Long(0,0,!0),n.positiveIntValue=t.longs===String?r.toString():t.longs===Number?r.toNumber():r):n.positiveIntValue=t.longs===String?"0":0,l.Long?(r=new l.Long(0,0,!1),n.negativeIntValue=t.longs===String?r.toString():t.longs===Number?r.toNumber():r):n.negativeIntValue=t.longs===String?"0":0,n.doubleValue=0,t.bytes===String?n.stringValue="":(n.stringValue=[],t.bytes!==Array&&(n.stringValue=l.newBuffer(n.stringValue))),n.aggregateValue=""),e.name&&e.name.length){n.name=[];for(var o=0;o<e.name.length;++o)n.name[o]=p.google.protobuf.UninterpretedOption.NamePart.toObject(e.name[o],t)}return null!=e.identifierValue&&e.hasOwnProperty("identifierValue")&&(n.identifierValue=e.identifierValue),null!=e.positiveIntValue&&e.hasOwnProperty("positiveIntValue")&&("number"==typeof e.positiveIntValue?n.positiveIntValue=t.longs===String?String(e.positiveIntValue):e.positiveIntValue:n.positiveIntValue=t.longs===String?l.Long.prototype.toString.call(e.positiveIntValue):t.longs===Number?new l.LongBits(e.positiveIntValue.low>>>0,e.positiveIntValue.high>>>0).toNumber(!0):e.positiveIntValue),null!=e.negativeIntValue&&e.hasOwnProperty("negativeIntValue")&&("number"==typeof e.negativeIntValue?n.negativeIntValue=t.longs===String?String(e.negativeIntValue):e.negativeIntValue:n.negativeIntValue=t.longs===String?l.Long.prototype.toString.call(e.negativeIntValue):t.longs===Number?new l.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber():e.negativeIntValue),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(n.stringValue=t.bytes===String?l.base64.encode(e.stringValue,0,e.stringValue.length):t.bytes===Array?Array.prototype.slice.call(e.stringValue):e.stringValue),null!=e.aggregateValue&&e.hasOwnProperty("aggregateValue")&&(n.aggregateValue=e.aggregateValue),n},J.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},J.NamePart=(Y.prototype.namePart="",Y.prototype.isExtension=!1,Y.create=function(e){return new Y(e)},Y.encode=function(e,t){return(t=t||s.create()).uint32(10).string(e.namePart),t.uint32(16).bool(e.isExtension),t},Y.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},Y.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.UninterpretedOption.NamePart;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.namePart=e.string();break;case 2:n.isExtension=e.bool();break;default:e.skipType(7&o)}}if(!n.hasOwnProperty("namePart"))throw l.ProtocolError("missing required 'namePart'",{instance:n});if(n.hasOwnProperty("isExtension"))return n;throw l.ProtocolError("missing required 'isExtension'",{instance:n})},Y.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},Y.verify=function(e){return"object"!=typeof e||null===e?"object expected":l.isString(e.namePart)?"boolean"!=typeof e.isExtension?"isExtension: boolean expected":null:"namePart: string expected"},Y.fromObject=function(e){var t;return e instanceof p.google.protobuf.UninterpretedOption.NamePart?e:(t=new p.google.protobuf.UninterpretedOption.NamePart,null!=e.namePart&&(t.namePart=String(e.namePart)),null!=e.isExtension&&(t.isExtension=Boolean(e.isExtension)),t)},Y.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.namePart="",r.isExtension=!1),null!=e.namePart&&e.hasOwnProperty("namePart")&&(r.namePart=e.namePart),null!=e.isExtension&&e.hasOwnProperty("isExtension")&&(r.isExtension=e.isExtension),r},Y.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},Y),J),n.SourceCodeInfo=(K.prototype.location=l.emptyArray,K.create=function(e){return new K(e)},K.encode=function(e,t){if(t=t||s.create(),null!=e.location&&e.location.length)for(var r=0;r<e.location.length;++r)p.google.protobuf.SourceCodeInfo.Location.encode(e.location[r],t.uint32(10).fork()).ldelim();return t},K.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},K.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.SourceCodeInfo;e.pos<r;){var o=e.uint32();o>>>3==1?(n.location&&n.location.length||(n.location=[]),n.location.push(p.google.protobuf.SourceCodeInfo.Location.decode(e,e.uint32()))):e.skipType(7&o)}return n},K.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},K.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.location&&e.hasOwnProperty("location")){if(!Array.isArray(e.location))return"location: array expected";for(var t=0;t<e.location.length;++t){var r=p.google.protobuf.SourceCodeInfo.Location.verify(e.location[t]);if(r)return"location."+r}}return null},K.fromObject=function(e){if(e instanceof p.google.protobuf.SourceCodeInfo)return e;var t=new p.google.protobuf.SourceCodeInfo;if(e.location){if(!Array.isArray(e.location))throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected");t.location=[];for(var r=0;r<e.location.length;++r){if("object"!=typeof e.location[r])throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected");t.location[r]=p.google.protobuf.SourceCodeInfo.Location.fromObject(e.location[r])}}return t},K.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.location=[]),e.location&&e.location.length){r.location=[];for(var n=0;n<e.location.length;++n)r.location[n]=p.google.protobuf.SourceCodeInfo.Location.toObject(e.location[n],t)}return r},K.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},K.Location=(X.prototype.path=l.emptyArray,X.prototype.span=l.emptyArray,X.prototype.leadingComments="",X.prototype.trailingComments="",X.prototype.leadingDetachedComments=l.emptyArray,X.create=function(e){return new X(e)},X.encode=function(e,t){if(t=t||s.create(),null!=e.path&&e.path.length){t.uint32(10).fork();for(var r=0;r<e.path.length;++r)t.int32(e.path[r]);t.ldelim()}if(null!=e.span&&e.span.length){for(t.uint32(18).fork(),r=0;r<e.span.length;++r)t.int32(e.span[r]);t.ldelim()}if(null!=e.leadingComments&&Object.hasOwnProperty.call(e,"leadingComments")&&t.uint32(26).string(e.leadingComments),null!=e.trailingComments&&Object.hasOwnProperty.call(e,"trailingComments")&&t.uint32(34).string(e.trailingComments),null!=e.leadingDetachedComments&&e.leadingDetachedComments.length)for(r=0;r<e.leadingDetachedComments.length;++r)t.uint32(50).string(e.leadingDetachedComments[r]);return t},X.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},X.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.SourceCodeInfo.Location;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:if(n.path&&n.path.length||(n.path=[]),2==(7&o))for(var i=e.uint32()+e.pos;e.pos<i;)n.path.push(e.int32());else n.path.push(e.int32());break;case 2:if(n.span&&n.span.length||(n.span=[]),2==(7&o))for(i=e.uint32()+e.pos;e.pos<i;)n.span.push(e.int32());else n.span.push(e.int32());break;case 3:n.leadingComments=e.string();break;case 4:n.trailingComments=e.string();break;case 6:n.leadingDetachedComments&&n.leadingDetachedComments.length||(n.leadingDetachedComments=[]),n.leadingDetachedComments.push(e.string());break;default:e.skipType(7&o)}}return n},X.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},X.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.path&&e.hasOwnProperty("path")){if(!Array.isArray(e.path))return"path: array expected";for(var t=0;t<e.path.length;++t)if(!l.isInteger(e.path[t]))return"path: integer[] expected"}if(null!=e.span&&e.hasOwnProperty("span")){if(!Array.isArray(e.span))return"span: array expected";for(t=0;t<e.span.length;++t)if(!l.isInteger(e.span[t]))return"span: integer[] expected"}if(null!=e.leadingComments&&e.hasOwnProperty("leadingComments")&&!l.isString(e.leadingComments))return"leadingComments: string expected";if(null!=e.trailingComments&&e.hasOwnProperty("trailingComments")&&!l.isString(e.trailingComments))return"trailingComments: string expected";if(null!=e.leadingDetachedComments&&e.hasOwnProperty("leadingDetachedComments")){if(!Array.isArray(e.leadingDetachedComments))return"leadingDetachedComments: array expected";for(t=0;t<e.leadingDetachedComments.length;++t)if(!l.isString(e.leadingDetachedComments[t]))return"leadingDetachedComments: string[] expected"}return null},X.fromObject=function(e){if(e instanceof p.google.protobuf.SourceCodeInfo.Location)return e;var t=new p.google.protobuf.SourceCodeInfo.Location;if(e.path){if(!Array.isArray(e.path))throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected");t.path=[];for(var r=0;r<e.path.length;++r)t.path[r]=0|e.path[r]}if(e.span){if(!Array.isArray(e.span))throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected");for(t.span=[],r=0;r<e.span.length;++r)t.span[r]=0|e.span[r]}if(null!=e.leadingComments&&(t.leadingComments=String(e.leadingComments)),null!=e.trailingComments&&(t.trailingComments=String(e.trailingComments)),e.leadingDetachedComments){if(!Array.isArray(e.leadingDetachedComments))throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected");for(t.leadingDetachedComments=[],r=0;r<e.leadingDetachedComments.length;++r)t.leadingDetachedComments[r]=String(e.leadingDetachedComments[r])}return t},X.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.path=[],r.span=[],r.leadingDetachedComments=[]),t.defaults&&(r.leadingComments="",r.trailingComments=""),e.path&&e.path.length){r.path=[];for(var n=0;n<e.path.length;++n)r.path[n]=e.path[n]}if(e.span&&e.span.length)for(r.span=[],n=0;n<e.span.length;++n)r.span[n]=e.span[n];if(null!=e.leadingComments&&e.hasOwnProperty("leadingComments")&&(r.leadingComments=e.leadingComments),null!=e.trailingComments&&e.hasOwnProperty("trailingComments")&&(r.trailingComments=e.trailingComments),e.leadingDetachedComments&&e.leadingDetachedComments.length)for(r.leadingDetachedComments=[],n=0;n<e.leadingDetachedComments.length;++n)r.leadingDetachedComments[n]=e.leadingDetachedComments[n];return r},X.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},X),K),n.GeneratedCodeInfo=(Q.prototype.annotation=l.emptyArray,Q.create=function(e){return new Q(e)},Q.encode=function(e,t){if(t=t||s.create(),null!=e.annotation&&e.annotation.length)for(var r=0;r<e.annotation.length;++r)p.google.protobuf.GeneratedCodeInfo.Annotation.encode(e.annotation[r],t.uint32(10).fork()).ldelim();return t},Q.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},Q.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.GeneratedCodeInfo;e.pos<r;){var o=e.uint32();o>>>3==1?(n.annotation&&n.annotation.length||(n.annotation=[]),n.annotation.push(p.google.protobuf.GeneratedCodeInfo.Annotation.decode(e,e.uint32()))):e.skipType(7&o)}return n},Q.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},Q.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.annotation&&e.hasOwnProperty("annotation")){if(!Array.isArray(e.annotation))return"annotation: array expected";for(var t=0;t<e.annotation.length;++t){var r=p.google.protobuf.GeneratedCodeInfo.Annotation.verify(e.annotation[t]);if(r)return"annotation."+r}}return null},Q.fromObject=function(e){if(e instanceof p.google.protobuf.GeneratedCodeInfo)return e;var t=new p.google.protobuf.GeneratedCodeInfo;if(e.annotation){if(!Array.isArray(e.annotation))throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected");t.annotation=[];for(var r=0;r<e.annotation.length;++r){if("object"!=typeof e.annotation[r])throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected");t.annotation[r]=p.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(e.annotation[r])}}return t},Q.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.annotation=[]),e.annotation&&e.annotation.length){r.annotation=[];for(var n=0;n<e.annotation.length;++n)r.annotation[n]=p.google.protobuf.GeneratedCodeInfo.Annotation.toObject(e.annotation[n],t)}return r},Q.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},Q.Annotation=(Z.prototype.path=l.emptyArray,Z.prototype.sourceFile="",Z.prototype.begin=0,Z.prototype.end=0,Z.create=function(e){return new Z(e)},Z.encode=function(e,t){if(t=t||s.create(),null!=e.path&&e.path.length){t.uint32(10).fork();for(var r=0;r<e.path.length;++r)t.int32(e.path[r]);t.ldelim()}return null!=e.sourceFile&&Object.hasOwnProperty.call(e,"sourceFile")&&t.uint32(18).string(e.sourceFile),null!=e.begin&&Object.hasOwnProperty.call(e,"begin")&&t.uint32(24).int32(e.begin),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(32).int32(e.end),t},Z.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},Z.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.protobuf.GeneratedCodeInfo.Annotation;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:if(n.path&&n.path.length||(n.path=[]),2==(7&o))for(var i=e.uint32()+e.pos;e.pos<i;)n.path.push(e.int32());else n.path.push(e.int32());break;case 2:n.sourceFile=e.string();break;case 3:n.begin=e.int32();break;case 4:n.end=e.int32();break;default:e.skipType(7&o)}}return n},Z.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},Z.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.path&&e.hasOwnProperty("path")){if(!Array.isArray(e.path))return"path: array expected";for(var t=0;t<e.path.length;++t)if(!l.isInteger(e.path[t]))return"path: integer[] expected"}return null!=e.sourceFile&&e.hasOwnProperty("sourceFile")&&!l.isString(e.sourceFile)?"sourceFile: string expected":null!=e.begin&&e.hasOwnProperty("begin")&&!l.isInteger(e.begin)?"begin: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!l.isInteger(e.end)?"end: integer expected":null},Z.fromObject=function(e){if(e instanceof p.google.protobuf.GeneratedCodeInfo.Annotation)return e;var t=new p.google.protobuf.GeneratedCodeInfo.Annotation;if(e.path){if(!Array.isArray(e.path))throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected");t.path=[];for(var r=0;r<e.path.length;++r)t.path[r]=0|e.path[r]}return null!=e.sourceFile&&(t.sourceFile=String(e.sourceFile)),null!=e.begin&&(t.begin=0|e.begin),null!=e.end&&(t.end=0|e.end),t},Z.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.path=[]),t.defaults&&(r.sourceFile="",r.begin=0,r.end=0),e.path&&e.path.length){r.path=[];for(var n=0;n<e.path.length;++n)r.path[n]=e.path[n]}return null!=e.sourceFile&&e.hasOwnProperty("sourceFile")&&(r.sourceFile=e.sourceFile),null!=e.begin&&e.hasOwnProperty("begin")&&(r.begin=e.begin),null!=e.end&&e.hasOwnProperty("end")&&(r.end=e.end),r},Z.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},Z),Q),n),i.type=((o={}).Expr=(ee.prototype.expression="",ee.prototype.title="",ee.prototype.description="",ee.prototype.location="",ee.create=function(e){return new ee(e)},ee.encode=function(e,t){return t=t||s.create(),null!=e.expression&&Object.hasOwnProperty.call(e,"expression")&&t.uint32(10).string(e.expression),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(18).string(e.title),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(26).string(e.description),null!=e.location&&Object.hasOwnProperty.call(e,"location")&&t.uint32(34).string(e.location),t},ee.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},ee.decode=function(e,t){e instanceof a||(e=a.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new p.google.type.Expr;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.expression=e.string();break;case 2:n.title=e.string();break;case 3:n.description=e.string();break;case 4:n.location=e.string();break;default:e.skipType(7&o)}}return n},ee.decodeDelimited=function(e){return e instanceof a||(e=new a(e)),this.decode(e,e.uint32())},ee.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.expression&&e.hasOwnProperty("expression")&&!l.isString(e.expression)?"expression: string expected":null!=e.title&&e.hasOwnProperty("title")&&!l.isString(e.title)?"title: string expected":null!=e.description&&e.hasOwnProperty("description")&&!l.isString(e.description)?"description: string expected":null!=e.location&&e.hasOwnProperty("location")&&!l.isString(e.location)?"location: string expected":null},ee.fromObject=function(e){var t;return e instanceof p.google.type.Expr?e:(t=new p.google.type.Expr,null!=e.expression&&(t.expression=String(e.expression)),null!=e.title&&(t.title=String(e.title)),null!=e.description&&(t.description=String(e.description)),null!=e.location&&(t.location=String(e.location)),t)},ee.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.expression="",r.title="",r.description="",r.location=""),null!=e.expression&&e.hasOwnProperty("expression")&&(r.expression=e.expression),null!=e.title&&e.hasOwnProperty("title")&&(r.title=e.title),null!=e.description&&e.hasOwnProperty("description")&&(r.description=e.description),null!=e.location&&e.hasOwnProperty("location")&&(r.location=e.location),r},ee.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},ee),o),i),p}(requireMinimal()))),iam_service.exports;var e}var locations={exports:{}},hasRequiredLocations;function requireLocations(){return hasRequiredLocations||(hasRequiredLocations=1,e=locations,"function"==typeof commonjsRequire&&e&&e.exports&&(e.exports=function(e){var t,r,n,o,i=e.Reader,a=e.Writer,s=e.util,l=e.roots.locations_protos||(e.roots.locations_protos={});function p(t,r,n){e.rpc.Service.call(this,t,r,n)}function d(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function u(e){if(this.locations=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function c(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function f(e){if(this.labels={},e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function h(e){if(this.rules=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function m(e){if(this.additionalBindings=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function g(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function y(e){if(this.file=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function v(e){if(this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function b(e){if(this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.reservedRange=[],this.reservedName=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function O(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function w(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function S(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function _(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function P(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function E(e){if(this.value=[],this.reservedRange=[],this.reservedName=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function T(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function C(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function R(e){if(this.method=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function D(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function k(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function x(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function j(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function A(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function N(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function I(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function q(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function M(e){if(this.uninterpretedOption=[],this[".google.api.methodSignature"]=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function L(e){if(this.name=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function F(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function B(e){if(this.location=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function V(e){if(this.path=[],this.span=[],this.leadingDetachedComments=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function U(e){if(this.annotation=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function $(e){if(this.path=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function G(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return l.google=((o={}).cloud=((n={}).location=((t={}).Locations=(((p.prototype=Object.create(e.rpc.Service.prototype)).constructor=p).create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(p.prototype.listLocations=function e(t,r){return this.rpcCall(e,l.google.cloud.location.ListLocationsRequest,l.google.cloud.location.ListLocationsResponse,t,r)},"name",{value:"ListLocations"}),Object.defineProperty(p.prototype.getLocation=function e(t,r){return this.rpcCall(e,l.google.cloud.location.GetLocationRequest,l.google.cloud.location.Location,t,r)},"name",{value:"GetLocation"}),p),t.ListLocationsRequest=(d.prototype.name="",d.prototype.filter="",d.prototype.pageSize=0,d.prototype.pageToken="",d.create=function(e){return new d(e)},d.encode=function(e,t){return t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.filter&&Object.hasOwnProperty.call(e,"filter")&&t.uint32(18).string(e.filter),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&t.uint32(24).int32(e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&t.uint32(34).string(e.pageToken),t},d.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},d.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.cloud.location.ListLocationsRequest;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.filter=e.string();break;case 3:n.pageSize=e.int32();break;case 4:n.pageToken=e.string();break;default:e.skipType(7&o)}}return n},d.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},d.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name)?"name: string expected":null!=e.filter&&e.hasOwnProperty("filter")&&!s.isString(e.filter)?"filter: string expected":null!=e.pageSize&&e.hasOwnProperty("pageSize")&&!s.isInteger(e.pageSize)?"pageSize: integer expected":null!=e.pageToken&&e.hasOwnProperty("pageToken")&&!s.isString(e.pageToken)?"pageToken: string expected":null},d.fromObject=function(e){var t;return e instanceof l.google.cloud.location.ListLocationsRequest?e:(t=new l.google.cloud.location.ListLocationsRequest,null!=e.name&&(t.name=String(e.name)),null!=e.filter&&(t.filter=String(e.filter)),null!=e.pageSize&&(t.pageSize=0|e.pageSize),null!=e.pageToken&&(t.pageToken=String(e.pageToken)),t)},d.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name="",r.filter="",r.pageSize=0,r.pageToken=""),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.filter&&e.hasOwnProperty("filter")&&(r.filter=e.filter),null!=e.pageSize&&e.hasOwnProperty("pageSize")&&(r.pageSize=e.pageSize),null!=e.pageToken&&e.hasOwnProperty("pageToken")&&(r.pageToken=e.pageToken),r},d.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},d),t.ListLocationsResponse=(u.prototype.locations=s.emptyArray,u.prototype.nextPageToken="",u.create=function(e){return new u(e)},u.encode=function(e,t){if(t=t||a.create(),null!=e.locations&&e.locations.length)for(var r=0;r<e.locations.length;++r)l.google.cloud.location.Location.encode(e.locations[r],t.uint32(10).fork()).ldelim();return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&t.uint32(18).string(e.nextPageToken),t},u.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},u.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.cloud.location.ListLocationsResponse;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.locations&&n.locations.length||(n.locations=[]),n.locations.push(l.google.cloud.location.Location.decode(e,e.uint32()));break;case 2:n.nextPageToken=e.string();break;default:e.skipType(7&o)}}return n},u.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},u.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.locations&&e.hasOwnProperty("locations")){if(!Array.isArray(e.locations))return"locations: array expected";for(var t=0;t<e.locations.length;++t){var r=l.google.cloud.location.Location.verify(e.locations[t]);if(r)return"locations."+r}}return null!=e.nextPageToken&&e.hasOwnProperty("nextPageToken")&&!s.isString(e.nextPageToken)?"nextPageToken: string expected":null},u.fromObject=function(e){if(e instanceof l.google.cloud.location.ListLocationsResponse)return e;var t=new l.google.cloud.location.ListLocationsResponse;if(e.locations){if(!Array.isArray(e.locations))throw TypeError(".google.cloud.location.ListLocationsResponse.locations: array expected");t.locations=[];for(var r=0;r<e.locations.length;++r){if("object"!=typeof e.locations[r])throw TypeError(".google.cloud.location.ListLocationsResponse.locations: object expected");t.locations[r]=l.google.cloud.location.Location.fromObject(e.locations[r])}}return null!=e.nextPageToken&&(t.nextPageToken=String(e.nextPageToken)),t},u.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.locations=[]),t.defaults&&(r.nextPageToken=""),e.locations&&e.locations.length){r.locations=[];for(var n=0;n<e.locations.length;++n)r.locations[n]=l.google.cloud.location.Location.toObject(e.locations[n],t)}return null!=e.nextPageToken&&e.hasOwnProperty("nextPageToken")&&(r.nextPageToken=e.nextPageToken),r},u.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},u),t.GetLocationRequest=(c.prototype.name="",c.create=function(e){return new c(e)},c.encode=function(e,t){return t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),t},c.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},c.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.cloud.location.GetLocationRequest;e.pos<r;){var o=e.uint32();o>>>3==1?n.name=e.string():e.skipType(7&o)}return n},c.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},c.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name)?"name: string expected":null},c.fromObject=function(e){var t;return e instanceof l.google.cloud.location.GetLocationRequest?e:(t=new l.google.cloud.location.GetLocationRequest,null!=e.name&&(t.name=String(e.name)),t)},c.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name=""),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),r},c.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},c),t.Location=(f.prototype.name="",f.prototype.locationId="",f.prototype.displayName="",f.prototype.labels=s.emptyObject,f.prototype.metadata=null,f.create=function(e){return new f(e)},f.encode=function(e,t){if(t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.labels&&Object.hasOwnProperty.call(e,"labels"))for(var r=Object.keys(e.labels),n=0;n<r.length;++n)t.uint32(18).fork().uint32(10).string(r[n]).uint32(18).string(e.labels[r[n]]).ldelim();return null!=e.metadata&&Object.hasOwnProperty.call(e,"metadata")&&l.google.protobuf.Any.encode(e.metadata,t.uint32(26).fork()).ldelim(),null!=e.locationId&&Object.hasOwnProperty.call(e,"locationId")&&t.uint32(34).string(e.locationId),null!=e.displayName&&Object.hasOwnProperty.call(e,"displayName")&&t.uint32(42).string(e.displayName),t},f.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},f.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.cloud.location.Location;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 4:n.locationId=e.string();break;case 5:n.displayName=e.string();break;case 2:n.labels===s.emptyObject&&(n.labels={});for(var a=e.uint32()+e.pos,p="",d="";e.pos<a;){var u=e.uint32();switch(u>>>3){case 1:p=e.string();break;case 2:d=e.string();break;default:e.skipType(7&u)}}n.labels[p]=d;break;case 3:n.metadata=l.google.protobuf.Any.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},f.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},f.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name))return"name: string expected";if(null!=e.locationId&&e.hasOwnProperty("locationId")&&!s.isString(e.locationId))return"locationId: string expected";if(null!=e.displayName&&e.hasOwnProperty("displayName")&&!s.isString(e.displayName))return"displayName: string expected";if(null!=e.labels&&e.hasOwnProperty("labels")){if(!s.isObject(e.labels))return"labels: object expected";for(var t=Object.keys(e.labels),r=0;r<t.length;++r)if(!s.isString(e.labels[t[r]]))return"labels: string{k:string} expected"}if(null!=e.metadata&&e.hasOwnProperty("metadata")){var n=l.google.protobuf.Any.verify(e.metadata);if(n)return"metadata."+n}return null},f.fromObject=function(e){if(e instanceof l.google.cloud.location.Location)return e;var t=new l.google.cloud.location.Location;if(null!=e.name&&(t.name=String(e.name)),null!=e.locationId&&(t.locationId=String(e.locationId)),null!=e.displayName&&(t.displayName=String(e.displayName)),e.labels){if("object"!=typeof e.labels)throw TypeError(".google.cloud.location.Location.labels: object expected");t.labels={};for(var r=Object.keys(e.labels),n=0;n<r.length;++n)t.labels[r[n]]=String(e.labels[r[n]])}if(null!=e.metadata){if("object"!=typeof e.metadata)throw TypeError(".google.cloud.location.Location.metadata: object expected");t.metadata=l.google.protobuf.Any.fromObject(e.metadata)}return t},f.toObject=function(e,t){var r,n={};if(((t=t||{}).objects||t.defaults)&&(n.labels={}),t.defaults&&(n.name="",n.metadata=null,n.locationId="",n.displayName=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),e.labels&&(r=Object.keys(e.labels)).length){n.labels={};for(var o=0;o<r.length;++o)n.labels[r[o]]=e.labels[r[o]]}return null!=e.metadata&&e.hasOwnProperty("metadata")&&(n.metadata=l.google.protobuf.Any.toObject(e.metadata,t)),null!=e.locationId&&e.hasOwnProperty("locationId")&&(n.locationId=e.locationId),null!=e.displayName&&e.hasOwnProperty("displayName")&&(n.displayName=e.displayName),n},f.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},f),t),n),o.api=((t={}).Http=(h.prototype.rules=s.emptyArray,h.prototype.fullyDecodeReservedExpansion=!1,h.create=function(e){return new h(e)},h.encode=function(e,t){if(t=t||a.create(),null!=e.rules&&e.rules.length)for(var r=0;r<e.rules.length;++r)l.google.api.HttpRule.encode(e.rules[r],t.uint32(10).fork()).ldelim();return null!=e.fullyDecodeReservedExpansion&&Object.hasOwnProperty.call(e,"fullyDecodeReservedExpansion")&&t.uint32(16).bool(e.fullyDecodeReservedExpansion),t},h.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},h.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.api.Http;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.rules&&n.rules.length||(n.rules=[]),n.rules.push(l.google.api.HttpRule.decode(e,e.uint32()));break;case 2:n.fullyDecodeReservedExpansion=e.bool();break;default:e.skipType(7&o)}}return n},h.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},h.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.rules&&e.hasOwnProperty("rules")){if(!Array.isArray(e.rules))return"rules: array expected";for(var t=0;t<e.rules.length;++t){var r=l.google.api.HttpRule.verify(e.rules[t]);if(r)return"rules."+r}}return null!=e.fullyDecodeReservedExpansion&&e.hasOwnProperty("fullyDecodeReservedExpansion")&&"boolean"!=typeof e.fullyDecodeReservedExpansion?"fullyDecodeReservedExpansion: boolean expected":null},h.fromObject=function(e){if(e instanceof l.google.api.Http)return e;var t=new l.google.api.Http;if(e.rules){if(!Array.isArray(e.rules))throw TypeError(".google.api.Http.rules: array expected");t.rules=[];for(var r=0;r<e.rules.length;++r){if("object"!=typeof e.rules[r])throw TypeError(".google.api.Http.rules: object expected");t.rules[r]=l.google.api.HttpRule.fromObject(e.rules[r])}}return null!=e.fullyDecodeReservedExpansion&&(t.fullyDecodeReservedExpansion=Boolean(e.fullyDecodeReservedExpansion)),t},h.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.rules=[]),t.defaults&&(r.fullyDecodeReservedExpansion=!1),e.rules&&e.rules.length){r.rules=[];for(var n=0;n<e.rules.length;++n)r.rules[n]=l.google.api.HttpRule.toObject(e.rules[n],t)}return null!=e.fullyDecodeReservedExpansion&&e.hasOwnProperty("fullyDecodeReservedExpansion")&&(r.fullyDecodeReservedExpansion=e.fullyDecodeReservedExpansion),r},h.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},h),t.HttpRule=(m.prototype.selector="",m.prototype.get=null,m.prototype.put=null,m.prototype.post=null,m.prototype.delete=null,m.prototype.patch=null,m.prototype.custom=null,m.prototype.body="",m.prototype.responseBody="",m.prototype.additionalBindings=s.emptyArray,Object.defineProperty(m.prototype,"pattern",{get:s.oneOfGetter(n=["get","put","post","delete","patch","custom"]),set:s.oneOfSetter(n)}),m.create=function(e){return new m(e)},m.encode=function(e,t){if(t=t||a.create(),null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&t.uint32(10).string(e.selector),null!=e.get&&Object.hasOwnProperty.call(e,"get")&&t.uint32(18).string(e.get),null!=e.put&&Object.hasOwnProperty.call(e,"put")&&t.uint32(26).string(e.put),null!=e.post&&Object.hasOwnProperty.call(e,"post")&&t.uint32(34).string(e.post),null!=e.delete&&Object.hasOwnProperty.call(e,"delete")&&t.uint32(42).string(e.delete),null!=e.patch&&Object.hasOwnProperty.call(e,"patch")&&t.uint32(50).string(e.patch),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(58).string(e.body),null!=e.custom&&Object.hasOwnProperty.call(e,"custom")&&l.google.api.CustomHttpPattern.encode(e.custom,t.uint32(66).fork()).ldelim(),null!=e.additionalBindings&&e.additionalBindings.length)for(var r=0;r<e.additionalBindings.length;++r)l.google.api.HttpRule.encode(e.additionalBindings[r],t.uint32(90).fork()).ldelim();return null!=e.responseBody&&Object.hasOwnProperty.call(e,"responseBody")&&t.uint32(98).string(e.responseBody),t},m.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},m.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.api.HttpRule;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.selector=e.string();break;case 2:n.get=e.string();break;case 3:n.put=e.string();break;case 4:n.post=e.string();break;case 5:n.delete=e.string();break;case 6:n.patch=e.string();break;case 8:n.custom=l.google.api.CustomHttpPattern.decode(e,e.uint32());break;case 7:n.body=e.string();break;case 12:n.responseBody=e.string();break;case 11:n.additionalBindings&&n.additionalBindings.length||(n.additionalBindings=[]),n.additionalBindings.push(l.google.api.HttpRule.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return n},m.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},m.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var t={};if(null!=e.selector&&e.hasOwnProperty("selector")&&!s.isString(e.selector))return"selector: string expected";if(null!=e.get&&e.hasOwnProperty("get")&&(t.pattern=1,!s.isString(e.get)))return"get: string expected";if(null!=e.put&&e.hasOwnProperty("put")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!s.isString(e.put))return"put: string expected"}if(null!=e.post&&e.hasOwnProperty("post")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!s.isString(e.post))return"post: string expected"}if(null!=e.delete&&e.hasOwnProperty("delete")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!s.isString(e.delete))return"delete: string expected"}if(null!=e.patch&&e.hasOwnProperty("patch")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!s.isString(e.patch))return"patch: string expected"}if(null!=e.custom&&e.hasOwnProperty("custom")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,r=l.google.api.CustomHttpPattern.verify(e.custom))return"custom."+r}if(null!=e.body&&e.hasOwnProperty("body")&&!s.isString(e.body))return"body: string expected";if(null!=e.responseBody&&e.hasOwnProperty("responseBody")&&!s.isString(e.responseBody))return"responseBody: string expected";if(null!=e.additionalBindings&&e.hasOwnProperty("additionalBindings")){if(!Array.isArray(e.additionalBindings))return"additionalBindings: array expected";for(var r,n=0;n<e.additionalBindings.length;++n)if(r=l.google.api.HttpRule.verify(e.additionalBindings[n]))return"additionalBindings."+r}return null},m.fromObject=function(e){if(e instanceof l.google.api.HttpRule)return e;var t=new l.google.api.HttpRule;if(null!=e.selector&&(t.selector=String(e.selector)),null!=e.get&&(t.get=String(e.get)),null!=e.put&&(t.put=String(e.put)),null!=e.post&&(t.post=String(e.post)),null!=e.delete&&(t.delete=String(e.delete)),null!=e.patch&&(t.patch=String(e.patch)),null!=e.custom){if("object"!=typeof e.custom)throw TypeError(".google.api.HttpRule.custom: object expected");t.custom=l.google.api.CustomHttpPattern.fromObject(e.custom)}if(null!=e.body&&(t.body=String(e.body)),null!=e.responseBody&&(t.responseBody=String(e.responseBody)),e.additionalBindings){if(!Array.isArray(e.additionalBindings))throw TypeError(".google.api.HttpRule.additionalBindings: array expected");t.additionalBindings=[];for(var r=0;r<e.additionalBindings.length;++r){if("object"!=typeof e.additionalBindings[r])throw TypeError(".google.api.HttpRule.additionalBindings: object expected");t.additionalBindings[r]=l.google.api.HttpRule.fromObject(e.additionalBindings[r])}}return t},m.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.additionalBindings=[]),t.defaults&&(r.selector="",r.body="",r.responseBody=""),null!=e.selector&&e.hasOwnProperty("selector")&&(r.selector=e.selector),null!=e.get&&e.hasOwnProperty("get")&&(r.get=e.get,t.oneofs)&&(r.pattern="get"),null!=e.put&&e.hasOwnProperty("put")&&(r.put=e.put,t.oneofs)&&(r.pattern="put"),null!=e.post&&e.hasOwnProperty("post")&&(r.post=e.post,t.oneofs)&&(r.pattern="post"),null!=e.delete&&e.hasOwnProperty("delete")&&(r.delete=e.delete,t.oneofs)&&(r.pattern="delete"),null!=e.patch&&e.hasOwnProperty("patch")&&(r.patch=e.patch,t.oneofs)&&(r.pattern="patch"),null!=e.body&&e.hasOwnProperty("body")&&(r.body=e.body),null!=e.custom&&e.hasOwnProperty("custom")&&(r.custom=l.google.api.CustomHttpPattern.toObject(e.custom,t),t.oneofs)&&(r.pattern="custom"),e.additionalBindings&&e.additionalBindings.length){r.additionalBindings=[];for(var n=0;n<e.additionalBindings.length;++n)r.additionalBindings[n]=l.google.api.HttpRule.toObject(e.additionalBindings[n],t)}return null!=e.responseBody&&e.hasOwnProperty("responseBody")&&(r.responseBody=e.responseBody),r},m.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},m),t.CustomHttpPattern=(g.prototype.kind="",g.prototype.path="",g.create=function(e){return new g(e)},g.encode=function(e,t){return t=t||a.create(),null!=e.kind&&Object.hasOwnProperty.call(e,"kind")&&t.uint32(10).string(e.kind),null!=e.path&&Object.hasOwnProperty.call(e,"path")&&t.uint32(18).string(e.path),t},g.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},g.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.api.CustomHttpPattern;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.kind=e.string();break;case 2:n.path=e.string();break;default:e.skipType(7&o)}}return n},g.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},g.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.kind&&e.hasOwnProperty("kind")&&!s.isString(e.kind)?"kind: string expected":null!=e.path&&e.hasOwnProperty("path")&&!s.isString(e.path)?"path: string expected":null},g.fromObject=function(e){var t;return e instanceof l.google.api.CustomHttpPattern?e:(t=new l.google.api.CustomHttpPattern,null!=e.kind&&(t.kind=String(e.kind)),null!=e.path&&(t.path=String(e.path)),t)},g.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.kind="",r.path=""),null!=e.kind&&e.hasOwnProperty("kind")&&(r.kind=e.kind),null!=e.path&&e.hasOwnProperty("path")&&(r.path=e.path),r},g.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},g),t),o.protobuf=((n={}).FileDescriptorSet=(y.prototype.file=s.emptyArray,y.create=function(e){return new y(e)},y.encode=function(e,t){if(t=t||a.create(),null!=e.file&&e.file.length)for(var r=0;r<e.file.length;++r)l.google.protobuf.FileDescriptorProto.encode(e.file[r],t.uint32(10).fork()).ldelim();return t},y.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},y.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.FileDescriptorSet;e.pos<r;){var o=e.uint32();o>>>3==1?(n.file&&n.file.length||(n.file=[]),n.file.push(l.google.protobuf.FileDescriptorProto.decode(e,e.uint32()))):e.skipType(7&o)}return n},y.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},y.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.file&&e.hasOwnProperty("file")){if(!Array.isArray(e.file))return"file: array expected";for(var t=0;t<e.file.length;++t){var r=l.google.protobuf.FileDescriptorProto.verify(e.file[t]);if(r)return"file."+r}}return null},y.fromObject=function(e){if(e instanceof l.google.protobuf.FileDescriptorSet)return e;var t=new l.google.protobuf.FileDescriptorSet;if(e.file){if(!Array.isArray(e.file))throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected");t.file=[];for(var r=0;r<e.file.length;++r){if("object"!=typeof e.file[r])throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected");t.file[r]=l.google.protobuf.FileDescriptorProto.fromObject(e.file[r])}}return t},y.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.file=[]),e.file&&e.file.length){r.file=[];for(var n=0;n<e.file.length;++n)r.file[n]=l.google.protobuf.FileDescriptorProto.toObject(e.file[n],t)}return r},y.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},y),n.FileDescriptorProto=(v.prototype.name="",v.prototype.package="",v.prototype.dependency=s.emptyArray,v.prototype.publicDependency=s.emptyArray,v.prototype.weakDependency=s.emptyArray,v.prototype.messageType=s.emptyArray,v.prototype.enumType=s.emptyArray,v.prototype.service=s.emptyArray,v.prototype.extension=s.emptyArray,v.prototype.options=null,v.prototype.sourceCodeInfo=null,v.prototype.syntax="",v.create=function(e){return new v(e)},v.encode=function(e,t){if(t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.package&&Object.hasOwnProperty.call(e,"package")&&t.uint32(18).string(e.package),null!=e.dependency&&e.dependency.length)for(var r=0;r<e.dependency.length;++r)t.uint32(26).string(e.dependency[r]);if(null!=e.messageType&&e.messageType.length)for(r=0;r<e.messageType.length;++r)l.google.protobuf.DescriptorProto.encode(e.messageType[r],t.uint32(34).fork()).ldelim();if(null!=e.enumType&&e.enumType.length)for(r=0;r<e.enumType.length;++r)l.google.protobuf.EnumDescriptorProto.encode(e.enumType[r],t.uint32(42).fork()).ldelim();if(null!=e.service&&e.service.length)for(r=0;r<e.service.length;++r)l.google.protobuf.ServiceDescriptorProto.encode(e.service[r],t.uint32(50).fork()).ldelim();if(null!=e.extension&&e.extension.length)for(r=0;r<e.extension.length;++r)l.google.protobuf.FieldDescriptorProto.encode(e.extension[r],t.uint32(58).fork()).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.FileOptions.encode(e.options,t.uint32(66).fork()).ldelim(),null!=e.sourceCodeInfo&&Object.hasOwnProperty.call(e,"sourceCodeInfo")&&l.google.protobuf.SourceCodeInfo.encode(e.sourceCodeInfo,t.uint32(74).fork()).ldelim(),null!=e.publicDependency&&e.publicDependency.length)for(r=0;r<e.publicDependency.length;++r)t.uint32(80).int32(e.publicDependency[r]);if(null!=e.weakDependency&&e.weakDependency.length)for(r=0;r<e.weakDependency.length;++r)t.uint32(88).int32(e.weakDependency[r]);return null!=e.syntax&&Object.hasOwnProperty.call(e,"syntax")&&t.uint32(98).string(e.syntax),t},v.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},v.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.FileDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.package=e.string();break;case 3:n.dependency&&n.dependency.length||(n.dependency=[]),n.dependency.push(e.string());break;case 10:if(n.publicDependency&&n.publicDependency.length||(n.publicDependency=[]),2==(7&o))for(var a=e.uint32()+e.pos;e.pos<a;)n.publicDependency.push(e.int32());else n.publicDependency.push(e.int32());break;case 11:if(n.weakDependency&&n.weakDependency.length||(n.weakDependency=[]),2==(7&o))for(a=e.uint32()+e.pos;e.pos<a;)n.weakDependency.push(e.int32());else n.weakDependency.push(e.int32());break;case 4:n.messageType&&n.messageType.length||(n.messageType=[]),n.messageType.push(l.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 5:n.enumType&&n.enumType.length||(n.enumType=[]),n.enumType.push(l.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 6:n.service&&n.service.length||(n.service=[]),n.service.push(l.google.protobuf.ServiceDescriptorProto.decode(e,e.uint32()));break;case 7:n.extension&&n.extension.length||(n.extension=[]),n.extension.push(l.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 8:n.options=l.google.protobuf.FileOptions.decode(e,e.uint32());break;case 9:n.sourceCodeInfo=l.google.protobuf.SourceCodeInfo.decode(e,e.uint32());break;case 12:n.syntax=e.string();break;default:e.skipType(7&o)}}return n},v.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},v.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name))return"name: string expected";if(null!=e.package&&e.hasOwnProperty("package")&&!s.isString(e.package))return"package: string expected";if(null!=e.dependency&&e.hasOwnProperty("dependency")){if(!Array.isArray(e.dependency))return"dependency: array expected";for(var t=0;t<e.dependency.length;++t)if(!s.isString(e.dependency[t]))return"dependency: string[] expected"}if(null!=e.publicDependency&&e.hasOwnProperty("publicDependency")){if(!Array.isArray(e.publicDependency))return"publicDependency: array expected";for(t=0;t<e.publicDependency.length;++t)if(!s.isInteger(e.publicDependency[t]))return"publicDependency: integer[] expected"}if(null!=e.weakDependency&&e.hasOwnProperty("weakDependency")){if(!Array.isArray(e.weakDependency))return"weakDependency: array expected";for(t=0;t<e.weakDependency.length;++t)if(!s.isInteger(e.weakDependency[t]))return"weakDependency: integer[] expected"}if(null!=e.messageType&&e.hasOwnProperty("messageType")){if(!Array.isArray(e.messageType))return"messageType: array expected";for(t=0;t<e.messageType.length;++t)if(r=l.google.protobuf.DescriptorProto.verify(e.messageType[t]))return"messageType."+r}if(null!=e.enumType&&e.hasOwnProperty("enumType")){if(!Array.isArray(e.enumType))return"enumType: array expected";for(t=0;t<e.enumType.length;++t)if(r=l.google.protobuf.EnumDescriptorProto.verify(e.enumType[t]))return"enumType."+r}if(null!=e.service&&e.hasOwnProperty("service")){if(!Array.isArray(e.service))return"service: array expected";for(t=0;t<e.service.length;++t)if(r=l.google.protobuf.ServiceDescriptorProto.verify(e.service[t]))return"service."+r}if(null!=e.extension&&e.hasOwnProperty("extension")){if(!Array.isArray(e.extension))return"extension: array expected";for(t=0;t<e.extension.length;++t)if(r=l.google.protobuf.FieldDescriptorProto.verify(e.extension[t]))return"extension."+r}var r;return null!=e.options&&e.hasOwnProperty("options")&&(r=l.google.protobuf.FileOptions.verify(e.options))?"options."+r:null!=e.sourceCodeInfo&&e.hasOwnProperty("sourceCodeInfo")&&(r=l.google.protobuf.SourceCodeInfo.verify(e.sourceCodeInfo))?"sourceCodeInfo."+r:null!=e.syntax&&e.hasOwnProperty("syntax")&&!s.isString(e.syntax)?"syntax: string expected":null},v.fromObject=function(e){if(e instanceof l.google.protobuf.FileDescriptorProto)return e;var t=new l.google.protobuf.FileDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.package&&(t.package=String(e.package)),e.dependency){if(!Array.isArray(e.dependency))throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected");t.dependency=[];for(var r=0;r<e.dependency.length;++r)t.dependency[r]=String(e.dependency[r])}if(e.publicDependency){if(!Array.isArray(e.publicDependency))throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected");for(t.publicDependency=[],r=0;r<e.publicDependency.length;++r)t.publicDependency[r]=0|e.publicDependency[r]}if(e.weakDependency){if(!Array.isArray(e.weakDependency))throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected");for(t.weakDependency=[],r=0;r<e.weakDependency.length;++r)t.weakDependency[r]=0|e.weakDependency[r]}if(e.messageType){if(!Array.isArray(e.messageType))throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");for(t.messageType=[],r=0;r<e.messageType.length;++r){if("object"!=typeof e.messageType[r])throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected");t.messageType[r]=l.google.protobuf.DescriptorProto.fromObject(e.messageType[r])}}if(e.enumType){if(!Array.isArray(e.enumType))throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected");for(t.enumType=[],r=0;r<e.enumType.length;++r){if("object"!=typeof e.enumType[r])throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected");t.enumType[r]=l.google.protobuf.EnumDescriptorProto.fromObject(e.enumType[r])}}if(e.service){if(!Array.isArray(e.service))throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected");for(t.service=[],r=0;r<e.service.length;++r){if("object"!=typeof e.service[r])throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected");t.service[r]=l.google.protobuf.ServiceDescriptorProto.fromObject(e.service[r])}}if(e.extension){if(!Array.isArray(e.extension))throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected");for(t.extension=[],r=0;r<e.extension.length;++r){if("object"!=typeof e.extension[r])throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected");t.extension[r]=l.google.protobuf.FieldDescriptorProto.fromObject(e.extension[r])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected");t.options=l.google.protobuf.FileOptions.fromObject(e.options)}if(null!=e.sourceCodeInfo){if("object"!=typeof e.sourceCodeInfo)throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected");t.sourceCodeInfo=l.google.protobuf.SourceCodeInfo.fromObject(e.sourceCodeInfo)}return null!=e.syntax&&(t.syntax=String(e.syntax)),t},v.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.dependency=[],r.messageType=[],r.enumType=[],r.service=[],r.extension=[],r.publicDependency=[],r.weakDependency=[]),t.defaults&&(r.name="",r.package="",r.options=null,r.sourceCodeInfo=null,r.syntax=""),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.package&&e.hasOwnProperty("package")&&(r.package=e.package),e.dependency&&e.dependency.length){r.dependency=[];for(var n=0;n<e.dependency.length;++n)r.dependency[n]=e.dependency[n]}if(e.messageType&&e.messageType.length)for(r.messageType=[],n=0;n<e.messageType.length;++n)r.messageType[n]=l.google.protobuf.DescriptorProto.toObject(e.messageType[n],t);if(e.enumType&&e.enumType.length)for(r.enumType=[],n=0;n<e.enumType.length;++n)r.enumType[n]=l.google.protobuf.EnumDescriptorProto.toObject(e.enumType[n],t);if(e.service&&e.service.length)for(r.service=[],n=0;n<e.service.length;++n)r.service[n]=l.google.protobuf.ServiceDescriptorProto.toObject(e.service[n],t);if(e.extension&&e.extension.length)for(r.extension=[],n=0;n<e.extension.length;++n)r.extension[n]=l.google.protobuf.FieldDescriptorProto.toObject(e.extension[n],t);if(null!=e.options&&e.hasOwnProperty("options")&&(r.options=l.google.protobuf.FileOptions.toObject(e.options,t)),null!=e.sourceCodeInfo&&e.hasOwnProperty("sourceCodeInfo")&&(r.sourceCodeInfo=l.google.protobuf.SourceCodeInfo.toObject(e.sourceCodeInfo,t)),e.publicDependency&&e.publicDependency.length)for(r.publicDependency=[],n=0;n<e.publicDependency.length;++n)r.publicDependency[n]=e.publicDependency[n];if(e.weakDependency&&e.weakDependency.length)for(r.weakDependency=[],n=0;n<e.weakDependency.length;++n)r.weakDependency[n]=e.weakDependency[n];return null!=e.syntax&&e.hasOwnProperty("syntax")&&(r.syntax=e.syntax),r},v.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},v),n.DescriptorProto=(b.prototype.name="",b.prototype.field=s.emptyArray,b.prototype.extension=s.emptyArray,b.prototype.nestedType=s.emptyArray,b.prototype.enumType=s.emptyArray,b.prototype.extensionRange=s.emptyArray,b.prototype.oneofDecl=s.emptyArray,b.prototype.options=null,b.prototype.reservedRange=s.emptyArray,b.prototype.reservedName=s.emptyArray,b.create=function(e){return new b(e)},b.encode=function(e,t){if(t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.field&&e.field.length)for(var r=0;r<e.field.length;++r)l.google.protobuf.FieldDescriptorProto.encode(e.field[r],t.uint32(18).fork()).ldelim();if(null!=e.nestedType&&e.nestedType.length)for(r=0;r<e.nestedType.length;++r)l.google.protobuf.DescriptorProto.encode(e.nestedType[r],t.uint32(26).fork()).ldelim();if(null!=e.enumType&&e.enumType.length)for(r=0;r<e.enumType.length;++r)l.google.protobuf.EnumDescriptorProto.encode(e.enumType[r],t.uint32(34).fork()).ldelim();if(null!=e.extensionRange&&e.extensionRange.length)for(r=0;r<e.extensionRange.length;++r)l.google.protobuf.DescriptorProto.ExtensionRange.encode(e.extensionRange[r],t.uint32(42).fork()).ldelim();if(null!=e.extension&&e.extension.length)for(r=0;r<e.extension.length;++r)l.google.protobuf.FieldDescriptorProto.encode(e.extension[r],t.uint32(50).fork()).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.MessageOptions.encode(e.options,t.uint32(58).fork()).ldelim(),null!=e.oneofDecl&&e.oneofDecl.length)for(r=0;r<e.oneofDecl.length;++r)l.google.protobuf.OneofDescriptorProto.encode(e.oneofDecl[r],t.uint32(66).fork()).ldelim();if(null!=e.reservedRange&&e.reservedRange.length)for(r=0;r<e.reservedRange.length;++r)l.google.protobuf.DescriptorProto.ReservedRange.encode(e.reservedRange[r],t.uint32(74).fork()).ldelim();if(null!=e.reservedName&&e.reservedName.length)for(r=0;r<e.reservedName.length;++r)t.uint32(82).string(e.reservedName[r]);return t},b.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},b.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.DescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.field&&n.field.length||(n.field=[]),n.field.push(l.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 6:n.extension&&n.extension.length||(n.extension=[]),n.extension.push(l.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 3:n.nestedType&&n.nestedType.length||(n.nestedType=[]),n.nestedType.push(l.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 4:n.enumType&&n.enumType.length||(n.enumType=[]),n.enumType.push(l.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 5:n.extensionRange&&n.extensionRange.length||(n.extensionRange=[]),n.extensionRange.push(l.google.protobuf.DescriptorProto.ExtensionRange.decode(e,e.uint32()));break;case 8:n.oneofDecl&&n.oneofDecl.length||(n.oneofDecl=[]),n.oneofDecl.push(l.google.protobuf.OneofDescriptorProto.decode(e,e.uint32()));break;case 7:n.options=l.google.protobuf.MessageOptions.decode(e,e.uint32());break;case 9:n.reservedRange&&n.reservedRange.length||(n.reservedRange=[]),n.reservedRange.push(l.google.protobuf.DescriptorProto.ReservedRange.decode(e,e.uint32()));break;case 10:n.reservedName&&n.reservedName.length||(n.reservedName=[]),n.reservedName.push(e.string());break;default:e.skipType(7&o)}}return n},b.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},b.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name))return"name: string expected";if(null!=e.field&&e.hasOwnProperty("field")){if(!Array.isArray(e.field))return"field: array expected";for(var t=0;t<e.field.length;++t)if(r=l.google.protobuf.FieldDescriptorProto.verify(e.field[t]))return"field."+r}if(null!=e.extension&&e.hasOwnProperty("extension")){if(!Array.isArray(e.extension))return"extension: array expected";for(t=0;t<e.extension.length;++t)if(r=l.google.protobuf.FieldDescriptorProto.verify(e.extension[t]))return"extension."+r}if(null!=e.nestedType&&e.hasOwnProperty("nestedType")){if(!Array.isArray(e.nestedType))return"nestedType: array expected";for(t=0;t<e.nestedType.length;++t)if(r=l.google.protobuf.DescriptorProto.verify(e.nestedType[t]))return"nestedType."+r}if(null!=e.enumType&&e.hasOwnProperty("enumType")){if(!Array.isArray(e.enumType))return"enumType: array expected";for(t=0;t<e.enumType.length;++t)if(r=l.google.protobuf.EnumDescriptorProto.verify(e.enumType[t]))return"enumType."+r}if(null!=e.extensionRange&&e.hasOwnProperty("extensionRange")){if(!Array.isArray(e.extensionRange))return"extensionRange: array expected";for(t=0;t<e.extensionRange.length;++t)if(r=l.google.protobuf.DescriptorProto.ExtensionRange.verify(e.extensionRange[t]))return"extensionRange."+r}if(null!=e.oneofDecl&&e.hasOwnProperty("oneofDecl")){if(!Array.isArray(e.oneofDecl))return"oneofDecl: array expected";for(t=0;t<e.oneofDecl.length;++t)if(r=l.google.protobuf.OneofDescriptorProto.verify(e.oneofDecl[t]))return"oneofDecl."+r}if(null!=e.options&&e.hasOwnProperty("options")&&(r=l.google.protobuf.MessageOptions.verify(e.options)))return"options."+r;if(null!=e.reservedRange&&e.hasOwnProperty("reservedRange")){if(!Array.isArray(e.reservedRange))return"reservedRange: array expected";var r;for(t=0;t<e.reservedRange.length;++t)if(r=l.google.protobuf.DescriptorProto.ReservedRange.verify(e.reservedRange[t]))return"reservedRange."+r}if(null!=e.reservedName&&e.hasOwnProperty("reservedName")){if(!Array.isArray(e.reservedName))return"reservedName: array expected";for(t=0;t<e.reservedName.length;++t)if(!s.isString(e.reservedName[t]))return"reservedName: string[] expected"}return null},b.fromObject=function(e){if(e instanceof l.google.protobuf.DescriptorProto)return e;var t=new l.google.protobuf.DescriptorProto;if(null!=e.name&&(t.name=String(e.name)),e.field){if(!Array.isArray(e.field))throw TypeError(".google.protobuf.DescriptorProto.field: array expected");t.field=[];for(var r=0;r<e.field.length;++r){if("object"!=typeof e.field[r])throw TypeError(".google.protobuf.DescriptorProto.field: object expected");t.field[r]=l.google.protobuf.FieldDescriptorProto.fromObject(e.field[r])}}if(e.extension){if(!Array.isArray(e.extension))throw TypeError(".google.protobuf.DescriptorProto.extension: array expected");for(t.extension=[],r=0;r<e.extension.length;++r){if("object"!=typeof e.extension[r])throw TypeError(".google.protobuf.DescriptorProto.extension: object expected");t.extension[r]=l.google.protobuf.FieldDescriptorProto.fromObject(e.extension[r])}}if(e.nestedType){if(!Array.isArray(e.nestedType))throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected");for(t.nestedType=[],r=0;r<e.nestedType.length;++r){if("object"!=typeof e.nestedType[r])throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected");t.nestedType[r]=l.google.protobuf.DescriptorProto.fromObject(e.nestedType[r])}}if(e.enumType){if(!Array.isArray(e.enumType))throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected");for(t.enumType=[],r=0;r<e.enumType.length;++r){if("object"!=typeof e.enumType[r])throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected");t.enumType[r]=l.google.protobuf.EnumDescriptorProto.fromObject(e.enumType[r])}}if(e.extensionRange){if(!Array.isArray(e.extensionRange))throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected");for(t.extensionRange=[],r=0;r<e.extensionRange.length;++r){if("object"!=typeof e.extensionRange[r])throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected");t.extensionRange[r]=l.google.protobuf.DescriptorProto.ExtensionRange.fromObject(e.extensionRange[r])}}if(e.oneofDecl){if(!Array.isArray(e.oneofDecl))throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected");for(t.oneofDecl=[],r=0;r<e.oneofDecl.length;++r){if("object"!=typeof e.oneofDecl[r])throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected");t.oneofDecl[r]=l.google.protobuf.OneofDescriptorProto.fromObject(e.oneofDecl[r])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.DescriptorProto.options: object expected");t.options=l.google.protobuf.MessageOptions.fromObject(e.options)}if(e.reservedRange){if(!Array.isArray(e.reservedRange))throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected");for(t.reservedRange=[],r=0;r<e.reservedRange.length;++r){if("object"!=typeof e.reservedRange[r])throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected");t.reservedRange[r]=l.google.protobuf.DescriptorProto.ReservedRange.fromObject(e.reservedRange[r])}}if(e.reservedName){if(!Array.isArray(e.reservedName))throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected");for(t.reservedName=[],r=0;r<e.reservedName.length;++r)t.reservedName[r]=String(e.reservedName[r])}return t},b.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.field=[],r.nestedType=[],r.enumType=[],r.extensionRange=[],r.extension=[],r.oneofDecl=[],r.reservedRange=[],r.reservedName=[]),t.defaults&&(r.name="",r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),e.field&&e.field.length){r.field=[];for(var n=0;n<e.field.length;++n)r.field[n]=l.google.protobuf.FieldDescriptorProto.toObject(e.field[n],t)}if(e.nestedType&&e.nestedType.length)for(r.nestedType=[],n=0;n<e.nestedType.length;++n)r.nestedType[n]=l.google.protobuf.DescriptorProto.toObject(e.nestedType[n],t);if(e.enumType&&e.enumType.length)for(r.enumType=[],n=0;n<e.enumType.length;++n)r.enumType[n]=l.google.protobuf.EnumDescriptorProto.toObject(e.enumType[n],t);if(e.extensionRange&&e.extensionRange.length)for(r.extensionRange=[],n=0;n<e.extensionRange.length;++n)r.extensionRange[n]=l.google.protobuf.DescriptorProto.ExtensionRange.toObject(e.extensionRange[n],t);if(e.extension&&e.extension.length)for(r.extension=[],n=0;n<e.extension.length;++n)r.extension[n]=l.google.protobuf.FieldDescriptorProto.toObject(e.extension[n],t);if(null!=e.options&&e.hasOwnProperty("options")&&(r.options=l.google.protobuf.MessageOptions.toObject(e.options,t)),e.oneofDecl&&e.oneofDecl.length)for(r.oneofDecl=[],n=0;n<e.oneofDecl.length;++n)r.oneofDecl[n]=l.google.protobuf.OneofDescriptorProto.toObject(e.oneofDecl[n],t);if(e.reservedRange&&e.reservedRange.length)for(r.reservedRange=[],n=0;n<e.reservedRange.length;++n)r.reservedRange[n]=l.google.protobuf.DescriptorProto.ReservedRange.toObject(e.reservedRange[n],t);if(e.reservedName&&e.reservedName.length)for(r.reservedName=[],n=0;n<e.reservedName.length;++n)r.reservedName[n]=e.reservedName[n];return r},b.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},b.ExtensionRange=(O.prototype.start=0,O.prototype.end=0,O.prototype.options=null,O.create=function(e){return new O(e)},O.encode=function(e,t){return t=t||a.create(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.ExtensionRangeOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},O.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},O.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.DescriptorProto.ExtensionRange;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.start=e.int32();break;case 2:n.end=e.int32();break;case 3:n.options=l.google.protobuf.ExtensionRangeOptions.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},O.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},O.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!s.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!s.isInteger(e.end)?"end: integer expected":null!=e.options&&e.hasOwnProperty("options")&&(e=l.google.protobuf.ExtensionRangeOptions.verify(e.options))?"options."+e:null},O.fromObject=function(e){if(e instanceof l.google.protobuf.DescriptorProto.ExtensionRange)return e;var t=new l.google.protobuf.DescriptorProto.ExtensionRange;if(null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected");t.options=l.google.protobuf.ExtensionRangeOptions.fromObject(e.options)}return t},O.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.start=0,r.end=0,r.options=null),null!=e.start&&e.hasOwnProperty("start")&&(r.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(r.end=e.end),null!=e.options&&e.hasOwnProperty("options")&&(r.options=l.google.protobuf.ExtensionRangeOptions.toObject(e.options,t)),r},O.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},O),b.ReservedRange=(w.prototype.start=0,w.prototype.end=0,w.create=function(e){return new w(e)},w.encode=function(e,t){return t=t||a.create(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},w.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},w.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.DescriptorProto.ReservedRange;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.start=e.int32();break;case 2:n.end=e.int32();break;default:e.skipType(7&o)}}return n},w.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},w.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!s.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!s.isInteger(e.end)?"end: integer expected":null},w.fromObject=function(e){var t;return e instanceof l.google.protobuf.DescriptorProto.ReservedRange?e:(t=new l.google.protobuf.DescriptorProto.ReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},w.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.start=0,r.end=0),null!=e.start&&e.hasOwnProperty("start")&&(r.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(r.end=e.end),r},w.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},w),b),n.ExtensionRangeOptions=(S.prototype.uninterpretedOption=s.emptyArray,S.create=function(e){return new S(e)},S.encode=function(e,t){if(t=t||a.create(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},S.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},S.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.ExtensionRangeOptions;e.pos<r;){var o=e.uint32();o>>>3==999?(n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&o)}return n},S.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},S.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null},S.fromObject=function(e){if(e instanceof l.google.protobuf.ExtensionRangeOptions)return e;var t=new l.google.protobuf.ExtensionRangeOptions;if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},S.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},S.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},S),n.FieldDescriptorProto=(_.prototype.name="",_.prototype.number=0,_.prototype.label=1,_.prototype.type=1,_.prototype.typeName="",_.prototype.extendee="",_.prototype.defaultValue="",_.prototype.oneofIndex=0,_.prototype.jsonName="",_.prototype.options=null,_.prototype.proto3Optional=!1,_.create=function(e){return new _(e)},_.encode=function(e,t){return t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.extendee&&Object.hasOwnProperty.call(e,"extendee")&&t.uint32(18).string(e.extendee),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(24).int32(e.number),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(32).int32(e.label),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(40).int32(e.type),null!=e.typeName&&Object.hasOwnProperty.call(e,"typeName")&&t.uint32(50).string(e.typeName),null!=e.defaultValue&&Object.hasOwnProperty.call(e,"defaultValue")&&t.uint32(58).string(e.defaultValue),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.FieldOptions.encode(e.options,t.uint32(66).fork()).ldelim(),null!=e.oneofIndex&&Object.hasOwnProperty.call(e,"oneofIndex")&&t.uint32(72).int32(e.oneofIndex),null!=e.jsonName&&Object.hasOwnProperty.call(e,"jsonName")&&t.uint32(82).string(e.jsonName),null!=e.proto3Optional&&Object.hasOwnProperty.call(e,"proto3Optional")&&t.uint32(136).bool(e.proto3Optional),t},_.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},_.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.FieldDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 3:n.number=e.int32();break;case 4:n.label=e.int32();break;case 5:n.type=e.int32();break;case 6:n.typeName=e.string();break;case 2:n.extendee=e.string();break;case 7:n.defaultValue=e.string();break;case 9:n.oneofIndex=e.int32();break;case 10:n.jsonName=e.string();break;case 8:n.options=l.google.protobuf.FieldOptions.decode(e,e.uint32());break;case 17:n.proto3Optional=e.bool();break;default:e.skipType(7&o)}}return n},_.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},_.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!s.isInteger(e.number))return"number: integer expected";if(null!=e.label&&e.hasOwnProperty("label"))switch(e.label){default:return"label: enum value expected";case 1:case 2:case 3:}if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:}if(null!=e.typeName&&e.hasOwnProperty("typeName")&&!s.isString(e.typeName))return"typeName: string expected";if(null!=e.extendee&&e.hasOwnProperty("extendee")&&!s.isString(e.extendee))return"extendee: string expected";if(null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&!s.isString(e.defaultValue))return"defaultValue: string expected";if(null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&!s.isInteger(e.oneofIndex))return"oneofIndex: integer expected";if(null!=e.jsonName&&e.hasOwnProperty("jsonName")&&!s.isString(e.jsonName))return"jsonName: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=l.google.protobuf.FieldOptions.verify(e.options);if(t)return"options."+t}return null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&"boolean"!=typeof e.proto3Optional?"proto3Optional: boolean expected":null},_.fromObject=function(e){if(e instanceof l.google.protobuf.FieldDescriptorProto)return e;var t=new l.google.protobuf.FieldDescriptorProto;switch(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),e.label){case"LABEL_OPTIONAL":case 1:t.label=1;break;case"LABEL_REQUIRED":case 2:t.label=2;break;case"LABEL_REPEATED":case 3:t.label=3}switch(e.type){case"TYPE_DOUBLE":case 1:t.type=1;break;case"TYPE_FLOAT":case 2:t.type=2;break;case"TYPE_INT64":case 3:t.type=3;break;case"TYPE_UINT64":case 4:t.type=4;break;case"TYPE_INT32":case 5:t.type=5;break;case"TYPE_FIXED64":case 6:t.type=6;break;case"TYPE_FIXED32":case 7:t.type=7;break;case"TYPE_BOOL":case 8:t.type=8;break;case"TYPE_STRING":case 9:t.type=9;break;case"TYPE_GROUP":case 10:t.type=10;break;case"TYPE_MESSAGE":case 11:t.type=11;break;case"TYPE_BYTES":case 12:t.type=12;break;case"TYPE_UINT32":case 13:t.type=13;break;case"TYPE_ENUM":case 14:t.type=14;break;case"TYPE_SFIXED32":case 15:t.type=15;break;case"TYPE_SFIXED64":case 16:t.type=16;break;case"TYPE_SINT32":case 17:t.type=17;break;case"TYPE_SINT64":case 18:t.type=18}if(null!=e.typeName&&(t.typeName=String(e.typeName)),null!=e.extendee&&(t.extendee=String(e.extendee)),null!=e.defaultValue&&(t.defaultValue=String(e.defaultValue)),null!=e.oneofIndex&&(t.oneofIndex=0|e.oneofIndex),null!=e.jsonName&&(t.jsonName=String(e.jsonName)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");t.options=l.google.protobuf.FieldOptions.fromObject(e.options)}return null!=e.proto3Optional&&(t.proto3Optional=Boolean(e.proto3Optional)),t},_.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name="",r.extendee="",r.number=0,r.label=t.enums===String?"LABEL_OPTIONAL":1,r.type=t.enums===String?"TYPE_DOUBLE":1,r.typeName="",r.defaultValue="",r.options=null,r.oneofIndex=0,r.jsonName="",r.proto3Optional=!1),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.extendee&&e.hasOwnProperty("extendee")&&(r.extendee=e.extendee),null!=e.number&&e.hasOwnProperty("number")&&(r.number=e.number),null!=e.label&&e.hasOwnProperty("label")&&(r.label=t.enums===String?l.google.protobuf.FieldDescriptorProto.Label[e.label]:e.label),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?l.google.protobuf.FieldDescriptorProto.Type[e.type]:e.type),null!=e.typeName&&e.hasOwnProperty("typeName")&&(r.typeName=e.typeName),null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&(r.defaultValue=e.defaultValue),null!=e.options&&e.hasOwnProperty("options")&&(r.options=l.google.protobuf.FieldOptions.toObject(e.options,t)),null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&(r.oneofIndex=e.oneofIndex),null!=e.jsonName&&e.hasOwnProperty("jsonName")&&(r.jsonName=e.jsonName),null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&(r.proto3Optional=e.proto3Optional),r},_.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},_.Type=(t={},(r=Object.create(t))[t[1]="TYPE_DOUBLE"]=1,r[t[2]="TYPE_FLOAT"]=2,r[t[3]="TYPE_INT64"]=3,r[t[4]="TYPE_UINT64"]=4,r[t[5]="TYPE_INT32"]=5,r[t[6]="TYPE_FIXED64"]=6,r[t[7]="TYPE_FIXED32"]=7,r[t[8]="TYPE_BOOL"]=8,r[t[9]="TYPE_STRING"]=9,r[t[10]="TYPE_GROUP"]=10,r[t[11]="TYPE_MESSAGE"]=11,r[t[12]="TYPE_BYTES"]=12,r[t[13]="TYPE_UINT32"]=13,r[t[14]="TYPE_ENUM"]=14,r[t[15]="TYPE_SFIXED32"]=15,r[t[16]="TYPE_SFIXED64"]=16,r[t[17]="TYPE_SINT32"]=17,r[t[18]="TYPE_SINT64"]=18,r),_.Label=(t={},(r=Object.create(t))[t[1]="LABEL_OPTIONAL"]=1,r[t[2]="LABEL_REQUIRED"]=2,r[t[3]="LABEL_REPEATED"]=3,r),_),n.OneofDescriptorProto=(P.prototype.name="",P.prototype.options=null,P.create=function(e){return new P(e)},P.encode=function(e,t){return t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.OneofOptions.encode(e.options,t.uint32(18).fork()).ldelim(),t},P.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},P.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.OneofDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.options=l.google.protobuf.OneofOptions.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},P.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},P.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name)?"name: string expected":null!=e.options&&e.hasOwnProperty("options")&&(e=l.google.protobuf.OneofOptions.verify(e.options))?"options."+e:null},P.fromObject=function(e){if(e instanceof l.google.protobuf.OneofDescriptorProto)return e;var t=new l.google.protobuf.OneofDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected");t.options=l.google.protobuf.OneofOptions.fromObject(e.options)}return t},P.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name="",r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.options&&e.hasOwnProperty("options")&&(r.options=l.google.protobuf.OneofOptions.toObject(e.options,t)),r},P.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},P),n.EnumDescriptorProto=(E.prototype.name="",E.prototype.value=s.emptyArray,E.prototype.options=null,E.prototype.reservedRange=s.emptyArray,E.prototype.reservedName=s.emptyArray,E.create=function(e){return new E(e)},E.encode=function(e,t){if(t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&e.value.length)for(var r=0;r<e.value.length;++r)l.google.protobuf.EnumValueDescriptorProto.encode(e.value[r],t.uint32(18).fork()).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.EnumOptions.encode(e.options,t.uint32(26).fork()).ldelim(),null!=e.reservedRange&&e.reservedRange.length)for(r=0;r<e.reservedRange.length;++r)l.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(e.reservedRange[r],t.uint32(34).fork()).ldelim();if(null!=e.reservedName&&e.reservedName.length)for(r=0;r<e.reservedName.length;++r)t.uint32(42).string(e.reservedName[r]);return t},E.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},E.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.EnumDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.value&&n.value.length||(n.value=[]),n.value.push(l.google.protobuf.EnumValueDescriptorProto.decode(e,e.uint32()));break;case 3:n.options=l.google.protobuf.EnumOptions.decode(e,e.uint32());break;case 4:n.reservedRange&&n.reservedRange.length||(n.reservedRange=[]),n.reservedRange.push(l.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(e,e.uint32()));break;case 5:n.reservedName&&n.reservedName.length||(n.reservedName=[]),n.reservedName.push(e.string());break;default:e.skipType(7&o)}}return n},E.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},E.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name))return"name: string expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(var t=0;t<e.value.length;++t)if(r=l.google.protobuf.EnumValueDescriptorProto.verify(e.value[t]))return"value."+r}if(null!=e.options&&e.hasOwnProperty("options")&&(r=l.google.protobuf.EnumOptions.verify(e.options)))return"options."+r;if(null!=e.reservedRange&&e.hasOwnProperty("reservedRange")){if(!Array.isArray(e.reservedRange))return"reservedRange: array expected";var r;for(t=0;t<e.reservedRange.length;++t)if(r=l.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(e.reservedRange[t]))return"reservedRange."+r}if(null!=e.reservedName&&e.hasOwnProperty("reservedName")){if(!Array.isArray(e.reservedName))return"reservedName: array expected";for(t=0;t<e.reservedName.length;++t)if(!s.isString(e.reservedName[t]))return"reservedName: string[] expected"}return null},E.fromObject=function(e){if(e instanceof l.google.protobuf.EnumDescriptorProto)return e;var t=new l.google.protobuf.EnumDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),e.value){if(!Array.isArray(e.value))throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected");t.value=[];for(var r=0;r<e.value.length;++r){if("object"!=typeof e.value[r])throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected");t.value[r]=l.google.protobuf.EnumValueDescriptorProto.fromObject(e.value[r])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected");t.options=l.google.protobuf.EnumOptions.fromObject(e.options)}if(e.reservedRange){if(!Array.isArray(e.reservedRange))throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected");for(t.reservedRange=[],r=0;r<e.reservedRange.length;++r){if("object"!=typeof e.reservedRange[r])throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected");t.reservedRange[r]=l.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(e.reservedRange[r])}}if(e.reservedName){if(!Array.isArray(e.reservedName))throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected");for(t.reservedName=[],r=0;r<e.reservedName.length;++r)t.reservedName[r]=String(e.reservedName[r])}return t},E.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.value=[],r.reservedRange=[],r.reservedName=[]),t.defaults&&(r.name="",r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),e.value&&e.value.length){r.value=[];for(var n=0;n<e.value.length;++n)r.value[n]=l.google.protobuf.EnumValueDescriptorProto.toObject(e.value[n],t)}if(null!=e.options&&e.hasOwnProperty("options")&&(r.options=l.google.protobuf.EnumOptions.toObject(e.options,t)),e.reservedRange&&e.reservedRange.length)for(r.reservedRange=[],n=0;n<e.reservedRange.length;++n)r.reservedRange[n]=l.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(e.reservedRange[n],t);if(e.reservedName&&e.reservedName.length)for(r.reservedName=[],n=0;n<e.reservedName.length;++n)r.reservedName[n]=e.reservedName[n];return r},E.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},E.EnumReservedRange=(T.prototype.start=0,T.prototype.end=0,T.create=function(e){return new T(e)},T.encode=function(e,t){return t=t||a.create(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},T.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},T.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.EnumDescriptorProto.EnumReservedRange;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.start=e.int32();break;case 2:n.end=e.int32();break;default:e.skipType(7&o)}}return n},T.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},T.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!s.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!s.isInteger(e.end)?"end: integer expected":null},T.fromObject=function(e){var t;return e instanceof l.google.protobuf.EnumDescriptorProto.EnumReservedRange?e:(t=new l.google.protobuf.EnumDescriptorProto.EnumReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},T.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.start=0,r.end=0),null!=e.start&&e.hasOwnProperty("start")&&(r.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(r.end=e.end),r},T.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},T),E),n.EnumValueDescriptorProto=(C.prototype.name="",C.prototype.number=0,C.prototype.options=null,C.create=function(e){return new C(e)},C.encode=function(e,t){return t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(16).int32(e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.EnumValueOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},C.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},C.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.EnumValueDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.number=e.int32();break;case 3:n.options=l.google.protobuf.EnumValueOptions.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},C.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},C.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name)?"name: string expected":null!=e.number&&e.hasOwnProperty("number")&&!s.isInteger(e.number)?"number: integer expected":null!=e.options&&e.hasOwnProperty("options")&&(e=l.google.protobuf.EnumValueOptions.verify(e.options))?"options."+e:null},C.fromObject=function(e){if(e instanceof l.google.protobuf.EnumValueDescriptorProto)return e;var t=new l.google.protobuf.EnumValueDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected");t.options=l.google.protobuf.EnumValueOptions.fromObject(e.options)}return t},C.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name="",r.number=0,r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.number&&e.hasOwnProperty("number")&&(r.number=e.number),null!=e.options&&e.hasOwnProperty("options")&&(r.options=l.google.protobuf.EnumValueOptions.toObject(e.options,t)),r},C.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},C),n.ServiceDescriptorProto=(R.prototype.name="",R.prototype.method=s.emptyArray,R.prototype.options=null,R.create=function(e){return new R(e)},R.encode=function(e,t){if(t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.method&&e.method.length)for(var r=0;r<e.method.length;++r)l.google.protobuf.MethodDescriptorProto.encode(e.method[r],t.uint32(18).fork()).ldelim();return null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.ServiceOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},R.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},R.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.ServiceDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.method&&n.method.length||(n.method=[]),n.method.push(l.google.protobuf.MethodDescriptorProto.decode(e,e.uint32()));break;case 3:n.options=l.google.protobuf.ServiceOptions.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},R.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},R.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name))return"name: string expected";if(null!=e.method&&e.hasOwnProperty("method")){if(!Array.isArray(e.method))return"method: array expected";for(var t=0;t<e.method.length;++t)if(r=l.google.protobuf.MethodDescriptorProto.verify(e.method[t]))return"method."+r}var r;return null!=e.options&&e.hasOwnProperty("options")&&(r=l.google.protobuf.ServiceOptions.verify(e.options))?"options."+r:null},R.fromObject=function(e){if(e instanceof l.google.protobuf.ServiceDescriptorProto)return e;var t=new l.google.protobuf.ServiceDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),e.method){if(!Array.isArray(e.method))throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected");t.method=[];for(var r=0;r<e.method.length;++r){if("object"!=typeof e.method[r])throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected");t.method[r]=l.google.protobuf.MethodDescriptorProto.fromObject(e.method[r])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected");t.options=l.google.protobuf.ServiceOptions.fromObject(e.options)}return t},R.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.method=[]),t.defaults&&(r.name="",r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),e.method&&e.method.length){r.method=[];for(var n=0;n<e.method.length;++n)r.method[n]=l.google.protobuf.MethodDescriptorProto.toObject(e.method[n],t)}return null!=e.options&&e.hasOwnProperty("options")&&(r.options=l.google.protobuf.ServiceOptions.toObject(e.options,t)),r},R.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},R),n.MethodDescriptorProto=(D.prototype.name="",D.prototype.inputType="",D.prototype.outputType="",D.prototype.options=null,D.prototype.clientStreaming=!1,D.prototype.serverStreaming=!1,D.create=function(e){return new D(e)},D.encode=function(e,t){return t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.inputType&&Object.hasOwnProperty.call(e,"inputType")&&t.uint32(18).string(e.inputType),null!=e.outputType&&Object.hasOwnProperty.call(e,"outputType")&&t.uint32(26).string(e.outputType),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.MethodOptions.encode(e.options,t.uint32(34).fork()).ldelim(),null!=e.clientStreaming&&Object.hasOwnProperty.call(e,"clientStreaming")&&t.uint32(40).bool(e.clientStreaming),null!=e.serverStreaming&&Object.hasOwnProperty.call(e,"serverStreaming")&&t.uint32(48).bool(e.serverStreaming),t},D.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},D.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.MethodDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.inputType=e.string();break;case 3:n.outputType=e.string();break;case 4:n.options=l.google.protobuf.MethodOptions.decode(e,e.uint32());break;case 5:n.clientStreaming=e.bool();break;case 6:n.serverStreaming=e.bool();break;default:e.skipType(7&o)}}return n},D.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},D.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name))return"name: string expected";if(null!=e.inputType&&e.hasOwnProperty("inputType")&&!s.isString(e.inputType))return"inputType: string expected";if(null!=e.outputType&&e.hasOwnProperty("outputType")&&!s.isString(e.outputType))return"outputType: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=l.google.protobuf.MethodOptions.verify(e.options);if(t)return"options."+t}return null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&"boolean"!=typeof e.clientStreaming?"clientStreaming: boolean expected":null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&"boolean"!=typeof e.serverStreaming?"serverStreaming: boolean expected":null},D.fromObject=function(e){if(e instanceof l.google.protobuf.MethodDescriptorProto)return e;var t=new l.google.protobuf.MethodDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.inputType&&(t.inputType=String(e.inputType)),null!=e.outputType&&(t.outputType=String(e.outputType)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected");t.options=l.google.protobuf.MethodOptions.fromObject(e.options)}return null!=e.clientStreaming&&(t.clientStreaming=Boolean(e.clientStreaming)),null!=e.serverStreaming&&(t.serverStreaming=Boolean(e.serverStreaming)),t},D.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name="",r.inputType="",r.outputType="",r.options=null,r.clientStreaming=!1,r.serverStreaming=!1),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.inputType&&e.hasOwnProperty("inputType")&&(r.inputType=e.inputType),null!=e.outputType&&e.hasOwnProperty("outputType")&&(r.outputType=e.outputType),null!=e.options&&e.hasOwnProperty("options")&&(r.options=l.google.protobuf.MethodOptions.toObject(e.options,t)),null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&(r.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&(r.serverStreaming=e.serverStreaming),r},D.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},D),n.FileOptions=(k.prototype.javaPackage="",k.prototype.javaOuterClassname="",k.prototype.javaMultipleFiles=!1,k.prototype.javaGenerateEqualsAndHash=!1,k.prototype.javaStringCheckUtf8=!1,k.prototype.optimizeFor=1,k.prototype.goPackage="",k.prototype.ccGenericServices=!1,k.prototype.javaGenericServices=!1,k.prototype.pyGenericServices=!1,k.prototype.phpGenericServices=!1,k.prototype.deprecated=!1,k.prototype.ccEnableArenas=!0,k.prototype.objcClassPrefix="",k.prototype.csharpNamespace="",k.prototype.swiftPrefix="",k.prototype.phpClassPrefix="",k.prototype.phpNamespace="",k.prototype.phpMetadataNamespace="",k.prototype.rubyPackage="",k.prototype.uninterpretedOption=s.emptyArray,k.create=function(e){return new k(e)},k.encode=function(e,t){if(t=t||a.create(),null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&t.uint32(10).string(e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&t.uint32(66).string(e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&t.uint32(72).int32(e.optimizeFor),null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&t.uint32(80).bool(e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&t.uint32(90).string(e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&t.uint32(128).bool(e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&t.uint32(136).bool(e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&t.uint32(144).bool(e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&t.uint32(160).bool(e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(184).bool(e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&t.uint32(216).bool(e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&t.uint32(248).bool(e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&t.uint32(290).string(e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&t.uint32(298).string(e.csharpNamespace),null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&t.uint32(314).string(e.swiftPrefix),null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&t.uint32(322).string(e.phpClassPrefix),null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&t.uint32(330).string(e.phpNamespace),null!=e.phpGenericServices&&Object.hasOwnProperty.call(e,"phpGenericServices")&&t.uint32(336).bool(e.phpGenericServices),null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&t.uint32(354).string(e.phpMetadataNamespace),null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&t.uint32(362).string(e.rubyPackage),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},k.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},k.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.FileOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.javaPackage=e.string();break;case 8:n.javaOuterClassname=e.string();break;case 10:n.javaMultipleFiles=e.bool();break;case 20:n.javaGenerateEqualsAndHash=e.bool();break;case 27:n.javaStringCheckUtf8=e.bool();break;case 9:n.optimizeFor=e.int32();break;case 11:n.goPackage=e.string();break;case 16:n.ccGenericServices=e.bool();break;case 17:n.javaGenericServices=e.bool();break;case 18:n.pyGenericServices=e.bool();break;case 42:n.phpGenericServices=e.bool();break;case 23:n.deprecated=e.bool();break;case 31:n.ccEnableArenas=e.bool();break;case 36:n.objcClassPrefix=e.string();break;case 37:n.csharpNamespace=e.string();break;case 39:n.swiftPrefix=e.string();break;case 40:n.phpClassPrefix=e.string();break;case 41:n.phpNamespace=e.string();break;case 44:n.phpMetadataNamespace=e.string();break;case 45:n.rubyPackage=e.string();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return n},k.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},k.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.javaPackage&&e.hasOwnProperty("javaPackage")&&!s.isString(e.javaPackage))return"javaPackage: string expected";if(null!=e.javaOuterClassname&&e.hasOwnProperty("javaOuterClassname")&&!s.isString(e.javaOuterClassname))return"javaOuterClassname: string expected";if(null!=e.javaMultipleFiles&&e.hasOwnProperty("javaMultipleFiles")&&"boolean"!=typeof e.javaMultipleFiles)return"javaMultipleFiles: boolean expected";if(null!=e.javaGenerateEqualsAndHash&&e.hasOwnProperty("javaGenerateEqualsAndHash")&&"boolean"!=typeof e.javaGenerateEqualsAndHash)return"javaGenerateEqualsAndHash: boolean expected";if(null!=e.javaStringCheckUtf8&&e.hasOwnProperty("javaStringCheckUtf8")&&"boolean"!=typeof e.javaStringCheckUtf8)return"javaStringCheckUtf8: boolean expected";if(null!=e.optimizeFor&&e.hasOwnProperty("optimizeFor"))switch(e.optimizeFor){default:return"optimizeFor: enum value expected";case 1:case 2:case 3:}if(null!=e.goPackage&&e.hasOwnProperty("goPackage")&&!s.isString(e.goPackage))return"goPackage: string expected";if(null!=e.ccGenericServices&&e.hasOwnProperty("ccGenericServices")&&"boolean"!=typeof e.ccGenericServices)return"ccGenericServices: boolean expected";if(null!=e.javaGenericServices&&e.hasOwnProperty("javaGenericServices")&&"boolean"!=typeof e.javaGenericServices)return"javaGenericServices: boolean expected";if(null!=e.pyGenericServices&&e.hasOwnProperty("pyGenericServices")&&"boolean"!=typeof e.pyGenericServices)return"pyGenericServices: boolean expected";if(null!=e.phpGenericServices&&e.hasOwnProperty("phpGenericServices")&&"boolean"!=typeof e.phpGenericServices)return"phpGenericServices: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.ccEnableArenas&&e.hasOwnProperty("ccEnableArenas")&&"boolean"!=typeof e.ccEnableArenas)return"ccEnableArenas: boolean expected";if(null!=e.objcClassPrefix&&e.hasOwnProperty("objcClassPrefix")&&!s.isString(e.objcClassPrefix))return"objcClassPrefix: string expected";if(null!=e.csharpNamespace&&e.hasOwnProperty("csharpNamespace")&&!s.isString(e.csharpNamespace))return"csharpNamespace: string expected";if(null!=e.swiftPrefix&&e.hasOwnProperty("swiftPrefix")&&!s.isString(e.swiftPrefix))return"swiftPrefix: string expected";if(null!=e.phpClassPrefix&&e.hasOwnProperty("phpClassPrefix")&&!s.isString(e.phpClassPrefix))return"phpClassPrefix: string expected";if(null!=e.phpNamespace&&e.hasOwnProperty("phpNamespace")&&!s.isString(e.phpNamespace))return"phpNamespace: string expected";if(null!=e.phpMetadataNamespace&&e.hasOwnProperty("phpMetadataNamespace")&&!s.isString(e.phpMetadataNamespace))return"phpMetadataNamespace: string expected";if(null!=e.rubyPackage&&e.hasOwnProperty("rubyPackage")&&!s.isString(e.rubyPackage))return"rubyPackage: string expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null},k.fromObject=function(e){if(e instanceof l.google.protobuf.FileOptions)return e;var t=new l.google.protobuf.FileOptions;switch(null!=e.javaPackage&&(t.javaPackage=String(e.javaPackage)),null!=e.javaOuterClassname&&(t.javaOuterClassname=String(e.javaOuterClassname)),null!=e.javaMultipleFiles&&(t.javaMultipleFiles=Boolean(e.javaMultipleFiles)),null!=e.javaGenerateEqualsAndHash&&(t.javaGenerateEqualsAndHash=Boolean(e.javaGenerateEqualsAndHash)),null!=e.javaStringCheckUtf8&&(t.javaStringCheckUtf8=Boolean(e.javaStringCheckUtf8)),e.optimizeFor){case"SPEED":case 1:t.optimizeFor=1;break;case"CODE_SIZE":case 2:t.optimizeFor=2;break;case"LITE_RUNTIME":case 3:t.optimizeFor=3}if(null!=e.goPackage&&(t.goPackage=String(e.goPackage)),null!=e.ccGenericServices&&(t.ccGenericServices=Boolean(e.ccGenericServices)),null!=e.javaGenericServices&&(t.javaGenericServices=Boolean(e.javaGenericServices)),null!=e.pyGenericServices&&(t.pyGenericServices=Boolean(e.pyGenericServices)),null!=e.phpGenericServices&&(t.phpGenericServices=Boolean(e.phpGenericServices)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),null!=e.ccEnableArenas&&(t.ccEnableArenas=Boolean(e.ccEnableArenas)),null!=e.objcClassPrefix&&(t.objcClassPrefix=String(e.objcClassPrefix)),null!=e.csharpNamespace&&(t.csharpNamespace=String(e.csharpNamespace)),null!=e.swiftPrefix&&(t.swiftPrefix=String(e.swiftPrefix)),null!=e.phpClassPrefix&&(t.phpClassPrefix=String(e.phpClassPrefix)),null!=e.phpNamespace&&(t.phpNamespace=String(e.phpNamespace)),null!=e.phpMetadataNamespace&&(t.phpMetadataNamespace=String(e.phpMetadataNamespace)),null!=e.rubyPackage&&(t.rubyPackage=String(e.rubyPackage)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},k.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.javaPackage="",r.javaOuterClassname="",r.optimizeFor=t.enums===String?"SPEED":1,r.javaMultipleFiles=!1,r.goPackage="",r.ccGenericServices=!1,r.javaGenericServices=!1,r.pyGenericServices=!1,r.javaGenerateEqualsAndHash=!1,r.deprecated=!1,r.javaStringCheckUtf8=!1,r.ccEnableArenas=!0,r.objcClassPrefix="",r.csharpNamespace="",r.swiftPrefix="",r.phpClassPrefix="",r.phpNamespace="",r.phpGenericServices=!1,r.phpMetadataNamespace="",r.rubyPackage=""),null!=e.javaPackage&&e.hasOwnProperty("javaPackage")&&(r.javaPackage=e.javaPackage),null!=e.javaOuterClassname&&e.hasOwnProperty("javaOuterClassname")&&(r.javaOuterClassname=e.javaOuterClassname),null!=e.optimizeFor&&e.hasOwnProperty("optimizeFor")&&(r.optimizeFor=t.enums===String?l.google.protobuf.FileOptions.OptimizeMode[e.optimizeFor]:e.optimizeFor),null!=e.javaMultipleFiles&&e.hasOwnProperty("javaMultipleFiles")&&(r.javaMultipleFiles=e.javaMultipleFiles),null!=e.goPackage&&e.hasOwnProperty("goPackage")&&(r.goPackage=e.goPackage),null!=e.ccGenericServices&&e.hasOwnProperty("ccGenericServices")&&(r.ccGenericServices=e.ccGenericServices),null!=e.javaGenericServices&&e.hasOwnProperty("javaGenericServices")&&(r.javaGenericServices=e.javaGenericServices),null!=e.pyGenericServices&&e.hasOwnProperty("pyGenericServices")&&(r.pyGenericServices=e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&e.hasOwnProperty("javaGenerateEqualsAndHash")&&(r.javaGenerateEqualsAndHash=e.javaGenerateEqualsAndHash),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),null!=e.javaStringCheckUtf8&&e.hasOwnProperty("javaStringCheckUtf8")&&(r.javaStringCheckUtf8=e.javaStringCheckUtf8),null!=e.ccEnableArenas&&e.hasOwnProperty("ccEnableArenas")&&(r.ccEnableArenas=e.ccEnableArenas),null!=e.objcClassPrefix&&e.hasOwnProperty("objcClassPrefix")&&(r.objcClassPrefix=e.objcClassPrefix),null!=e.csharpNamespace&&e.hasOwnProperty("csharpNamespace")&&(r.csharpNamespace=e.csharpNamespace),null!=e.swiftPrefix&&e.hasOwnProperty("swiftPrefix")&&(r.swiftPrefix=e.swiftPrefix),null!=e.phpClassPrefix&&e.hasOwnProperty("phpClassPrefix")&&(r.phpClassPrefix=e.phpClassPrefix),null!=e.phpNamespace&&e.hasOwnProperty("phpNamespace")&&(r.phpNamespace=e.phpNamespace),null!=e.phpGenericServices&&e.hasOwnProperty("phpGenericServices")&&(r.phpGenericServices=e.phpGenericServices),null!=e.phpMetadataNamespace&&e.hasOwnProperty("phpMetadataNamespace")&&(r.phpMetadataNamespace=e.phpMetadataNamespace),null!=e.rubyPackage&&e.hasOwnProperty("rubyPackage")&&(r.rubyPackage=e.rubyPackage),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},k.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},k.OptimizeMode=(t={},(r=Object.create(t))[t[1]="SPEED"]=1,r[t[2]="CODE_SIZE"]=2,r[t[3]="LITE_RUNTIME"]=3,r),k),n.MessageOptions=(x.prototype.messageSetWireFormat=!1,x.prototype.noStandardDescriptorAccessor=!1,x.prototype.deprecated=!1,x.prototype.mapEntry=!1,x.prototype.uninterpretedOption=s.emptyArray,x.create=function(e){return new x(e)},x.encode=function(e,t){if(t=t||a.create(),null!=e.messageSetWireFormat&&Object.hasOwnProperty.call(e,"messageSetWireFormat")&&t.uint32(8).bool(e.messageSetWireFormat),null!=e.noStandardDescriptorAccessor&&Object.hasOwnProperty.call(e,"noStandardDescriptorAccessor")&&t.uint32(16).bool(e.noStandardDescriptorAccessor),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.mapEntry&&Object.hasOwnProperty.call(e,"mapEntry")&&t.uint32(56).bool(e.mapEntry),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},x.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},x.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.MessageOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.messageSetWireFormat=e.bool();break;case 2:n.noStandardDescriptorAccessor=e.bool();break;case 3:n.deprecated=e.bool();break;case 7:n.mapEntry=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return n},x.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},x.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.messageSetWireFormat&&e.hasOwnProperty("messageSetWireFormat")&&"boolean"!=typeof e.messageSetWireFormat)return"messageSetWireFormat: boolean expected";if(null!=e.noStandardDescriptorAccessor&&e.hasOwnProperty("noStandardDescriptorAccessor")&&"boolean"!=typeof e.noStandardDescriptorAccessor)return"noStandardDescriptorAccessor: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.mapEntry&&e.hasOwnProperty("mapEntry")&&"boolean"!=typeof e.mapEntry)return"mapEntry: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null},x.fromObject=function(e){if(e instanceof l.google.protobuf.MessageOptions)return e;var t=new l.google.protobuf.MessageOptions;if(null!=e.messageSetWireFormat&&(t.messageSetWireFormat=Boolean(e.messageSetWireFormat)),null!=e.noStandardDescriptorAccessor&&(t.noStandardDescriptorAccessor=Boolean(e.noStandardDescriptorAccessor)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),null!=e.mapEntry&&(t.mapEntry=Boolean(e.mapEntry)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},x.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.messageSetWireFormat=!1,r.noStandardDescriptorAccessor=!1,r.deprecated=!1,r.mapEntry=!1),null!=e.messageSetWireFormat&&e.hasOwnProperty("messageSetWireFormat")&&(r.messageSetWireFormat=e.messageSetWireFormat),null!=e.noStandardDescriptorAccessor&&e.hasOwnProperty("noStandardDescriptorAccessor")&&(r.noStandardDescriptorAccessor=e.noStandardDescriptorAccessor),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),null!=e.mapEntry&&e.hasOwnProperty("mapEntry")&&(r.mapEntry=e.mapEntry),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},x.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},x),n.FieldOptions=(j.prototype.ctype=0,j.prototype.packed=!1,j.prototype.jstype=0,j.prototype.lazy=!1,j.prototype.deprecated=!1,j.prototype.weak=!1,j.prototype.uninterpretedOption=s.emptyArray,j.create=function(e){return new j(e)},j.encode=function(e,t){if(t=t||a.create(),null!=e.ctype&&Object.hasOwnProperty.call(e,"ctype")&&t.uint32(8).int32(e.ctype),null!=e.packed&&Object.hasOwnProperty.call(e,"packed")&&t.uint32(16).bool(e.packed),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.lazy&&Object.hasOwnProperty.call(e,"lazy")&&t.uint32(40).bool(e.lazy),null!=e.jstype&&Object.hasOwnProperty.call(e,"jstype")&&t.uint32(48).int32(e.jstype),null!=e.weak&&Object.hasOwnProperty.call(e,"weak")&&t.uint32(80).bool(e.weak),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},j.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},j.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.FieldOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.ctype=e.int32();break;case 2:n.packed=e.bool();break;case 6:n.jstype=e.int32();break;case 5:n.lazy=e.bool();break;case 3:n.deprecated=e.bool();break;case 10:n.weak=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return n},j.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},j.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.ctype&&e.hasOwnProperty("ctype"))switch(e.ctype){default:return"ctype: enum value expected";case 0:case 1:case 2:}if(null!=e.packed&&e.hasOwnProperty("packed")&&"boolean"!=typeof e.packed)return"packed: boolean expected";if(null!=e.jstype&&e.hasOwnProperty("jstype"))switch(e.jstype){default:return"jstype: enum value expected";case 0:case 1:case 2:}if(null!=e.lazy&&e.hasOwnProperty("lazy")&&"boolean"!=typeof e.lazy)return"lazy: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.weak&&e.hasOwnProperty("weak")&&"boolean"!=typeof e.weak)return"weak: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null},j.fromObject=function(e){if(e instanceof l.google.protobuf.FieldOptions)return e;var t=new l.google.protobuf.FieldOptions;switch(e.ctype){case"STRING":case 0:t.ctype=0;break;case"CORD":case 1:t.ctype=1;break;case"STRING_PIECE":case 2:t.ctype=2}switch(null!=e.packed&&(t.packed=Boolean(e.packed)),e.jstype){case"JS_NORMAL":case 0:t.jstype=0;break;case"JS_STRING":case 1:t.jstype=1;break;case"JS_NUMBER":case 2:t.jstype=2}if(null!=e.lazy&&(t.lazy=Boolean(e.lazy)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),null!=e.weak&&(t.weak=Boolean(e.weak)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},j.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.ctype=t.enums===String?"STRING":0,r.packed=!1,r.deprecated=!1,r.lazy=!1,r.jstype=t.enums===String?"JS_NORMAL":0,r.weak=!1),null!=e.ctype&&e.hasOwnProperty("ctype")&&(r.ctype=t.enums===String?l.google.protobuf.FieldOptions.CType[e.ctype]:e.ctype),null!=e.packed&&e.hasOwnProperty("packed")&&(r.packed=e.packed),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),null!=e.lazy&&e.hasOwnProperty("lazy")&&(r.lazy=e.lazy),null!=e.jstype&&e.hasOwnProperty("jstype")&&(r.jstype=t.enums===String?l.google.protobuf.FieldOptions.JSType[e.jstype]:e.jstype),null!=e.weak&&e.hasOwnProperty("weak")&&(r.weak=e.weak),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},j.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},j.CType=(t={},(r=Object.create(t))[t[0]="STRING"]=0,r[t[1]="CORD"]=1,r[t[2]="STRING_PIECE"]=2,r),j.JSType=(t={},(r=Object.create(t))[t[0]="JS_NORMAL"]=0,r[t[1]="JS_STRING"]=1,r[t[2]="JS_NUMBER"]=2,r),j),n.OneofOptions=(A.prototype.uninterpretedOption=s.emptyArray,A.create=function(e){return new A(e)},A.encode=function(e,t){if(t=t||a.create(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},A.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},A.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.OneofOptions;e.pos<r;){var o=e.uint32();o>>>3==999?(n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&o)}return n},A.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},A.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null},A.fromObject=function(e){if(e instanceof l.google.protobuf.OneofOptions)return e;var t=new l.google.protobuf.OneofOptions;if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},A.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},A.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},A),n.EnumOptions=(N.prototype.allowAlias=!1,N.prototype.deprecated=!1,N.prototype.uninterpretedOption=s.emptyArray,N.create=function(e){return new N(e)},N.encode=function(e,t){if(t=t||a.create(),null!=e.allowAlias&&Object.hasOwnProperty.call(e,"allowAlias")&&t.uint32(16).bool(e.allowAlias),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},N.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},N.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.EnumOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 2:n.allowAlias=e.bool();break;case 3:n.deprecated=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return n},N.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},N.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.allowAlias&&e.hasOwnProperty("allowAlias")&&"boolean"!=typeof e.allowAlias)return"allowAlias: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null},N.fromObject=function(e){if(e instanceof l.google.protobuf.EnumOptions)return e;var t=new l.google.protobuf.EnumOptions;if(null!=e.allowAlias&&(t.allowAlias=Boolean(e.allowAlias)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},N.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.allowAlias=!1,r.deprecated=!1),null!=e.allowAlias&&e.hasOwnProperty("allowAlias")&&(r.allowAlias=e.allowAlias),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},N.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},N),n.EnumValueOptions=(I.prototype.deprecated=!1,I.prototype.uninterpretedOption=s.emptyArray,I.create=function(e){return new I(e)},I.encode=function(e,t){if(t=t||a.create(),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(8).bool(e.deprecated),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},I.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},I.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.EnumValueOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.deprecated=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return n},I.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},I.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null},I.fromObject=function(e){if(e instanceof l.google.protobuf.EnumValueOptions)return e;var t=new l.google.protobuf.EnumValueOptions;if(null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},I.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.deprecated=!1),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},I.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},I),n.ServiceOptions=(q.prototype.deprecated=!1,q.prototype.uninterpretedOption=s.emptyArray,q.prototype[".google.api.defaultHost"]="",q.prototype[".google.api.oauthScopes"]="",q.create=function(e){return new q(e)},q.encode=function(e,t){if(t=t||a.create(),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(264).bool(e.deprecated),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return null!=e[".google.api.defaultHost"]&&Object.hasOwnProperty.call(e,".google.api.defaultHost")&&t.uint32(8394).string(e[".google.api.defaultHost"]),null!=e[".google.api.oauthScopes"]&&Object.hasOwnProperty.call(e,".google.api.oauthScopes")&&t.uint32(8402).string(e[".google.api.oauthScopes"]),t},q.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},q.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.ServiceOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 33:n.deprecated=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1049:n[".google.api.defaultHost"]=e.string();break;case 1050:n[".google.api.oauthScopes"]=e.string();break;default:e.skipType(7&o)}}return n},q.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},q.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null!=e[".google.api.defaultHost"]&&e.hasOwnProperty(".google.api.defaultHost")&&!s.isString(e[".google.api.defaultHost"])?".google.api.defaultHost: string expected":null!=e[".google.api.oauthScopes"]&&e.hasOwnProperty(".google.api.oauthScopes")&&!s.isString(e[".google.api.oauthScopes"])?".google.api.oauthScopes: string expected":null},q.fromObject=function(e){if(e instanceof l.google.protobuf.ServiceOptions)return e;var t=new l.google.protobuf.ServiceOptions;if(null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return null!=e[".google.api.defaultHost"]&&(t[".google.api.defaultHost"]=String(e[".google.api.defaultHost"])),null!=e[".google.api.oauthScopes"]&&(t[".google.api.oauthScopes"]=String(e[".google.api.oauthScopes"])),t},q.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.deprecated=!1,r[".google.api.defaultHost"]="",r[".google.api.oauthScopes"]=""),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return null!=e[".google.api.defaultHost"]&&e.hasOwnProperty(".google.api.defaultHost")&&(r[".google.api.defaultHost"]=e[".google.api.defaultHost"]),null!=e[".google.api.oauthScopes"]&&e.hasOwnProperty(".google.api.oauthScopes")&&(r[".google.api.oauthScopes"]=e[".google.api.oauthScopes"]),r},q.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},q),n.MethodOptions=(M.prototype.deprecated=!1,M.prototype.idempotencyLevel=0,M.prototype.uninterpretedOption=s.emptyArray,M.prototype[".google.api.http"]=null,M.prototype[".google.api.methodSignature"]=s.emptyArray,M.create=function(e){return new M(e)},M.encode=function(e,t){if(t=t||a.create(),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(264).bool(e.deprecated),null!=e.idempotencyLevel&&Object.hasOwnProperty.call(e,"idempotencyLevel")&&t.uint32(272).int32(e.idempotencyLevel),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();if(null!=e[".google.api.methodSignature"]&&e[".google.api.methodSignature"].length)for(r=0;r<e[".google.api.methodSignature"].length;++r)t.uint32(8410).string(e[".google.api.methodSignature"][r]);return null!=e[".google.api.http"]&&Object.hasOwnProperty.call(e,".google.api.http")&&l.google.api.HttpRule.encode(e[".google.api.http"],t.uint32(578365826).fork()).ldelim(),t},M.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},M.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.MethodOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 33:n.deprecated=e.bool();break;case 34:n.idempotencyLevel=e.int32();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 72295728:n[".google.api.http"]=l.google.api.HttpRule.decode(e,e.uint32());break;case 1051:n[".google.api.methodSignature"]&&n[".google.api.methodSignature"].length||(n[".google.api.methodSignature"]=[]),n[".google.api.methodSignature"].push(e.string());break;default:e.skipType(7&o)}}return n},M.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},M.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.idempotencyLevel&&e.hasOwnProperty("idempotencyLevel"))switch(e.idempotencyLevel){default:return"idempotencyLevel: enum value expected";case 0:case 1:case 2:}if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t)if(r=l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]))return"uninterpretedOption."+r}var r;if(null!=e[".google.api.http"]&&e.hasOwnProperty(".google.api.http")&&(r=l.google.api.HttpRule.verify(e[".google.api.http"])))return".google.api.http."+r;if(null!=e[".google.api.methodSignature"]&&e.hasOwnProperty(".google.api.methodSignature")){if(!Array.isArray(e[".google.api.methodSignature"]))return".google.api.methodSignature: array expected";for(t=0;t<e[".google.api.methodSignature"].length;++t)if(!s.isString(e[".google.api.methodSignature"][t]))return".google.api.methodSignature: string[] expected"}return null},M.fromObject=function(e){if(e instanceof l.google.protobuf.MethodOptions)return e;var t=new l.google.protobuf.MethodOptions;switch(null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.idempotencyLevel){case"IDEMPOTENCY_UNKNOWN":case 0:t.idempotencyLevel=0;break;case"NO_SIDE_EFFECTS":case 1:t.idempotencyLevel=1;break;case"IDEMPOTENT":case 2:t.idempotencyLevel=2}if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}if(null!=e[".google.api.http"]){if("object"!=typeof e[".google.api.http"])throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected");t[".google.api.http"]=l.google.api.HttpRule.fromObject(e[".google.api.http"])}if(e[".google.api.methodSignature"]){if(!Array.isArray(e[".google.api.methodSignature"]))throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected");for(t[".google.api.methodSignature"]=[],r=0;r<e[".google.api.methodSignature"].length;++r)t[".google.api.methodSignature"][r]=String(e[".google.api.methodSignature"][r])}return t},M.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[],r[".google.api.methodSignature"]=[]),t.defaults&&(r.deprecated=!1,r.idempotencyLevel=t.enums===String?"IDEMPOTENCY_UNKNOWN":0,r[".google.api.http"]=null),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),null!=e.idempotencyLevel&&e.hasOwnProperty("idempotencyLevel")&&(r.idempotencyLevel=t.enums===String?l.google.protobuf.MethodOptions.IdempotencyLevel[e.idempotencyLevel]:e.idempotencyLevel),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}if(e[".google.api.methodSignature"]&&e[".google.api.methodSignature"].length)for(r[".google.api.methodSignature"]=[],n=0;n<e[".google.api.methodSignature"].length;++n)r[".google.api.methodSignature"][n]=e[".google.api.methodSignature"][n];return null!=e[".google.api.http"]&&e.hasOwnProperty(".google.api.http")&&(r[".google.api.http"]=l.google.api.HttpRule.toObject(e[".google.api.http"],t)),r},M.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},M.IdempotencyLevel=(t={},(r=Object.create(t))[t[0]="IDEMPOTENCY_UNKNOWN"]=0,r[t[1]="NO_SIDE_EFFECTS"]=1,r[t[2]="IDEMPOTENT"]=2,r),M),n.UninterpretedOption=(L.prototype.name=s.emptyArray,L.prototype.identifierValue="",L.prototype.positiveIntValue=s.Long?s.Long.fromBits(0,0,!0):0,L.prototype.negativeIntValue=s.Long?s.Long.fromBits(0,0,!1):0,L.prototype.doubleValue=0,L.prototype.stringValue=s.newBuffer([]),L.prototype.aggregateValue="",L.create=function(e){return new L(e)},L.encode=function(e,t){if(t=t||a.create(),null!=e.name&&e.name.length)for(var r=0;r<e.name.length;++r)l.google.protobuf.UninterpretedOption.NamePart.encode(e.name[r],t.uint32(18).fork()).ldelim();return null!=e.identifierValue&&Object.hasOwnProperty.call(e,"identifierValue")&&t.uint32(26).string(e.identifierValue),null!=e.positiveIntValue&&Object.hasOwnProperty.call(e,"positiveIntValue")&&t.uint32(32).uint64(e.positiveIntValue),null!=e.negativeIntValue&&Object.hasOwnProperty.call(e,"negativeIntValue")&&t.uint32(40).int64(e.negativeIntValue),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(49).double(e.doubleValue),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&t.uint32(58).bytes(e.stringValue),null!=e.aggregateValue&&Object.hasOwnProperty.call(e,"aggregateValue")&&t.uint32(66).string(e.aggregateValue),t},L.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},L.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.UninterpretedOption;e.pos<r;){var o=e.uint32();switch(o>>>3){case 2:n.name&&n.name.length||(n.name=[]),n.name.push(l.google.protobuf.UninterpretedOption.NamePart.decode(e,e.uint32()));break;case 3:n.identifierValue=e.string();break;case 4:n.positiveIntValue=e.uint64();break;case 5:n.negativeIntValue=e.int64();break;case 6:n.doubleValue=e.double();break;case 7:n.stringValue=e.bytes();break;case 8:n.aggregateValue=e.string();break;default:e.skipType(7&o)}}return n},L.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},L.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")){if(!Array.isArray(e.name))return"name: array expected";for(var t=0;t<e.name.length;++t){var r=l.google.protobuf.UninterpretedOption.NamePart.verify(e.name[t]);if(r)return"name."+r}}return null!=e.identifierValue&&e.hasOwnProperty("identifierValue")&&!s.isString(e.identifierValue)?"identifierValue: string expected":null!=e.positiveIntValue&&e.hasOwnProperty("positiveIntValue")&&!(s.isInteger(e.positiveIntValue)||e.positiveIntValue&&s.isInteger(e.positiveIntValue.low)&&s.isInteger(e.positiveIntValue.high))?"positiveIntValue: integer|Long expected":null!=e.negativeIntValue&&e.hasOwnProperty("negativeIntValue")&&!(s.isInteger(e.negativeIntValue)||e.negativeIntValue&&s.isInteger(e.negativeIntValue.low)&&s.isInteger(e.negativeIntValue.high))?"negativeIntValue: integer|Long expected":null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&"number"!=typeof e.doubleValue?"doubleValue: number expected":null!=e.stringValue&&e.hasOwnProperty("stringValue")&&!(e.stringValue&&"number"==typeof e.stringValue.length||s.isString(e.stringValue))?"stringValue: buffer expected":null!=e.aggregateValue&&e.hasOwnProperty("aggregateValue")&&!s.isString(e.aggregateValue)?"aggregateValue: string expected":null},L.fromObject=function(e){if(e instanceof l.google.protobuf.UninterpretedOption)return e;var t=new l.google.protobuf.UninterpretedOption;if(e.name){if(!Array.isArray(e.name))throw TypeError(".google.protobuf.UninterpretedOption.name: array expected");t.name=[];for(var r=0;r<e.name.length;++r){if("object"!=typeof e.name[r])throw TypeError(".google.protobuf.UninterpretedOption.name: object expected");t.name[r]=l.google.protobuf.UninterpretedOption.NamePart.fromObject(e.name[r])}}return null!=e.identifierValue&&(t.identifierValue=String(e.identifierValue)),null!=e.positiveIntValue&&(s.Long?(t.positiveIntValue=s.Long.fromValue(e.positiveIntValue)).unsigned=!0:"string"==typeof e.positiveIntValue?t.positiveIntValue=parseInt(e.positiveIntValue,10):"number"==typeof e.positiveIntValue?t.positiveIntValue=e.positiveIntValue:"object"==typeof e.positiveIntValue&&(t.positiveIntValue=new s.LongBits(e.positiveIntValue.low>>>0,e.positiveIntValue.high>>>0).toNumber(!0))),null!=e.negativeIntValue&&(s.Long?(t.negativeIntValue=s.Long.fromValue(e.negativeIntValue)).unsigned=!1:"string"==typeof e.negativeIntValue?t.negativeIntValue=parseInt(e.negativeIntValue,10):"number"==typeof e.negativeIntValue?t.negativeIntValue=e.negativeIntValue:"object"==typeof e.negativeIntValue&&(t.negativeIntValue=new s.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber())),null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.stringValue&&("string"==typeof e.stringValue?s.base64.decode(e.stringValue,t.stringValue=s.newBuffer(s.base64.length(e.stringValue)),0):e.stringValue.length&&(t.stringValue=e.stringValue)),null!=e.aggregateValue&&(t.aggregateValue=String(e.aggregateValue)),t},L.toObject=function(e,t){var r,n={};if(((t=t||{}).arrays||t.defaults)&&(n.name=[]),t.defaults&&(n.identifierValue="",s.Long?(r=new s.Long(0,0,!0),n.positiveIntValue=t.longs===String?r.toString():t.longs===Number?r.toNumber():r):n.positiveIntValue=t.longs===String?"0":0,s.Long?(r=new s.Long(0,0,!1),n.negativeIntValue=t.longs===String?r.toString():t.longs===Number?r.toNumber():r):n.negativeIntValue=t.longs===String?"0":0,n.doubleValue=0,t.bytes===String?n.stringValue="":(n.stringValue=[],t.bytes!==Array&&(n.stringValue=s.newBuffer(n.stringValue))),n.aggregateValue=""),e.name&&e.name.length){n.name=[];for(var o=0;o<e.name.length;++o)n.name[o]=l.google.protobuf.UninterpretedOption.NamePart.toObject(e.name[o],t)}return null!=e.identifierValue&&e.hasOwnProperty("identifierValue")&&(n.identifierValue=e.identifierValue),null!=e.positiveIntValue&&e.hasOwnProperty("positiveIntValue")&&("number"==typeof e.positiveIntValue?n.positiveIntValue=t.longs===String?String(e.positiveIntValue):e.positiveIntValue:n.positiveIntValue=t.longs===String?s.Long.prototype.toString.call(e.positiveIntValue):t.longs===Number?new s.LongBits(e.positiveIntValue.low>>>0,e.positiveIntValue.high>>>0).toNumber(!0):e.positiveIntValue),null!=e.negativeIntValue&&e.hasOwnProperty("negativeIntValue")&&("number"==typeof e.negativeIntValue?n.negativeIntValue=t.longs===String?String(e.negativeIntValue):e.negativeIntValue:n.negativeIntValue=t.longs===String?s.Long.prototype.toString.call(e.negativeIntValue):t.longs===Number?new s.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber():e.negativeIntValue),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(n.stringValue=t.bytes===String?s.base64.encode(e.stringValue,0,e.stringValue.length):t.bytes===Array?Array.prototype.slice.call(e.stringValue):e.stringValue),null!=e.aggregateValue&&e.hasOwnProperty("aggregateValue")&&(n.aggregateValue=e.aggregateValue),n},L.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},L.NamePart=(F.prototype.namePart="",F.prototype.isExtension=!1,F.create=function(e){return new F(e)},F.encode=function(e,t){return(t=t||a.create()).uint32(10).string(e.namePart),t.uint32(16).bool(e.isExtension),t},F.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},F.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.UninterpretedOption.NamePart;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.namePart=e.string();break;case 2:n.isExtension=e.bool();break;default:e.skipType(7&o)}}if(!n.hasOwnProperty("namePart"))throw s.ProtocolError("missing required 'namePart'",{instance:n});if(n.hasOwnProperty("isExtension"))return n;throw s.ProtocolError("missing required 'isExtension'",{instance:n})},F.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},F.verify=function(e){return"object"!=typeof e||null===e?"object expected":s.isString(e.namePart)?"boolean"!=typeof e.isExtension?"isExtension: boolean expected":null:"namePart: string expected"},F.fromObject=function(e){var t;return e instanceof l.google.protobuf.UninterpretedOption.NamePart?e:(t=new l.google.protobuf.UninterpretedOption.NamePart,null!=e.namePart&&(t.namePart=String(e.namePart)),null!=e.isExtension&&(t.isExtension=Boolean(e.isExtension)),t)},F.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.namePart="",r.isExtension=!1),null!=e.namePart&&e.hasOwnProperty("namePart")&&(r.namePart=e.namePart),null!=e.isExtension&&e.hasOwnProperty("isExtension")&&(r.isExtension=e.isExtension),r},F.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},F),L),n.SourceCodeInfo=(B.prototype.location=s.emptyArray,B.create=function(e){return new B(e)},B.encode=function(e,t){if(t=t||a.create(),null!=e.location&&e.location.length)for(var r=0;r<e.location.length;++r)l.google.protobuf.SourceCodeInfo.Location.encode(e.location[r],t.uint32(10).fork()).ldelim();return t},B.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},B.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.SourceCodeInfo;e.pos<r;){var o=e.uint32();o>>>3==1?(n.location&&n.location.length||(n.location=[]),n.location.push(l.google.protobuf.SourceCodeInfo.Location.decode(e,e.uint32()))):e.skipType(7&o)}return n},B.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},B.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.location&&e.hasOwnProperty("location")){if(!Array.isArray(e.location))return"location: array expected";for(var t=0;t<e.location.length;++t){var r=l.google.protobuf.SourceCodeInfo.Location.verify(e.location[t]);if(r)return"location."+r}}return null},B.fromObject=function(e){if(e instanceof l.google.protobuf.SourceCodeInfo)return e;var t=new l.google.protobuf.SourceCodeInfo;if(e.location){if(!Array.isArray(e.location))throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected");t.location=[];for(var r=0;r<e.location.length;++r){if("object"!=typeof e.location[r])throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected");t.location[r]=l.google.protobuf.SourceCodeInfo.Location.fromObject(e.location[r])}}return t},B.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.location=[]),e.location&&e.location.length){r.location=[];for(var n=0;n<e.location.length;++n)r.location[n]=l.google.protobuf.SourceCodeInfo.Location.toObject(e.location[n],t)}return r},B.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},B.Location=(V.prototype.path=s.emptyArray,V.prototype.span=s.emptyArray,V.prototype.leadingComments="",V.prototype.trailingComments="",V.prototype.leadingDetachedComments=s.emptyArray,V.create=function(e){return new V(e)},V.encode=function(e,t){if(t=t||a.create(),null!=e.path&&e.path.length){t.uint32(10).fork();for(var r=0;r<e.path.length;++r)t.int32(e.path[r]);t.ldelim()}if(null!=e.span&&e.span.length){for(t.uint32(18).fork(),r=0;r<e.span.length;++r)t.int32(e.span[r]);t.ldelim()}if(null!=e.leadingComments&&Object.hasOwnProperty.call(e,"leadingComments")&&t.uint32(26).string(e.leadingComments),null!=e.trailingComments&&Object.hasOwnProperty.call(e,"trailingComments")&&t.uint32(34).string(e.trailingComments),null!=e.leadingDetachedComments&&e.leadingDetachedComments.length)for(r=0;r<e.leadingDetachedComments.length;++r)t.uint32(50).string(e.leadingDetachedComments[r]);return t},V.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},V.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.SourceCodeInfo.Location;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:if(n.path&&n.path.length||(n.path=[]),2==(7&o))for(var a=e.uint32()+e.pos;e.pos<a;)n.path.push(e.int32());else n.path.push(e.int32());break;case 2:if(n.span&&n.span.length||(n.span=[]),2==(7&o))for(a=e.uint32()+e.pos;e.pos<a;)n.span.push(e.int32());else n.span.push(e.int32());break;case 3:n.leadingComments=e.string();break;case 4:n.trailingComments=e.string();break;case 6:n.leadingDetachedComments&&n.leadingDetachedComments.length||(n.leadingDetachedComments=[]),n.leadingDetachedComments.push(e.string());break;default:e.skipType(7&o)}}return n},V.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},V.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.path&&e.hasOwnProperty("path")){if(!Array.isArray(e.path))return"path: array expected";for(var t=0;t<e.path.length;++t)if(!s.isInteger(e.path[t]))return"path: integer[] expected"}if(null!=e.span&&e.hasOwnProperty("span")){if(!Array.isArray(e.span))return"span: array expected";for(t=0;t<e.span.length;++t)if(!s.isInteger(e.span[t]))return"span: integer[] expected"}if(null!=e.leadingComments&&e.hasOwnProperty("leadingComments")&&!s.isString(e.leadingComments))return"leadingComments: string expected";if(null!=e.trailingComments&&e.hasOwnProperty("trailingComments")&&!s.isString(e.trailingComments))return"trailingComments: string expected";if(null!=e.leadingDetachedComments&&e.hasOwnProperty("leadingDetachedComments")){if(!Array.isArray(e.leadingDetachedComments))return"leadingDetachedComments: array expected";for(t=0;t<e.leadingDetachedComments.length;++t)if(!s.isString(e.leadingDetachedComments[t]))return"leadingDetachedComments: string[] expected"}return null},V.fromObject=function(e){if(e instanceof l.google.protobuf.SourceCodeInfo.Location)return e;var t=new l.google.protobuf.SourceCodeInfo.Location;if(e.path){if(!Array.isArray(e.path))throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected");t.path=[];for(var r=0;r<e.path.length;++r)t.path[r]=0|e.path[r]}if(e.span){if(!Array.isArray(e.span))throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected");for(t.span=[],r=0;r<e.span.length;++r)t.span[r]=0|e.span[r]}if(null!=e.leadingComments&&(t.leadingComments=String(e.leadingComments)),null!=e.trailingComments&&(t.trailingComments=String(e.trailingComments)),e.leadingDetachedComments){if(!Array.isArray(e.leadingDetachedComments))throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected");for(t.leadingDetachedComments=[],r=0;r<e.leadingDetachedComments.length;++r)t.leadingDetachedComments[r]=String(e.leadingDetachedComments[r])}return t},V.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.path=[],r.span=[],r.leadingDetachedComments=[]),t.defaults&&(r.leadingComments="",r.trailingComments=""),e.path&&e.path.length){r.path=[];for(var n=0;n<e.path.length;++n)r.path[n]=e.path[n]}if(e.span&&e.span.length)for(r.span=[],n=0;n<e.span.length;++n)r.span[n]=e.span[n];if(null!=e.leadingComments&&e.hasOwnProperty("leadingComments")&&(r.leadingComments=e.leadingComments),null!=e.trailingComments&&e.hasOwnProperty("trailingComments")&&(r.trailingComments=e.trailingComments),e.leadingDetachedComments&&e.leadingDetachedComments.length)for(r.leadingDetachedComments=[],n=0;n<e.leadingDetachedComments.length;++n)r.leadingDetachedComments[n]=e.leadingDetachedComments[n];return r},V.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},V),B),n.GeneratedCodeInfo=(U.prototype.annotation=s.emptyArray,U.create=function(e){return new U(e)},U.encode=function(e,t){if(t=t||a.create(),null!=e.annotation&&e.annotation.length)for(var r=0;r<e.annotation.length;++r)l.google.protobuf.GeneratedCodeInfo.Annotation.encode(e.annotation[r],t.uint32(10).fork()).ldelim();return t},U.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},U.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.GeneratedCodeInfo;e.pos<r;){var o=e.uint32();o>>>3==1?(n.annotation&&n.annotation.length||(n.annotation=[]),n.annotation.push(l.google.protobuf.GeneratedCodeInfo.Annotation.decode(e,e.uint32()))):e.skipType(7&o)}return n},U.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},U.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.annotation&&e.hasOwnProperty("annotation")){if(!Array.isArray(e.annotation))return"annotation: array expected";for(var t=0;t<e.annotation.length;++t){var r=l.google.protobuf.GeneratedCodeInfo.Annotation.verify(e.annotation[t]);if(r)return"annotation."+r}}return null},U.fromObject=function(e){if(e instanceof l.google.protobuf.GeneratedCodeInfo)return e;var t=new l.google.protobuf.GeneratedCodeInfo;if(e.annotation){if(!Array.isArray(e.annotation))throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected");t.annotation=[];for(var r=0;r<e.annotation.length;++r){if("object"!=typeof e.annotation[r])throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected");t.annotation[r]=l.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(e.annotation[r])}}return t},U.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.annotation=[]),e.annotation&&e.annotation.length){r.annotation=[];for(var n=0;n<e.annotation.length;++n)r.annotation[n]=l.google.protobuf.GeneratedCodeInfo.Annotation.toObject(e.annotation[n],t)}return r},U.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},U.Annotation=($.prototype.path=s.emptyArray,$.prototype.sourceFile="",$.prototype.begin=0,$.prototype.end=0,$.create=function(e){return new $(e)},$.encode=function(e,t){if(t=t||a.create(),null!=e.path&&e.path.length){t.uint32(10).fork();for(var r=0;r<e.path.length;++r)t.int32(e.path[r]);t.ldelim()}return null!=e.sourceFile&&Object.hasOwnProperty.call(e,"sourceFile")&&t.uint32(18).string(e.sourceFile),null!=e.begin&&Object.hasOwnProperty.call(e,"begin")&&t.uint32(24).int32(e.begin),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(32).int32(e.end),t},$.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},$.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.GeneratedCodeInfo.Annotation;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:if(n.path&&n.path.length||(n.path=[]),2==(7&o))for(var a=e.uint32()+e.pos;e.pos<a;)n.path.push(e.int32());else n.path.push(e.int32());break;case 2:n.sourceFile=e.string();break;case 3:n.begin=e.int32();break;case 4:n.end=e.int32();break;default:e.skipType(7&o)}}return n},$.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},$.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.path&&e.hasOwnProperty("path")){if(!Array.isArray(e.path))return"path: array expected";for(var t=0;t<e.path.length;++t)if(!s.isInteger(e.path[t]))return"path: integer[] expected"}return null!=e.sourceFile&&e.hasOwnProperty("sourceFile")&&!s.isString(e.sourceFile)?"sourceFile: string expected":null!=e.begin&&e.hasOwnProperty("begin")&&!s.isInteger(e.begin)?"begin: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!s.isInteger(e.end)?"end: integer expected":null},$.fromObject=function(e){if(e instanceof l.google.protobuf.GeneratedCodeInfo.Annotation)return e;var t=new l.google.protobuf.GeneratedCodeInfo.Annotation;if(e.path){if(!Array.isArray(e.path))throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected");t.path=[];for(var r=0;r<e.path.length;++r)t.path[r]=0|e.path[r]}return null!=e.sourceFile&&(t.sourceFile=String(e.sourceFile)),null!=e.begin&&(t.begin=0|e.begin),null!=e.end&&(t.end=0|e.end),t},$.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.path=[]),t.defaults&&(r.sourceFile="",r.begin=0,r.end=0),e.path&&e.path.length){r.path=[];for(var n=0;n<e.path.length;++n)r.path[n]=e.path[n]}return null!=e.sourceFile&&e.hasOwnProperty("sourceFile")&&(r.sourceFile=e.sourceFile),null!=e.begin&&e.hasOwnProperty("begin")&&(r.begin=e.begin),null!=e.end&&e.hasOwnProperty("end")&&(r.end=e.end),r},$.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},$),U),n.Any=(G.prototype.type_url="",G.prototype.value=s.newBuffer([]),G.create=function(e){return new G(e)},G.encode=function(e,t){return t=t||a.create(),null!=e.type_url&&Object.hasOwnProperty.call(e,"type_url")&&t.uint32(10).string(e.type_url),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).bytes(e.value),t},G.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},G.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.Any;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.type_url=e.string();break;case 2:n.value=e.bytes();break;default:e.skipType(7&o)}}return n},G.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},G.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.type_url&&e.hasOwnProperty("type_url")&&!s.isString(e.type_url)?"type_url: string expected":null!=e.value&&e.hasOwnProperty("value")&&!(e.value&&"number"==typeof e.value.length||s.isString(e.value))?"value: buffer expected":null},G.fromObject=function(e){var t;return e instanceof l.google.protobuf.Any?e:(t=new l.google.protobuf.Any,null!=e.type_url&&(t.type_url=String(e.type_url)),null!=e.value&&("string"==typeof e.value?s.base64.decode(e.value,t.value=s.newBuffer(s.base64.length(e.value)),0):e.value.length&&(t.value=e.value)),t)},G.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.type_url="",t.bytes===String?r.value="":(r.value=[],t.bytes!==Array&&(r.value=s.newBuffer(r.value)))),null!=e.type_url&&e.hasOwnProperty("type_url")&&(r.type_url=e.type_url),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.bytes===String?s.base64.encode(e.value,0,e.value.length):t.bytes===Array?Array.prototype.slice.call(e.value):e.value),r},G.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},G),n),o),l}(requireMinimal()))),locations.exports;var e}var operations={exports:{}},hasRequiredOperations;function requireOperations(){return hasRequiredOperations||(hasRequiredOperations=1,e=operations,"function"==typeof commonjsRequire&&e&&e.exports&&(e.exports=function(e){var t,r,n,o,i=e.Reader,a=e.Writer,s=e.util,l=e.roots.operations_protos||(e.roots.operations_protos={});function p(t,r,n){e.rpc.Service.call(this,t,r,n)}function d(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function u(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function c(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function f(e){if(this.operations=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function h(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function m(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function g(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function y(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function v(e){if(this.rules=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function b(e){if(this.additionalBindings=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function O(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function w(e){if(this.file=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function S(e){if(this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function _(e){if(this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.reservedRange=[],this.reservedName=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function P(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function E(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function T(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function C(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function R(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function D(e){if(this.value=[],this.reservedRange=[],this.reservedName=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function k(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function x(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function j(e){if(this.method=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function A(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function N(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function I(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function q(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function M(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function L(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function F(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function B(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function V(e){if(this.uninterpretedOption=[],this[".google.api.methodSignature"]=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function U(e){if(this.name=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function $(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function G(e){if(this.location=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function H(e){if(this.path=[],this.span=[],this.leadingDetachedComments=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function z(e){if(this.annotation=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function W(e){if(this.path=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function J(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function Y(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function K(e){if(e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}function X(e){if(this.details=[],e)for(var t=Object.keys(e),r=0;r<t.length;++r)null!=e[t[r]]&&(this[t[r]]=e[t[r]])}return l.google=((o={}).longrunning=((r={}).Operations=(((p.prototype=Object.create(e.rpc.Service.prototype)).constructor=p).create=function(e,t,r){return new this(e,t,r)},Object.defineProperty(p.prototype.listOperations=function e(t,r){return this.rpcCall(e,l.google.longrunning.ListOperationsRequest,l.google.longrunning.ListOperationsResponse,t,r)},"name",{value:"ListOperations"}),Object.defineProperty(p.prototype.getOperation=function e(t,r){return this.rpcCall(e,l.google.longrunning.GetOperationRequest,l.google.longrunning.Operation,t,r)},"name",{value:"GetOperation"}),Object.defineProperty(p.prototype.deleteOperation=function e(t,r){return this.rpcCall(e,l.google.longrunning.DeleteOperationRequest,l.google.protobuf.Empty,t,r)},"name",{value:"DeleteOperation"}),Object.defineProperty(p.prototype.cancelOperation=function e(t,r){return this.rpcCall(e,l.google.longrunning.CancelOperationRequest,l.google.protobuf.Empty,t,r)},"name",{value:"CancelOperation"}),Object.defineProperty(p.prototype.waitOperation=function e(t,r){return this.rpcCall(e,l.google.longrunning.WaitOperationRequest,l.google.longrunning.Operation,t,r)},"name",{value:"WaitOperation"}),p),r.Operation=(d.prototype.name="",d.prototype.metadata=null,d.prototype.done=!1,d.prototype.error=null,d.prototype.response=null,Object.defineProperty(d.prototype,"result",{get:s.oneOfGetter(n=["error","response"]),set:s.oneOfSetter(n)}),d.create=function(e){return new d(e)},d.encode=function(e,t){return t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.metadata&&Object.hasOwnProperty.call(e,"metadata")&&l.google.protobuf.Any.encode(e.metadata,t.uint32(18).fork()).ldelim(),null!=e.done&&Object.hasOwnProperty.call(e,"done")&&t.uint32(24).bool(e.done),null!=e.error&&Object.hasOwnProperty.call(e,"error")&&l.google.rpc.Status.encode(e.error,t.uint32(34).fork()).ldelim(),null!=e.response&&Object.hasOwnProperty.call(e,"response")&&l.google.protobuf.Any.encode(e.response,t.uint32(42).fork()).ldelim(),t},d.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},d.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.longrunning.Operation;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.metadata=l.google.protobuf.Any.decode(e,e.uint32());break;case 3:n.done=e.bool();break;case 4:n.error=l.google.rpc.Status.decode(e,e.uint32());break;case 5:n.response=l.google.protobuf.Any.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},d.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},d.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var t,r={};if(null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name))return"name: string expected";if(null!=e.metadata&&e.hasOwnProperty("metadata")&&(t=l.google.protobuf.Any.verify(e.metadata)))return"metadata."+t;if(null!=e.done&&e.hasOwnProperty("done")&&"boolean"!=typeof e.done)return"done: boolean expected";if(null!=e.error&&e.hasOwnProperty("error")&&(r.result=1,t=l.google.rpc.Status.verify(e.error)))return"error."+t;if(null!=e.response&&e.hasOwnProperty("response")){if(1===r.result)return"result: multiple values";if(r.result=1,t=l.google.protobuf.Any.verify(e.response))return"response."+t}return null},d.fromObject=function(e){if(e instanceof l.google.longrunning.Operation)return e;var t=new l.google.longrunning.Operation;if(null!=e.name&&(t.name=String(e.name)),null!=e.metadata){if("object"!=typeof e.metadata)throw TypeError(".google.longrunning.Operation.metadata: object expected");t.metadata=l.google.protobuf.Any.fromObject(e.metadata)}if(null!=e.done&&(t.done=Boolean(e.done)),null!=e.error){if("object"!=typeof e.error)throw TypeError(".google.longrunning.Operation.error: object expected");t.error=l.google.rpc.Status.fromObject(e.error)}if(null!=e.response){if("object"!=typeof e.response)throw TypeError(".google.longrunning.Operation.response: object expected");t.response=l.google.protobuf.Any.fromObject(e.response)}return t},d.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name="",r.metadata=null,r.done=!1),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.metadata&&e.hasOwnProperty("metadata")&&(r.metadata=l.google.protobuf.Any.toObject(e.metadata,t)),null!=e.done&&e.hasOwnProperty("done")&&(r.done=e.done),null!=e.error&&e.hasOwnProperty("error")&&(r.error=l.google.rpc.Status.toObject(e.error,t),t.oneofs)&&(r.result="error"),null!=e.response&&e.hasOwnProperty("response")&&(r.response=l.google.protobuf.Any.toObject(e.response,t),t.oneofs)&&(r.result="response"),r},d.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},d),r.GetOperationRequest=(u.prototype.name="",u.create=function(e){return new u(e)},u.encode=function(e,t){return t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),t},u.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},u.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.longrunning.GetOperationRequest;e.pos<r;){var o=e.uint32();o>>>3==1?n.name=e.string():e.skipType(7&o)}return n},u.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},u.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name)?"name: string expected":null},u.fromObject=function(e){var t;return e instanceof l.google.longrunning.GetOperationRequest?e:(t=new l.google.longrunning.GetOperationRequest,null!=e.name&&(t.name=String(e.name)),t)},u.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name=""),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),r},u.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},u),r.ListOperationsRequest=(c.prototype.name="",c.prototype.filter="",c.prototype.pageSize=0,c.prototype.pageToken="",c.create=function(e){return new c(e)},c.encode=function(e,t){return t=t||a.create(),null!=e.filter&&Object.hasOwnProperty.call(e,"filter")&&t.uint32(10).string(e.filter),null!=e.pageSize&&Object.hasOwnProperty.call(e,"pageSize")&&t.uint32(16).int32(e.pageSize),null!=e.pageToken&&Object.hasOwnProperty.call(e,"pageToken")&&t.uint32(26).string(e.pageToken),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(34).string(e.name),t},c.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},c.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.longrunning.ListOperationsRequest;e.pos<r;){var o=e.uint32();switch(o>>>3){case 4:n.name=e.string();break;case 1:n.filter=e.string();break;case 2:n.pageSize=e.int32();break;case 3:n.pageToken=e.string();break;default:e.skipType(7&o)}}return n},c.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},c.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name)?"name: string expected":null!=e.filter&&e.hasOwnProperty("filter")&&!s.isString(e.filter)?"filter: string expected":null!=e.pageSize&&e.hasOwnProperty("pageSize")&&!s.isInteger(e.pageSize)?"pageSize: integer expected":null!=e.pageToken&&e.hasOwnProperty("pageToken")&&!s.isString(e.pageToken)?"pageToken: string expected":null},c.fromObject=function(e){var t;return e instanceof l.google.longrunning.ListOperationsRequest?e:(t=new l.google.longrunning.ListOperationsRequest,null!=e.name&&(t.name=String(e.name)),null!=e.filter&&(t.filter=String(e.filter)),null!=e.pageSize&&(t.pageSize=0|e.pageSize),null!=e.pageToken&&(t.pageToken=String(e.pageToken)),t)},c.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.filter="",r.pageSize=0,r.pageToken="",r.name=""),null!=e.filter&&e.hasOwnProperty("filter")&&(r.filter=e.filter),null!=e.pageSize&&e.hasOwnProperty("pageSize")&&(r.pageSize=e.pageSize),null!=e.pageToken&&e.hasOwnProperty("pageToken")&&(r.pageToken=e.pageToken),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),r},c.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},c),r.ListOperationsResponse=(f.prototype.operations=s.emptyArray,f.prototype.nextPageToken="",f.create=function(e){return new f(e)},f.encode=function(e,t){if(t=t||a.create(),null!=e.operations&&e.operations.length)for(var r=0;r<e.operations.length;++r)l.google.longrunning.Operation.encode(e.operations[r],t.uint32(10).fork()).ldelim();return null!=e.nextPageToken&&Object.hasOwnProperty.call(e,"nextPageToken")&&t.uint32(18).string(e.nextPageToken),t},f.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},f.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.longrunning.ListOperationsResponse;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.operations&&n.operations.length||(n.operations=[]),n.operations.push(l.google.longrunning.Operation.decode(e,e.uint32()));break;case 2:n.nextPageToken=e.string();break;default:e.skipType(7&o)}}return n},f.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},f.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.operations&&e.hasOwnProperty("operations")){if(!Array.isArray(e.operations))return"operations: array expected";for(var t=0;t<e.operations.length;++t){var r=l.google.longrunning.Operation.verify(e.operations[t]);if(r)return"operations."+r}}return null!=e.nextPageToken&&e.hasOwnProperty("nextPageToken")&&!s.isString(e.nextPageToken)?"nextPageToken: string expected":null},f.fromObject=function(e){if(e instanceof l.google.longrunning.ListOperationsResponse)return e;var t=new l.google.longrunning.ListOperationsResponse;if(e.operations){if(!Array.isArray(e.operations))throw TypeError(".google.longrunning.ListOperationsResponse.operations: array expected");t.operations=[];for(var r=0;r<e.operations.length;++r){if("object"!=typeof e.operations[r])throw TypeError(".google.longrunning.ListOperationsResponse.operations: object expected");t.operations[r]=l.google.longrunning.Operation.fromObject(e.operations[r])}}return null!=e.nextPageToken&&(t.nextPageToken=String(e.nextPageToken)),t},f.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.operations=[]),t.defaults&&(r.nextPageToken=""),e.operations&&e.operations.length){r.operations=[];for(var n=0;n<e.operations.length;++n)r.operations[n]=l.google.longrunning.Operation.toObject(e.operations[n],t)}return null!=e.nextPageToken&&e.hasOwnProperty("nextPageToken")&&(r.nextPageToken=e.nextPageToken),r},f.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},f),r.CancelOperationRequest=(h.prototype.name="",h.create=function(e){return new h(e)},h.encode=function(e,t){return t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),t},h.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},h.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.longrunning.CancelOperationRequest;e.pos<r;){var o=e.uint32();o>>>3==1?n.name=e.string():e.skipType(7&o)}return n},h.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},h.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name)?"name: string expected":null},h.fromObject=function(e){var t;return e instanceof l.google.longrunning.CancelOperationRequest?e:(t=new l.google.longrunning.CancelOperationRequest,null!=e.name&&(t.name=String(e.name)),t)},h.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name=""),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),r},h.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},h),r.DeleteOperationRequest=(m.prototype.name="",m.create=function(e){return new m(e)},m.encode=function(e,t){return t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),t},m.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},m.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.longrunning.DeleteOperationRequest;e.pos<r;){var o=e.uint32();o>>>3==1?n.name=e.string():e.skipType(7&o)}return n},m.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},m.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name)?"name: string expected":null},m.fromObject=function(e){var t;return e instanceof l.google.longrunning.DeleteOperationRequest?e:(t=new l.google.longrunning.DeleteOperationRequest,null!=e.name&&(t.name=String(e.name)),t)},m.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name=""),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),r},m.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},m),r.WaitOperationRequest=(g.prototype.name="",g.prototype.timeout=null,g.create=function(e){return new g(e)},g.encode=function(e,t){return t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.timeout&&Object.hasOwnProperty.call(e,"timeout")&&l.google.protobuf.Duration.encode(e.timeout,t.uint32(18).fork()).ldelim(),t},g.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},g.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.longrunning.WaitOperationRequest;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.timeout=l.google.protobuf.Duration.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},g.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},g.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name)?"name: string expected":null!=e.timeout&&e.hasOwnProperty("timeout")&&(e=l.google.protobuf.Duration.verify(e.timeout))?"timeout."+e:null},g.fromObject=function(e){if(e instanceof l.google.longrunning.WaitOperationRequest)return e;var t=new l.google.longrunning.WaitOperationRequest;if(null!=e.name&&(t.name=String(e.name)),null!=e.timeout){if("object"!=typeof e.timeout)throw TypeError(".google.longrunning.WaitOperationRequest.timeout: object expected");t.timeout=l.google.protobuf.Duration.fromObject(e.timeout)}return t},g.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name="",r.timeout=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.timeout&&e.hasOwnProperty("timeout")&&(r.timeout=l.google.protobuf.Duration.toObject(e.timeout,t)),r},g.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},g),r.OperationInfo=(y.prototype.responseType="",y.prototype.metadataType="",y.create=function(e){return new y(e)},y.encode=function(e,t){return t=t||a.create(),null!=e.responseType&&Object.hasOwnProperty.call(e,"responseType")&&t.uint32(10).string(e.responseType),null!=e.metadataType&&Object.hasOwnProperty.call(e,"metadataType")&&t.uint32(18).string(e.metadataType),t},y.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},y.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.longrunning.OperationInfo;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.responseType=e.string();break;case 2:n.metadataType=e.string();break;default:e.skipType(7&o)}}return n},y.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},y.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.responseType&&e.hasOwnProperty("responseType")&&!s.isString(e.responseType)?"responseType: string expected":null!=e.metadataType&&e.hasOwnProperty("metadataType")&&!s.isString(e.metadataType)?"metadataType: string expected":null},y.fromObject=function(e){var t;return e instanceof l.google.longrunning.OperationInfo?e:(t=new l.google.longrunning.OperationInfo,null!=e.responseType&&(t.responseType=String(e.responseType)),null!=e.metadataType&&(t.metadataType=String(e.metadataType)),t)},y.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.responseType="",r.metadataType=""),null!=e.responseType&&e.hasOwnProperty("responseType")&&(r.responseType=e.responseType),null!=e.metadataType&&e.hasOwnProperty("metadataType")&&(r.metadataType=e.metadataType),r},y.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},y),r),o.api=((n={}).Http=(v.prototype.rules=s.emptyArray,v.prototype.fullyDecodeReservedExpansion=!1,v.create=function(e){return new v(e)},v.encode=function(e,t){if(t=t||a.create(),null!=e.rules&&e.rules.length)for(var r=0;r<e.rules.length;++r)l.google.api.HttpRule.encode(e.rules[r],t.uint32(10).fork()).ldelim();return null!=e.fullyDecodeReservedExpansion&&Object.hasOwnProperty.call(e,"fullyDecodeReservedExpansion")&&t.uint32(16).bool(e.fullyDecodeReservedExpansion),t},v.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},v.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.api.Http;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.rules&&n.rules.length||(n.rules=[]),n.rules.push(l.google.api.HttpRule.decode(e,e.uint32()));break;case 2:n.fullyDecodeReservedExpansion=e.bool();break;default:e.skipType(7&o)}}return n},v.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},v.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.rules&&e.hasOwnProperty("rules")){if(!Array.isArray(e.rules))return"rules: array expected";for(var t=0;t<e.rules.length;++t){var r=l.google.api.HttpRule.verify(e.rules[t]);if(r)return"rules."+r}}return null!=e.fullyDecodeReservedExpansion&&e.hasOwnProperty("fullyDecodeReservedExpansion")&&"boolean"!=typeof e.fullyDecodeReservedExpansion?"fullyDecodeReservedExpansion: boolean expected":null},v.fromObject=function(e){if(e instanceof l.google.api.Http)return e;var t=new l.google.api.Http;if(e.rules){if(!Array.isArray(e.rules))throw TypeError(".google.api.Http.rules: array expected");t.rules=[];for(var r=0;r<e.rules.length;++r){if("object"!=typeof e.rules[r])throw TypeError(".google.api.Http.rules: object expected");t.rules[r]=l.google.api.HttpRule.fromObject(e.rules[r])}}return null!=e.fullyDecodeReservedExpansion&&(t.fullyDecodeReservedExpansion=Boolean(e.fullyDecodeReservedExpansion)),t},v.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.rules=[]),t.defaults&&(r.fullyDecodeReservedExpansion=!1),e.rules&&e.rules.length){r.rules=[];for(var n=0;n<e.rules.length;++n)r.rules[n]=l.google.api.HttpRule.toObject(e.rules[n],t)}return null!=e.fullyDecodeReservedExpansion&&e.hasOwnProperty("fullyDecodeReservedExpansion")&&(r.fullyDecodeReservedExpansion=e.fullyDecodeReservedExpansion),r},v.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},v),n.HttpRule=(b.prototype.selector="",b.prototype.get="",b.prototype.put="",b.prototype.post="",b.prototype.delete="",b.prototype.patch="",b.prototype.custom=null,b.prototype.body="",b.prototype.responseBody="",b.prototype.additionalBindings=s.emptyArray,Object.defineProperty(b.prototype,"pattern",{get:s.oneOfGetter(r=["get","put","post","delete","patch","custom"]),set:s.oneOfSetter(r)}),b.create=function(e){return new b(e)},b.encode=function(e,t){if(t=t||a.create(),null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&t.uint32(10).string(e.selector),null!=e.get&&Object.hasOwnProperty.call(e,"get")&&t.uint32(18).string(e.get),null!=e.put&&Object.hasOwnProperty.call(e,"put")&&t.uint32(26).string(e.put),null!=e.post&&Object.hasOwnProperty.call(e,"post")&&t.uint32(34).string(e.post),null!=e.delete&&Object.hasOwnProperty.call(e,"delete")&&t.uint32(42).string(e.delete),null!=e.patch&&Object.hasOwnProperty.call(e,"patch")&&t.uint32(50).string(e.patch),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(58).string(e.body),null!=e.custom&&Object.hasOwnProperty.call(e,"custom")&&l.google.api.CustomHttpPattern.encode(e.custom,t.uint32(66).fork()).ldelim(),null!=e.additionalBindings&&e.additionalBindings.length)for(var r=0;r<e.additionalBindings.length;++r)l.google.api.HttpRule.encode(e.additionalBindings[r],t.uint32(90).fork()).ldelim();return null!=e.responseBody&&Object.hasOwnProperty.call(e,"responseBody")&&t.uint32(98).string(e.responseBody),t},b.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},b.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.api.HttpRule;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.selector=e.string();break;case 2:n.get=e.string();break;case 3:n.put=e.string();break;case 4:n.post=e.string();break;case 5:n.delete=e.string();break;case 6:n.patch=e.string();break;case 8:n.custom=l.google.api.CustomHttpPattern.decode(e,e.uint32());break;case 7:n.body=e.string();break;case 12:n.responseBody=e.string();break;case 11:n.additionalBindings&&n.additionalBindings.length||(n.additionalBindings=[]),n.additionalBindings.push(l.google.api.HttpRule.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return n},b.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},b.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var t={};if(null!=e.selector&&e.hasOwnProperty("selector")&&!s.isString(e.selector))return"selector: string expected";if(null!=e.get&&e.hasOwnProperty("get")&&(t.pattern=1,!s.isString(e.get)))return"get: string expected";if(null!=e.put&&e.hasOwnProperty("put")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!s.isString(e.put))return"put: string expected"}if(null!=e.post&&e.hasOwnProperty("post")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!s.isString(e.post))return"post: string expected"}if(null!=e.delete&&e.hasOwnProperty("delete")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!s.isString(e.delete))return"delete: string expected"}if(null!=e.patch&&e.hasOwnProperty("patch")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!s.isString(e.patch))return"patch: string expected"}if(null!=e.custom&&e.hasOwnProperty("custom")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,r=l.google.api.CustomHttpPattern.verify(e.custom))return"custom."+r}if(null!=e.body&&e.hasOwnProperty("body")&&!s.isString(e.body))return"body: string expected";if(null!=e.responseBody&&e.hasOwnProperty("responseBody")&&!s.isString(e.responseBody))return"responseBody: string expected";if(null!=e.additionalBindings&&e.hasOwnProperty("additionalBindings")){if(!Array.isArray(e.additionalBindings))return"additionalBindings: array expected";for(var r,n=0;n<e.additionalBindings.length;++n)if(r=l.google.api.HttpRule.verify(e.additionalBindings[n]))return"additionalBindings."+r}return null},b.fromObject=function(e){if(e instanceof l.google.api.HttpRule)return e;var t=new l.google.api.HttpRule;if(null!=e.selector&&(t.selector=String(e.selector)),null!=e.get&&(t.get=String(e.get)),null!=e.put&&(t.put=String(e.put)),null!=e.post&&(t.post=String(e.post)),null!=e.delete&&(t.delete=String(e.delete)),null!=e.patch&&(t.patch=String(e.patch)),null!=e.custom){if("object"!=typeof e.custom)throw TypeError(".google.api.HttpRule.custom: object expected");t.custom=l.google.api.CustomHttpPattern.fromObject(e.custom)}if(null!=e.body&&(t.body=String(e.body)),null!=e.responseBody&&(t.responseBody=String(e.responseBody)),e.additionalBindings){if(!Array.isArray(e.additionalBindings))throw TypeError(".google.api.HttpRule.additionalBindings: array expected");t.additionalBindings=[];for(var r=0;r<e.additionalBindings.length;++r){if("object"!=typeof e.additionalBindings[r])throw TypeError(".google.api.HttpRule.additionalBindings: object expected");t.additionalBindings[r]=l.google.api.HttpRule.fromObject(e.additionalBindings[r])}}return t},b.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.additionalBindings=[]),t.defaults&&(r.selector="",r.body="",r.responseBody=""),null!=e.selector&&e.hasOwnProperty("selector")&&(r.selector=e.selector),null!=e.get&&e.hasOwnProperty("get")&&(r.get=e.get,t.oneofs)&&(r.pattern="get"),null!=e.put&&e.hasOwnProperty("put")&&(r.put=e.put,t.oneofs)&&(r.pattern="put"),null!=e.post&&e.hasOwnProperty("post")&&(r.post=e.post,t.oneofs)&&(r.pattern="post"),null!=e.delete&&e.hasOwnProperty("delete")&&(r.delete=e.delete,t.oneofs)&&(r.pattern="delete"),null!=e.patch&&e.hasOwnProperty("patch")&&(r.patch=e.patch,t.oneofs)&&(r.pattern="patch"),null!=e.body&&e.hasOwnProperty("body")&&(r.body=e.body),null!=e.custom&&e.hasOwnProperty("custom")&&(r.custom=l.google.api.CustomHttpPattern.toObject(e.custom,t),t.oneofs)&&(r.pattern="custom"),e.additionalBindings&&e.additionalBindings.length){r.additionalBindings=[];for(var n=0;n<e.additionalBindings.length;++n)r.additionalBindings[n]=l.google.api.HttpRule.toObject(e.additionalBindings[n],t)}return null!=e.responseBody&&e.hasOwnProperty("responseBody")&&(r.responseBody=e.responseBody),r},b.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},b),n.CustomHttpPattern=(O.prototype.kind="",O.prototype.path="",O.create=function(e){return new O(e)},O.encode=function(e,t){return t=t||a.create(),null!=e.kind&&Object.hasOwnProperty.call(e,"kind")&&t.uint32(10).string(e.kind),null!=e.path&&Object.hasOwnProperty.call(e,"path")&&t.uint32(18).string(e.path),t},O.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},O.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.api.CustomHttpPattern;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.kind=e.string();break;case 2:n.path=e.string();break;default:e.skipType(7&o)}}return n},O.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},O.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.kind&&e.hasOwnProperty("kind")&&!s.isString(e.kind)?"kind: string expected":null!=e.path&&e.hasOwnProperty("path")&&!s.isString(e.path)?"path: string expected":null},O.fromObject=function(e){var t;return e instanceof l.google.api.CustomHttpPattern?e:(t=new l.google.api.CustomHttpPattern,null!=e.kind&&(t.kind=String(e.kind)),null!=e.path&&(t.path=String(e.path)),t)},O.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.kind="",r.path=""),null!=e.kind&&e.hasOwnProperty("kind")&&(r.kind=e.kind),null!=e.path&&e.hasOwnProperty("path")&&(r.path=e.path),r},O.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},O),n),o.protobuf=((r={}).FileDescriptorSet=(w.prototype.file=s.emptyArray,w.create=function(e){return new w(e)},w.encode=function(e,t){if(t=t||a.create(),null!=e.file&&e.file.length)for(var r=0;r<e.file.length;++r)l.google.protobuf.FileDescriptorProto.encode(e.file[r],t.uint32(10).fork()).ldelim();return t},w.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},w.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.FileDescriptorSet;e.pos<r;){var o=e.uint32();o>>>3==1?(n.file&&n.file.length||(n.file=[]),n.file.push(l.google.protobuf.FileDescriptorProto.decode(e,e.uint32()))):e.skipType(7&o)}return n},w.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},w.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.file&&e.hasOwnProperty("file")){if(!Array.isArray(e.file))return"file: array expected";for(var t=0;t<e.file.length;++t){var r=l.google.protobuf.FileDescriptorProto.verify(e.file[t]);if(r)return"file."+r}}return null},w.fromObject=function(e){if(e instanceof l.google.protobuf.FileDescriptorSet)return e;var t=new l.google.protobuf.FileDescriptorSet;if(e.file){if(!Array.isArray(e.file))throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected");t.file=[];for(var r=0;r<e.file.length;++r){if("object"!=typeof e.file[r])throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected");t.file[r]=l.google.protobuf.FileDescriptorProto.fromObject(e.file[r])}}return t},w.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.file=[]),e.file&&e.file.length){r.file=[];for(var n=0;n<e.file.length;++n)r.file[n]=l.google.protobuf.FileDescriptorProto.toObject(e.file[n],t)}return r},w.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},w),r.FileDescriptorProto=(S.prototype.name="",S.prototype.package="",S.prototype.dependency=s.emptyArray,S.prototype.publicDependency=s.emptyArray,S.prototype.weakDependency=s.emptyArray,S.prototype.messageType=s.emptyArray,S.prototype.enumType=s.emptyArray,S.prototype.service=s.emptyArray,S.prototype.extension=s.emptyArray,S.prototype.options=null,S.prototype.sourceCodeInfo=null,S.prototype.syntax="",S.create=function(e){return new S(e)},S.encode=function(e,t){if(t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.package&&Object.hasOwnProperty.call(e,"package")&&t.uint32(18).string(e.package),null!=e.dependency&&e.dependency.length)for(var r=0;r<e.dependency.length;++r)t.uint32(26).string(e.dependency[r]);if(null!=e.messageType&&e.messageType.length)for(r=0;r<e.messageType.length;++r)l.google.protobuf.DescriptorProto.encode(e.messageType[r],t.uint32(34).fork()).ldelim();if(null!=e.enumType&&e.enumType.length)for(r=0;r<e.enumType.length;++r)l.google.protobuf.EnumDescriptorProto.encode(e.enumType[r],t.uint32(42).fork()).ldelim();if(null!=e.service&&e.service.length)for(r=0;r<e.service.length;++r)l.google.protobuf.ServiceDescriptorProto.encode(e.service[r],t.uint32(50).fork()).ldelim();if(null!=e.extension&&e.extension.length)for(r=0;r<e.extension.length;++r)l.google.protobuf.FieldDescriptorProto.encode(e.extension[r],t.uint32(58).fork()).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.FileOptions.encode(e.options,t.uint32(66).fork()).ldelim(),null!=e.sourceCodeInfo&&Object.hasOwnProperty.call(e,"sourceCodeInfo")&&l.google.protobuf.SourceCodeInfo.encode(e.sourceCodeInfo,t.uint32(74).fork()).ldelim(),null!=e.publicDependency&&e.publicDependency.length)for(r=0;r<e.publicDependency.length;++r)t.uint32(80).int32(e.publicDependency[r]);if(null!=e.weakDependency&&e.weakDependency.length)for(r=0;r<e.weakDependency.length;++r)t.uint32(88).int32(e.weakDependency[r]);return null!=e.syntax&&Object.hasOwnProperty.call(e,"syntax")&&t.uint32(98).string(e.syntax),t},S.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},S.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.FileDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.package=e.string();break;case 3:n.dependency&&n.dependency.length||(n.dependency=[]),n.dependency.push(e.string());break;case 10:if(n.publicDependency&&n.publicDependency.length||(n.publicDependency=[]),2==(7&o))for(var a=e.uint32()+e.pos;e.pos<a;)n.publicDependency.push(e.int32());else n.publicDependency.push(e.int32());break;case 11:if(n.weakDependency&&n.weakDependency.length||(n.weakDependency=[]),2==(7&o))for(a=e.uint32()+e.pos;e.pos<a;)n.weakDependency.push(e.int32());else n.weakDependency.push(e.int32());break;case 4:n.messageType&&n.messageType.length||(n.messageType=[]),n.messageType.push(l.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 5:n.enumType&&n.enumType.length||(n.enumType=[]),n.enumType.push(l.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 6:n.service&&n.service.length||(n.service=[]),n.service.push(l.google.protobuf.ServiceDescriptorProto.decode(e,e.uint32()));break;case 7:n.extension&&n.extension.length||(n.extension=[]),n.extension.push(l.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 8:n.options=l.google.protobuf.FileOptions.decode(e,e.uint32());break;case 9:n.sourceCodeInfo=l.google.protobuf.SourceCodeInfo.decode(e,e.uint32());break;case 12:n.syntax=e.string();break;default:e.skipType(7&o)}}return n},S.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},S.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name))return"name: string expected";if(null!=e.package&&e.hasOwnProperty("package")&&!s.isString(e.package))return"package: string expected";if(null!=e.dependency&&e.hasOwnProperty("dependency")){if(!Array.isArray(e.dependency))return"dependency: array expected";for(var t=0;t<e.dependency.length;++t)if(!s.isString(e.dependency[t]))return"dependency: string[] expected"}if(null!=e.publicDependency&&e.hasOwnProperty("publicDependency")){if(!Array.isArray(e.publicDependency))return"publicDependency: array expected";for(t=0;t<e.publicDependency.length;++t)if(!s.isInteger(e.publicDependency[t]))return"publicDependency: integer[] expected"}if(null!=e.weakDependency&&e.hasOwnProperty("weakDependency")){if(!Array.isArray(e.weakDependency))return"weakDependency: array expected";for(t=0;t<e.weakDependency.length;++t)if(!s.isInteger(e.weakDependency[t]))return"weakDependency: integer[] expected"}if(null!=e.messageType&&e.hasOwnProperty("messageType")){if(!Array.isArray(e.messageType))return"messageType: array expected";for(t=0;t<e.messageType.length;++t)if(r=l.google.protobuf.DescriptorProto.verify(e.messageType[t]))return"messageType."+r}if(null!=e.enumType&&e.hasOwnProperty("enumType")){if(!Array.isArray(e.enumType))return"enumType: array expected";for(t=0;t<e.enumType.length;++t)if(r=l.google.protobuf.EnumDescriptorProto.verify(e.enumType[t]))return"enumType."+r}if(null!=e.service&&e.hasOwnProperty("service")){if(!Array.isArray(e.service))return"service: array expected";for(t=0;t<e.service.length;++t)if(r=l.google.protobuf.ServiceDescriptorProto.verify(e.service[t]))return"service."+r}if(null!=e.extension&&e.hasOwnProperty("extension")){if(!Array.isArray(e.extension))return"extension: array expected";for(t=0;t<e.extension.length;++t)if(r=l.google.protobuf.FieldDescriptorProto.verify(e.extension[t]))return"extension."+r}var r;return null!=e.options&&e.hasOwnProperty("options")&&(r=l.google.protobuf.FileOptions.verify(e.options))?"options."+r:null!=e.sourceCodeInfo&&e.hasOwnProperty("sourceCodeInfo")&&(r=l.google.protobuf.SourceCodeInfo.verify(e.sourceCodeInfo))?"sourceCodeInfo."+r:null!=e.syntax&&e.hasOwnProperty("syntax")&&!s.isString(e.syntax)?"syntax: string expected":null},S.fromObject=function(e){if(e instanceof l.google.protobuf.FileDescriptorProto)return e;var t=new l.google.protobuf.FileDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.package&&(t.package=String(e.package)),e.dependency){if(!Array.isArray(e.dependency))throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected");t.dependency=[];for(var r=0;r<e.dependency.length;++r)t.dependency[r]=String(e.dependency[r])}if(e.publicDependency){if(!Array.isArray(e.publicDependency))throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected");for(t.publicDependency=[],r=0;r<e.publicDependency.length;++r)t.publicDependency[r]=0|e.publicDependency[r]}if(e.weakDependency){if(!Array.isArray(e.weakDependency))throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected");for(t.weakDependency=[],r=0;r<e.weakDependency.length;++r)t.weakDependency[r]=0|e.weakDependency[r]}if(e.messageType){if(!Array.isArray(e.messageType))throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");for(t.messageType=[],r=0;r<e.messageType.length;++r){if("object"!=typeof e.messageType[r])throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected");t.messageType[r]=l.google.protobuf.DescriptorProto.fromObject(e.messageType[r])}}if(e.enumType){if(!Array.isArray(e.enumType))throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected");for(t.enumType=[],r=0;r<e.enumType.length;++r){if("object"!=typeof e.enumType[r])throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected");t.enumType[r]=l.google.protobuf.EnumDescriptorProto.fromObject(e.enumType[r])}}if(e.service){if(!Array.isArray(e.service))throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected");for(t.service=[],r=0;r<e.service.length;++r){if("object"!=typeof e.service[r])throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected");t.service[r]=l.google.protobuf.ServiceDescriptorProto.fromObject(e.service[r])}}if(e.extension){if(!Array.isArray(e.extension))throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected");for(t.extension=[],r=0;r<e.extension.length;++r){if("object"!=typeof e.extension[r])throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected");t.extension[r]=l.google.protobuf.FieldDescriptorProto.fromObject(e.extension[r])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected");t.options=l.google.protobuf.FileOptions.fromObject(e.options)}if(null!=e.sourceCodeInfo){if("object"!=typeof e.sourceCodeInfo)throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected");t.sourceCodeInfo=l.google.protobuf.SourceCodeInfo.fromObject(e.sourceCodeInfo)}return null!=e.syntax&&(t.syntax=String(e.syntax)),t},S.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.dependency=[],r.messageType=[],r.enumType=[],r.service=[],r.extension=[],r.publicDependency=[],r.weakDependency=[]),t.defaults&&(r.name="",r.package="",r.options=null,r.sourceCodeInfo=null,r.syntax=""),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.package&&e.hasOwnProperty("package")&&(r.package=e.package),e.dependency&&e.dependency.length){r.dependency=[];for(var n=0;n<e.dependency.length;++n)r.dependency[n]=e.dependency[n]}if(e.messageType&&e.messageType.length)for(r.messageType=[],n=0;n<e.messageType.length;++n)r.messageType[n]=l.google.protobuf.DescriptorProto.toObject(e.messageType[n],t);if(e.enumType&&e.enumType.length)for(r.enumType=[],n=0;n<e.enumType.length;++n)r.enumType[n]=l.google.protobuf.EnumDescriptorProto.toObject(e.enumType[n],t);if(e.service&&e.service.length)for(r.service=[],n=0;n<e.service.length;++n)r.service[n]=l.google.protobuf.ServiceDescriptorProto.toObject(e.service[n],t);if(e.extension&&e.extension.length)for(r.extension=[],n=0;n<e.extension.length;++n)r.extension[n]=l.google.protobuf.FieldDescriptorProto.toObject(e.extension[n],t);if(null!=e.options&&e.hasOwnProperty("options")&&(r.options=l.google.protobuf.FileOptions.toObject(e.options,t)),null!=e.sourceCodeInfo&&e.hasOwnProperty("sourceCodeInfo")&&(r.sourceCodeInfo=l.google.protobuf.SourceCodeInfo.toObject(e.sourceCodeInfo,t)),e.publicDependency&&e.publicDependency.length)for(r.publicDependency=[],n=0;n<e.publicDependency.length;++n)r.publicDependency[n]=e.publicDependency[n];if(e.weakDependency&&e.weakDependency.length)for(r.weakDependency=[],n=0;n<e.weakDependency.length;++n)r.weakDependency[n]=e.weakDependency[n];return null!=e.syntax&&e.hasOwnProperty("syntax")&&(r.syntax=e.syntax),r},S.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},S),r.DescriptorProto=(_.prototype.name="",_.prototype.field=s.emptyArray,_.prototype.extension=s.emptyArray,_.prototype.nestedType=s.emptyArray,_.prototype.enumType=s.emptyArray,_.prototype.extensionRange=s.emptyArray,_.prototype.oneofDecl=s.emptyArray,_.prototype.options=null,_.prototype.reservedRange=s.emptyArray,_.prototype.reservedName=s.emptyArray,_.create=function(e){return new _(e)},_.encode=function(e,t){if(t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.field&&e.field.length)for(var r=0;r<e.field.length;++r)l.google.protobuf.FieldDescriptorProto.encode(e.field[r],t.uint32(18).fork()).ldelim();if(null!=e.nestedType&&e.nestedType.length)for(r=0;r<e.nestedType.length;++r)l.google.protobuf.DescriptorProto.encode(e.nestedType[r],t.uint32(26).fork()).ldelim();if(null!=e.enumType&&e.enumType.length)for(r=0;r<e.enumType.length;++r)l.google.protobuf.EnumDescriptorProto.encode(e.enumType[r],t.uint32(34).fork()).ldelim();if(null!=e.extensionRange&&e.extensionRange.length)for(r=0;r<e.extensionRange.length;++r)l.google.protobuf.DescriptorProto.ExtensionRange.encode(e.extensionRange[r],t.uint32(42).fork()).ldelim();if(null!=e.extension&&e.extension.length)for(r=0;r<e.extension.length;++r)l.google.protobuf.FieldDescriptorProto.encode(e.extension[r],t.uint32(50).fork()).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.MessageOptions.encode(e.options,t.uint32(58).fork()).ldelim(),null!=e.oneofDecl&&e.oneofDecl.length)for(r=0;r<e.oneofDecl.length;++r)l.google.protobuf.OneofDescriptorProto.encode(e.oneofDecl[r],t.uint32(66).fork()).ldelim();if(null!=e.reservedRange&&e.reservedRange.length)for(r=0;r<e.reservedRange.length;++r)l.google.protobuf.DescriptorProto.ReservedRange.encode(e.reservedRange[r],t.uint32(74).fork()).ldelim();if(null!=e.reservedName&&e.reservedName.length)for(r=0;r<e.reservedName.length;++r)t.uint32(82).string(e.reservedName[r]);return t},_.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},_.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.DescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.field&&n.field.length||(n.field=[]),n.field.push(l.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 6:n.extension&&n.extension.length||(n.extension=[]),n.extension.push(l.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 3:n.nestedType&&n.nestedType.length||(n.nestedType=[]),n.nestedType.push(l.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 4:n.enumType&&n.enumType.length||(n.enumType=[]),n.enumType.push(l.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 5:n.extensionRange&&n.extensionRange.length||(n.extensionRange=[]),n.extensionRange.push(l.google.protobuf.DescriptorProto.ExtensionRange.decode(e,e.uint32()));break;case 8:n.oneofDecl&&n.oneofDecl.length||(n.oneofDecl=[]),n.oneofDecl.push(l.google.protobuf.OneofDescriptorProto.decode(e,e.uint32()));break;case 7:n.options=l.google.protobuf.MessageOptions.decode(e,e.uint32());break;case 9:n.reservedRange&&n.reservedRange.length||(n.reservedRange=[]),n.reservedRange.push(l.google.protobuf.DescriptorProto.ReservedRange.decode(e,e.uint32()));break;case 10:n.reservedName&&n.reservedName.length||(n.reservedName=[]),n.reservedName.push(e.string());break;default:e.skipType(7&o)}}return n},_.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},_.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name))return"name: string expected";if(null!=e.field&&e.hasOwnProperty("field")){if(!Array.isArray(e.field))return"field: array expected";for(var t=0;t<e.field.length;++t)if(r=l.google.protobuf.FieldDescriptorProto.verify(e.field[t]))return"field."+r}if(null!=e.extension&&e.hasOwnProperty("extension")){if(!Array.isArray(e.extension))return"extension: array expected";for(t=0;t<e.extension.length;++t)if(r=l.google.protobuf.FieldDescriptorProto.verify(e.extension[t]))return"extension."+r}if(null!=e.nestedType&&e.hasOwnProperty("nestedType")){if(!Array.isArray(e.nestedType))return"nestedType: array expected";for(t=0;t<e.nestedType.length;++t)if(r=l.google.protobuf.DescriptorProto.verify(e.nestedType[t]))return"nestedType."+r}if(null!=e.enumType&&e.hasOwnProperty("enumType")){if(!Array.isArray(e.enumType))return"enumType: array expected";for(t=0;t<e.enumType.length;++t)if(r=l.google.protobuf.EnumDescriptorProto.verify(e.enumType[t]))return"enumType."+r}if(null!=e.extensionRange&&e.hasOwnProperty("extensionRange")){if(!Array.isArray(e.extensionRange))return"extensionRange: array expected";for(t=0;t<e.extensionRange.length;++t)if(r=l.google.protobuf.DescriptorProto.ExtensionRange.verify(e.extensionRange[t]))return"extensionRange."+r}if(null!=e.oneofDecl&&e.hasOwnProperty("oneofDecl")){if(!Array.isArray(e.oneofDecl))return"oneofDecl: array expected";for(t=0;t<e.oneofDecl.length;++t)if(r=l.google.protobuf.OneofDescriptorProto.verify(e.oneofDecl[t]))return"oneofDecl."+r}if(null!=e.options&&e.hasOwnProperty("options")&&(r=l.google.protobuf.MessageOptions.verify(e.options)))return"options."+r;if(null!=e.reservedRange&&e.hasOwnProperty("reservedRange")){if(!Array.isArray(e.reservedRange))return"reservedRange: array expected";var r;for(t=0;t<e.reservedRange.length;++t)if(r=l.google.protobuf.DescriptorProto.ReservedRange.verify(e.reservedRange[t]))return"reservedRange."+r}if(null!=e.reservedName&&e.hasOwnProperty("reservedName")){if(!Array.isArray(e.reservedName))return"reservedName: array expected";for(t=0;t<e.reservedName.length;++t)if(!s.isString(e.reservedName[t]))return"reservedName: string[] expected"}return null},_.fromObject=function(e){if(e instanceof l.google.protobuf.DescriptorProto)return e;var t=new l.google.protobuf.DescriptorProto;if(null!=e.name&&(t.name=String(e.name)),e.field){if(!Array.isArray(e.field))throw TypeError(".google.protobuf.DescriptorProto.field: array expected");t.field=[];for(var r=0;r<e.field.length;++r){if("object"!=typeof e.field[r])throw TypeError(".google.protobuf.DescriptorProto.field: object expected");t.field[r]=l.google.protobuf.FieldDescriptorProto.fromObject(e.field[r])}}if(e.extension){if(!Array.isArray(e.extension))throw TypeError(".google.protobuf.DescriptorProto.extension: array expected");for(t.extension=[],r=0;r<e.extension.length;++r){if("object"!=typeof e.extension[r])throw TypeError(".google.protobuf.DescriptorProto.extension: object expected");t.extension[r]=l.google.protobuf.FieldDescriptorProto.fromObject(e.extension[r])}}if(e.nestedType){if(!Array.isArray(e.nestedType))throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected");for(t.nestedType=[],r=0;r<e.nestedType.length;++r){if("object"!=typeof e.nestedType[r])throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected");t.nestedType[r]=l.google.protobuf.DescriptorProto.fromObject(e.nestedType[r])}}if(e.enumType){if(!Array.isArray(e.enumType))throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected");for(t.enumType=[],r=0;r<e.enumType.length;++r){if("object"!=typeof e.enumType[r])throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected");t.enumType[r]=l.google.protobuf.EnumDescriptorProto.fromObject(e.enumType[r])}}if(e.extensionRange){if(!Array.isArray(e.extensionRange))throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected");for(t.extensionRange=[],r=0;r<e.extensionRange.length;++r){if("object"!=typeof e.extensionRange[r])throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected");t.extensionRange[r]=l.google.protobuf.DescriptorProto.ExtensionRange.fromObject(e.extensionRange[r])}}if(e.oneofDecl){if(!Array.isArray(e.oneofDecl))throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected");for(t.oneofDecl=[],r=0;r<e.oneofDecl.length;++r){if("object"!=typeof e.oneofDecl[r])throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected");t.oneofDecl[r]=l.google.protobuf.OneofDescriptorProto.fromObject(e.oneofDecl[r])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.DescriptorProto.options: object expected");t.options=l.google.protobuf.MessageOptions.fromObject(e.options)}if(e.reservedRange){if(!Array.isArray(e.reservedRange))throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected");for(t.reservedRange=[],r=0;r<e.reservedRange.length;++r){if("object"!=typeof e.reservedRange[r])throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected");t.reservedRange[r]=l.google.protobuf.DescriptorProto.ReservedRange.fromObject(e.reservedRange[r])}}if(e.reservedName){if(!Array.isArray(e.reservedName))throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected");for(t.reservedName=[],r=0;r<e.reservedName.length;++r)t.reservedName[r]=String(e.reservedName[r])}return t},_.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.field=[],r.nestedType=[],r.enumType=[],r.extensionRange=[],r.extension=[],r.oneofDecl=[],r.reservedRange=[],r.reservedName=[]),t.defaults&&(r.name="",r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),e.field&&e.field.length){r.field=[];for(var n=0;n<e.field.length;++n)r.field[n]=l.google.protobuf.FieldDescriptorProto.toObject(e.field[n],t)}if(e.nestedType&&e.nestedType.length)for(r.nestedType=[],n=0;n<e.nestedType.length;++n)r.nestedType[n]=l.google.protobuf.DescriptorProto.toObject(e.nestedType[n],t);if(e.enumType&&e.enumType.length)for(r.enumType=[],n=0;n<e.enumType.length;++n)r.enumType[n]=l.google.protobuf.EnumDescriptorProto.toObject(e.enumType[n],t);if(e.extensionRange&&e.extensionRange.length)for(r.extensionRange=[],n=0;n<e.extensionRange.length;++n)r.extensionRange[n]=l.google.protobuf.DescriptorProto.ExtensionRange.toObject(e.extensionRange[n],t);if(e.extension&&e.extension.length)for(r.extension=[],n=0;n<e.extension.length;++n)r.extension[n]=l.google.protobuf.FieldDescriptorProto.toObject(e.extension[n],t);if(null!=e.options&&e.hasOwnProperty("options")&&(r.options=l.google.protobuf.MessageOptions.toObject(e.options,t)),e.oneofDecl&&e.oneofDecl.length)for(r.oneofDecl=[],n=0;n<e.oneofDecl.length;++n)r.oneofDecl[n]=l.google.protobuf.OneofDescriptorProto.toObject(e.oneofDecl[n],t);if(e.reservedRange&&e.reservedRange.length)for(r.reservedRange=[],n=0;n<e.reservedRange.length;++n)r.reservedRange[n]=l.google.protobuf.DescriptorProto.ReservedRange.toObject(e.reservedRange[n],t);if(e.reservedName&&e.reservedName.length)for(r.reservedName=[],n=0;n<e.reservedName.length;++n)r.reservedName[n]=e.reservedName[n];return r},_.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},_.ExtensionRange=(P.prototype.start=0,P.prototype.end=0,P.prototype.options=null,P.create=function(e){return new P(e)},P.encode=function(e,t){return t=t||a.create(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.ExtensionRangeOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},P.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},P.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.DescriptorProto.ExtensionRange;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.start=e.int32();break;case 2:n.end=e.int32();break;case 3:n.options=l.google.protobuf.ExtensionRangeOptions.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},P.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},P.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!s.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!s.isInteger(e.end)?"end: integer expected":null!=e.options&&e.hasOwnProperty("options")&&(e=l.google.protobuf.ExtensionRangeOptions.verify(e.options))?"options."+e:null},P.fromObject=function(e){if(e instanceof l.google.protobuf.DescriptorProto.ExtensionRange)return e;var t=new l.google.protobuf.DescriptorProto.ExtensionRange;if(null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected");t.options=l.google.protobuf.ExtensionRangeOptions.fromObject(e.options)}return t},P.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.start=0,r.end=0,r.options=null),null!=e.start&&e.hasOwnProperty("start")&&(r.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(r.end=e.end),null!=e.options&&e.hasOwnProperty("options")&&(r.options=l.google.protobuf.ExtensionRangeOptions.toObject(e.options,t)),r},P.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},P),_.ReservedRange=(E.prototype.start=0,E.prototype.end=0,E.create=function(e){return new E(e)},E.encode=function(e,t){return t=t||a.create(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},E.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},E.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.DescriptorProto.ReservedRange;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.start=e.int32();break;case 2:n.end=e.int32();break;default:e.skipType(7&o)}}return n},E.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},E.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!s.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!s.isInteger(e.end)?"end: integer expected":null},E.fromObject=function(e){var t;return e instanceof l.google.protobuf.DescriptorProto.ReservedRange?e:(t=new l.google.protobuf.DescriptorProto.ReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},E.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.start=0,r.end=0),null!=e.start&&e.hasOwnProperty("start")&&(r.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(r.end=e.end),r},E.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},E),_),r.ExtensionRangeOptions=(T.prototype.uninterpretedOption=s.emptyArray,T.create=function(e){return new T(e)},T.encode=function(e,t){if(t=t||a.create(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},T.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},T.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.ExtensionRangeOptions;e.pos<r;){var o=e.uint32();o>>>3==999?(n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&o)}return n},T.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},T.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null},T.fromObject=function(e){if(e instanceof l.google.protobuf.ExtensionRangeOptions)return e;var t=new l.google.protobuf.ExtensionRangeOptions;if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},T.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},T.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},T),r.FieldDescriptorProto=(C.prototype.name="",C.prototype.number=0,C.prototype.label=1,C.prototype.type=1,C.prototype.typeName="",C.prototype.extendee="",C.prototype.defaultValue="",C.prototype.oneofIndex=0,C.prototype.jsonName="",C.prototype.options=null,C.prototype.proto3Optional=!1,C.create=function(e){return new C(e)},C.encode=function(e,t){return t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.extendee&&Object.hasOwnProperty.call(e,"extendee")&&t.uint32(18).string(e.extendee),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(24).int32(e.number),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(32).int32(e.label),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(40).int32(e.type),null!=e.typeName&&Object.hasOwnProperty.call(e,"typeName")&&t.uint32(50).string(e.typeName),null!=e.defaultValue&&Object.hasOwnProperty.call(e,"defaultValue")&&t.uint32(58).string(e.defaultValue),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.FieldOptions.encode(e.options,t.uint32(66).fork()).ldelim(),null!=e.oneofIndex&&Object.hasOwnProperty.call(e,"oneofIndex")&&t.uint32(72).int32(e.oneofIndex),null!=e.jsonName&&Object.hasOwnProperty.call(e,"jsonName")&&t.uint32(82).string(e.jsonName),null!=e.proto3Optional&&Object.hasOwnProperty.call(e,"proto3Optional")&&t.uint32(136).bool(e.proto3Optional),t},C.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},C.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.FieldDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 3:n.number=e.int32();break;case 4:n.label=e.int32();break;case 5:n.type=e.int32();break;case 6:n.typeName=e.string();break;case 2:n.extendee=e.string();break;case 7:n.defaultValue=e.string();break;case 9:n.oneofIndex=e.int32();break;case 10:n.jsonName=e.string();break;case 8:n.options=l.google.protobuf.FieldOptions.decode(e,e.uint32());break;case 17:n.proto3Optional=e.bool();break;default:e.skipType(7&o)}}return n},C.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},C.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name))return"name: string expected";if(null!=e.number&&e.hasOwnProperty("number")&&!s.isInteger(e.number))return"number: integer expected";if(null!=e.label&&e.hasOwnProperty("label"))switch(e.label){default:return"label: enum value expected";case 1:case 2:case 3:}if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:}if(null!=e.typeName&&e.hasOwnProperty("typeName")&&!s.isString(e.typeName))return"typeName: string expected";if(null!=e.extendee&&e.hasOwnProperty("extendee")&&!s.isString(e.extendee))return"extendee: string expected";if(null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&!s.isString(e.defaultValue))return"defaultValue: string expected";if(null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&!s.isInteger(e.oneofIndex))return"oneofIndex: integer expected";if(null!=e.jsonName&&e.hasOwnProperty("jsonName")&&!s.isString(e.jsonName))return"jsonName: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=l.google.protobuf.FieldOptions.verify(e.options);if(t)return"options."+t}return null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&"boolean"!=typeof e.proto3Optional?"proto3Optional: boolean expected":null},C.fromObject=function(e){if(e instanceof l.google.protobuf.FieldDescriptorProto)return e;var t=new l.google.protobuf.FieldDescriptorProto;switch(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),e.label){case"LABEL_OPTIONAL":case 1:t.label=1;break;case"LABEL_REQUIRED":case 2:t.label=2;break;case"LABEL_REPEATED":case 3:t.label=3}switch(e.type){case"TYPE_DOUBLE":case 1:t.type=1;break;case"TYPE_FLOAT":case 2:t.type=2;break;case"TYPE_INT64":case 3:t.type=3;break;case"TYPE_UINT64":case 4:t.type=4;break;case"TYPE_INT32":case 5:t.type=5;break;case"TYPE_FIXED64":case 6:t.type=6;break;case"TYPE_FIXED32":case 7:t.type=7;break;case"TYPE_BOOL":case 8:t.type=8;break;case"TYPE_STRING":case 9:t.type=9;break;case"TYPE_GROUP":case 10:t.type=10;break;case"TYPE_MESSAGE":case 11:t.type=11;break;case"TYPE_BYTES":case 12:t.type=12;break;case"TYPE_UINT32":case 13:t.type=13;break;case"TYPE_ENUM":case 14:t.type=14;break;case"TYPE_SFIXED32":case 15:t.type=15;break;case"TYPE_SFIXED64":case 16:t.type=16;break;case"TYPE_SINT32":case 17:t.type=17;break;case"TYPE_SINT64":case 18:t.type=18}if(null!=e.typeName&&(t.typeName=String(e.typeName)),null!=e.extendee&&(t.extendee=String(e.extendee)),null!=e.defaultValue&&(t.defaultValue=String(e.defaultValue)),null!=e.oneofIndex&&(t.oneofIndex=0|e.oneofIndex),null!=e.jsonName&&(t.jsonName=String(e.jsonName)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");t.options=l.google.protobuf.FieldOptions.fromObject(e.options)}return null!=e.proto3Optional&&(t.proto3Optional=Boolean(e.proto3Optional)),t},C.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name="",r.extendee="",r.number=0,r.label=t.enums===String?"LABEL_OPTIONAL":1,r.type=t.enums===String?"TYPE_DOUBLE":1,r.typeName="",r.defaultValue="",r.options=null,r.oneofIndex=0,r.jsonName="",r.proto3Optional=!1),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.extendee&&e.hasOwnProperty("extendee")&&(r.extendee=e.extendee),null!=e.number&&e.hasOwnProperty("number")&&(r.number=e.number),null!=e.label&&e.hasOwnProperty("label")&&(r.label=t.enums===String?l.google.protobuf.FieldDescriptorProto.Label[e.label]:e.label),null!=e.type&&e.hasOwnProperty("type")&&(r.type=t.enums===String?l.google.protobuf.FieldDescriptorProto.Type[e.type]:e.type),null!=e.typeName&&e.hasOwnProperty("typeName")&&(r.typeName=e.typeName),null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&(r.defaultValue=e.defaultValue),null!=e.options&&e.hasOwnProperty("options")&&(r.options=l.google.protobuf.FieldOptions.toObject(e.options,t)),null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&(r.oneofIndex=e.oneofIndex),null!=e.jsonName&&e.hasOwnProperty("jsonName")&&(r.jsonName=e.jsonName),null!=e.proto3Optional&&e.hasOwnProperty("proto3Optional")&&(r.proto3Optional=e.proto3Optional),r},C.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},C.Type=(n={},(t=Object.create(n))[n[1]="TYPE_DOUBLE"]=1,t[n[2]="TYPE_FLOAT"]=2,t[n[3]="TYPE_INT64"]=3,t[n[4]="TYPE_UINT64"]=4,t[n[5]="TYPE_INT32"]=5,t[n[6]="TYPE_FIXED64"]=6,t[n[7]="TYPE_FIXED32"]=7,t[n[8]="TYPE_BOOL"]=8,t[n[9]="TYPE_STRING"]=9,t[n[10]="TYPE_GROUP"]=10,t[n[11]="TYPE_MESSAGE"]=11,t[n[12]="TYPE_BYTES"]=12,t[n[13]="TYPE_UINT32"]=13,t[n[14]="TYPE_ENUM"]=14,t[n[15]="TYPE_SFIXED32"]=15,t[n[16]="TYPE_SFIXED64"]=16,t[n[17]="TYPE_SINT32"]=17,t[n[18]="TYPE_SINT64"]=18,t),C.Label=(n={},(t=Object.create(n))[n[1]="LABEL_OPTIONAL"]=1,t[n[2]="LABEL_REQUIRED"]=2,t[n[3]="LABEL_REPEATED"]=3,t),C),r.OneofDescriptorProto=(R.prototype.name="",R.prototype.options=null,R.create=function(e){return new R(e)},R.encode=function(e,t){return t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.OneofOptions.encode(e.options,t.uint32(18).fork()).ldelim(),t},R.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},R.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.OneofDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.options=l.google.protobuf.OneofOptions.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},R.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},R.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name)?"name: string expected":null!=e.options&&e.hasOwnProperty("options")&&(e=l.google.protobuf.OneofOptions.verify(e.options))?"options."+e:null},R.fromObject=function(e){if(e instanceof l.google.protobuf.OneofDescriptorProto)return e;var t=new l.google.protobuf.OneofDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected");t.options=l.google.protobuf.OneofOptions.fromObject(e.options)}return t},R.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name="",r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.options&&e.hasOwnProperty("options")&&(r.options=l.google.protobuf.OneofOptions.toObject(e.options,t)),r},R.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},R),r.EnumDescriptorProto=(D.prototype.name="",D.prototype.value=s.emptyArray,D.prototype.options=null,D.prototype.reservedRange=s.emptyArray,D.prototype.reservedName=s.emptyArray,D.create=function(e){return new D(e)},D.encode=function(e,t){if(t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&e.value.length)for(var r=0;r<e.value.length;++r)l.google.protobuf.EnumValueDescriptorProto.encode(e.value[r],t.uint32(18).fork()).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.EnumOptions.encode(e.options,t.uint32(26).fork()).ldelim(),null!=e.reservedRange&&e.reservedRange.length)for(r=0;r<e.reservedRange.length;++r)l.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(e.reservedRange[r],t.uint32(34).fork()).ldelim();if(null!=e.reservedName&&e.reservedName.length)for(r=0;r<e.reservedName.length;++r)t.uint32(42).string(e.reservedName[r]);return t},D.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},D.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.EnumDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.value&&n.value.length||(n.value=[]),n.value.push(l.google.protobuf.EnumValueDescriptorProto.decode(e,e.uint32()));break;case 3:n.options=l.google.protobuf.EnumOptions.decode(e,e.uint32());break;case 4:n.reservedRange&&n.reservedRange.length||(n.reservedRange=[]),n.reservedRange.push(l.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(e,e.uint32()));break;case 5:n.reservedName&&n.reservedName.length||(n.reservedName=[]),n.reservedName.push(e.string());break;default:e.skipType(7&o)}}return n},D.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},D.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name))return"name: string expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(var t=0;t<e.value.length;++t)if(r=l.google.protobuf.EnumValueDescriptorProto.verify(e.value[t]))return"value."+r}if(null!=e.options&&e.hasOwnProperty("options")&&(r=l.google.protobuf.EnumOptions.verify(e.options)))return"options."+r;if(null!=e.reservedRange&&e.hasOwnProperty("reservedRange")){if(!Array.isArray(e.reservedRange))return"reservedRange: array expected";var r;for(t=0;t<e.reservedRange.length;++t)if(r=l.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(e.reservedRange[t]))return"reservedRange."+r}if(null!=e.reservedName&&e.hasOwnProperty("reservedName")){if(!Array.isArray(e.reservedName))return"reservedName: array expected";for(t=0;t<e.reservedName.length;++t)if(!s.isString(e.reservedName[t]))return"reservedName: string[] expected"}return null},D.fromObject=function(e){if(e instanceof l.google.protobuf.EnumDescriptorProto)return e;var t=new l.google.protobuf.EnumDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),e.value){if(!Array.isArray(e.value))throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected");t.value=[];for(var r=0;r<e.value.length;++r){if("object"!=typeof e.value[r])throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected");t.value[r]=l.google.protobuf.EnumValueDescriptorProto.fromObject(e.value[r])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected");t.options=l.google.protobuf.EnumOptions.fromObject(e.options)}if(e.reservedRange){if(!Array.isArray(e.reservedRange))throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected");for(t.reservedRange=[],r=0;r<e.reservedRange.length;++r){if("object"!=typeof e.reservedRange[r])throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected");t.reservedRange[r]=l.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(e.reservedRange[r])}}if(e.reservedName){if(!Array.isArray(e.reservedName))throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected");for(t.reservedName=[],r=0;r<e.reservedName.length;++r)t.reservedName[r]=String(e.reservedName[r])}return t},D.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.value=[],r.reservedRange=[],r.reservedName=[]),t.defaults&&(r.name="",r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),e.value&&e.value.length){r.value=[];for(var n=0;n<e.value.length;++n)r.value[n]=l.google.protobuf.EnumValueDescriptorProto.toObject(e.value[n],t)}if(null!=e.options&&e.hasOwnProperty("options")&&(r.options=l.google.protobuf.EnumOptions.toObject(e.options,t)),e.reservedRange&&e.reservedRange.length)for(r.reservedRange=[],n=0;n<e.reservedRange.length;++n)r.reservedRange[n]=l.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(e.reservedRange[n],t);if(e.reservedName&&e.reservedName.length)for(r.reservedName=[],n=0;n<e.reservedName.length;++n)r.reservedName[n]=e.reservedName[n];return r},D.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},D.EnumReservedRange=(k.prototype.start=0,k.prototype.end=0,k.create=function(e){return new k(e)},k.encode=function(e,t){return t=t||a.create(),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},k.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},k.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.EnumDescriptorProto.EnumReservedRange;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.start=e.int32();break;case 2:n.end=e.int32();break;default:e.skipType(7&o)}}return n},k.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},k.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.start&&e.hasOwnProperty("start")&&!s.isInteger(e.start)?"start: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!s.isInteger(e.end)?"end: integer expected":null},k.fromObject=function(e){var t;return e instanceof l.google.protobuf.EnumDescriptorProto.EnumReservedRange?e:(t=new l.google.protobuf.EnumDescriptorProto.EnumReservedRange,null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t)},k.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.start=0,r.end=0),null!=e.start&&e.hasOwnProperty("start")&&(r.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(r.end=e.end),r},k.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},k),D),r.EnumValueDescriptorProto=(x.prototype.name="",x.prototype.number=0,x.prototype.options=null,x.create=function(e){return new x(e)},x.encode=function(e,t){return t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(16).int32(e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.EnumValueOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},x.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},x.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.EnumValueDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.number=e.int32();break;case 3:n.options=l.google.protobuf.EnumValueOptions.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},x.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},x.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name)?"name: string expected":null!=e.number&&e.hasOwnProperty("number")&&!s.isInteger(e.number)?"number: integer expected":null!=e.options&&e.hasOwnProperty("options")&&(e=l.google.protobuf.EnumValueOptions.verify(e.options))?"options."+e:null},x.fromObject=function(e){if(e instanceof l.google.protobuf.EnumValueDescriptorProto)return e;var t=new l.google.protobuf.EnumValueDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected");t.options=l.google.protobuf.EnumValueOptions.fromObject(e.options)}return t},x.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name="",r.number=0,r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.number&&e.hasOwnProperty("number")&&(r.number=e.number),null!=e.options&&e.hasOwnProperty("options")&&(r.options=l.google.protobuf.EnumValueOptions.toObject(e.options,t)),r},x.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},x),r.ServiceDescriptorProto=(j.prototype.name="",j.prototype.method=s.emptyArray,j.prototype.options=null,j.create=function(e){return new j(e)},j.encode=function(e,t){if(t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.method&&e.method.length)for(var r=0;r<e.method.length;++r)l.google.protobuf.MethodDescriptorProto.encode(e.method[r],t.uint32(18).fork()).ldelim();return null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.ServiceOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},j.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},j.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.ServiceDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.method&&n.method.length||(n.method=[]),n.method.push(l.google.protobuf.MethodDescriptorProto.decode(e,e.uint32()));break;case 3:n.options=l.google.protobuf.ServiceOptions.decode(e,e.uint32());break;default:e.skipType(7&o)}}return n},j.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},j.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name))return"name: string expected";if(null!=e.method&&e.hasOwnProperty("method")){if(!Array.isArray(e.method))return"method: array expected";for(var t=0;t<e.method.length;++t)if(r=l.google.protobuf.MethodDescriptorProto.verify(e.method[t]))return"method."+r}var r;return null!=e.options&&e.hasOwnProperty("options")&&(r=l.google.protobuf.ServiceOptions.verify(e.options))?"options."+r:null},j.fromObject=function(e){if(e instanceof l.google.protobuf.ServiceDescriptorProto)return e;var t=new l.google.protobuf.ServiceDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),e.method){if(!Array.isArray(e.method))throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected");t.method=[];for(var r=0;r<e.method.length;++r){if("object"!=typeof e.method[r])throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected");t.method[r]=l.google.protobuf.MethodDescriptorProto.fromObject(e.method[r])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected");t.options=l.google.protobuf.ServiceOptions.fromObject(e.options)}return t},j.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.method=[]),t.defaults&&(r.name="",r.options=null),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),e.method&&e.method.length){r.method=[];for(var n=0;n<e.method.length;++n)r.method[n]=l.google.protobuf.MethodDescriptorProto.toObject(e.method[n],t)}return null!=e.options&&e.hasOwnProperty("options")&&(r.options=l.google.protobuf.ServiceOptions.toObject(e.options,t)),r},j.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},j),r.MethodDescriptorProto=(A.prototype.name="",A.prototype.inputType="",A.prototype.outputType="",A.prototype.options=null,A.prototype.clientStreaming=!1,A.prototype.serverStreaming=!1,A.create=function(e){return new A(e)},A.encode=function(e,t){return t=t||a.create(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.inputType&&Object.hasOwnProperty.call(e,"inputType")&&t.uint32(18).string(e.inputType),null!=e.outputType&&Object.hasOwnProperty.call(e,"outputType")&&t.uint32(26).string(e.outputType),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&l.google.protobuf.MethodOptions.encode(e.options,t.uint32(34).fork()).ldelim(),null!=e.clientStreaming&&Object.hasOwnProperty.call(e,"clientStreaming")&&t.uint32(40).bool(e.clientStreaming),null!=e.serverStreaming&&Object.hasOwnProperty.call(e,"serverStreaming")&&t.uint32(48).bool(e.serverStreaming),t},A.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},A.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.MethodDescriptorProto;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.name=e.string();break;case 2:n.inputType=e.string();break;case 3:n.outputType=e.string();break;case 4:n.options=l.google.protobuf.MethodOptions.decode(e,e.uint32());break;case 5:n.clientStreaming=e.bool();break;case 6:n.serverStreaming=e.bool();break;default:e.skipType(7&o)}}return n},A.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},A.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!s.isString(e.name))return"name: string expected";if(null!=e.inputType&&e.hasOwnProperty("inputType")&&!s.isString(e.inputType))return"inputType: string expected";if(null!=e.outputType&&e.hasOwnProperty("outputType")&&!s.isString(e.outputType))return"outputType: string expected";if(null!=e.options&&e.hasOwnProperty("options")){var t=l.google.protobuf.MethodOptions.verify(e.options);if(t)return"options."+t}return null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&"boolean"!=typeof e.clientStreaming?"clientStreaming: boolean expected":null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&"boolean"!=typeof e.serverStreaming?"serverStreaming: boolean expected":null},A.fromObject=function(e){if(e instanceof l.google.protobuf.MethodDescriptorProto)return e;var t=new l.google.protobuf.MethodDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.inputType&&(t.inputType=String(e.inputType)),null!=e.outputType&&(t.outputType=String(e.outputType)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected");t.options=l.google.protobuf.MethodOptions.fromObject(e.options)}return null!=e.clientStreaming&&(t.clientStreaming=Boolean(e.clientStreaming)),null!=e.serverStreaming&&(t.serverStreaming=Boolean(e.serverStreaming)),t},A.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.name="",r.inputType="",r.outputType="",r.options=null,r.clientStreaming=!1,r.serverStreaming=!1),null!=e.name&&e.hasOwnProperty("name")&&(r.name=e.name),null!=e.inputType&&e.hasOwnProperty("inputType")&&(r.inputType=e.inputType),null!=e.outputType&&e.hasOwnProperty("outputType")&&(r.outputType=e.outputType),null!=e.options&&e.hasOwnProperty("options")&&(r.options=l.google.protobuf.MethodOptions.toObject(e.options,t)),null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&(r.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&(r.serverStreaming=e.serverStreaming),r},A.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},A),r.FileOptions=(N.prototype.javaPackage="",N.prototype.javaOuterClassname="",N.prototype.javaMultipleFiles=!1,N.prototype.javaGenerateEqualsAndHash=!1,N.prototype.javaStringCheckUtf8=!1,N.prototype.optimizeFor=1,N.prototype.goPackage="",N.prototype.ccGenericServices=!1,N.prototype.javaGenericServices=!1,N.prototype.pyGenericServices=!1,N.prototype.phpGenericServices=!1,N.prototype.deprecated=!1,N.prototype.ccEnableArenas=!0,N.prototype.objcClassPrefix="",N.prototype.csharpNamespace="",N.prototype.swiftPrefix="",N.prototype.phpClassPrefix="",N.prototype.phpNamespace="",N.prototype.phpMetadataNamespace="",N.prototype.rubyPackage="",N.prototype.uninterpretedOption=s.emptyArray,N.create=function(e){return new N(e)},N.encode=function(e,t){if(t=t||a.create(),null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&t.uint32(10).string(e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&t.uint32(66).string(e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&t.uint32(72).int32(e.optimizeFor),null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&t.uint32(80).bool(e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&t.uint32(90).string(e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&t.uint32(128).bool(e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&t.uint32(136).bool(e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&t.uint32(144).bool(e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&t.uint32(160).bool(e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(184).bool(e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&t.uint32(216).bool(e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&t.uint32(248).bool(e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&t.uint32(290).string(e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&t.uint32(298).string(e.csharpNamespace),null!=e.swiftPrefix&&Object.hasOwnProperty.call(e,"swiftPrefix")&&t.uint32(314).string(e.swiftPrefix),null!=e.phpClassPrefix&&Object.hasOwnProperty.call(e,"phpClassPrefix")&&t.uint32(322).string(e.phpClassPrefix),null!=e.phpNamespace&&Object.hasOwnProperty.call(e,"phpNamespace")&&t.uint32(330).string(e.phpNamespace),null!=e.phpGenericServices&&Object.hasOwnProperty.call(e,"phpGenericServices")&&t.uint32(336).bool(e.phpGenericServices),null!=e.phpMetadataNamespace&&Object.hasOwnProperty.call(e,"phpMetadataNamespace")&&t.uint32(354).string(e.phpMetadataNamespace),null!=e.rubyPackage&&Object.hasOwnProperty.call(e,"rubyPackage")&&t.uint32(362).string(e.rubyPackage),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},N.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},N.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.FileOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.javaPackage=e.string();break;case 8:n.javaOuterClassname=e.string();break;case 10:n.javaMultipleFiles=e.bool();break;case 20:n.javaGenerateEqualsAndHash=e.bool();break;case 27:n.javaStringCheckUtf8=e.bool();break;case 9:n.optimizeFor=e.int32();break;case 11:n.goPackage=e.string();break;case 16:n.ccGenericServices=e.bool();break;case 17:n.javaGenericServices=e.bool();break;case 18:n.pyGenericServices=e.bool();break;case 42:n.phpGenericServices=e.bool();break;case 23:n.deprecated=e.bool();break;case 31:n.ccEnableArenas=e.bool();break;case 36:n.objcClassPrefix=e.string();break;case 37:n.csharpNamespace=e.string();break;case 39:n.swiftPrefix=e.string();break;case 40:n.phpClassPrefix=e.string();break;case 41:n.phpNamespace=e.string();break;case 44:n.phpMetadataNamespace=e.string();break;case 45:n.rubyPackage=e.string();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return n},N.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},N.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.javaPackage&&e.hasOwnProperty("javaPackage")&&!s.isString(e.javaPackage))return"javaPackage: string expected";if(null!=e.javaOuterClassname&&e.hasOwnProperty("javaOuterClassname")&&!s.isString(e.javaOuterClassname))return"javaOuterClassname: string expected";if(null!=e.javaMultipleFiles&&e.hasOwnProperty("javaMultipleFiles")&&"boolean"!=typeof e.javaMultipleFiles)return"javaMultipleFiles: boolean expected";if(null!=e.javaGenerateEqualsAndHash&&e.hasOwnProperty("javaGenerateEqualsAndHash")&&"boolean"!=typeof e.javaGenerateEqualsAndHash)return"javaGenerateEqualsAndHash: boolean expected";if(null!=e.javaStringCheckUtf8&&e.hasOwnProperty("javaStringCheckUtf8")&&"boolean"!=typeof e.javaStringCheckUtf8)return"javaStringCheckUtf8: boolean expected";if(null!=e.optimizeFor&&e.hasOwnProperty("optimizeFor"))switch(e.optimizeFor){default:return"optimizeFor: enum value expected";case 1:case 2:case 3:}if(null!=e.goPackage&&e.hasOwnProperty("goPackage")&&!s.isString(e.goPackage))return"goPackage: string expected";if(null!=e.ccGenericServices&&e.hasOwnProperty("ccGenericServices")&&"boolean"!=typeof e.ccGenericServices)return"ccGenericServices: boolean expected";if(null!=e.javaGenericServices&&e.hasOwnProperty("javaGenericServices")&&"boolean"!=typeof e.javaGenericServices)return"javaGenericServices: boolean expected";if(null!=e.pyGenericServices&&e.hasOwnProperty("pyGenericServices")&&"boolean"!=typeof e.pyGenericServices)return"pyGenericServices: boolean expected";if(null!=e.phpGenericServices&&e.hasOwnProperty("phpGenericServices")&&"boolean"!=typeof e.phpGenericServices)return"phpGenericServices: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.ccEnableArenas&&e.hasOwnProperty("ccEnableArenas")&&"boolean"!=typeof e.ccEnableArenas)return"ccEnableArenas: boolean expected";if(null!=e.objcClassPrefix&&e.hasOwnProperty("objcClassPrefix")&&!s.isString(e.objcClassPrefix))return"objcClassPrefix: string expected";if(null!=e.csharpNamespace&&e.hasOwnProperty("csharpNamespace")&&!s.isString(e.csharpNamespace))return"csharpNamespace: string expected";if(null!=e.swiftPrefix&&e.hasOwnProperty("swiftPrefix")&&!s.isString(e.swiftPrefix))return"swiftPrefix: string expected";if(null!=e.phpClassPrefix&&e.hasOwnProperty("phpClassPrefix")&&!s.isString(e.phpClassPrefix))return"phpClassPrefix: string expected";if(null!=e.phpNamespace&&e.hasOwnProperty("phpNamespace")&&!s.isString(e.phpNamespace))return"phpNamespace: string expected";if(null!=e.phpMetadataNamespace&&e.hasOwnProperty("phpMetadataNamespace")&&!s.isString(e.phpMetadataNamespace))return"phpMetadataNamespace: string expected";if(null!=e.rubyPackage&&e.hasOwnProperty("rubyPackage")&&!s.isString(e.rubyPackage))return"rubyPackage: string expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null},N.fromObject=function(e){if(e instanceof l.google.protobuf.FileOptions)return e;var t=new l.google.protobuf.FileOptions;switch(null!=e.javaPackage&&(t.javaPackage=String(e.javaPackage)),null!=e.javaOuterClassname&&(t.javaOuterClassname=String(e.javaOuterClassname)),null!=e.javaMultipleFiles&&(t.javaMultipleFiles=Boolean(e.javaMultipleFiles)),null!=e.javaGenerateEqualsAndHash&&(t.javaGenerateEqualsAndHash=Boolean(e.javaGenerateEqualsAndHash)),null!=e.javaStringCheckUtf8&&(t.javaStringCheckUtf8=Boolean(e.javaStringCheckUtf8)),e.optimizeFor){case"SPEED":case 1:t.optimizeFor=1;break;case"CODE_SIZE":case 2:t.optimizeFor=2;break;case"LITE_RUNTIME":case 3:t.optimizeFor=3}if(null!=e.goPackage&&(t.goPackage=String(e.goPackage)),null!=e.ccGenericServices&&(t.ccGenericServices=Boolean(e.ccGenericServices)),null!=e.javaGenericServices&&(t.javaGenericServices=Boolean(e.javaGenericServices)),null!=e.pyGenericServices&&(t.pyGenericServices=Boolean(e.pyGenericServices)),null!=e.phpGenericServices&&(t.phpGenericServices=Boolean(e.phpGenericServices)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),null!=e.ccEnableArenas&&(t.ccEnableArenas=Boolean(e.ccEnableArenas)),null!=e.objcClassPrefix&&(t.objcClassPrefix=String(e.objcClassPrefix)),null!=e.csharpNamespace&&(t.csharpNamespace=String(e.csharpNamespace)),null!=e.swiftPrefix&&(t.swiftPrefix=String(e.swiftPrefix)),null!=e.phpClassPrefix&&(t.phpClassPrefix=String(e.phpClassPrefix)),null!=e.phpNamespace&&(t.phpNamespace=String(e.phpNamespace)),null!=e.phpMetadataNamespace&&(t.phpMetadataNamespace=String(e.phpMetadataNamespace)),null!=e.rubyPackage&&(t.rubyPackage=String(e.rubyPackage)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},N.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.javaPackage="",r.javaOuterClassname="",r.optimizeFor=t.enums===String?"SPEED":1,r.javaMultipleFiles=!1,r.goPackage="",r.ccGenericServices=!1,r.javaGenericServices=!1,r.pyGenericServices=!1,r.javaGenerateEqualsAndHash=!1,r.deprecated=!1,r.javaStringCheckUtf8=!1,r.ccEnableArenas=!0,r.objcClassPrefix="",r.csharpNamespace="",r.swiftPrefix="",r.phpClassPrefix="",r.phpNamespace="",r.phpGenericServices=!1,r.phpMetadataNamespace="",r.rubyPackage=""),null!=e.javaPackage&&e.hasOwnProperty("javaPackage")&&(r.javaPackage=e.javaPackage),null!=e.javaOuterClassname&&e.hasOwnProperty("javaOuterClassname")&&(r.javaOuterClassname=e.javaOuterClassname),null!=e.optimizeFor&&e.hasOwnProperty("optimizeFor")&&(r.optimizeFor=t.enums===String?l.google.protobuf.FileOptions.OptimizeMode[e.optimizeFor]:e.optimizeFor),null!=e.javaMultipleFiles&&e.hasOwnProperty("javaMultipleFiles")&&(r.javaMultipleFiles=e.javaMultipleFiles),null!=e.goPackage&&e.hasOwnProperty("goPackage")&&(r.goPackage=e.goPackage),null!=e.ccGenericServices&&e.hasOwnProperty("ccGenericServices")&&(r.ccGenericServices=e.ccGenericServices),null!=e.javaGenericServices&&e.hasOwnProperty("javaGenericServices")&&(r.javaGenericServices=e.javaGenericServices),null!=e.pyGenericServices&&e.hasOwnProperty("pyGenericServices")&&(r.pyGenericServices=e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&e.hasOwnProperty("javaGenerateEqualsAndHash")&&(r.javaGenerateEqualsAndHash=e.javaGenerateEqualsAndHash),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),null!=e.javaStringCheckUtf8&&e.hasOwnProperty("javaStringCheckUtf8")&&(r.javaStringCheckUtf8=e.javaStringCheckUtf8),null!=e.ccEnableArenas&&e.hasOwnProperty("ccEnableArenas")&&(r.ccEnableArenas=e.ccEnableArenas),null!=e.objcClassPrefix&&e.hasOwnProperty("objcClassPrefix")&&(r.objcClassPrefix=e.objcClassPrefix),null!=e.csharpNamespace&&e.hasOwnProperty("csharpNamespace")&&(r.csharpNamespace=e.csharpNamespace),null!=e.swiftPrefix&&e.hasOwnProperty("swiftPrefix")&&(r.swiftPrefix=e.swiftPrefix),null!=e.phpClassPrefix&&e.hasOwnProperty("phpClassPrefix")&&(r.phpClassPrefix=e.phpClassPrefix),null!=e.phpNamespace&&e.hasOwnProperty("phpNamespace")&&(r.phpNamespace=e.phpNamespace),null!=e.phpGenericServices&&e.hasOwnProperty("phpGenericServices")&&(r.phpGenericServices=e.phpGenericServices),null!=e.phpMetadataNamespace&&e.hasOwnProperty("phpMetadataNamespace")&&(r.phpMetadataNamespace=e.phpMetadataNamespace),null!=e.rubyPackage&&e.hasOwnProperty("rubyPackage")&&(r.rubyPackage=e.rubyPackage),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},N.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},N.OptimizeMode=(n={},(t=Object.create(n))[n[1]="SPEED"]=1,t[n[2]="CODE_SIZE"]=2,t[n[3]="LITE_RUNTIME"]=3,t),N),r.MessageOptions=(I.prototype.messageSetWireFormat=!1,I.prototype.noStandardDescriptorAccessor=!1,I.prototype.deprecated=!1,I.prototype.mapEntry=!1,I.prototype.uninterpretedOption=s.emptyArray,I.create=function(e){return new I(e)},I.encode=function(e,t){if(t=t||a.create(),null!=e.messageSetWireFormat&&Object.hasOwnProperty.call(e,"messageSetWireFormat")&&t.uint32(8).bool(e.messageSetWireFormat),null!=e.noStandardDescriptorAccessor&&Object.hasOwnProperty.call(e,"noStandardDescriptorAccessor")&&t.uint32(16).bool(e.noStandardDescriptorAccessor),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.mapEntry&&Object.hasOwnProperty.call(e,"mapEntry")&&t.uint32(56).bool(e.mapEntry),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},I.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},I.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.MessageOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.messageSetWireFormat=e.bool();break;case 2:n.noStandardDescriptorAccessor=e.bool();break;case 3:n.deprecated=e.bool();break;case 7:n.mapEntry=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return n},I.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},I.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.messageSetWireFormat&&e.hasOwnProperty("messageSetWireFormat")&&"boolean"!=typeof e.messageSetWireFormat)return"messageSetWireFormat: boolean expected";if(null!=e.noStandardDescriptorAccessor&&e.hasOwnProperty("noStandardDescriptorAccessor")&&"boolean"!=typeof e.noStandardDescriptorAccessor)return"noStandardDescriptorAccessor: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.mapEntry&&e.hasOwnProperty("mapEntry")&&"boolean"!=typeof e.mapEntry)return"mapEntry: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null},I.fromObject=function(e){if(e instanceof l.google.protobuf.MessageOptions)return e;var t=new l.google.protobuf.MessageOptions;if(null!=e.messageSetWireFormat&&(t.messageSetWireFormat=Boolean(e.messageSetWireFormat)),null!=e.noStandardDescriptorAccessor&&(t.noStandardDescriptorAccessor=Boolean(e.noStandardDescriptorAccessor)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),null!=e.mapEntry&&(t.mapEntry=Boolean(e.mapEntry)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},I.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.messageSetWireFormat=!1,r.noStandardDescriptorAccessor=!1,r.deprecated=!1,r.mapEntry=!1),null!=e.messageSetWireFormat&&e.hasOwnProperty("messageSetWireFormat")&&(r.messageSetWireFormat=e.messageSetWireFormat),null!=e.noStandardDescriptorAccessor&&e.hasOwnProperty("noStandardDescriptorAccessor")&&(r.noStandardDescriptorAccessor=e.noStandardDescriptorAccessor),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),null!=e.mapEntry&&e.hasOwnProperty("mapEntry")&&(r.mapEntry=e.mapEntry),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},I.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},I),r.FieldOptions=(q.prototype.ctype=0,q.prototype.packed=!1,q.prototype.jstype=0,q.prototype.lazy=!1,q.prototype.deprecated=!1,q.prototype.weak=!1,q.prototype.uninterpretedOption=s.emptyArray,q.create=function(e){return new q(e)},q.encode=function(e,t){if(t=t||a.create(),null!=e.ctype&&Object.hasOwnProperty.call(e,"ctype")&&t.uint32(8).int32(e.ctype),null!=e.packed&&Object.hasOwnProperty.call(e,"packed")&&t.uint32(16).bool(e.packed),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.lazy&&Object.hasOwnProperty.call(e,"lazy")&&t.uint32(40).bool(e.lazy),null!=e.jstype&&Object.hasOwnProperty.call(e,"jstype")&&t.uint32(48).int32(e.jstype),null!=e.weak&&Object.hasOwnProperty.call(e,"weak")&&t.uint32(80).bool(e.weak),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},q.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},q.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.FieldOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.ctype=e.int32();break;case 2:n.packed=e.bool();break;case 6:n.jstype=e.int32();break;case 5:n.lazy=e.bool();break;case 3:n.deprecated=e.bool();break;case 10:n.weak=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return n},q.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},q.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.ctype&&e.hasOwnProperty("ctype"))switch(e.ctype){default:return"ctype: enum value expected";case 0:case 1:case 2:}if(null!=e.packed&&e.hasOwnProperty("packed")&&"boolean"!=typeof e.packed)return"packed: boolean expected";if(null!=e.jstype&&e.hasOwnProperty("jstype"))switch(e.jstype){default:return"jstype: enum value expected";case 0:case 1:case 2:}if(null!=e.lazy&&e.hasOwnProperty("lazy")&&"boolean"!=typeof e.lazy)return"lazy: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.weak&&e.hasOwnProperty("weak")&&"boolean"!=typeof e.weak)return"weak: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null},q.fromObject=function(e){if(e instanceof l.google.protobuf.FieldOptions)return e;var t=new l.google.protobuf.FieldOptions;switch(e.ctype){case"STRING":case 0:t.ctype=0;break;case"CORD":case 1:t.ctype=1;break;case"STRING_PIECE":case 2:t.ctype=2}switch(null!=e.packed&&(t.packed=Boolean(e.packed)),e.jstype){case"JS_NORMAL":case 0:t.jstype=0;break;case"JS_STRING":case 1:t.jstype=1;break;case"JS_NUMBER":case 2:t.jstype=2}if(null!=e.lazy&&(t.lazy=Boolean(e.lazy)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),null!=e.weak&&(t.weak=Boolean(e.weak)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},q.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.ctype=t.enums===String?"STRING":0,r.packed=!1,r.deprecated=!1,r.lazy=!1,r.jstype=t.enums===String?"JS_NORMAL":0,r.weak=!1),null!=e.ctype&&e.hasOwnProperty("ctype")&&(r.ctype=t.enums===String?l.google.protobuf.FieldOptions.CType[e.ctype]:e.ctype),null!=e.packed&&e.hasOwnProperty("packed")&&(r.packed=e.packed),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),null!=e.lazy&&e.hasOwnProperty("lazy")&&(r.lazy=e.lazy),null!=e.jstype&&e.hasOwnProperty("jstype")&&(r.jstype=t.enums===String?l.google.protobuf.FieldOptions.JSType[e.jstype]:e.jstype),null!=e.weak&&e.hasOwnProperty("weak")&&(r.weak=e.weak),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},q.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},q.CType=(n={},(t=Object.create(n))[n[0]="STRING"]=0,t[n[1]="CORD"]=1,t[n[2]="STRING_PIECE"]=2,t),q.JSType=(n={},(t=Object.create(n))[n[0]="JS_NORMAL"]=0,t[n[1]="JS_STRING"]=1,t[n[2]="JS_NUMBER"]=2,t),q),r.OneofOptions=(M.prototype.uninterpretedOption=s.emptyArray,M.create=function(e){return new M(e)},M.encode=function(e,t){if(t=t||a.create(),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},M.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},M.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.OneofOptions;e.pos<r;){var o=e.uint32();o>>>3==999?(n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()))):e.skipType(7&o)}return n},M.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},M.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null},M.fromObject=function(e){if(e instanceof l.google.protobuf.OneofOptions)return e;var t=new l.google.protobuf.OneofOptions;if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},M.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},M.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},M),r.EnumOptions=(L.prototype.allowAlias=!1,L.prototype.deprecated=!1,L.prototype.uninterpretedOption=s.emptyArray,L.create=function(e){return new L(e)},L.encode=function(e,t){if(t=t||a.create(),null!=e.allowAlias&&Object.hasOwnProperty.call(e,"allowAlias")&&t.uint32(16).bool(e.allowAlias),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},L.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},L.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.EnumOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 2:n.allowAlias=e.bool();break;case 3:n.deprecated=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return n},L.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},L.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.allowAlias&&e.hasOwnProperty("allowAlias")&&"boolean"!=typeof e.allowAlias)return"allowAlias: boolean expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null},L.fromObject=function(e){if(e instanceof l.google.protobuf.EnumOptions)return e;var t=new l.google.protobuf.EnumOptions;if(null!=e.allowAlias&&(t.allowAlias=Boolean(e.allowAlias)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},L.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.allowAlias=!1,r.deprecated=!1),null!=e.allowAlias&&e.hasOwnProperty("allowAlias")&&(r.allowAlias=e.allowAlias),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},L.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},L),r.EnumValueOptions=(F.prototype.deprecated=!1,F.prototype.uninterpretedOption=s.emptyArray,F.create=function(e){return new F(e)},F.encode=function(e,t){if(t=t||a.create(),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(8).bool(e.deprecated),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return t},F.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},F.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.EnumValueOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.deprecated=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return n},F.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},F.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null},F.fromObject=function(e){if(e instanceof l.google.protobuf.EnumValueOptions)return e;var t=new l.google.protobuf.EnumValueOptions;if(null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return t},F.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.deprecated=!1),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return r},F.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},F),r.ServiceOptions=(B.prototype.deprecated=!1,B.prototype.uninterpretedOption=s.emptyArray,B.prototype[".google.api.defaultHost"]="",B.prototype[".google.api.oauthScopes"]="",B.create=function(e){return new B(e)},B.encode=function(e,t){if(t=t||a.create(),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(264).bool(e.deprecated),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();return null!=e[".google.api.defaultHost"]&&Object.hasOwnProperty.call(e,".google.api.defaultHost")&&t.uint32(8394).string(e[".google.api.defaultHost"]),null!=e[".google.api.oauthScopes"]&&Object.hasOwnProperty.call(e,".google.api.oauthScopes")&&t.uint32(8402).string(e[".google.api.oauthScopes"]),t},B.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},B.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.ServiceOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 33:n.deprecated=e.bool();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1049:n[".google.api.defaultHost"]=e.string();break;case 1050:n[".google.api.oauthScopes"]=e.string();break;default:e.skipType(7&o)}}return n},B.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},B.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t){var r=l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]);if(r)return"uninterpretedOption."+r}}return null!=e[".google.api.defaultHost"]&&e.hasOwnProperty(".google.api.defaultHost")&&!s.isString(e[".google.api.defaultHost"])?".google.api.defaultHost: string expected":null!=e[".google.api.oauthScopes"]&&e.hasOwnProperty(".google.api.oauthScopes")&&!s.isString(e[".google.api.oauthScopes"])?".google.api.oauthScopes: string expected":null},B.fromObject=function(e){if(e instanceof l.google.protobuf.ServiceOptions)return e;var t=new l.google.protobuf.ServiceOptions;if(null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}return null!=e[".google.api.defaultHost"]&&(t[".google.api.defaultHost"]=String(e[".google.api.defaultHost"])),null!=e[".google.api.oauthScopes"]&&(t[".google.api.oauthScopes"]=String(e[".google.api.oauthScopes"])),t},B.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[]),t.defaults&&(r.deprecated=!1,r[".google.api.defaultHost"]="",r[".google.api.oauthScopes"]=""),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}return null!=e[".google.api.defaultHost"]&&e.hasOwnProperty(".google.api.defaultHost")&&(r[".google.api.defaultHost"]=e[".google.api.defaultHost"]),null!=e[".google.api.oauthScopes"]&&e.hasOwnProperty(".google.api.oauthScopes")&&(r[".google.api.oauthScopes"]=e[".google.api.oauthScopes"]),r},B.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},B),r.MethodOptions=(V.prototype.deprecated=!1,V.prototype.idempotencyLevel=0,V.prototype.uninterpretedOption=s.emptyArray,V.prototype[".google.longrunning.operationInfo"]=null,V.prototype[".google.api.http"]=null,V.prototype[".google.api.methodSignature"]=s.emptyArray,V.create=function(e){return new V(e)},V.encode=function(e,t){if(t=t||a.create(),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(264).bool(e.deprecated),null!=e.idempotencyLevel&&Object.hasOwnProperty.call(e,"idempotencyLevel")&&t.uint32(272).int32(e.idempotencyLevel),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var r=0;r<e.uninterpretedOption.length;++r)l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[r],t.uint32(7994).fork()).ldelim();if(null!=e[".google.longrunning.operationInfo"]&&Object.hasOwnProperty.call(e,".google.longrunning.operationInfo")&&l.google.longrunning.OperationInfo.encode(e[".google.longrunning.operationInfo"],t.uint32(8394).fork()).ldelim(),null!=e[".google.api.methodSignature"]&&e[".google.api.methodSignature"].length)for(r=0;r<e[".google.api.methodSignature"].length;++r)t.uint32(8410).string(e[".google.api.methodSignature"][r]);return null!=e[".google.api.http"]&&Object.hasOwnProperty.call(e,".google.api.http")&&l.google.api.HttpRule.encode(e[".google.api.http"],t.uint32(578365826).fork()).ldelim(),t},V.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},V.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.MethodOptions;e.pos<r;){var o=e.uint32();switch(o>>>3){case 33:n.deprecated=e.bool();break;case 34:n.idempotencyLevel=e.int32();break;case 999:n.uninterpretedOption&&n.uninterpretedOption.length||(n.uninterpretedOption=[]),n.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 1049:n[".google.longrunning.operationInfo"]=l.google.longrunning.OperationInfo.decode(e,e.uint32());break;case 72295728:n[".google.api.http"]=l.google.api.HttpRule.decode(e,e.uint32());break;case 1051:n[".google.api.methodSignature"]&&n[".google.api.methodSignature"].length||(n[".google.api.methodSignature"]=[]),n[".google.api.methodSignature"].push(e.string());break;default:e.skipType(7&o)}}return n},V.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},V.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.deprecated&&e.hasOwnProperty("deprecated")&&"boolean"!=typeof e.deprecated)return"deprecated: boolean expected";if(null!=e.idempotencyLevel&&e.hasOwnProperty("idempotencyLevel"))switch(e.idempotencyLevel){default:return"idempotencyLevel: enum value expected";case 0:case 1:case 2:}if(null!=e.uninterpretedOption&&e.hasOwnProperty("uninterpretedOption")){if(!Array.isArray(e.uninterpretedOption))return"uninterpretedOption: array expected";for(var t=0;t<e.uninterpretedOption.length;++t)if(r=l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]))return"uninterpretedOption."+r}var r;if(null!=e[".google.longrunning.operationInfo"]&&e.hasOwnProperty(".google.longrunning.operationInfo")&&(r=l.google.longrunning.OperationInfo.verify(e[".google.longrunning.operationInfo"])))return".google.longrunning.operationInfo."+r;if(null!=e[".google.api.http"]&&e.hasOwnProperty(".google.api.http")&&(r=l.google.api.HttpRule.verify(e[".google.api.http"])))return".google.api.http."+r;if(null!=e[".google.api.methodSignature"]&&e.hasOwnProperty(".google.api.methodSignature")){if(!Array.isArray(e[".google.api.methodSignature"]))return".google.api.methodSignature: array expected";for(t=0;t<e[".google.api.methodSignature"].length;++t)if(!s.isString(e[".google.api.methodSignature"][t]))return".google.api.methodSignature: string[] expected"}return null},V.fromObject=function(e){if(e instanceof l.google.protobuf.MethodOptions)return e;var t=new l.google.protobuf.MethodOptions;switch(null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.idempotencyLevel){case"IDEMPOTENCY_UNKNOWN":case 0:t.idempotencyLevel=0;break;case"NO_SIDE_EFFECTS":case 1:t.idempotencyLevel=1;break;case"IDEMPOTENT":case 2:t.idempotencyLevel=2}if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r){if("object"!=typeof e.uninterpretedOption[r])throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected");t.uninterpretedOption[r]=l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[r])}}if(null!=e[".google.longrunning.operationInfo"]){if("object"!=typeof e[".google.longrunning.operationInfo"])throw TypeError(".google.protobuf.MethodOptions..google.longrunning.operationInfo: object expected");t[".google.longrunning.operationInfo"]=l.google.longrunning.OperationInfo.fromObject(e[".google.longrunning.operationInfo"])}if(null!=e[".google.api.http"]){if("object"!=typeof e[".google.api.http"])throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected");t[".google.api.http"]=l.google.api.HttpRule.fromObject(e[".google.api.http"])}if(e[".google.api.methodSignature"]){if(!Array.isArray(e[".google.api.methodSignature"]))throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected");for(t[".google.api.methodSignature"]=[],r=0;r<e[".google.api.methodSignature"].length;++r)t[".google.api.methodSignature"][r]=String(e[".google.api.methodSignature"][r])}return t},V.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.uninterpretedOption=[],r[".google.api.methodSignature"]=[]),t.defaults&&(r.deprecated=!1,r.idempotencyLevel=t.enums===String?"IDEMPOTENCY_UNKNOWN":0,r[".google.longrunning.operationInfo"]=null,r[".google.api.http"]=null),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(r.deprecated=e.deprecated),null!=e.idempotencyLevel&&e.hasOwnProperty("idempotencyLevel")&&(r.idempotencyLevel=t.enums===String?l.google.protobuf.MethodOptions.IdempotencyLevel[e.idempotencyLevel]:e.idempotencyLevel),e.uninterpretedOption&&e.uninterpretedOption.length){r.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n)r.uninterpretedOption[n]=l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[n],t)}if(null!=e[".google.longrunning.operationInfo"]&&e.hasOwnProperty(".google.longrunning.operationInfo")&&(r[".google.longrunning.operationInfo"]=l.google.longrunning.OperationInfo.toObject(e[".google.longrunning.operationInfo"],t)),e[".google.api.methodSignature"]&&e[".google.api.methodSignature"].length)for(r[".google.api.methodSignature"]=[],n=0;n<e[".google.api.methodSignature"].length;++n)r[".google.api.methodSignature"][n]=e[".google.api.methodSignature"][n];return null!=e[".google.api.http"]&&e.hasOwnProperty(".google.api.http")&&(r[".google.api.http"]=l.google.api.HttpRule.toObject(e[".google.api.http"],t)),r},V.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},V.IdempotencyLevel=(n={},(t=Object.create(n))[n[0]="IDEMPOTENCY_UNKNOWN"]=0,t[n[1]="NO_SIDE_EFFECTS"]=1,t[n[2]="IDEMPOTENT"]=2,t),V),r.UninterpretedOption=(U.prototype.name=s.emptyArray,U.prototype.identifierValue="",U.prototype.positiveIntValue=s.Long?s.Long.fromBits(0,0,!0):0,U.prototype.negativeIntValue=s.Long?s.Long.fromBits(0,0,!1):0,U.prototype.doubleValue=0,U.prototype.stringValue=s.newBuffer([]),U.prototype.aggregateValue="",U.create=function(e){return new U(e)},U.encode=function(e,t){if(t=t||a.create(),null!=e.name&&e.name.length)for(var r=0;r<e.name.length;++r)l.google.protobuf.UninterpretedOption.NamePart.encode(e.name[r],t.uint32(18).fork()).ldelim();return null!=e.identifierValue&&Object.hasOwnProperty.call(e,"identifierValue")&&t.uint32(26).string(e.identifierValue),null!=e.positiveIntValue&&Object.hasOwnProperty.call(e,"positiveIntValue")&&t.uint32(32).uint64(e.positiveIntValue),null!=e.negativeIntValue&&Object.hasOwnProperty.call(e,"negativeIntValue")&&t.uint32(40).int64(e.negativeIntValue),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(49).double(e.doubleValue),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&t.uint32(58).bytes(e.stringValue),null!=e.aggregateValue&&Object.hasOwnProperty.call(e,"aggregateValue")&&t.uint32(66).string(e.aggregateValue),t},U.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},U.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.UninterpretedOption;e.pos<r;){var o=e.uint32();switch(o>>>3){case 2:n.name&&n.name.length||(n.name=[]),n.name.push(l.google.protobuf.UninterpretedOption.NamePart.decode(e,e.uint32()));break;case 3:n.identifierValue=e.string();break;case 4:n.positiveIntValue=e.uint64();break;case 5:n.negativeIntValue=e.int64();break;case 6:n.doubleValue=e.double();break;case 7:n.stringValue=e.bytes();break;case 8:n.aggregateValue=e.string();break;default:e.skipType(7&o)}}return n},U.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},U.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")){if(!Array.isArray(e.name))return"name: array expected";for(var t=0;t<e.name.length;++t){var r=l.google.protobuf.UninterpretedOption.NamePart.verify(e.name[t]);if(r)return"name."+r}}return null!=e.identifierValue&&e.hasOwnProperty("identifierValue")&&!s.isString(e.identifierValue)?"identifierValue: string expected":null!=e.positiveIntValue&&e.hasOwnProperty("positiveIntValue")&&!(s.isInteger(e.positiveIntValue)||e.positiveIntValue&&s.isInteger(e.positiveIntValue.low)&&s.isInteger(e.positiveIntValue.high))?"positiveIntValue: integer|Long expected":null!=e.negativeIntValue&&e.hasOwnProperty("negativeIntValue")&&!(s.isInteger(e.negativeIntValue)||e.negativeIntValue&&s.isInteger(e.negativeIntValue.low)&&s.isInteger(e.negativeIntValue.high))?"negativeIntValue: integer|Long expected":null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&"number"!=typeof e.doubleValue?"doubleValue: number expected":null!=e.stringValue&&e.hasOwnProperty("stringValue")&&!(e.stringValue&&"number"==typeof e.stringValue.length||s.isString(e.stringValue))?"stringValue: buffer expected":null!=e.aggregateValue&&e.hasOwnProperty("aggregateValue")&&!s.isString(e.aggregateValue)?"aggregateValue: string expected":null},U.fromObject=function(e){if(e instanceof l.google.protobuf.UninterpretedOption)return e;var t=new l.google.protobuf.UninterpretedOption;if(e.name){if(!Array.isArray(e.name))throw TypeError(".google.protobuf.UninterpretedOption.name: array expected");t.name=[];for(var r=0;r<e.name.length;++r){if("object"!=typeof e.name[r])throw TypeError(".google.protobuf.UninterpretedOption.name: object expected");t.name[r]=l.google.protobuf.UninterpretedOption.NamePart.fromObject(e.name[r])}}return null!=e.identifierValue&&(t.identifierValue=String(e.identifierValue)),null!=e.positiveIntValue&&(s.Long?(t.positiveIntValue=s.Long.fromValue(e.positiveIntValue)).unsigned=!0:"string"==typeof e.positiveIntValue?t.positiveIntValue=parseInt(e.positiveIntValue,10):"number"==typeof e.positiveIntValue?t.positiveIntValue=e.positiveIntValue:"object"==typeof e.positiveIntValue&&(t.positiveIntValue=new s.LongBits(e.positiveIntValue.low>>>0,e.positiveIntValue.high>>>0).toNumber(!0))),null!=e.negativeIntValue&&(s.Long?(t.negativeIntValue=s.Long.fromValue(e.negativeIntValue)).unsigned=!1:"string"==typeof e.negativeIntValue?t.negativeIntValue=parseInt(e.negativeIntValue,10):"number"==typeof e.negativeIntValue?t.negativeIntValue=e.negativeIntValue:"object"==typeof e.negativeIntValue&&(t.negativeIntValue=new s.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber())),null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.stringValue&&("string"==typeof e.stringValue?s.base64.decode(e.stringValue,t.stringValue=s.newBuffer(s.base64.length(e.stringValue)),0):e.stringValue.length&&(t.stringValue=e.stringValue)),null!=e.aggregateValue&&(t.aggregateValue=String(e.aggregateValue)),t},U.toObject=function(e,t){var r,n={};if(((t=t||{}).arrays||t.defaults)&&(n.name=[]),t.defaults&&(n.identifierValue="",s.Long?(r=new s.Long(0,0,!0),n.positiveIntValue=t.longs===String?r.toString():t.longs===Number?r.toNumber():r):n.positiveIntValue=t.longs===String?"0":0,s.Long?(r=new s.Long(0,0,!1),n.negativeIntValue=t.longs===String?r.toString():t.longs===Number?r.toNumber():r):n.negativeIntValue=t.longs===String?"0":0,n.doubleValue=0,t.bytes===String?n.stringValue="":(n.stringValue=[],t.bytes!==Array&&(n.stringValue=s.newBuffer(n.stringValue))),n.aggregateValue=""),e.name&&e.name.length){n.name=[];for(var o=0;o<e.name.length;++o)n.name[o]=l.google.protobuf.UninterpretedOption.NamePart.toObject(e.name[o],t)}return null!=e.identifierValue&&e.hasOwnProperty("identifierValue")&&(n.identifierValue=e.identifierValue),null!=e.positiveIntValue&&e.hasOwnProperty("positiveIntValue")&&("number"==typeof e.positiveIntValue?n.positiveIntValue=t.longs===String?String(e.positiveIntValue):e.positiveIntValue:n.positiveIntValue=t.longs===String?s.Long.prototype.toString.call(e.positiveIntValue):t.longs===Number?new s.LongBits(e.positiveIntValue.low>>>0,e.positiveIntValue.high>>>0).toNumber(!0):e.positiveIntValue),null!=e.negativeIntValue&&e.hasOwnProperty("negativeIntValue")&&("number"==typeof e.negativeIntValue?n.negativeIntValue=t.longs===String?String(e.negativeIntValue):e.negativeIntValue:n.negativeIntValue=t.longs===String?s.Long.prototype.toString.call(e.negativeIntValue):t.longs===Number?new s.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber():e.negativeIntValue),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(n.stringValue=t.bytes===String?s.base64.encode(e.stringValue,0,e.stringValue.length):t.bytes===Array?Array.prototype.slice.call(e.stringValue):e.stringValue),null!=e.aggregateValue&&e.hasOwnProperty("aggregateValue")&&(n.aggregateValue=e.aggregateValue),n},U.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},U.NamePart=($.prototype.namePart="",$.prototype.isExtension=!1,$.create=function(e){return new $(e)},$.encode=function(e,t){return(t=t||a.create()).uint32(10).string(e.namePart),t.uint32(16).bool(e.isExtension),t},$.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},$.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.UninterpretedOption.NamePart;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.namePart=e.string();break;case 2:n.isExtension=e.bool();break;default:e.skipType(7&o)}}if(!n.hasOwnProperty("namePart"))throw s.ProtocolError("missing required 'namePart'",{instance:n});if(n.hasOwnProperty("isExtension"))return n;throw s.ProtocolError("missing required 'isExtension'",{instance:n})},$.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},$.verify=function(e){return"object"!=typeof e||null===e?"object expected":s.isString(e.namePart)?"boolean"!=typeof e.isExtension?"isExtension: boolean expected":null:"namePart: string expected"},$.fromObject=function(e){var t;return e instanceof l.google.protobuf.UninterpretedOption.NamePart?e:(t=new l.google.protobuf.UninterpretedOption.NamePart,null!=e.namePart&&(t.namePart=String(e.namePart)),null!=e.isExtension&&(t.isExtension=Boolean(e.isExtension)),t)},$.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.namePart="",r.isExtension=!1),null!=e.namePart&&e.hasOwnProperty("namePart")&&(r.namePart=e.namePart),null!=e.isExtension&&e.hasOwnProperty("isExtension")&&(r.isExtension=e.isExtension),r},$.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},$),U),r.SourceCodeInfo=(G.prototype.location=s.emptyArray,G.create=function(e){return new G(e)},G.encode=function(e,t){if(t=t||a.create(),null!=e.location&&e.location.length)for(var r=0;r<e.location.length;++r)l.google.protobuf.SourceCodeInfo.Location.encode(e.location[r],t.uint32(10).fork()).ldelim();return t},G.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},G.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.SourceCodeInfo;e.pos<r;){var o=e.uint32();o>>>3==1?(n.location&&n.location.length||(n.location=[]),n.location.push(l.google.protobuf.SourceCodeInfo.Location.decode(e,e.uint32()))):e.skipType(7&o)}return n},G.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},G.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.location&&e.hasOwnProperty("location")){if(!Array.isArray(e.location))return"location: array expected";for(var t=0;t<e.location.length;++t){var r=l.google.protobuf.SourceCodeInfo.Location.verify(e.location[t]);if(r)return"location."+r}}return null},G.fromObject=function(e){if(e instanceof l.google.protobuf.SourceCodeInfo)return e;var t=new l.google.protobuf.SourceCodeInfo;if(e.location){if(!Array.isArray(e.location))throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected");t.location=[];for(var r=0;r<e.location.length;++r){if("object"!=typeof e.location[r])throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected");t.location[r]=l.google.protobuf.SourceCodeInfo.Location.fromObject(e.location[r])}}return t},G.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.location=[]),e.location&&e.location.length){r.location=[];for(var n=0;n<e.location.length;++n)r.location[n]=l.google.protobuf.SourceCodeInfo.Location.toObject(e.location[n],t)}return r},G.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},G.Location=(H.prototype.path=s.emptyArray,H.prototype.span=s.emptyArray,H.prototype.leadingComments="",H.prototype.trailingComments="",H.prototype.leadingDetachedComments=s.emptyArray,H.create=function(e){return new H(e)},H.encode=function(e,t){if(t=t||a.create(),null!=e.path&&e.path.length){t.uint32(10).fork();for(var r=0;r<e.path.length;++r)t.int32(e.path[r]);t.ldelim()}if(null!=e.span&&e.span.length){for(t.uint32(18).fork(),r=0;r<e.span.length;++r)t.int32(e.span[r]);t.ldelim()}if(null!=e.leadingComments&&Object.hasOwnProperty.call(e,"leadingComments")&&t.uint32(26).string(e.leadingComments),null!=e.trailingComments&&Object.hasOwnProperty.call(e,"trailingComments")&&t.uint32(34).string(e.trailingComments),null!=e.leadingDetachedComments&&e.leadingDetachedComments.length)for(r=0;r<e.leadingDetachedComments.length;++r)t.uint32(50).string(e.leadingDetachedComments[r]);return t},H.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},H.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.SourceCodeInfo.Location;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:if(n.path&&n.path.length||(n.path=[]),2==(7&o))for(var a=e.uint32()+e.pos;e.pos<a;)n.path.push(e.int32());else n.path.push(e.int32());break;case 2:if(n.span&&n.span.length||(n.span=[]),2==(7&o))for(a=e.uint32()+e.pos;e.pos<a;)n.span.push(e.int32());else n.span.push(e.int32());break;case 3:n.leadingComments=e.string();break;case 4:n.trailingComments=e.string();break;case 6:n.leadingDetachedComments&&n.leadingDetachedComments.length||(n.leadingDetachedComments=[]),n.leadingDetachedComments.push(e.string());break;default:e.skipType(7&o)}}return n},H.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},H.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.path&&e.hasOwnProperty("path")){if(!Array.isArray(e.path))return"path: array expected";for(var t=0;t<e.path.length;++t)if(!s.isInteger(e.path[t]))return"path: integer[] expected"}if(null!=e.span&&e.hasOwnProperty("span")){if(!Array.isArray(e.span))return"span: array expected";for(t=0;t<e.span.length;++t)if(!s.isInteger(e.span[t]))return"span: integer[] expected"}if(null!=e.leadingComments&&e.hasOwnProperty("leadingComments")&&!s.isString(e.leadingComments))return"leadingComments: string expected";if(null!=e.trailingComments&&e.hasOwnProperty("trailingComments")&&!s.isString(e.trailingComments))return"trailingComments: string expected";if(null!=e.leadingDetachedComments&&e.hasOwnProperty("leadingDetachedComments")){if(!Array.isArray(e.leadingDetachedComments))return"leadingDetachedComments: array expected";for(t=0;t<e.leadingDetachedComments.length;++t)if(!s.isString(e.leadingDetachedComments[t]))return"leadingDetachedComments: string[] expected"}return null},H.fromObject=function(e){if(e instanceof l.google.protobuf.SourceCodeInfo.Location)return e;var t=new l.google.protobuf.SourceCodeInfo.Location;if(e.path){if(!Array.isArray(e.path))throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected");t.path=[];for(var r=0;r<e.path.length;++r)t.path[r]=0|e.path[r]}if(e.span){if(!Array.isArray(e.span))throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected");for(t.span=[],r=0;r<e.span.length;++r)t.span[r]=0|e.span[r]}if(null!=e.leadingComments&&(t.leadingComments=String(e.leadingComments)),null!=e.trailingComments&&(t.trailingComments=String(e.trailingComments)),e.leadingDetachedComments){if(!Array.isArray(e.leadingDetachedComments))throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected");for(t.leadingDetachedComments=[],r=0;r<e.leadingDetachedComments.length;++r)t.leadingDetachedComments[r]=String(e.leadingDetachedComments[r])}return t},H.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.path=[],r.span=[],r.leadingDetachedComments=[]),t.defaults&&(r.leadingComments="",r.trailingComments=""),e.path&&e.path.length){r.path=[];for(var n=0;n<e.path.length;++n)r.path[n]=e.path[n]}if(e.span&&e.span.length)for(r.span=[],n=0;n<e.span.length;++n)r.span[n]=e.span[n];if(null!=e.leadingComments&&e.hasOwnProperty("leadingComments")&&(r.leadingComments=e.leadingComments),null!=e.trailingComments&&e.hasOwnProperty("trailingComments")&&(r.trailingComments=e.trailingComments),e.leadingDetachedComments&&e.leadingDetachedComments.length)for(r.leadingDetachedComments=[],n=0;n<e.leadingDetachedComments.length;++n)r.leadingDetachedComments[n]=e.leadingDetachedComments[n];return r},H.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},H),G),r.GeneratedCodeInfo=(z.prototype.annotation=s.emptyArray,z.create=function(e){return new z(e)},z.encode=function(e,t){if(t=t||a.create(),null!=e.annotation&&e.annotation.length)for(var r=0;r<e.annotation.length;++r)l.google.protobuf.GeneratedCodeInfo.Annotation.encode(e.annotation[r],t.uint32(10).fork()).ldelim();return t},z.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},z.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.GeneratedCodeInfo;e.pos<r;){var o=e.uint32();o>>>3==1?(n.annotation&&n.annotation.length||(n.annotation=[]),n.annotation.push(l.google.protobuf.GeneratedCodeInfo.Annotation.decode(e,e.uint32()))):e.skipType(7&o)}return n},z.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},z.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.annotation&&e.hasOwnProperty("annotation")){if(!Array.isArray(e.annotation))return"annotation: array expected";for(var t=0;t<e.annotation.length;++t){var r=l.google.protobuf.GeneratedCodeInfo.Annotation.verify(e.annotation[t]);if(r)return"annotation."+r}}return null},z.fromObject=function(e){if(e instanceof l.google.protobuf.GeneratedCodeInfo)return e;var t=new l.google.protobuf.GeneratedCodeInfo;if(e.annotation){if(!Array.isArray(e.annotation))throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected");t.annotation=[];for(var r=0;r<e.annotation.length;++r){if("object"!=typeof e.annotation[r])throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected");t.annotation[r]=l.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(e.annotation[r])}}return t},z.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.annotation=[]),e.annotation&&e.annotation.length){r.annotation=[];for(var n=0;n<e.annotation.length;++n)r.annotation[n]=l.google.protobuf.GeneratedCodeInfo.Annotation.toObject(e.annotation[n],t)}return r},z.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},z.Annotation=(W.prototype.path=s.emptyArray,W.prototype.sourceFile="",W.prototype.begin=0,W.prototype.end=0,W.create=function(e){return new W(e)},W.encode=function(e,t){if(t=t||a.create(),null!=e.path&&e.path.length){t.uint32(10).fork();for(var r=0;r<e.path.length;++r)t.int32(e.path[r]);t.ldelim()}return null!=e.sourceFile&&Object.hasOwnProperty.call(e,"sourceFile")&&t.uint32(18).string(e.sourceFile),null!=e.begin&&Object.hasOwnProperty.call(e,"begin")&&t.uint32(24).int32(e.begin),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(32).int32(e.end),t},W.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},W.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.GeneratedCodeInfo.Annotation;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:if(n.path&&n.path.length||(n.path=[]),2==(7&o))for(var a=e.uint32()+e.pos;e.pos<a;)n.path.push(e.int32());else n.path.push(e.int32());break;case 2:n.sourceFile=e.string();break;case 3:n.begin=e.int32();break;case 4:n.end=e.int32();break;default:e.skipType(7&o)}}return n},W.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},W.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.path&&e.hasOwnProperty("path")){if(!Array.isArray(e.path))return"path: array expected";for(var t=0;t<e.path.length;++t)if(!s.isInteger(e.path[t]))return"path: integer[] expected"}return null!=e.sourceFile&&e.hasOwnProperty("sourceFile")&&!s.isString(e.sourceFile)?"sourceFile: string expected":null!=e.begin&&e.hasOwnProperty("begin")&&!s.isInteger(e.begin)?"begin: integer expected":null!=e.end&&e.hasOwnProperty("end")&&!s.isInteger(e.end)?"end: integer expected":null},W.fromObject=function(e){if(e instanceof l.google.protobuf.GeneratedCodeInfo.Annotation)return e;var t=new l.google.protobuf.GeneratedCodeInfo.Annotation;if(e.path){if(!Array.isArray(e.path))throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected");t.path=[];for(var r=0;r<e.path.length;++r)t.path[r]=0|e.path[r]}return null!=e.sourceFile&&(t.sourceFile=String(e.sourceFile)),null!=e.begin&&(t.begin=0|e.begin),null!=e.end&&(t.end=0|e.end),t},W.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.path=[]),t.defaults&&(r.sourceFile="",r.begin=0,r.end=0),e.path&&e.path.length){r.path=[];for(var n=0;n<e.path.length;++n)r.path[n]=e.path[n]}return null!=e.sourceFile&&e.hasOwnProperty("sourceFile")&&(r.sourceFile=e.sourceFile),null!=e.begin&&e.hasOwnProperty("begin")&&(r.begin=e.begin),null!=e.end&&e.hasOwnProperty("end")&&(r.end=e.end),r},W.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},W),z),r.Any=(J.prototype.type_url="",J.prototype.value=s.newBuffer([]),J.create=function(e){return new J(e)},J.encode=function(e,t){return t=t||a.create(),null!=e.type_url&&Object.hasOwnProperty.call(e,"type_url")&&t.uint32(10).string(e.type_url),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).bytes(e.value),t},J.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},J.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.Any;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.type_url=e.string();break;case 2:n.value=e.bytes();break;default:e.skipType(7&o)}}return n},J.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},J.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.type_url&&e.hasOwnProperty("type_url")&&!s.isString(e.type_url)?"type_url: string expected":null!=e.value&&e.hasOwnProperty("value")&&!(e.value&&"number"==typeof e.value.length||s.isString(e.value))?"value: buffer expected":null},J.fromObject=function(e){var t;return e instanceof l.google.protobuf.Any?e:(t=new l.google.protobuf.Any,null!=e.type_url&&(t.type_url=String(e.type_url)),null!=e.value&&("string"==typeof e.value?s.base64.decode(e.value,t.value=s.newBuffer(s.base64.length(e.value)),0):e.value.length&&(t.value=e.value)),t)},J.toObject=function(e,t){var r={};return(t=t||{}).defaults&&(r.type_url="",t.bytes===String?r.value="":(r.value=[],t.bytes!==Array&&(r.value=s.newBuffer(r.value)))),null!=e.type_url&&e.hasOwnProperty("type_url")&&(r.type_url=e.type_url),null!=e.value&&e.hasOwnProperty("value")&&(r.value=t.bytes===String?s.base64.encode(e.value,0,e.value.length):t.bytes===Array?Array.prototype.slice.call(e.value):e.value),r},J.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},J),r.Duration=(Y.prototype.seconds=s.Long?s.Long.fromBits(0,0,!1):0,Y.prototype.nanos=0,Y.create=function(e){return new Y(e)},Y.encode=function(e,t){return t=t||a.create(),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&t.uint32(16).int32(e.nanos),t},Y.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},Y.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.protobuf.Duration;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.seconds=e.int64();break;case 2:n.nanos=e.int32();break;default:e.skipType(7&o)}}return n},Y.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},Y.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.seconds&&e.hasOwnProperty("seconds")&&!(s.isInteger(e.seconds)||e.seconds&&s.isInteger(e.seconds.low)&&s.isInteger(e.seconds.high))?"seconds: integer|Long expected":null!=e.nanos&&e.hasOwnProperty("nanos")&&!s.isInteger(e.nanos)?"nanos: integer expected":null},Y.fromObject=function(e){var t;return e instanceof l.google.protobuf.Duration?e:(t=new l.google.protobuf.Duration,null!=e.seconds&&(s.Long?(t.seconds=s.Long.fromValue(e.seconds)).unsigned=!1:"string"==typeof e.seconds?t.seconds=parseInt(e.seconds,10):"number"==typeof e.seconds?t.seconds=e.seconds:"object"==typeof e.seconds&&(t.seconds=new s.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber())),null!=e.nanos&&(t.nanos=0|e.nanos),t)},Y.toObject=function(e,t){var r,n={};return(t=t||{}).defaults&&(s.Long?(r=new s.Long(0,0,!1),n.seconds=t.longs===String?r.toString():t.longs===Number?r.toNumber():r):n.seconds=t.longs===String?"0":0,n.nanos=0),null!=e.seconds&&e.hasOwnProperty("seconds")&&("number"==typeof e.seconds?n.seconds=t.longs===String?String(e.seconds):e.seconds:n.seconds=t.longs===String?s.Long.prototype.toString.call(e.seconds):t.longs===Number?new s.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber():e.seconds),null!=e.nanos&&e.hasOwnProperty("nanos")&&(n.nanos=e.nanos),n},Y.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},Y),r.Empty=(K.create=function(e){return new K(e)},K.encode=function(e,t){return t||a.create()},K.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},K.decode=function(e,t){e instanceof i||(e=i.create(e));var r=void 0===t?e.len:e.pos+t;for(t=new l.google.protobuf.Empty;e.pos<r;){var n=e.uint32();e.skipType(7&n)}return t},K.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},K.verify=function(e){return"object"!=typeof e||null===e?"object expected":null},K.fromObject=function(e){return e instanceof l.google.protobuf.Empty?e:new l.google.protobuf.Empty},K.toObject=function(){return{}},K.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},K),r),o.rpc=((n={}).Status=(X.prototype.code=0,X.prototype.message="",X.prototype.details=s.emptyArray,X.create=function(e){return new X(e)},X.encode=function(e,t){if(t=t||a.create(),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&t.uint32(8).int32(e.code),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(18).string(e.message),null!=e.details&&e.details.length)for(var r=0;r<e.details.length;++r)l.google.protobuf.Any.encode(e.details[r],t.uint32(26).fork()).ldelim();return t},X.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},X.decode=function(e,t){e instanceof i||(e=i.create(e));for(var r=void 0===t?e.len:e.pos+t,n=new l.google.rpc.Status;e.pos<r;){var o=e.uint32();switch(o>>>3){case 1:n.code=e.int32();break;case 2:n.message=e.string();break;case 3:n.details&&n.details.length||(n.details=[]),n.details.push(l.google.protobuf.Any.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return n},X.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},X.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.code&&e.hasOwnProperty("code")&&!s.isInteger(e.code))return"code: integer expected";if(null!=e.message&&e.hasOwnProperty("message")&&!s.isString(e.message))return"message: string expected";if(null!=e.details&&e.hasOwnProperty("details")){if(!Array.isArray(e.details))return"details: array expected";for(var t=0;t<e.details.length;++t){var r=l.google.protobuf.Any.verify(e.details[t]);if(r)return"details."+r}}return null},X.fromObject=function(e){if(e instanceof l.google.rpc.Status)return e;var t=new l.google.rpc.Status;if(null!=e.code&&(t.code=0|e.code),null!=e.message&&(t.message=String(e.message)),e.details){if(!Array.isArray(e.details))throw TypeError(".google.rpc.Status.details: array expected");t.details=[];for(var r=0;r<e.details.length;++r){if("object"!=typeof e.details[r])throw TypeError(".google.rpc.Status.details: object expected");t.details[r]=l.google.protobuf.Any.fromObject(e.details[r])}}return t},X.toObject=function(e,t){var r={};if(((t=t||{}).arrays||t.defaults)&&(r.details=[]),t.defaults&&(r.code=0,r.message=""),null!=e.code&&e.hasOwnProperty("code")&&(r.code=e.code),null!=e.message&&e.hasOwnProperty("message")&&(r.message=e.message),e.details&&e.details.length){r.details=[];for(var n=0;n<e.details.length;++n)r.details[n]=l.google.protobuf.Any.toObject(e.details[n],t)}return r},X.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},X),n),o),l}(requireMinimal()))),operations.exports;var e}var operationsClient={},createApiCall={},apiCaller={},normalApiCaller={},call={},googleError={},src$2={},toproto3json={},any={},fromproto3json={},bytes={},hasRequiredBytes;function requireBytes(){if(hasRequiredBytes)return bytes;return hasRequiredBytes=1,Object.defineProperty(bytes,"__esModule",{value:!0}),bytes.bytesFromProto3JSON=bytes.bytesToProto3JSON=void 0,bytes.bytesToProto3JSON=function(e){return Buffer.isBuffer(e)?e.toString("base64"):Buffer.from(e.buffer,0,e.byteLength).toString("base64")},bytes.bytesFromProto3JSON=function(e){return Buffer.from(e,"base64")},bytes}var _enum={},hasRequired_enum;function require_enum(){if(hasRequired_enum)return _enum;return hasRequired_enum=1,Object.defineProperty(_enum,"__esModule",{value:!0}),_enum.resolveEnumValueToNumber=_enum.resolveEnumValueToString=void 0,_enum.resolveEnumValueToString=function(e,t){if("number"==typeof t){const r=e.valuesById[t];return void 0===r?t:r}if("string"==typeof t)return t;throw new Error("resolveEnumValueToString: enum value must be a string or a number")},_enum.resolveEnumValueToNumber=function(e,t){if("number"==typeof t)return t;if("string"==typeof t){const r=e.values[t];return void 0===r?t:r}throw new Error("resolveEnumValueToNumber: enum value must be a string or a number")},_enum}var value={},util$1={},hasRequiredUtil$1,hasRequiredValue;function requireUtil$1(){if(hasRequiredUtil$1)return util$1;return hasRequiredUtil$1=1,Object.defineProperty(util$1,"__esModule",{value:!0}),util$1.assert=util$1.wrapperTypes=util$1.getFullyQualifiedTypeName=void 0,util$1.getFullyQualifiedTypeName=function(e){let t="";for(;e.parent;)t=`.${e.name}${t}`,e=e.parent;return t},util$1.wrapperTypes=new Set([".google.protobuf.DoubleValue",".google.protobuf.FloatValue",".google.protobuf.Int64Value",".google.protobuf.UInt64Value",".google.protobuf.Int32Value",".google.protobuf.UInt32Value",".google.protobuf.BoolValue",".google.protobuf.StringValue",".google.protobuf.BytesValue"]),util$1.assert=function(e,t){if(!e)throw new Error(t)},util$1}function requireValue(){if(hasRequiredValue)return value;hasRequiredValue=1,Object.defineProperty(value,"__esModule",{value:!0}),value.googleProtobufValueFromProto3JSON=value.googleProtobufListValueFromProto3JSON=value.googleProtobufStructFromProto3JSON=value.googleProtobufValueToProto3JSON=value.googleProtobufListValueToProto3JSON=value.googleProtobufStructToProto3JSON=void 0;const e=requireUtil$1();function t(e){const t={},r=e.fields;for(const[e,o]of Object.entries(r))t[e]=n(o);return t}function r(t){return(0,e.assert)(Array.isArray(t.values),"ListValue internal representation must contain array of values"),t.values.map(n)}function n(e){return Object.prototype.hasOwnProperty.call(e,"nullValue")?null:Object.prototype.hasOwnProperty.call(e,"numberValue")&&"number"==typeof e.numberValue?Number.isFinite(e.numberValue)?e.numberValue:e.numberValue.toString():Object.prototype.hasOwnProperty.call(e,"stringValue")&&"string"==typeof e.stringValue?e.stringValue:Object.prototype.hasOwnProperty.call(e,"boolValue")&&"boolean"==typeof e.boolValue?e.boolValue:Object.prototype.hasOwnProperty.call(e,"structValue")&&"object"==typeof e.structValue?t(e.structValue):Object.prototype.hasOwnProperty.call(e,"listValue")&&"object"==typeof e&&"object"==typeof e.listValue?r(e.listValue):null}function o(e){const t={};for(const[r,n]of Object.entries(e))t[r]=a(n);return{fields:t}}function i(e){return{values:e.map(e=>a(e))}}function a(e){if(null===e)return{nullValue:"NULL_VALUE"};if("number"==typeof e)return{numberValue:e};if("string"==typeof e)return{stringValue:e};if("boolean"==typeof e)return{boolValue:e};if(Array.isArray(e))return{listValue:i(e)};if("object"==typeof e)return{structValue:o(e)};throw new Error("googleProtobufValueFromProto3JSON: incorrect parameter type: "+typeof e)}return value.googleProtobufStructToProto3JSON=t,value.googleProtobufListValueToProto3JSON=r,value.googleProtobufValueToProto3JSON=n,value.googleProtobufStructFromProto3JSON=o,value.googleProtobufListValueFromProto3JSON=i,value.googleProtobufValueFromProto3JSON=a,value}var duration={},hasRequiredDuration;function requireDuration(){if(hasRequiredDuration)return duration;return hasRequiredDuration=1,Object.defineProperty(duration,"__esModule",{value:!0}),duration.googleProtobufDurationFromProto3JSON=duration.googleProtobufDurationToProto3JSON=void 0,duration.googleProtobufDurationToProto3JSON=function(e){let t=e.seconds.toString();if("number"==typeof e.nanos&&e.nanos>0){t+="."+e.nanos.toString().padStart(9,"0").replace(/^((?:\d\d\d)+?)(?:0*)$/,"$1")}return t+="s",t},duration.googleProtobufDurationFromProto3JSON=function(e){const t=e.match(/^(\d*)(?:\.(\d*))?s$/);if(!t)throw new Error(`googleProtobufDurationFromProto3JSON: incorrect value ${e} passed as google.protobuf.Duration`);let r=0,n=0;"string"==typeof t[1]&&t[1].length>0&&(r=parseInt(t[1])),"string"==typeof t[2]&&t[2].length>0&&(n=parseInt(t[2].padEnd(9,"0")));const o={};return 0!==r&&(o.seconds=r),0!==n&&(o.nanos=n),o},duration}var timestamp={},hasRequiredTimestamp;function requireTimestamp(){if(hasRequiredTimestamp)return timestamp;return hasRequiredTimestamp=1,Object.defineProperty(timestamp,"__esModule",{value:!0}),timestamp.googleProtobufTimestampFromProto3JSON=timestamp.googleProtobufTimestampToProto3JSON=void 0,timestamp.googleProtobufTimestampToProto3JSON=function(e){var t;const r=e.seconds,n=new Date(1e3*r).toISOString();let o=null===(t=e.nanos)||void 0===t?void 0:t.toString().padStart(9,"0");for(;o&&o.length>3&&o.endsWith("000");)o=o.slice(0,-3);return n.replace(/(?:\.\d{0,9})/,"."+o)},timestamp.googleProtobufTimestampFromProto3JSON=function(e){if(!e.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?/))throw new Error(`googleProtobufDurationFromProto3JSON: incorrect value ${e} passed as google.protobuf.Duration`);const t=new Date(e).getTime(),r=Math.floor(t/1e3);let n=0;const o=e.split(".")[1];o&&(n=parseInt(o.slice(0,-1).padEnd(9,"0")));const i={};return 0!==r&&(i.seconds=r),0!==n&&(i.nanos=n),i},timestamp}var wrappers$1={},hasRequiredWrappers;function requireWrappers(){if(hasRequiredWrappers)return wrappers$1;hasRequiredWrappers=1,Object.defineProperty(wrappers$1,"__esModule",{value:!0}),wrappers$1.wrapperFromProto3JSON=wrappers$1.wrapperToProto3JSON=void 0;const e=requireBytes(),t=requireUtil$1();return wrappers$1.wrapperToProto3JSON=function(r){return Object.prototype.hasOwnProperty.call(r,"value")?Buffer.isBuffer(r.value)||r.value instanceof Uint8Array?(0,e.bytesToProto3JSON)(r.value):"object"==typeof r.value?((0,t.assert)("Long"===r.value.constructor.name,`wrapperToProto3JSON: expected to see a number, a string, a boolean, or a Long, but got ${r.value}`),r.value.toString()):"number"!=typeof r.value||Number.isFinite(r.value)?r.value:r.value.toString():null},wrappers$1.wrapperFromProto3JSON=function(t,r){if(null===r)return{value:null};if(".google.protobuf.BytesValue"===t){if("string"!=typeof r)throw new Error("numberWrapperFromProto3JSON: expected to get a string for google.protobuf.BytesValue but got "+typeof r);return{value:(0,e.bytesFromProto3JSON)(r)}}return{value:r}},wrappers$1}var fieldmask={},hasRequiredFieldmask,hasRequiredFromproto3json,hasRequiredAny,hasRequiredToproto3json,hasRequiredSrc$3;function requireFieldmask(){if(hasRequiredFieldmask)return fieldmask;return hasRequiredFieldmask=1,Object.defineProperty(fieldmask,"__esModule",{value:!0}),fieldmask.googleProtobufFieldMaskFromProto3JSON=fieldmask.googleProtobufFieldMaskToProto3JSON=void 0,fieldmask.googleProtobufFieldMaskToProto3JSON=function(e){return e.paths.join(",")},fieldmask.googleProtobufFieldMaskFromProto3JSON=function(e){return{paths:e.split(",")}},fieldmask}function requireFromproto3json(){if(hasRequiredFromproto3json)return fromproto3json;hasRequiredFromproto3json=1,Object.defineProperty(fromproto3json,"__esModule",{value:!0}),fromproto3json.fromProto3JSON=fromproto3json.fromProto3JSONToInternalRepresentation=void 0;const e=requireAny(),t=requireBytes(),r=require_enum(),n=requireValue(),o=requireUtil$1(),i=requireDuration(),a=requireTimestamp(),s=requireWrappers(),l=requireFieldmask();function p(d,u){const c="string"==typeof d?d:(0,o.getFullyQualifiedTypeName)(d);if("string"!=typeof d&&"values"in d)return".google.protobuf.NullValue"===c?"NULL_VALUE":(0,r.resolveEnumValueToString)(d,u);if("string"!=typeof d&&d.resolveAll(),"string"==typeof d)return u;if(".google.protobuf.Value"===c)return(0,n.googleProtobufValueFromProto3JSON)(u);if(o.wrapperTypes.has(c)){if(null!==u&&"object"==typeof u||Array.isArray(u))throw new Error(`fromProto3JSONToInternalRepresentation: JSON representation for ${c} expects a string, a number, or a boolean, but got ${typeof u}`);return(0,s.wrapperFromProto3JSON)(c,u)}if(null===u)return null;if(".google.protobuf.Any"===c)return(0,e.googleProtobufAnyFromProto3JSON)(d.root,u);if(".google.protobuf.Struct"===c){if("object"!=typeof u)throw new Error("fromProto3JSONToInternalRepresentation: google.protobuf.Struct must be an object but got "+typeof u);if(Array.isArray(u))throw new Error("fromProto3JSONToInternalRepresentation: google.protobuf.Struct must be an object but got an array");return(0,n.googleProtobufStructFromProto3JSON)(u)}if(".google.protobuf.ListValue"===c){if(!Array.isArray(u))throw new Error("fromProto3JSONToInternalRepresentation: google.protobuf.ListValue must be an array but got "+typeof u);return(0,n.googleProtobufListValueFromProto3JSON)(u)}if(".google.protobuf.Duration"===c){if("string"!=typeof u)throw new Error("fromProto3JSONToInternalRepresentation: google.protobuf.Duration must be a string but got "+typeof u);return(0,i.googleProtobufDurationFromProto3JSON)(u)}if(".google.protobuf.Timestamp"===c){if("string"!=typeof u)throw new Error("fromProto3JSONToInternalRepresentation: google.protobuf.Timestamp must be a string but got "+typeof u);return(0,a.googleProtobufTimestampFromProto3JSON)(u)}if(".google.protobuf.FieldMask"===c){if("string"!=typeof u)throw new Error("fromProto3JSONToInternalRepresentation: google.protobuf.FieldMask must be a string but got "+typeof u);return(0,l.googleProtobufFieldMaskFromProto3JSON)(u)}const f={};for(const[e,r]of Object.entries(u)){const n=d.fields[e];if(!n)continue;const i=n.resolvedType,a=n.type;if(n.repeated)if(null===r)f[e]=[];else{if(!Array.isArray(r))throw new Error(`fromProto3JSONToInternalRepresentation: expected an array for field ${e}`);f[e]=r.map(e=>p(i||a,e))}else if(n.map){const t={};for(const[e,n]of Object.entries(r))t[e]=p(i||a,n);f[e]=t}else if(a.match(/^(?:(?:(?:u?int|fixed)(?:32|64))|float|double)$/)){if("number"!=typeof r&&"string"!=typeof r)throw new Error(`fromProto3JSONToInternalRepresentation: field ${e} of type ${n.type} cannot contain value ${r}`);f[e]=r}else if("string"===a){if("string"!=typeof r)throw new Error(`fromProto3JSONToInternalRepresentation: field ${e} of type ${n.type} cannot contain value ${r}`);f[e]=r}else if("bool"===a){if("boolean"!=typeof r)throw new Error(`fromProto3JSONToInternalRepresentation: field ${e} of type ${n.type} cannot contain value ${r}`);f[e]=r}else if("bytes"===a){if("string"!=typeof r)throw new Error(`fromProto3JSONToInternalRepresentation: field ${e} of type ${n.type} cannot contain value ${r}`);f[e]=(0,t.bytesFromProto3JSON)(r)}else{(0,o.assert)(null!==i,`Expected to be able to resolve type for field ${n.name}`);const t=p(i,r);f[e]=t}}return f}return fromproto3json.fromProto3JSONToInternalRepresentation=p,fromproto3json.fromProto3JSON=function(e,t){const r=p(e,t);return null===r?null:((0,o.assert)("object"==typeof r&&!Array.isArray(r),`fromProto3JSON: expected an object, not ${t}`),e.fromObject(r))},fromproto3json}function requireAny(){if(hasRequiredAny)return any;hasRequiredAny=1,Object.defineProperty(any,"__esModule",{value:!0}),any.googleProtobufAnyFromProto3JSON=any.googleProtobufAnyToProto3JSON=void 0;const e=requireFromproto3json(),t=requireToproto3json(),r=new Set(["google.protobuf.Any","google.protobuf.Duration","google.protobuf.FieldMask","google.protobuf.ListValue","google.protobuf.Struct","google.protobuf.Timestamp","google.protobuf.Value"]);return any.googleProtobufAnyToProto3JSON=function(e,n){const o=e.type_url.replace(/^.*\//,"");let i;try{i=e.$type.root.lookupType(o)}catch(e){throw new Error(`googleProtobufAnyToProto3JSON: cannot find type ${o}: ${e}`)}const a=i.decode(e.value),s=(0,t.toProto3JSON)(a,n);return r.has(o)?{"@type":e.type_url,value:s}:(s["@type"]=e.type_url,s)},any.googleProtobufAnyFromProto3JSON=function(t,n){if(null===n||"object"!=typeof n||Array.isArray(n))throw new Error("googleProtobufAnyFromProto3JSON: must be an object to decode google.protobuf.Any");const o=n["@type"];if(!o||"string"!=typeof o)throw new Error("googleProtobufAnyFromProto3JSON: JSON serialization of google.protobuf.Any must contain @type field");const i=o.replace(/^.*\//,"");let a;try{a=t.lookupType(i)}catch(e){throw new Error(`googleProtobufAnyFromProto3JSON: cannot find type ${i}: ${e}`)}let s=n;if(r.has(i)){if(!("value"in n))throw new Error(`googleProtobufAnyFromProto3JSON: JSON representation of google.protobuf.Any with type ${i} must contain the value field`);s=n.value}const l=(0,e.fromProto3JSON)(a,s);if(null===l)return{type_url:o,value:null};const p=a.encode(l).finish();return{type_url:o,value:Buffer.from(p,0,p.byteLength).toString("base64")}},any}function requireToproto3json(){if(hasRequiredToproto3json)return toproto3json;hasRequiredToproto3json=1,Object.defineProperty(toproto3json,"__esModule",{value:!0}),toproto3json.toProto3JSON=void 0;const e=requireAny(),t=requireBytes(),r=requireUtil$1(),n=require_enum(),o=requireValue(),i=requireDuration(),a=requireTimestamp(),s=requireWrappers(),l=requireFieldmask();function p(e){var t;if("object"==typeof e){if("Long"===(null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.name))return e.toString();throw new Error(`toProto3JSON: don't know how to convert value ${e}`)}return e}return toproto3json.toProto3JSON=function d(u,c){const f=u.$type;if(!f)throw new Error("Cannot serialize object to proto3 JSON since its .$type is unknown. Use Type.fromObject(obj) before calling toProto3JSON.");f.resolveAll();const h=(0,r.getFullyQualifiedTypeName)(f);if(".google.protobuf.Any"===h)return(0,e.googleProtobufAnyToProto3JSON)(u,c);if(".google.protobuf.Value"===h)return(0,o.googleProtobufValueToProto3JSON)(u);if(".google.protobuf.Struct"===h)return(0,o.googleProtobufStructToProto3JSON)(u);if(".google.protobuf.ListValue"===h)return(0,o.googleProtobufListValueToProto3JSON)(u);if(".google.protobuf.Duration"===h)return(0,i.googleProtobufDurationToProto3JSON)(u);if(".google.protobuf.Timestamp"===h)return(0,a.googleProtobufTimestampToProto3JSON)(u);if(".google.protobuf.FieldMask"===h)return(0,l.googleProtobufFieldMaskToProto3JSON)(u);if(r.wrapperTypes.has(h))return(0,s.wrapperToProto3JSON)(u);const m={};for(const[e,o]of Object.entries(u)){const i=f.fields[e],a=i.resolvedType,s=a?(0,r.getFullyQualifiedTypeName)(a):null;if(null!==o)if(Array.isArray(o)){if(0===o.length)continue;m[e]=o.map(a?e=>d(e,c):p)}else{if(i.map){const t={};for(const[e,r]of Object.entries(o))t[e]=a?d(r,c):p(r);m[e]=t;continue}if(".google.protobuf.NullValue"!==s)if(a&&"values"in a&&null!==o)(null==c?void 0:c.numericEnums)?m[e]=(0,n.resolveEnumValueToNumber)(a,o):m[e]=(0,n.resolveEnumValueToString)(a,o);else if(a)m[e]=d(o,c);else if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o&&null!==o)Buffer.isBuffer(o)||o instanceof Uint8Array?m[e]=(0,t.bytesToProto3JSON)(o):m[e]=p(o);else{if("number"==typeof o&&!Number.isFinite(o)){m[e]=o.toString();continue}m[e]=o}else m[e]=null}else m[e]=null}return m},toproto3json}function requireSrc$3(){return hasRequiredSrc$3||(hasRequiredSrc$3=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.fromProto3JSON=e.toProto3JSON=void 0;var t=requireToproto3json();Object.defineProperty(e,"toProto3JSON",{enumerable:!0,get:function(){return t.toProto3JSON}});var r=requireFromproto3json();Object.defineProperty(e,"fromProto3JSON",{enumerable:!0,get:function(){return r.fromProto3JSON}})}(src$2)),src$2}var fallback={exports:{}},routingHeader={},hasRequiredRoutingHeader;function requireRoutingHeader(){if(hasRequiredRoutingHeader)return routingHeader;hasRequiredRoutingHeader=1,Object.defineProperty(routingHeader,"__esModule",{value:!0}),routingHeader.fromParams=function(t){return e.stringify(t)};const e=require$$0__default$5.default;return routingHeader}var fallbackRest={},transcoding={},hasRequiredTranscoding,hasRequiredFallbackRest;function requireTranscoding(){if(hasRequiredTranscoding)return transcoding;hasRequiredTranscoding=1,Object.defineProperty(transcoding,"__esModule",{value:!0}),transcoding.getField=o,transcoding.deepCopyWithoutMatchedFields=i,transcoding.deleteField=a,transcoding.buildQueryStringComponents=s,transcoding.encodeWithSlashes=l,transcoding.encodeWithoutSlashes=p,transcoding.applyPattern=d,transcoding.match=c,transcoding.flattenObject=function e(t){const r={};for(const n in t)if(void 0!==t[n])if(Array.isArray(t[n]))r[n]=t[n];else{if("object"==typeof t[n]&&null!==t[n]){const o=e(t[n]);for(const e in o)r[`${n}.${e}`]=o[e];continue}r[n]=t[n]}return r},transcoding.isProto3OptionalField=function(e){return e&&e.options&&e.options[r]},transcoding.transcode=function(e,r){const l=[];for(const e of r){if(!(t in e))continue;const r=e[t];if(l.push(r),null==r?void 0:r.additional_bindings){const e=Array.isArray(r.additional_bindings)?r.additional_bindings:[r.additional_bindings];l.push(...e)}}for(const t of l)for(const r of n){if(!(r in t))continue;const n=c(e,t[r]);if(void 0===n)continue;const{url:l,matchedFields:p}=n;let d=i(e,new Set(p));if("*"===t.body)return{httpMethod:r,url:l,queryString:"",data:d};const f=d;t.body?(d=o(f,u(t.body),!0),a(f,u(t.body))):d="";const h=s(f).join("&");return(!d||"object"==typeof d&&0===Object.keys(d).length)&&(d=""),{httpMethod:r,url:l,queryString:h,data:d}}return},transcoding.overrideHttpRules=function(e,r){for(const n of e){if(!n.selector)continue;const e=r.lookup(n.selector);if(e&&e.parsedOptions)for(const r of e.parsedOptions){if(!(t in r))continue;const e=r[t];for(const t in e){if(t in n){if("additional_bindings"===t)continue;e[t]=n[t]}n.additional_bindings&&(e.additional_bindings=e.additional_bindings?Array.isArray(e.additional_bindings)?e.additional_bindings:[e.additional_bindings]:[],e.additional_bindings.push(...n.additional_bindings))}}}};const e=requireUtil$2(),t="(google.api.http)",r="proto3_optional",n=["get","post","put","patch","delete"];function o(e,t,r=!1){const n=t.split(".");let o=e;for(const e of n){if("object"!=typeof o)return;o=o[e]}if(r||"object"!=typeof o||Array.isArray(o)||null===o)return o}function i(e,t,r=""){if("object"!=typeof e||null===e)return e;const n=Object.assign({},e);for(const e in n){if(t.has(`${r}${e}`)){delete n[e];continue}const o=`${r}${e}.`;Array.isArray(n[e])?n[e]=n[e].map(e=>i(e,new Set)):"object"==typeof n[e]&&null!==n[e]&&(n[e]=i(n[e],t,o))}return n}function a(e,t){const r=t.split(".");for(;r.length>1;){if("object"!=typeof e)return;e=e[r.shift()]}const n=r.shift();"object"==typeof e&&delete e[n]}function s(e,t=""){const r=[];for(const n in e)if(Array.isArray(e[n]))for(const o of e[n])r.push(`${t}${p(n)}=${p(o.toString())}`);else"object"==typeof e[n]&&null!==e[n]?r.push(...s(e[n],`${n}.`)):r.push(`${t}${p(n)}=${p(null===e[n]?"null":e[n].toString())}`);return r}function l(e){return e.split("").map(e=>e.match(/[-_.~0-9a-zA-Z]/)?e:encodeURIComponent(e)).join("")}function p(e){return e.split("").map(e=>e.match(/[-_.~0-9a-zA-Z/]/)?e:encodeURIComponent(e)).join("")}function d(e,t){if(!e||"*"===e)return l(t);if(!e.includes("*")&&e!==t)return;const r=new RegExp("^"+(n=e,n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).replace(/\\\*\\\*/g,"(.+)").replace(/\\\*/g,"([^/]+)")+"$");var n;return t.match(r)?p(t):void 0}function u(t){return t.split(".").map(t=>(0,e.toCamelCase)(t)).join(".")}function c(e,t){let r=t;const n=[];for(;;){const t=r.match(/^(.*)\{([^}=]+)(?:=([^}]*))?\}(.*)/);if(!t)break;const[,i,a,s,l]=t,p=u(a);n.push(u(p));const c=o(e,p);if(void 0===c)return;const f=d(s,null===c?"null":c.toString());if(void 0===f)return;r=i+f+l}return{matchedFields:n,url:r}}return transcoding}function requireFallbackRest(){if(hasRequiredFallbackRest)return fallbackRest;hasRequiredFallbackRest=1,Object.defineProperty(fallbackRest,"__esModule",{value:!0}),fallbackRest.encodeRequest=function(t,r,o,i,a,s){const l=t.resolvedRequestType.fromObject(a),p=e.toProto3JSON(l,{numericEnums:s});if(!p)throw new Error(`Cannot send null request to RPC ${t.name}.`);if("object"!=typeof p||Array.isArray(p))throw new Error(`Request to RPC ${t.name} must be an object.`);const d=(0,n.transcode)(p,t.parsedOptions);if(!d)throw new Error(`Cannot build HTTP request for ${JSON.stringify(p)}, method: ${t.name}`);s&&(d.queryString=(d.queryString?`${d.queryString}&`:"")+"$alt=json%3Benum-encoding=int");const u=d.httpMethod.toUpperCase(),c=JSON.stringify(d.data),f=`${r}://${o}:${i}/${d.url.replace(/^\//,"")}?${d.queryString}`;return{method:u,url:f,headers:{"Content-Type":"application/json"},body:c}},fallbackRest.decodeResponse=function(n,o,i){const a=(new TextDecoder).decode(i);if(!a)throw new Error(`Received null response from RPC ${n.name}`);const s=JSON.parse(a);if(!o){throw r.GoogleError.parseHttpError(s)}const l=e.fromProto3JSON(n.resolvedResponseType,s);if(!l)throw new Error(`Received null or malformed response from JSON serializer from RPC ${n.name}`);return n.resolvedResponseType.toObject(l,t.defaultToObjectOptions)};const e=requireSrc$3(),t=requireFallback(),r=requireGoogleError(),n=requireTranscoding();return fallbackRest}var fallbackServiceStub={},publicApi={},URL$2={exports:{}},lib$1,hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib$1;hasRequiredLib=1;var e={};function t(e){return e<0?-1:1}function r(e,r){r.unsigned||--e;const n=r.unsigned?0:-Math.pow(2,e),o=Math.pow(2,e)-1,i=r.moduloBitLength?Math.pow(2,r.moduloBitLength):Math.pow(2,e),a=r.moduloBitLength?Math.pow(2,r.moduloBitLength-1):Math.pow(2,e-1);return function(e,s){s||(s={});let l=+e;if(s.enforceRange){if(!Number.isFinite(l))throw new TypeError("Argument is not a finite number");if(l=t(l)*Math.floor(Math.abs(l)),l<n||l>o)throw new TypeError("Argument is not in byte range");return l}if(!isNaN(l)&&s.clamp)return l=function(e){return e%1!=.5||1&e?Math.round(e):Math.floor(e)}(l),l<n&&(l=n),l>o&&(l=o),l;if(!Number.isFinite(l)||0===l)return 0;if(l=t(l)*Math.floor(Math.abs(l)),l%=i,!r.unsigned&&l>=a)return l-i;if(r.unsigned)if(l<0)l+=i;else if(-0===l)return 0;return l}}return lib$1=e,e.void=function(){},e.boolean=function(e){return!!e},e.byte=r(8,{unsigned:!1}),e.octet=r(8,{unsigned:!0}),e.short=r(16,{unsigned:!1}),e["unsigned short"]=r(16,{unsigned:!0}),e.long=r(32,{unsigned:!1}),e["unsigned long"]=r(32,{unsigned:!0}),e["long long"]=r(32,{unsigned:!1,moduloBitLength:64}),e["unsigned long long"]=r(32,{unsigned:!0,moduloBitLength:64}),e.double=function(e){const t=+e;if(!Number.isFinite(t))throw new TypeError("Argument is not a finite floating-point value");return t},e["unrestricted double"]=function(e){const t=+e;if(isNaN(t))throw new TypeError("Argument is NaN");return t},e.float=e.double,e["unrestricted float"]=e["unrestricted double"],e.DOMString=function(e,t){return t||(t={}),t.treatNullAsEmptyString&&null===e?"":String(e)},e.ByteString=function(e,t){const r=String(e);let n;for(let e=0;void 0!==(n=r.codePointAt(e));++e)if(n>255)throw new TypeError("Argument is not a valid bytestring");return r},e.USVString=function(e){const t=String(e),r=t.length,n=[];for(let e=0;e<r;++e){const o=t.charCodeAt(e);if(o<55296||o>57343)n.push(String.fromCodePoint(o));else if(56320<=o&&o<=57343)n.push(String.fromCodePoint(65533));else if(e===r-1)n.push(String.fromCodePoint(65533));else{const r=t.charCodeAt(e+1);if(56320<=r&&r<=57343){const t=1023&o,i=1023&r;n.push(String.fromCodePoint(65536+1024*t+i)),++e}else n.push(String.fromCodePoint(65533))}}return n.join("")},e.Date=function(e,t){if(!(e instanceof Date))throw new TypeError("Argument is not a Date object");if(!isNaN(e))return e},e.RegExp=function(e,t){return e instanceof RegExp||(e=new RegExp(e)),e},lib$1}var utils={exports:{}},hasRequiredUtils;function requireUtils(){return hasRequiredUtils||(hasRequiredUtils=1,(e=utils).exports.mixin=function(e,t){const r=Object.getOwnPropertyNames(t);for(let n=0;n<r.length;++n)Object.defineProperty(e,r[n],Object.getOwnPropertyDescriptor(t,r[n]))},e.exports.wrapperSymbol=Symbol("wrapper"),e.exports.implSymbol=Symbol("impl"),e.exports.wrapperForImpl=function(t){return t[e.exports.wrapperSymbol]},e.exports.implForWrapper=function(t){return t[e.exports.implSymbol]}),utils.exports;var e}var URLImpl={},urlStateMachine={exports:{}},tr46={},require$$1$1=[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"],[[47,47],"disallowed_STD3_valid"],[[48,57],"valid"],[[58,64],"disallowed_STD3_valid"],[[65,65],"mapped",[97]],[[66,66],"mapped",[98]],[[67,67],"mapped",[99]],[[68,68],"mapped",[100]],[[69,69],"mapped",[101]],[[70,70],"mapped",[102]],[[71,71],"mapped",[103]],[[72,72],"mapped",[104]],[[73,73],"mapped",[105]],[[74,74],"mapped",[106]],[[75,75],"mapped",[107]],[[76,76],"mapped",[108]],[[77,77],"mapped",[109]],[[78,78],"mapped",[110]],[[79,79],"mapped",[111]],[[80,80],"mapped",[112]],[[81,81],"mapped",[113]],[[82,82],"mapped",[114]],[[83,83],"mapped",[115]],[[84,84],"mapped",[116]],[[85,85],"mapped",[117]],[[86,86],"mapped",[118]],[[87,87],"mapped",[119]],[[88,88],"mapped",[120]],[[89,89],"mapped",[121]],[[90,90],"mapped",[122]],[[91,96],"disallowed_STD3_valid"],[[97,122],"valid"],[[123,127],"disallowed_STD3_valid"],[[128,159],"disallowed"],[[160,160],"disallowed_STD3_mapped",[32]],[[161,167],"valid",[],"NV8"],[[168,168],"disallowed_STD3_mapped",[32,776]],[[169,169],"valid",[],"NV8"],[[170,170],"mapped",[97]],[[171,172],"valid",[],"NV8"],[[173,173],"ignored"],[[174,174],"valid",[],"NV8"],[[175,175],"disallowed_STD3_mapped",[32,772]],[[176,177],"valid",[],"NV8"],[[178,178],"mapped",[50]],[[179,179],"mapped",[51]],[[180,180],"disallowed_STD3_mapped",[32,769]],[[181,181],"mapped",[956]],[[182,182],"valid",[],"NV8"],[[183,183],"valid"],[[184,184],"disallowed_STD3_mapped",[32,807]],[[185,185],"mapped",[49]],[[186,186],"mapped",[111]],[[187,187],"valid",[],"NV8"],[[188,188],"mapped",[49,8260,52]],[[189,189],"mapped",[49,8260,50]],[[190,190],"mapped",[51,8260,52]],[[191,191],"valid",[],"NV8"],[[192,192],"mapped",[224]],[[193,193],"mapped",[225]],[[194,194],"mapped",[226]],[[195,195],"mapped",[227]],[[196,196],"mapped",[228]],[[197,197],"mapped",[229]],[[198,198],"mapped",[230]],[[199,199],"mapped",[231]],[[200,200],"mapped",[232]],[[201,201],"mapped",[233]],[[202,202],"mapped",[234]],[[203,203],"mapped",[235]],[[204,204],"mapped",[236]],[[205,205],"mapped",[237]],[[206,206],"mapped",[238]],[[207,207],"mapped",[239]],[[208,208],"mapped",[240]],[[209,209],"mapped",[241]],[[210,210],"mapped",[242]],[[211,211],"mapped",[243]],[[212,212],"mapped",[244]],[[213,213],"mapped",[245]],[[214,214],"mapped",[246]],[[215,215],"valid",[],"NV8"],[[216,216],"mapped",[248]],[[217,217],"mapped",[249]],[[218,218],"mapped",[250]],[[219,219],"mapped",[251]],[[220,220],"mapped",[252]],[[221,221],"mapped",[253]],[[222,222],"mapped",[254]],[[223,223],"deviation",[115,115]],[[224,246],"valid"],[[247,247],"valid",[],"NV8"],[[248,255],"valid"],[[256,256],"mapped",[257]],[[257,257],"valid"],[[258,258],"mapped",[259]],[[259,259],"valid"],[[260,260],"mapped",[261]],[[261,261],"valid"],[[262,262],"mapped",[263]],[[263,263],"valid"],[[264,264],"mapped",[265]],[[265,265],"valid"],[[266,266],"mapped",[267]],[[267,267],"valid"],[[268,268],"mapped",[269]],[[269,269],"valid"],[[270,270],"mapped",[271]],[[271,271],"valid"],[[272,272],"mapped",[273]],[[273,273],"valid"],[[274,274],"mapped",[275]],[[275,275],"valid"],[[276,276],"mapped",[277]],[[277,277],"valid"],[[278,278],"mapped",[279]],[[279,279],"valid"],[[280,280],"mapped",[281]],[[281,281],"valid"],[[282,282],"mapped",[283]],[[283,283],"valid"],[[284,284],"mapped",[285]],[[285,285],"valid"],[[286,286],"mapped",[287]],[[287,287],"valid"],[[288,288],"mapped",[289]],[[289,289],"valid"],[[290,290],"mapped",[291]],[[291,291],"valid"],[[292,292],"mapped",[293]],[[293,293],"valid"],[[294,294],"mapped",[295]],[[295,295],"valid"],[[296,296],"mapped",[297]],[[297,297],"valid"],[[298,298],"mapped",[299]],[[299,299],"valid"],[[300,300],"mapped",[301]],[[301,301],"valid"],[[302,302],"mapped",[303]],[[303,303],"valid"],[[304,304],"mapped",[105,775]],[[305,305],"valid"],[[306,307],"mapped",[105,106]],[[308,308],"mapped",[309]],[[309,309],"valid"],[[310,310],"mapped",[311]],[[311,312],"valid"],[[313,313],"mapped",[314]],[[314,314],"valid"],[[315,315],"mapped",[316]],[[316,316],"valid"],[[317,317],"mapped",[318]],[[318,318],"valid"],[[319,320],"mapped",[108,183]],[[321,321],"mapped",[322]],[[322,322],"valid"],[[323,323],"mapped",[324]],[[324,324],"valid"],[[325,325],"mapped",[326]],[[326,326],"valid"],[[327,327],"mapped",[328]],[[328,328],"valid"],[[329,329],"mapped",[700,110]],[[330,330],"mapped",[331]],[[331,331],"valid"],[[332,332],"mapped",[333]],[[333,333],"valid"],[[334,334],"mapped",[335]],[[335,335],"valid"],[[336,336],"mapped",[337]],[[337,337],"valid"],[[338,338],"mapped",[339]],[[339,339],"valid"],[[340,340],"mapped",[341]],[[341,341],"valid"],[[342,342],"mapped",[343]],[[343,343],"valid"],[[344,344],"mapped",[345]],[[345,345],"valid"],[[346,346],"mapped",[347]],[[347,347],"valid"],[[348,348],"mapped",[349]],[[349,349],"valid"],[[350,350],"mapped",[351]],[[351,351],"valid"],[[352,352],"mapped",[353]],[[353,353],"valid"],[[354,354],"mapped",[355]],[[355,355],"valid"],[[356,356],"mapped",[357]],[[357,357],"valid"],[[358,358],"mapped",[359]],[[359,359],"valid"],[[360,360],"mapped",[361]],[[361,361],"valid"],[[362,362],"mapped",[363]],[[363,363],"valid"],[[364,364],"mapped",[365]],[[365,365],"valid"],[[366,366],"mapped",[367]],[[367,367],"valid"],[[368,368],"mapped",[369]],[[369,369],"valid"],[[370,370],"mapped",[371]],[[371,371],"valid"],[[372,372],"mapped",[373]],[[373,373],"valid"],[[374,374],"mapped",[375]],[[375,375],"valid"],[[376,376],"mapped",[255]],[[377,377],"mapped",[378]],[[378,378],"valid"],[[379,379],"mapped",[380]],[[380,380],"valid"],[[381,381],"mapped",[382]],[[382,382],"valid"],[[383,383],"mapped",[115]],[[384,384],"valid"],[[385,385],"mapped",[595]],[[386,386],"mapped",[387]],[[387,387],"valid"],[[388,388],"mapped",[389]],[[389,389],"valid"],[[390,390],"mapped",[596]],[[391,391],"mapped",[392]],[[392,392],"valid"],[[393,393],"mapped",[598]],[[394,394],"mapped",[599]],[[395,395],"mapped",[396]],[[396,397],"valid"],[[398,398],"mapped",[477]],[[399,399],"mapped",[601]],[[400,400],"mapped",[603]],[[401,401],"mapped",[402]],[[402,402],"valid"],[[403,403],"mapped",[608]],[[404,404],"mapped",[611]],[[405,405],"valid"],[[406,406],"mapped",[617]],[[407,407],"mapped",[616]],[[408,408],"mapped",[409]],[[409,411],"valid"],[[412,412],"mapped",[623]],[[413,413],"mapped",[626]],[[414,414],"valid"],[[415,415],"mapped",[629]],[[416,416],"mapped",[417]],[[417,417],"valid"],[[418,418],"mapped",[419]],[[419,419],"valid"],[[420,420],"mapped",[421]],[[421,421],"valid"],[[422,422],"mapped",[640]],[[423,423],"mapped",[424]],[[424,424],"valid"],[[425,425],"mapped",[643]],[[426,427],"valid"],[[428,428],"mapped",[429]],[[429,429],"valid"],[[430,430],"mapped",[648]],[[431,431],"mapped",[432]],[[432,432],"valid"],[[433,433],"mapped",[650]],[[434,434],"mapped",[651]],[[435,435],"mapped",[436]],[[436,436],"valid"],[[437,437],"mapped",[438]],[[438,438],"valid"],[[439,439],"mapped",[658]],[[440,440],"mapped",[441]],[[441,443],"valid"],[[444,444],"mapped",[445]],[[445,451],"valid"],[[452,454],"mapped",[100,382]],[[455,457],"mapped",[108,106]],[[458,460],"mapped",[110,106]],[[461,461],"mapped",[462]],[[462,462],"valid"],[[463,463],"mapped",[464]],[[464,464],"valid"],[[465,465],"mapped",[466]],[[466,466],"valid"],[[467,467],"mapped",[468]],[[468,468],"valid"],[[469,469],"mapped",[470]],[[470,470],"valid"],[[471,471],"mapped",[472]],[[472,472],"valid"],[[473,473],"mapped",[474]],[[474,474],"valid"],[[475,475],"mapped",[476]],[[476,477],"valid"],[[478,478],"mapped",[479]],[[479,479],"valid"],[[480,480],"mapped",[481]],[[481,481],"valid"],[[482,482],"mapped",[483]],[[483,483],"valid"],[[484,484],"mapped",[485]],[[485,485],"valid"],[[486,486],"mapped",[487]],[[487,487],"valid"],[[488,488],"mapped",[489]],[[489,489],"valid"],[[490,490],"mapped",[491]],[[491,491],"valid"],[[492,492],"mapped",[493]],[[493,493],"valid"],[[494,494],"mapped",[495]],[[495,496],"valid"],[[497,499],"mapped",[100,122]],[[500,500],"mapped",[501]],[[501,501],"valid"],[[502,502],"mapped",[405]],[[503,503],"mapped",[447]],[[504,504],"mapped",[505]],[[505,505],"valid"],[[506,506],"mapped",[507]],[[507,507],"valid"],[[508,508],"mapped",[509]],[[509,509],"valid"],[[510,510],"mapped",[511]],[[511,511],"valid"],[[512,512],"mapped",[513]],[[513,513],"valid"],[[514,514],"mapped",[515]],[[515,515],"valid"],[[516,516],"mapped",[517]],[[517,517],"valid"],[[518,518],"mapped",[519]],[[519,519],"valid"],[[520,520],"mapped",[521]],[[521,521],"valid"],[[522,522],"mapped",[523]],[[523,523],"valid"],[[524,524],"mapped",[525]],[[525,525],"valid"],[[526,526],"mapped",[527]],[[527,527],"valid"],[[528,528],"mapped",[529]],[[529,529],"valid"],[[530,530],"mapped",[531]],[[531,531],"valid"],[[532,532],"mapped",[533]],[[533,533],"valid"],[[534,534],"mapped",[535]],[[535,535],"valid"],[[536,536],"mapped",[537]],[[537,537],"valid"],[[538,538],"mapped",[539]],[[539,539],"valid"],[[540,540],"mapped",[541]],[[541,541],"valid"],[[542,542],"mapped",[543]],[[543,543],"valid"],[[544,544],"mapped",[414]],[[545,545],"valid"],[[546,546],"mapped",[547]],[[547,547],"valid"],[[548,548],"mapped",[549]],[[549,549],"valid"],[[550,550],"mapped",[551]],[[551,551],"valid"],[[552,552],"mapped",[553]],[[553,553],"valid"],[[554,554],"mapped",[555]],[[555,555],"valid"],[[556,556],"mapped",[557]],[[557,557],"valid"],[[558,558],"mapped",[559]],[[559,559],"valid"],[[560,560],"mapped",[561]],[[561,561],"valid"],[[562,562],"mapped",[563]],[[563,563],"valid"],[[564,566],"valid"],[[567,569],"valid"],[[570,570],"mapped",[11365]],[[571,571],"mapped",[572]],[[572,572],"valid"],[[573,573],"mapped",[410]],[[574,574],"mapped",[11366]],[[575,576],"valid"],[[577,577],"mapped",[578]],[[578,578],"valid"],[[579,579],"mapped",[384]],[[580,580],"mapped",[649]],[[581,581],"mapped",[652]],[[582,582],"mapped",[583]],[[583,583],"valid"],[[584,584],"mapped",[585]],[[585,585],"valid"],[[586,586],"mapped",[587]],[[587,587],"valid"],[[588,588],"mapped",[589]],[[589,589],"valid"],[[590,590],"mapped",[591]],[[591,591],"valid"],[[592,680],"valid"],[[681,685],"valid"],[[686,687],"valid"],[[688,688],"mapped",[104]],[[689,689],"mapped",[614]],[[690,690],"mapped",[106]],[[691,691],"mapped",[114]],[[692,692],"mapped",[633]],[[693,693],"mapped",[635]],[[694,694],"mapped",[641]],[[695,695],"mapped",[119]],[[696,696],"mapped",[121]],[[697,705],"valid"],[[706,709],"valid",[],"NV8"],[[710,721],"valid"],[[722,727],"valid",[],"NV8"],[[728,728],"disallowed_STD3_mapped",[32,774]],[[729,729],"disallowed_STD3_mapped",[32,775]],[[730,730],"disallowed_STD3_mapped",[32,778]],[[731,731],"disallowed_STD3_mapped",[32,808]],[[732,732],"disallowed_STD3_mapped",[32,771]],[[733,733],"disallowed_STD3_mapped",[32,779]],[[734,734],"valid",[],"NV8"],[[735,735],"valid",[],"NV8"],[[736,736],"mapped",[611]],[[737,737],"mapped",[108]],[[738,738],"mapped",[115]],[[739,739],"mapped",[120]],[[740,740],"mapped",[661]],[[741,745],"valid",[],"NV8"],[[746,747],"valid",[],"NV8"],[[748,748],"valid"],[[749,749],"valid",[],"NV8"],[[750,750],"valid"],[[751,767],"valid",[],"NV8"],[[768,831],"valid"],[[832,832],"mapped",[768]],[[833,833],"mapped",[769]],[[834,834],"valid"],[[835,835],"mapped",[787]],[[836,836],"mapped",[776,769]],[[837,837],"mapped",[953]],[[838,846],"valid"],[[847,847],"ignored"],[[848,855],"valid"],[[856,860],"valid"],[[861,863],"valid"],[[864,865],"valid"],[[866,866],"valid"],[[867,879],"valid"],[[880,880],"mapped",[881]],[[881,881],"valid"],[[882,882],"mapped",[883]],[[883,883],"valid"],[[884,884],"mapped",[697]],[[885,885],"valid"],[[886,886],"mapped",[887]],[[887,887],"valid"],[[888,889],"disallowed"],[[890,890],"disallowed_STD3_mapped",[32,953]],[[891,893],"valid"],[[894,894],"disallowed_STD3_mapped",[59]],[[895,895],"mapped",[1011]],[[896,899],"disallowed"],[[900,900],"disallowed_STD3_mapped",[32,769]],[[901,901],"disallowed_STD3_mapped",[32,776,769]],[[902,902],"mapped",[940]],[[903,903],"mapped",[183]],[[904,904],"mapped",[941]],[[905,905],"mapped",[942]],[[906,906],"mapped",[943]],[[907,907],"disallowed"],[[908,908],"mapped",[972]],[[909,909],"disallowed"],[[910,910],"mapped",[973]],[[911,911],"mapped",[974]],[[912,912],"valid"],[[913,913],"mapped",[945]],[[914,914],"mapped",[946]],[[915,915],"mapped",[947]],[[916,916],"mapped",[948]],[[917,917],"mapped",[949]],[[918,918],"mapped",[950]],[[919,919],"mapped",[951]],[[920,920],"mapped",[952]],[[921,921],"mapped",[953]],[[922,922],"mapped",[954]],[[923,923],"mapped",[955]],[[924,924],"mapped",[956]],[[925,925],"mapped",[957]],[[926,926],"mapped",[958]],[[927,927],"mapped",[959]],[[928,928],"mapped",[960]],[[929,929],"mapped",[961]],[[930,930],"disallowed"],[[931,931],"mapped",[963]],[[932,932],"mapped",[964]],[[933,933],"mapped",[965]],[[934,934],"mapped",[966]],[[935,935],"mapped",[967]],[[936,936],"mapped",[968]],[[937,937],"mapped",[969]],[[938,938],"mapped",[970]],[[939,939],"mapped",[971]],[[940,961],"valid"],[[962,962],"deviation",[963]],[[963,974],"valid"],[[975,975],"mapped",[983]],[[976,976],"mapped",[946]],[[977,977],"mapped",[952]],[[978,978],"mapped",[965]],[[979,979],"mapped",[973]],[[980,980],"mapped",[971]],[[981,981],"mapped",[966]],[[982,982],"mapped",[960]],[[983,983],"valid"],[[984,984],"mapped",[985]],[[985,985],"valid"],[[986,986],"mapped",[987]],[[987,987],"valid"],[[988,988],"mapped",[989]],[[989,989],"valid"],[[990,990],"mapped",[991]],[[991,991],"valid"],[[992,992],"mapped",[993]],[[993,993],"valid"],[[994,994],"mapped",[995]],[[995,995],"valid"],[[996,996],"mapped",[997]],[[997,997],"valid"],[[998,998],"mapped",[999]],[[999,999],"valid"],[[1e3,1e3],"mapped",[1001]],[[1001,1001],"valid"],[[1002,1002],"mapped",[1003]],[[1003,1003],"valid"],[[1004,1004],"mapped",[1005]],[[1005,1005],"valid"],[[1006,1006],"mapped",[1007]],[[1007,1007],"valid"],[[1008,1008],"mapped",[954]],[[1009,1009],"mapped",[961]],[[1010,1010],"mapped",[963]],[[1011,1011],"valid"],[[1012,1012],"mapped",[952]],[[1013,1013],"mapped",[949]],[[1014,1014],"valid",[],"NV8"],[[1015,1015],"mapped",[1016]],[[1016,1016],"valid"],[[1017,1017],"mapped",[963]],[[1018,1018],"mapped",[1019]],[[1019,1019],"valid"],[[1020,1020],"valid"],[[1021,1021],"mapped",[891]],[[1022,1022],"mapped",[892]],[[1023,1023],"mapped",[893]],[[1024,1024],"mapped",[1104]],[[1025,1025],"mapped",[1105]],[[1026,1026],"mapped",[1106]],[[1027,1027],"mapped",[1107]],[[1028,1028],"mapped",[1108]],[[1029,1029],"mapped",[1109]],[[1030,1030],"mapped",[1110]],[[1031,1031],"mapped",[1111]],[[1032,1032],"mapped",[1112]],[[1033,1033],"mapped",[1113]],[[1034,1034],"mapped",[1114]],[[1035,1035],"mapped",[1115]],[[1036,1036],"mapped",[1116]],[[1037,1037],"mapped",[1117]],[[1038,1038],"mapped",[1118]],[[1039,1039],"mapped",[1119]],[[1040,1040],"mapped",[1072]],[[1041,1041],"mapped",[1073]],[[1042,1042],"mapped",[1074]],[[1043,1043],"mapped",[1075]],[[1044,1044],"mapped",[1076]],[[1045,1045],"mapped",[1077]],[[1046,1046],"mapped",[1078]],[[1047,1047],"mapped",[1079]],[[1048,1048],"mapped",[1080]],[[1049,1049],"mapped",[1081]],[[1050,1050],"mapped",[1082]],[[1051,1051],"mapped",[1083]],[[1052,1052],"mapped",[1084]],[[1053,1053],"mapped",[1085]],[[1054,1054],"mapped",[1086]],[[1055,1055],"mapped",[1087]],[[1056,1056],"mapped",[1088]],[[1057,1057],"mapped",[1089]],[[1058,1058],"mapped",[1090]],[[1059,1059],"mapped",[1091]],[[1060,1060],"mapped",[1092]],[[1061,1061],"mapped",[1093]],[[1062,1062],"mapped",[1094]],[[1063,1063],"mapped",[1095]],[[1064,1064],"mapped",[1096]],[[1065,1065],"mapped",[1097]],[[1066,1066],"mapped",[1098]],[[1067,1067],"mapped",[1099]],[[1068,1068],"mapped",[1100]],[[1069,1069],"mapped",[1101]],[[1070,1070],"mapped",[1102]],[[1071,1071],"mapped",[1103]],[[1072,1103],"valid"],[[1104,1104],"valid"],[[1105,1116],"valid"],[[1117,1117],"valid"],[[1118,1119],"valid"],[[1120,1120],"mapped",[1121]],[[1121,1121],"valid"],[[1122,1122],"mapped",[1123]],[[1123,1123],"valid"],[[1124,1124],"mapped",[1125]],[[1125,1125],"valid"],[[1126,1126],"mapped",[1127]],[[1127,1127],"valid"],[[1128,1128],"mapped",[1129]],[[1129,1129],"valid"],[[1130,1130],"mapped",[1131]],[[1131,1131],"valid"],[[1132,1132],"mapped",[1133]],[[1133,1133],"valid"],[[1134,1134],"mapped",[1135]],[[1135,1135],"valid"],[[1136,1136],"mapped",[1137]],[[1137,1137],"valid"],[[1138,1138],"mapped",[1139]],[[1139,1139],"valid"],[[1140,1140],"mapped",[1141]],[[1141,1141],"valid"],[[1142,1142],"mapped",[1143]],[[1143,1143],"valid"],[[1144,1144],"mapped",[1145]],[[1145,1145],"valid"],[[1146,1146],"mapped",[1147]],[[1147,1147],"valid"],[[1148,1148],"mapped",[1149]],[[1149,1149],"valid"],[[1150,1150],"mapped",[1151]],[[1151,1151],"valid"],[[1152,1152],"mapped",[1153]],[[1153,1153],"valid"],[[1154,1154],"valid",[],"NV8"],[[1155,1158],"valid"],[[1159,1159],"valid"],[[1160,1161],"valid",[],"NV8"],[[1162,1162],"mapped",[1163]],[[1163,1163],"valid"],[[1164,1164],"mapped",[1165]],[[1165,1165],"valid"],[[1166,1166],"mapped",[1167]],[[1167,1167],"valid"],[[1168,1168],"mapped",[1169]],[[1169,1169],"valid"],[[1170,1170],"mapped",[1171]],[[1171,1171],"valid"],[[1172,1172],"mapped",[1173]],[[1173,1173],"valid"],[[1174,1174],"mapped",[1175]],[[1175,1175],"valid"],[[1176,1176],"mapped",[1177]],[[1177,1177],"valid"],[[1178,1178],"mapped",[1179]],[[1179,1179],"valid"],[[1180,1180],"mapped",[1181]],[[1181,1181],"valid"],[[1182,1182],"mapped",[1183]],[[1183,1183],"valid"],[[1184,1184],"mapped",[1185]],[[1185,1185],"valid"],[[1186,1186],"mapped",[1187]],[[1187,1187],"valid"],[[1188,1188],"mapped",[1189]],[[1189,1189],"valid"],[[1190,1190],"mapped",[1191]],[[1191,1191],"valid"],[[1192,1192],"mapped",[1193]],[[1193,1193],"valid"],[[1194,1194],"mapped",[1195]],[[1195,1195],"valid"],[[1196,1196],"mapped",[1197]],[[1197,1197],"valid"],[[1198,1198],"mapped",[1199]],[[1199,1199],"valid"],[[1200,1200],"mapped",[1201]],[[1201,1201],"valid"],[[1202,1202],"mapped",[1203]],[[1203,1203],"valid"],[[1204,1204],"mapped",[1205]],[[1205,1205],"valid"],[[1206,1206],"mapped",[1207]],[[1207,1207],"valid"],[[1208,1208],"mapped",[1209]],[[1209,1209],"valid"],[[1210,1210],"mapped",[1211]],[[1211,1211],"valid"],[[1212,1212],"mapped",[1213]],[[1213,1213],"valid"],[[1214,1214],"mapped",[1215]],[[1215,1215],"valid"],[[1216,1216],"disallowed"],[[1217,1217],"mapped",[1218]],[[1218,1218],"valid"],[[1219,1219],"mapped",[1220]],[[1220,1220],"valid"],[[1221,1221],"mapped",[1222]],[[1222,1222],"valid"],[[1223,1223],"mapped",[1224]],[[1224,1224],"valid"],[[1225,1225],"mapped",[1226]],[[1226,1226],"valid"],[[1227,1227],"mapped",[1228]],[[1228,1228],"valid"],[[1229,1229],"mapped",[1230]],[[1230,1230],"valid"],[[1231,1231],"valid"],[[1232,1232],"mapped",[1233]],[[1233,1233],"valid"],[[1234,1234],"mapped",[1235]],[[1235,1235],"valid"],[[1236,1236],"mapped",[1237]],[[1237,1237],"valid"],[[1238,1238],"mapped",[1239]],[[1239,1239],"valid"],[[1240,1240],"mapped",[1241]],[[1241,1241],"valid"],[[1242,1242],"mapped",[1243]],[[1243,1243],"valid"],[[1244,1244],"mapped",[1245]],[[1245,1245],"valid"],[[1246,1246],"mapped",[1247]],[[1247,1247],"valid"],[[1248,1248],"mapped",[1249]],[[1249,1249],"valid"],[[1250,1250],"mapped",[1251]],[[1251,1251],"valid"],[[1252,1252],"mapped",[1253]],[[1253,1253],"valid"],[[1254,1254],"mapped",[1255]],[[1255,1255],"valid"],[[1256,1256],"mapped",[1257]],[[1257,1257],"valid"],[[1258,1258],"mapped",[1259]],[[1259,1259],"valid"],[[1260,1260],"mapped",[1261]],[[1261,1261],"valid"],[[1262,1262],"mapped",[1263]],[[1263,1263],"valid"],[[1264,1264],"mapped",[1265]],[[1265,1265],"valid"],[[1266,1266],"mapped",[1267]],[[1267,1267],"valid"],[[1268,1268],"mapped",[1269]],[[1269,1269],"valid"],[[1270,1270],"mapped",[1271]],[[1271,1271],"valid"],[[1272,1272],"mapped",[1273]],[[1273,1273],"valid"],[[1274,1274],"mapped",[1275]],[[1275,1275],"valid"],[[1276,1276],"mapped",[1277]],[[1277,1277],"valid"],[[1278,1278],"mapped",[1279]],[[1279,1279],"valid"],[[1280,1280],"mapped",[1281]],[[1281,1281],"valid"],[[1282,1282],"mapped",[1283]],[[1283,1283],"valid"],[[1284,1284],"mapped",[1285]],[[1285,1285],"valid"],[[1286,1286],"mapped",[1287]],[[1287,1287],"valid"],[[1288,1288],"mapped",[1289]],[[1289,1289],"valid"],[[1290,1290],"mapped",[1291]],[[1291,1291],"valid"],[[1292,1292],"mapped",[1293]],[[1293,1293],"valid"],[[1294,1294],"mapped",[1295]],[[1295,1295],"valid"],[[1296,1296],"mapped",[1297]],[[1297,1297],"valid"],[[1298,1298],"mapped",[1299]],[[1299,1299],"valid"],[[1300,1300],"mapped",[1301]],[[1301,1301],"valid"],[[1302,1302],"mapped",[1303]],[[1303,1303],"valid"],[[1304,1304],"mapped",[1305]],[[1305,1305],"valid"],[[1306,1306],"mapped",[1307]],[[1307,1307],"valid"],[[1308,1308],"mapped",[1309]],[[1309,1309],"valid"],[[1310,1310],"mapped",[1311]],[[1311,1311],"valid"],[[1312,1312],"mapped",[1313]],[[1313,1313],"valid"],[[1314,1314],"mapped",[1315]],[[1315,1315],"valid"],[[1316,1316],"mapped",[1317]],[[1317,1317],"valid"],[[1318,1318],"mapped",[1319]],[[1319,1319],"valid"],[[1320,1320],"mapped",[1321]],[[1321,1321],"valid"],[[1322,1322],"mapped",[1323]],[[1323,1323],"valid"],[[1324,1324],"mapped",[1325]],[[1325,1325],"valid"],[[1326,1326],"mapped",[1327]],[[1327,1327],"valid"],[[1328,1328],"disallowed"],[[1329,1329],"mapped",[1377]],[[1330,1330],"mapped",[1378]],[[1331,1331],"mapped",[1379]],[[1332,1332],"mapped",[1380]],[[1333,1333],"mapped",[1381]],[[1334,1334],"mapped",[1382]],[[1335,1335],"mapped",[1383]],[[1336,1336],"mapped",[1384]],[[1337,1337],"mapped",[1385]],[[1338,1338],"mapped",[1386]],[[1339,1339],"mapped",[1387]],[[1340,1340],"mapped",[1388]],[[1341,1341],"mapped",[1389]],[[1342,1342],"mapped",[1390]],[[1343,1343],"mapped",[1391]],[[1344,1344],"mapped",[1392]],[[1345,1345],"mapped",[1393]],[[1346,1346],"mapped",[1394]],[[1347,1347],"mapped",[1395]],[[1348,1348],"mapped",[1396]],[[1349,1349],"mapped",[1397]],[[1350,1350],"mapped",[1398]],[[1351,1351],"mapped",[1399]],[[1352,1352],"mapped",[1400]],[[1353,1353],"mapped",[1401]],[[1354,1354],"mapped",[1402]],[[1355,1355],"mapped",[1403]],[[1356,1356],"mapped",[1404]],[[1357,1357],"mapped",[1405]],[[1358,1358],"mapped",[1406]],[[1359,1359],"mapped",[1407]],[[1360,1360],"mapped",[1408]],[[1361,1361],"mapped",[1409]],[[1362,1362],"mapped",[1410]],[[1363,1363],"mapped",[1411]],[[1364,1364],"mapped",[1412]],[[1365,1365],"mapped",[1413]],[[1366,1366],"mapped",[1414]],[[1367,1368],"disallowed"],[[1369,1369],"valid"],[[1370,1375],"valid",[],"NV8"],[[1376,1376],"disallowed"],[[1377,1414],"valid"],[[1415,1415],"mapped",[1381,1410]],[[1416,1416],"disallowed"],[[1417,1417],"valid",[],"NV8"],[[1418,1418],"valid",[],"NV8"],[[1419,1420],"disallowed"],[[1421,1422],"valid",[],"NV8"],[[1423,1423],"valid",[],"NV8"],[[1424,1424],"disallowed"],[[1425,1441],"valid"],[[1442,1442],"valid"],[[1443,1455],"valid"],[[1456,1465],"valid"],[[1466,1466],"valid"],[[1467,1469],"valid"],[[1470,1470],"valid",[],"NV8"],[[1471,1471],"valid"],[[1472,1472],"valid",[],"NV8"],[[1473,1474],"valid"],[[1475,1475],"valid",[],"NV8"],[[1476,1476],"valid"],[[1477,1477],"valid"],[[1478,1478],"valid",[],"NV8"],[[1479,1479],"valid"],[[1480,1487],"disallowed"],[[1488,1514],"valid"],[[1515,1519],"disallowed"],[[1520,1524],"valid"],[[1525,1535],"disallowed"],[[1536,1539],"disallowed"],[[1540,1540],"disallowed"],[[1541,1541],"disallowed"],[[1542,1546],"valid",[],"NV8"],[[1547,1547],"valid",[],"NV8"],[[1548,1548],"valid",[],"NV8"],[[1549,1551],"valid",[],"NV8"],[[1552,1557],"valid"],[[1558,1562],"valid"],[[1563,1563],"valid",[],"NV8"],[[1564,1564],"disallowed"],[[1565,1565],"disallowed"],[[1566,1566],"valid",[],"NV8"],[[1567,1567],"valid",[],"NV8"],[[1568,1568],"valid"],[[1569,1594],"valid"],[[1595,1599],"valid"],[[1600,1600],"valid",[],"NV8"],[[1601,1618],"valid"],[[1619,1621],"valid"],[[1622,1624],"valid"],[[1625,1630],"valid"],[[1631,1631],"valid"],[[1632,1641],"valid"],[[1642,1645],"valid",[],"NV8"],[[1646,1647],"valid"],[[1648,1652],"valid"],[[1653,1653],"mapped",[1575,1652]],[[1654,1654],"mapped",[1608,1652]],[[1655,1655],"mapped",[1735,1652]],[[1656,1656],"mapped",[1610,1652]],[[1657,1719],"valid"],[[1720,1721],"valid"],[[1722,1726],"valid"],[[1727,1727],"valid"],[[1728,1742],"valid"],[[1743,1743],"valid"],[[1744,1747],"valid"],[[1748,1748],"valid",[],"NV8"],[[1749,1756],"valid"],[[1757,1757],"disallowed"],[[1758,1758],"valid",[],"NV8"],[[1759,1768],"valid"],[[1769,1769],"valid",[],"NV8"],[[1770,1773],"valid"],[[1774,1775],"valid"],[[1776,1785],"valid"],[[1786,1790],"valid"],[[1791,1791],"valid"],[[1792,1805],"valid",[],"NV8"],[[1806,1806],"disallowed"],[[1807,1807],"disallowed"],[[1808,1836],"valid"],[[1837,1839],"valid"],[[1840,1866],"valid"],[[1867,1868],"disallowed"],[[1869,1871],"valid"],[[1872,1901],"valid"],[[1902,1919],"valid"],[[1920,1968],"valid"],[[1969,1969],"valid"],[[1970,1983],"disallowed"],[[1984,2037],"valid"],[[2038,2042],"valid",[],"NV8"],[[2043,2047],"disallowed"],[[2048,2093],"valid"],[[2094,2095],"disallowed"],[[2096,2110],"valid",[],"NV8"],[[2111,2111],"disallowed"],[[2112,2139],"valid"],[[2140,2141],"disallowed"],[[2142,2142],"valid",[],"NV8"],[[2143,2207],"disallowed"],[[2208,2208],"valid"],[[2209,2209],"valid"],[[2210,2220],"valid"],[[2221,2226],"valid"],[[2227,2228],"valid"],[[2229,2274],"disallowed"],[[2275,2275],"valid"],[[2276,2302],"valid"],[[2303,2303],"valid"],[[2304,2304],"valid"],[[2305,2307],"valid"],[[2308,2308],"valid"],[[2309,2361],"valid"],[[2362,2363],"valid"],[[2364,2381],"valid"],[[2382,2382],"valid"],[[2383,2383],"valid"],[[2384,2388],"valid"],[[2389,2389],"valid"],[[2390,2391],"valid"],[[2392,2392],"mapped",[2325,2364]],[[2393,2393],"mapped",[2326,2364]],[[2394,2394],"mapped",[2327,2364]],[[2395,2395],"mapped",[2332,2364]],[[2396,2396],"mapped",[2337,2364]],[[2397,2397],"mapped",[2338,2364]],[[2398,2398],"mapped",[2347,2364]],[[2399,2399],"mapped",[2351,2364]],[[2400,2403],"valid"],[[2404,2405],"valid",[],"NV8"],[[2406,2415],"valid"],[[2416,2416],"valid",[],"NV8"],[[2417,2418],"valid"],[[2419,2423],"valid"],[[2424,2424],"valid"],[[2425,2426],"valid"],[[2427,2428],"valid"],[[2429,2429],"valid"],[[2430,2431],"valid"],[[2432,2432],"valid"],[[2433,2435],"valid"],[[2436,2436],"disallowed"],[[2437,2444],"valid"],[[2445,2446],"disallowed"],[[2447,2448],"valid"],[[2449,2450],"disallowed"],[[2451,2472],"valid"],[[2473,2473],"disallowed"],[[2474,2480],"valid"],[[2481,2481],"disallowed"],[[2482,2482],"valid"],[[2483,2485],"disallowed"],[[2486,2489],"valid"],[[2490,2491],"disallowed"],[[2492,2492],"valid"],[[2493,2493],"valid"],[[2494,2500],"valid"],[[2501,2502],"disallowed"],[[2503,2504],"valid"],[[2505,2506],"disallowed"],[[2507,2509],"valid"],[[2510,2510],"valid"],[[2511,2518],"disallowed"],[[2519,2519],"valid"],[[2520,2523],"disallowed"],[[2524,2524],"mapped",[2465,2492]],[[2525,2525],"mapped",[2466,2492]],[[2526,2526],"disallowed"],[[2527,2527],"mapped",[2479,2492]],[[2528,2531],"valid"],[[2532,2533],"disallowed"],[[2534,2545],"valid"],[[2546,2554],"valid",[],"NV8"],[[2555,2555],"valid",[],"NV8"],[[2556,2560],"disallowed"],[[2561,2561],"valid"],[[2562,2562],"valid"],[[2563,2563],"valid"],[[2564,2564],"disallowed"],[[2565,2570],"valid"],[[2571,2574],"disallowed"],[[2575,2576],"valid"],[[2577,2578],"disallowed"],[[2579,2600],"valid"],[[2601,2601],"disallowed"],[[2602,2608],"valid"],[[2609,2609],"disallowed"],[[2610,2610],"valid"],[[2611,2611],"mapped",[2610,2620]],[[2612,2612],"disallowed"],[[2613,2613],"valid"],[[2614,2614],"mapped",[2616,2620]],[[2615,2615],"disallowed"],[[2616,2617],"valid"],[[2618,2619],"disallowed"],[[2620,2620],"valid"],[[2621,2621],"disallowed"],[[2622,2626],"valid"],[[2627,2630],"disallowed"],[[2631,2632],"valid"],[[2633,2634],"disallowed"],[[2635,2637],"valid"],[[2638,2640],"disallowed"],[[2641,2641],"valid"],[[2642,2648],"disallowed"],[[2649,2649],"mapped",[2582,2620]],[[2650,2650],"mapped",[2583,2620]],[[2651,2651],"mapped",[2588,2620]],[[2652,2652],"valid"],[[2653,2653],"disallowed"],[[2654,2654],"mapped",[2603,2620]],[[2655,2661],"disallowed"],[[2662,2676],"valid"],[[2677,2677],"valid"],[[2678,2688],"disallowed"],[[2689,2691],"valid"],[[2692,2692],"disallowed"],[[2693,2699],"valid"],[[2700,2700],"valid"],[[2701,2701],"valid"],[[2702,2702],"disallowed"],[[2703,2705],"valid"],[[2706,2706],"disallowed"],[[2707,2728],"valid"],[[2729,2729],"disallowed"],[[2730,2736],"valid"],[[2737,2737],"disallowed"],[[2738,2739],"valid"],[[2740,2740],"disallowed"],[[2741,2745],"valid"],[[2746,2747],"disallowed"],[[2748,2757],"valid"],[[2758,2758],"disallowed"],[[2759,2761],"valid"],[[2762,2762],"disallowed"],[[2763,2765],"valid"],[[2766,2767],"disallowed"],[[2768,2768],"valid"],[[2769,2783],"disallowed"],[[2784,2784],"valid"],[[2785,2787],"valid"],[[2788,2789],"disallowed"],[[2790,2799],"valid"],[[2800,2800],"valid",[],"NV8"],[[2801,2801],"valid",[],"NV8"],[[2802,2808],"disallowed"],[[2809,2809],"valid"],[[2810,2816],"disallowed"],[[2817,2819],"valid"],[[2820,2820],"disallowed"],[[2821,2828],"valid"],[[2829,2830],"disallowed"],[[2831,2832],"valid"],[[2833,2834],"disallowed"],[[2835,2856],"valid"],[[2857,2857],"disallowed"],[[2858,2864],"valid"],[[2865,2865],"disallowed"],[[2866,2867],"valid"],[[2868,2868],"disallowed"],[[2869,2869],"valid"],[[2870,2873],"valid"],[[2874,2875],"disallowed"],[[2876,2883],"valid"],[[2884,2884],"valid"],[[2885,2886],"disallowed"],[[2887,2888],"valid"],[[2889,2890],"disallowed"],[[2891,2893],"valid"],[[2894,2901],"disallowed"],[[2902,2903],"valid"],[[2904,2907],"disallowed"],[[2908,2908],"mapped",[2849,2876]],[[2909,2909],"mapped",[2850,2876]],[[2910,2910],"disallowed"],[[2911,2913],"valid"],[[2914,2915],"valid"],[[2916,2917],"disallowed"],[[2918,2927],"valid"],[[2928,2928],"valid",[],"NV8"],[[2929,2929],"valid"],[[2930,2935],"valid",[],"NV8"],[[2936,2945],"disallowed"],[[2946,2947],"valid"],[[2948,2948],"disallowed"],[[2949,2954],"valid"],[[2955,2957],"disallowed"],[[2958,2960],"valid"],[[2961,2961],"disallowed"],[[2962,2965],"valid"],[[2966,2968],"disallowed"],[[2969,2970],"valid"],[[2971,2971],"disallowed"],[[2972,2972],"valid"],[[2973,2973],"disallowed"],[[2974,2975],"valid"],[[2976,2978],"disallowed"],[[2979,2980],"valid"],[[2981,2983],"disallowed"],[[2984,2986],"valid"],[[2987,2989],"disallowed"],[[2990,2997],"valid"],[[2998,2998],"valid"],[[2999,3001],"valid"],[[3002,3005],"disallowed"],[[3006,3010],"valid"],[[3011,3013],"disallowed"],[[3014,3016],"valid"],[[3017,3017],"disallowed"],[[3018,3021],"valid"],[[3022,3023],"disallowed"],[[3024,3024],"valid"],[[3025,3030],"disallowed"],[[3031,3031],"valid"],[[3032,3045],"disallowed"],[[3046,3046],"valid"],[[3047,3055],"valid"],[[3056,3058],"valid",[],"NV8"],[[3059,3066],"valid",[],"NV8"],[[3067,3071],"disallowed"],[[3072,3072],"valid"],[[3073,3075],"valid"],[[3076,3076],"disallowed"],[[3077,3084],"valid"],[[3085,3085],"disallowed"],[[3086,3088],"valid"],[[3089,3089],"disallowed"],[[3090,3112],"valid"],[[3113,3113],"disallowed"],[[3114,3123],"valid"],[[3124,3124],"valid"],[[3125,3129],"valid"],[[3130,3132],"disallowed"],[[3133,3133],"valid"],[[3134,3140],"valid"],[[3141,3141],"disallowed"],[[3142,3144],"valid"],[[3145,3145],"disallowed"],[[3146,3149],"valid"],[[3150,3156],"disallowed"],[[3157,3158],"valid"],[[3159,3159],"disallowed"],[[3160,3161],"valid"],[[3162,3162],"valid"],[[3163,3167],"disallowed"],[[3168,3169],"valid"],[[3170,3171],"valid"],[[3172,3173],"disallowed"],[[3174,3183],"valid"],[[3184,3191],"disallowed"],[[3192,3199],"valid",[],"NV8"],[[3200,3200],"disallowed"],[[3201,3201],"valid"],[[3202,3203],"valid"],[[3204,3204],"disallowed"],[[3205,3212],"valid"],[[3213,3213],"disallowed"],[[3214,3216],"valid"],[[3217,3217],"disallowed"],[[3218,3240],"valid"],[[3241,3241],"disallowed"],[[3242,3251],"valid"],[[3252,3252],"disallowed"],[[3253,3257],"valid"],[[3258,3259],"disallowed"],[[3260,3261],"valid"],[[3262,3268],"valid"],[[3269,3269],"disallowed"],[[3270,3272],"valid"],[[3273,3273],"disallowed"],[[3274,3277],"valid"],[[3278,3284],"disallowed"],[[3285,3286],"valid"],[[3287,3293],"disallowed"],[[3294,3294],"valid"],[[3295,3295],"disallowed"],[[3296,3297],"valid"],[[3298,3299],"valid"],[[3300,3301],"disallowed"],[[3302,3311],"valid"],[[3312,3312],"disallowed"],[[3313,3314],"valid"],[[3315,3328],"disallowed"],[[3329,3329],"valid"],[[3330,3331],"valid"],[[3332,3332],"disallowed"],[[3333,3340],"valid"],[[3341,3341],"disallowed"],[[3342,3344],"valid"],[[3345,3345],"disallowed"],[[3346,3368],"valid"],[[3369,3369],"valid"],[[3370,3385],"valid"],[[3386,3386],"valid"],[[3387,3388],"disallowed"],[[3389,3389],"valid"],[[3390,3395],"valid"],[[3396,3396],"valid"],[[3397,3397],"disallowed"],[[3398,3400],"valid"],[[3401,3401],"disallowed"],[[3402,3405],"valid"],[[3406,3406],"valid"],[[3407,3414],"disallowed"],[[3415,3415],"valid"],[[3416,3422],"disallowed"],[[3423,3423],"valid"],[[3424,3425],"valid"],[[3426,3427],"valid"],[[3428,3429],"disallowed"],[[3430,3439],"valid"],[[3440,3445],"valid",[],"NV8"],[[3446,3448],"disallowed"],[[3449,3449],"valid",[],"NV8"],[[3450,3455],"valid"],[[3456,3457],"disallowed"],[[3458,3459],"valid"],[[3460,3460],"disallowed"],[[3461,3478],"valid"],[[3479,3481],"disallowed"],[[3482,3505],"valid"],[[3506,3506],"disallowed"],[[3507,3515],"valid"],[[3516,3516],"disallowed"],[[3517,3517],"valid"],[[3518,3519],"disallowed"],[[3520,3526],"valid"],[[3527,3529],"disallowed"],[[3530,3530],"valid"],[[3531,3534],"disallowed"],[[3535,3540],"valid"],[[3541,3541],"disallowed"],[[3542,3542],"valid"],[[3543,3543],"disallowed"],[[3544,3551],"valid"],[[3552,3557],"disallowed"],[[3558,3567],"valid"],[[3568,3569],"disallowed"],[[3570,3571],"valid"],[[3572,3572],"valid",[],"NV8"],[[3573,3584],"disallowed"],[[3585,3634],"valid"],[[3635,3635],"mapped",[3661,3634]],[[3636,3642],"valid"],[[3643,3646],"disallowed"],[[3647,3647],"valid",[],"NV8"],[[3648,3662],"valid"],[[3663,3663],"valid",[],"NV8"],[[3664,3673],"valid"],[[3674,3675],"valid",[],"NV8"],[[3676,3712],"disallowed"],[[3713,3714],"valid"],[[3715,3715],"disallowed"],[[3716,3716],"valid"],[[3717,3718],"disallowed"],[[3719,3720],"valid"],[[3721,3721],"disallowed"],[[3722,3722],"valid"],[[3723,3724],"disallowed"],[[3725,3725],"valid"],[[3726,3731],"disallowed"],[[3732,3735],"valid"],[[3736,3736],"disallowed"],[[3737,3743],"valid"],[[3744,3744],"disallowed"],[[3745,3747],"valid"],[[3748,3748],"disallowed"],[[3749,3749],"valid"],[[3750,3750],"disallowed"],[[3751,3751],"valid"],[[3752,3753],"disallowed"],[[3754,3755],"valid"],[[3756,3756],"disallowed"],[[3757,3762],"valid"],[[3763,3763],"mapped",[3789,3762]],[[3764,3769],"valid"],[[3770,3770],"disallowed"],[[3771,3773],"valid"],[[3774,3775],"disallowed"],[[3776,3780],"valid"],[[3781,3781],"disallowed"],[[3782,3782],"valid"],[[3783,3783],"disallowed"],[[3784,3789],"valid"],[[3790,3791],"disallowed"],[[3792,3801],"valid"],[[3802,3803],"disallowed"],[[3804,3804],"mapped",[3755,3737]],[[3805,3805],"mapped",[3755,3745]],[[3806,3807],"valid"],[[3808,3839],"disallowed"],[[3840,3840],"valid"],[[3841,3850],"valid",[],"NV8"],[[3851,3851],"valid"],[[3852,3852],"mapped",[3851]],[[3853,3863],"valid",[],"NV8"],[[3864,3865],"valid"],[[3866,3871],"valid",[],"NV8"],[[3872,3881],"valid"],[[3882,3892],"valid",[],"NV8"],[[3893,3893],"valid"],[[3894,3894],"valid",[],"NV8"],[[3895,3895],"valid"],[[3896,3896],"valid",[],"NV8"],[[3897,3897],"valid"],[[3898,3901],"valid",[],"NV8"],[[3902,3906],"valid"],[[3907,3907],"mapped",[3906,4023]],[[3908,3911],"valid"],[[3912,3912],"disallowed"],[[3913,3916],"valid"],[[3917,3917],"mapped",[3916,4023]],[[3918,3921],"valid"],[[3922,3922],"mapped",[3921,4023]],[[3923,3926],"valid"],[[3927,3927],"mapped",[3926,4023]],[[3928,3931],"valid"],[[3932,3932],"mapped",[3931,4023]],[[3933,3944],"valid"],[[3945,3945],"mapped",[3904,4021]],[[3946,3946],"valid"],[[3947,3948],"valid"],[[3949,3952],"disallowed"],[[3953,3954],"valid"],[[3955,3955],"mapped",[3953,3954]],[[3956,3956],"valid"],[[3957,3957],"mapped",[3953,3956]],[[3958,3958],"mapped",[4018,3968]],[[3959,3959],"mapped",[4018,3953,3968]],[[3960,3960],"mapped",[4019,3968]],[[3961,3961],"mapped",[4019,3953,3968]],[[3962,3968],"valid"],[[3969,3969],"mapped",[3953,3968]],[[3970,3972],"valid"],[[3973,3973],"valid",[],"NV8"],[[3974,3979],"valid"],[[3980,3983],"valid"],[[3984,3986],"valid"],[[3987,3987],"mapped",[3986,4023]],[[3988,3989],"valid"],[[3990,3990],"valid"],[[3991,3991],"valid"],[[3992,3992],"disallowed"],[[3993,3996],"valid"],[[3997,3997],"mapped",[3996,4023]],[[3998,4001],"valid"],[[4002,4002],"mapped",[4001,4023]],[[4003,4006],"valid"],[[4007,4007],"mapped",[4006,4023]],[[4008,4011],"valid"],[[4012,4012],"mapped",[4011,4023]],[[4013,4013],"valid"],[[4014,4016],"valid"],[[4017,4023],"valid"],[[4024,4024],"valid"],[[4025,4025],"mapped",[3984,4021]],[[4026,4028],"valid"],[[4029,4029],"disallowed"],[[4030,4037],"valid",[],"NV8"],[[4038,4038],"valid"],[[4039,4044],"valid",[],"NV8"],[[4045,4045],"disallowed"],[[4046,4046],"valid",[],"NV8"],[[4047,4047],"valid",[],"NV8"],[[4048,4049],"valid",[],"NV8"],[[4050,4052],"valid",[],"NV8"],[[4053,4056],"valid",[],"NV8"],[[4057,4058],"valid",[],"NV8"],[[4059,4095],"disallowed"],[[4096,4129],"valid"],[[4130,4130],"valid"],[[4131,4135],"valid"],[[4136,4136],"valid"],[[4137,4138],"valid"],[[4139,4139],"valid"],[[4140,4146],"valid"],[[4147,4149],"valid"],[[4150,4153],"valid"],[[4154,4159],"valid"],[[4160,4169],"valid"],[[4170,4175],"valid",[],"NV8"],[[4176,4185],"valid"],[[4186,4249],"valid"],[[4250,4253],"valid"],[[4254,4255],"valid",[],"NV8"],[[4256,4293],"disallowed"],[[4294,4294],"disallowed"],[[4295,4295],"mapped",[11559]],[[4296,4300],"disallowed"],[[4301,4301],"mapped",[11565]],[[4302,4303],"disallowed"],[[4304,4342],"valid"],[[4343,4344],"valid"],[[4345,4346],"valid"],[[4347,4347],"valid",[],"NV8"],[[4348,4348],"mapped",[4316]],[[4349,4351],"valid"],[[4352,4441],"valid",[],"NV8"],[[4442,4446],"valid",[],"NV8"],[[4447,4448],"disallowed"],[[4449,4514],"valid",[],"NV8"],[[4515,4519],"valid",[],"NV8"],[[4520,4601],"valid",[],"NV8"],[[4602,4607],"valid",[],"NV8"],[[4608,4614],"valid"],[[4615,4615],"valid"],[[4616,4678],"valid"],[[4679,4679],"valid"],[[4680,4680],"valid"],[[4681,4681],"disallowed"],[[4682,4685],"valid"],[[4686,4687],"disallowed"],[[4688,4694],"valid"],[[4695,4695],"disallowed"],[[4696,4696],"valid"],[[4697,4697],"disallowed"],[[4698,4701],"valid"],[[4702,4703],"disallowed"],[[4704,4742],"valid"],[[4743,4743],"valid"],[[4744,4744],"valid"],[[4745,4745],"disallowed"],[[4746,4749],"valid"],[[4750,4751],"disallowed"],[[4752,4782],"valid"],[[4783,4783],"valid"],[[4784,4784],"valid"],[[4785,4785],"disallowed"],[[4786,4789],"valid"],[[4790,4791],"disallowed"],[[4792,4798],"valid"],[[4799,4799],"disallowed"],[[4800,4800],"valid"],[[4801,4801],"disallowed"],[[4802,4805],"valid"],[[4806,4807],"disallowed"],[[4808,4814],"valid"],[[4815,4815],"valid"],[[4816,4822],"valid"],[[4823,4823],"disallowed"],[[4824,4846],"valid"],[[4847,4847],"valid"],[[4848,4878],"valid"],[[4879,4879],"valid"],[[4880,4880],"valid"],[[4881,4881],"disallowed"],[[4882,4885],"valid"],[[4886,4887],"disallowed"],[[4888,4894],"valid"],[[4895,4895],"valid"],[[4896,4934],"valid"],[[4935,4935],"valid"],[[4936,4954],"valid"],[[4955,4956],"disallowed"],[[4957,4958],"valid"],[[4959,4959],"valid"],[[4960,4960],"valid",[],"NV8"],[[4961,4988],"valid",[],"NV8"],[[4989,4991],"disallowed"],[[4992,5007],"valid"],[[5008,5017],"valid",[],"NV8"],[[5018,5023],"disallowed"],[[5024,5108],"valid"],[[5109,5109],"valid"],[[5110,5111],"disallowed"],[[5112,5112],"mapped",[5104]],[[5113,5113],"mapped",[5105]],[[5114,5114],"mapped",[5106]],[[5115,5115],"mapped",[5107]],[[5116,5116],"mapped",[5108]],[[5117,5117],"mapped",[5109]],[[5118,5119],"disallowed"],[[5120,5120],"valid",[],"NV8"],[[5121,5740],"valid"],[[5741,5742],"valid",[],"NV8"],[[5743,5750],"valid"],[[5751,5759],"valid"],[[5760,5760],"disallowed"],[[5761,5786],"valid"],[[5787,5788],"valid",[],"NV8"],[[5789,5791],"disallowed"],[[5792,5866],"valid"],[[5867,5872],"valid",[],"NV8"],[[5873,5880],"valid"],[[5881,5887],"disallowed"],[[5888,5900],"valid"],[[5901,5901],"disallowed"],[[5902,5908],"valid"],[[5909,5919],"disallowed"],[[5920,5940],"valid"],[[5941,5942],"valid",[],"NV8"],[[5943,5951],"disallowed"],[[5952,5971],"valid"],[[5972,5983],"disallowed"],[[5984,5996],"valid"],[[5997,5997],"disallowed"],[[5998,6e3],"valid"],[[6001,6001],"disallowed"],[[6002,6003],"valid"],[[6004,6015],"disallowed"],[[6016,6067],"valid"],[[6068,6069],"disallowed"],[[6070,6099],"valid"],[[6100,6102],"valid",[],"NV8"],[[6103,6103],"valid"],[[6104,6107],"valid",[],"NV8"],[[6108,6108],"valid"],[[6109,6109],"valid"],[[6110,6111],"disallowed"],[[6112,6121],"valid"],[[6122,6127],"disallowed"],[[6128,6137],"valid",[],"NV8"],[[6138,6143],"disallowed"],[[6144,6149],"valid",[],"NV8"],[[6150,6150],"disallowed"],[[6151,6154],"valid",[],"NV8"],[[6155,6157],"ignored"],[[6158,6158],"disallowed"],[[6159,6159],"disallowed"],[[6160,6169],"valid"],[[6170,6175],"disallowed"],[[6176,6263],"valid"],[[6264,6271],"disallowed"],[[6272,6313],"valid"],[[6314,6314],"valid"],[[6315,6319],"disallowed"],[[6320,6389],"valid"],[[6390,6399],"disallowed"],[[6400,6428],"valid"],[[6429,6430],"valid"],[[6431,6431],"disallowed"],[[6432,6443],"valid"],[[6444,6447],"disallowed"],[[6448,6459],"valid"],[[6460,6463],"disallowed"],[[6464,6464],"valid",[],"NV8"],[[6465,6467],"disallowed"],[[6468,6469],"valid",[],"NV8"],[[6470,6509],"valid"],[[6510,6511],"disallowed"],[[6512,6516],"valid"],[[6517,6527],"disallowed"],[[6528,6569],"valid"],[[6570,6571],"valid"],[[6572,6575],"disallowed"],[[6576,6601],"valid"],[[6602,6607],"disallowed"],[[6608,6617],"valid"],[[6618,6618],"valid",[],"XV8"],[[6619,6621],"disallowed"],[[6622,6623],"valid",[],"NV8"],[[6624,6655],"valid",[],"NV8"],[[6656,6683],"valid"],[[6684,6685],"disallowed"],[[6686,6687],"valid",[],"NV8"],[[6688,6750],"valid"],[[6751,6751],"disallowed"],[[6752,6780],"valid"],[[6781,6782],"disallowed"],[[6783,6793],"valid"],[[6794,6799],"disallowed"],[[6800,6809],"valid"],[[6810,6815],"disallowed"],[[6816,6822],"valid",[],"NV8"],[[6823,6823],"valid"],[[6824,6829],"valid",[],"NV8"],[[6830,6831],"disallowed"],[[6832,6845],"valid"],[[6846,6846],"valid",[],"NV8"],[[6847,6911],"disallowed"],[[6912,6987],"valid"],[[6988,6991],"disallowed"],[[6992,7001],"valid"],[[7002,7018],"valid",[],"NV8"],[[7019,7027],"valid"],[[7028,7036],"valid",[],"NV8"],[[7037,7039],"disallowed"],[[7040,7082],"valid"],[[7083,7085],"valid"],[[7086,7097],"valid"],[[7098,7103],"valid"],[[7104,7155],"valid"],[[7156,7163],"disallowed"],[[7164,7167],"valid",[],"NV8"],[[7168,7223],"valid"],[[7224,7226],"disallowed"],[[7227,7231],"valid",[],"NV8"],[[7232,7241],"valid"],[[7242,7244],"disallowed"],[[7245,7293],"valid"],[[7294,7295],"valid",[],"NV8"],[[7296,7359],"disallowed"],[[7360,7367],"valid",[],"NV8"],[[7368,7375],"disallowed"],[[7376,7378],"valid"],[[7379,7379],"valid",[],"NV8"],[[7380,7410],"valid"],[[7411,7414],"valid"],[[7415,7415],"disallowed"],[[7416,7417],"valid"],[[7418,7423],"disallowed"],[[7424,7467],"valid"],[[7468,7468],"mapped",[97]],[[7469,7469],"mapped",[230]],[[7470,7470],"mapped",[98]],[[7471,7471],"valid"],[[7472,7472],"mapped",[100]],[[7473,7473],"mapped",[101]],[[7474,7474],"mapped",[477]],[[7475,7475],"mapped",[103]],[[7476,7476],"mapped",[104]],[[7477,7477],"mapped",[105]],[[7478,7478],"mapped",[106]],[[7479,7479],"mapped",[107]],[[7480,7480],"mapped",[108]],[[7481,7481],"mapped",[109]],[[7482,7482],"mapped",[110]],[[7483,7483],"valid"],[[7484,7484],"mapped",[111]],[[7485,7485],"mapped",[547]],[[7486,7486],"mapped",[112]],[[7487,7487],"mapped",[114]],[[7488,7488],"mapped",[116]],[[7489,7489],"mapped",[117]],[[7490,7490],"mapped",[119]],[[7491,7491],"mapped",[97]],[[7492,7492],"mapped",[592]],[[7493,7493],"mapped",[593]],[[7494,7494],"mapped",[7426]],[[7495,7495],"mapped",[98]],[[7496,7496],"mapped",[100]],[[7497,7497],"mapped",[101]],[[7498,7498],"mapped",[601]],[[7499,7499],"mapped",[603]],[[7500,7500],"mapped",[604]],[[7501,7501],"mapped",[103]],[[7502,7502],"valid"],[[7503,7503],"mapped",[107]],[[7504,7504],"mapped",[109]],[[7505,7505],"mapped",[331]],[[7506,7506],"mapped",[111]],[[7507,7507],"mapped",[596]],[[7508,7508],"mapped",[7446]],[[7509,7509],"mapped",[7447]],[[7510,7510],"mapped",[112]],[[7511,7511],"mapped",[116]],[[7512,7512],"mapped",[117]],[[7513,7513],"mapped",[7453]],[[7514,7514],"mapped",[623]],[[7515,7515],"mapped",[118]],[[7516,7516],"mapped",[7461]],[[7517,7517],"mapped",[946]],[[7518,7518],"mapped",[947]],[[7519,7519],"mapped",[948]],[[7520,7520],"mapped",[966]],[[7521,7521],"mapped",[967]],[[7522,7522],"mapped",[105]],[[7523,7523],"mapped",[114]],[[7524,7524],"mapped",[117]],[[7525,7525],"mapped",[118]],[[7526,7526],"mapped",[946]],[[7527,7527],"mapped",[947]],[[7528,7528],"mapped",[961]],[[7529,7529],"mapped",[966]],[[7530,7530],"mapped",[967]],[[7531,7531],"valid"],[[7532,7543],"valid"],[[7544,7544],"mapped",[1085]],[[7545,7578],"valid"],[[7579,7579],"mapped",[594]],[[7580,7580],"mapped",[99]],[[7581,7581],"mapped",[597]],[[7582,7582],"mapped",[240]],[[7583,7583],"mapped",[604]],[[7584,7584],"mapped",[102]],[[7585,7585],"mapped",[607]],[[7586,7586],"mapped",[609]],[[7587,7587],"mapped",[613]],[[7588,7588],"mapped",[616]],[[7589,7589],"mapped",[617]],[[7590,7590],"mapped",[618]],[[7591,7591],"mapped",[7547]],[[7592,7592],"mapped",[669]],[[7593,7593],"mapped",[621]],[[7594,7594],"mapped",[7557]],[[7595,7595],"mapped",[671]],[[7596,7596],"mapped",[625]],[[7597,7597],"mapped",[624]],[[7598,7598],"mapped",[626]],[[7599,7599],"mapped",[627]],[[7600,7600],"mapped",[628]],[[7601,7601],"mapped",[629]],[[7602,7602],"mapped",[632]],[[7603,7603],"mapped",[642]],[[7604,7604],"mapped",[643]],[[7605,7605],"mapped",[427]],[[7606,7606],"mapped",[649]],[[7607,7607],"mapped",[650]],[[7608,7608],"mapped",[7452]],[[7609,7609],"mapped",[651]],[[7610,7610],"mapped",[652]],[[7611,7611],"mapped",[122]],[[7612,7612],"mapped",[656]],[[7613,7613],"mapped",[657]],[[7614,7614],"mapped",[658]],[[7615,7615],"mapped",[952]],[[7616,7619],"valid"],[[7620,7626],"valid"],[[7627,7654],"valid"],[[7655,7669],"valid"],[[7670,7675],"disallowed"],[[7676,7676],"valid"],[[7677,7677],"valid"],[[7678,7679],"valid"],[[7680,7680],"mapped",[7681]],[[7681,7681],"valid"],[[7682,7682],"mapped",[7683]],[[7683,7683],"valid"],[[7684,7684],"mapped",[7685]],[[7685,7685],"valid"],[[7686,7686],"mapped",[7687]],[[7687,7687],"valid"],[[7688,7688],"mapped",[7689]],[[7689,7689],"valid"],[[7690,7690],"mapped",[7691]],[[7691,7691],"valid"],[[7692,7692],"mapped",[7693]],[[7693,7693],"valid"],[[7694,7694],"mapped",[7695]],[[7695,7695],"valid"],[[7696,7696],"mapped",[7697]],[[7697,7697],"valid"],[[7698,7698],"mapped",[7699]],[[7699,7699],"valid"],[[7700,7700],"mapped",[7701]],[[7701,7701],"valid"],[[7702,7702],"mapped",[7703]],[[7703,7703],"valid"],[[7704,7704],"mapped",[7705]],[[7705,7705],"valid"],[[7706,7706],"mapped",[7707]],[[7707,7707],"valid"],[[7708,7708],"mapped",[7709]],[[7709,7709],"valid"],[[7710,7710],"mapped",[7711]],[[7711,7711],"valid"],[[7712,7712],"mapped",[7713]],[[7713,7713],"valid"],[[7714,7714],"mapped",[7715]],[[7715,7715],"valid"],[[7716,7716],"mapped",[7717]],[[7717,7717],"valid"],[[7718,7718],"mapped",[7719]],[[7719,7719],"valid"],[[7720,7720],"mapped",[7721]],[[7721,7721],"valid"],[[7722,7722],"mapped",[7723]],[[7723,7723],"valid"],[[7724,7724],"mapped",[7725]],[[7725,7725],"valid"],[[7726,7726],"mapped",[7727]],[[7727,7727],"valid"],[[7728,7728],"mapped",[7729]],[[7729,7729],"valid"],[[7730,7730],"mapped",[7731]],[[7731,7731],"valid"],[[7732,7732],"mapped",[7733]],[[7733,7733],"valid"],[[7734,7734],"mapped",[7735]],[[7735,7735],"valid"],[[7736,7736],"mapped",[7737]],[[7737,7737],"valid"],[[7738,7738],"mapped",[7739]],[[7739,7739],"valid"],[[7740,7740],"mapped",[7741]],[[7741,7741],"valid"],[[7742,7742],"mapped",[7743]],[[7743,7743],"valid"],[[7744,7744],"mapped",[7745]],[[7745,7745],"valid"],[[7746,7746],"mapped",[7747]],[[7747,7747],"valid"],[[7748,7748],"mapped",[7749]],[[7749,7749],"valid"],[[7750,7750],"mapped",[7751]],[[7751,7751],"valid"],[[7752,7752],"mapped",[7753]],[[7753,7753],"valid"],[[7754,7754],"mapped",[7755]],[[7755,7755],"valid"],[[7756,7756],"mapped",[7757]],[[7757,7757],"valid"],[[7758,7758],"mapped",[7759]],[[7759,7759],"valid"],[[7760,7760],"mapped",[7761]],[[7761,7761],"valid"],[[7762,7762],"mapped",[7763]],[[7763,7763],"valid"],[[7764,7764],"mapped",[7765]],[[7765,7765],"valid"],[[7766,7766],"mapped",[7767]],[[7767,7767],"valid"],[[7768,7768],"mapped",[7769]],[[7769,7769],"valid"],[[7770,7770],"mapped",[7771]],[[7771,7771],"valid"],[[7772,7772],"mapped",[7773]],[[7773,7773],"valid"],[[7774,7774],"mapped",[7775]],[[7775,7775],"valid"],[[7776,7776],"mapped",[7777]],[[7777,7777],"valid"],[[7778,7778],"mapped",[7779]],[[7779,7779],"valid"],[[7780,7780],"mapped",[7781]],[[7781,7781],"valid"],[[7782,7782],"mapped",[7783]],[[7783,7783],"valid"],[[7784,7784],"mapped",[7785]],[[7785,7785],"valid"],[[7786,7786],"mapped",[7787]],[[7787,7787],"valid"],[[7788,7788],"mapped",[7789]],[[7789,7789],"valid"],[[7790,7790],"mapped",[7791]],[[7791,7791],"valid"],[[7792,7792],"mapped",[7793]],[[7793,7793],"valid"],[[7794,7794],"mapped",[7795]],[[7795,7795],"valid"],[[7796,7796],"mapped",[7797]],[[7797,7797],"valid"],[[7798,7798],"mapped",[7799]],[[7799,7799],"valid"],[[7800,7800],"mapped",[7801]],[[7801,7801],"valid"],[[7802,7802],"mapped",[7803]],[[7803,7803],"valid"],[[7804,7804],"mapped",[7805]],[[7805,7805],"valid"],[[7806,7806],"mapped",[7807]],[[7807,7807],"valid"],[[7808,7808],"mapped",[7809]],[[7809,7809],"valid"],[[7810,7810],"mapped",[7811]],[[7811,7811],"valid"],[[7812,7812],"mapped",[7813]],[[7813,7813],"valid"],[[7814,7814],"mapped",[7815]],[[7815,7815],"valid"],[[7816,7816],"mapped",[7817]],[[7817,7817],"valid"],[[7818,7818],"mapped",[7819]],[[7819,7819],"valid"],[[7820,7820],"mapped",[7821]],[[7821,7821],"valid"],[[7822,7822],"mapped",[7823]],[[7823,7823],"valid"],[[7824,7824],"mapped",[7825]],[[7825,7825],"valid"],[[7826,7826],"mapped",[7827]],[[7827,7827],"valid"],[[7828,7828],"mapped",[7829]],[[7829,7833],"valid"],[[7834,7834],"mapped",[97,702]],[[7835,7835],"mapped",[7777]],[[7836,7837],"valid"],[[7838,7838],"mapped",[115,115]],[[7839,7839],"valid"],[[7840,7840],"mapped",[7841]],[[7841,7841],"valid"],[[7842,7842],"mapped",[7843]],[[7843,7843],"valid"],[[7844,7844],"mapped",[7845]],[[7845,7845],"valid"],[[7846,7846],"mapped",[7847]],[[7847,7847],"valid"],[[7848,7848],"mapped",[7849]],[[7849,7849],"valid"],[[7850,7850],"mapped",[7851]],[[7851,7851],"valid"],[[7852,7852],"mapped",[7853]],[[7853,7853],"valid"],[[7854,7854],"mapped",[7855]],[[7855,7855],"valid"],[[7856,7856],"mapped",[7857]],[[7857,7857],"valid"],[[7858,7858],"mapped",[7859]],[[7859,7859],"valid"],[[7860,7860],"mapped",[7861]],[[7861,7861],"valid"],[[7862,7862],"mapped",[7863]],[[7863,7863],"valid"],[[7864,7864],"mapped",[7865]],[[7865,7865],"valid"],[[7866,7866],"mapped",[7867]],[[7867,7867],"valid"],[[7868,7868],"mapped",[7869]],[[7869,7869],"valid"],[[7870,7870],"mapped",[7871]],[[7871,7871],"valid"],[[7872,7872],"mapped",[7873]],[[7873,7873],"valid"],[[7874,7874],"mapped",[7875]],[[7875,7875],"valid"],[[7876,7876],"mapped",[7877]],[[7877,7877],"valid"],[[7878,7878],"mapped",[7879]],[[7879,7879],"valid"],[[7880,7880],"mapped",[7881]],[[7881,7881],"valid"],[[7882,7882],"mapped",[7883]],[[7883,7883],"valid"],[[7884,7884],"mapped",[7885]],[[7885,7885],"valid"],[[7886,7886],"mapped",[7887]],[[7887,7887],"valid"],[[7888,7888],"mapped",[7889]],[[7889,7889],"valid"],[[7890,7890],"mapped",[7891]],[[7891,7891],"valid"],[[7892,7892],"mapped",[7893]],[[7893,7893],"valid"],[[7894,7894],"mapped",[7895]],[[7895,7895],"valid"],[[7896,7896],"mapped",[7897]],[[7897,7897],"valid"],[[7898,7898],"mapped",[7899]],[[7899,7899],"valid"],[[7900,7900],"mapped",[7901]],[[7901,7901],"valid"],[[7902,7902],"mapped",[7903]],[[7903,7903],"valid"],[[7904,7904],"mapped",[7905]],[[7905,7905],"valid"],[[7906,7906],"mapped",[7907]],[[7907,7907],"valid"],[[7908,7908],"mapped",[7909]],[[7909,7909],"valid"],[[7910,7910],"mapped",[7911]],[[7911,7911],"valid"],[[7912,7912],"mapped",[7913]],[[7913,7913],"valid"],[[7914,7914],"mapped",[7915]],[[7915,7915],"valid"],[[7916,7916],"mapped",[7917]],[[7917,7917],"valid"],[[7918,7918],"mapped",[7919]],[[7919,7919],"valid"],[[7920,7920],"mapped",[7921]],[[7921,7921],"valid"],[[7922,7922],"mapped",[7923]],[[7923,7923],"valid"],[[7924,7924],"mapped",[7925]],[[7925,7925],"valid"],[[7926,7926],"mapped",[7927]],[[7927,7927],"valid"],[[7928,7928],"mapped",[7929]],[[7929,7929],"valid"],[[7930,7930],"mapped",[7931]],[[7931,7931],"valid"],[[7932,7932],"mapped",[7933]],[[7933,7933],"valid"],[[7934,7934],"mapped",[7935]],[[7935,7935],"valid"],[[7936,7943],"valid"],[[7944,7944],"mapped",[7936]],[[7945,7945],"mapped",[7937]],[[7946,7946],"mapped",[7938]],[[7947,7947],"mapped",[7939]],[[7948,7948],"mapped",[7940]],[[7949,7949],"mapped",[7941]],[[7950,7950],"mapped",[7942]],[[7951,7951],"mapped",[7943]],[[7952,7957],"valid"],[[7958,7959],"disallowed"],[[7960,7960],"mapped",[7952]],[[7961,7961],"mapped",[7953]],[[7962,7962],"mapped",[7954]],[[7963,7963],"mapped",[7955]],[[7964,7964],"mapped",[7956]],[[7965,7965],"mapped",[7957]],[[7966,7967],"disallowed"],[[7968,7975],"valid"],[[7976,7976],"mapped",[7968]],[[7977,7977],"mapped",[7969]],[[7978,7978],"mapped",[7970]],[[7979,7979],"mapped",[7971]],[[7980,7980],"mapped",[7972]],[[7981,7981],"mapped",[7973]],[[7982,7982],"mapped",[7974]],[[7983,7983],"mapped",[7975]],[[7984,7991],"valid"],[[7992,7992],"mapped",[7984]],[[7993,7993],"mapped",[7985]],[[7994,7994],"mapped",[7986]],[[7995,7995],"mapped",[7987]],[[7996,7996],"mapped",[7988]],[[7997,7997],"mapped",[7989]],[[7998,7998],"mapped",[7990]],[[7999,7999],"mapped",[7991]],[[8e3,8005],"valid"],[[8006,8007],"disallowed"],[[8008,8008],"mapped",[8e3]],[[8009,8009],"mapped",[8001]],[[8010,8010],"mapped",[8002]],[[8011,8011],"mapped",[8003]],[[8012,8012],"mapped",[8004]],[[8013,8013],"mapped",[8005]],[[8014,8015],"disallowed"],[[8016,8023],"valid"],[[8024,8024],"disallowed"],[[8025,8025],"mapped",[8017]],[[8026,8026],"disallowed"],[[8027,8027],"mapped",[8019]],[[8028,8028],"disallowed"],[[8029,8029],"mapped",[8021]],[[8030,8030],"disallowed"],[[8031,8031],"mapped",[8023]],[[8032,8039],"valid"],[[8040,8040],"mapped",[8032]],[[8041,8041],"mapped",[8033]],[[8042,8042],"mapped",[8034]],[[8043,8043],"mapped",[8035]],[[8044,8044],"mapped",[8036]],[[8045,8045],"mapped",[8037]],[[8046,8046],"mapped",[8038]],[[8047,8047],"mapped",[8039]],[[8048,8048],"valid"],[[8049,8049],"mapped",[940]],[[8050,8050],"valid"],[[8051,8051],"mapped",[941]],[[8052,8052],"valid"],[[8053,8053],"mapped",[942]],[[8054,8054],"valid"],[[8055,8055],"mapped",[943]],[[8056,8056],"valid"],[[8057,8057],"mapped",[972]],[[8058,8058],"valid"],[[8059,8059],"mapped",[973]],[[8060,8060],"valid"],[[8061,8061],"mapped",[974]],[[8062,8063],"disallowed"],[[8064,8064],"mapped",[7936,953]],[[8065,8065],"mapped",[7937,953]],[[8066,8066],"mapped",[7938,953]],[[8067,8067],"mapped",[7939,953]],[[8068,8068],"mapped",[7940,953]],[[8069,8069],"mapped",[7941,953]],[[8070,8070],"mapped",[7942,953]],[[8071,8071],"mapped",[7943,953]],[[8072,8072],"mapped",[7936,953]],[[8073,8073],"mapped",[7937,953]],[[8074,8074],"mapped",[7938,953]],[[8075,8075],"mapped",[7939,953]],[[8076,8076],"mapped",[7940,953]],[[8077,8077],"mapped",[7941,953]],[[8078,8078],"mapped",[7942,953]],[[8079,8079],"mapped",[7943,953]],[[8080,8080],"mapped",[7968,953]],[[8081,8081],"mapped",[7969,953]],[[8082,8082],"mapped",[7970,953]],[[8083,8083],"mapped",[7971,953]],[[8084,8084],"mapped",[7972,953]],[[8085,8085],"mapped",[7973,953]],[[8086,8086],"mapped",[7974,953]],[[8087,8087],"mapped",[7975,953]],[[8088,8088],"mapped",[7968,953]],[[8089,8089],"mapped",[7969,953]],[[8090,8090],"mapped",[7970,953]],[[8091,8091],"mapped",[7971,953]],[[8092,8092],"mapped",[7972,953]],[[8093,8093],"mapped",[7973,953]],[[8094,8094],"mapped",[7974,953]],[[8095,8095],"mapped",[7975,953]],[[8096,8096],"mapped",[8032,953]],[[8097,8097],"mapped",[8033,953]],[[8098,8098],"mapped",[8034,953]],[[8099,8099],"mapped",[8035,953]],[[8100,8100],"mapped",[8036,953]],[[8101,8101],"mapped",[8037,953]],[[8102,8102],"mapped",[8038,953]],[[8103,8103],"mapped",[8039,953]],[[8104,8104],"mapped",[8032,953]],[[8105,8105],"mapped",[8033,953]],[[8106,8106],"mapped",[8034,953]],[[8107,8107],"mapped",[8035,953]],[[8108,8108],"mapped",[8036,953]],[[8109,8109],"mapped",[8037,953]],[[8110,8110],"mapped",[8038,953]],[[8111,8111],"mapped",[8039,953]],[[8112,8113],"valid"],[[8114,8114],"mapped",[8048,953]],[[8115,8115],"mapped",[945,953]],[[8116,8116],"mapped",[940,953]],[[8117,8117],"disallowed"],[[8118,8118],"valid"],[[8119,8119],"mapped",[8118,953]],[[8120,8120],"mapped",[8112]],[[8121,8121],"mapped",[8113]],[[8122,8122],"mapped",[8048]],[[8123,8123],"mapped",[940]],[[8124,8124],"mapped",[945,953]],[[8125,8125],"disallowed_STD3_mapped",[32,787]],[[8126,8126],"mapped",[953]],[[8127,8127],"disallowed_STD3_mapped",[32,787]],[[8128,8128],"disallowed_STD3_mapped",[32,834]],[[8129,8129],"disallowed_STD3_mapped",[32,776,834]],[[8130,8130],"mapped",[8052,953]],[[8131,8131],"mapped",[951,953]],[[8132,8132],"mapped",[942,953]],[[8133,8133],"disallowed"],[[8134,8134],"valid"],[[8135,8135],"mapped",[8134,953]],[[8136,8136],"mapped",[8050]],[[8137,8137],"mapped",[941]],[[8138,8138],"mapped",[8052]],[[8139,8139],"mapped",[942]],[[8140,8140],"mapped",[951,953]],[[8141,8141],"disallowed_STD3_mapped",[32,787,768]],[[8142,8142],"disallowed_STD3_mapped",[32,787,769]],[[8143,8143],"disallowed_STD3_mapped",[32,787,834]],[[8144,8146],"valid"],[[8147,8147],"mapped",[912]],[[8148,8149],"disallowed"],[[8150,8151],"valid"],[[8152,8152],"mapped",[8144]],[[8153,8153],"mapped",[8145]],[[8154,8154],"mapped",[8054]],[[8155,8155],"mapped",[943]],[[8156,8156],"disallowed"],[[8157,8157],"disallowed_STD3_mapped",[32,788,768]],[[8158,8158],"disallowed_STD3_mapped",[32,788,769]],[[8159,8159],"disallowed_STD3_mapped",[32,788,834]],[[8160,8162],"valid"],[[8163,8163],"mapped",[944]],[[8164,8167],"valid"],[[8168,8168],"mapped",[8160]],[[8169,8169],"mapped",[8161]],[[8170,8170],"mapped",[8058]],[[8171,8171],"mapped",[973]],[[8172,8172],"mapped",[8165]],[[8173,8173],"disallowed_STD3_mapped",[32,776,768]],[[8174,8174],"disallowed_STD3_mapped",[32,776,769]],[[8175,8175],"disallowed_STD3_mapped",[96]],[[8176,8177],"disallowed"],[[8178,8178],"mapped",[8060,953]],[[8179,8179],"mapped",[969,953]],[[8180,8180],"mapped",[974,953]],[[8181,8181],"disallowed"],[[8182,8182],"valid"],[[8183,8183],"mapped",[8182,953]],[[8184,8184],"mapped",[8056]],[[8185,8185],"mapped",[972]],[[8186,8186],"mapped",[8060]],[[8187,8187],"mapped",[974]],[[8188,8188],"mapped",[969,953]],[[8189,8189],"disallowed_STD3_mapped",[32,769]],[[8190,8190],"disallowed_STD3_mapped",[32,788]],[[8191,8191],"disallowed"],[[8192,8202],"disallowed_STD3_mapped",[32]],[[8203,8203],"ignored"],[[8204,8205],"deviation",[]],[[8206,8207],"disallowed"],[[8208,8208],"valid",[],"NV8"],[[8209,8209],"mapped",[8208]],[[8210,8214],"valid",[],"NV8"],[[8215,8215],"disallowed_STD3_mapped",[32,819]],[[8216,8227],"valid",[],"NV8"],[[8228,8230],"disallowed"],[[8231,8231],"valid",[],"NV8"],[[8232,8238],"disallowed"],[[8239,8239],"disallowed_STD3_mapped",[32]],[[8240,8242],"valid",[],"NV8"],[[8243,8243],"mapped",[8242,8242]],[[8244,8244],"mapped",[8242,8242,8242]],[[8245,8245],"valid",[],"NV8"],[[8246,8246],"mapped",[8245,8245]],[[8247,8247],"mapped",[8245,8245,8245]],[[8248,8251],"valid",[],"NV8"],[[8252,8252],"disallowed_STD3_mapped",[33,33]],[[8253,8253],"valid",[],"NV8"],[[8254,8254],"disallowed_STD3_mapped",[32,773]],[[8255,8262],"valid",[],"NV8"],[[8263,8263],"disallowed_STD3_mapped",[63,63]],[[8264,8264],"disallowed_STD3_mapped",[63,33]],[[8265,8265],"disallowed_STD3_mapped",[33,63]],[[8266,8269],"valid",[],"NV8"],[[8270,8274],"valid",[],"NV8"],[[8275,8276],"valid",[],"NV8"],[[8277,8278],"valid",[],"NV8"],[[8279,8279],"mapped",[8242,8242,8242,8242]],[[8280,8286],"valid",[],"NV8"],[[8287,8287],"disallowed_STD3_mapped",[32]],[[8288,8288],"ignored"],[[8289,8291],"disallowed"],[[8292,8292],"ignored"],[[8293,8293],"disallowed"],[[8294,8297],"disallowed"],[[8298,8303],"disallowed"],[[8304,8304],"mapped",[48]],[[8305,8305],"mapped",[105]],[[8306,8307],"disallowed"],[[8308,8308],"mapped",[52]],[[8309,8309],"mapped",[53]],[[8310,8310],"mapped",[54]],[[8311,8311],"mapped",[55]],[[8312,8312],"mapped",[56]],[[8313,8313],"mapped",[57]],[[8314,8314],"disallowed_STD3_mapped",[43]],[[8315,8315],"mapped",[8722]],[[8316,8316],"disallowed_STD3_mapped",[61]],[[8317,8317],"disallowed_STD3_mapped",[40]],[[8318,8318],"disallowed_STD3_mapped",[41]],[[8319,8319],"mapped",[110]],[[8320,8320],"mapped",[48]],[[8321,8321],"mapped",[49]],[[8322,8322],"mapped",[50]],[[8323,8323],"mapped",[51]],[[8324,8324],"mapped",[52]],[[8325,8325],"mapped",[53]],[[8326,8326],"mapped",[54]],[[8327,8327],"mapped",[55]],[[8328,8328],"mapped",[56]],[[8329,8329],"mapped",[57]],[[8330,8330],"disallowed_STD3_mapped",[43]],[[8331,8331],"mapped",[8722]],[[8332,8332],"disallowed_STD3_mapped",[61]],[[8333,8333],"disallowed_STD3_mapped",[40]],[[8334,8334],"disallowed_STD3_mapped",[41]],[[8335,8335],"disallowed"],[[8336,8336],"mapped",[97]],[[8337,8337],"mapped",[101]],[[8338,8338],"mapped",[111]],[[8339,8339],"mapped",[120]],[[8340,8340],"mapped",[601]],[[8341,8341],"mapped",[104]],[[8342,8342],"mapped",[107]],[[8343,8343],"mapped",[108]],[[8344,8344],"mapped",[109]],[[8345,8345],"mapped",[110]],[[8346,8346],"mapped",[112]],[[8347,8347],"mapped",[115]],[[8348,8348],"mapped",[116]],[[8349,8351],"disallowed"],[[8352,8359],"valid",[],"NV8"],[[8360,8360],"mapped",[114,115]],[[8361,8362],"valid",[],"NV8"],[[8363,8363],"valid",[],"NV8"],[[8364,8364],"valid",[],"NV8"],[[8365,8367],"valid",[],"NV8"],[[8368,8369],"valid",[],"NV8"],[[8370,8373],"valid",[],"NV8"],[[8374,8376],"valid",[],"NV8"],[[8377,8377],"valid",[],"NV8"],[[8378,8378],"valid",[],"NV8"],[[8379,8381],"valid",[],"NV8"],[[8382,8382],"valid",[],"NV8"],[[8383,8399],"disallowed"],[[8400,8417],"valid",[],"NV8"],[[8418,8419],"valid",[],"NV8"],[[8420,8426],"valid",[],"NV8"],[[8427,8427],"valid",[],"NV8"],[[8428,8431],"valid",[],"NV8"],[[8432,8432],"valid",[],"NV8"],[[8433,8447],"disallowed"],[[8448,8448],"disallowed_STD3_mapped",[97,47,99]],[[8449,8449],"disallowed_STD3_mapped",[97,47,115]],[[8450,8450],"mapped",[99]],[[8451,8451],"mapped",[176,99]],[[8452,8452],"valid",[],"NV8"],[[8453,8453],"disallowed_STD3_mapped",[99,47,111]],[[8454,8454],"disallowed_STD3_mapped",[99,47,117]],[[8455,8455],"mapped",[603]],[[8456,8456],"valid",[],"NV8"],[[8457,8457],"mapped",[176,102]],[[8458,8458],"mapped",[103]],[[8459,8462],"mapped",[104]],[[8463,8463],"mapped",[295]],[[8464,8465],"mapped",[105]],[[8466,8467],"mapped",[108]],[[8468,8468],"valid",[],"NV8"],[[8469,8469],"mapped",[110]],[[8470,8470],"mapped",[110,111]],[[8471,8472],"valid",[],"NV8"],[[8473,8473],"mapped",[112]],[[8474,8474],"mapped",[113]],[[8475,8477],"mapped",[114]],[[8478,8479],"valid",[],"NV8"],[[8480,8480],"mapped",[115,109]],[[8481,8481],"mapped",[116,101,108]],[[8482,8482],"mapped",[116,109]],[[8483,8483],"valid",[],"NV8"],[[8484,8484],"mapped",[122]],[[8485,8485],"valid",[],"NV8"],[[8486,8486],"mapped",[969]],[[8487,8487],"valid",[],"NV8"],[[8488,8488],"mapped",[122]],[[8489,8489],"valid",[],"NV8"],[[8490,8490],"mapped",[107]],[[8491,8491],"mapped",[229]],[[8492,8492],"mapped",[98]],[[8493,8493],"mapped",[99]],[[8494,8494],"valid",[],"NV8"],[[8495,8496],"mapped",[101]],[[8497,8497],"mapped",[102]],[[8498,8498],"disallowed"],[[8499,8499],"mapped",[109]],[[8500,8500],"mapped",[111]],[[8501,8501],"mapped",[1488]],[[8502,8502],"mapped",[1489]],[[8503,8503],"mapped",[1490]],[[8504,8504],"mapped",[1491]],[[8505,8505],"mapped",[105]],[[8506,8506],"valid",[],"NV8"],[[8507,8507],"mapped",[102,97,120]],[[8508,8508],"mapped",[960]],[[8509,8510],"mapped",[947]],[[8511,8511],"mapped",[960]],[[8512,8512],"mapped",[8721]],[[8513,8516],"valid",[],"NV8"],[[8517,8518],"mapped",[100]],[[8519,8519],"mapped",[101]],[[8520,8520],"mapped",[105]],[[8521,8521],"mapped",[106]],[[8522,8523],"valid",[],"NV8"],[[8524,8524],"valid",[],"NV8"],[[8525,8525],"valid",[],"NV8"],[[8526,8526],"valid"],[[8527,8527],"valid",[],"NV8"],[[8528,8528],"mapped",[49,8260,55]],[[8529,8529],"mapped",[49,8260,57]],[[8530,8530],"mapped",[49,8260,49,48]],[[8531,8531],"mapped",[49,8260,51]],[[8532,8532],"mapped",[50,8260,51]],[[8533,8533],"mapped",[49,8260,53]],[[8534,8534],"mapped",[50,8260,53]],[[8535,8535],"mapped",[51,8260,53]],[[8536,8536],"mapped",[52,8260,53]],[[8537,8537],"mapped",[49,8260,54]],[[8538,8538],"mapped",[53,8260,54]],[[8539,8539],"mapped",[49,8260,56]],[[8540,8540],"mapped",[51,8260,56]],[[8541,8541],"mapped",[53,8260,56]],[[8542,8542],"mapped",[55,8260,56]],[[8543,8543],"mapped",[49,8260]],[[8544,8544],"mapped",[105]],[[8545,8545],"mapped",[105,105]],[[8546,8546],"mapped",[105,105,105]],[[8547,8547],"mapped",[105,118]],[[8548,8548],"mapped",[118]],[[8549,8549],"mapped",[118,105]],[[8550,8550],"mapped",[118,105,105]],[[8551,8551],"mapped",[118,105,105,105]],[[8552,8552],"mapped",[105,120]],[[8553,8553],"mapped",[120]],[[8554,8554],"mapped",[120,105]],[[8555,8555],"mapped",[120,105,105]],[[8556,8556],"mapped",[108]],[[8557,8557],"mapped",[99]],[[8558,8558],"mapped",[100]],[[8559,8559],"mapped",[109]],[[8560,8560],"mapped",[105]],[[8561,8561],"mapped",[105,105]],[[8562,8562],"mapped",[105,105,105]],[[8563,8563],"mapped",[105,118]],[[8564,8564],"mapped",[118]],[[8565,8565],"mapped",[118,105]],[[8566,8566],"mapped",[118,105,105]],[[8567,8567],"mapped",[118,105,105,105]],[[8568,8568],"mapped",[105,120]],[[8569,8569],"mapped",[120]],[[8570,8570],"mapped",[120,105]],[[8571,8571],"mapped",[120,105,105]],[[8572,8572],"mapped",[108]],[[8573,8573],"mapped",[99]],[[8574,8574],"mapped",[100]],[[8575,8575],"mapped",[109]],[[8576,8578],"valid",[],"NV8"],[[8579,8579],"disallowed"],[[8580,8580],"valid"],[[8581,8584],"valid",[],"NV8"],[[8585,8585],"mapped",[48,8260,51]],[[8586,8587],"valid",[],"NV8"],[[8588,8591],"disallowed"],[[8592,8682],"valid",[],"NV8"],[[8683,8691],"valid",[],"NV8"],[[8692,8703],"valid",[],"NV8"],[[8704,8747],"valid",[],"NV8"],[[8748,8748],"mapped",[8747,8747]],[[8749,8749],"mapped",[8747,8747,8747]],[[8750,8750],"valid",[],"NV8"],[[8751,8751],"mapped",[8750,8750]],[[8752,8752],"mapped",[8750,8750,8750]],[[8753,8799],"valid",[],"NV8"],[[8800,8800],"disallowed_STD3_valid"],[[8801,8813],"valid",[],"NV8"],[[8814,8815],"disallowed_STD3_valid"],[[8816,8945],"valid",[],"NV8"],[[8946,8959],"valid",[],"NV8"],[[8960,8960],"valid",[],"NV8"],[[8961,8961],"valid",[],"NV8"],[[8962,9e3],"valid",[],"NV8"],[[9001,9001],"mapped",[12296]],[[9002,9002],"mapped",[12297]],[[9003,9082],"valid",[],"NV8"],[[9083,9083],"valid",[],"NV8"],[[9084,9084],"valid",[],"NV8"],[[9085,9114],"valid",[],"NV8"],[[9115,9166],"valid",[],"NV8"],[[9167,9168],"valid",[],"NV8"],[[9169,9179],"valid",[],"NV8"],[[9180,9191],"valid",[],"NV8"],[[9192,9192],"valid",[],"NV8"],[[9193,9203],"valid",[],"NV8"],[[9204,9210],"valid",[],"NV8"],[[9211,9215],"disallowed"],[[9216,9252],"valid",[],"NV8"],[[9253,9254],"valid",[],"NV8"],[[9255,9279],"disallowed"],[[9280,9290],"valid",[],"NV8"],[[9291,9311],"disallowed"],[[9312,9312],"mapped",[49]],[[9313,9313],"mapped",[50]],[[9314,9314],"mapped",[51]],[[9315,9315],"mapped",[52]],[[9316,9316],"mapped",[53]],[[9317,9317],"mapped",[54]],[[9318,9318],"mapped",[55]],[[9319,9319],"mapped",[56]],[[9320,9320],"mapped",[57]],[[9321,9321],"mapped",[49,48]],[[9322,9322],"mapped",[49,49]],[[9323,9323],"mapped",[49,50]],[[9324,9324],"mapped",[49,51]],[[9325,9325],"mapped",[49,52]],[[9326,9326],"mapped",[49,53]],[[9327,9327],"mapped",[49,54]],[[9328,9328],"mapped",[49,55]],[[9329,9329],"mapped",[49,56]],[[9330,9330],"mapped",[49,57]],[[9331,9331],"mapped",[50,48]],[[9332,9332],"disallowed_STD3_mapped",[40,49,41]],[[9333,9333],"disallowed_STD3_mapped",[40,50,41]],[[9334,9334],"disallowed_STD3_mapped",[40,51,41]],[[9335,9335],"disallowed_STD3_mapped",[40,52,41]],[[9336,9336],"disallowed_STD3_mapped",[40,53,41]],[[9337,9337],"disallowed_STD3_mapped",[40,54,41]],[[9338,9338],"disallowed_STD3_mapped",[40,55,41]],[[9339,9339],"disallowed_STD3_mapped",[40,56,41]],[[9340,9340],"disallowed_STD3_mapped",[40,57,41]],[[9341,9341],"disallowed_STD3_mapped",[40,49,48,41]],[[9342,9342],"disallowed_STD3_mapped",[40,49,49,41]],[[9343,9343],"disallowed_STD3_mapped",[40,49,50,41]],[[9344,9344],"disallowed_STD3_mapped",[40,49,51,41]],[[9345,9345],"disallowed_STD3_mapped",[40,49,52,41]],[[9346,9346],"disallowed_STD3_mapped",[40,49,53,41]],[[9347,9347],"disallowed_STD3_mapped",[40,49,54,41]],[[9348,9348],"disallowed_STD3_mapped",[40,49,55,41]],[[9349,9349],"disallowed_STD3_mapped",[40,49,56,41]],[[9350,9350],"disallowed_STD3_mapped",[40,49,57,41]],[[9351,9351],"disallowed_STD3_mapped",[40,50,48,41]],[[9352,9371],"disallowed"],[[9372,9372],"disallowed_STD3_mapped",[40,97,41]],[[9373,9373],"disallowed_STD3_mapped",[40,98,41]],[[9374,9374],"disallowed_STD3_mapped",[40,99,41]],[[9375,9375],"disallowed_STD3_mapped",[40,100,41]],[[9376,9376],"disallowed_STD3_mapped",[40,101,41]],[[9377,9377],"disallowed_STD3_mapped",[40,102,41]],[[9378,9378],"disallowed_STD3_mapped",[40,103,41]],[[9379,9379],"disallowed_STD3_mapped",[40,104,41]],[[9380,9380],"disallowed_STD3_mapped",[40,105,41]],[[9381,9381],"disallowed_STD3_mapped",[40,106,41]],[[9382,9382],"disallowed_STD3_mapped",[40,107,41]],[[9383,9383],"disallowed_STD3_mapped",[40,108,41]],[[9384,9384],"disallowed_STD3_mapped",[40,109,41]],[[9385,9385],"disallowed_STD3_mapped",[40,110,41]],[[9386,9386],"disallowed_STD3_mapped",[40,111,41]],[[9387,9387],"disallowed_STD3_mapped",[40,112,41]],[[9388,9388],"disallowed_STD3_mapped",[40,113,41]],[[9389,9389],"disallowed_STD3_mapped",[40,114,41]],[[9390,9390],"disallowed_STD3_mapped",[40,115,41]],[[9391,9391],"disallowed_STD3_mapped",[40,116,41]],[[9392,9392],"disallowed_STD3_mapped",[40,117,41]],[[9393,9393],"disallowed_STD3_mapped",[40,118,41]],[[9394,9394],"disallowed_STD3_mapped",[40,119,41]],[[9395,9395],"disallowed_STD3_mapped",[40,120,41]],[[9396,9396],"disallowed_STD3_mapped",[40,121,41]],[[9397,9397],"disallowed_STD3_mapped",[40,122,41]],[[9398,9398],"mapped",[97]],[[9399,9399],"mapped",[98]],[[9400,9400],"mapped",[99]],[[9401,9401],"mapped",[100]],[[9402,9402],"mapped",[101]],[[9403,9403],"mapped",[102]],[[9404,9404],"mapped",[103]],[[9405,9405],"mapped",[104]],[[9406,9406],"mapped",[105]],[[9407,9407],"mapped",[106]],[[9408,9408],"mapped",[107]],[[9409,9409],"mapped",[108]],[[9410,9410],"mapped",[109]],[[9411,9411],"mapped",[110]],[[9412,9412],"mapped",[111]],[[9413,9413],"mapped",[112]],[[9414,9414],"mapped",[113]],[[9415,9415],"mapped",[114]],[[9416,9416],"mapped",[115]],[[9417,9417],"mapped",[116]],[[9418,9418],"mapped",[117]],[[9419,9419],"mapped",[118]],[[9420,9420],"mapped",[119]],[[9421,9421],"mapped",[120]],[[9422,9422],"mapped",[121]],[[9423,9423],"mapped",[122]],[[9424,9424],"mapped",[97]],[[9425,9425],"mapped",[98]],[[9426,9426],"mapped",[99]],[[9427,9427],"mapped",[100]],[[9428,9428],"mapped",[101]],[[9429,9429],"mapped",[102]],[[9430,9430],"mapped",[103]],[[9431,9431],"mapped",[104]],[[9432,9432],"mapped",[105]],[[9433,9433],"mapped",[106]],[[9434,9434],"mapped",[107]],[[9435,9435],"mapped",[108]],[[9436,9436],"mapped",[109]],[[9437,9437],"mapped",[110]],[[9438,9438],"mapped",[111]],[[9439,9439],"mapped",[112]],[[9440,9440],"mapped",[113]],[[9441,9441],"mapped",[114]],[[9442,9442],"mapped",[115]],[[9443,9443],"mapped",[116]],[[9444,9444],"mapped",[117]],[[9445,9445],"mapped",[118]],[[9446,9446],"mapped",[119]],[[9447,9447],"mapped",[120]],[[9448,9448],"mapped",[121]],[[9449,9449],"mapped",[122]],[[9450,9450],"mapped",[48]],[[9451,9470],"valid",[],"NV8"],[[9471,9471],"valid",[],"NV8"],[[9472,9621],"valid",[],"NV8"],[[9622,9631],"valid",[],"NV8"],[[9632,9711],"valid",[],"NV8"],[[9712,9719],"valid",[],"NV8"],[[9720,9727],"valid",[],"NV8"],[[9728,9747],"valid",[],"NV8"],[[9748,9749],"valid",[],"NV8"],[[9750,9751],"valid",[],"NV8"],[[9752,9752],"valid",[],"NV8"],[[9753,9753],"valid",[],"NV8"],[[9754,9839],"valid",[],"NV8"],[[9840,9841],"valid",[],"NV8"],[[9842,9853],"valid",[],"NV8"],[[9854,9855],"valid",[],"NV8"],[[9856,9865],"valid",[],"NV8"],[[9866,9873],"valid",[],"NV8"],[[9874,9884],"valid",[],"NV8"],[[9885,9885],"valid",[],"NV8"],[[9886,9887],"valid",[],"NV8"],[[9888,9889],"valid",[],"NV8"],[[9890,9905],"valid",[],"NV8"],[[9906,9906],"valid",[],"NV8"],[[9907,9916],"valid",[],"NV8"],[[9917,9919],"valid",[],"NV8"],[[9920,9923],"valid",[],"NV8"],[[9924,9933],"valid",[],"NV8"],[[9934,9934],"valid",[],"NV8"],[[9935,9953],"valid",[],"NV8"],[[9954,9954],"valid",[],"NV8"],[[9955,9955],"valid",[],"NV8"],[[9956,9959],"valid",[],"NV8"],[[9960,9983],"valid",[],"NV8"],[[9984,9984],"valid",[],"NV8"],[[9985,9988],"valid",[],"NV8"],[[9989,9989],"valid",[],"NV8"],[[9990,9993],"valid",[],"NV8"],[[9994,9995],"valid",[],"NV8"],[[9996,10023],"valid",[],"NV8"],[[10024,10024],"valid",[],"NV8"],[[10025,10059],"valid",[],"NV8"],[[10060,10060],"valid",[],"NV8"],[[10061,10061],"valid",[],"NV8"],[[10062,10062],"valid",[],"NV8"],[[10063,10066],"valid",[],"NV8"],[[10067,10069],"valid",[],"NV8"],[[10070,10070],"valid",[],"NV8"],[[10071,10071],"valid",[],"NV8"],[[10072,10078],"valid",[],"NV8"],[[10079,10080],"valid",[],"NV8"],[[10081,10087],"valid",[],"NV8"],[[10088,10101],"valid",[],"NV8"],[[10102,10132],"valid",[],"NV8"],[[10133,10135],"valid",[],"NV8"],[[10136,10159],"valid",[],"NV8"],[[10160,10160],"valid",[],"NV8"],[[10161,10174],"valid",[],"NV8"],[[10175,10175],"valid",[],"NV8"],[[10176,10182],"valid",[],"NV8"],[[10183,10186],"valid",[],"NV8"],[[10187,10187],"valid",[],"NV8"],[[10188,10188],"valid",[],"NV8"],[[10189,10189],"valid",[],"NV8"],[[10190,10191],"valid",[],"NV8"],[[10192,10219],"valid",[],"NV8"],[[10220,10223],"valid",[],"NV8"],[[10224,10239],"valid",[],"NV8"],[[10240,10495],"valid",[],"NV8"],[[10496,10763],"valid",[],"NV8"],[[10764,10764],"mapped",[8747,8747,8747,8747]],[[10765,10867],"valid",[],"NV8"],[[10868,10868],"disallowed_STD3_mapped",[58,58,61]],[[10869,10869],"disallowed_STD3_mapped",[61,61]],[[10870,10870],"disallowed_STD3_mapped",[61,61,61]],[[10871,10971],"valid",[],"NV8"],[[10972,10972],"mapped",[10973,824]],[[10973,11007],"valid",[],"NV8"],[[11008,11021],"valid",[],"NV8"],[[11022,11027],"valid",[],"NV8"],[[11028,11034],"valid",[],"NV8"],[[11035,11039],"valid",[],"NV8"],[[11040,11043],"valid",[],"NV8"],[[11044,11084],"valid",[],"NV8"],[[11085,11087],"valid",[],"NV8"],[[11088,11092],"valid",[],"NV8"],[[11093,11097],"valid",[],"NV8"],[[11098,11123],"valid",[],"NV8"],[[11124,11125],"disallowed"],[[11126,11157],"valid",[],"NV8"],[[11158,11159],"disallowed"],[[11160,11193],"valid",[],"NV8"],[[11194,11196],"disallowed"],[[11197,11208],"valid",[],"NV8"],[[11209,11209],"disallowed"],[[11210,11217],"valid",[],"NV8"],[[11218,11243],"disallowed"],[[11244,11247],"valid",[],"NV8"],[[11248,11263],"disallowed"],[[11264,11264],"mapped",[11312]],[[11265,11265],"mapped",[11313]],[[11266,11266],"mapped",[11314]],[[11267,11267],"mapped",[11315]],[[11268,11268],"mapped",[11316]],[[11269,11269],"mapped",[11317]],[[11270,11270],"mapped",[11318]],[[11271,11271],"mapped",[11319]],[[11272,11272],"mapped",[11320]],[[11273,11273],"mapped",[11321]],[[11274,11274],"mapped",[11322]],[[11275,11275],"mapped",[11323]],[[11276,11276],"mapped",[11324]],[[11277,11277],"mapped",[11325]],[[11278,11278],"mapped",[11326]],[[11279,11279],"mapped",[11327]],[[11280,11280],"mapped",[11328]],[[11281,11281],"mapped",[11329]],[[11282,11282],"mapped",[11330]],[[11283,11283],"mapped",[11331]],[[11284,11284],"mapped",[11332]],[[11285,11285],"mapped",[11333]],[[11286,11286],"mapped",[11334]],[[11287,11287],"mapped",[11335]],[[11288,11288],"mapped",[11336]],[[11289,11289],"mapped",[11337]],[[11290,11290],"mapped",[11338]],[[11291,11291],"mapped",[11339]],[[11292,11292],"mapped",[11340]],[[11293,11293],"mapped",[11341]],[[11294,11294],"mapped",[11342]],[[11295,11295],"mapped",[11343]],[[11296,11296],"mapped",[11344]],[[11297,11297],"mapped",[11345]],[[11298,11298],"mapped",[11346]],[[11299,11299],"mapped",[11347]],[[11300,11300],"mapped",[11348]],[[11301,11301],"mapped",[11349]],[[11302,11302],"mapped",[11350]],[[11303,11303],"mapped",[11351]],[[11304,11304],"mapped",[11352]],[[11305,11305],"mapped",[11353]],[[11306,11306],"mapped",[11354]],[[11307,11307],"mapped",[11355]],[[11308,11308],"mapped",[11356]],[[11309,11309],"mapped",[11357]],[[11310,11310],"mapped",[11358]],[[11311,11311],"disallowed"],[[11312,11358],"valid"],[[11359,11359],"disallowed"],[[11360,11360],"mapped",[11361]],[[11361,11361],"valid"],[[11362,11362],"mapped",[619]],[[11363,11363],"mapped",[7549]],[[11364,11364],"mapped",[637]],[[11365,11366],"valid"],[[11367,11367],"mapped",[11368]],[[11368,11368],"valid"],[[11369,11369],"mapped",[11370]],[[11370,11370],"valid"],[[11371,11371],"mapped",[11372]],[[11372,11372],"valid"],[[11373,11373],"mapped",[593]],[[11374,11374],"mapped",[625]],[[11375,11375],"mapped",[592]],[[11376,11376],"mapped",[594]],[[11377,11377],"valid"],[[11378,11378],"mapped",[11379]],[[11379,11379],"valid"],[[11380,11380],"valid"],[[11381,11381],"mapped",[11382]],[[11382,11383],"valid"],[[11384,11387],"valid"],[[11388,11388],"mapped",[106]],[[11389,11389],"mapped",[118]],[[11390,11390],"mapped",[575]],[[11391,11391],"mapped",[576]],[[11392,11392],"mapped",[11393]],[[11393,11393],"valid"],[[11394,11394],"mapped",[11395]],[[11395,11395],"valid"],[[11396,11396],"mapped",[11397]],[[11397,11397],"valid"],[[11398,11398],"mapped",[11399]],[[11399,11399],"valid"],[[11400,11400],"mapped",[11401]],[[11401,11401],"valid"],[[11402,11402],"mapped",[11403]],[[11403,11403],"valid"],[[11404,11404],"mapped",[11405]],[[11405,11405],"valid"],[[11406,11406],"mapped",[11407]],[[11407,11407],"valid"],[[11408,11408],"mapped",[11409]],[[11409,11409],"valid"],[[11410,11410],"mapped",[11411]],[[11411,11411],"valid"],[[11412,11412],"mapped",[11413]],[[11413,11413],"valid"],[[11414,11414],"mapped",[11415]],[[11415,11415],"valid"],[[11416,11416],"mapped",[11417]],[[11417,11417],"valid"],[[11418,11418],"mapped",[11419]],[[11419,11419],"valid"],[[11420,11420],"mapped",[11421]],[[11421,11421],"valid"],[[11422,11422],"mapped",[11423]],[[11423,11423],"valid"],[[11424,11424],"mapped",[11425]],[[11425,11425],"valid"],[[11426,11426],"mapped",[11427]],[[11427,11427],"valid"],[[11428,11428],"mapped",[11429]],[[11429,11429],"valid"],[[11430,11430],"mapped",[11431]],[[11431,11431],"valid"],[[11432,11432],"mapped",[11433]],[[11433,11433],"valid"],[[11434,11434],"mapped",[11435]],[[11435,11435],"valid"],[[11436,11436],"mapped",[11437]],[[11437,11437],"valid"],[[11438,11438],"mapped",[11439]],[[11439,11439],"valid"],[[11440,11440],"mapped",[11441]],[[11441,11441],"valid"],[[11442,11442],"mapped",[11443]],[[11443,11443],"valid"],[[11444,11444],"mapped",[11445]],[[11445,11445],"valid"],[[11446,11446],"mapped",[11447]],[[11447,11447],"valid"],[[11448,11448],"mapped",[11449]],[[11449,11449],"valid"],[[11450,11450],"mapped",[11451]],[[11451,11451],"valid"],[[11452,11452],"mapped",[11453]],[[11453,11453],"valid"],[[11454,11454],"mapped",[11455]],[[11455,11455],"valid"],[[11456,11456],"mapped",[11457]],[[11457,11457],"valid"],[[11458,11458],"mapped",[11459]],[[11459,11459],"valid"],[[11460,11460],"mapped",[11461]],[[11461,11461],"valid"],[[11462,11462],"mapped",[11463]],[[11463,11463],"valid"],[[11464,11464],"mapped",[11465]],[[11465,11465],"valid"],[[11466,11466],"mapped",[11467]],[[11467,11467],"valid"],[[11468,11468],"mapped",[11469]],[[11469,11469],"valid"],[[11470,11470],"mapped",[11471]],[[11471,11471],"valid"],[[11472,11472],"mapped",[11473]],[[11473,11473],"valid"],[[11474,11474],"mapped",[11475]],[[11475,11475],"valid"],[[11476,11476],"mapped",[11477]],[[11477,11477],"valid"],[[11478,11478],"mapped",[11479]],[[11479,11479],"valid"],[[11480,11480],"mapped",[11481]],[[11481,11481],"valid"],[[11482,11482],"mapped",[11483]],[[11483,11483],"valid"],[[11484,11484],"mapped",[11485]],[[11485,11485],"valid"],[[11486,11486],"mapped",[11487]],[[11487,11487],"valid"],[[11488,11488],"mapped",[11489]],[[11489,11489],"valid"],[[11490,11490],"mapped",[11491]],[[11491,11492],"valid"],[[11493,11498],"valid",[],"NV8"],[[11499,11499],"mapped",[11500]],[[11500,11500],"valid"],[[11501,11501],"mapped",[11502]],[[11502,11505],"valid"],[[11506,11506],"mapped",[11507]],[[11507,11507],"valid"],[[11508,11512],"disallowed"],[[11513,11519],"valid",[],"NV8"],[[11520,11557],"valid"],[[11558,11558],"disallowed"],[[11559,11559],"valid"],[[11560,11564],"disallowed"],[[11565,11565],"valid"],[[11566,11567],"disallowed"],[[11568,11621],"valid"],[[11622,11623],"valid"],[[11624,11630],"disallowed"],[[11631,11631],"mapped",[11617]],[[11632,11632],"valid",[],"NV8"],[[11633,11646],"disallowed"],[[11647,11647],"valid"],[[11648,11670],"valid"],[[11671,11679],"disallowed"],[[11680,11686],"valid"],[[11687,11687],"disallowed"],[[11688,11694],"valid"],[[11695,11695],"disallowed"],[[11696,11702],"valid"],[[11703,11703],"disallowed"],[[11704,11710],"valid"],[[11711,11711],"disallowed"],[[11712,11718],"valid"],[[11719,11719],"disallowed"],[[11720,11726],"valid"],[[11727,11727],"disallowed"],[[11728,11734],"valid"],[[11735,11735],"disallowed"],[[11736,11742],"valid"],[[11743,11743],"disallowed"],[[11744,11775],"valid"],[[11776,11799],"valid",[],"NV8"],[[11800,11803],"valid",[],"NV8"],[[11804,11805],"valid",[],"NV8"],[[11806,11822],"valid",[],"NV8"],[[11823,11823],"valid"],[[11824,11824],"valid",[],"NV8"],[[11825,11825],"valid",[],"NV8"],[[11826,11835],"valid",[],"NV8"],[[11836,11842],"valid",[],"NV8"],[[11843,11903],"disallowed"],[[11904,11929],"valid",[],"NV8"],[[11930,11930],"disallowed"],[[11931,11934],"valid",[],"NV8"],[[11935,11935],"mapped",[27597]],[[11936,12018],"valid",[],"NV8"],[[12019,12019],"mapped",[40863]],[[12020,12031],"disallowed"],[[12032,12032],"mapped",[19968]],[[12033,12033],"mapped",[20008]],[[12034,12034],"mapped",[20022]],[[12035,12035],"mapped",[20031]],[[12036,12036],"mapped",[20057]],[[12037,12037],"mapped",[20101]],[[12038,12038],"mapped",[20108]],[[12039,12039],"mapped",[20128]],[[12040,12040],"mapped",[20154]],[[12041,12041],"mapped",[20799]],[[12042,12042],"mapped",[20837]],[[12043,12043],"mapped",[20843]],[[12044,12044],"mapped",[20866]],[[12045,12045],"mapped",[20886]],[[12046,12046],"mapped",[20907]],[[12047,12047],"mapped",[20960]],[[12048,12048],"mapped",[20981]],[[12049,12049],"mapped",[20992]],[[12050,12050],"mapped",[21147]],[[12051,12051],"mapped",[21241]],[[12052,12052],"mapped",[21269]],[[12053,12053],"mapped",[21274]],[[12054,12054],"mapped",[21304]],[[12055,12055],"mapped",[21313]],[[12056,12056],"mapped",[21340]],[[12057,12057],"mapped",[21353]],[[12058,12058],"mapped",[21378]],[[12059,12059],"mapped",[21430]],[[12060,12060],"mapped",[21448]],[[12061,12061],"mapped",[21475]],[[12062,12062],"mapped",[22231]],[[12063,12063],"mapped",[22303]],[[12064,12064],"mapped",[22763]],[[12065,12065],"mapped",[22786]],[[12066,12066],"mapped",[22794]],[[12067,12067],"mapped",[22805]],[[12068,12068],"mapped",[22823]],[[12069,12069],"mapped",[22899]],[[12070,12070],"mapped",[23376]],[[12071,12071],"mapped",[23424]],[[12072,12072],"mapped",[23544]],[[12073,12073],"mapped",[23567]],[[12074,12074],"mapped",[23586]],[[12075,12075],"mapped",[23608]],[[12076,12076],"mapped",[23662]],[[12077,12077],"mapped",[23665]],[[12078,12078],"mapped",[24027]],[[12079,12079],"mapped",[24037]],[[12080,12080],"mapped",[24049]],[[12081,12081],"mapped",[24062]],[[12082,12082],"mapped",[24178]],[[12083,12083],"mapped",[24186]],[[12084,12084],"mapped",[24191]],[[12085,12085],"mapped",[24308]],[[12086,12086],"mapped",[24318]],[[12087,12087],"mapped",[24331]],[[12088,12088],"mapped",[24339]],[[12089,12089],"mapped",[24400]],[[12090,12090],"mapped",[24417]],[[12091,12091],"mapped",[24435]],[[12092,12092],"mapped",[24515]],[[12093,12093],"mapped",[25096]],[[12094,12094],"mapped",[25142]],[[12095,12095],"mapped",[25163]],[[12096,12096],"mapped",[25903]],[[12097,12097],"mapped",[25908]],[[12098,12098],"mapped",[25991]],[[12099,12099],"mapped",[26007]],[[12100,12100],"mapped",[26020]],[[12101,12101],"mapped",[26041]],[[12102,12102],"mapped",[26080]],[[12103,12103],"mapped",[26085]],[[12104,12104],"mapped",[26352]],[[12105,12105],"mapped",[26376]],[[12106,12106],"mapped",[26408]],[[12107,12107],"mapped",[27424]],[[12108,12108],"mapped",[27490]],[[12109,12109],"mapped",[27513]],[[12110,12110],"mapped",[27571]],[[12111,12111],"mapped",[27595]],[[12112,12112],"mapped",[27604]],[[12113,12113],"mapped",[27611]],[[12114,12114],"mapped",[27663]],[[12115,12115],"mapped",[27668]],[[12116,12116],"mapped",[27700]],[[12117,12117],"mapped",[28779]],[[12118,12118],"mapped",[29226]],[[12119,12119],"mapped",[29238]],[[12120,12120],"mapped",[29243]],[[12121,12121],"mapped",[29247]],[[12122,12122],"mapped",[29255]],[[12123,12123],"mapped",[29273]],[[12124,12124],"mapped",[29275]],[[12125,12125],"mapped",[29356]],[[12126,12126],"mapped",[29572]],[[12127,12127],"mapped",[29577]],[[12128,12128],"mapped",[29916]],[[12129,12129],"mapped",[29926]],[[12130,12130],"mapped",[29976]],[[12131,12131],"mapped",[29983]],[[12132,12132],"mapped",[29992]],[[12133,12133],"mapped",[3e4]],[[12134,12134],"mapped",[30091]],[[12135,12135],"mapped",[30098]],[[12136,12136],"mapped",[30326]],[[12137,12137],"mapped",[30333]],[[12138,12138],"mapped",[30382]],[[12139,12139],"mapped",[30399]],[[12140,12140],"mapped",[30446]],[[12141,12141],"mapped",[30683]],[[12142,12142],"mapped",[30690]],[[12143,12143],"mapped",[30707]],[[12144,12144],"mapped",[31034]],[[12145,12145],"mapped",[31160]],[[12146,12146],"mapped",[31166]],[[12147,12147],"mapped",[31348]],[[12148,12148],"mapped",[31435]],[[12149,12149],"mapped",[31481]],[[12150,12150],"mapped",[31859]],[[12151,12151],"mapped",[31992]],[[12152,12152],"mapped",[32566]],[[12153,12153],"mapped",[32593]],[[12154,12154],"mapped",[32650]],[[12155,12155],"mapped",[32701]],[[12156,12156],"mapped",[32769]],[[12157,12157],"mapped",[32780]],[[12158,12158],"mapped",[32786]],[[12159,12159],"mapped",[32819]],[[12160,12160],"mapped",[32895]],[[12161,12161],"mapped",[32905]],[[12162,12162],"mapped",[33251]],[[12163,12163],"mapped",[33258]],[[12164,12164],"mapped",[33267]],[[12165,12165],"mapped",[33276]],[[12166,12166],"mapped",[33292]],[[12167,12167],"mapped",[33307]],[[12168,12168],"mapped",[33311]],[[12169,12169],"mapped",[33390]],[[12170,12170],"mapped",[33394]],[[12171,12171],"mapped",[33400]],[[12172,12172],"mapped",[34381]],[[12173,12173],"mapped",[34411]],[[12174,12174],"mapped",[34880]],[[12175,12175],"mapped",[34892]],[[12176,12176],"mapped",[34915]],[[12177,12177],"mapped",[35198]],[[12178,12178],"mapped",[35211]],[[12179,12179],"mapped",[35282]],[[12180,12180],"mapped",[35328]],[[12181,12181],"mapped",[35895]],[[12182,12182],"mapped",[35910]],[[12183,12183],"mapped",[35925]],[[12184,12184],"mapped",[35960]],[[12185,12185],"mapped",[35997]],[[12186,12186],"mapped",[36196]],[[12187,12187],"mapped",[36208]],[[12188,12188],"mapped",[36275]],[[12189,12189],"mapped",[36523]],[[12190,12190],"mapped",[36554]],[[12191,12191],"mapped",[36763]],[[12192,12192],"mapped",[36784]],[[12193,12193],"mapped",[36789]],[[12194,12194],"mapped",[37009]],[[12195,12195],"mapped",[37193]],[[12196,12196],"mapped",[37318]],[[12197,12197],"mapped",[37324]],[[12198,12198],"mapped",[37329]],[[12199,12199],"mapped",[38263]],[[12200,12200],"mapped",[38272]],[[12201,12201],"mapped",[38428]],[[12202,12202],"mapped",[38582]],[[12203,12203],"mapped",[38585]],[[12204,12204],"mapped",[38632]],[[12205,12205],"mapped",[38737]],[[12206,12206],"mapped",[38750]],[[12207,12207],"mapped",[38754]],[[12208,12208],"mapped",[38761]],[[12209,12209],"mapped",[38859]],[[12210,12210],"mapped",[38893]],[[12211,12211],"mapped",[38899]],[[12212,12212],"mapped",[38913]],[[12213,12213],"mapped",[39080]],[[12214,12214],"mapped",[39131]],[[12215,12215],"mapped",[39135]],[[12216,12216],"mapped",[39318]],[[12217,12217],"mapped",[39321]],[[12218,12218],"mapped",[39340]],[[12219,12219],"mapped",[39592]],[[12220,12220],"mapped",[39640]],[[12221,12221],"mapped",[39647]],[[12222,12222],"mapped",[39717]],[[12223,12223],"mapped",[39727]],[[12224,12224],"mapped",[39730]],[[12225,12225],"mapped",[39740]],[[12226,12226],"mapped",[39770]],[[12227,12227],"mapped",[40165]],[[12228,12228],"mapped",[40565]],[[12229,12229],"mapped",[40575]],[[12230,12230],"mapped",[40613]],[[12231,12231],"mapped",[40635]],[[12232,12232],"mapped",[40643]],[[12233,12233],"mapped",[40653]],[[12234,12234],"mapped",[40657]],[[12235,12235],"mapped",[40697]],[[12236,12236],"mapped",[40701]],[[12237,12237],"mapped",[40718]],[[12238,12238],"mapped",[40723]],[[12239,12239],"mapped",[40736]],[[12240,12240],"mapped",[40763]],[[12241,12241],"mapped",[40778]],[[12242,12242],"mapped",[40786]],[[12243,12243],"mapped",[40845]],[[12244,12244],"mapped",[40860]],[[12245,12245],"mapped",[40864]],[[12246,12271],"disallowed"],[[12272,12283],"disallowed"],[[12284,12287],"disallowed"],[[12288,12288],"disallowed_STD3_mapped",[32]],[[12289,12289],"valid",[],"NV8"],[[12290,12290],"mapped",[46]],[[12291,12292],"valid",[],"NV8"],[[12293,12295],"valid"],[[12296,12329],"valid",[],"NV8"],[[12330,12333],"valid"],[[12334,12341],"valid",[],"NV8"],[[12342,12342],"mapped",[12306]],[[12343,12343],"valid",[],"NV8"],[[12344,12344],"mapped",[21313]],[[12345,12345],"mapped",[21316]],[[12346,12346],"mapped",[21317]],[[12347,12347],"valid",[],"NV8"],[[12348,12348],"valid"],[[12349,12349],"valid",[],"NV8"],[[12350,12350],"valid",[],"NV8"],[[12351,12351],"valid",[],"NV8"],[[12352,12352],"disallowed"],[[12353,12436],"valid"],[[12437,12438],"valid"],[[12439,12440],"disallowed"],[[12441,12442],"valid"],[[12443,12443],"disallowed_STD3_mapped",[32,12441]],[[12444,12444],"disallowed_STD3_mapped",[32,12442]],[[12445,12446],"valid"],[[12447,12447],"mapped",[12424,12426]],[[12448,12448],"valid",[],"NV8"],[[12449,12542],"valid"],[[12543,12543],"mapped",[12467,12488]],[[12544,12548],"disallowed"],[[12549,12588],"valid"],[[12589,12589],"valid"],[[12590,12592],"disallowed"],[[12593,12593],"mapped",[4352]],[[12594,12594],"mapped",[4353]],[[12595,12595],"mapped",[4522]],[[12596,12596],"mapped",[4354]],[[12597,12597],"mapped",[4524]],[[12598,12598],"mapped",[4525]],[[12599,12599],"mapped",[4355]],[[12600,12600],"mapped",[4356]],[[12601,12601],"mapped",[4357]],[[12602,12602],"mapped",[4528]],[[12603,12603],"mapped",[4529]],[[12604,12604],"mapped",[4530]],[[12605,12605],"mapped",[4531]],[[12606,12606],"mapped",[4532]],[[12607,12607],"mapped",[4533]],[[12608,12608],"mapped",[4378]],[[12609,12609],"mapped",[4358]],[[12610,12610],"mapped",[4359]],[[12611,12611],"mapped",[4360]],[[12612,12612],"mapped",[4385]],[[12613,12613],"mapped",[4361]],[[12614,12614],"mapped",[4362]],[[12615,12615],"mapped",[4363]],[[12616,12616],"mapped",[4364]],[[12617,12617],"mapped",[4365]],[[12618,12618],"mapped",[4366]],[[12619,12619],"mapped",[4367]],[[12620,12620],"mapped",[4368]],[[12621,12621],"mapped",[4369]],[[12622,12622],"mapped",[4370]],[[12623,12623],"mapped",[4449]],[[12624,12624],"mapped",[4450]],[[12625,12625],"mapped",[4451]],[[12626,12626],"mapped",[4452]],[[12627,12627],"mapped",[4453]],[[12628,12628],"mapped",[4454]],[[12629,12629],"mapped",[4455]],[[12630,12630],"mapped",[4456]],[[12631,12631],"mapped",[4457]],[[12632,12632],"mapped",[4458]],[[12633,12633],"mapped",[4459]],[[12634,12634],"mapped",[4460]],[[12635,12635],"mapped",[4461]],[[12636,12636],"mapped",[4462]],[[12637,12637],"mapped",[4463]],[[12638,12638],"mapped",[4464]],[[12639,12639],"mapped",[4465]],[[12640,12640],"mapped",[4466]],[[12641,12641],"mapped",[4467]],[[12642,12642],"mapped",[4468]],[[12643,12643],"mapped",[4469]],[[12644,12644],"disallowed"],[[12645,12645],"mapped",[4372]],[[12646,12646],"mapped",[4373]],[[12647,12647],"mapped",[4551]],[[12648,12648],"mapped",[4552]],[[12649,12649],"mapped",[4556]],[[12650,12650],"mapped",[4558]],[[12651,12651],"mapped",[4563]],[[12652,12652],"mapped",[4567]],[[12653,12653],"mapped",[4569]],[[12654,12654],"mapped",[4380]],[[12655,12655],"mapped",[4573]],[[12656,12656],"mapped",[4575]],[[12657,12657],"mapped",[4381]],[[12658,12658],"mapped",[4382]],[[12659,12659],"mapped",[4384]],[[12660,12660],"mapped",[4386]],[[12661,12661],"mapped",[4387]],[[12662,12662],"mapped",[4391]],[[12663,12663],"mapped",[4393]],[[12664,12664],"mapped",[4395]],[[12665,12665],"mapped",[4396]],[[12666,12666],"mapped",[4397]],[[12667,12667],"mapped",[4398]],[[12668,12668],"mapped",[4399]],[[12669,12669],"mapped",[4402]],[[12670,12670],"mapped",[4406]],[[12671,12671],"mapped",[4416]],[[12672,12672],"mapped",[4423]],[[12673,12673],"mapped",[4428]],[[12674,12674],"mapped",[4593]],[[12675,12675],"mapped",[4594]],[[12676,12676],"mapped",[4439]],[[12677,12677],"mapped",[4440]],[[12678,12678],"mapped",[4441]],[[12679,12679],"mapped",[4484]],[[12680,12680],"mapped",[4485]],[[12681,12681],"mapped",[4488]],[[12682,12682],"mapped",[4497]],[[12683,12683],"mapped",[4498]],[[12684,12684],"mapped",[4500]],[[12685,12685],"mapped",[4510]],[[12686,12686],"mapped",[4513]],[[12687,12687],"disallowed"],[[12688,12689],"valid",[],"NV8"],[[12690,12690],"mapped",[19968]],[[12691,12691],"mapped",[20108]],[[12692,12692],"mapped",[19977]],[[12693,12693],"mapped",[22235]],[[12694,12694],"mapped",[19978]],[[12695,12695],"mapped",[20013]],[[12696,12696],"mapped",[19979]],[[12697,12697],"mapped",[30002]],[[12698,12698],"mapped",[20057]],[[12699,12699],"mapped",[19993]],[[12700,12700],"mapped",[19969]],[[12701,12701],"mapped",[22825]],[[12702,12702],"mapped",[22320]],[[12703,12703],"mapped",[20154]],[[12704,12727],"valid"],[[12728,12730],"valid"],[[12731,12735],"disallowed"],[[12736,12751],"valid",[],"NV8"],[[12752,12771],"valid",[],"NV8"],[[12772,12783],"disallowed"],[[12784,12799],"valid"],[[12800,12800],"disallowed_STD3_mapped",[40,4352,41]],[[12801,12801],"disallowed_STD3_mapped",[40,4354,41]],[[12802,12802],"disallowed_STD3_mapped",[40,4355,41]],[[12803,12803],"disallowed_STD3_mapped",[40,4357,41]],[[12804,12804],"disallowed_STD3_mapped",[40,4358,41]],[[12805,12805],"disallowed_STD3_mapped",[40,4359,41]],[[12806,12806],"disallowed_STD3_mapped",[40,4361,41]],[[12807,12807],"disallowed_STD3_mapped",[40,4363,41]],[[12808,12808],"disallowed_STD3_mapped",[40,4364,41]],[[12809,12809],"disallowed_STD3_mapped",[40,4366,41]],[[12810,12810],"disallowed_STD3_mapped",[40,4367,41]],[[12811,12811],"disallowed_STD3_mapped",[40,4368,41]],[[12812,12812],"disallowed_STD3_mapped",[40,4369,41]],[[12813,12813],"disallowed_STD3_mapped",[40,4370,41]],[[12814,12814],"disallowed_STD3_mapped",[40,44032,41]],[[12815,12815],"disallowed_STD3_mapped",[40,45208,41]],[[12816,12816],"disallowed_STD3_mapped",[40,45796,41]],[[12817,12817],"disallowed_STD3_mapped",[40,46972,41]],[[12818,12818],"disallowed_STD3_mapped",[40,47560,41]],[[12819,12819],"disallowed_STD3_mapped",[40,48148,41]],[[12820,12820],"disallowed_STD3_mapped",[40,49324,41]],[[12821,12821],"disallowed_STD3_mapped",[40,50500,41]],[[12822,12822],"disallowed_STD3_mapped",[40,51088,41]],[[12823,12823],"disallowed_STD3_mapped",[40,52264,41]],[[12824,12824],"disallowed_STD3_mapped",[40,52852,41]],[[12825,12825],"disallowed_STD3_mapped",[40,53440,41]],[[12826,12826],"disallowed_STD3_mapped",[40,54028,41]],[[12827,12827],"disallowed_STD3_mapped",[40,54616,41]],[[12828,12828],"disallowed_STD3_mapped",[40,51452,41]],[[12829,12829],"disallowed_STD3_mapped",[40,50724,51204,41]],[[12830,12830],"disallowed_STD3_mapped",[40,50724,54980,41]],[[12831,12831],"disallowed"],[[12832,12832],"disallowed_STD3_mapped",[40,19968,41]],[[12833,12833],"disallowed_STD3_mapped",[40,20108,41]],[[12834,12834],"disallowed_STD3_mapped",[40,19977,41]],[[12835,12835],"disallowed_STD3_mapped",[40,22235,41]],[[12836,12836],"disallowed_STD3_mapped",[40,20116,41]],[[12837,12837],"disallowed_STD3_mapped",[40,20845,41]],[[12838,12838],"disallowed_STD3_mapped",[40,19971,41]],[[12839,12839],"disallowed_STD3_mapped",[40,20843,41]],[[12840,12840],"disallowed_STD3_mapped",[40,20061,41]],[[12841,12841],"disallowed_STD3_mapped",[40,21313,41]],[[12842,12842],"disallowed_STD3_mapped",[40,26376,41]],[[12843,12843],"disallowed_STD3_mapped",[40,28779,41]],[[12844,12844],"disallowed_STD3_mapped",[40,27700,41]],[[12845,12845],"disallowed_STD3_mapped",[40,26408,41]],[[12846,12846],"disallowed_STD3_mapped",[40,37329,41]],[[12847,12847],"disallowed_STD3_mapped",[40,22303,41]],[[12848,12848],"disallowed_STD3_mapped",[40,26085,41]],[[12849,12849],"disallowed_STD3_mapped",[40,26666,41]],[[12850,12850],"disallowed_STD3_mapped",[40,26377,41]],[[12851,12851],"disallowed_STD3_mapped",[40,31038,41]],[[12852,12852],"disallowed_STD3_mapped",[40,21517,41]],[[12853,12853],"disallowed_STD3_mapped",[40,29305,41]],[[12854,12854],"disallowed_STD3_mapped",[40,36001,41]],[[12855,12855],"disallowed_STD3_mapped",[40,31069,41]],[[12856,12856],"disallowed_STD3_mapped",[40,21172,41]],[[12857,12857],"disallowed_STD3_mapped",[40,20195,41]],[[12858,12858],"disallowed_STD3_mapped",[40,21628,41]],[[12859,12859],"disallowed_STD3_mapped",[40,23398,41]],[[12860,12860],"disallowed_STD3_mapped",[40,30435,41]],[[12861,12861],"disallowed_STD3_mapped",[40,20225,41]],[[12862,12862],"disallowed_STD3_mapped",[40,36039,41]],[[12863,12863],"disallowed_STD3_mapped",[40,21332,41]],[[12864,12864],"disallowed_STD3_mapped",[40,31085,41]],[[12865,12865],"disallowed_STD3_mapped",[40,20241,41]],[[12866,12866],"disallowed_STD3_mapped",[40,33258,41]],[[12867,12867],"disallowed_STD3_mapped",[40,33267,41]],[[12868,12868],"mapped",[21839]],[[12869,12869],"mapped",[24188]],[[12870,12870],"mapped",[25991]],[[12871,12871],"mapped",[31631]],[[12872,12879],"valid",[],"NV8"],[[12880,12880],"mapped",[112,116,101]],[[12881,12881],"mapped",[50,49]],[[12882,12882],"mapped",[50,50]],[[12883,12883],"mapped",[50,51]],[[12884,12884],"mapped",[50,52]],[[12885,12885],"mapped",[50,53]],[[12886,12886],"mapped",[50,54]],[[12887,12887],"mapped",[50,55]],[[12888,12888],"mapped",[50,56]],[[12889,12889],"mapped",[50,57]],[[12890,12890],"mapped",[51,48]],[[12891,12891],"mapped",[51,49]],[[12892,12892],"mapped",[51,50]],[[12893,12893],"mapped",[51,51]],[[12894,12894],"mapped",[51,52]],[[12895,12895],"mapped",[51,53]],[[12896,12896],"mapped",[4352]],[[12897,12897],"mapped",[4354]],[[12898,12898],"mapped",[4355]],[[12899,12899],"mapped",[4357]],[[12900,12900],"mapped",[4358]],[[12901,12901],"mapped",[4359]],[[12902,12902],"mapped",[4361]],[[12903,12903],"mapped",[4363]],[[12904,12904],"mapped",[4364]],[[12905,12905],"mapped",[4366]],[[12906,12906],"mapped",[4367]],[[12907,12907],"mapped",[4368]],[[12908,12908],"mapped",[4369]],[[12909,12909],"mapped",[4370]],[[12910,12910],"mapped",[44032]],[[12911,12911],"mapped",[45208]],[[12912,12912],"mapped",[45796]],[[12913,12913],"mapped",[46972]],[[12914,12914],"mapped",[47560]],[[12915,12915],"mapped",[48148]],[[12916,12916],"mapped",[49324]],[[12917,12917],"mapped",[50500]],[[12918,12918],"mapped",[51088]],[[12919,12919],"mapped",[52264]],[[12920,12920],"mapped",[52852]],[[12921,12921],"mapped",[53440]],[[12922,12922],"mapped",[54028]],[[12923,12923],"mapped",[54616]],[[12924,12924],"mapped",[52280,44256]],[[12925,12925],"mapped",[51452,51032]],[[12926,12926],"mapped",[50864]],[[12927,12927],"valid",[],"NV8"],[[12928,12928],"mapped",[19968]],[[12929,12929],"mapped",[20108]],[[12930,12930],"mapped",[19977]],[[12931,12931],"mapped",[22235]],[[12932,12932],"mapped",[20116]],[[12933,12933],"mapped",[20845]],[[12934,12934],"mapped",[19971]],[[12935,12935],"mapped",[20843]],[[12936,12936],"mapped",[20061]],[[12937,12937],"mapped",[21313]],[[12938,12938],"mapped",[26376]],[[12939,12939],"mapped",[28779]],[[12940,12940],"mapped",[27700]],[[12941,12941],"mapped",[26408]],[[12942,12942],"mapped",[37329]],[[12943,12943],"mapped",[22303]],[[12944,12944],"mapped",[26085]],[[12945,12945],"mapped",[26666]],[[12946,12946],"mapped",[26377]],[[12947,12947],"mapped",[31038]],[[12948,12948],"mapped",[21517]],[[12949,12949],"mapped",[29305]],[[12950,12950],"mapped",[36001]],[[12951,12951],"mapped",[31069]],[[12952,12952],"mapped",[21172]],[[12953,12953],"mapped",[31192]],[[12954,12954],"mapped",[30007]],[[12955,12955],"mapped",[22899]],[[12956,12956],"mapped",[36969]],[[12957,12957],"mapped",[20778]],[[12958,12958],"mapped",[21360]],[[12959,12959],"mapped",[27880]],[[12960,12960],"mapped",[38917]],[[12961,12961],"mapped",[20241]],[[12962,12962],"mapped",[20889]],[[12963,12963],"mapped",[27491]],[[12964,12964],"mapped",[19978]],[[12965,12965],"mapped",[20013]],[[12966,12966],"mapped",[19979]],[[12967,12967],"mapped",[24038]],[[12968,12968],"mapped",[21491]],[[12969,12969],"mapped",[21307]],[[12970,12970],"mapped",[23447]],[[12971,12971],"mapped",[23398]],[[12972,12972],"mapped",[30435]],[[12973,12973],"mapped",[20225]],[[12974,12974],"mapped",[36039]],[[12975,12975],"mapped",[21332]],[[12976,12976],"mapped",[22812]],[[12977,12977],"mapped",[51,54]],[[12978,12978],"mapped",[51,55]],[[12979,12979],"mapped",[51,56]],[[12980,12980],"mapped",[51,57]],[[12981,12981],"mapped",[52,48]],[[12982,12982],"mapped",[52,49]],[[12983,12983],"mapped",[52,50]],[[12984,12984],"mapped",[52,51]],[[12985,12985],"mapped",[52,52]],[[12986,12986],"mapped",[52,53]],[[12987,12987],"mapped",[52,54]],[[12988,12988],"mapped",[52,55]],[[12989,12989],"mapped",[52,56]],[[12990,12990],"mapped",[52,57]],[[12991,12991],"mapped",[53,48]],[[12992,12992],"mapped",[49,26376]],[[12993,12993],"mapped",[50,26376]],[[12994,12994],"mapped",[51,26376]],[[12995,12995],"mapped",[52,26376]],[[12996,12996],"mapped",[53,26376]],[[12997,12997],"mapped",[54,26376]],[[12998,12998],"mapped",[55,26376]],[[12999,12999],"mapped",[56,26376]],[[13e3,13e3],"mapped",[57,26376]],[[13001,13001],"mapped",[49,48,26376]],[[13002,13002],"mapped",[49,49,26376]],[[13003,13003],"mapped",[49,50,26376]],[[13004,13004],"mapped",[104,103]],[[13005,13005],"mapped",[101,114,103]],[[13006,13006],"mapped",[101,118]],[[13007,13007],"mapped",[108,116,100]],[[13008,13008],"mapped",[12450]],[[13009,13009],"mapped",[12452]],[[13010,13010],"mapped",[12454]],[[13011,13011],"mapped",[12456]],[[13012,13012],"mapped",[12458]],[[13013,13013],"mapped",[12459]],[[13014,13014],"mapped",[12461]],[[13015,13015],"mapped",[12463]],[[13016,13016],"mapped",[12465]],[[13017,13017],"mapped",[12467]],[[13018,13018],"mapped",[12469]],[[13019,13019],"mapped",[12471]],[[13020,13020],"mapped",[12473]],[[13021,13021],"mapped",[12475]],[[13022,13022],"mapped",[12477]],[[13023,13023],"mapped",[12479]],[[13024,13024],"mapped",[12481]],[[13025,13025],"mapped",[12484]],[[13026,13026],"mapped",[12486]],[[13027,13027],"mapped",[12488]],[[13028,13028],"mapped",[12490]],[[13029,13029],"mapped",[12491]],[[13030,13030],"mapped",[12492]],[[13031,13031],"mapped",[12493]],[[13032,13032],"mapped",[12494]],[[13033,13033],"mapped",[12495]],[[13034,13034],"mapped",[12498]],[[13035,13035],"mapped",[12501]],[[13036,13036],"mapped",[12504]],[[13037,13037],"mapped",[12507]],[[13038,13038],"mapped",[12510]],[[13039,13039],"mapped",[12511]],[[13040,13040],"mapped",[12512]],[[13041,13041],"mapped",[12513]],[[13042,13042],"mapped",[12514]],[[13043,13043],"mapped",[12516]],[[13044,13044],"mapped",[12518]],[[13045,13045],"mapped",[12520]],[[13046,13046],"mapped",[12521]],[[13047,13047],"mapped",[12522]],[[13048,13048],"mapped",[12523]],[[13049,13049],"mapped",[12524]],[[13050,13050],"mapped",[12525]],[[13051,13051],"mapped",[12527]],[[13052,13052],"mapped",[12528]],[[13053,13053],"mapped",[12529]],[[13054,13054],"mapped",[12530]],[[13055,13055],"disallowed"],[[13056,13056],"mapped",[12450,12497,12540,12488]],[[13057,13057],"mapped",[12450,12523,12501,12449]],[[13058,13058],"mapped",[12450,12531,12506,12450]],[[13059,13059],"mapped",[12450,12540,12523]],[[13060,13060],"mapped",[12452,12491,12531,12464]],[[13061,13061],"mapped",[12452,12531,12481]],[[13062,13062],"mapped",[12454,12457,12531]],[[13063,13063],"mapped",[12456,12473,12463,12540,12489]],[[13064,13064],"mapped",[12456,12540,12459,12540]],[[13065,13065],"mapped",[12458,12531,12473]],[[13066,13066],"mapped",[12458,12540,12512]],[[13067,13067],"mapped",[12459,12452,12522]],[[13068,13068],"mapped",[12459,12521,12483,12488]],[[13069,13069],"mapped",[12459,12525,12522,12540]],[[13070,13070],"mapped",[12460,12525,12531]],[[13071,13071],"mapped",[12460,12531,12510]],[[13072,13072],"mapped",[12462,12460]],[[13073,13073],"mapped",[12462,12491,12540]],[[13074,13074],"mapped",[12461,12517,12522,12540]],[[13075,13075],"mapped",[12462,12523,12480,12540]],[[13076,13076],"mapped",[12461,12525]],[[13077,13077],"mapped",[12461,12525,12464,12521,12512]],[[13078,13078],"mapped",[12461,12525,12513,12540,12488,12523]],[[13079,13079],"mapped",[12461,12525,12527,12483,12488]],[[13080,13080],"mapped",[12464,12521,12512]],[[13081,13081],"mapped",[12464,12521,12512,12488,12531]],[[13082,13082],"mapped",[12463,12523,12476,12452,12525]],[[13083,13083],"mapped",[12463,12525,12540,12493]],[[13084,13084],"mapped",[12465,12540,12473]],[[13085,13085],"mapped",[12467,12523,12490]],[[13086,13086],"mapped",[12467,12540,12509]],[[13087,13087],"mapped",[12469,12452,12463,12523]],[[13088,13088],"mapped",[12469,12531,12481,12540,12512]],[[13089,13089],"mapped",[12471,12522,12531,12464]],[[13090,13090],"mapped",[12475,12531,12481]],[[13091,13091],"mapped",[12475,12531,12488]],[[13092,13092],"mapped",[12480,12540,12473]],[[13093,13093],"mapped",[12487,12471]],[[13094,13094],"mapped",[12489,12523]],[[13095,13095],"mapped",[12488,12531]],[[13096,13096],"mapped",[12490,12494]],[[13097,13097],"mapped",[12494,12483,12488]],[[13098,13098],"mapped",[12495,12452,12484]],[[13099,13099],"mapped",[12497,12540,12475,12531,12488]],[[13100,13100],"mapped",[12497,12540,12484]],[[13101,13101],"mapped",[12496,12540,12524,12523]],[[13102,13102],"mapped",[12500,12450,12473,12488,12523]],[[13103,13103],"mapped",[12500,12463,12523]],[[13104,13104],"mapped",[12500,12467]],[[13105,13105],"mapped",[12499,12523]],[[13106,13106],"mapped",[12501,12449,12521,12483,12489]],[[13107,13107],"mapped",[12501,12451,12540,12488]],[[13108,13108],"mapped",[12502,12483,12471,12455,12523]],[[13109,13109],"mapped",[12501,12521,12531]],[[13110,13110],"mapped",[12504,12463,12479,12540,12523]],[[13111,13111],"mapped",[12506,12477]],[[13112,13112],"mapped",[12506,12491,12498]],[[13113,13113],"mapped",[12504,12523,12484]],[[13114,13114],"mapped",[12506,12531,12473]],[[13115,13115],"mapped",[12506,12540,12472]],[[13116,13116],"mapped",[12505,12540,12479]],[[13117,13117],"mapped",[12509,12452,12531,12488]],[[13118,13118],"mapped",[12508,12523,12488]],[[13119,13119],"mapped",[12507,12531]],[[13120,13120],"mapped",[12509,12531,12489]],[[13121,13121],"mapped",[12507,12540,12523]],[[13122,13122],"mapped",[12507,12540,12531]],[[13123,13123],"mapped",[12510,12452,12463,12525]],[[13124,13124],"mapped",[12510,12452,12523]],[[13125,13125],"mapped",[12510,12483,12495]],[[13126,13126],"mapped",[12510,12523,12463]],[[13127,13127],"mapped",[12510,12531,12471,12519,12531]],[[13128,13128],"mapped",[12511,12463,12525,12531]],[[13129,13129],"mapped",[12511,12522]],[[13130,13130],"mapped",[12511,12522,12496,12540,12523]],[[13131,13131],"mapped",[12513,12460]],[[13132,13132],"mapped",[12513,12460,12488,12531]],[[13133,13133],"mapped",[12513,12540,12488,12523]],[[13134,13134],"mapped",[12516,12540,12489]],[[13135,13135],"mapped",[12516,12540,12523]],[[13136,13136],"mapped",[12518,12450,12531]],[[13137,13137],"mapped",[12522,12483,12488,12523]],[[13138,13138],"mapped",[12522,12521]],[[13139,13139],"mapped",[12523,12500,12540]],[[13140,13140],"mapped",[12523,12540,12502,12523]],[[13141,13141],"mapped",[12524,12512]],[[13142,13142],"mapped",[12524,12531,12488,12466,12531]],[[13143,13143],"mapped",[12527,12483,12488]],[[13144,13144],"mapped",[48,28857]],[[13145,13145],"mapped",[49,28857]],[[13146,13146],"mapped",[50,28857]],[[13147,13147],"mapped",[51,28857]],[[13148,13148],"mapped",[52,28857]],[[13149,13149],"mapped",[53,28857]],[[13150,13150],"mapped",[54,28857]],[[13151,13151],"mapped",[55,28857]],[[13152,13152],"mapped",[56,28857]],[[13153,13153],"mapped",[57,28857]],[[13154,13154],"mapped",[49,48,28857]],[[13155,13155],"mapped",[49,49,28857]],[[13156,13156],"mapped",[49,50,28857]],[[13157,13157],"mapped",[49,51,28857]],[[13158,13158],"mapped",[49,52,28857]],[[13159,13159],"mapped",[49,53,28857]],[[13160,13160],"mapped",[49,54,28857]],[[13161,13161],"mapped",[49,55,28857]],[[13162,13162],"mapped",[49,56,28857]],[[13163,13163],"mapped",[49,57,28857]],[[13164,13164],"mapped",[50,48,28857]],[[13165,13165],"mapped",[50,49,28857]],[[13166,13166],"mapped",[50,50,28857]],[[13167,13167],"mapped",[50,51,28857]],[[13168,13168],"mapped",[50,52,28857]],[[13169,13169],"mapped",[104,112,97]],[[13170,13170],"mapped",[100,97]],[[13171,13171],"mapped",[97,117]],[[13172,13172],"mapped",[98,97,114]],[[13173,13173],"mapped",[111,118]],[[13174,13174],"mapped",[112,99]],[[13175,13175],"mapped",[100,109]],[[13176,13176],"mapped",[100,109,50]],[[13177,13177],"mapped",[100,109,51]],[[13178,13178],"mapped",[105,117]],[[13179,13179],"mapped",[24179,25104]],[[13180,13180],"mapped",[26157,21644]],[[13181,13181],"mapped",[22823,27491]],[[13182,13182],"mapped",[26126,27835]],[[13183,13183],"mapped",[26666,24335,20250,31038]],[[13184,13184],"mapped",[112,97]],[[13185,13185],"mapped",[110,97]],[[13186,13186],"mapped",[956,97]],[[13187,13187],"mapped",[109,97]],[[13188,13188],"mapped",[107,97]],[[13189,13189],"mapped",[107,98]],[[13190,13190],"mapped",[109,98]],[[13191,13191],"mapped",[103,98]],[[13192,13192],"mapped",[99,97,108]],[[13193,13193],"mapped",[107,99,97,108]],[[13194,13194],"mapped",[112,102]],[[13195,13195],"mapped",[110,102]],[[13196,13196],"mapped",[956,102]],[[13197,13197],"mapped",[956,103]],[[13198,13198],"mapped",[109,103]],[[13199,13199],"mapped",[107,103]],[[13200,13200],"mapped",[104,122]],[[13201,13201],"mapped",[107,104,122]],[[13202,13202],"mapped",[109,104,122]],[[13203,13203],"mapped",[103,104,122]],[[13204,13204],"mapped",[116,104,122]],[[13205,13205],"mapped",[956,108]],[[13206,13206],"mapped",[109,108]],[[13207,13207],"mapped",[100,108]],[[13208,13208],"mapped",[107,108]],[[13209,13209],"mapped",[102,109]],[[13210,13210],"mapped",[110,109]],[[13211,13211],"mapped",[956,109]],[[13212,13212],"mapped",[109,109]],[[13213,13213],"mapped",[99,109]],[[13214,13214],"mapped",[107,109]],[[13215,13215],"mapped",[109,109,50]],[[13216,13216],"mapped",[99,109,50]],[[13217,13217],"mapped",[109,50]],[[13218,13218],"mapped",[107,109,50]],[[13219,13219],"mapped",[109,109,51]],[[13220,13220],"mapped",[99,109,51]],[[13221,13221],"mapped",[109,51]],[[13222,13222],"mapped",[107,109,51]],[[13223,13223],"mapped",[109,8725,115]],[[13224,13224],"mapped",[109,8725,115,50]],[[13225,13225],"mapped",[112,97]],[[13226,13226],"mapped",[107,112,97]],[[13227,13227],"mapped",[109,112,97]],[[13228,13228],"mapped",[103,112,97]],[[13229,13229],"mapped",[114,97,100]],[[13230,13230],"mapped",[114,97,100,8725,115]],[[13231,13231],"mapped",[114,97,100,8725,115,50]],[[13232,13232],"mapped",[112,115]],[[13233,13233],"mapped",[110,115]],[[13234,13234],"mapped",[956,115]],[[13235,13235],"mapped",[109,115]],[[13236,13236],"mapped",[112,118]],[[13237,13237],"mapped",[110,118]],[[13238,13238],"mapped",[956,118]],[[13239,13239],"mapped",[109,118]],[[13240,13240],"mapped",[107,118]],[[13241,13241],"mapped",[109,118]],[[13242,13242],"mapped",[112,119]],[[13243,13243],"mapped",[110,119]],[[13244,13244],"mapped",[956,119]],[[13245,13245],"mapped",[109,119]],[[13246,13246],"mapped",[107,119]],[[13247,13247],"mapped",[109,119]],[[13248,13248],"mapped",[107,969]],[[13249,13249],"mapped",[109,969]],[[13250,13250],"disallowed"],[[13251,13251],"mapped",[98,113]],[[13252,13252],"mapped",[99,99]],[[13253,13253],"mapped",[99,100]],[[13254,13254],"mapped",[99,8725,107,103]],[[13255,13255],"disallowed"],[[13256,13256],"mapped",[100,98]],[[13257,13257],"mapped",[103,121]],[[13258,13258],"mapped",[104,97]],[[13259,13259],"mapped",[104,112]],[[13260,13260],"mapped",[105,110]],[[13261,13261],"mapped",[107,107]],[[13262,13262],"mapped",[107,109]],[[13263,13263],"mapped",[107,116]],[[13264,13264],"mapped",[108,109]],[[13265,13265],"mapped",[108,110]],[[13266,13266],"mapped",[108,111,103]],[[13267,13267],"mapped",[108,120]],[[13268,13268],"mapped",[109,98]],[[13269,13269],"mapped",[109,105,108]],[[13270,13270],"mapped",[109,111,108]],[[13271,13271],"mapped",[112,104]],[[13272,13272],"disallowed"],[[13273,13273],"mapped",[112,112,109]],[[13274,13274],"mapped",[112,114]],[[13275,13275],"mapped",[115,114]],[[13276,13276],"mapped",[115,118]],[[13277,13277],"mapped",[119,98]],[[13278,13278],"mapped",[118,8725,109]],[[13279,13279],"mapped",[97,8725,109]],[[13280,13280],"mapped",[49,26085]],[[13281,13281],"mapped",[50,26085]],[[13282,13282],"mapped",[51,26085]],[[13283,13283],"mapped",[52,26085]],[[13284,13284],"mapped",[53,26085]],[[13285,13285],"mapped",[54,26085]],[[13286,13286],"mapped",[55,26085]],[[13287,13287],"mapped",[56,26085]],[[13288,13288],"mapped",[57,26085]],[[13289,13289],"mapped",[49,48,26085]],[[13290,13290],"mapped",[49,49,26085]],[[13291,13291],"mapped",[49,50,26085]],[[13292,13292],"mapped",[49,51,26085]],[[13293,13293],"mapped",[49,52,26085]],[[13294,13294],"mapped",[49,53,26085]],[[13295,13295],"mapped",[49,54,26085]],[[13296,13296],"mapped",[49,55,26085]],[[13297,13297],"mapped",[49,56,26085]],[[13298,13298],"mapped",[49,57,26085]],[[13299,13299],"mapped",[50,48,26085]],[[13300,13300],"mapped",[50,49,26085]],[[13301,13301],"mapped",[50,50,26085]],[[13302,13302],"mapped",[50,51,26085]],[[13303,13303],"mapped",[50,52,26085]],[[13304,13304],"mapped",[50,53,26085]],[[13305,13305],"mapped",[50,54,26085]],[[13306,13306],"mapped",[50,55,26085]],[[13307,13307],"mapped",[50,56,26085]],[[13308,13308],"mapped",[50,57,26085]],[[13309,13309],"mapped",[51,48,26085]],[[13310,13310],"mapped",[51,49,26085]],[[13311,13311],"mapped",[103,97,108]],[[13312,19893],"valid"],[[19894,19903],"disallowed"],[[19904,19967],"valid",[],"NV8"],[[19968,40869],"valid"],[[40870,40891],"valid"],[[40892,40899],"valid"],[[40900,40907],"valid"],[[40908,40908],"valid"],[[40909,40917],"valid"],[[40918,40959],"disallowed"],[[40960,42124],"valid"],[[42125,42127],"disallowed"],[[42128,42145],"valid",[],"NV8"],[[42146,42147],"valid",[],"NV8"],[[42148,42163],"valid",[],"NV8"],[[42164,42164],"valid",[],"NV8"],[[42165,42176],"valid",[],"NV8"],[[42177,42177],"valid",[],"NV8"],[[42178,42180],"valid",[],"NV8"],[[42181,42181],"valid",[],"NV8"],[[42182,42182],"valid",[],"NV8"],[[42183,42191],"disallowed"],[[42192,42237],"valid"],[[42238,42239],"valid",[],"NV8"],[[42240,42508],"valid"],[[42509,42511],"valid",[],"NV8"],[[42512,42539],"valid"],[[42540,42559],"disallowed"],[[42560,42560],"mapped",[42561]],[[42561,42561],"valid"],[[42562,42562],"mapped",[42563]],[[42563,42563],"valid"],[[42564,42564],"mapped",[42565]],[[42565,42565],"valid"],[[42566,42566],"mapped",[42567]],[[42567,42567],"valid"],[[42568,42568],"mapped",[42569]],[[42569,42569],"valid"],[[42570,42570],"mapped",[42571]],[[42571,42571],"valid"],[[42572,42572],"mapped",[42573]],[[42573,42573],"valid"],[[42574,42574],"mapped",[42575]],[[42575,42575],"valid"],[[42576,42576],"mapped",[42577]],[[42577,42577],"valid"],[[42578,42578],"mapped",[42579]],[[42579,42579],"valid"],[[42580,42580],"mapped",[42581]],[[42581,42581],"valid"],[[42582,42582],"mapped",[42583]],[[42583,42583],"valid"],[[42584,42584],"mapped",[42585]],[[42585,42585],"valid"],[[42586,42586],"mapped",[42587]],[[42587,42587],"valid"],[[42588,42588],"mapped",[42589]],[[42589,42589],"valid"],[[42590,42590],"mapped",[42591]],[[42591,42591],"valid"],[[42592,42592],"mapped",[42593]],[[42593,42593],"valid"],[[42594,42594],"mapped",[42595]],[[42595,42595],"valid"],[[42596,42596],"mapped",[42597]],[[42597,42597],"valid"],[[42598,42598],"mapped",[42599]],[[42599,42599],"valid"],[[42600,42600],"mapped",[42601]],[[42601,42601],"valid"],[[42602,42602],"mapped",[42603]],[[42603,42603],"valid"],[[42604,42604],"mapped",[42605]],[[42605,42607],"valid"],[[42608,42611],"valid",[],"NV8"],[[42612,42619],"valid"],[[42620,42621],"valid"],[[42622,42622],"valid",[],"NV8"],[[42623,42623],"valid"],[[42624,42624],"mapped",[42625]],[[42625,42625],"valid"],[[42626,42626],"mapped",[42627]],[[42627,42627],"valid"],[[42628,42628],"mapped",[42629]],[[42629,42629],"valid"],[[42630,42630],"mapped",[42631]],[[42631,42631],"valid"],[[42632,42632],"mapped",[42633]],[[42633,42633],"valid"],[[42634,42634],"mapped",[42635]],[[42635,42635],"valid"],[[42636,42636],"mapped",[42637]],[[42637,42637],"valid"],[[42638,42638],"mapped",[42639]],[[42639,42639],"valid"],[[42640,42640],"mapped",[42641]],[[42641,42641],"valid"],[[42642,42642],"mapped",[42643]],[[42643,42643],"valid"],[[42644,42644],"mapped",[42645]],[[42645,42645],"valid"],[[42646,42646],"mapped",[42647]],[[42647,42647],"valid"],[[42648,42648],"mapped",[42649]],[[42649,42649],"valid"],[[42650,42650],"mapped",[42651]],[[42651,42651],"valid"],[[42652,42652],"mapped",[1098]],[[42653,42653],"mapped",[1100]],[[42654,42654],"valid"],[[42655,42655],"valid"],[[42656,42725],"valid"],[[42726,42735],"valid",[],"NV8"],[[42736,42737],"valid"],[[42738,42743],"valid",[],"NV8"],[[42744,42751],"disallowed"],[[42752,42774],"valid",[],"NV8"],[[42775,42778],"valid"],[[42779,42783],"valid"],[[42784,42785],"valid",[],"NV8"],[[42786,42786],"mapped",[42787]],[[42787,42787],"valid"],[[42788,42788],"mapped",[42789]],[[42789,42789],"valid"],[[42790,42790],"mapped",[42791]],[[42791,42791],"valid"],[[42792,42792],"mapped",[42793]],[[42793,42793],"valid"],[[42794,42794],"mapped",[42795]],[[42795,42795],"valid"],[[42796,42796],"mapped",[42797]],[[42797,42797],"valid"],[[42798,42798],"mapped",[42799]],[[42799,42801],"valid"],[[42802,42802],"mapped",[42803]],[[42803,42803],"valid"],[[42804,42804],"mapped",[42805]],[[42805,42805],"valid"],[[42806,42806],"mapped",[42807]],[[42807,42807],"valid"],[[42808,42808],"mapped",[42809]],[[42809,42809],"valid"],[[42810,42810],"mapped",[42811]],[[42811,42811],"valid"],[[42812,42812],"mapped",[42813]],[[42813,42813],"valid"],[[42814,42814],"mapped",[42815]],[[42815,42815],"valid"],[[42816,42816],"mapped",[42817]],[[42817,42817],"valid"],[[42818,42818],"mapped",[42819]],[[42819,42819],"valid"],[[42820,42820],"mapped",[42821]],[[42821,42821],"valid"],[[42822,42822],"mapped",[42823]],[[42823,42823],"valid"],[[42824,42824],"mapped",[42825]],[[42825,42825],"valid"],[[42826,42826],"mapped",[42827]],[[42827,42827],"valid"],[[42828,42828],"mapped",[42829]],[[42829,42829],"valid"],[[42830,42830],"mapped",[42831]],[[42831,42831],"valid"],[[42832,42832],"mapped",[42833]],[[42833,42833],"valid"],[[42834,42834],"mapped",[42835]],[[42835,42835],"valid"],[[42836,42836],"mapped",[42837]],[[42837,42837],"valid"],[[42838,42838],"mapped",[42839]],[[42839,42839],"valid"],[[42840,42840],"mapped",[42841]],[[42841,42841],"valid"],[[42842,42842],"mapped",[42843]],[[42843,42843],"valid"],[[42844,42844],"mapped",[42845]],[[42845,42845],"valid"],[[42846,42846],"mapped",[42847]],[[42847,42847],"valid"],[[42848,42848],"mapped",[42849]],[[42849,42849],"valid"],[[42850,42850],"mapped",[42851]],[[42851,42851],"valid"],[[42852,42852],"mapped",[42853]],[[42853,42853],"valid"],[[42854,42854],"mapped",[42855]],[[42855,42855],"valid"],[[42856,42856],"mapped",[42857]],[[42857,42857],"valid"],[[42858,42858],"mapped",[42859]],[[42859,42859],"valid"],[[42860,42860],"mapped",[42861]],[[42861,42861],"valid"],[[42862,42862],"mapped",[42863]],[[42863,42863],"valid"],[[42864,42864],"mapped",[42863]],[[42865,42872],"valid"],[[42873,42873],"mapped",[42874]],[[42874,42874],"valid"],[[42875,42875],"mapped",[42876]],[[42876,42876],"valid"],[[42877,42877],"mapped",[7545]],[[42878,42878],"mapped",[42879]],[[42879,42879],"valid"],[[42880,42880],"mapped",[42881]],[[42881,42881],"valid"],[[42882,42882],"mapped",[42883]],[[42883,42883],"valid"],[[42884,42884],"mapped",[42885]],[[42885,42885],"valid"],[[42886,42886],"mapped",[42887]],[[42887,42888],"valid"],[[42889,42890],"valid",[],"NV8"],[[42891,42891],"mapped",[42892]],[[42892,42892],"valid"],[[42893,42893],"mapped",[613]],[[42894,42894],"valid"],[[42895,42895],"valid"],[[42896,42896],"mapped",[42897]],[[42897,42897],"valid"],[[42898,42898],"mapped",[42899]],[[42899,42899],"valid"],[[42900,42901],"valid"],[[42902,42902],"mapped",[42903]],[[42903,42903],"valid"],[[42904,42904],"mapped",[42905]],[[42905,42905],"valid"],[[42906,42906],"mapped",[42907]],[[42907,42907],"valid"],[[42908,42908],"mapped",[42909]],[[42909,42909],"valid"],[[42910,42910],"mapped",[42911]],[[42911,42911],"valid"],[[42912,42912],"mapped",[42913]],[[42913,42913],"valid"],[[42914,42914],"mapped",[42915]],[[42915,42915],"valid"],[[42916,42916],"mapped",[42917]],[[42917,42917],"valid"],[[42918,42918],"mapped",[42919]],[[42919,42919],"valid"],[[42920,42920],"mapped",[42921]],[[42921,42921],"valid"],[[42922,42922],"mapped",[614]],[[42923,42923],"mapped",[604]],[[42924,42924],"mapped",[609]],[[42925,42925],"mapped",[620]],[[42926,42927],"disallowed"],[[42928,42928],"mapped",[670]],[[42929,42929],"mapped",[647]],[[42930,42930],"mapped",[669]],[[42931,42931],"mapped",[43859]],[[42932,42932],"mapped",[42933]],[[42933,42933],"valid"],[[42934,42934],"mapped",[42935]],[[42935,42935],"valid"],[[42936,42998],"disallowed"],[[42999,42999],"valid"],[[43e3,43e3],"mapped",[295]],[[43001,43001],"mapped",[339]],[[43002,43002],"valid"],[[43003,43007],"valid"],[[43008,43047],"valid"],[[43048,43051],"valid",[],"NV8"],[[43052,43055],"disallowed"],[[43056,43065],"valid",[],"NV8"],[[43066,43071],"disallowed"],[[43072,43123],"valid"],[[43124,43127],"valid",[],"NV8"],[[43128,43135],"disallowed"],[[43136,43204],"valid"],[[43205,43213],"disallowed"],[[43214,43215],"valid",[],"NV8"],[[43216,43225],"valid"],[[43226,43231],"disallowed"],[[43232,43255],"valid"],[[43256,43258],"valid",[],"NV8"],[[43259,43259],"valid"],[[43260,43260],"valid",[],"NV8"],[[43261,43261],"valid"],[[43262,43263],"disallowed"],[[43264,43309],"valid"],[[43310,43311],"valid",[],"NV8"],[[43312,43347],"valid"],[[43348,43358],"disallowed"],[[43359,43359],"valid",[],"NV8"],[[43360,43388],"valid",[],"NV8"],[[43389,43391],"disallowed"],[[43392,43456],"valid"],[[43457,43469],"valid",[],"NV8"],[[43470,43470],"disallowed"],[[43471,43481],"valid"],[[43482,43485],"disallowed"],[[43486,43487],"valid",[],"NV8"],[[43488,43518],"valid"],[[43519,43519],"disallowed"],[[43520,43574],"valid"],[[43575,43583],"disallowed"],[[43584,43597],"valid"],[[43598,43599],"disallowed"],[[43600,43609],"valid"],[[43610,43611],"disallowed"],[[43612,43615],"valid",[],"NV8"],[[43616,43638],"valid"],[[43639,43641],"valid",[],"NV8"],[[43642,43643],"valid"],[[43644,43647],"valid"],[[43648,43714],"valid"],[[43715,43738],"disallowed"],[[43739,43741],"valid"],[[43742,43743],"valid",[],"NV8"],[[43744,43759],"valid"],[[43760,43761],"valid",[],"NV8"],[[43762,43766],"valid"],[[43767,43776],"disallowed"],[[43777,43782],"valid"],[[43783,43784],"disallowed"],[[43785,43790],"valid"],[[43791,43792],"disallowed"],[[43793,43798],"valid"],[[43799,43807],"disallowed"],[[43808,43814],"valid"],[[43815,43815],"disallowed"],[[43816,43822],"valid"],[[43823,43823],"disallowed"],[[43824,43866],"valid"],[[43867,43867],"valid",[],"NV8"],[[43868,43868],"mapped",[42791]],[[43869,43869],"mapped",[43831]],[[43870,43870],"mapped",[619]],[[43871,43871],"mapped",[43858]],[[43872,43875],"valid"],[[43876,43877],"valid"],[[43878,43887],"disallowed"],[[43888,43888],"mapped",[5024]],[[43889,43889],"mapped",[5025]],[[43890,43890],"mapped",[5026]],[[43891,43891],"mapped",[5027]],[[43892,43892],"mapped",[5028]],[[43893,43893],"mapped",[5029]],[[43894,43894],"mapped",[5030]],[[43895,43895],"mapped",[5031]],[[43896,43896],"mapped",[5032]],[[43897,43897],"mapped",[5033]],[[43898,43898],"mapped",[5034]],[[43899,43899],"mapped",[5035]],[[43900,43900],"mapped",[5036]],[[43901,43901],"mapped",[5037]],[[43902,43902],"mapped",[5038]],[[43903,43903],"mapped",[5039]],[[43904,43904],"mapped",[5040]],[[43905,43905],"mapped",[5041]],[[43906,43906],"mapped",[5042]],[[43907,43907],"mapped",[5043]],[[43908,43908],"mapped",[5044]],[[43909,43909],"mapped",[5045]],[[43910,43910],"mapped",[5046]],[[43911,43911],"mapped",[5047]],[[43912,43912],"mapped",[5048]],[[43913,43913],"mapped",[5049]],[[43914,43914],"mapped",[5050]],[[43915,43915],"mapped",[5051]],[[43916,43916],"mapped",[5052]],[[43917,43917],"mapped",[5053]],[[43918,43918],"mapped",[5054]],[[43919,43919],"mapped",[5055]],[[43920,43920],"mapped",[5056]],[[43921,43921],"mapped",[5057]],[[43922,43922],"mapped",[5058]],[[43923,43923],"mapped",[5059]],[[43924,43924],"mapped",[5060]],[[43925,43925],"mapped",[5061]],[[43926,43926],"mapped",[5062]],[[43927,43927],"mapped",[5063]],[[43928,43928],"mapped",[5064]],[[43929,43929],"mapped",[5065]],[[43930,43930],"mapped",[5066]],[[43931,43931],"mapped",[5067]],[[43932,43932],"mapped",[5068]],[[43933,43933],"mapped",[5069]],[[43934,43934],"mapped",[5070]],[[43935,43935],"mapped",[5071]],[[43936,43936],"mapped",[5072]],[[43937,43937],"mapped",[5073]],[[43938,43938],"mapped",[5074]],[[43939,43939],"mapped",[5075]],[[43940,43940],"mapped",[5076]],[[43941,43941],"mapped",[5077]],[[43942,43942],"mapped",[5078]],[[43943,43943],"mapped",[5079]],[[43944,43944],"mapped",[5080]],[[43945,43945],"mapped",[5081]],[[43946,43946],"mapped",[5082]],[[43947,43947],"mapped",[5083]],[[43948,43948],"mapped",[5084]],[[43949,43949],"mapped",[5085]],[[43950,43950],"mapped",[5086]],[[43951,43951],"mapped",[5087]],[[43952,43952],"mapped",[5088]],[[43953,43953],"mapped",[5089]],[[43954,43954],"mapped",[5090]],[[43955,43955],"mapped",[5091]],[[43956,43956],"mapped",[5092]],[[43957,43957],"mapped",[5093]],[[43958,43958],"mapped",[5094]],[[43959,43959],"mapped",[5095]],[[43960,43960],"mapped",[5096]],[[43961,43961],"mapped",[5097]],[[43962,43962],"mapped",[5098]],[[43963,43963],"mapped",[5099]],[[43964,43964],"mapped",[5100]],[[43965,43965],"mapped",[5101]],[[43966,43966],"mapped",[5102]],[[43967,43967],"mapped",[5103]],[[43968,44010],"valid"],[[44011,44011],"valid",[],"NV8"],[[44012,44013],"valid"],[[44014,44015],"disallowed"],[[44016,44025],"valid"],[[44026,44031],"disallowed"],[[44032,55203],"valid"],[[55204,55215],"disallowed"],[[55216,55238],"valid",[],"NV8"],[[55239,55242],"disallowed"],[[55243,55291],"valid",[],"NV8"],[[55292,55295],"disallowed"],[[55296,57343],"disallowed"],[[57344,63743],"disallowed"],[[63744,63744],"mapped",[35912]],[[63745,63745],"mapped",[26356]],[[63746,63746],"mapped",[36554]],[[63747,63747],"mapped",[36040]],[[63748,63748],"mapped",[28369]],[[63749,63749],"mapped",[20018]],[[63750,63750],"mapped",[21477]],[[63751,63752],"mapped",[40860]],[[63753,63753],"mapped",[22865]],[[63754,63754],"mapped",[37329]],[[63755,63755],"mapped",[21895]],[[63756,63756],"mapped",[22856]],[[63757,63757],"mapped",[25078]],[[63758,63758],"mapped",[30313]],[[63759,63759],"mapped",[32645]],[[63760,63760],"mapped",[34367]],[[63761,63761],"mapped",[34746]],[[63762,63762],"mapped",[35064]],[[63763,63763],"mapped",[37007]],[[63764,63764],"mapped",[27138]],[[63765,63765],"mapped",[27931]],[[63766,63766],"mapped",[28889]],[[63767,63767],"mapped",[29662]],[[63768,63768],"mapped",[33853]],[[63769,63769],"mapped",[37226]],[[63770,63770],"mapped",[39409]],[[63771,63771],"mapped",[20098]],[[63772,63772],"mapped",[21365]],[[63773,63773],"mapped",[27396]],[[63774,63774],"mapped",[29211]],[[63775,63775],"mapped",[34349]],[[63776,63776],"mapped",[40478]],[[63777,63777],"mapped",[23888]],[[63778,63778],"mapped",[28651]],[[63779,63779],"mapped",[34253]],[[63780,63780],"mapped",[35172]],[[63781,63781],"mapped",[25289]],[[63782,63782],"mapped",[33240]],[[63783,63783],"mapped",[34847]],[[63784,63784],"mapped",[24266]],[[63785,63785],"mapped",[26391]],[[63786,63786],"mapped",[28010]],[[63787,63787],"mapped",[29436]],[[63788,63788],"mapped",[37070]],[[63789,63789],"mapped",[20358]],[[63790,63790],"mapped",[20919]],[[63791,63791],"mapped",[21214]],[[63792,63792],"mapped",[25796]],[[63793,63793],"mapped",[27347]],[[63794,63794],"mapped",[29200]],[[63795,63795],"mapped",[30439]],[[63796,63796],"mapped",[32769]],[[63797,63797],"mapped",[34310]],[[63798,63798],"mapped",[34396]],[[63799,63799],"mapped",[36335]],[[63800,63800],"mapped",[38706]],[[63801,63801],"mapped",[39791]],[[63802,63802],"mapped",[40442]],[[63803,63803],"mapped",[30860]],[[63804,63804],"mapped",[31103]],[[63805,63805],"mapped",[32160]],[[63806,63806],"mapped",[33737]],[[63807,63807],"mapped",[37636]],[[63808,63808],"mapped",[40575]],[[63809,63809],"mapped",[35542]],[[63810,63810],"mapped",[22751]],[[63811,63811],"mapped",[24324]],[[63812,63812],"mapped",[31840]],[[63813,63813],"mapped",[32894]],[[63814,63814],"mapped",[29282]],[[63815,63815],"mapped",[30922]],[[63816,63816],"mapped",[36034]],[[63817,63817],"mapped",[38647]],[[63818,63818],"mapped",[22744]],[[63819,63819],"mapped",[23650]],[[63820,63820],"mapped",[27155]],[[63821,63821],"mapped",[28122]],[[63822,63822],"mapped",[28431]],[[63823,63823],"mapped",[32047]],[[63824,63824],"mapped",[32311]],[[63825,63825],"mapped",[38475]],[[63826,63826],"mapped",[21202]],[[63827,63827],"mapped",[32907]],[[63828,63828],"mapped",[20956]],[[63829,63829],"mapped",[20940]],[[63830,63830],"mapped",[31260]],[[63831,63831],"mapped",[32190]],[[63832,63832],"mapped",[33777]],[[63833,63833],"mapped",[38517]],[[63834,63834],"mapped",[35712]],[[63835,63835],"mapped",[25295]],[[63836,63836],"mapped",[27138]],[[63837,63837],"mapped",[35582]],[[63838,63838],"mapped",[20025]],[[63839,63839],"mapped",[23527]],[[63840,63840],"mapped",[24594]],[[63841,63841],"mapped",[29575]],[[63842,63842],"mapped",[30064]],[[63843,63843],"mapped",[21271]],[[63844,63844],"mapped",[30971]],[[63845,63845],"mapped",[20415]],[[63846,63846],"mapped",[24489]],[[63847,63847],"mapped",[19981]],[[63848,63848],"mapped",[27852]],[[63849,63849],"mapped",[25976]],[[63850,63850],"mapped",[32034]],[[63851,63851],"mapped",[21443]],[[63852,63852],"mapped",[22622]],[[63853,63853],"mapped",[30465]],[[63854,63854],"mapped",[33865]],[[63855,63855],"mapped",[35498]],[[63856,63856],"mapped",[27578]],[[63857,63857],"mapped",[36784]],[[63858,63858],"mapped",[27784]],[[63859,63859],"mapped",[25342]],[[63860,63860],"mapped",[33509]],[[63861,63861],"mapped",[25504]],[[63862,63862],"mapped",[30053]],[[63863,63863],"mapped",[20142]],[[63864,63864],"mapped",[20841]],[[63865,63865],"mapped",[20937]],[[63866,63866],"mapped",[26753]],[[63867,63867],"mapped",[31975]],[[63868,63868],"mapped",[33391]],[[63869,63869],"mapped",[35538]],[[63870,63870],"mapped",[37327]],[[63871,63871],"mapped",[21237]],[[63872,63872],"mapped",[21570]],[[63873,63873],"mapped",[22899]],[[63874,63874],"mapped",[24300]],[[63875,63875],"mapped",[26053]],[[63876,63876],"mapped",[28670]],[[63877,63877],"mapped",[31018]],[[63878,63878],"mapped",[38317]],[[63879,63879],"mapped",[39530]],[[63880,63880],"mapped",[40599]],[[63881,63881],"mapped",[40654]],[[63882,63882],"mapped",[21147]],[[63883,63883],"mapped",[26310]],[[63884,63884],"mapped",[27511]],[[63885,63885],"mapped",[36706]],[[63886,63886],"mapped",[24180]],[[63887,63887],"mapped",[24976]],[[63888,63888],"mapped",[25088]],[[63889,63889],"mapped",[25754]],[[63890,63890],"mapped",[28451]],[[63891,63891],"mapped",[29001]],[[63892,63892],"mapped",[29833]],[[63893,63893],"mapped",[31178]],[[63894,63894],"mapped",[32244]],[[63895,63895],"mapped",[32879]],[[63896,63896],"mapped",[36646]],[[63897,63897],"mapped",[34030]],[[63898,63898],"mapped",[36899]],[[63899,63899],"mapped",[37706]],[[63900,63900],"mapped",[21015]],[[63901,63901],"mapped",[21155]],[[63902,63902],"mapped",[21693]],[[63903,63903],"mapped",[28872]],[[63904,63904],"mapped",[35010]],[[63905,63905],"mapped",[35498]],[[63906,63906],"mapped",[24265]],[[63907,63907],"mapped",[24565]],[[63908,63908],"mapped",[25467]],[[63909,63909],"mapped",[27566]],[[63910,63910],"mapped",[31806]],[[63911,63911],"mapped",[29557]],[[63912,63912],"mapped",[20196]],[[63913,63913],"mapped",[22265]],[[63914,63914],"mapped",[23527]],[[63915,63915],"mapped",[23994]],[[63916,63916],"mapped",[24604]],[[63917,63917],"mapped",[29618]],[[63918,63918],"mapped",[29801]],[[63919,63919],"mapped",[32666]],[[63920,63920],"mapped",[32838]],[[63921,63921],"mapped",[37428]],[[63922,63922],"mapped",[38646]],[[63923,63923],"mapped",[38728]],[[63924,63924],"mapped",[38936]],[[63925,63925],"mapped",[20363]],[[63926,63926],"mapped",[31150]],[[63927,63927],"mapped",[37300]],[[63928,63928],"mapped",[38584]],[[63929,63929],"mapped",[24801]],[[63930,63930],"mapped",[20102]],[[63931,63931],"mapped",[20698]],[[63932,63932],"mapped",[23534]],[[63933,63933],"mapped",[23615]],[[63934,63934],"mapped",[26009]],[[63935,63935],"mapped",[27138]],[[63936,63936],"mapped",[29134]],[[63937,63937],"mapped",[30274]],[[63938,63938],"mapped",[34044]],[[63939,63939],"mapped",[36988]],[[63940,63940],"mapped",[40845]],[[63941,63941],"mapped",[26248]],[[63942,63942],"mapped",[38446]],[[63943,63943],"mapped",[21129]],[[63944,63944],"mapped",[26491]],[[63945,63945],"mapped",[26611]],[[63946,63946],"mapped",[27969]],[[63947,63947],"mapped",[28316]],[[63948,63948],"mapped",[29705]],[[63949,63949],"mapped",[30041]],[[63950,63950],"mapped",[30827]],[[63951,63951],"mapped",[32016]],[[63952,63952],"mapped",[39006]],[[63953,63953],"mapped",[20845]],[[63954,63954],"mapped",[25134]],[[63955,63955],"mapped",[38520]],[[63956,63956],"mapped",[20523]],[[63957,63957],"mapped",[23833]],[[63958,63958],"mapped",[28138]],[[63959,63959],"mapped",[36650]],[[63960,63960],"mapped",[24459]],[[63961,63961],"mapped",[24900]],[[63962,63962],"mapped",[26647]],[[63963,63963],"mapped",[29575]],[[63964,63964],"mapped",[38534]],[[63965,63965],"mapped",[21033]],[[63966,63966],"mapped",[21519]],[[63967,63967],"mapped",[23653]],[[63968,63968],"mapped",[26131]],[[63969,63969],"mapped",[26446]],[[63970,63970],"mapped",[26792]],[[63971,63971],"mapped",[27877]],[[63972,63972],"mapped",[29702]],[[63973,63973],"mapped",[30178]],[[63974,63974],"mapped",[32633]],[[63975,63975],"mapped",[35023]],[[63976,63976],"mapped",[35041]],[[63977,63977],"mapped",[37324]],[[63978,63978],"mapped",[38626]],[[63979,63979],"mapped",[21311]],[[63980,63980],"mapped",[28346]],[[63981,63981],"mapped",[21533]],[[63982,63982],"mapped",[29136]],[[63983,63983],"mapped",[29848]],[[63984,63984],"mapped",[34298]],[[63985,63985],"mapped",[38563]],[[63986,63986],"mapped",[40023]],[[63987,63987],"mapped",[40607]],[[63988,63988],"mapped",[26519]],[[63989,63989],"mapped",[28107]],[[63990,63990],"mapped",[33256]],[[63991,63991],"mapped",[31435]],[[63992,63992],"mapped",[31520]],[[63993,63993],"mapped",[31890]],[[63994,63994],"mapped",[29376]],[[63995,63995],"mapped",[28825]],[[63996,63996],"mapped",[35672]],[[63997,63997],"mapped",[20160]],[[63998,63998],"mapped",[33590]],[[63999,63999],"mapped",[21050]],[[64e3,64e3],"mapped",[20999]],[[64001,64001],"mapped",[24230]],[[64002,64002],"mapped",[25299]],[[64003,64003],"mapped",[31958]],[[64004,64004],"mapped",[23429]],[[64005,64005],"mapped",[27934]],[[64006,64006],"mapped",[26292]],[[64007,64007],"mapped",[36667]],[[64008,64008],"mapped",[34892]],[[64009,64009],"mapped",[38477]],[[64010,64010],"mapped",[35211]],[[64011,64011],"mapped",[24275]],[[64012,64012],"mapped",[20800]],[[64013,64013],"mapped",[21952]],[[64014,64015],"valid"],[[64016,64016],"mapped",[22618]],[[64017,64017],"valid"],[[64018,64018],"mapped",[26228]],[[64019,64020],"valid"],[[64021,64021],"mapped",[20958]],[[64022,64022],"mapped",[29482]],[[64023,64023],"mapped",[30410]],[[64024,64024],"mapped",[31036]],[[64025,64025],"mapped",[31070]],[[64026,64026],"mapped",[31077]],[[64027,64027],"mapped",[31119]],[[64028,64028],"mapped",[38742]],[[64029,64029],"mapped",[31934]],[[64030,64030],"mapped",[32701]],[[64031,64031],"valid"],[[64032,64032],"mapped",[34322]],[[64033,64033],"valid"],[[64034,64034],"mapped",[35576]],[[64035,64036],"valid"],[[64037,64037],"mapped",[36920]],[[64038,64038],"mapped",[37117]],[[64039,64041],"valid"],[[64042,64042],"mapped",[39151]],[[64043,64043],"mapped",[39164]],[[64044,64044],"mapped",[39208]],[[64045,64045],"mapped",[40372]],[[64046,64046],"mapped",[37086]],[[64047,64047],"mapped",[38583]],[[64048,64048],"mapped",[20398]],[[64049,64049],"mapped",[20711]],[[64050,64050],"mapped",[20813]],[[64051,64051],"mapped",[21193]],[[64052,64052],"mapped",[21220]],[[64053,64053],"mapped",[21329]],[[64054,64054],"mapped",[21917]],[[64055,64055],"mapped",[22022]],[[64056,64056],"mapped",[22120]],[[64057,64057],"mapped",[22592]],[[64058,64058],"mapped",[22696]],[[64059,64059],"mapped",[23652]],[[64060,64060],"mapped",[23662]],[[64061,64061],"mapped",[24724]],[[64062,64062],"mapped",[24936]],[[64063,64063],"mapped",[24974]],[[64064,64064],"mapped",[25074]],[[64065,64065],"mapped",[25935]],[[64066,64066],"mapped",[26082]],[[64067,64067],"mapped",[26257]],[[64068,64068],"mapped",[26757]],[[64069,64069],"mapped",[28023]],[[64070,64070],"mapped",[28186]],[[64071,64071],"mapped",[28450]],[[64072,64072],"mapped",[29038]],[[64073,64073],"mapped",[29227]],[[64074,64074],"mapped",[29730]],[[64075,64075],"mapped",[30865]],[[64076,64076],"mapped",[31038]],[[64077,64077],"mapped",[31049]],[[64078,64078],"mapped",[31048]],[[64079,64079],"mapped",[31056]],[[64080,64080],"mapped",[31062]],[[64081,64081],"mapped",[31069]],[[64082,64082],"mapped",[31117]],[[64083,64083],"mapped",[31118]],[[64084,64084],"mapped",[31296]],[[64085,64085],"mapped",[31361]],[[64086,64086],"mapped",[31680]],[[64087,64087],"mapped",[32244]],[[64088,64088],"mapped",[32265]],[[64089,64089],"mapped",[32321]],[[64090,64090],"mapped",[32626]],[[64091,64091],"mapped",[32773]],[[64092,64092],"mapped",[33261]],[[64093,64094],"mapped",[33401]],[[64095,64095],"mapped",[33879]],[[64096,64096],"mapped",[35088]],[[64097,64097],"mapped",[35222]],[[64098,64098],"mapped",[35585]],[[64099,64099],"mapped",[35641]],[[64100,64100],"mapped",[36051]],[[64101,64101],"mapped",[36104]],[[64102,64102],"mapped",[36790]],[[64103,64103],"mapped",[36920]],[[64104,64104],"mapped",[38627]],[[64105,64105],"mapped",[38911]],[[64106,64106],"mapped",[38971]],[[64107,64107],"mapped",[24693]],[[64108,64108],"mapped",[148206]],[[64109,64109],"mapped",[33304]],[[64110,64111],"disallowed"],[[64112,64112],"mapped",[20006]],[[64113,64113],"mapped",[20917]],[[64114,64114],"mapped",[20840]],[[64115,64115],"mapped",[20352]],[[64116,64116],"mapped",[20805]],[[64117,64117],"mapped",[20864]],[[64118,64118],"mapped",[21191]],[[64119,64119],"mapped",[21242]],[[64120,64120],"mapped",[21917]],[[64121,64121],"mapped",[21845]],[[64122,64122],"mapped",[21913]],[[64123,64123],"mapped",[21986]],[[64124,64124],"mapped",[22618]],[[64125,64125],"mapped",[22707]],[[64126,64126],"mapped",[22852]],[[64127,64127],"mapped",[22868]],[[64128,64128],"mapped",[23138]],[[64129,64129],"mapped",[23336]],[[64130,64130],"mapped",[24274]],[[64131,64131],"mapped",[24281]],[[64132,64132],"mapped",[24425]],[[64133,64133],"mapped",[24493]],[[64134,64134],"mapped",[24792]],[[64135,64135],"mapped",[24910]],[[64136,64136],"mapped",[24840]],[[64137,64137],"mapped",[24974]],[[64138,64138],"mapped",[24928]],[[64139,64139],"mapped",[25074]],[[64140,64140],"mapped",[25140]],[[64141,64141],"mapped",[25540]],[[64142,64142],"mapped",[25628]],[[64143,64143],"mapped",[25682]],[[64144,64144],"mapped",[25942]],[[64145,64145],"mapped",[26228]],[[64146,64146],"mapped",[26391]],[[64147,64147],"mapped",[26395]],[[64148,64148],"mapped",[26454]],[[64149,64149],"mapped",[27513]],[[64150,64150],"mapped",[27578]],[[64151,64151],"mapped",[27969]],[[64152,64152],"mapped",[28379]],[[64153,64153],"mapped",[28363]],[[64154,64154],"mapped",[28450]],[[64155,64155],"mapped",[28702]],[[64156,64156],"mapped",[29038]],[[64157,64157],"mapped",[30631]],[[64158,64158],"mapped",[29237]],[[64159,64159],"mapped",[29359]],[[64160,64160],"mapped",[29482]],[[64161,64161],"mapped",[29809]],[[64162,64162],"mapped",[29958]],[[64163,64163],"mapped",[30011]],[[64164,64164],"mapped",[30237]],[[64165,64165],"mapped",[30239]],[[64166,64166],"mapped",[30410]],[[64167,64167],"mapped",[30427]],[[64168,64168],"mapped",[30452]],[[64169,64169],"mapped",[30538]],[[64170,64170],"mapped",[30528]],[[64171,64171],"mapped",[30924]],[[64172,64172],"mapped",[31409]],[[64173,64173],"mapped",[31680]],[[64174,64174],"mapped",[31867]],[[64175,64175],"mapped",[32091]],[[64176,64176],"mapped",[32244]],[[64177,64177],"mapped",[32574]],[[64178,64178],"mapped",[32773]],[[64179,64179],"mapped",[33618]],[[64180,64180],"mapped",[33775]],[[64181,64181],"mapped",[34681]],[[64182,64182],"mapped",[35137]],[[64183,64183],"mapped",[35206]],[[64184,64184],"mapped",[35222]],[[64185,64185],"mapped",[35519]],[[64186,64186],"mapped",[35576]],[[64187,64187],"mapped",[35531]],[[64188,64188],"mapped",[35585]],[[64189,64189],"mapped",[35582]],[[64190,64190],"mapped",[35565]],[[64191,64191],"mapped",[35641]],[[64192,64192],"mapped",[35722]],[[64193,64193],"mapped",[36104]],[[64194,64194],"mapped",[36664]],[[64195,64195],"mapped",[36978]],[[64196,64196],"mapped",[37273]],[[64197,64197],"mapped",[37494]],[[64198,64198],"mapped",[38524]],[[64199,64199],"mapped",[38627]],[[64200,64200],"mapped",[38742]],[[64201,64201],"mapped",[38875]],[[64202,64202],"mapped",[38911]],[[64203,64203],"mapped",[38923]],[[64204,64204],"mapped",[38971]],[[64205,64205],"mapped",[39698]],[[64206,64206],"mapped",[40860]],[[64207,64207],"mapped",[141386]],[[64208,64208],"mapped",[141380]],[[64209,64209],"mapped",[144341]],[[64210,64210],"mapped",[15261]],[[64211,64211],"mapped",[16408]],[[64212,64212],"mapped",[16441]],[[64213,64213],"mapped",[152137]],[[64214,64214],"mapped",[154832]],[[64215,64215],"mapped",[163539]],[[64216,64216],"mapped",[40771]],[[64217,64217],"mapped",[40846]],[[64218,64255],"disallowed"],[[64256,64256],"mapped",[102,102]],[[64257,64257],"mapped",[102,105]],[[64258,64258],"mapped",[102,108]],[[64259,64259],"mapped",[102,102,105]],[[64260,64260],"mapped",[102,102,108]],[[64261,64262],"mapped",[115,116]],[[64263,64274],"disallowed"],[[64275,64275],"mapped",[1396,1398]],[[64276,64276],"mapped",[1396,1381]],[[64277,64277],"mapped",[1396,1387]],[[64278,64278],"mapped",[1406,1398]],[[64279,64279],"mapped",[1396,1389]],[[64280,64284],"disallowed"],[[64285,64285],"mapped",[1497,1460]],[[64286,64286],"valid"],[[64287,64287],"mapped",[1522,1463]],[[64288,64288],"mapped",[1506]],[[64289,64289],"mapped",[1488]],[[64290,64290],"mapped",[1491]],[[64291,64291],"mapped",[1492]],[[64292,64292],"mapped",[1499]],[[64293,64293],"mapped",[1500]],[[64294,64294],"mapped",[1501]],[[64295,64295],"mapped",[1512]],[[64296,64296],"mapped",[1514]],[[64297,64297],"disallowed_STD3_mapped",[43]],[[64298,64298],"mapped",[1513,1473]],[[64299,64299],"mapped",[1513,1474]],[[64300,64300],"mapped",[1513,1468,1473]],[[64301,64301],"mapped",[1513,1468,1474]],[[64302,64302],"mapped",[1488,1463]],[[64303,64303],"mapped",[1488,1464]],[[64304,64304],"mapped",[1488,1468]],[[64305,64305],"mapped",[1489,1468]],[[64306,64306],"mapped",[1490,1468]],[[64307,64307],"mapped",[1491,1468]],[[64308,64308],"mapped",[1492,1468]],[[64309,64309],"mapped",[1493,1468]],[[64310,64310],"mapped",[1494,1468]],[[64311,64311],"disallowed"],[[64312,64312],"mapped",[1496,1468]],[[64313,64313],"mapped",[1497,1468]],[[64314,64314],"mapped",[1498,1468]],[[64315,64315],"mapped",[1499,1468]],[[64316,64316],"mapped",[1500,1468]],[[64317,64317],"disallowed"],[[64318,64318],"mapped",[1502,1468]],[[64319,64319],"disallowed"],[[64320,64320],"mapped",[1504,1468]],[[64321,64321],"mapped",[1505,1468]],[[64322,64322],"disallowed"],[[64323,64323],"mapped",[1507,1468]],[[64324,64324],"mapped",[1508,1468]],[[64325,64325],"disallowed"],[[64326,64326],"mapped",[1510,1468]],[[64327,64327],"mapped",[1511,1468]],[[64328,64328],"mapped",[1512,1468]],[[64329,64329],"mapped",[1513,1468]],[[64330,64330],"mapped",[1514,1468]],[[64331,64331],"mapped",[1493,1465]],[[64332,64332],"mapped",[1489,1471]],[[64333,64333],"mapped",[1499,1471]],[[64334,64334],"mapped",[1508,1471]],[[64335,64335],"mapped",[1488,1500]],[[64336,64337],"mapped",[1649]],[[64338,64341],"mapped",[1659]],[[64342,64345],"mapped",[1662]],[[64346,64349],"mapped",[1664]],[[64350,64353],"mapped",[1658]],[[64354,64357],"mapped",[1663]],[[64358,64361],"mapped",[1657]],[[64362,64365],"mapped",[1700]],[[64366,64369],"mapped",[1702]],[[64370,64373],"mapped",[1668]],[[64374,64377],"mapped",[1667]],[[64378,64381],"mapped",[1670]],[[64382,64385],"mapped",[1671]],[[64386,64387],"mapped",[1677]],[[64388,64389],"mapped",[1676]],[[64390,64391],"mapped",[1678]],[[64392,64393],"mapped",[1672]],[[64394,64395],"mapped",[1688]],[[64396,64397],"mapped",[1681]],[[64398,64401],"mapped",[1705]],[[64402,64405],"mapped",[1711]],[[64406,64409],"mapped",[1715]],[[64410,64413],"mapped",[1713]],[[64414,64415],"mapped",[1722]],[[64416,64419],"mapped",[1723]],[[64420,64421],"mapped",[1728]],[[64422,64425],"mapped",[1729]],[[64426,64429],"mapped",[1726]],[[64430,64431],"mapped",[1746]],[[64432,64433],"mapped",[1747]],[[64434,64449],"valid",[],"NV8"],[[64450,64466],"disallowed"],[[64467,64470],"mapped",[1709]],[[64471,64472],"mapped",[1735]],[[64473,64474],"mapped",[1734]],[[64475,64476],"mapped",[1736]],[[64477,64477],"mapped",[1735,1652]],[[64478,64479],"mapped",[1739]],[[64480,64481],"mapped",[1733]],[[64482,64483],"mapped",[1737]],[[64484,64487],"mapped",[1744]],[[64488,64489],"mapped",[1609]],[[64490,64491],"mapped",[1574,1575]],[[64492,64493],"mapped",[1574,1749]],[[64494,64495],"mapped",[1574,1608]],[[64496,64497],"mapped",[1574,1735]],[[64498,64499],"mapped",[1574,1734]],[[64500,64501],"mapped",[1574,1736]],[[64502,64504],"mapped",[1574,1744]],[[64505,64507],"mapped",[1574,1609]],[[64508,64511],"mapped",[1740]],[[64512,64512],"mapped",[1574,1580]],[[64513,64513],"mapped",[1574,1581]],[[64514,64514],"mapped",[1574,1605]],[[64515,64515],"mapped",[1574,1609]],[[64516,64516],"mapped",[1574,1610]],[[64517,64517],"mapped",[1576,1580]],[[64518,64518],"mapped",[1576,1581]],[[64519,64519],"mapped",[1576,1582]],[[64520,64520],"mapped",[1576,1605]],[[64521,64521],"mapped",[1576,1609]],[[64522,64522],"mapped",[1576,1610]],[[64523,64523],"mapped",[1578,1580]],[[64524,64524],"mapped",[1578,1581]],[[64525,64525],"mapped",[1578,1582]],[[64526,64526],"mapped",[1578,1605]],[[64527,64527],"mapped",[1578,1609]],[[64528,64528],"mapped",[1578,1610]],[[64529,64529],"mapped",[1579,1580]],[[64530,64530],"mapped",[1579,1605]],[[64531,64531],"mapped",[1579,1609]],[[64532,64532],"mapped",[1579,1610]],[[64533,64533],"mapped",[1580,1581]],[[64534,64534],"mapped",[1580,1605]],[[64535,64535],"mapped",[1581,1580]],[[64536,64536],"mapped",[1581,1605]],[[64537,64537],"mapped",[1582,1580]],[[64538,64538],"mapped",[1582,1581]],[[64539,64539],"mapped",[1582,1605]],[[64540,64540],"mapped",[1587,1580]],[[64541,64541],"mapped",[1587,1581]],[[64542,64542],"mapped",[1587,1582]],[[64543,64543],"mapped",[1587,1605]],[[64544,64544],"mapped",[1589,1581]],[[64545,64545],"mapped",[1589,1605]],[[64546,64546],"mapped",[1590,1580]],[[64547,64547],"mapped",[1590,1581]],[[64548,64548],"mapped",[1590,1582]],[[64549,64549],"mapped",[1590,1605]],[[64550,64550],"mapped",[1591,1581]],[[64551,64551],"mapped",[1591,1605]],[[64552,64552],"mapped",[1592,1605]],[[64553,64553],"mapped",[1593,1580]],[[64554,64554],"mapped",[1593,1605]],[[64555,64555],"mapped",[1594,1580]],[[64556,64556],"mapped",[1594,1605]],[[64557,64557],"mapped",[1601,1580]],[[64558,64558],"mapped",[1601,1581]],[[64559,64559],"mapped",[1601,1582]],[[64560,64560],"mapped",[1601,1605]],[[64561,64561],"mapped",[1601,1609]],[[64562,64562],"mapped",[1601,1610]],[[64563,64563],"mapped",[1602,1581]],[[64564,64564],"mapped",[1602,1605]],[[64565,64565],"mapped",[1602,1609]],[[64566,64566],"mapped",[1602,1610]],[[64567,64567],"mapped",[1603,1575]],[[64568,64568],"mapped",[1603,1580]],[[64569,64569],"mapped",[1603,1581]],[[64570,64570],"mapped",[1603,1582]],[[64571,64571],"mapped",[1603,1604]],[[64572,64572],"mapped",[1603,1605]],[[64573,64573],"mapped",[1603,1609]],[[64574,64574],"mapped",[1603,1610]],[[64575,64575],"mapped",[1604,1580]],[[64576,64576],"mapped",[1604,1581]],[[64577,64577],"mapped",[1604,1582]],[[64578,64578],"mapped",[1604,1605]],[[64579,64579],"mapped",[1604,1609]],[[64580,64580],"mapped",[1604,1610]],[[64581,64581],"mapped",[1605,1580]],[[64582,64582],"mapped",[1605,1581]],[[64583,64583],"mapped",[1605,1582]],[[64584,64584],"mapped",[1605,1605]],[[64585,64585],"mapped",[1605,1609]],[[64586,64586],"mapped",[1605,1610]],[[64587,64587],"mapped",[1606,1580]],[[64588,64588],"mapped",[1606,1581]],[[64589,64589],"mapped",[1606,1582]],[[64590,64590],"mapped",[1606,1605]],[[64591,64591],"mapped",[1606,1609]],[[64592,64592],"mapped",[1606,1610]],[[64593,64593],"mapped",[1607,1580]],[[64594,64594],"mapped",[1607,1605]],[[64595,64595],"mapped",[1607,1609]],[[64596,64596],"mapped",[1607,1610]],[[64597,64597],"mapped",[1610,1580]],[[64598,64598],"mapped",[1610,1581]],[[64599,64599],"mapped",[1610,1582]],[[64600,64600],"mapped",[1610,1605]],[[64601,64601],"mapped",[1610,1609]],[[64602,64602],"mapped",[1610,1610]],[[64603,64603],"mapped",[1584,1648]],[[64604,64604],"mapped",[1585,1648]],[[64605,64605],"mapped",[1609,1648]],[[64606,64606],"disallowed_STD3_mapped",[32,1612,1617]],[[64607,64607],"disallowed_STD3_mapped",[32,1613,1617]],[[64608,64608],"disallowed_STD3_mapped",[32,1614,1617]],[[64609,64609],"disallowed_STD3_mapped",[32,1615,1617]],[[64610,64610],"disallowed_STD3_mapped",[32,1616,1617]],[[64611,64611],"disallowed_STD3_mapped",[32,1617,1648]],[[64612,64612],"mapped",[1574,1585]],[[64613,64613],"mapped",[1574,1586]],[[64614,64614],"mapped",[1574,1605]],[[64615,64615],"mapped",[1574,1606]],[[64616,64616],"mapped",[1574,1609]],[[64617,64617],"mapped",[1574,1610]],[[64618,64618],"mapped",[1576,1585]],[[64619,64619],"mapped",[1576,1586]],[[64620,64620],"mapped",[1576,1605]],[[64621,64621],"mapped",[1576,1606]],[[64622,64622],"mapped",[1576,1609]],[[64623,64623],"mapped",[1576,1610]],[[64624,64624],"mapped",[1578,1585]],[[64625,64625],"mapped",[1578,1586]],[[64626,64626],"mapped",[1578,1605]],[[64627,64627],"mapped",[1578,1606]],[[64628,64628],"mapped",[1578,1609]],[[64629,64629],"mapped",[1578,1610]],[[64630,64630],"mapped",[1579,1585]],[[64631,64631],"mapped",[1579,1586]],[[64632,64632],"mapped",[1579,1605]],[[64633,64633],"mapped",[1579,1606]],[[64634,64634],"mapped",[1579,1609]],[[64635,64635],"mapped",[1579,1610]],[[64636,64636],"mapped",[1601,1609]],[[64637,64637],"mapped",[1601,1610]],[[64638,64638],"mapped",[1602,1609]],[[64639,64639],"mapped",[1602,1610]],[[64640,64640],"mapped",[1603,1575]],[[64641,64641],"mapped",[1603,1604]],[[64642,64642],"mapped",[1603,1605]],[[64643,64643],"mapped",[1603,1609]],[[64644,64644],"mapped",[1603,1610]],[[64645,64645],"mapped",[1604,1605]],[[64646,64646],"mapped",[1604,1609]],[[64647,64647],"mapped",[1604,1610]],[[64648,64648],"mapped",[1605,1575]],[[64649,64649],"mapped",[1605,1605]],[[64650,64650],"mapped",[1606,1585]],[[64651,64651],"mapped",[1606,1586]],[[64652,64652],"mapped",[1606,1605]],[[64653,64653],"mapped",[1606,1606]],[[64654,64654],"mapped",[1606,1609]],[[64655,64655],"mapped",[1606,1610]],[[64656,64656],"mapped",[1609,1648]],[[64657,64657],"mapped",[1610,1585]],[[64658,64658],"mapped",[1610,1586]],[[64659,64659],"mapped",[1610,1605]],[[64660,64660],"mapped",[1610,1606]],[[64661,64661],"mapped",[1610,1609]],[[64662,64662],"mapped",[1610,1610]],[[64663,64663],"mapped",[1574,1580]],[[64664,64664],"mapped",[1574,1581]],[[64665,64665],"mapped",[1574,1582]],[[64666,64666],"mapped",[1574,1605]],[[64667,64667],"mapped",[1574,1607]],[[64668,64668],"mapped",[1576,1580]],[[64669,64669],"mapped",[1576,1581]],[[64670,64670],"mapped",[1576,1582]],[[64671,64671],"mapped",[1576,1605]],[[64672,64672],"mapped",[1576,1607]],[[64673,64673],"mapped",[1578,1580]],[[64674,64674],"mapped",[1578,1581]],[[64675,64675],"mapped",[1578,1582]],[[64676,64676],"mapped",[1578,1605]],[[64677,64677],"mapped",[1578,1607]],[[64678,64678],"mapped",[1579,1605]],[[64679,64679],"mapped",[1580,1581]],[[64680,64680],"mapped",[1580,1605]],[[64681,64681],"mapped",[1581,1580]],[[64682,64682],"mapped",[1581,1605]],[[64683,64683],"mapped",[1582,1580]],[[64684,64684],"mapped",[1582,1605]],[[64685,64685],"mapped",[1587,1580]],[[64686,64686],"mapped",[1587,1581]],[[64687,64687],"mapped",[1587,1582]],[[64688,64688],"mapped",[1587,1605]],[[64689,64689],"mapped",[1589,1581]],[[64690,64690],"mapped",[1589,1582]],[[64691,64691],"mapped",[1589,1605]],[[64692,64692],"mapped",[1590,1580]],[[64693,64693],"mapped",[1590,1581]],[[64694,64694],"mapped",[1590,1582]],[[64695,64695],"mapped",[1590,1605]],[[64696,64696],"mapped",[1591,1581]],[[64697,64697],"mapped",[1592,1605]],[[64698,64698],"mapped",[1593,1580]],[[64699,64699],"mapped",[1593,1605]],[[64700,64700],"mapped",[1594,1580]],[[64701,64701],"mapped",[1594,1605]],[[64702,64702],"mapped",[1601,1580]],[[64703,64703],"mapped",[1601,1581]],[[64704,64704],"mapped",[1601,1582]],[[64705,64705],"mapped",[1601,1605]],[[64706,64706],"mapped",[1602,1581]],[[64707,64707],"mapped",[1602,1605]],[[64708,64708],"mapped",[1603,1580]],[[64709,64709],"mapped",[1603,1581]],[[64710,64710],"mapped",[1603,1582]],[[64711,64711],"mapped",[1603,1604]],[[64712,64712],"mapped",[1603,1605]],[[64713,64713],"mapped",[1604,1580]],[[64714,64714],"mapped",[1604,1581]],[[64715,64715],"mapped",[1604,1582]],[[64716,64716],"mapped",[1604,1605]],[[64717,64717],"mapped",[1604,1607]],[[64718,64718],"mapped",[1605,1580]],[[64719,64719],"mapped",[1605,1581]],[[64720,64720],"mapped",[1605,1582]],[[64721,64721],"mapped",[1605,1605]],[[64722,64722],"mapped",[1606,1580]],[[64723,64723],"mapped",[1606,1581]],[[64724,64724],"mapped",[1606,1582]],[[64725,64725],"mapped",[1606,1605]],[[64726,64726],"mapped",[1606,1607]],[[64727,64727],"mapped",[1607,1580]],[[64728,64728],"mapped",[1607,1605]],[[64729,64729],"mapped",[1607,1648]],[[64730,64730],"mapped",[1610,1580]],[[64731,64731],"mapped",[1610,1581]],[[64732,64732],"mapped",[1610,1582]],[[64733,64733],"mapped",[1610,1605]],[[64734,64734],"mapped",[1610,1607]],[[64735,64735],"mapped",[1574,1605]],[[64736,64736],"mapped",[1574,1607]],[[64737,64737],"mapped",[1576,1605]],[[64738,64738],"mapped",[1576,1607]],[[64739,64739],"mapped",[1578,1605]],[[64740,64740],"mapped",[1578,1607]],[[64741,64741],"mapped",[1579,1605]],[[64742,64742],"mapped",[1579,1607]],[[64743,64743],"mapped",[1587,1605]],[[64744,64744],"mapped",[1587,1607]],[[64745,64745],"mapped",[1588,1605]],[[64746,64746],"mapped",[1588,1607]],[[64747,64747],"mapped",[1603,1604]],[[64748,64748],"mapped",[1603,1605]],[[64749,64749],"mapped",[1604,1605]],[[64750,64750],"mapped",[1606,1605]],[[64751,64751],"mapped",[1606,1607]],[[64752,64752],"mapped",[1610,1605]],[[64753,64753],"mapped",[1610,1607]],[[64754,64754],"mapped",[1600,1614,1617]],[[64755,64755],"mapped",[1600,1615,1617]],[[64756,64756],"mapped",[1600,1616,1617]],[[64757,64757],"mapped",[1591,1609]],[[64758,64758],"mapped",[1591,1610]],[[64759,64759],"mapped",[1593,1609]],[[64760,64760],"mapped",[1593,1610]],[[64761,64761],"mapped",[1594,1609]],[[64762,64762],"mapped",[1594,1610]],[[64763,64763],"mapped",[1587,1609]],[[64764,64764],"mapped",[1587,1610]],[[64765,64765],"mapped",[1588,1609]],[[64766,64766],"mapped",[1588,1610]],[[64767,64767],"mapped",[1581,1609]],[[64768,64768],"mapped",[1581,1610]],[[64769,64769],"mapped",[1580,1609]],[[64770,64770],"mapped",[1580,1610]],[[64771,64771],"mapped",[1582,1609]],[[64772,64772],"mapped",[1582,1610]],[[64773,64773],"mapped",[1589,1609]],[[64774,64774],"mapped",[1589,1610]],[[64775,64775],"mapped",[1590,1609]],[[64776,64776],"mapped",[1590,1610]],[[64777,64777],"mapped",[1588,1580]],[[64778,64778],"mapped",[1588,1581]],[[64779,64779],"mapped",[1588,1582]],[[64780,64780],"mapped",[1588,1605]],[[64781,64781],"mapped",[1588,1585]],[[64782,64782],"mapped",[1587,1585]],[[64783,64783],"mapped",[1589,1585]],[[64784,64784],"mapped",[1590,1585]],[[64785,64785],"mapped",[1591,1609]],[[64786,64786],"mapped",[1591,1610]],[[64787,64787],"mapped",[1593,1609]],[[64788,64788],"mapped",[1593,1610]],[[64789,64789],"mapped",[1594,1609]],[[64790,64790],"mapped",[1594,1610]],[[64791,64791],"mapped",[1587,1609]],[[64792,64792],"mapped",[1587,1610]],[[64793,64793],"mapped",[1588,1609]],[[64794,64794],"mapped",[1588,1610]],[[64795,64795],"mapped",[1581,1609]],[[64796,64796],"mapped",[1581,1610]],[[64797,64797],"mapped",[1580,1609]],[[64798,64798],"mapped",[1580,1610]],[[64799,64799],"mapped",[1582,1609]],[[64800,64800],"mapped",[1582,1610]],[[64801,64801],"mapped",[1589,1609]],[[64802,64802],"mapped",[1589,1610]],[[64803,64803],"mapped",[1590,1609]],[[64804,64804],"mapped",[1590,1610]],[[64805,64805],"mapped",[1588,1580]],[[64806,64806],"mapped",[1588,1581]],[[64807,64807],"mapped",[1588,1582]],[[64808,64808],"mapped",[1588,1605]],[[64809,64809],"mapped",[1588,1585]],[[64810,64810],"mapped",[1587,1585]],[[64811,64811],"mapped",[1589,1585]],[[64812,64812],"mapped",[1590,1585]],[[64813,64813],"mapped",[1588,1580]],[[64814,64814],"mapped",[1588,1581]],[[64815,64815],"mapped",[1588,1582]],[[64816,64816],"mapped",[1588,1605]],[[64817,64817],"mapped",[1587,1607]],[[64818,64818],"mapped",[1588,1607]],[[64819,64819],"mapped",[1591,1605]],[[64820,64820],"mapped",[1587,1580]],[[64821,64821],"mapped",[1587,1581]],[[64822,64822],"mapped",[1587,1582]],[[64823,64823],"mapped",[1588,1580]],[[64824,64824],"mapped",[1588,1581]],[[64825,64825],"mapped",[1588,1582]],[[64826,64826],"mapped",[1591,1605]],[[64827,64827],"mapped",[1592,1605]],[[64828,64829],"mapped",[1575,1611]],[[64830,64831],"valid",[],"NV8"],[[64832,64847],"disallowed"],[[64848,64848],"mapped",[1578,1580,1605]],[[64849,64850],"mapped",[1578,1581,1580]],[[64851,64851],"mapped",[1578,1581,1605]],[[64852,64852],"mapped",[1578,1582,1605]],[[64853,64853],"mapped",[1578,1605,1580]],[[64854,64854],"mapped",[1578,1605,1581]],[[64855,64855],"mapped",[1578,1605,1582]],[[64856,64857],"mapped",[1580,1605,1581]],[[64858,64858],"mapped",[1581,1605,1610]],[[64859,64859],"mapped",[1581,1605,1609]],[[64860,64860],"mapped",[1587,1581,1580]],[[64861,64861],"mapped",[1587,1580,1581]],[[64862,64862],"mapped",[1587,1580,1609]],[[64863,64864],"mapped",[1587,1605,1581]],[[64865,64865],"mapped",[1587,1605,1580]],[[64866,64867],"mapped",[1587,1605,1605]],[[64868,64869],"mapped",[1589,1581,1581]],[[64870,64870],"mapped",[1589,1605,1605]],[[64871,64872],"mapped",[1588,1581,1605]],[[64873,64873],"mapped",[1588,1580,1610]],[[64874,64875],"mapped",[1588,1605,1582]],[[64876,64877],"mapped",[1588,1605,1605]],[[64878,64878],"mapped",[1590,1581,1609]],[[64879,64880],"mapped",[1590,1582,1605]],[[64881,64882],"mapped",[1591,1605,1581]],[[64883,64883],"mapped",[1591,1605,1605]],[[64884,64884],"mapped",[1591,1605,1610]],[[64885,64885],"mapped",[1593,1580,1605]],[[64886,64887],"mapped",[1593,1605,1605]],[[64888,64888],"mapped",[1593,1605,1609]],[[64889,64889],"mapped",[1594,1605,1605]],[[64890,64890],"mapped",[1594,1605,1610]],[[64891,64891],"mapped",[1594,1605,1609]],[[64892,64893],"mapped",[1601,1582,1605]],[[64894,64894],"mapped",[1602,1605,1581]],[[64895,64895],"mapped",[1602,1605,1605]],[[64896,64896],"mapped",[1604,1581,1605]],[[64897,64897],"mapped",[1604,1581,1610]],[[64898,64898],"mapped",[1604,1581,1609]],[[64899,64900],"mapped",[1604,1580,1580]],[[64901,64902],"mapped",[1604,1582,1605]],[[64903,64904],"mapped",[1604,1605,1581]],[[64905,64905],"mapped",[1605,1581,1580]],[[64906,64906],"mapped",[1605,1581,1605]],[[64907,64907],"mapped",[1605,1581,1610]],[[64908,64908],"mapped",[1605,1580,1581]],[[64909,64909],"mapped",[1605,1580,1605]],[[64910,64910],"mapped",[1605,1582,1580]],[[64911,64911],"mapped",[1605,1582,1605]],[[64912,64913],"disallowed"],[[64914,64914],"mapped",[1605,1580,1582]],[[64915,64915],"mapped",[1607,1605,1580]],[[64916,64916],"mapped",[1607,1605,1605]],[[64917,64917],"mapped",[1606,1581,1605]],[[64918,64918],"mapped",[1606,1581,1609]],[[64919,64920],"mapped",[1606,1580,1605]],[[64921,64921],"mapped",[1606,1580,1609]],[[64922,64922],"mapped",[1606,1605,1610]],[[64923,64923],"mapped",[1606,1605,1609]],[[64924,64925],"mapped",[1610,1605,1605]],[[64926,64926],"mapped",[1576,1582,1610]],[[64927,64927],"mapped",[1578,1580,1610]],[[64928,64928],"mapped",[1578,1580,1609]],[[64929,64929],"mapped",[1578,1582,1610]],[[64930,64930],"mapped",[1578,1582,1609]],[[64931,64931],"mapped",[1578,1605,1610]],[[64932,64932],"mapped",[1578,1605,1609]],[[64933,64933],"mapped",[1580,1605,1610]],[[64934,64934],"mapped",[1580,1581,1609]],[[64935,64935],"mapped",[1580,1605,1609]],[[64936,64936],"mapped",[1587,1582,1609]],[[64937,64937],"mapped",[1589,1581,1610]],[[64938,64938],"mapped",[1588,1581,1610]],[[64939,64939],"mapped",[1590,1581,1610]],[[64940,64940],"mapped",[1604,1580,1610]],[[64941,64941],"mapped",[1604,1605,1610]],[[64942,64942],"mapped",[1610,1581,1610]],[[64943,64943],"mapped",[1610,1580,1610]],[[64944,64944],"mapped",[1610,1605,1610]],[[64945,64945],"mapped",[1605,1605,1610]],[[64946,64946],"mapped",[1602,1605,1610]],[[64947,64947],"mapped",[1606,1581,1610]],[[64948,64948],"mapped",[1602,1605,1581]],[[64949,64949],"mapped",[1604,1581,1605]],[[64950,64950],"mapped",[1593,1605,1610]],[[64951,64951],"mapped",[1603,1605,1610]],[[64952,64952],"mapped",[1606,1580,1581]],[[64953,64953],"mapped",[1605,1582,1610]],[[64954,64954],"mapped",[1604,1580,1605]],[[64955,64955],"mapped",[1603,1605,1605]],[[64956,64956],"mapped",[1604,1580,1605]],[[64957,64957],"mapped",[1606,1580,1581]],[[64958,64958],"mapped",[1580,1581,1610]],[[64959,64959],"mapped",[1581,1580,1610]],[[64960,64960],"mapped",[1605,1580,1610]],[[64961,64961],"mapped",[1601,1605,1610]],[[64962,64962],"mapped",[1576,1581,1610]],[[64963,64963],"mapped",[1603,1605,1605]],[[64964,64964],"mapped",[1593,1580,1605]],[[64965,64965],"mapped",[1589,1605,1605]],[[64966,64966],"mapped",[1587,1582,1610]],[[64967,64967],"mapped",[1606,1580,1610]],[[64968,64975],"disallowed"],[[64976,65007],"disallowed"],[[65008,65008],"mapped",[1589,1604,1746]],[[65009,65009],"mapped",[1602,1604,1746]],[[65010,65010],"mapped",[1575,1604,1604,1607]],[[65011,65011],"mapped",[1575,1603,1576,1585]],[[65012,65012],"mapped",[1605,1581,1605,1583]],[[65013,65013],"mapped",[1589,1604,1593,1605]],[[65014,65014],"mapped",[1585,1587,1608,1604]],[[65015,65015],"mapped",[1593,1604,1610,1607]],[[65016,65016],"mapped",[1608,1587,1604,1605]],[[65017,65017],"mapped",[1589,1604,1609]],[[65018,65018],"disallowed_STD3_mapped",[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605]],[[65019,65019],"disallowed_STD3_mapped",[1580,1604,32,1580,1604,1575,1604,1607]],[[65020,65020],"mapped",[1585,1740,1575,1604]],[[65021,65021],"valid",[],"NV8"],[[65022,65023],"disallowed"],[[65024,65039],"ignored"],[[65040,65040],"disallowed_STD3_mapped",[44]],[[65041,65041],"mapped",[12289]],[[65042,65042],"disallowed"],[[65043,65043],"disallowed_STD3_mapped",[58]],[[65044,65044],"disallowed_STD3_mapped",[59]],[[65045,65045],"disallowed_STD3_mapped",[33]],[[65046,65046],"disallowed_STD3_mapped",[63]],[[65047,65047],"mapped",[12310]],[[65048,65048],"mapped",[12311]],[[65049,65049],"disallowed"],[[65050,65055],"disallowed"],[[65056,65059],"valid"],[[65060,65062],"valid"],[[65063,65069],"valid"],[[65070,65071],"valid"],[[65072,65072],"disallowed"],[[65073,65073],"mapped",[8212]],[[65074,65074],"mapped",[8211]],[[65075,65076],"disallowed_STD3_mapped",[95]],[[65077,65077],"disallowed_STD3_mapped",[40]],[[65078,65078],"disallowed_STD3_mapped",[41]],[[65079,65079],"disallowed_STD3_mapped",[123]],[[65080,65080],"disallowed_STD3_mapped",[125]],[[65081,65081],"mapped",[12308]],[[65082,65082],"mapped",[12309]],[[65083,65083],"mapped",[12304]],[[65084,65084],"mapped",[12305]],[[65085,65085],"mapped",[12298]],[[65086,65086],"mapped",[12299]],[[65087,65087],"mapped",[12296]],[[65088,65088],"mapped",[12297]],[[65089,65089],"mapped",[12300]],[[65090,65090],"mapped",[12301]],[[65091,65091],"mapped",[12302]],[[65092,65092],"mapped",[12303]],[[65093,65094],"valid",[],"NV8"],[[65095,65095],"disallowed_STD3_mapped",[91]],[[65096,65096],"disallowed_STD3_mapped",[93]],[[65097,65100],"disallowed_STD3_mapped",[32,773]],[[65101,65103],"disallowed_STD3_mapped",[95]],[[65104,65104],"disallowed_STD3_mapped",[44]],[[65105,65105],"mapped",[12289]],[[65106,65106],"disallowed"],[[65107,65107],"disallowed"],[[65108,65108],"disallowed_STD3_mapped",[59]],[[65109,65109],"disallowed_STD3_mapped",[58]],[[65110,65110],"disallowed_STD3_mapped",[63]],[[65111,65111],"disallowed_STD3_mapped",[33]],[[65112,65112],"mapped",[8212]],[[65113,65113],"disallowed_STD3_mapped",[40]],[[65114,65114],"disallowed_STD3_mapped",[41]],[[65115,65115],"disallowed_STD3_mapped",[123]],[[65116,65116],"disallowed_STD3_mapped",[125]],[[65117,65117],"mapped",[12308]],[[65118,65118],"mapped",[12309]],[[65119,65119],"disallowed_STD3_mapped",[35]],[[65120,65120],"disallowed_STD3_mapped",[38]],[[65121,65121],"disallowed_STD3_mapped",[42]],[[65122,65122],"disallowed_STD3_mapped",[43]],[[65123,65123],"mapped",[45]],[[65124,65124],"disallowed_STD3_mapped",[60]],[[65125,65125],"disallowed_STD3_mapped",[62]],[[65126,65126],"disallowed_STD3_mapped",[61]],[[65127,65127],"disallowed"],[[65128,65128],"disallowed_STD3_mapped",[92]],[[65129,65129],"disallowed_STD3_mapped",[36]],[[65130,65130],"disallowed_STD3_mapped",[37]],[[65131,65131],"disallowed_STD3_mapped",[64]],[[65132,65135],"disallowed"],[[65136,65136],"disallowed_STD3_mapped",[32,1611]],[[65137,65137],"mapped",[1600,1611]],[[65138,65138],"disallowed_STD3_mapped",[32,1612]],[[65139,65139],"valid"],[[65140,65140],"disallowed_STD3_mapped",[32,1613]],[[65141,65141],"disallowed"],[[65142,65142],"disallowed_STD3_mapped",[32,1614]],[[65143,65143],"mapped",[1600,1614]],[[65144,65144],"disallowed_STD3_mapped",[32,1615]],[[65145,65145],"mapped",[1600,1615]],[[65146,65146],"disallowed_STD3_mapped",[32,1616]],[[65147,65147],"mapped",[1600,1616]],[[65148,65148],"disallowed_STD3_mapped",[32,1617]],[[65149,65149],"mapped",[1600,1617]],[[65150,65150],"disallowed_STD3_mapped",[32,1618]],[[65151,65151],"mapped",[1600,1618]],[[65152,65152],"mapped",[1569]],[[65153,65154],"mapped",[1570]],[[65155,65156],"mapped",[1571]],[[65157,65158],"mapped",[1572]],[[65159,65160],"mapped",[1573]],[[65161,65164],"mapped",[1574]],[[65165,65166],"mapped",[1575]],[[65167,65170],"mapped",[1576]],[[65171,65172],"mapped",[1577]],[[65173,65176],"mapped",[1578]],[[65177,65180],"mapped",[1579]],[[65181,65184],"mapped",[1580]],[[65185,65188],"mapped",[1581]],[[65189,65192],"mapped",[1582]],[[65193,65194],"mapped",[1583]],[[65195,65196],"mapped",[1584]],[[65197,65198],"mapped",[1585]],[[65199,65200],"mapped",[1586]],[[65201,65204],"mapped",[1587]],[[65205,65208],"mapped",[1588]],[[65209,65212],"mapped",[1589]],[[65213,65216],"mapped",[1590]],[[65217,65220],"mapped",[1591]],[[65221,65224],"mapped",[1592]],[[65225,65228],"mapped",[1593]],[[65229,65232],"mapped",[1594]],[[65233,65236],"mapped",[1601]],[[65237,65240],"mapped",[1602]],[[65241,65244],"mapped",[1603]],[[65245,65248],"mapped",[1604]],[[65249,65252],"mapped",[1605]],[[65253,65256],"mapped",[1606]],[[65257,65260],"mapped",[1607]],[[65261,65262],"mapped",[1608]],[[65263,65264],"mapped",[1609]],[[65265,65268],"mapped",[1610]],[[65269,65270],"mapped",[1604,1570]],[[65271,65272],"mapped",[1604,1571]],[[65273,65274],"mapped",[1604,1573]],[[65275,65276],"mapped",[1604,1575]],[[65277,65278],"disallowed"],[[65279,65279],"ignored"],[[65280,65280],"disallowed"],[[65281,65281],"disallowed_STD3_mapped",[33]],[[65282,65282],"disallowed_STD3_mapped",[34]],[[65283,65283],"disallowed_STD3_mapped",[35]],[[65284,65284],"disallowed_STD3_mapped",[36]],[[65285,65285],"disallowed_STD3_mapped",[37]],[[65286,65286],"disallowed_STD3_mapped",[38]],[[65287,65287],"disallowed_STD3_mapped",[39]],[[65288,65288],"disallowed_STD3_mapped",[40]],[[65289,65289],"disallowed_STD3_mapped",[41]],[[65290,65290],"disallowed_STD3_mapped",[42]],[[65291,65291],"disallowed_STD3_mapped",[43]],[[65292,65292],"disallowed_STD3_mapped",[44]],[[65293,65293],"mapped",[45]],[[65294,65294],"mapped",[46]],[[65295,65295],"disallowed_STD3_mapped",[47]],[[65296,65296],"mapped",[48]],[[65297,65297],"mapped",[49]],[[65298,65298],"mapped",[50]],[[65299,65299],"mapped",[51]],[[65300,65300],"mapped",[52]],[[65301,65301],"mapped",[53]],[[65302,65302],"mapped",[54]],[[65303,65303],"mapped",[55]],[[65304,65304],"mapped",[56]],[[65305,65305],"mapped",[57]],[[65306,65306],"disallowed_STD3_mapped",[58]],[[65307,65307],"disallowed_STD3_mapped",[59]],[[65308,65308],"disallowed_STD3_mapped",[60]],[[65309,65309],"disallowed_STD3_mapped",[61]],[[65310,65310],"disallowed_STD3_mapped",[62]],[[65311,65311],"disallowed_STD3_mapped",[63]],[[65312,65312],"disallowed_STD3_mapped",[64]],[[65313,65313],"mapped",[97]],[[65314,65314],"mapped",[98]],[[65315,65315],"mapped",[99]],[[65316,65316],"mapped",[100]],[[65317,65317],"mapped",[101]],[[65318,65318],"mapped",[102]],[[65319,65319],"mapped",[103]],[[65320,65320],"mapped",[104]],[[65321,65321],"mapped",[105]],[[65322,65322],"mapped",[106]],[[65323,65323],"mapped",[107]],[[65324,65324],"mapped",[108]],[[65325,65325],"mapped",[109]],[[65326,65326],"mapped",[110]],[[65327,65327],"mapped",[111]],[[65328,65328],"mapped",[112]],[[65329,65329],"mapped",[113]],[[65330,65330],"mapped",[114]],[[65331,65331],"mapped",[115]],[[65332,65332],"mapped",[116]],[[65333,65333],"mapped",[117]],[[65334,65334],"mapped",[118]],[[65335,65335],"mapped",[119]],[[65336,65336],"mapped",[120]],[[65337,65337],"mapped",[121]],[[65338,65338],"mapped",[122]],[[65339,65339],"disallowed_STD3_mapped",[91]],[[65340,65340],"disallowed_STD3_mapped",[92]],[[65341,65341],"disallowed_STD3_mapped",[93]],[[65342,65342],"disallowed_STD3_mapped",[94]],[[65343,65343],"disallowed_STD3_mapped",[95]],[[65344,65344],"disallowed_STD3_mapped",[96]],[[65345,65345],"mapped",[97]],[[65346,65346],"mapped",[98]],[[65347,65347],"mapped",[99]],[[65348,65348],"mapped",[100]],[[65349,65349],"mapped",[101]],[[65350,65350],"mapped",[102]],[[65351,65351],"mapped",[103]],[[65352,65352],"mapped",[104]],[[65353,65353],"mapped",[105]],[[65354,65354],"mapped",[106]],[[65355,65355],"mapped",[107]],[[65356,65356],"mapped",[108]],[[65357,65357],"mapped",[109]],[[65358,65358],"mapped",[110]],[[65359,65359],"mapped",[111]],[[65360,65360],"mapped",[112]],[[65361,65361],"mapped",[113]],[[65362,65362],"mapped",[114]],[[65363,65363],"mapped",[115]],[[65364,65364],"mapped",[116]],[[65365,65365],"mapped",[117]],[[65366,65366],"mapped",[118]],[[65367,65367],"mapped",[119]],[[65368,65368],"mapped",[120]],[[65369,65369],"mapped",[121]],[[65370,65370],"mapped",[122]],[[65371,65371],"disallowed_STD3_mapped",[123]],[[65372,65372],"disallowed_STD3_mapped",[124]],[[65373,65373],"disallowed_STD3_mapped",[125]],[[65374,65374],"disallowed_STD3_mapped",[126]],[[65375,65375],"mapped",[10629]],[[65376,65376],"mapped",[10630]],[[65377,65377],"mapped",[46]],[[65378,65378],"mapped",[12300]],[[65379,65379],"mapped",[12301]],[[65380,65380],"mapped",[12289]],[[65381,65381],"mapped",[12539]],[[65382,65382],"mapped",[12530]],[[65383,65383],"mapped",[12449]],[[65384,65384],"mapped",[12451]],[[65385,65385],"mapped",[12453]],[[65386,65386],"mapped",[12455]],[[65387,65387],"mapped",[12457]],[[65388,65388],"mapped",[12515]],[[65389,65389],"mapped",[12517]],[[65390,65390],"mapped",[12519]],[[65391,65391],"mapped",[12483]],[[65392,65392],"mapped",[12540]],[[65393,65393],"mapped",[12450]],[[65394,65394],"mapped",[12452]],[[65395,65395],"mapped",[12454]],[[65396,65396],"mapped",[12456]],[[65397,65397],"mapped",[12458]],[[65398,65398],"mapped",[12459]],[[65399,65399],"mapped",[12461]],[[65400,65400],"mapped",[12463]],[[65401,65401],"mapped",[12465]],[[65402,65402],"mapped",[12467]],[[65403,65403],"mapped",[12469]],[[65404,65404],"mapped",[12471]],[[65405,65405],"mapped",[12473]],[[65406,65406],"mapped",[12475]],[[65407,65407],"mapped",[12477]],[[65408,65408],"mapped",[12479]],[[65409,65409],"mapped",[12481]],[[65410,65410],"mapped",[12484]],[[65411,65411],"mapped",[12486]],[[65412,65412],"mapped",[12488]],[[65413,65413],"mapped",[12490]],[[65414,65414],"mapped",[12491]],[[65415,65415],"mapped",[12492]],[[65416,65416],"mapped",[12493]],[[65417,65417],"mapped",[12494]],[[65418,65418],"mapped",[12495]],[[65419,65419],"mapped",[12498]],[[65420,65420],"mapped",[12501]],[[65421,65421],"mapped",[12504]],[[65422,65422],"mapped",[12507]],[[65423,65423],"mapped",[12510]],[[65424,65424],"mapped",[12511]],[[65425,65425],"mapped",[12512]],[[65426,65426],"mapped",[12513]],[[65427,65427],"mapped",[12514]],[[65428,65428],"mapped",[12516]],[[65429,65429],"mapped",[12518]],[[65430,65430],"mapped",[12520]],[[65431,65431],"mapped",[12521]],[[65432,65432],"mapped",[12522]],[[65433,65433],"mapped",[12523]],[[65434,65434],"mapped",[12524]],[[65435,65435],"mapped",[12525]],[[65436,65436],"mapped",[12527]],[[65437,65437],"mapped",[12531]],[[65438,65438],"mapped",[12441]],[[65439,65439],"mapped",[12442]],[[65440,65440],"disallowed"],[[65441,65441],"mapped",[4352]],[[65442,65442],"mapped",[4353]],[[65443,65443],"mapped",[4522]],[[65444,65444],"mapped",[4354]],[[65445,65445],"mapped",[4524]],[[65446,65446],"mapped",[4525]],[[65447,65447],"mapped",[4355]],[[65448,65448],"mapped",[4356]],[[65449,65449],"mapped",[4357]],[[65450,65450],"mapped",[4528]],[[65451,65451],"mapped",[4529]],[[65452,65452],"mapped",[4530]],[[65453,65453],"mapped",[4531]],[[65454,65454],"mapped",[4532]],[[65455,65455],"mapped",[4533]],[[65456,65456],"mapped",[4378]],[[65457,65457],"mapped",[4358]],[[65458,65458],"mapped",[4359]],[[65459,65459],"mapped",[4360]],[[65460,65460],"mapped",[4385]],[[65461,65461],"mapped",[4361]],[[65462,65462],"mapped",[4362]],[[65463,65463],"mapped",[4363]],[[65464,65464],"mapped",[4364]],[[65465,65465],"mapped",[4365]],[[65466,65466],"mapped",[4366]],[[65467,65467],"mapped",[4367]],[[65468,65468],"mapped",[4368]],[[65469,65469],"mapped",[4369]],[[65470,65470],"mapped",[4370]],[[65471,65473],"disallowed"],[[65474,65474],"mapped",[4449]],[[65475,65475],"mapped",[4450]],[[65476,65476],"mapped",[4451]],[[65477,65477],"mapped",[4452]],[[65478,65478],"mapped",[4453]],[[65479,65479],"mapped",[4454]],[[65480,65481],"disallowed"],[[65482,65482],"mapped",[4455]],[[65483,65483],"mapped",[4456]],[[65484,65484],"mapped",[4457]],[[65485,65485],"mapped",[4458]],[[65486,65486],"mapped",[4459]],[[65487,65487],"mapped",[4460]],[[65488,65489],"disallowed"],[[65490,65490],"mapped",[4461]],[[65491,65491],"mapped",[4462]],[[65492,65492],"mapped",[4463]],[[65493,65493],"mapped",[4464]],[[65494,65494],"mapped",[4465]],[[65495,65495],"mapped",[4466]],[[65496,65497],"disallowed"],[[65498,65498],"mapped",[4467]],[[65499,65499],"mapped",[4468]],[[65500,65500],"mapped",[4469]],[[65501,65503],"disallowed"],[[65504,65504],"mapped",[162]],[[65505,65505],"mapped",[163]],[[65506,65506],"mapped",[172]],[[65507,65507],"disallowed_STD3_mapped",[32,772]],[[65508,65508],"mapped",[166]],[[65509,65509],"mapped",[165]],[[65510,65510],"mapped",[8361]],[[65511,65511],"disallowed"],[[65512,65512],"mapped",[9474]],[[65513,65513],"mapped",[8592]],[[65514,65514],"mapped",[8593]],[[65515,65515],"mapped",[8594]],[[65516,65516],"mapped",[8595]],[[65517,65517],"mapped",[9632]],[[65518,65518],"mapped",[9675]],[[65519,65528],"disallowed"],[[65529,65531],"disallowed"],[[65532,65532],"disallowed"],[[65533,65533],"disallowed"],[[65534,65535],"disallowed"],[[65536,65547],"valid"],[[65548,65548],"disallowed"],[[65549,65574],"valid"],[[65575,65575],"disallowed"],[[65576,65594],"valid"],[[65595,65595],"disallowed"],[[65596,65597],"valid"],[[65598,65598],"disallowed"],[[65599,65613],"valid"],[[65614,65615],"disallowed"],[[65616,65629],"valid"],[[65630,65663],"disallowed"],[[65664,65786],"valid"],[[65787,65791],"disallowed"],[[65792,65794],"valid",[],"NV8"],[[65795,65798],"disallowed"],[[65799,65843],"valid",[],"NV8"],[[65844,65846],"disallowed"],[[65847,65855],"valid",[],"NV8"],[[65856,65930],"valid",[],"NV8"],[[65931,65932],"valid",[],"NV8"],[[65933,65935],"disallowed"],[[65936,65947],"valid",[],"NV8"],[[65948,65951],"disallowed"],[[65952,65952],"valid",[],"NV8"],[[65953,65999],"disallowed"],[[66e3,66044],"valid",[],"NV8"],[[66045,66045],"valid"],[[66046,66175],"disallowed"],[[66176,66204],"valid"],[[66205,66207],"disallowed"],[[66208,66256],"valid"],[[66257,66271],"disallowed"],[[66272,66272],"valid"],[[66273,66299],"valid",[],"NV8"],[[66300,66303],"disallowed"],[[66304,66334],"valid"],[[66335,66335],"valid"],[[66336,66339],"valid",[],"NV8"],[[66340,66351],"disallowed"],[[66352,66368],"valid"],[[66369,66369],"valid",[],"NV8"],[[66370,66377],"valid"],[[66378,66378],"valid",[],"NV8"],[[66379,66383],"disallowed"],[[66384,66426],"valid"],[[66427,66431],"disallowed"],[[66432,66461],"valid"],[[66462,66462],"disallowed"],[[66463,66463],"valid",[],"NV8"],[[66464,66499],"valid"],[[66500,66503],"disallowed"],[[66504,66511],"valid"],[[66512,66517],"valid",[],"NV8"],[[66518,66559],"disallowed"],[[66560,66560],"mapped",[66600]],[[66561,66561],"mapped",[66601]],[[66562,66562],"mapped",[66602]],[[66563,66563],"mapped",[66603]],[[66564,66564],"mapped",[66604]],[[66565,66565],"mapped",[66605]],[[66566,66566],"mapped",[66606]],[[66567,66567],"mapped",[66607]],[[66568,66568],"mapped",[66608]],[[66569,66569],"mapped",[66609]],[[66570,66570],"mapped",[66610]],[[66571,66571],"mapped",[66611]],[[66572,66572],"mapped",[66612]],[[66573,66573],"mapped",[66613]],[[66574,66574],"mapped",[66614]],[[66575,66575],"mapped",[66615]],[[66576,66576],"mapped",[66616]],[[66577,66577],"mapped",[66617]],[[66578,66578],"mapped",[66618]],[[66579,66579],"mapped",[66619]],[[66580,66580],"mapped",[66620]],[[66581,66581],"mapped",[66621]],[[66582,66582],"mapped",[66622]],[[66583,66583],"mapped",[66623]],[[66584,66584],"mapped",[66624]],[[66585,66585],"mapped",[66625]],[[66586,66586],"mapped",[66626]],[[66587,66587],"mapped",[66627]],[[66588,66588],"mapped",[66628]],[[66589,66589],"mapped",[66629]],[[66590,66590],"mapped",[66630]],[[66591,66591],"mapped",[66631]],[[66592,66592],"mapped",[66632]],[[66593,66593],"mapped",[66633]],[[66594,66594],"mapped",[66634]],[[66595,66595],"mapped",[66635]],[[66596,66596],"mapped",[66636]],[[66597,66597],"mapped",[66637]],[[66598,66598],"mapped",[66638]],[[66599,66599],"mapped",[66639]],[[66600,66637],"valid"],[[66638,66717],"valid"],[[66718,66719],"disallowed"],[[66720,66729],"valid"],[[66730,66815],"disallowed"],[[66816,66855],"valid"],[[66856,66863],"disallowed"],[[66864,66915],"valid"],[[66916,66926],"disallowed"],[[66927,66927],"valid",[],"NV8"],[[66928,67071],"disallowed"],[[67072,67382],"valid"],[[67383,67391],"disallowed"],[[67392,67413],"valid"],[[67414,67423],"disallowed"],[[67424,67431],"valid"],[[67432,67583],"disallowed"],[[67584,67589],"valid"],[[67590,67591],"disallowed"],[[67592,67592],"valid"],[[67593,67593],"disallowed"],[[67594,67637],"valid"],[[67638,67638],"disallowed"],[[67639,67640],"valid"],[[67641,67643],"disallowed"],[[67644,67644],"valid"],[[67645,67646],"disallowed"],[[67647,67647],"valid"],[[67648,67669],"valid"],[[67670,67670],"disallowed"],[[67671,67679],"valid",[],"NV8"],[[67680,67702],"valid"],[[67703,67711],"valid",[],"NV8"],[[67712,67742],"valid"],[[67743,67750],"disallowed"],[[67751,67759],"valid",[],"NV8"],[[67760,67807],"disallowed"],[[67808,67826],"valid"],[[67827,67827],"disallowed"],[[67828,67829],"valid"],[[67830,67834],"disallowed"],[[67835,67839],"valid",[],"NV8"],[[67840,67861],"valid"],[[67862,67865],"valid",[],"NV8"],[[67866,67867],"valid",[],"NV8"],[[67868,67870],"disallowed"],[[67871,67871],"valid",[],"NV8"],[[67872,67897],"valid"],[[67898,67902],"disallowed"],[[67903,67903],"valid",[],"NV8"],[[67904,67967],"disallowed"],[[67968,68023],"valid"],[[68024,68027],"disallowed"],[[68028,68029],"valid",[],"NV8"],[[68030,68031],"valid"],[[68032,68047],"valid",[],"NV8"],[[68048,68049],"disallowed"],[[68050,68095],"valid",[],"NV8"],[[68096,68099],"valid"],[[68100,68100],"disallowed"],[[68101,68102],"valid"],[[68103,68107],"disallowed"],[[68108,68115],"valid"],[[68116,68116],"disallowed"],[[68117,68119],"valid"],[[68120,68120],"disallowed"],[[68121,68147],"valid"],[[68148,68151],"disallowed"],[[68152,68154],"valid"],[[68155,68158],"disallowed"],[[68159,68159],"valid"],[[68160,68167],"valid",[],"NV8"],[[68168,68175],"disallowed"],[[68176,68184],"valid",[],"NV8"],[[68185,68191],"disallowed"],[[68192,68220],"valid"],[[68221,68223],"valid",[],"NV8"],[[68224,68252],"valid"],[[68253,68255],"valid",[],"NV8"],[[68256,68287],"disallowed"],[[68288,68295],"valid"],[[68296,68296],"valid",[],"NV8"],[[68297,68326],"valid"],[[68327,68330],"disallowed"],[[68331,68342],"valid",[],"NV8"],[[68343,68351],"disallowed"],[[68352,68405],"valid"],[[68406,68408],"disallowed"],[[68409,68415],"valid",[],"NV8"],[[68416,68437],"valid"],[[68438,68439],"disallowed"],[[68440,68447],"valid",[],"NV8"],[[68448,68466],"valid"],[[68467,68471],"disallowed"],[[68472,68479],"valid",[],"NV8"],[[68480,68497],"valid"],[[68498,68504],"disallowed"],[[68505,68508],"valid",[],"NV8"],[[68509,68520],"disallowed"],[[68521,68527],"valid",[],"NV8"],[[68528,68607],"disallowed"],[[68608,68680],"valid"],[[68681,68735],"disallowed"],[[68736,68736],"mapped",[68800]],[[68737,68737],"mapped",[68801]],[[68738,68738],"mapped",[68802]],[[68739,68739],"mapped",[68803]],[[68740,68740],"mapped",[68804]],[[68741,68741],"mapped",[68805]],[[68742,68742],"mapped",[68806]],[[68743,68743],"mapped",[68807]],[[68744,68744],"mapped",[68808]],[[68745,68745],"mapped",[68809]],[[68746,68746],"mapped",[68810]],[[68747,68747],"mapped",[68811]],[[68748,68748],"mapped",[68812]],[[68749,68749],"mapped",[68813]],[[68750,68750],"mapped",[68814]],[[68751,68751],"mapped",[68815]],[[68752,68752],"mapped",[68816]],[[68753,68753],"mapped",[68817]],[[68754,68754],"mapped",[68818]],[[68755,68755],"mapped",[68819]],[[68756,68756],"mapped",[68820]],[[68757,68757],"mapped",[68821]],[[68758,68758],"mapped",[68822]],[[68759,68759],"mapped",[68823]],[[68760,68760],"mapped",[68824]],[[68761,68761],"mapped",[68825]],[[68762,68762],"mapped",[68826]],[[68763,68763],"mapped",[68827]],[[68764,68764],"mapped",[68828]],[[68765,68765],"mapped",[68829]],[[68766,68766],"mapped",[68830]],[[68767,68767],"mapped",[68831]],[[68768,68768],"mapped",[68832]],[[68769,68769],"mapped",[68833]],[[68770,68770],"mapped",[68834]],[[68771,68771],"mapped",[68835]],[[68772,68772],"mapped",[68836]],[[68773,68773],"mapped",[68837]],[[68774,68774],"mapped",[68838]],[[68775,68775],"mapped",[68839]],[[68776,68776],"mapped",[68840]],[[68777,68777],"mapped",[68841]],[[68778,68778],"mapped",[68842]],[[68779,68779],"mapped",[68843]],[[68780,68780],"mapped",[68844]],[[68781,68781],"mapped",[68845]],[[68782,68782],"mapped",[68846]],[[68783,68783],"mapped",[68847]],[[68784,68784],"mapped",[68848]],[[68785,68785],"mapped",[68849]],[[68786,68786],"mapped",[68850]],[[68787,68799],"disallowed"],[[68800,68850],"valid"],[[68851,68857],"disallowed"],[[68858,68863],"valid",[],"NV8"],[[68864,69215],"disallowed"],[[69216,69246],"valid",[],"NV8"],[[69247,69631],"disallowed"],[[69632,69702],"valid"],[[69703,69709],"valid",[],"NV8"],[[69710,69713],"disallowed"],[[69714,69733],"valid",[],"NV8"],[[69734,69743],"valid"],[[69744,69758],"disallowed"],[[69759,69759],"valid"],[[69760,69818],"valid"],[[69819,69820],"valid",[],"NV8"],[[69821,69821],"disallowed"],[[69822,69825],"valid",[],"NV8"],[[69826,69839],"disallowed"],[[69840,69864],"valid"],[[69865,69871],"disallowed"],[[69872,69881],"valid"],[[69882,69887],"disallowed"],[[69888,69940],"valid"],[[69941,69941],"disallowed"],[[69942,69951],"valid"],[[69952,69955],"valid",[],"NV8"],[[69956,69967],"disallowed"],[[69968,70003],"valid"],[[70004,70005],"valid",[],"NV8"],[[70006,70006],"valid"],[[70007,70015],"disallowed"],[[70016,70084],"valid"],[[70085,70088],"valid",[],"NV8"],[[70089,70089],"valid",[],"NV8"],[[70090,70092],"valid"],[[70093,70093],"valid",[],"NV8"],[[70094,70095],"disallowed"],[[70096,70105],"valid"],[[70106,70106],"valid"],[[70107,70107],"valid",[],"NV8"],[[70108,70108],"valid"],[[70109,70111],"valid",[],"NV8"],[[70112,70112],"disallowed"],[[70113,70132],"valid",[],"NV8"],[[70133,70143],"disallowed"],[[70144,70161],"valid"],[[70162,70162],"disallowed"],[[70163,70199],"valid"],[[70200,70205],"valid",[],"NV8"],[[70206,70271],"disallowed"],[[70272,70278],"valid"],[[70279,70279],"disallowed"],[[70280,70280],"valid"],[[70281,70281],"disallowed"],[[70282,70285],"valid"],[[70286,70286],"disallowed"],[[70287,70301],"valid"],[[70302,70302],"disallowed"],[[70303,70312],"valid"],[[70313,70313],"valid",[],"NV8"],[[70314,70319],"disallowed"],[[70320,70378],"valid"],[[70379,70383],"disallowed"],[[70384,70393],"valid"],[[70394,70399],"disallowed"],[[70400,70400],"valid"],[[70401,70403],"valid"],[[70404,70404],"disallowed"],[[70405,70412],"valid"],[[70413,70414],"disallowed"],[[70415,70416],"valid"],[[70417,70418],"disallowed"],[[70419,70440],"valid"],[[70441,70441],"disallowed"],[[70442,70448],"valid"],[[70449,70449],"disallowed"],[[70450,70451],"valid"],[[70452,70452],"disallowed"],[[70453,70457],"valid"],[[70458,70459],"disallowed"],[[70460,70468],"valid"],[[70469,70470],"disallowed"],[[70471,70472],"valid"],[[70473,70474],"disallowed"],[[70475,70477],"valid"],[[70478,70479],"disallowed"],[[70480,70480],"valid"],[[70481,70486],"disallowed"],[[70487,70487],"valid"],[[70488,70492],"disallowed"],[[70493,70499],"valid"],[[70500,70501],"disallowed"],[[70502,70508],"valid"],[[70509,70511],"disallowed"],[[70512,70516],"valid"],[[70517,70783],"disallowed"],[[70784,70853],"valid"],[[70854,70854],"valid",[],"NV8"],[[70855,70855],"valid"],[[70856,70863],"disallowed"],[[70864,70873],"valid"],[[70874,71039],"disallowed"],[[71040,71093],"valid"],[[71094,71095],"disallowed"],[[71096,71104],"valid"],[[71105,71113],"valid",[],"NV8"],[[71114,71127],"valid",[],"NV8"],[[71128,71133],"valid"],[[71134,71167],"disallowed"],[[71168,71232],"valid"],[[71233,71235],"valid",[],"NV8"],[[71236,71236],"valid"],[[71237,71247],"disallowed"],[[71248,71257],"valid"],[[71258,71295],"disallowed"],[[71296,71351],"valid"],[[71352,71359],"disallowed"],[[71360,71369],"valid"],[[71370,71423],"disallowed"],[[71424,71449],"valid"],[[71450,71452],"disallowed"],[[71453,71467],"valid"],[[71468,71471],"disallowed"],[[71472,71481],"valid"],[[71482,71487],"valid",[],"NV8"],[[71488,71839],"disallowed"],[[71840,71840],"mapped",[71872]],[[71841,71841],"mapped",[71873]],[[71842,71842],"mapped",[71874]],[[71843,71843],"mapped",[71875]],[[71844,71844],"mapped",[71876]],[[71845,71845],"mapped",[71877]],[[71846,71846],"mapped",[71878]],[[71847,71847],"mapped",[71879]],[[71848,71848],"mapped",[71880]],[[71849,71849],"mapped",[71881]],[[71850,71850],"mapped",[71882]],[[71851,71851],"mapped",[71883]],[[71852,71852],"mapped",[71884]],[[71853,71853],"mapped",[71885]],[[71854,71854],"mapped",[71886]],[[71855,71855],"mapped",[71887]],[[71856,71856],"mapped",[71888]],[[71857,71857],"mapped",[71889]],[[71858,71858],"mapped",[71890]],[[71859,71859],"mapped",[71891]],[[71860,71860],"mapped",[71892]],[[71861,71861],"mapped",[71893]],[[71862,71862],"mapped",[71894]],[[71863,71863],"mapped",[71895]],[[71864,71864],"mapped",[71896]],[[71865,71865],"mapped",[71897]],[[71866,71866],"mapped",[71898]],[[71867,71867],"mapped",[71899]],[[71868,71868],"mapped",[71900]],[[71869,71869],"mapped",[71901]],[[71870,71870],"mapped",[71902]],[[71871,71871],"mapped",[71903]],[[71872,71913],"valid"],[[71914,71922],"valid",[],"NV8"],[[71923,71934],"disallowed"],[[71935,71935],"valid"],[[71936,72383],"disallowed"],[[72384,72440],"valid"],[[72441,73727],"disallowed"],[[73728,74606],"valid"],[[74607,74648],"valid"],[[74649,74649],"valid"],[[74650,74751],"disallowed"],[[74752,74850],"valid",[],"NV8"],[[74851,74862],"valid",[],"NV8"],[[74863,74863],"disallowed"],[[74864,74867],"valid",[],"NV8"],[[74868,74868],"valid",[],"NV8"],[[74869,74879],"disallowed"],[[74880,75075],"valid"],[[75076,77823],"disallowed"],[[77824,78894],"valid"],[[78895,82943],"disallowed"],[[82944,83526],"valid"],[[83527,92159],"disallowed"],[[92160,92728],"valid"],[[92729,92735],"disallowed"],[[92736,92766],"valid"],[[92767,92767],"disallowed"],[[92768,92777],"valid"],[[92778,92781],"disallowed"],[[92782,92783],"valid",[],"NV8"],[[92784,92879],"disallowed"],[[92880,92909],"valid"],[[92910,92911],"disallowed"],[[92912,92916],"valid"],[[92917,92917],"valid",[],"NV8"],[[92918,92927],"disallowed"],[[92928,92982],"valid"],[[92983,92991],"valid",[],"NV8"],[[92992,92995],"valid"],[[92996,92997],"valid",[],"NV8"],[[92998,93007],"disallowed"],[[93008,93017],"valid"],[[93018,93018],"disallowed"],[[93019,93025],"valid",[],"NV8"],[[93026,93026],"disallowed"],[[93027,93047],"valid"],[[93048,93052],"disallowed"],[[93053,93071],"valid"],[[93072,93951],"disallowed"],[[93952,94020],"valid"],[[94021,94031],"disallowed"],[[94032,94078],"valid"],[[94079,94094],"disallowed"],[[94095,94111],"valid"],[[94112,110591],"disallowed"],[[110592,110593],"valid"],[[110594,113663],"disallowed"],[[113664,113770],"valid"],[[113771,113775],"disallowed"],[[113776,113788],"valid"],[[113789,113791],"disallowed"],[[113792,113800],"valid"],[[113801,113807],"disallowed"],[[113808,113817],"valid"],[[113818,113819],"disallowed"],[[113820,113820],"valid",[],"NV8"],[[113821,113822],"valid"],[[113823,113823],"valid",[],"NV8"],[[113824,113827],"ignored"],[[113828,118783],"disallowed"],[[118784,119029],"valid",[],"NV8"],[[119030,119039],"disallowed"],[[119040,119078],"valid",[],"NV8"],[[119079,119080],"disallowed"],[[119081,119081],"valid",[],"NV8"],[[119082,119133],"valid",[],"NV8"],[[119134,119134],"mapped",[119127,119141]],[[119135,119135],"mapped",[119128,119141]],[[119136,119136],"mapped",[119128,119141,119150]],[[119137,119137],"mapped",[119128,119141,119151]],[[119138,119138],"mapped",[119128,119141,119152]],[[119139,119139],"mapped",[119128,119141,119153]],[[119140,119140],"mapped",[119128,119141,119154]],[[119141,119154],"valid",[],"NV8"],[[119155,119162],"disallowed"],[[119163,119226],"valid",[],"NV8"],[[119227,119227],"mapped",[119225,119141]],[[119228,119228],"mapped",[119226,119141]],[[119229,119229],"mapped",[119225,119141,119150]],[[119230,119230],"mapped",[119226,119141,119150]],[[119231,119231],"mapped",[119225,119141,119151]],[[119232,119232],"mapped",[119226,119141,119151]],[[119233,119261],"valid",[],"NV8"],[[119262,119272],"valid",[],"NV8"],[[119273,119295],"disallowed"],[[119296,119365],"valid",[],"NV8"],[[119366,119551],"disallowed"],[[119552,119638],"valid",[],"NV8"],[[119639,119647],"disallowed"],[[119648,119665],"valid",[],"NV8"],[[119666,119807],"disallowed"],[[119808,119808],"mapped",[97]],[[119809,119809],"mapped",[98]],[[119810,119810],"mapped",[99]],[[119811,119811],"mapped",[100]],[[119812,119812],"mapped",[101]],[[119813,119813],"mapped",[102]],[[119814,119814],"mapped",[103]],[[119815,119815],"mapped",[104]],[[119816,119816],"mapped",[105]],[[119817,119817],"mapped",[106]],[[119818,119818],"mapped",[107]],[[119819,119819],"mapped",[108]],[[119820,119820],"mapped",[109]],[[119821,119821],"mapped",[110]],[[119822,119822],"mapped",[111]],[[119823,119823],"mapped",[112]],[[119824,119824],"mapped",[113]],[[119825,119825],"mapped",[114]],[[119826,119826],"mapped",[115]],[[119827,119827],"mapped",[116]],[[119828,119828],"mapped",[117]],[[119829,119829],"mapped",[118]],[[119830,119830],"mapped",[119]],[[119831,119831],"mapped",[120]],[[119832,119832],"mapped",[121]],[[119833,119833],"mapped",[122]],[[119834,119834],"mapped",[97]],[[119835,119835],"mapped",[98]],[[119836,119836],"mapped",[99]],[[119837,119837],"mapped",[100]],[[119838,119838],"mapped",[101]],[[119839,119839],"mapped",[102]],[[119840,119840],"mapped",[103]],[[119841,119841],"mapped",[104]],[[119842,119842],"mapped",[105]],[[119843,119843],"mapped",[106]],[[119844,119844],"mapped",[107]],[[119845,119845],"mapped",[108]],[[119846,119846],"mapped",[109]],[[119847,119847],"mapped",[110]],[[119848,119848],"mapped",[111]],[[119849,119849],"mapped",[112]],[[119850,119850],"mapped",[113]],[[119851,119851],"mapped",[114]],[[119852,119852],"mapped",[115]],[[119853,119853],"mapped",[116]],[[119854,119854],"mapped",[117]],[[119855,119855],"mapped",[118]],[[119856,119856],"mapped",[119]],[[119857,119857],"mapped",[120]],[[119858,119858],"mapped",[121]],[[119859,119859],"mapped",[122]],[[119860,119860],"mapped",[97]],[[119861,119861],"mapped",[98]],[[119862,119862],"mapped",[99]],[[119863,119863],"mapped",[100]],[[119864,119864],"mapped",[101]],[[119865,119865],"mapped",[102]],[[119866,119866],"mapped",[103]],[[119867,119867],"mapped",[104]],[[119868,119868],"mapped",[105]],[[119869,119869],"mapped",[106]],[[119870,119870],"mapped",[107]],[[119871,119871],"mapped",[108]],[[119872,119872],"mapped",[109]],[[119873,119873],"mapped",[110]],[[119874,119874],"mapped",[111]],[[119875,119875],"mapped",[112]],[[119876,119876],"mapped",[113]],[[119877,119877],"mapped",[114]],[[119878,119878],"mapped",[115]],[[119879,119879],"mapped",[116]],[[119880,119880],"mapped",[117]],[[119881,119881],"mapped",[118]],[[119882,119882],"mapped",[119]],[[119883,119883],"mapped",[120]],[[119884,119884],"mapped",[121]],[[119885,119885],"mapped",[122]],[[119886,119886],"mapped",[97]],[[119887,119887],"mapped",[98]],[[119888,119888],"mapped",[99]],[[119889,119889],"mapped",[100]],[[119890,119890],"mapped",[101]],[[119891,119891],"mapped",[102]],[[119892,119892],"mapped",[103]],[[119893,119893],"disallowed"],[[119894,119894],"mapped",[105]],[[119895,119895],"mapped",[106]],[[119896,119896],"mapped",[107]],[[119897,119897],"mapped",[108]],[[119898,119898],"mapped",[109]],[[119899,119899],"mapped",[110]],[[119900,119900],"mapped",[111]],[[119901,119901],"mapped",[112]],[[119902,119902],"mapped",[113]],[[119903,119903],"mapped",[114]],[[119904,119904],"mapped",[115]],[[119905,119905],"mapped",[116]],[[119906,119906],"mapped",[117]],[[119907,119907],"mapped",[118]],[[119908,119908],"mapped",[119]],[[119909,119909],"mapped",[120]],[[119910,119910],"mapped",[121]],[[119911,119911],"mapped",[122]],[[119912,119912],"mapped",[97]],[[119913,119913],"mapped",[98]],[[119914,119914],"mapped",[99]],[[119915,119915],"mapped",[100]],[[119916,119916],"mapped",[101]],[[119917,119917],"mapped",[102]],[[119918,119918],"mapped",[103]],[[119919,119919],"mapped",[104]],[[119920,119920],"mapped",[105]],[[119921,119921],"mapped",[106]],[[119922,119922],"mapped",[107]],[[119923,119923],"mapped",[108]],[[119924,119924],"mapped",[109]],[[119925,119925],"mapped",[110]],[[119926,119926],"mapped",[111]],[[119927,119927],"mapped",[112]],[[119928,119928],"mapped",[113]],[[119929,119929],"mapped",[114]],[[119930,119930],"mapped",[115]],[[119931,119931],"mapped",[116]],[[119932,119932],"mapped",[117]],[[119933,119933],"mapped",[118]],[[119934,119934],"mapped",[119]],[[119935,119935],"mapped",[120]],[[119936,119936],"mapped",[121]],[[119937,119937],"mapped",[122]],[[119938,119938],"mapped",[97]],[[119939,119939],"mapped",[98]],[[119940,119940],"mapped",[99]],[[119941,119941],"mapped",[100]],[[119942,119942],"mapped",[101]],[[119943,119943],"mapped",[102]],[[119944,119944],"mapped",[103]],[[119945,119945],"mapped",[104]],[[119946,119946],"mapped",[105]],[[119947,119947],"mapped",[106]],[[119948,119948],"mapped",[107]],[[119949,119949],"mapped",[108]],[[119950,119950],"mapped",[109]],[[119951,119951],"mapped",[110]],[[119952,119952],"mapped",[111]],[[119953,119953],"mapped",[112]],[[119954,119954],"mapped",[113]],[[119955,119955],"mapped",[114]],[[119956,119956],"mapped",[115]],[[119957,119957],"mapped",[116]],[[119958,119958],"mapped",[117]],[[119959,119959],"mapped",[118]],[[119960,119960],"mapped",[119]],[[119961,119961],"mapped",[120]],[[119962,119962],"mapped",[121]],[[119963,119963],"mapped",[122]],[[119964,119964],"mapped",[97]],[[119965,119965],"disallowed"],[[119966,119966],"mapped",[99]],[[119967,119967],"mapped",[100]],[[119968,119969],"disallowed"],[[119970,119970],"mapped",[103]],[[119971,119972],"disallowed"],[[119973,119973],"mapped",[106]],[[119974,119974],"mapped",[107]],[[119975,119976],"disallowed"],[[119977,119977],"mapped",[110]],[[119978,119978],"mapped",[111]],[[119979,119979],"mapped",[112]],[[119980,119980],"mapped",[113]],[[119981,119981],"disallowed"],[[119982,119982],"mapped",[115]],[[119983,119983],"mapped",[116]],[[119984,119984],"mapped",[117]],[[119985,119985],"mapped",[118]],[[119986,119986],"mapped",[119]],[[119987,119987],"mapped",[120]],[[119988,119988],"mapped",[121]],[[119989,119989],"mapped",[122]],[[119990,119990],"mapped",[97]],[[119991,119991],"mapped",[98]],[[119992,119992],"mapped",[99]],[[119993,119993],"mapped",[100]],[[119994,119994],"disallowed"],[[119995,119995],"mapped",[102]],[[119996,119996],"disallowed"],[[119997,119997],"mapped",[104]],[[119998,119998],"mapped",[105]],[[119999,119999],"mapped",[106]],[[12e4,12e4],"mapped",[107]],[[120001,120001],"mapped",[108]],[[120002,120002],"mapped",[109]],[[120003,120003],"mapped",[110]],[[120004,120004],"disallowed"],[[120005,120005],"mapped",[112]],[[120006,120006],"mapped",[113]],[[120007,120007],"mapped",[114]],[[120008,120008],"mapped",[115]],[[120009,120009],"mapped",[116]],[[120010,120010],"mapped",[117]],[[120011,120011],"mapped",[118]],[[120012,120012],"mapped",[119]],[[120013,120013],"mapped",[120]],[[120014,120014],"mapped",[121]],[[120015,120015],"mapped",[122]],[[120016,120016],"mapped",[97]],[[120017,120017],"mapped",[98]],[[120018,120018],"mapped",[99]],[[120019,120019],"mapped",[100]],[[120020,120020],"mapped",[101]],[[120021,120021],"mapped",[102]],[[120022,120022],"mapped",[103]],[[120023,120023],"mapped",[104]],[[120024,120024],"mapped",[105]],[[120025,120025],"mapped",[106]],[[120026,120026],"mapped",[107]],[[120027,120027],"mapped",[108]],[[120028,120028],"mapped",[109]],[[120029,120029],"mapped",[110]],[[120030,120030],"mapped",[111]],[[120031,120031],"mapped",[112]],[[120032,120032],"mapped",[113]],[[120033,120033],"mapped",[114]],[[120034,120034],"mapped",[115]],[[120035,120035],"mapped",[116]],[[120036,120036],"mapped",[117]],[[120037,120037],"mapped",[118]],[[120038,120038],"mapped",[119]],[[120039,120039],"mapped",[120]],[[120040,120040],"mapped",[121]],[[120041,120041],"mapped",[122]],[[120042,120042],"mapped",[97]],[[120043,120043],"mapped",[98]],[[120044,120044],"mapped",[99]],[[120045,120045],"mapped",[100]],[[120046,120046],"mapped",[101]],[[120047,120047],"mapped",[102]],[[120048,120048],"mapped",[103]],[[120049,120049],"mapped",[104]],[[120050,120050],"mapped",[105]],[[120051,120051],"mapped",[106]],[[120052,120052],"mapped",[107]],[[120053,120053],"mapped",[108]],[[120054,120054],"mapped",[109]],[[120055,120055],"mapped",[110]],[[120056,120056],"mapped",[111]],[[120057,120057],"mapped",[112]],[[120058,120058],"mapped",[113]],[[120059,120059],"mapped",[114]],[[120060,120060],"mapped",[115]],[[120061,120061],"mapped",[116]],[[120062,120062],"mapped",[117]],[[120063,120063],"mapped",[118]],[[120064,120064],"mapped",[119]],[[120065,120065],"mapped",[120]],[[120066,120066],"mapped",[121]],[[120067,120067],"mapped",[122]],[[120068,120068],"mapped",[97]],[[120069,120069],"mapped",[98]],[[120070,120070],"disallowed"],[[120071,120071],"mapped",[100]],[[120072,120072],"mapped",[101]],[[120073,120073],"mapped",[102]],[[120074,120074],"mapped",[103]],[[120075,120076],"disallowed"],[[120077,120077],"mapped",[106]],[[120078,120078],"mapped",[107]],[[120079,120079],"mapped",[108]],[[120080,120080],"mapped",[109]],[[120081,120081],"mapped",[110]],[[120082,120082],"mapped",[111]],[[120083,120083],"mapped",[112]],[[120084,120084],"mapped",[113]],[[120085,120085],"disallowed"],[[120086,120086],"mapped",[115]],[[120087,120087],"mapped",[116]],[[120088,120088],"mapped",[117]],[[120089,120089],"mapped",[118]],[[120090,120090],"mapped",[119]],[[120091,120091],"mapped",[120]],[[120092,120092],"mapped",[121]],[[120093,120093],"disallowed"],[[120094,120094],"mapped",[97]],[[120095,120095],"mapped",[98]],[[120096,120096],"mapped",[99]],[[120097,120097],"mapped",[100]],[[120098,120098],"mapped",[101]],[[120099,120099],"mapped",[102]],[[120100,120100],"mapped",[103]],[[120101,120101],"mapped",[104]],[[120102,120102],"mapped",[105]],[[120103,120103],"mapped",[106]],[[120104,120104],"mapped",[107]],[[120105,120105],"mapped",[108]],[[120106,120106],"mapped",[109]],[[120107,120107],"mapped",[110]],[[120108,120108],"mapped",[111]],[[120109,120109],"mapped",[112]],[[120110,120110],"mapped",[113]],[[120111,120111],"mapped",[114]],[[120112,120112],"mapped",[115]],[[120113,120113],"mapped",[116]],[[120114,120114],"mapped",[117]],[[120115,120115],"mapped",[118]],[[120116,120116],"mapped",[119]],[[120117,120117],"mapped",[120]],[[120118,120118],"mapped",[121]],[[120119,120119],"mapped",[122]],[[120120,120120],"mapped",[97]],[[120121,120121],"mapped",[98]],[[120122,120122],"disallowed"],[[120123,120123],"mapped",[100]],[[120124,120124],"mapped",[101]],[[120125,120125],"mapped",[102]],[[120126,120126],"mapped",[103]],[[120127,120127],"disallowed"],[[120128,120128],"mapped",[105]],[[120129,120129],"mapped",[106]],[[120130,120130],"mapped",[107]],[[120131,120131],"mapped",[108]],[[120132,120132],"mapped",[109]],[[120133,120133],"disallowed"],[[120134,120134],"mapped",[111]],[[120135,120137],"disallowed"],[[120138,120138],"mapped",[115]],[[120139,120139],"mapped",[116]],[[120140,120140],"mapped",[117]],[[120141,120141],"mapped",[118]],[[120142,120142],"mapped",[119]],[[120143,120143],"mapped",[120]],[[120144,120144],"mapped",[121]],[[120145,120145],"disallowed"],[[120146,120146],"mapped",[97]],[[120147,120147],"mapped",[98]],[[120148,120148],"mapped",[99]],[[120149,120149],"mapped",[100]],[[120150,120150],"mapped",[101]],[[120151,120151],"mapped",[102]],[[120152,120152],"mapped",[103]],[[120153,120153],"mapped",[104]],[[120154,120154],"mapped",[105]],[[120155,120155],"mapped",[106]],[[120156,120156],"mapped",[107]],[[120157,120157],"mapped",[108]],[[120158,120158],"mapped",[109]],[[120159,120159],"mapped",[110]],[[120160,120160],"mapped",[111]],[[120161,120161],"mapped",[112]],[[120162,120162],"mapped",[113]],[[120163,120163],"mapped",[114]],[[120164,120164],"mapped",[115]],[[120165,120165],"mapped",[116]],[[120166,120166],"mapped",[117]],[[120167,120167],"mapped",[118]],[[120168,120168],"mapped",[119]],[[120169,120169],"mapped",[120]],[[120170,120170],"mapped",[121]],[[120171,120171],"mapped",[122]],[[120172,120172],"mapped",[97]],[[120173,120173],"mapped",[98]],[[120174,120174],"mapped",[99]],[[120175,120175],"mapped",[100]],[[120176,120176],"mapped",[101]],[[120177,120177],"mapped",[102]],[[120178,120178],"mapped",[103]],[[120179,120179],"mapped",[104]],[[120180,120180],"mapped",[105]],[[120181,120181],"mapped",[106]],[[120182,120182],"mapped",[107]],[[120183,120183],"mapped",[108]],[[120184,120184],"mapped",[109]],[[120185,120185],"mapped",[110]],[[120186,120186],"mapped",[111]],[[120187,120187],"mapped",[112]],[[120188,120188],"mapped",[113]],[[120189,120189],"mapped",[114]],[[120190,120190],"mapped",[115]],[[120191,120191],"mapped",[116]],[[120192,120192],"mapped",[117]],[[120193,120193],"mapped",[118]],[[120194,120194],"mapped",[119]],[[120195,120195],"mapped",[120]],[[120196,120196],"mapped",[121]],[[120197,120197],"mapped",[122]],[[120198,120198],"mapped",[97]],[[120199,120199],"mapped",[98]],[[120200,120200],"mapped",[99]],[[120201,120201],"mapped",[100]],[[120202,120202],"mapped",[101]],[[120203,120203],"mapped",[102]],[[120204,120204],"mapped",[103]],[[120205,120205],"mapped",[104]],[[120206,120206],"mapped",[105]],[[120207,120207],"mapped",[106]],[[120208,120208],"mapped",[107]],[[120209,120209],"mapped",[108]],[[120210,120210],"mapped",[109]],[[120211,120211],"mapped",[110]],[[120212,120212],"mapped",[111]],[[120213,120213],"mapped",[112]],[[120214,120214],"mapped",[113]],[[120215,120215],"mapped",[114]],[[120216,120216],"mapped",[115]],[[120217,120217],"mapped",[116]],[[120218,120218],"mapped",[117]],[[120219,120219],"mapped",[118]],[[120220,120220],"mapped",[119]],[[120221,120221],"mapped",[120]],[[120222,120222],"mapped",[121]],[[120223,120223],"mapped",[122]],[[120224,120224],"mapped",[97]],[[120225,120225],"mapped",[98]],[[120226,120226],"mapped",[99]],[[120227,120227],"mapped",[100]],[[120228,120228],"mapped",[101]],[[120229,120229],"mapped",[102]],[[120230,120230],"mapped",[103]],[[120231,120231],"mapped",[104]],[[120232,120232],"mapped",[105]],[[120233,120233],"mapped",[106]],[[120234,120234],"mapped",[107]],[[120235,120235],"mapped",[108]],[[120236,120236],"mapped",[109]],[[120237,120237],"mapped",[110]],[[120238,120238],"mapped",[111]],[[120239,120239],"mapped",[112]],[[120240,120240],"mapped",[113]],[[120241,120241],"mapped",[114]],[[120242,120242],"mapped",[115]],[[120243,120243],"mapped",[116]],[[120244,120244],"mapped",[117]],[[120245,120245],"mapped",[118]],[[120246,120246],"mapped",[119]],[[120247,120247],"mapped",[120]],[[120248,120248],"mapped",[121]],[[120249,120249],"mapped",[122]],[[120250,120250],"mapped",[97]],[[120251,120251],"mapped",[98]],[[120252,120252],"mapped",[99]],[[120253,120253],"mapped",[100]],[[120254,120254],"mapped",[101]],[[120255,120255],"mapped",[102]],[[120256,120256],"mapped",[103]],[[120257,120257],"mapped",[104]],[[120258,120258],"mapped",[105]],[[120259,120259],"mapped",[106]],[[120260,120260],"mapped",[107]],[[120261,120261],"mapped",[108]],[[120262,120262],"mapped",[109]],[[120263,120263],"mapped",[110]],[[120264,120264],"mapped",[111]],[[120265,120265],"mapped",[112]],[[120266,120266],"mapped",[113]],[[120267,120267],"mapped",[114]],[[120268,120268],"mapped",[115]],[[120269,120269],"mapped",[116]],[[120270,120270],"mapped",[117]],[[120271,120271],"mapped",[118]],[[120272,120272],"mapped",[119]],[[120273,120273],"mapped",[120]],[[120274,120274],"mapped",[121]],[[120275,120275],"mapped",[122]],[[120276,120276],"mapped",[97]],[[120277,120277],"mapped",[98]],[[120278,120278],"mapped",[99]],[[120279,120279],"mapped",[100]],[[120280,120280],"mapped",[101]],[[120281,120281],"mapped",[102]],[[120282,120282],"mapped",[103]],[[120283,120283],"mapped",[104]],[[120284,120284],"mapped",[105]],[[120285,120285],"mapped",[106]],[[120286,120286],"mapped",[107]],[[120287,120287],"mapped",[108]],[[120288,120288],"mapped",[109]],[[120289,120289],"mapped",[110]],[[120290,120290],"mapped",[111]],[[120291,120291],"mapped",[112]],[[120292,120292],"mapped",[113]],[[120293,120293],"mapped",[114]],[[120294,120294],"mapped",[115]],[[120295,120295],"mapped",[116]],[[120296,120296],"mapped",[117]],[[120297,120297],"mapped",[118]],[[120298,120298],"mapped",[119]],[[120299,120299],"mapped",[120]],[[120300,120300],"mapped",[121]],[[120301,120301],"mapped",[122]],[[120302,120302],"mapped",[97]],[[120303,120303],"mapped",[98]],[[120304,120304],"mapped",[99]],[[120305,120305],"mapped",[100]],[[120306,120306],"mapped",[101]],[[120307,120307],"mapped",[102]],[[120308,120308],"mapped",[103]],[[120309,120309],"mapped",[104]],[[120310,120310],"mapped",[105]],[[120311,120311],"mapped",[106]],[[120312,120312],"mapped",[107]],[[120313,120313],"mapped",[108]],[[120314,120314],"mapped",[109]],[[120315,120315],"mapped",[110]],[[120316,120316],"mapped",[111]],[[120317,120317],"mapped",[112]],[[120318,120318],"mapped",[113]],[[120319,120319],"mapped",[114]],[[120320,120320],"mapped",[115]],[[120321,120321],"mapped",[116]],[[120322,120322],"mapped",[117]],[[120323,120323],"mapped",[118]],[[120324,120324],"mapped",[119]],[[120325,120325],"mapped",[120]],[[120326,120326],"mapped",[121]],[[120327,120327],"mapped",[122]],[[120328,120328],"mapped",[97]],[[120329,120329],"mapped",[98]],[[120330,120330],"mapped",[99]],[[120331,120331],"mapped",[100]],[[120332,120332],"mapped",[101]],[[120333,120333],"mapped",[102]],[[120334,120334],"mapped",[103]],[[120335,120335],"mapped",[104]],[[120336,120336],"mapped",[105]],[[120337,120337],"mapped",[106]],[[120338,120338],"mapped",[107]],[[120339,120339],"mapped",[108]],[[120340,120340],"mapped",[109]],[[120341,120341],"mapped",[110]],[[120342,120342],"mapped",[111]],[[120343,120343],"mapped",[112]],[[120344,120344],"mapped",[113]],[[120345,120345],"mapped",[114]],[[120346,120346],"mapped",[115]],[[120347,120347],"mapped",[116]],[[120348,120348],"mapped",[117]],[[120349,120349],"mapped",[118]],[[120350,120350],"mapped",[119]],[[120351,120351],"mapped",[120]],[[120352,120352],"mapped",[121]],[[120353,120353],"mapped",[122]],[[120354,120354],"mapped",[97]],[[120355,120355],"mapped",[98]],[[120356,120356],"mapped",[99]],[[120357,120357],"mapped",[100]],[[120358,120358],"mapped",[101]],[[120359,120359],"mapped",[102]],[[120360,120360],"mapped",[103]],[[120361,120361],"mapped",[104]],[[120362,120362],"mapped",[105]],[[120363,120363],"mapped",[106]],[[120364,120364],"mapped",[107]],[[120365,120365],"mapped",[108]],[[120366,120366],"mapped",[109]],[[120367,120367],"mapped",[110]],[[120368,120368],"mapped",[111]],[[120369,120369],"mapped",[112]],[[120370,120370],"mapped",[113]],[[120371,120371],"mapped",[114]],[[120372,120372],"mapped",[115]],[[120373,120373],"mapped",[116]],[[120374,120374],"mapped",[117]],[[120375,120375],"mapped",[118]],[[120376,120376],"mapped",[119]],[[120377,120377],"mapped",[120]],[[120378,120378],"mapped",[121]],[[120379,120379],"mapped",[122]],[[120380,120380],"mapped",[97]],[[120381,120381],"mapped",[98]],[[120382,120382],"mapped",[99]],[[120383,120383],"mapped",[100]],[[120384,120384],"mapped",[101]],[[120385,120385],"mapped",[102]],[[120386,120386],"mapped",[103]],[[120387,120387],"mapped",[104]],[[120388,120388],"mapped",[105]],[[120389,120389],"mapped",[106]],[[120390,120390],"mapped",[107]],[[120391,120391],"mapped",[108]],[[120392,120392],"mapped",[109]],[[120393,120393],"mapped",[110]],[[120394,120394],"mapped",[111]],[[120395,120395],"mapped",[112]],[[120396,120396],"mapped",[113]],[[120397,120397],"mapped",[114]],[[120398,120398],"mapped",[115]],[[120399,120399],"mapped",[116]],[[120400,120400],"mapped",[117]],[[120401,120401],"mapped",[118]],[[120402,120402],"mapped",[119]],[[120403,120403],"mapped",[120]],[[120404,120404],"mapped",[121]],[[120405,120405],"mapped",[122]],[[120406,120406],"mapped",[97]],[[120407,120407],"mapped",[98]],[[120408,120408],"mapped",[99]],[[120409,120409],"mapped",[100]],[[120410,120410],"mapped",[101]],[[120411,120411],"mapped",[102]],[[120412,120412],"mapped",[103]],[[120413,120413],"mapped",[104]],[[120414,120414],"mapped",[105]],[[120415,120415],"mapped",[106]],[[120416,120416],"mapped",[107]],[[120417,120417],"mapped",[108]],[[120418,120418],"mapped",[109]],[[120419,120419],"mapped",[110]],[[120420,120420],"mapped",[111]],[[120421,120421],"mapped",[112]],[[120422,120422],"mapped",[113]],[[120423,120423],"mapped",[114]],[[120424,120424],"mapped",[115]],[[120425,120425],"mapped",[116]],[[120426,120426],"mapped",[117]],[[120427,120427],"mapped",[118]],[[120428,120428],"mapped",[119]],[[120429,120429],"mapped",[120]],[[120430,120430],"mapped",[121]],[[120431,120431],"mapped",[122]],[[120432,120432],"mapped",[97]],[[120433,120433],"mapped",[98]],[[120434,120434],"mapped",[99]],[[120435,120435],"mapped",[100]],[[120436,120436],"mapped",[101]],[[120437,120437],"mapped",[102]],[[120438,120438],"mapped",[103]],[[120439,120439],"mapped",[104]],[[120440,120440],"mapped",[105]],[[120441,120441],"mapped",[106]],[[120442,120442],"mapped",[107]],[[120443,120443],"mapped",[108]],[[120444,120444],"mapped",[109]],[[120445,120445],"mapped",[110]],[[120446,120446],"mapped",[111]],[[120447,120447],"mapped",[112]],[[120448,120448],"mapped",[113]],[[120449,120449],"mapped",[114]],[[120450,120450],"mapped",[115]],[[120451,120451],"mapped",[116]],[[120452,120452],"mapped",[117]],[[120453,120453],"mapped",[118]],[[120454,120454],"mapped",[119]],[[120455,120455],"mapped",[120]],[[120456,120456],"mapped",[121]],[[120457,120457],"mapped",[122]],[[120458,120458],"mapped",[97]],[[120459,120459],"mapped",[98]],[[120460,120460],"mapped",[99]],[[120461,120461],"mapped",[100]],[[120462,120462],"mapped",[101]],[[120463,120463],"mapped",[102]],[[120464,120464],"mapped",[103]],[[120465,120465],"mapped",[104]],[[120466,120466],"mapped",[105]],[[120467,120467],"mapped",[106]],[[120468,120468],"mapped",[107]],[[120469,120469],"mapped",[108]],[[120470,120470],"mapped",[109]],[[120471,120471],"mapped",[110]],[[120472,120472],"mapped",[111]],[[120473,120473],"mapped",[112]],[[120474,120474],"mapped",[113]],[[120475,120475],"mapped",[114]],[[120476,120476],"mapped",[115]],[[120477,120477],"mapped",[116]],[[120478,120478],"mapped",[117]],[[120479,120479],"mapped",[118]],[[120480,120480],"mapped",[119]],[[120481,120481],"mapped",[120]],[[120482,120482],"mapped",[121]],[[120483,120483],"mapped",[122]],[[120484,120484],"mapped",[305]],[[120485,120485],"mapped",[567]],[[120486,120487],"disallowed"],[[120488,120488],"mapped",[945]],[[120489,120489],"mapped",[946]],[[120490,120490],"mapped",[947]],[[120491,120491],"mapped",[948]],[[120492,120492],"mapped",[949]],[[120493,120493],"mapped",[950]],[[120494,120494],"mapped",[951]],[[120495,120495],"mapped",[952]],[[120496,120496],"mapped",[953]],[[120497,120497],"mapped",[954]],[[120498,120498],"mapped",[955]],[[120499,120499],"mapped",[956]],[[120500,120500],"mapped",[957]],[[120501,120501],"mapped",[958]],[[120502,120502],"mapped",[959]],[[120503,120503],"mapped",[960]],[[120504,120504],"mapped",[961]],[[120505,120505],"mapped",[952]],[[120506,120506],"mapped",[963]],[[120507,120507],"mapped",[964]],[[120508,120508],"mapped",[965]],[[120509,120509],"mapped",[966]],[[120510,120510],"mapped",[967]],[[120511,120511],"mapped",[968]],[[120512,120512],"mapped",[969]],[[120513,120513],"mapped",[8711]],[[120514,120514],"mapped",[945]],[[120515,120515],"mapped",[946]],[[120516,120516],"mapped",[947]],[[120517,120517],"mapped",[948]],[[120518,120518],"mapped",[949]],[[120519,120519],"mapped",[950]],[[120520,120520],"mapped",[951]],[[120521,120521],"mapped",[952]],[[120522,120522],"mapped",[953]],[[120523,120523],"mapped",[954]],[[120524,120524],"mapped",[955]],[[120525,120525],"mapped",[956]],[[120526,120526],"mapped",[957]],[[120527,120527],"mapped",[958]],[[120528,120528],"mapped",[959]],[[120529,120529],"mapped",[960]],[[120530,120530],"mapped",[961]],[[120531,120532],"mapped",[963]],[[120533,120533],"mapped",[964]],[[120534,120534],"mapped",[965]],[[120535,120535],"mapped",[966]],[[120536,120536],"mapped",[967]],[[120537,120537],"mapped",[968]],[[120538,120538],"mapped",[969]],[[120539,120539],"mapped",[8706]],[[120540,120540],"mapped",[949]],[[120541,120541],"mapped",[952]],[[120542,120542],"mapped",[954]],[[120543,120543],"mapped",[966]],[[120544,120544],"mapped",[961]],[[120545,120545],"mapped",[960]],[[120546,120546],"mapped",[945]],[[120547,120547],"mapped",[946]],[[120548,120548],"mapped",[947]],[[120549,120549],"mapped",[948]],[[120550,120550],"mapped",[949]],[[120551,120551],"mapped",[950]],[[120552,120552],"mapped",[951]],[[120553,120553],"mapped",[952]],[[120554,120554],"mapped",[953]],[[120555,120555],"mapped",[954]],[[120556,120556],"mapped",[955]],[[120557,120557],"mapped",[956]],[[120558,120558],"mapped",[957]],[[120559,120559],"mapped",[958]],[[120560,120560],"mapped",[959]],[[120561,120561],"mapped",[960]],[[120562,120562],"mapped",[961]],[[120563,120563],"mapped",[952]],[[120564,120564],"mapped",[963]],[[120565,120565],"mapped",[964]],[[120566,120566],"mapped",[965]],[[120567,120567],"mapped",[966]],[[120568,120568],"mapped",[967]],[[120569,120569],"mapped",[968]],[[120570,120570],"mapped",[969]],[[120571,120571],"mapped",[8711]],[[120572,120572],"mapped",[945]],[[120573,120573],"mapped",[946]],[[120574,120574],"mapped",[947]],[[120575,120575],"mapped",[948]],[[120576,120576],"mapped",[949]],[[120577,120577],"mapped",[950]],[[120578,120578],"mapped",[951]],[[120579,120579],"mapped",[952]],[[120580,120580],"mapped",[953]],[[120581,120581],"mapped",[954]],[[120582,120582],"mapped",[955]],[[120583,120583],"mapped",[956]],[[120584,120584],"mapped",[957]],[[120585,120585],"mapped",[958]],[[120586,120586],"mapped",[959]],[[120587,120587],"mapped",[960]],[[120588,120588],"mapped",[961]],[[120589,120590],"mapped",[963]],[[120591,120591],"mapped",[964]],[[120592,120592],"mapped",[965]],[[120593,120593],"mapped",[966]],[[120594,120594],"mapped",[967]],[[120595,120595],"mapped",[968]],[[120596,120596],"mapped",[969]],[[120597,120597],"mapped",[8706]],[[120598,120598],"mapped",[949]],[[120599,120599],"mapped",[952]],[[120600,120600],"mapped",[954]],[[120601,120601],"mapped",[966]],[[120602,120602],"mapped",[961]],[[120603,120603],"mapped",[960]],[[120604,120604],"mapped",[945]],[[120605,120605],"mapped",[946]],[[120606,120606],"mapped",[947]],[[120607,120607],"mapped",[948]],[[120608,120608],"mapped",[949]],[[120609,120609],"mapped",[950]],[[120610,120610],"mapped",[951]],[[120611,120611],"mapped",[952]],[[120612,120612],"mapped",[953]],[[120613,120613],"mapped",[954]],[[120614,120614],"mapped",[955]],[[120615,120615],"mapped",[956]],[[120616,120616],"mapped",[957]],[[120617,120617],"mapped",[958]],[[120618,120618],"mapped",[959]],[[120619,120619],"mapped",[960]],[[120620,120620],"mapped",[961]],[[120621,120621],"mapped",[952]],[[120622,120622],"mapped",[963]],[[120623,120623],"mapped",[964]],[[120624,120624],"mapped",[965]],[[120625,120625],"mapped",[966]],[[120626,120626],"mapped",[967]],[[120627,120627],"mapped",[968]],[[120628,120628],"mapped",[969]],[[120629,120629],"mapped",[8711]],[[120630,120630],"mapped",[945]],[[120631,120631],"mapped",[946]],[[120632,120632],"mapped",[947]],[[120633,120633],"mapped",[948]],[[120634,120634],"mapped",[949]],[[120635,120635],"mapped",[950]],[[120636,120636],"mapped",[951]],[[120637,120637],"mapped",[952]],[[120638,120638],"mapped",[953]],[[120639,120639],"mapped",[954]],[[120640,120640],"mapped",[955]],[[120641,120641],"mapped",[956]],[[120642,120642],"mapped",[957]],[[120643,120643],"mapped",[958]],[[120644,120644],"mapped",[959]],[[120645,120645],"mapped",[960]],[[120646,120646],"mapped",[961]],[[120647,120648],"mapped",[963]],[[120649,120649],"mapped",[964]],[[120650,120650],"mapped",[965]],[[120651,120651],"mapped",[966]],[[120652,120652],"mapped",[967]],[[120653,120653],"mapped",[968]],[[120654,120654],"mapped",[969]],[[120655,120655],"mapped",[8706]],[[120656,120656],"mapped",[949]],[[120657,120657],"mapped",[952]],[[120658,120658],"mapped",[954]],[[120659,120659],"mapped",[966]],[[120660,120660],"mapped",[961]],[[120661,120661],"mapped",[960]],[[120662,120662],"mapped",[945]],[[120663,120663],"mapped",[946]],[[120664,120664],"mapped",[947]],[[120665,120665],"mapped",[948]],[[120666,120666],"mapped",[949]],[[120667,120667],"mapped",[950]],[[120668,120668],"mapped",[951]],[[120669,120669],"mapped",[952]],[[120670,120670],"mapped",[953]],[[120671,120671],"mapped",[954]],[[120672,120672],"mapped",[955]],[[120673,120673],"mapped",[956]],[[120674,120674],"mapped",[957]],[[120675,120675],"mapped",[958]],[[120676,120676],"mapped",[959]],[[120677,120677],"mapped",[960]],[[120678,120678],"mapped",[961]],[[120679,120679],"mapped",[952]],[[120680,120680],"mapped",[963]],[[120681,120681],"mapped",[964]],[[120682,120682],"mapped",[965]],[[120683,120683],"mapped",[966]],[[120684,120684],"mapped",[967]],[[120685,120685],"mapped",[968]],[[120686,120686],"mapped",[969]],[[120687,120687],"mapped",[8711]],[[120688,120688],"mapped",[945]],[[120689,120689],"mapped",[946]],[[120690,120690],"mapped",[947]],[[120691,120691],"mapped",[948]],[[120692,120692],"mapped",[949]],[[120693,120693],"mapped",[950]],[[120694,120694],"mapped",[951]],[[120695,120695],"mapped",[952]],[[120696,120696],"mapped",[953]],[[120697,120697],"mapped",[954]],[[120698,120698],"mapped",[955]],[[120699,120699],"mapped",[956]],[[120700,120700],"mapped",[957]],[[120701,120701],"mapped",[958]],[[120702,120702],"mapped",[959]],[[120703,120703],"mapped",[960]],[[120704,120704],"mapped",[961]],[[120705,120706],"mapped",[963]],[[120707,120707],"mapped",[964]],[[120708,120708],"mapped",[965]],[[120709,120709],"mapped",[966]],[[120710,120710],"mapped",[967]],[[120711,120711],"mapped",[968]],[[120712,120712],"mapped",[969]],[[120713,120713],"mapped",[8706]],[[120714,120714],"mapped",[949]],[[120715,120715],"mapped",[952]],[[120716,120716],"mapped",[954]],[[120717,120717],"mapped",[966]],[[120718,120718],"mapped",[961]],[[120719,120719],"mapped",[960]],[[120720,120720],"mapped",[945]],[[120721,120721],"mapped",[946]],[[120722,120722],"mapped",[947]],[[120723,120723],"mapped",[948]],[[120724,120724],"mapped",[949]],[[120725,120725],"mapped",[950]],[[120726,120726],"mapped",[951]],[[120727,120727],"mapped",[952]],[[120728,120728],"mapped",[953]],[[120729,120729],"mapped",[954]],[[120730,120730],"mapped",[955]],[[120731,120731],"mapped",[956]],[[120732,120732],"mapped",[957]],[[120733,120733],"mapped",[958]],[[120734,120734],"mapped",[959]],[[120735,120735],"mapped",[960]],[[120736,120736],"mapped",[961]],[[120737,120737],"mapped",[952]],[[120738,120738],"mapped",[963]],[[120739,120739],"mapped",[964]],[[120740,120740],"mapped",[965]],[[120741,120741],"mapped",[966]],[[120742,120742],"mapped",[967]],[[120743,120743],"mapped",[968]],[[120744,120744],"mapped",[969]],[[120745,120745],"mapped",[8711]],[[120746,120746],"mapped",[945]],[[120747,120747],"mapped",[946]],[[120748,120748],"mapped",[947]],[[120749,120749],"mapped",[948]],[[120750,120750],"mapped",[949]],[[120751,120751],"mapped",[950]],[[120752,120752],"mapped",[951]],[[120753,120753],"mapped",[952]],[[120754,120754],"mapped",[953]],[[120755,120755],"mapped",[954]],[[120756,120756],"mapped",[955]],[[120757,120757],"mapped",[956]],[[120758,120758],"mapped",[957]],[[120759,120759],"mapped",[958]],[[120760,120760],"mapped",[959]],[[120761,120761],"mapped",[960]],[[120762,120762],"mapped",[961]],[[120763,120764],"mapped",[963]],[[120765,120765],"mapped",[964]],[[120766,120766],"mapped",[965]],[[120767,120767],"mapped",[966]],[[120768,120768],"mapped",[967]],[[120769,120769],"mapped",[968]],[[120770,120770],"mapped",[969]],[[120771,120771],"mapped",[8706]],[[120772,120772],"mapped",[949]],[[120773,120773],"mapped",[952]],[[120774,120774],"mapped",[954]],[[120775,120775],"mapped",[966]],[[120776,120776],"mapped",[961]],[[120777,120777],"mapped",[960]],[[120778,120779],"mapped",[989]],[[120780,120781],"disallowed"],[[120782,120782],"mapped",[48]],[[120783,120783],"mapped",[49]],[[120784,120784],"mapped",[50]],[[120785,120785],"mapped",[51]],[[120786,120786],"mapped",[52]],[[120787,120787],"mapped",[53]],[[120788,120788],"mapped",[54]],[[120789,120789],"mapped",[55]],[[120790,120790],"mapped",[56]],[[120791,120791],"mapped",[57]],[[120792,120792],"mapped",[48]],[[120793,120793],"mapped",[49]],[[120794,120794],"mapped",[50]],[[120795,120795],"mapped",[51]],[[120796,120796],"mapped",[52]],[[120797,120797],"mapped",[53]],[[120798,120798],"mapped",[54]],[[120799,120799],"mapped",[55]],[[120800,120800],"mapped",[56]],[[120801,120801],"mapped",[57]],[[120802,120802],"mapped",[48]],[[120803,120803],"mapped",[49]],[[120804,120804],"mapped",[50]],[[120805,120805],"mapped",[51]],[[120806,120806],"mapped",[52]],[[120807,120807],"mapped",[53]],[[120808,120808],"mapped",[54]],[[120809,120809],"mapped",[55]],[[120810,120810],"mapped",[56]],[[120811,120811],"mapped",[57]],[[120812,120812],"mapped",[48]],[[120813,120813],"mapped",[49]],[[120814,120814],"mapped",[50]],[[120815,120815],"mapped",[51]],[[120816,120816],"mapped",[52]],[[120817,120817],"mapped",[53]],[[120818,120818],"mapped",[54]],[[120819,120819],"mapped",[55]],[[120820,120820],"mapped",[56]],[[120821,120821],"mapped",[57]],[[120822,120822],"mapped",[48]],[[120823,120823],"mapped",[49]],[[120824,120824],"mapped",[50]],[[120825,120825],"mapped",[51]],[[120826,120826],"mapped",[52]],[[120827,120827],"mapped",[53]],[[120828,120828],"mapped",[54]],[[120829,120829],"mapped",[55]],[[120830,120830],"mapped",[56]],[[120831,120831],"mapped",[57]],[[120832,121343],"valid",[],"NV8"],[[121344,121398],"valid"],[[121399,121402],"valid",[],"NV8"],[[121403,121452],"valid"],[[121453,121460],"valid",[],"NV8"],[[121461,121461],"valid"],[[121462,121475],"valid",[],"NV8"],[[121476,121476],"valid"],[[121477,121483],"valid",[],"NV8"],[[121484,121498],"disallowed"],[[121499,121503],"valid"],[[121504,121504],"disallowed"],[[121505,121519],"valid"],[[121520,124927],"disallowed"],[[124928,125124],"valid"],[[125125,125126],"disallowed"],[[125127,125135],"valid",[],"NV8"],[[125136,125142],"valid"],[[125143,126463],"disallowed"],[[126464,126464],"mapped",[1575]],[[126465,126465],"mapped",[1576]],[[126466,126466],"mapped",[1580]],[[126467,126467],"mapped",[1583]],[[126468,126468],"disallowed"],[[126469,126469],"mapped",[1608]],[[126470,126470],"mapped",[1586]],[[126471,126471],"mapped",[1581]],[[126472,126472],"mapped",[1591]],[[126473,126473],"mapped",[1610]],[[126474,126474],"mapped",[1603]],[[126475,126475],"mapped",[1604]],[[126476,126476],"mapped",[1605]],[[126477,126477],"mapped",[1606]],[[126478,126478],"mapped",[1587]],[[126479,126479],"mapped",[1593]],[[126480,126480],"mapped",[1601]],[[126481,126481],"mapped",[1589]],[[126482,126482],"mapped",[1602]],[[126483,126483],"mapped",[1585]],[[126484,126484],"mapped",[1588]],[[126485,126485],"mapped",[1578]],[[126486,126486],"mapped",[1579]],[[126487,126487],"mapped",[1582]],[[126488,126488],"mapped",[1584]],[[126489,126489],"mapped",[1590]],[[126490,126490],"mapped",[1592]],[[126491,126491],"mapped",[1594]],[[126492,126492],"mapped",[1646]],[[126493,126493],"mapped",[1722]],[[126494,126494],"mapped",[1697]],[[126495,126495],"mapped",[1647]],[[126496,126496],"disallowed"],[[126497,126497],"mapped",[1576]],[[126498,126498],"mapped",[1580]],[[126499,126499],"disallowed"],[[126500,126500],"mapped",[1607]],[[126501,126502],"disallowed"],[[126503,126503],"mapped",[1581]],[[126504,126504],"disallowed"],[[126505,126505],"mapped",[1610]],[[126506,126506],"mapped",[1603]],[[126507,126507],"mapped",[1604]],[[126508,126508],"mapped",[1605]],[[126509,126509],"mapped",[1606]],[[126510,126510],"mapped",[1587]],[[126511,126511],"mapped",[1593]],[[126512,126512],"mapped",[1601]],[[126513,126513],"mapped",[1589]],[[126514,126514],"mapped",[1602]],[[126515,126515],"disallowed"],[[126516,126516],"mapped",[1588]],[[126517,126517],"mapped",[1578]],[[126518,126518],"mapped",[1579]],[[126519,126519],"mapped",[1582]],[[126520,126520],"disallowed"],[[126521,126521],"mapped",[1590]],[[126522,126522],"disallowed"],[[126523,126523],"mapped",[1594]],[[126524,126529],"disallowed"],[[126530,126530],"mapped",[1580]],[[126531,126534],"disallowed"],[[126535,126535],"mapped",[1581]],[[126536,126536],"disallowed"],[[126537,126537],"mapped",[1610]],[[126538,126538],"disallowed"],[[126539,126539],"mapped",[1604]],[[126540,126540],"disallowed"],[[126541,126541],"mapped",[1606]],[[126542,126542],"mapped",[1587]],[[126543,126543],"mapped",[1593]],[[126544,126544],"disallowed"],[[126545,126545],"mapped",[1589]],[[126546,126546],"mapped",[1602]],[[126547,126547],"disallowed"],[[126548,126548],"mapped",[1588]],[[126549,126550],"disallowed"],[[126551,126551],"mapped",[1582]],[[126552,126552],"disallowed"],[[126553,126553],"mapped",[1590]],[[126554,126554],"disallowed"],[[126555,126555],"mapped",[1594]],[[126556,126556],"disallowed"],[[126557,126557],"mapped",[1722]],[[126558,126558],"disallowed"],[[126559,126559],"mapped",[1647]],[[126560,126560],"disallowed"],[[126561,126561],"mapped",[1576]],[[126562,126562],"mapped",[1580]],[[126563,126563],"disallowed"],[[126564,126564],"mapped",[1607]],[[126565,126566],"disallowed"],[[126567,126567],"mapped",[1581]],[[126568,126568],"mapped",[1591]],[[126569,126569],"mapped",[1610]],[[126570,126570],"mapped",[1603]],[[126571,126571],"disallowed"],[[126572,126572],"mapped",[1605]],[[126573,126573],"mapped",[1606]],[[126574,126574],"mapped",[1587]],[[126575,126575],"mapped",[1593]],[[126576,126576],"mapped",[1601]],[[126577,126577],"mapped",[1589]],[[126578,126578],"mapped",[1602]],[[126579,126579],"disallowed"],[[126580,126580],"mapped",[1588]],[[126581,126581],"mapped",[1578]],[[126582,126582],"mapped",[1579]],[[126583,126583],"mapped",[1582]],[[126584,126584],"disallowed"],[[126585,126585],"mapped",[1590]],[[126586,126586],"mapped",[1592]],[[126587,126587],"mapped",[1594]],[[126588,126588],"mapped",[1646]],[[126589,126589],"disallowed"],[[126590,126590],"mapped",[1697]],[[126591,126591],"disallowed"],[[126592,126592],"mapped",[1575]],[[126593,126593],"mapped",[1576]],[[126594,126594],"mapped",[1580]],[[126595,126595],"mapped",[1583]],[[126596,126596],"mapped",[1607]],[[126597,126597],"mapped",[1608]],[[126598,126598],"mapped",[1586]],[[126599,126599],"mapped",[1581]],[[126600,126600],"mapped",[1591]],[[126601,126601],"mapped",[1610]],[[126602,126602],"disallowed"],[[126603,126603],"mapped",[1604]],[[126604,126604],"mapped",[1605]],[[126605,126605],"mapped",[1606]],[[126606,126606],"mapped",[1587]],[[126607,126607],"mapped",[1593]],[[126608,126608],"mapped",[1601]],[[126609,126609],"mapped",[1589]],[[126610,126610],"mapped",[1602]],[[126611,126611],"mapped",[1585]],[[126612,126612],"mapped",[1588]],[[126613,126613],"mapped",[1578]],[[126614,126614],"mapped",[1579]],[[126615,126615],"mapped",[1582]],[[126616,126616],"mapped",[1584]],[[126617,126617],"mapped",[1590]],[[126618,126618],"mapped",[1592]],[[126619,126619],"mapped",[1594]],[[126620,126624],"disallowed"],[[126625,126625],"mapped",[1576]],[[126626,126626],"mapped",[1580]],[[126627,126627],"mapped",[1583]],[[126628,126628],"disallowed"],[[126629,126629],"mapped",[1608]],[[126630,126630],"mapped",[1586]],[[126631,126631],"mapped",[1581]],[[126632,126632],"mapped",[1591]],[[126633,126633],"mapped",[1610]],[[126634,126634],"disallowed"],[[126635,126635],"mapped",[1604]],[[126636,126636],"mapped",[1605]],[[126637,126637],"mapped",[1606]],[[126638,126638],"mapped",[1587]],[[126639,126639],"mapped",[1593]],[[126640,126640],"mapped",[1601]],[[126641,126641],"mapped",[1589]],[[126642,126642],"mapped",[1602]],[[126643,126643],"mapped",[1585]],[[126644,126644],"mapped",[1588]],[[126645,126645],"mapped",[1578]],[[126646,126646],"mapped",[1579]],[[126647,126647],"mapped",[1582]],[[126648,126648],"mapped",[1584]],[[126649,126649],"mapped",[1590]],[[126650,126650],"mapped",[1592]],[[126651,126651],"mapped",[1594]],[[126652,126703],"disallowed"],[[126704,126705],"valid",[],"NV8"],[[126706,126975],"disallowed"],[[126976,127019],"valid",[],"NV8"],[[127020,127023],"disallowed"],[[127024,127123],"valid",[],"NV8"],[[127124,127135],"disallowed"],[[127136,127150],"valid",[],"NV8"],[[127151,127152],"disallowed"],[[127153,127166],"valid",[],"NV8"],[[127167,127167],"valid",[],"NV8"],[[127168,127168],"disallowed"],[[127169,127183],"valid",[],"NV8"],[[127184,127184],"disallowed"],[[127185,127199],"valid",[],"NV8"],[[127200,127221],"valid",[],"NV8"],[[127222,127231],"disallowed"],[[127232,127232],"disallowed"],[[127233,127233],"disallowed_STD3_mapped",[48,44]],[[127234,127234],"disallowed_STD3_mapped",[49,44]],[[127235,127235],"disallowed_STD3_mapped",[50,44]],[[127236,127236],"disallowed_STD3_mapped",[51,44]],[[127237,127237],"disallowed_STD3_mapped",[52,44]],[[127238,127238],"disallowed_STD3_mapped",[53,44]],[[127239,127239],"disallowed_STD3_mapped",[54,44]],[[127240,127240],"disallowed_STD3_mapped",[55,44]],[[127241,127241],"disallowed_STD3_mapped",[56,44]],[[127242,127242],"disallowed_STD3_mapped",[57,44]],[[127243,127244],"valid",[],"NV8"],[[127245,127247],"disallowed"],[[127248,127248],"disallowed_STD3_mapped",[40,97,41]],[[127249,127249],"disallowed_STD3_mapped",[40,98,41]],[[127250,127250],"disallowed_STD3_mapped",[40,99,41]],[[127251,127251],"disallowed_STD3_mapped",[40,100,41]],[[127252,127252],"disallowed_STD3_mapped",[40,101,41]],[[127253,127253],"disallowed_STD3_mapped",[40,102,41]],[[127254,127254],"disallowed_STD3_mapped",[40,103,41]],[[127255,127255],"disallowed_STD3_mapped",[40,104,41]],[[127256,127256],"disallowed_STD3_mapped",[40,105,41]],[[127257,127257],"disallowed_STD3_mapped",[40,106,41]],[[127258,127258],"disallowed_STD3_mapped",[40,107,41]],[[127259,127259],"disallowed_STD3_mapped",[40,108,41]],[[127260,127260],"disallowed_STD3_mapped",[40,109,41]],[[127261,127261],"disallowed_STD3_mapped",[40,110,41]],[[127262,127262],"disallowed_STD3_mapped",[40,111,41]],[[127263,127263],"disallowed_STD3_mapped",[40,112,41]],[[127264,127264],"disallowed_STD3_mapped",[40,113,41]],[[127265,127265],"disallowed_STD3_mapped",[40,114,41]],[[127266,127266],"disallowed_STD3_mapped",[40,115,41]],[[127267,127267],"disallowed_STD3_mapped",[40,116,41]],[[127268,127268],"disallowed_STD3_mapped",[40,117,41]],[[127269,127269],"disallowed_STD3_mapped",[40,118,41]],[[127270,127270],"disallowed_STD3_mapped",[40,119,41]],[[127271,127271],"disallowed_STD3_mapped",[40,120,41]],[[127272,127272],"disallowed_STD3_mapped",[40,121,41]],[[127273,127273],"disallowed_STD3_mapped",[40,122,41]],[[127274,127274],"mapped",[12308,115,12309]],[[127275,127275],"mapped",[99]],[[127276,127276],"mapped",[114]],[[127277,127277],"mapped",[99,100]],[[127278,127278],"mapped",[119,122]],[[127279,127279],"disallowed"],[[127280,127280],"mapped",[97]],[[127281,127281],"mapped",[98]],[[127282,127282],"mapped",[99]],[[127283,127283],"mapped",[100]],[[127284,127284],"mapped",[101]],[[127285,127285],"mapped",[102]],[[127286,127286],"mapped",[103]],[[127287,127287],"mapped",[104]],[[127288,127288],"mapped",[105]],[[127289,127289],"mapped",[106]],[[127290,127290],"mapped",[107]],[[127291,127291],"mapped",[108]],[[127292,127292],"mapped",[109]],[[127293,127293],"mapped",[110]],[[127294,127294],"mapped",[111]],[[127295,127295],"mapped",[112]],[[127296,127296],"mapped",[113]],[[127297,127297],"mapped",[114]],[[127298,127298],"mapped",[115]],[[127299,127299],"mapped",[116]],[[127300,127300],"mapped",[117]],[[127301,127301],"mapped",[118]],[[127302,127302],"mapped",[119]],[[127303,127303],"mapped",[120]],[[127304,127304],"mapped",[121]],[[127305,127305],"mapped",[122]],[[127306,127306],"mapped",[104,118]],[[127307,127307],"mapped",[109,118]],[[127308,127308],"mapped",[115,100]],[[127309,127309],"mapped",[115,115]],[[127310,127310],"mapped",[112,112,118]],[[127311,127311],"mapped",[119,99]],[[127312,127318],"valid",[],"NV8"],[[127319,127319],"valid",[],"NV8"],[[127320,127326],"valid",[],"NV8"],[[127327,127327],"valid",[],"NV8"],[[127328,127337],"valid",[],"NV8"],[[127338,127338],"mapped",[109,99]],[[127339,127339],"mapped",[109,100]],[[127340,127343],"disallowed"],[[127344,127352],"valid",[],"NV8"],[[127353,127353],"valid",[],"NV8"],[[127354,127354],"valid",[],"NV8"],[[127355,127356],"valid",[],"NV8"],[[127357,127358],"valid",[],"NV8"],[[127359,127359],"valid",[],"NV8"],[[127360,127369],"valid",[],"NV8"],[[127370,127373],"valid",[],"NV8"],[[127374,127375],"valid",[],"NV8"],[[127376,127376],"mapped",[100,106]],[[127377,127386],"valid",[],"NV8"],[[127387,127461],"disallowed"],[[127462,127487],"valid",[],"NV8"],[[127488,127488],"mapped",[12411,12363]],[[127489,127489],"mapped",[12467,12467]],[[127490,127490],"mapped",[12469]],[[127491,127503],"disallowed"],[[127504,127504],"mapped",[25163]],[[127505,127505],"mapped",[23383]],[[127506,127506],"mapped",[21452]],[[127507,127507],"mapped",[12487]],[[127508,127508],"mapped",[20108]],[[127509,127509],"mapped",[22810]],[[127510,127510],"mapped",[35299]],[[127511,127511],"mapped",[22825]],[[127512,127512],"mapped",[20132]],[[127513,127513],"mapped",[26144]],[[127514,127514],"mapped",[28961]],[[127515,127515],"mapped",[26009]],[[127516,127516],"mapped",[21069]],[[127517,127517],"mapped",[24460]],[[127518,127518],"mapped",[20877]],[[127519,127519],"mapped",[26032]],[[127520,127520],"mapped",[21021]],[[127521,127521],"mapped",[32066]],[[127522,127522],"mapped",[29983]],[[127523,127523],"mapped",[36009]],[[127524,127524],"mapped",[22768]],[[127525,127525],"mapped",[21561]],[[127526,127526],"mapped",[28436]],[[127527,127527],"mapped",[25237]],[[127528,127528],"mapped",[25429]],[[127529,127529],"mapped",[19968]],[[127530,127530],"mapped",[19977]],[[127531,127531],"mapped",[36938]],[[127532,127532],"mapped",[24038]],[[127533,127533],"mapped",[20013]],[[127534,127534],"mapped",[21491]],[[127535,127535],"mapped",[25351]],[[127536,127536],"mapped",[36208]],[[127537,127537],"mapped",[25171]],[[127538,127538],"mapped",[31105]],[[127539,127539],"mapped",[31354]],[[127540,127540],"mapped",[21512]],[[127541,127541],"mapped",[28288]],[[127542,127542],"mapped",[26377]],[[127543,127543],"mapped",[26376]],[[127544,127544],"mapped",[30003]],[[127545,127545],"mapped",[21106]],[[127546,127546],"mapped",[21942]],[[127547,127551],"disallowed"],[[127552,127552],"mapped",[12308,26412,12309]],[[127553,127553],"mapped",[12308,19977,12309]],[[127554,127554],"mapped",[12308,20108,12309]],[[127555,127555],"mapped",[12308,23433,12309]],[[127556,127556],"mapped",[12308,28857,12309]],[[127557,127557],"mapped",[12308,25171,12309]],[[127558,127558],"mapped",[12308,30423,12309]],[[127559,127559],"mapped",[12308,21213,12309]],[[127560,127560],"mapped",[12308,25943,12309]],[[127561,127567],"disallowed"],[[127568,127568],"mapped",[24471]],[[127569,127569],"mapped",[21487]],[[127570,127743],"disallowed"],[[127744,127776],"valid",[],"NV8"],[[127777,127788],"valid",[],"NV8"],[[127789,127791],"valid",[],"NV8"],[[127792,127797],"valid",[],"NV8"],[[127798,127798],"valid",[],"NV8"],[[127799,127868],"valid",[],"NV8"],[[127869,127869],"valid",[],"NV8"],[[127870,127871],"valid",[],"NV8"],[[127872,127891],"valid",[],"NV8"],[[127892,127903],"valid",[],"NV8"],[[127904,127940],"valid",[],"NV8"],[[127941,127941],"valid",[],"NV8"],[[127942,127946],"valid",[],"NV8"],[[127947,127950],"valid",[],"NV8"],[[127951,127955],"valid",[],"NV8"],[[127956,127967],"valid",[],"NV8"],[[127968,127984],"valid",[],"NV8"],[[127985,127991],"valid",[],"NV8"],[[127992,127999],"valid",[],"NV8"],[[128e3,128062],"valid",[],"NV8"],[[128063,128063],"valid",[],"NV8"],[[128064,128064],"valid",[],"NV8"],[[128065,128065],"valid",[],"NV8"],[[128066,128247],"valid",[],"NV8"],[[128248,128248],"valid",[],"NV8"],[[128249,128252],"valid",[],"NV8"],[[128253,128254],"valid",[],"NV8"],[[128255,128255],"valid",[],"NV8"],[[128256,128317],"valid",[],"NV8"],[[128318,128319],"valid",[],"NV8"],[[128320,128323],"valid",[],"NV8"],[[128324,128330],"valid",[],"NV8"],[[128331,128335],"valid",[],"NV8"],[[128336,128359],"valid",[],"NV8"],[[128360,128377],"valid",[],"NV8"],[[128378,128378],"disallowed"],[[128379,128419],"valid",[],"NV8"],[[128420,128420],"disallowed"],[[128421,128506],"valid",[],"NV8"],[[128507,128511],"valid",[],"NV8"],[[128512,128512],"valid",[],"NV8"],[[128513,128528],"valid",[],"NV8"],[[128529,128529],"valid",[],"NV8"],[[128530,128532],"valid",[],"NV8"],[[128533,128533],"valid",[],"NV8"],[[128534,128534],"valid",[],"NV8"],[[128535,128535],"valid",[],"NV8"],[[128536,128536],"valid",[],"NV8"],[[128537,128537],"valid",[],"NV8"],[[128538,128538],"valid",[],"NV8"],[[128539,128539],"valid",[],"NV8"],[[128540,128542],"valid",[],"NV8"],[[128543,128543],"valid",[],"NV8"],[[128544,128549],"valid",[],"NV8"],[[128550,128551],"valid",[],"NV8"],[[128552,128555],"valid",[],"NV8"],[[128556,128556],"valid",[],"NV8"],[[128557,128557],"valid",[],"NV8"],[[128558,128559],"valid",[],"NV8"],[[128560,128563],"valid",[],"NV8"],[[128564,128564],"valid",[],"NV8"],[[128565,128576],"valid",[],"NV8"],[[128577,128578],"valid",[],"NV8"],[[128579,128580],"valid",[],"NV8"],[[128581,128591],"valid",[],"NV8"],[[128592,128639],"valid",[],"NV8"],[[128640,128709],"valid",[],"NV8"],[[128710,128719],"valid",[],"NV8"],[[128720,128720],"valid",[],"NV8"],[[128721,128735],"disallowed"],[[128736,128748],"valid",[],"NV8"],[[128749,128751],"disallowed"],[[128752,128755],"valid",[],"NV8"],[[128756,128767],"disallowed"],[[128768,128883],"valid",[],"NV8"],[[128884,128895],"disallowed"],[[128896,128980],"valid",[],"NV8"],[[128981,129023],"disallowed"],[[129024,129035],"valid",[],"NV8"],[[129036,129039],"disallowed"],[[129040,129095],"valid",[],"NV8"],[[129096,129103],"disallowed"],[[129104,129113],"valid",[],"NV8"],[[129114,129119],"disallowed"],[[129120,129159],"valid",[],"NV8"],[[129160,129167],"disallowed"],[[129168,129197],"valid",[],"NV8"],[[129198,129295],"disallowed"],[[129296,129304],"valid",[],"NV8"],[[129305,129407],"disallowed"],[[129408,129412],"valid",[],"NV8"],[[129413,129471],"disallowed"],[[129472,129472],"valid",[],"NV8"],[[129473,131069],"disallowed"],[[131070,131071],"disallowed"],[[131072,173782],"valid"],[[173783,173823],"disallowed"],[[173824,177972],"valid"],[[177973,177983],"disallowed"],[[177984,178205],"valid"],[[178206,178207],"disallowed"],[[178208,183969],"valid"],[[183970,194559],"disallowed"],[[194560,194560],"mapped",[20029]],[[194561,194561],"mapped",[20024]],[[194562,194562],"mapped",[20033]],[[194563,194563],"mapped",[131362]],[[194564,194564],"mapped",[20320]],[[194565,194565],"mapped",[20398]],[[194566,194566],"mapped",[20411]],[[194567,194567],"mapped",[20482]],[[194568,194568],"mapped",[20602]],[[194569,194569],"mapped",[20633]],[[194570,194570],"mapped",[20711]],[[194571,194571],"mapped",[20687]],[[194572,194572],"mapped",[13470]],[[194573,194573],"mapped",[132666]],[[194574,194574],"mapped",[20813]],[[194575,194575],"mapped",[20820]],[[194576,194576],"mapped",[20836]],[[194577,194577],"mapped",[20855]],[[194578,194578],"mapped",[132380]],[[194579,194579],"mapped",[13497]],[[194580,194580],"mapped",[20839]],[[194581,194581],"mapped",[20877]],[[194582,194582],"mapped",[132427]],[[194583,194583],"mapped",[20887]],[[194584,194584],"mapped",[20900]],[[194585,194585],"mapped",[20172]],[[194586,194586],"mapped",[20908]],[[194587,194587],"mapped",[20917]],[[194588,194588],"mapped",[168415]],[[194589,194589],"mapped",[20981]],[[194590,194590],"mapped",[20995]],[[194591,194591],"mapped",[13535]],[[194592,194592],"mapped",[21051]],[[194593,194593],"mapped",[21062]],[[194594,194594],"mapped",[21106]],[[194595,194595],"mapped",[21111]],[[194596,194596],"mapped",[13589]],[[194597,194597],"mapped",[21191]],[[194598,194598],"mapped",[21193]],[[194599,194599],"mapped",[21220]],[[194600,194600],"mapped",[21242]],[[194601,194601],"mapped",[21253]],[[194602,194602],"mapped",[21254]],[[194603,194603],"mapped",[21271]],[[194604,194604],"mapped",[21321]],[[194605,194605],"mapped",[21329]],[[194606,194606],"mapped",[21338]],[[194607,194607],"mapped",[21363]],[[194608,194608],"mapped",[21373]],[[194609,194611],"mapped",[21375]],[[194612,194612],"mapped",[133676]],[[194613,194613],"mapped",[28784]],[[194614,194614],"mapped",[21450]],[[194615,194615],"mapped",[21471]],[[194616,194616],"mapped",[133987]],[[194617,194617],"mapped",[21483]],[[194618,194618],"mapped",[21489]],[[194619,194619],"mapped",[21510]],[[194620,194620],"mapped",[21662]],[[194621,194621],"mapped",[21560]],[[194622,194622],"mapped",[21576]],[[194623,194623],"mapped",[21608]],[[194624,194624],"mapped",[21666]],[[194625,194625],"mapped",[21750]],[[194626,194626],"mapped",[21776]],[[194627,194627],"mapped",[21843]],[[194628,194628],"mapped",[21859]],[[194629,194630],"mapped",[21892]],[[194631,194631],"mapped",[21913]],[[194632,194632],"mapped",[21931]],[[194633,194633],"mapped",[21939]],[[194634,194634],"mapped",[21954]],[[194635,194635],"mapped",[22294]],[[194636,194636],"mapped",[22022]],[[194637,194637],"mapped",[22295]],[[194638,194638],"mapped",[22097]],[[194639,194639],"mapped",[22132]],[[194640,194640],"mapped",[20999]],[[194641,194641],"mapped",[22766]],[[194642,194642],"mapped",[22478]],[[194643,194643],"mapped",[22516]],[[194644,194644],"mapped",[22541]],[[194645,194645],"mapped",[22411]],[[194646,194646],"mapped",[22578]],[[194647,194647],"mapped",[22577]],[[194648,194648],"mapped",[22700]],[[194649,194649],"mapped",[136420]],[[194650,194650],"mapped",[22770]],[[194651,194651],"mapped",[22775]],[[194652,194652],"mapped",[22790]],[[194653,194653],"mapped",[22810]],[[194654,194654],"mapped",[22818]],[[194655,194655],"mapped",[22882]],[[194656,194656],"mapped",[136872]],[[194657,194657],"mapped",[136938]],[[194658,194658],"mapped",[23020]],[[194659,194659],"mapped",[23067]],[[194660,194660],"mapped",[23079]],[[194661,194661],"mapped",[23e3]],[[194662,194662],"mapped",[23142]],[[194663,194663],"mapped",[14062]],[[194664,194664],"disallowed"],[[194665,194665],"mapped",[23304]],[[194666,194667],"mapped",[23358]],[[194668,194668],"mapped",[137672]],[[194669,194669],"mapped",[23491]],[[194670,194670],"mapped",[23512]],[[194671,194671],"mapped",[23527]],[[194672,194672],"mapped",[23539]],[[194673,194673],"mapped",[138008]],[[194674,194674],"mapped",[23551]],[[194675,194675],"mapped",[23558]],[[194676,194676],"disallowed"],[[194677,194677],"mapped",[23586]],[[194678,194678],"mapped",[14209]],[[194679,194679],"mapped",[23648]],[[194680,194680],"mapped",[23662]],[[194681,194681],"mapped",[23744]],[[194682,194682],"mapped",[23693]],[[194683,194683],"mapped",[138724]],[[194684,194684],"mapped",[23875]],[[194685,194685],"mapped",[138726]],[[194686,194686],"mapped",[23918]],[[194687,194687],"mapped",[23915]],[[194688,194688],"mapped",[23932]],[[194689,194689],"mapped",[24033]],[[194690,194690],"mapped",[24034]],[[194691,194691],"mapped",[14383]],[[194692,194692],"mapped",[24061]],[[194693,194693],"mapped",[24104]],[[194694,194694],"mapped",[24125]],[[194695,194695],"mapped",[24169]],[[194696,194696],"mapped",[14434]],[[194697,194697],"mapped",[139651]],[[194698,194698],"mapped",[14460]],[[194699,194699],"mapped",[24240]],[[194700,194700],"mapped",[24243]],[[194701,194701],"mapped",[24246]],[[194702,194702],"mapped",[24266]],[[194703,194703],"mapped",[172946]],[[194704,194704],"mapped",[24318]],[[194705,194706],"mapped",[140081]],[[194707,194707],"mapped",[33281]],[[194708,194709],"mapped",[24354]],[[194710,194710],"mapped",[14535]],[[194711,194711],"mapped",[144056]],[[194712,194712],"mapped",[156122]],[[194713,194713],"mapped",[24418]],[[194714,194714],"mapped",[24427]],[[194715,194715],"mapped",[14563]],[[194716,194716],"mapped",[24474]],[[194717,194717],"mapped",[24525]],[[194718,194718],"mapped",[24535]],[[194719,194719],"mapped",[24569]],[[194720,194720],"mapped",[24705]],[[194721,194721],"mapped",[14650]],[[194722,194722],"mapped",[14620]],[[194723,194723],"mapped",[24724]],[[194724,194724],"mapped",[141012]],[[194725,194725],"mapped",[24775]],[[194726,194726],"mapped",[24904]],[[194727,194727],"mapped",[24908]],[[194728,194728],"mapped",[24910]],[[194729,194729],"mapped",[24908]],[[194730,194730],"mapped",[24954]],[[194731,194731],"mapped",[24974]],[[194732,194732],"mapped",[25010]],[[194733,194733],"mapped",[24996]],[[194734,194734],"mapped",[25007]],[[194735,194735],"mapped",[25054]],[[194736,194736],"mapped",[25074]],[[194737,194737],"mapped",[25078]],[[194738,194738],"mapped",[25104]],[[194739,194739],"mapped",[25115]],[[194740,194740],"mapped",[25181]],[[194741,194741],"mapped",[25265]],[[194742,194742],"mapped",[25300]],[[194743,194743],"mapped",[25424]],[[194744,194744],"mapped",[142092]],[[194745,194745],"mapped",[25405]],[[194746,194746],"mapped",[25340]],[[194747,194747],"mapped",[25448]],[[194748,194748],"mapped",[25475]],[[194749,194749],"mapped",[25572]],[[194750,194750],"mapped",[142321]],[[194751,194751],"mapped",[25634]],[[194752,194752],"mapped",[25541]],[[194753,194753],"mapped",[25513]],[[194754,194754],"mapped",[14894]],[[194755,194755],"mapped",[25705]],[[194756,194756],"mapped",[25726]],[[194757,194757],"mapped",[25757]],[[194758,194758],"mapped",[25719]],[[194759,194759],"mapped",[14956]],[[194760,194760],"mapped",[25935]],[[194761,194761],"mapped",[25964]],[[194762,194762],"mapped",[143370]],[[194763,194763],"mapped",[26083]],[[194764,194764],"mapped",[26360]],[[194765,194765],"mapped",[26185]],[[194766,194766],"mapped",[15129]],[[194767,194767],"mapped",[26257]],[[194768,194768],"mapped",[15112]],[[194769,194769],"mapped",[15076]],[[194770,194770],"mapped",[20882]],[[194771,194771],"mapped",[20885]],[[194772,194772],"mapped",[26368]],[[194773,194773],"mapped",[26268]],[[194774,194774],"mapped",[32941]],[[194775,194775],"mapped",[17369]],[[194776,194776],"mapped",[26391]],[[194777,194777],"mapped",[26395]],[[194778,194778],"mapped",[26401]],[[194779,194779],"mapped",[26462]],[[194780,194780],"mapped",[26451]],[[194781,194781],"mapped",[144323]],[[194782,194782],"mapped",[15177]],[[194783,194783],"mapped",[26618]],[[194784,194784],"mapped",[26501]],[[194785,194785],"mapped",[26706]],[[194786,194786],"mapped",[26757]],[[194787,194787],"mapped",[144493]],[[194788,194788],"mapped",[26766]],[[194789,194789],"mapped",[26655]],[[194790,194790],"mapped",[26900]],[[194791,194791],"mapped",[15261]],[[194792,194792],"mapped",[26946]],[[194793,194793],"mapped",[27043]],[[194794,194794],"mapped",[27114]],[[194795,194795],"mapped",[27304]],[[194796,194796],"mapped",[145059]],[[194797,194797],"mapped",[27355]],[[194798,194798],"mapped",[15384]],[[194799,194799],"mapped",[27425]],[[194800,194800],"mapped",[145575]],[[194801,194801],"mapped",[27476]],[[194802,194802],"mapped",[15438]],[[194803,194803],"mapped",[27506]],[[194804,194804],"mapped",[27551]],[[194805,194805],"mapped",[27578]],[[194806,194806],"mapped",[27579]],[[194807,194807],"mapped",[146061]],[[194808,194808],"mapped",[138507]],[[194809,194809],"mapped",[146170]],[[194810,194810],"mapped",[27726]],[[194811,194811],"mapped",[146620]],[[194812,194812],"mapped",[27839]],[[194813,194813],"mapped",[27853]],[[194814,194814],"mapped",[27751]],[[194815,194815],"mapped",[27926]],[[194816,194816],"mapped",[27966]],[[194817,194817],"mapped",[28023]],[[194818,194818],"mapped",[27969]],[[194819,194819],"mapped",[28009]],[[194820,194820],"mapped",[28024]],[[194821,194821],"mapped",[28037]],[[194822,194822],"mapped",[146718]],[[194823,194823],"mapped",[27956]],[[194824,194824],"mapped",[28207]],[[194825,194825],"mapped",[28270]],[[194826,194826],"mapped",[15667]],[[194827,194827],"mapped",[28363]],[[194828,194828],"mapped",[28359]],[[194829,194829],"mapped",[147153]],[[194830,194830],"mapped",[28153]],[[194831,194831],"mapped",[28526]],[[194832,194832],"mapped",[147294]],[[194833,194833],"mapped",[147342]],[[194834,194834],"mapped",[28614]],[[194835,194835],"mapped",[28729]],[[194836,194836],"mapped",[28702]],[[194837,194837],"mapped",[28699]],[[194838,194838],"mapped",[15766]],[[194839,194839],"mapped",[28746]],[[194840,194840],"mapped",[28797]],[[194841,194841],"mapped",[28791]],[[194842,194842],"mapped",[28845]],[[194843,194843],"mapped",[132389]],[[194844,194844],"mapped",[28997]],[[194845,194845],"mapped",[148067]],[[194846,194846],"mapped",[29084]],[[194847,194847],"disallowed"],[[194848,194848],"mapped",[29224]],[[194849,194849],"mapped",[29237]],[[194850,194850],"mapped",[29264]],[[194851,194851],"mapped",[149e3]],[[194852,194852],"mapped",[29312]],[[194853,194853],"mapped",[29333]],[[194854,194854],"mapped",[149301]],[[194855,194855],"mapped",[149524]],[[194856,194856],"mapped",[29562]],[[194857,194857],"mapped",[29579]],[[194858,194858],"mapped",[16044]],[[194859,194859],"mapped",[29605]],[[194860,194861],"mapped",[16056]],[[194862,194862],"mapped",[29767]],[[194863,194863],"mapped",[29788]],[[194864,194864],"mapped",[29809]],[[194865,194865],"mapped",[29829]],[[194866,194866],"mapped",[29898]],[[194867,194867],"mapped",[16155]],[[194868,194868],"mapped",[29988]],[[194869,194869],"mapped",[150582]],[[194870,194870],"mapped",[30014]],[[194871,194871],"mapped",[150674]],[[194872,194872],"mapped",[30064]],[[194873,194873],"mapped",[139679]],[[194874,194874],"mapped",[30224]],[[194875,194875],"mapped",[151457]],[[194876,194876],"mapped",[151480]],[[194877,194877],"mapped",[151620]],[[194878,194878],"mapped",[16380]],[[194879,194879],"mapped",[16392]],[[194880,194880],"mapped",[30452]],[[194881,194881],"mapped",[151795]],[[194882,194882],"mapped",[151794]],[[194883,194883],"mapped",[151833]],[[194884,194884],"mapped",[151859]],[[194885,194885],"mapped",[30494]],[[194886,194887],"mapped",[30495]],[[194888,194888],"mapped",[30538]],[[194889,194889],"mapped",[16441]],[[194890,194890],"mapped",[30603]],[[194891,194891],"mapped",[16454]],[[194892,194892],"mapped",[16534]],[[194893,194893],"mapped",[152605]],[[194894,194894],"mapped",[30798]],[[194895,194895],"mapped",[30860]],[[194896,194896],"mapped",[30924]],[[194897,194897],"mapped",[16611]],[[194898,194898],"mapped",[153126]],[[194899,194899],"mapped",[31062]],[[194900,194900],"mapped",[153242]],[[194901,194901],"mapped",[153285]],[[194902,194902],"mapped",[31119]],[[194903,194903],"mapped",[31211]],[[194904,194904],"mapped",[16687]],[[194905,194905],"mapped",[31296]],[[194906,194906],"mapped",[31306]],[[194907,194907],"mapped",[31311]],[[194908,194908],"mapped",[153980]],[[194909,194910],"mapped",[154279]],[[194911,194911],"disallowed"],[[194912,194912],"mapped",[16898]],[[194913,194913],"mapped",[154539]],[[194914,194914],"mapped",[31686]],[[194915,194915],"mapped",[31689]],[[194916,194916],"mapped",[16935]],[[194917,194917],"mapped",[154752]],[[194918,194918],"mapped",[31954]],[[194919,194919],"mapped",[17056]],[[194920,194920],"mapped",[31976]],[[194921,194921],"mapped",[31971]],[[194922,194922],"mapped",[32e3]],[[194923,194923],"mapped",[155526]],[[194924,194924],"mapped",[32099]],[[194925,194925],"mapped",[17153]],[[194926,194926],"mapped",[32199]],[[194927,194927],"mapped",[32258]],[[194928,194928],"mapped",[32325]],[[194929,194929],"mapped",[17204]],[[194930,194930],"mapped",[156200]],[[194931,194931],"mapped",[156231]],[[194932,194932],"mapped",[17241]],[[194933,194933],"mapped",[156377]],[[194934,194934],"mapped",[32634]],[[194935,194935],"mapped",[156478]],[[194936,194936],"mapped",[32661]],[[194937,194937],"mapped",[32762]],[[194938,194938],"mapped",[32773]],[[194939,194939],"mapped",[156890]],[[194940,194940],"mapped",[156963]],[[194941,194941],"mapped",[32864]],[[194942,194942],"mapped",[157096]],[[194943,194943],"mapped",[32880]],[[194944,194944],"mapped",[144223]],[[194945,194945],"mapped",[17365]],[[194946,194946],"mapped",[32946]],[[194947,194947],"mapped",[33027]],[[194948,194948],"mapped",[17419]],[[194949,194949],"mapped",[33086]],[[194950,194950],"mapped",[23221]],[[194951,194951],"mapped",[157607]],[[194952,194952],"mapped",[157621]],[[194953,194953],"mapped",[144275]],[[194954,194954],"mapped",[144284]],[[194955,194955],"mapped",[33281]],[[194956,194956],"mapped",[33284]],[[194957,194957],"mapped",[36766]],[[194958,194958],"mapped",[17515]],[[194959,194959],"mapped",[33425]],[[194960,194960],"mapped",[33419]],[[194961,194961],"mapped",[33437]],[[194962,194962],"mapped",[21171]],[[194963,194963],"mapped",[33457]],[[194964,194964],"mapped",[33459]],[[194965,194965],"mapped",[33469]],[[194966,194966],"mapped",[33510]],[[194967,194967],"mapped",[158524]],[[194968,194968],"mapped",[33509]],[[194969,194969],"mapped",[33565]],[[194970,194970],"mapped",[33635]],[[194971,194971],"mapped",[33709]],[[194972,194972],"mapped",[33571]],[[194973,194973],"mapped",[33725]],[[194974,194974],"mapped",[33767]],[[194975,194975],"mapped",[33879]],[[194976,194976],"mapped",[33619]],[[194977,194977],"mapped",[33738]],[[194978,194978],"mapped",[33740]],[[194979,194979],"mapped",[33756]],[[194980,194980],"mapped",[158774]],[[194981,194981],"mapped",[159083]],[[194982,194982],"mapped",[158933]],[[194983,194983],"mapped",[17707]],[[194984,194984],"mapped",[34033]],[[194985,194985],"mapped",[34035]],[[194986,194986],"mapped",[34070]],[[194987,194987],"mapped",[160714]],[[194988,194988],"mapped",[34148]],[[194989,194989],"mapped",[159532]],[[194990,194990],"mapped",[17757]],[[194991,194991],"mapped",[17761]],[[194992,194992],"mapped",[159665]],[[194993,194993],"mapped",[159954]],[[194994,194994],"mapped",[17771]],[[194995,194995],"mapped",[34384]],[[194996,194996],"mapped",[34396]],[[194997,194997],"mapped",[34407]],[[194998,194998],"mapped",[34409]],[[194999,194999],"mapped",[34473]],[[195e3,195e3],"mapped",[34440]],[[195001,195001],"mapped",[34574]],[[195002,195002],"mapped",[34530]],[[195003,195003],"mapped",[34681]],[[195004,195004],"mapped",[34600]],[[195005,195005],"mapped",[34667]],[[195006,195006],"mapped",[34694]],[[195007,195007],"disallowed"],[[195008,195008],"mapped",[34785]],[[195009,195009],"mapped",[34817]],[[195010,195010],"mapped",[17913]],[[195011,195011],"mapped",[34912]],[[195012,195012],"mapped",[34915]],[[195013,195013],"mapped",[161383]],[[195014,195014],"mapped",[35031]],[[195015,195015],"mapped",[35038]],[[195016,195016],"mapped",[17973]],[[195017,195017],"mapped",[35066]],[[195018,195018],"mapped",[13499]],[[195019,195019],"mapped",[161966]],[[195020,195020],"mapped",[162150]],[[195021,195021],"mapped",[18110]],[[195022,195022],"mapped",[18119]],[[195023,195023],"mapped",[35488]],[[195024,195024],"mapped",[35565]],[[195025,195025],"mapped",[35722]],[[195026,195026],"mapped",[35925]],[[195027,195027],"mapped",[162984]],[[195028,195028],"mapped",[36011]],[[195029,195029],"mapped",[36033]],[[195030,195030],"mapped",[36123]],[[195031,195031],"mapped",[36215]],[[195032,195032],"mapped",[163631]],[[195033,195033],"mapped",[133124]],[[195034,195034],"mapped",[36299]],[[195035,195035],"mapped",[36284]],[[195036,195036],"mapped",[36336]],[[195037,195037],"mapped",[133342]],[[195038,195038],"mapped",[36564]],[[195039,195039],"mapped",[36664]],[[195040,195040],"mapped",[165330]],[[195041,195041],"mapped",[165357]],[[195042,195042],"mapped",[37012]],[[195043,195043],"mapped",[37105]],[[195044,195044],"mapped",[37137]],[[195045,195045],"mapped",[165678]],[[195046,195046],"mapped",[37147]],[[195047,195047],"mapped",[37432]],[[195048,195048],"mapped",[37591]],[[195049,195049],"mapped",[37592]],[[195050,195050],"mapped",[37500]],[[195051,195051],"mapped",[37881]],[[195052,195052],"mapped",[37909]],[[195053,195053],"mapped",[166906]],[[195054,195054],"mapped",[38283]],[[195055,195055],"mapped",[18837]],[[195056,195056],"mapped",[38327]],[[195057,195057],"mapped",[167287]],[[195058,195058],"mapped",[18918]],[[195059,195059],"mapped",[38595]],[[195060,195060],"mapped",[23986]],[[195061,195061],"mapped",[38691]],[[195062,195062],"mapped",[168261]],[[195063,195063],"mapped",[168474]],[[195064,195064],"mapped",[19054]],[[195065,195065],"mapped",[19062]],[[195066,195066],"mapped",[38880]],[[195067,195067],"mapped",[168970]],[[195068,195068],"mapped",[19122]],[[195069,195069],"mapped",[169110]],[[195070,195071],"mapped",[38923]],[[195072,195072],"mapped",[38953]],[[195073,195073],"mapped",[169398]],[[195074,195074],"mapped",[39138]],[[195075,195075],"mapped",[19251]],[[195076,195076],"mapped",[39209]],[[195077,195077],"mapped",[39335]],[[195078,195078],"mapped",[39362]],[[195079,195079],"mapped",[39422]],[[195080,195080],"mapped",[19406]],[[195081,195081],"mapped",[170800]],[[195082,195082],"mapped",[39698]],[[195083,195083],"mapped",[4e4]],[[195084,195084],"mapped",[40189]],[[195085,195085],"mapped",[19662]],[[195086,195086],"mapped",[19693]],[[195087,195087],"mapped",[40295]],[[195088,195088],"mapped",[172238]],[[195089,195089],"mapped",[19704]],[[195090,195090],"mapped",[172293]],[[195091,195091],"mapped",[172558]],[[195092,195092],"mapped",[172689]],[[195093,195093],"mapped",[40635]],[[195094,195094],"mapped",[19798]],[[195095,195095],"mapped",[40697]],[[195096,195096],"mapped",[40702]],[[195097,195097],"mapped",[40709]],[[195098,195098],"mapped",[40719]],[[195099,195099],"mapped",[40726]],[[195100,195100],"mapped",[40763]],[[195101,195101],"mapped",[173568]],[[195102,196605],"disallowed"],[[196606,196607],"disallowed"],[[196608,262141],"disallowed"],[[262142,262143],"disallowed"],[[262144,327677],"disallowed"],[[327678,327679],"disallowed"],[[327680,393213],"disallowed"],[[393214,393215],"disallowed"],[[393216,458749],"disallowed"],[[458750,458751],"disallowed"],[[458752,524285],"disallowed"],[[524286,524287],"disallowed"],[[524288,589821],"disallowed"],[[589822,589823],"disallowed"],[[589824,655357],"disallowed"],[[655358,655359],"disallowed"],[[655360,720893],"disallowed"],[[720894,720895],"disallowed"],[[720896,786429],"disallowed"],[[786430,786431],"disallowed"],[[786432,851965],"disallowed"],[[851966,851967],"disallowed"],[[851968,917501],"disallowed"],[[917502,917503],"disallowed"],[[917504,917504],"disallowed"],[[917505,917505],"disallowed"],[[917506,917535],"disallowed"],[[917536,917631],"disallowed"],[[917632,917759],"disallowed"],[[917760,917999],"ignored"],[[918e3,983037],"disallowed"],[[983038,983039],"disallowed"],[[983040,1048573],"disallowed"],[[1048574,1048575],"disallowed"],[[1048576,1114109],"disallowed"],[[1114110,1114111],"disallowed"]],hasRequiredTr46,hasRequiredUrlStateMachine,hasRequiredURLImpl,hasRequiredURL,hasRequiredPublicApi;function requireTr46(){if(hasRequiredTr46)return tr46;hasRequiredTr46=1;var e=require$$0__default$6.default,t=require$$1$1,r={TRANSITIONAL:0,NONTRANSITIONAL:1};function n(e){return e.split("\0").map(function(e){return e.normalize("NFC")}).join("\0")}function o(e){for(var r=0,n=t.length-1;r<=n;){var o=Math.floor((r+n)/2),i=t[o];if(i[0][0]<=e&&i[0][1]>=e)return i;i[0][0]>e?n=o-1:r=o+1}return null}var i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function a(e){return e.replace(i,"_").length}var s=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function l(t,i){"xn--"===t.substr(0,4)&&(t=e.toUnicode(t));var l=!1;(n(t)!==t||"-"===t[3]&&"-"===t[4]||"-"===t[0]||"-"===t[t.length-1]||-1!==t.indexOf(".")||0===t.search(s))&&(l=!0);for(var d=a(t),u=0;u<d;++u){var c=o(t.codePointAt(u));if(p===r.TRANSITIONAL&&"valid"!==c[1]||p===r.NONTRANSITIONAL&&"valid"!==c[1]&&"deviation"!==c[1]){l=!0;break}}return{label:t,error:l}}function p(e,t,i){var s=function(e,t,n){for(var i=!1,s="",l=a(e),p=0;p<l;++p){var d=e.codePointAt(p),u=o(d);switch(u[1]){case"disallowed":i=!0,s+=String.fromCodePoint(d);break;case"ignored":break;case"mapped":s+=String.fromCodePoint.apply(String,u[2]);break;case"deviation":s+=n===r.TRANSITIONAL?String.fromCodePoint.apply(String,u[2]):String.fromCodePoint(d);break;case"valid":s+=String.fromCodePoint(d);break;case"disallowed_STD3_mapped":t?(i=!0,s+=String.fromCodePoint(d)):s+=String.fromCodePoint.apply(String,u[2]);break;case"disallowed_STD3_valid":t&&(i=!0),s+=String.fromCodePoint(d)}}return{string:s,error:i}}(e,t,i);s.string=n(s.string);for(var p=s.string.split("."),d=0;d<p.length;++d)try{var u=l(p[d]);p[d]=u.label,s.error=s.error||u.error}catch(e){s.error=!0}return{string:p.join("."),error:s.error}}return tr46.toASCII=function(t,r,n,o){var i=p(t,r,n),a=i.string.split(".");if(a=a.map(function(t){try{return e.toASCII(t)}catch(e){return i.error=!0,t}}),o){var s=a.slice(0,a.length-1).join(".").length;(s.length>253||0===s.length)&&(i.error=!0);for(var l=0;l<a.length;++l)if(a.length>63||0===a.length){i.error=!0;break}}return i.error?null:a.join(".")},tr46.toUnicode=function(e,t){var n=p(e,t,r.NONTRANSITIONAL);return{domain:n.string,error:n.error}},tr46.PROCESSING_OPTIONS=r,tr46}function requireUrlStateMachine(){return hasRequiredUrlStateMachine||(hasRequiredUrlStateMachine=1,function(e){const t=require$$0__default$6.default,r=requireTr46(),n={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},o=Symbol("failure");function i(e){return t.ucs2.decode(e).length}function a(e,t){const r=e[t];return isNaN(r)?void 0:String.fromCodePoint(r)}function s(e){return e>=48&&e<=57}function l(e){return e>=65&&e<=90||e>=97&&e<=122}function p(e){return s(e)||e>=65&&e<=70||e>=97&&e<=102}function d(e){return"."===e||"%2e"===e.toLowerCase()}function u(e){return 2===e.length&&l(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function c(e){return void 0!==n[e]}function f(e){return c(e.scheme)}function h(e){let t=e.toString(16).toUpperCase();return 1===t.length&&(t="0"+t),"%"+t}function m(e){return e<=31||e>126}const g=new Set([32,34,35,60,62,63,96,123,125]);function y(e){return m(e)||g.has(e)}const v=new Set([47,58,59,61,64,91,92,93,94,124]);function b(e){return y(e)||v.has(e)}function O(e,t){const r=String.fromCodePoint(e);return t(e)?function(e){const t=new Buffer(e);let r="";for(let e=0;e<t.length;++e)r+=h(t[e]);return r}(r):r}function w(e){let t=10;if(e.length>=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),t=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),t=8),""===e)return 0;return(10===t?/[^0-9]/:16===t?/[^0-9A-Fa-f]/:/[^0-7]/).test(e)?o:parseInt(e,t)}function S(e,n){if("["===e[0])return"]"!==e[e.length-1]?o:function(e){const r=[0,0,0,0,0,0,0,0];let n=0,i=null,l=0;if(58===(e=t.ucs2.decode(e))[l]){if(58!==e[l+1])return o;l+=2,++n,i=n}for(;l<e.length;){if(8===n)return o;if(58===e[l]){if(null!==i)return o;++l,++n,i=n;continue}let t=0,d=0;for(;d<4&&p(e[l]);)t=16*t+parseInt(a(e,l),16),++l,++d;if(46===e[l]){if(0===d)return o;if(l-=d,n>6)return o;let t=0;for(;void 0!==e[l];){let i=null;if(t>0){if(!(46===e[l]&&t<4))return o;++l}if(!s(e[l]))return o;for(;s(e[l]);){const t=parseInt(a(e,l));if(null===i)i=t;else{if(0===i)return o;i=10*i+t}if(i>255)return o;++l}r[n]=256*r[n]+i,++t,2!==t&&4!==t||++n}if(4!==t)return o;break}if(58===e[l]){if(++l,void 0===e[l])return o}else if(void 0!==e[l])return o;r[n]=t,++n}if(null!==i){let e=n-i;for(n=7;0!==n&&e>0;){const t=r[i+e-1];r[i+e-1]=r[n],r[n]=t,--n,--e}}else if(null===i&&8!==n)return o;return r}(e.substring(1,e.length-1));if(!n)return function(e){if(r=e,-1!==r.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/))return o;var r;let n="";const i=t.ucs2.decode(e);for(let e=0;e<i.length;++e)n+=O(i[e],m);return n}(e);const i=function(e){const t=new Buffer(e),r=[];for(let e=0;e<t.length;++e)37!==t[e]?r.push(t[e]):37===t[e]&&p(t[e+1])&&p(t[e+2])?(r.push(parseInt(t.slice(e+1,e+3).toString(),16)),e+=2):r.push(t[e]);return new Buffer(r).toString()}(e),l=r.toASCII(i,!1,r.PROCESSING_OPTIONS.NONTRANSITIONAL,!1);if(null===l)return o;if(-1!==l.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/))return o;const d=function(e){const t=e.split(".");if(""===t[t.length-1]&&t.length>1&&t.pop(),t.length>4)return e;const r=[];for(const n of t){if(""===n)return e;const t=w(n);if(t===o)return e;r.push(t)}for(let e=0;e<r.length-1;++e)if(r[e]>255)return o;if(r[r.length-1]>=Math.pow(256,5-r.length))return o;let n=r.pop(),i=0;for(const e of r)n+=e*Math.pow(256,3-i),++i;return n}(l);return"number"==typeof d||d===o?d:l}function _(e){return"number"==typeof e?function(e){let t="",r=e;for(let e=1;e<=4;++e)t=String(r%256)+t,4!==e&&(t="."+t),r=Math.floor(r/256);return t}(e):e instanceof Array?"["+function(e){let t="";const r=function(e){let t=null,r=1,n=null,o=0;for(let i=0;i<e.length;++i)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),{idx:t,len:r}}(e).idx;let n=!1;for(let o=0;o<=7;++o)if(!n||0!==e[o]){if(n&&(n=!1),r===o){t+=0===o?"::":":",n=!0;continue}t+=e[o].toString(16),7!==o&&(t+=":")}return t}(e)+"]":e}function P(e){const t=e.path;var r;0!==t.length&&("file"===e.scheme&&1===t.length&&(r=t[0],/^[A-Za-z]:$/.test(r))||t.pop())}function E(e){return""!==e.username||""!==e.password}function T(e,r,n,i,a){if(this.pointer=0,this.input=e,this.base=r||null,this.encodingOverride=n||"utf-8",this.stateOverride=a,this.url=i,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};const e=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const s=function(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}(this.input);for(s!==this.input&&(this.parseError=!0),this.input=s,this.state=a||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=t.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],t=isNaN(e)?void 0:String.fromCodePoint(e),r=this["parse "+this.state](e,t);if(!r)break;if(r===o){this.failure=!0;break}}}T.prototype["parse scheme start"]=function(e,t){if(l(e))this.buffer+=t.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,o;this.state="no scheme",--this.pointer}return!0},T.prototype["parse scheme"]=function(e,t){if(function(e){return l(e)||s(e)}(e)||43===e||45===e||46===e)this.buffer+=t.toLowerCase();else if(58===e){if(this.stateOverride){if(f(this.url)&&!c(this.buffer))return!1;if(!f(this.url)&&c(this.buffer))return!1;if((E(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&(""===this.url.host||null===this.url.host))return!1}if(this.url.scheme=this.buffer,this.buffer="",this.stateOverride)return!1;"file"===this.url.scheme?(47===this.input[this.pointer+1]&&47===this.input[this.pointer+2]||(this.parseError=!0),this.state="file"):f(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":f(this.url)?this.state="special authority slashes":47===this.input[this.pointer+1]?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else{if(this.stateOverride)return this.parseError=!0,o;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},T.prototype["parse no scheme"]=function(e){return null===this.base||this.base.cannotBeABaseURL&&35!==e?o:(this.base.cannotBeABaseURL&&35===e?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},T.prototype["parse special relative or authority"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},T.prototype["parse path or authority"]=function(e){return 47===e?this.state="authority":(this.state="path",--this.pointer),!0},T.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,isNaN(e)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):47===e?this.state="relative slash":63===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):f(this.url)&&92===e?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},T.prototype["parse relative slash"]=function(e){return!f(this.url)||47!==e&&92!==e?47===e?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(92===e&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},T.prototype["parse special authority slashes"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},T.prototype["parse special authority ignore slashes"]=function(e){return 47!==e&&92!==e?(this.state="authority",--this.pointer):this.parseError=!0,!0},T.prototype["parse authority"]=function(e,t){if(64===e){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;const e=i(this.buffer);for(let t=0;t<e;++t){const e=this.buffer.codePointAt(t);if(58===e&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const r=O(e,b);this.passwordTokenSeenFlag?this.url.password+=r:this.url.username+=r}this.buffer=""}else if(isNaN(e)||47===e||63===e||35===e||f(this.url)&&92===e){if(this.atFlag&&""===this.buffer)return this.parseError=!0,o;this.pointer-=i(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=t;return!0},T.prototype["parse hostname"]=T.prototype["parse host"]=function(e,t){if(this.stateOverride&&"file"===this.url.scheme)--this.pointer,this.state="file host";else if(58!==e||this.arrFlag)if(isNaN(e)||47===e||63===e||35===e||f(this.url)&&92===e){if(--this.pointer,f(this.url)&&""===this.buffer)return this.parseError=!0,o;if(this.stateOverride&&""===this.buffer&&(E(this.url)||null!==this.url.port))return this.parseError=!0,!1;const e=S(this.buffer,f(this.url));if(e===o)return o;if(this.url.host=e,this.buffer="",this.state="path start",this.stateOverride)return!1}else 91===e?this.arrFlag=!0:93===e&&(this.arrFlag=!1),this.buffer+=t;else{if(""===this.buffer)return this.parseError=!0,o;const e=S(this.buffer,f(this.url));if(e===o)return o;if(this.url.host=e,this.buffer="",this.state="port","hostname"===this.stateOverride)return!1}return!0},T.prototype["parse port"]=function(e,t){if(s(e))this.buffer+=t;else{if(!(isNaN(e)||47===e||63===e||35===e||f(this.url)&&92===e||this.stateOverride))return this.parseError=!0,o;if(""!==this.buffer){const e=parseInt(this.buffer);if(e>Math.pow(2,16)-1)return this.parseError=!0,o;this.url.port=e===(r=this.url.scheme,n[r])?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}var r;return!0};const C=new Set([47,92,63,35]);T.prototype["parse file"]=function(e){var t,r;return this.url.scheme="file",47===e||92===e?(92===e&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?isNaN(e)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):63===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(this.input.length-this.pointer-1==0||(t=e,r=this.input[this.pointer+1],!l(t)||58!==r&&124!==r)||this.input.length-this.pointer-1>=2&&!C.has(this.input[this.pointer+2])?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),P(this.url)):this.parseError=!0,this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},T.prototype["parse file slash"]=function(e){var t;return 47===e||92===e?(92===e&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(2===(t=this.base.path[0]).length&&l(t.codePointAt(0))&&":"===t[1]?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0},T.prototype["parse file host"]=function(e,t){if(isNaN(e)||47===e||92===e||63===e||35===e)if(--this.pointer,!this.stateOverride&&u(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=S(this.buffer,f(this.url));if(e===o)return o;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=t;return!0},T.prototype["parse path start"]=function(e){return f(this.url)?(92===e&&(this.parseError=!0),this.state="path",47!==e&&92!==e&&--this.pointer):this.stateOverride||63!==e?this.stateOverride||35!==e?void 0!==e&&(this.state="path",47!==e&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},T.prototype["parse path"]=function(e){if(isNaN(e)||47===e||f(this.url)&&92===e||!this.stateOverride&&(63===e||35===e)){if(f(this.url)&&92===e&&(this.parseError=!0),".."===(t=(t=this.buffer).toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t?(P(this.url),47===e||f(this.url)&&92===e||this.url.path.push("")):!d(this.buffer)||47===e||f(this.url)&&92===e?d(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&u(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="","file"===this.url.scheme&&(void 0===e||63===e||35===e))for(;this.url.path.length>1&&""===this.url.path[0];)this.parseError=!0,this.url.path.shift();63===e&&(this.url.query="",this.state="query"),35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||p(this.input[this.pointer+1])&&p(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=O(e,y);var t;return!0},T.prototype["parse cannot-be-a-base-URL path"]=function(e){return 63===e?(this.url.query="",this.state="query"):35===e?(this.url.fragment="",this.state="fragment"):(isNaN(e)||37===e||(this.parseError=!0),37!==e||p(this.input[this.pointer+1])&&p(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path[0]=this.url.path[0]+O(e,m))),!0},T.prototype["parse query"]=function(e,t){if(isNaN(e)||!this.stateOverride&&35===e){f(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8");const t=new Buffer(this.buffer);for(let e=0;e<t.length;++e)t[e]<33||t[e]>126||34===t[e]||35===t[e]||60===t[e]||62===t[e]?this.url.query+=h(t[e]):this.url.query+=String.fromCodePoint(t[e]);this.buffer="",35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||p(this.input[this.pointer+1])&&p(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=t;return!0},T.prototype["parse fragment"]=function(e){return isNaN(e)||(0===e?this.parseError=!0:(37!==e||p(this.input[this.pointer+1])&&p(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=O(e,m))),!0},e.exports.serializeURL=function(e,t){let r=e.scheme+":";if(null!==e.host?(r+="//",""===e.username&&""===e.password||(r+=e.username,""!==e.password&&(r+=":"+e.password),r+="@"),r+=_(e.host),null!==e.port&&(r+=":"+e.port)):null===e.host&&"file"===e.scheme&&(r+="//"),e.cannotBeABaseURL)r+=e.path[0];else for(const t of e.path)r+="/"+t;return null!==e.query&&(r+="?"+e.query),t||null===e.fragment||(r+="#"+e.fragment),r},e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(t.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(e){let t=e.scheme+"://";return t+=_(e.host),null!==e.port&&(t+=":"+e.port),t}({scheme:t.scheme,host:t.host,port:t.port});case"file":return"file://";default:return"null"}},e.exports.basicURLParse=function(e,t){void 0===t&&(t={});const r=new T(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);return r.failure?"failure":r.url},e.exports.setTheUsername=function(e,r){e.username="";const n=t.ucs2.decode(r);for(let t=0;t<n.length;++t)e.username+=O(n[t],b)},e.exports.setThePassword=function(e,r){e.password="";const n=t.ucs2.decode(r);for(let t=0;t<n.length;++t)e.password+=O(n[t],b)},e.exports.serializeHost=_,e.exports.cannotHaveAUsernamePasswordPort=function(e){return null===e.host||""===e.host||e.cannotBeABaseURL||"file"===e.scheme},e.exports.serializeInteger=function(e){return String(e)},e.exports.parseURL=function(t,r){return void 0===r&&(r={}),e.exports.basicURLParse(t,{baseURL:r.baseURL,encodingOverride:r.encodingOverride})}}(urlStateMachine)),urlStateMachine.exports}function requireURLImpl(){if(hasRequiredURLImpl)return URLImpl;hasRequiredURLImpl=1;const e=requireUrlStateMachine();return URLImpl.implementation=class{constructor(t){const r=t[0],n=t[1];let o=null;if(void 0!==n&&(o=e.basicURLParse(n),"failure"===o))throw new TypeError("Invalid base URL");const i=e.basicURLParse(r,{baseURL:o});if("failure"===i)throw new TypeError("Invalid URL");this._url=i}get href(){return e.serializeURL(this._url)}set href(t){const r=e.basicURLParse(t);if("failure"===r)throw new TypeError("Invalid URL");this._url=r}get origin(){return e.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(t){e.basicURLParse(t+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(t){e.cannotHaveAUsernamePasswordPort(this._url)||e.setTheUsername(this._url,t)}get password(){return this._url.password}set password(t){e.cannotHaveAUsernamePasswordPort(this._url)||e.setThePassword(this._url,t)}get host(){const t=this._url;return null===t.host?"":null===t.port?e.serializeHost(t.host):e.serializeHost(t.host)+":"+e.serializeInteger(t.port)}set host(t){this._url.cannotBeABaseURL||e.basicURLParse(t,{url:this._url,stateOverride:"host"})}get hostname(){return null===this._url.host?"":e.serializeHost(this._url.host)}set hostname(t){this._url.cannotBeABaseURL||e.basicURLParse(t,{url:this._url,stateOverride:"hostname"})}get port(){return null===this._url.port?"":e.serializeInteger(this._url.port)}set port(t){e.cannotHaveAUsernamePasswordPort(this._url)||(""===t?this._url.port=null:e.basicURLParse(t,{url:this._url,stateOverride:"port"}))}get pathname(){return this._url.cannotBeABaseURL?this._url.path[0]:0===this._url.path.length?"":"/"+this._url.path.join("/")}set pathname(t){this._url.cannotBeABaseURL||(this._url.path=[],e.basicURLParse(t,{url:this._url,stateOverride:"path start"}))}get search(){return null===this._url.query||""===this._url.query?"":"?"+this._url.query}set search(t){const r=this._url;if(""===t)return void(r.query=null);const n="?"===t[0]?t.substring(1):t;r.query="",e.basicURLParse(n,{url:r,stateOverride:"query"})}get hash(){return null===this._url.fragment||""===this._url.fragment?"":"#"+this._url.fragment}set hash(t){if(""===t)return void(this._url.fragment=null);const r="#"===t[0]?t.substring(1):t;this._url.fragment="",e.basicURLParse(r,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}},URLImpl}function requireURL(){return hasRequiredURL||(hasRequiredURL=1,function(e){const t=requireLib(),r=requireUtils(),n=requireURLImpl(),o=r.implSymbol;function i(r){if(!this||this[o]||!(this instanceof i))throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");if(arguments.length<1)throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.");const n=[];for(let e=0;e<arguments.length&&e<2;++e)n[e]=arguments[e];n[0]=t.USVString(n[0]),void 0!==n[1]&&(n[1]=t.USVString(n[1])),e.exports.setup(this,n)}i.prototype.toJSON=function(){if(!this||!e.exports.is(this))throw new TypeError("Illegal invocation");const t=[];for(let e=0;e<arguments.length&&e<0;++e)t[e]=arguments[e];return this[o].toJSON.apply(this[o],t)},Object.defineProperty(i.prototype,"href",{get(){return this[o].href},set(e){e=t.USVString(e),this[o].href=e},enumerable:!0,configurable:!0}),i.prototype.toString=function(){if(!this||!e.exports.is(this))throw new TypeError("Illegal invocation");return this.href},Object.defineProperty(i.prototype,"origin",{get(){return this[o].origin},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"protocol",{get(){return this[o].protocol},set(e){e=t.USVString(e),this[o].protocol=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"username",{get(){return this[o].username},set(e){e=t.USVString(e),this[o].username=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"password",{get(){return this[o].password},set(e){e=t.USVString(e),this[o].password=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"host",{get(){return this[o].host},set(e){e=t.USVString(e),this[o].host=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hostname",{get(){return this[o].hostname},set(e){e=t.USVString(e),this[o].hostname=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"port",{get(){return this[o].port},set(e){e=t.USVString(e),this[o].port=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pathname",{get(){return this[o].pathname},set(e){e=t.USVString(e),this[o].pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"search",{get(){return this[o].search},set(e){e=t.USVString(e),this[o].search=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hash",{get(){return this[o].hash},set(e){e=t.USVString(e),this[o].hash=e},enumerable:!0,configurable:!0}),e.exports={is:e=>!!e&&e[o]instanceof n.implementation,create(e,t){let r=Object.create(i.prototype);return this.setup(r,e,t),r},setup(e,t,i){i||(i={}),i.wrapper=e,e[o]=new n.implementation(t,i),e[o][r.wrapperSymbol]=e},interface:i,expose:{Window:{URL:i},Worker:{URL:i}}}}(URL$2)),URL$2.exports}function requirePublicApi(){return hasRequiredPublicApi||(hasRequiredPublicApi=1,publicApi.URL=requireURL().interface,publicApi.serializeURL=requireUrlStateMachine().serializeURL,publicApi.serializeURLOrigin=requireUrlStateMachine().serializeURLOrigin,publicApi.basicURLParse=requireUrlStateMachine().basicURLParse,publicApi.setTheUsername=requireUrlStateMachine().setTheUsername,publicApi.setThePassword=requireUrlStateMachine().setThePassword,publicApi.serializeHost=requireUrlStateMachine().serializeHost,publicApi.serializeInteger=requireUrlStateMachine().serializeInteger,publicApi.parseURL=requireUrlStateMachine().parseURL),publicApi}var publicApiExports=requirePublicApi(),whatwgUrl=getDefaultExportFromCjs(publicApiExports);const Readable=Stream__default.default.Readable,BUFFER=Symbol("buffer"),TYPE=Symbol("type");class Blob{constructor(){this[TYPE]="";const e=arguments[0],t=arguments[1],r=[];let n=0;if(e){const t=e,o=Number(t.length);for(let e=0;e<o;e++){const o=t[e];let i;i=o instanceof Buffer?o:ArrayBuffer.isView(o)?Buffer.from(o.buffer,o.byteOffset,o.byteLength):o instanceof ArrayBuffer?Buffer.from(o):o instanceof Blob?o[BUFFER]:Buffer.from("string"==typeof o?o:String(o)),n+=i.length,r.push(i)}}this[BUFFER]=Buffer.concat(r);let o=t&&void 0!==t.type&&String(t.type).toLowerCase();o&&!/[^\u0020-\u007E]/.test(o)&&(this[TYPE]=o)}get size(){return this[BUFFER].length}get type(){return this[TYPE]}text(){return Promise.resolve(this[BUFFER].toString())}arrayBuffer(){const e=this[BUFFER],t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return Promise.resolve(t)}stream(){const e=new Readable;return e._read=function(){},e.push(this[BUFFER]),e.push(null),e}toString(){return"[object Blob]"}slice(){const e=this.size,t=arguments[0],r=arguments[1];let n,o;n=void 0===t?0:t<0?Math.max(e+t,0):Math.min(t,e),o=void 0===r?e:r<0?Math.max(e+r,0):Math.min(r,e);const i=Math.max(o-n,0),a=this[BUFFER].slice(n,n+i),s=new Blob([],{type:arguments[2]});return s[BUFFER]=a,s}}function FetchError(e,t,r){Error.call(this,e),this.message=e,this.type=t,r&&(this.code=this.errno=r.code),Error.captureStackTrace(this,this.constructor)}let convert;Object.defineProperties(Blob.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}}),Object.defineProperty(Blob.prototype,Symbol.toStringTag,{value:"Blob",writable:!1,enumerable:!1,configurable:!0}),FetchError.prototype=Object.create(Error.prototype),FetchError.prototype.constructor=FetchError,FetchError.prototype.name="FetchError";try{convert=require("encoding").convert}catch(e){}const INTERNALS=Symbol("Body internals"),PassThrough=Stream__default.default.PassThrough;function Body(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.size;let o=void 0===n?0:n;var i=r.timeout;let a=void 0===i?0:i;null==e?e=null:isURLSearchParams(e)?e=Buffer.from(e.toString()):isBlob(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof Stream__default.default||(e=Buffer.from(String(e)))),this[INTERNALS]={body:e,disturbed:!1,error:null},this.size=o,this.timeout=a,e instanceof Stream__default.default&&e.on("error",function(e){const r="AbortError"===e.name?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[INTERNALS].error=r})}function consumeBody(){var e=this;if(this[INTERNALS].disturbed)return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[INTERNALS].disturbed=!0,this[INTERNALS].error)return Body.Promise.reject(this[INTERNALS].error);let t=this.body;if(null===t)return Body.Promise.resolve(Buffer.alloc(0));if(isBlob(t)&&(t=t.stream()),Buffer.isBuffer(t))return Body.Promise.resolve(t);if(!(t instanceof Stream__default.default))return Body.Promise.resolve(Buffer.alloc(0));let r=[],n=0,o=!1;return new Body.Promise(function(i,a){let s;e.timeout&&(s=setTimeout(function(){o=!0,a(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)),t.on("error",function(t){"AbortError"===t.name?(o=!0,a(t)):a(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}),t.on("data",function(t){if(!o&&null!==t){if(e.size&&n+t.length>e.size)return o=!0,void a(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));n+=t.length,r.push(t)}}),t.on("end",function(){if(!o){clearTimeout(s);try{i(Buffer.concat(r,n))}catch(t){a(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}})})}function convertBody(e,t){if("function"!=typeof convert)throw new Error("The package `encoding` must be installed to use the textConverted() function");const r=t.get("content-type");let n,o,i="utf-8";return r&&(n=/charset=([^;]*)/i.exec(r)),o=e.slice(0,1024).toString(),!n&&o&&(n=/<meta.+?charset=(['"])(.+?)\1/i.exec(o)),!n&&o&&(n=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(o),n||(n=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(o),n&&n.pop()),n&&(n=/charset=(.*)/i.exec(n.pop()))),!n&&o&&(n=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(o)),n&&(i=n.pop(),"gb2312"!==i&&"gbk"!==i||(i="gb18030")),convert(e,"UTF-8",i).toString()}function isURLSearchParams(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function isBlob(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function clone(e){let t,r,n=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return n instanceof Stream__default.default&&"function"!=typeof n.getBoundary&&(t=new PassThrough,r=new PassThrough,n.pipe(t),n.pipe(r),e[INTERNALS].body=t,n=r),n}function extractContentType(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":isURLSearchParams(e)?"application/x-www-form-urlencoded;charset=UTF-8":isBlob(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof Stream__default.default?null:"text/plain;charset=UTF-8"}function getTotalBytes(e){const t=e.body;return null===t?0:isBlob(t)?t.size:Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&(t._lengthRetrievers&&0==t._lengthRetrievers.length||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}function writeToStream(e,t){const r=t.body;null===r?e.end():isBlob(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}Body.prototype={get body(){return this[INTERNALS].body},get bodyUsed(){return this[INTERNALS].disturbed},arrayBuffer(){return consumeBody.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then(function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[BUFFER]:t})})},json(){var e=this;return consumeBody.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return consumeBody.call(this).then(function(e){return e.toString()})},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then(function(t){return convertBody(t,e.headers)})}},Object.defineProperties(Body.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}}),Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype))if(!(t in e)){const r=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,r)}},Body.Promise=global.Promise;const invalidTokenRegex=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/,invalidHeaderCharRegex=/[^\t\x20-\x7e\x80-\xff]/;function validateName(e){if(e=`${e}`,invalidTokenRegex.test(e)||""===e)throw new TypeError(`${e} is not a legal HTTP header name`)}function validateValue(e){if(e=`${e}`,invalidHeaderCharRegex.test(e))throw new TypeError(`${e} is not a legal HTTP header value`)}function find(e,t){t=t.toLowerCase();for(const r in e)if(r.toLowerCase()===t)return r}const MAP=Symbol("map");class Headers{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[MAP]=Object.create(null),e instanceof Headers){const t=e.raw(),r=Object.keys(t);for(const e of r)for(const r of t[e])this.append(e,r);return}if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const t=e[Symbol.iterator];if(null!=t){if("function"!=typeof t)throw new TypeError("Header pairs must be iterable");const r=[];for(const t of e){if("object"!=typeof t||"function"!=typeof t[Symbol.iterator])throw new TypeError("Each header pair must be iterable");r.push(Array.from(t))}for(const e of r){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}}get(e){validateName(e=`${e}`);const t=find(this[MAP],e);return void 0===t?null:this[MAP][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=getHeaders(this),n=0;for(;n<r.length;){var o=r[n];const i=o[0],a=o[1];e.call(t,a,i,this),r=getHeaders(this),n++}}set(e,t){t=`${t}`,validateName(e=`${e}`),validateValue(t);const r=find(this[MAP],e);this[MAP][void 0!==r?r:e]=[t]}append(e,t){t=`${t}`,validateName(e=`${e}`),validateValue(t);const r=find(this[MAP],e);void 0!==r?this[MAP][r].push(t):this[MAP][e]=[t]}has(e){return validateName(e=`${e}`),void 0!==find(this[MAP],e)}delete(e){validateName(e=`${e}`);const t=find(this[MAP],e);void 0!==t&&delete this[MAP][t]}raw(){return this[MAP]}keys(){return createHeadersIterator(this,"key")}values(){return createHeadersIterator(this,"value")}[Symbol.iterator](){return createHeadersIterator(this,"key+value")}}function getHeaders(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key+value";return Object.keys(e[MAP]).sort().map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[MAP][t].join(", ")}:function(t){return[t.toLowerCase(),e[MAP][t].join(", ")]})}Headers.prototype.entries=Headers.prototype[Symbol.iterator],Object.defineProperty(Headers.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Headers.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const INTERNAL=Symbol("internal");function createHeadersIterator(e,t){const r=Object.create(HeadersIteratorPrototype);return r[INTERNAL]={target:e,kind:t,index:0},r}const HeadersIteratorPrototype=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==HeadersIteratorPrototype)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[INTERNAL];const t=e.target,r=e.kind,n=e.index,o=getHeaders(t,r);return n>=o.length?{value:void 0,done:!0}:(this[INTERNAL].index=n+1,{value:o[n],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[MAP]),r=find(e[MAP],"Host");return void 0!==r&&(t[r]=t[r][0]),t}function createHeadersLenient(e){const t=new Headers;for(const r of Object.keys(e))if(!invalidTokenRegex.test(r))if(Array.isArray(e[r]))for(const n of e[r])invalidHeaderCharRegex.test(n)||(void 0===t[MAP][r]?t[MAP][r]=[n]:t[MAP][r].push(n));else invalidHeaderCharRegex.test(e[r])||(t[MAP][r]=[e[r]]);return t}Object.defineProperty(HeadersIteratorPrototype,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const INTERNALS$1=Symbol("Response internals"),STATUS_CODES=http__default.default.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Body.call(this,e,t);const r=t.status||200,n=new Headers(t.headers);if(null!=e&&!n.has("Content-Type")){const t=extractContentType(e);t&&n.append("Content-Type",t)}this[INTERNALS$1]={url:t.url,status:r,statusText:t.statusText||STATUS_CODES[r],headers:n,counter:t.counter}}get url(){return this[INTERNALS$1].url||""}get status(){return this[INTERNALS$1].status}get ok(){return this[INTERNALS$1].status>=200&&this[INTERNALS$1].status<300}get redirected(){return this[INTERNALS$1].counter>0}get statusText(){return this[INTERNALS$1].statusText}get headers(){return this[INTERNALS$1].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype),Object.defineProperties(Response.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const INTERNALS$2=Symbol("Request internals"),URL=Url__default.default.URL||whatwgUrl.URL,parse_url=Url__default.default.parse,format_url=Url__default.default.format;function parseURL(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)&&(e=new URL(e).toString()),parse_url(e)}const streamDestructionSupported="destroy"in Stream__default.default.Readable.prototype;function isRequest(e){return"object"==typeof e&&"object"==typeof e[INTERNALS$2]}function isAbortSignal(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}class Request{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};isRequest(e)?t=parseURL(e.url):(t=e&&e.href?parseURL(e.href):parseURL(`${e}`),e={});let n=r.method||e.method||"GET";if(n=n.toUpperCase(),(null!=r.body||isRequest(e)&&null!==e.body)&&("GET"===n||"HEAD"===n))throw new TypeError("Request with GET/HEAD method cannot have body");let o=null!=r.body?r.body:isRequest(e)&&null!==e.body?clone(e):null;Body.call(this,o,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const i=new Headers(r.headers||e.headers||{});if(null!=o&&!i.has("Content-Type")){const e=extractContentType(o);e&&i.append("Content-Type",e)}let a=isRequest(e)?e.signal:null;if("signal"in r&&(a=r.signal),null!=a&&!isAbortSignal(a))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[INTERNALS$2]={method:n,redirect:r.redirect||e.redirect||"follow",headers:i,parsedURL:t,signal:a},this.follow=void 0!==r.follow?r.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==r.compress?r.compress:void 0===e.compress||e.compress,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent}get method(){return this[INTERNALS$2].method}get url(){return format_url(this[INTERNALS$2].parsedURL)}get headers(){return this[INTERNALS$2].headers}get redirect(){return this[INTERNALS$2].redirect}get signal(){return this[INTERNALS$2].signal}clone(){return new Request(this)}}function getNodeRequestOptions(e){const t=e[INTERNALS$2].parsedURL,r=new Headers(e[INTERNALS$2].headers);if(r.has("Accept")||r.set("Accept","*/*"),!t.protocol||!t.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(t.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof Stream__default.default.Readable&&!streamDestructionSupported)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let n=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(n="0"),null!=e.body){const t=getTotalBytes(e);"number"==typeof t&&(n=String(t))}n&&r.set("Content-Length",n),r.has("User-Agent")||r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip,deflate");let o=e.agent;return"function"==typeof o&&(o=o(t)),Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(r),agent:o})}function AbortError(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}Body.mixIn(Request.prototype),Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(Request.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),AbortError.prototype=Object.create(Error.prototype),AbortError.prototype.constructor=AbortError,AbortError.prototype.name="AbortError";const URL$1=Url__default.default.URL||whatwgUrl.URL,PassThrough$1=Stream__default.default.PassThrough,isDomainOrSubdomain=function(e,t){const r=new URL$1(t).hostname,n=new URL$1(e).hostname;return r===n||"."===r[r.length-n.length-1]&&r.endsWith(n)},isSameProtocol=function(e,t){return new URL$1(t).protocol===new URL$1(e).protocol};function fetch(e,t){if(!fetch.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return Body.Promise=fetch.Promise,new fetch.Promise(function(r,n){const o=new Request(e,t),i=getNodeRequestOptions(o),a=("https:"===i.protocol?require$$1__default$6.default:http__default.default).request,s=o.signal;let l=null;const p=function(){let e=new AbortError("The user aborted a request.");n(e),o.body&&o.body instanceof Stream__default.default.Readable&&destroyStream(o.body,e),l&&l.body&&l.body.emit("error",e)};if(s&&s.aborted)return void p();const d=function(){p(),f()},u=a(i);let c;function f(){u.abort(),s&&s.removeEventListener("abort",d),clearTimeout(c)}s&&s.addEventListener("abort",d),o.timeout&&u.once("socket",function(e){c=setTimeout(function(){n(new FetchError(`network timeout at: ${o.url}`,"request-timeout")),f()},o.timeout)}),u.on("error",function(e){n(new FetchError(`request to ${o.url} failed, reason: ${e.message}`,"system",e)),l&&l.body&&destroyStream(l.body,e),f()}),fixResponseChunkedTransferBadEnding(u,function(e){s&&s.aborted||l&&l.body&&destroyStream(l.body,e)}),parseInt(process.version.substring(1))<14&&u.on("socket",function(e){e.addListener("close",function(t){const r=e.listenerCount("data")>0;if(l&&r&&!t&&(!s||!s.aborted)){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE",l.body.emit("error",e)}})}),u.on("response",function(e){clearTimeout(c);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const i=t.get("Location");let a=null;try{a=null===i?null:new URL$1(i,o.url).toString()}catch(e){if("manual"!==o.redirect)return n(new FetchError(`uri requested responds with an invalid redirect URL: ${i}`,"invalid-redirect")),void f()}switch(o.redirect){case"error":return n(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${o.url}`,"no-redirect")),void f();case"manual":if(null!==a)try{t.set("Location",a)}catch(e){n(e)}break;case"follow":if(null===a)break;if(o.counter>=o.follow)return n(new FetchError(`maximum redirect reached at: ${o.url}`,"max-redirect")),void f();const i={headers:new Headers(o.headers),follow:o.follow,counter:o.counter+1,agent:o.agent,compress:o.compress,method:o.method,body:o.body,signal:o.signal,timeout:o.timeout,size:o.size};if(!isDomainOrSubdomain(o.url,a)||!isSameProtocol(o.url,a))for(const e of["authorization","www-authenticate","cookie","cookie2"])i.headers.delete(e);return 303!==e.statusCode&&o.body&&null===getTotalBytes(o)?(n(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void f()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==o.method)||(i.method="GET",i.body=void 0,i.headers.delete("content-length")),r(fetch(new Request(a,i))),void f())}}e.once("end",function(){s&&s.removeEventListener("abort",d)});let i=e.pipe(new PassThrough$1);const a={url:o.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:o.size,timeout:o.timeout,counter:o.counter},p=t.get("Content-Encoding");if(!o.compress||"HEAD"===o.method||null===p||204===e.statusCode||304===e.statusCode)return l=new Response(i,a),void r(l);const u={flush:zlib__default.default.Z_SYNC_FLUSH,finishFlush:zlib__default.default.Z_SYNC_FLUSH};if("gzip"==p||"x-gzip"==p)return i=i.pipe(zlib__default.default.createGunzip(u)),l=new Response(i,a),void r(l);if("deflate"==p||"x-deflate"==p){const t=e.pipe(new PassThrough$1);return t.once("data",function(e){i=8==(15&e[0])?i.pipe(zlib__default.default.createInflate()):i.pipe(zlib__default.default.createInflateRaw()),l=new Response(i,a),r(l)}),void t.on("end",function(){l||(l=new Response(i,a),r(l))})}if("br"==p&&"function"==typeof zlib__default.default.createBrotliDecompress)return i=i.pipe(zlib__default.default.createBrotliDecompress()),l=new Response(i,a),void r(l);l=new Response(i,a),r(l)}),writeToStream(u,o)})}function fixResponseChunkedTransferBadEnding(e,t){let r;e.on("socket",function(e){r=e}),e.on("response",function(e){const n=e.headers;"chunked"!==n["transfer-encoding"]||n["content-length"]||e.once("close",function(e){if(r&&r.listenerCount("data")>0&&!e){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE",t(e)}})})}function destroyStream(e,t){e.destroy?e.destroy(t):(e.emit("error",t),e.end())}fetch.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},fetch.Promise=global.Promise;var lib=Object.freeze({__proto__:null,AbortError:AbortError,FetchError:FetchError,Headers:Headers,Request:Request,Response:Response,default:fetch}),require$$2$1=getAugmentedNamespace(lib);
|
|
100
|
+
/**
|
|
101
|
+
* @author Toru Nagashima <https://github.com/mysticatea>
|
|
102
|
+
* @copyright 2015 Toru Nagashima. All rights reserved.
|
|
103
|
+
* See LICENSE file in root directory for full license.
|
|
104
|
+
*/
|
|
105
|
+
const privateData=new WeakMap,wrappers=new WeakMap;function pd(e){const t=privateData.get(e);return console.assert(null!=t,"'this' is expected an Event object, but got",e),t}function setCancelFlag(e){null==e.passiveListener?e.event.cancelable&&(e.canceled=!0,"function"==typeof e.event.preventDefault&&e.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener)}function Event(e,t){privateData.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:t.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const r=Object.keys(t);for(let e=0;e<r.length;++e){const t=r[e];t in this||Object.defineProperty(this,t,defineRedirectDescriptor(t))}}function defineRedirectDescriptor(e){return{get(){return pd(this).event[e]},set(t){pd(this).event[e]=t},configurable:!0,enumerable:!0}}function defineCallDescriptor(e){return{value(){const t=pd(this).event;return t[e].apply(t,arguments)},configurable:!0,enumerable:!0}}function defineWrapper(e,t){const r=Object.keys(t);if(0===r.length)return e;function n(t,r){e.call(this,t,r)}n.prototype=Object.create(e.prototype,{constructor:{value:n,configurable:!0,writable:!0}});for(let o=0;o<r.length;++o){const i=r[o];if(!(i in e.prototype)){const e="function"==typeof Object.getOwnPropertyDescriptor(t,i).value;Object.defineProperty(n.prototype,i,e?defineCallDescriptor(i):defineRedirectDescriptor(i))}}return n}function getWrapper(e){if(null==e||e===Object.prototype)return Event;let t=wrappers.get(e);return null==t&&(t=defineWrapper(getWrapper(Object.getPrototypeOf(e)),e),wrappers.set(e,t)),t}function wrapEvent(e,t){return new(getWrapper(Object.getPrototypeOf(t)))(e,t)}function isStopped(e){return pd(e).immediateStopped}function setEventPhase(e,t){pd(e).eventPhase=t}function setCurrentTarget(e,t){pd(e).currentTarget=t}function setPassiveListener(e,t){pd(e).passiveListener=t}Event.prototype={get type(){return pd(this).event.type},get target(){return pd(this).eventTarget},get currentTarget(){return pd(this).currentTarget},composedPath(){const e=pd(this).currentTarget;return null==e?[]:[e]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return pd(this).eventPhase},stopPropagation(){const e=pd(this);e.stopped=!0,"function"==typeof e.event.stopPropagation&&e.event.stopPropagation()},stopImmediatePropagation(){const e=pd(this);e.stopped=!0,e.immediateStopped=!0,"function"==typeof e.event.stopImmediatePropagation&&e.event.stopImmediatePropagation()},get bubbles(){return Boolean(pd(this).event.bubbles)},get cancelable(){return Boolean(pd(this).event.cancelable)},preventDefault(){setCancelFlag(pd(this))},get defaultPrevented(){return pd(this).canceled},get composed(){return Boolean(pd(this).event.composed)},get timeStamp(){return pd(this).timeStamp},get srcElement(){return pd(this).eventTarget},get cancelBubble(){return pd(this).stopped},set cancelBubble(e){if(!e)return;const t=pd(this);t.stopped=!0,"boolean"==typeof t.event.cancelBubble&&(t.event.cancelBubble=!0)},get returnValue(){return!pd(this).canceled},set returnValue(e){e||setCancelFlag(pd(this))},initEvent(){}},Object.defineProperty(Event.prototype,"constructor",{value:Event,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.Event&&(Object.setPrototypeOf(Event.prototype,window.Event.prototype),wrappers.set(window.Event.prototype,Event));const listenersMap=new WeakMap,CAPTURE=1,BUBBLE=2,ATTRIBUTE=3;function isObject(e){return null!==e&&"object"==typeof e}function getListeners(e){const t=listenersMap.get(e);if(null==t)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return t}function defineEventAttributeDescriptor(e){return{get(){let t=getListeners(this).get(e);for(;null!=t;){if(t.listenerType===ATTRIBUTE)return t.listener;t=t.next}return null},set(t){"function"==typeof t||isObject(t)||(t=null);const r=getListeners(this);let n=null,o=r.get(e);for(;null!=o;)o.listenerType===ATTRIBUTE?null!==n?n.next=o.next:null!==o.next?r.set(e,o.next):r.delete(e):n=o,o=o.next;if(null!==t){const o={listener:t,listenerType:ATTRIBUTE,passive:!1,once:!1,next:null};null===n?r.set(e,o):n.next=o}},configurable:!0,enumerable:!0}}function defineEventAttribute(e,t){Object.defineProperty(e,`on${t}`,defineEventAttributeDescriptor(t))}function defineCustomEventTarget(e){function t(){EventTarget.call(this)}t.prototype=Object.create(EventTarget.prototype,{constructor:{value:t,configurable:!0,writable:!0}});for(let r=0;r<e.length;++r)defineEventAttribute(t.prototype,e[r]);return t}function EventTarget(){if(!(this instanceof EventTarget)){if(1===arguments.length&&Array.isArray(arguments[0]))return defineCustomEventTarget(arguments[0]);if(arguments.length>0){const e=new Array(arguments.length);for(let t=0;t<arguments.length;++t)e[t]=arguments[t];return defineCustomEventTarget(e)}throw new TypeError("Cannot call a class as a function")}listenersMap.set(this,new Map)}EventTarget.prototype={addEventListener(e,t,r){if(null==t)return;if("function"!=typeof t&&!isObject(t))throw new TypeError("'listener' should be a function or an object.");const n=getListeners(this),o=isObject(r),i=(o?Boolean(r.capture):Boolean(r))?CAPTURE:BUBBLE,a={listener:t,listenerType:i,passive:o&&Boolean(r.passive),once:o&&Boolean(r.once),next:null};let s=n.get(e);if(void 0===s)return void n.set(e,a);let l=null;for(;null!=s;){if(s.listener===t&&s.listenerType===i)return;l=s,s=s.next}l.next=a},removeEventListener(e,t,r){if(null==t)return;const n=getListeners(this),o=(isObject(r)?Boolean(r.capture):Boolean(r))?CAPTURE:BUBBLE;let i=null,a=n.get(e);for(;null!=a;){if(a.listener===t&&a.listenerType===o)return void(null!==i?i.next=a.next:null!==a.next?n.set(e,a.next):n.delete(e));i=a,a=a.next}},dispatchEvent(e){if(null==e||"string"!=typeof e.type)throw new TypeError('"event.type" should be a string.');const t=getListeners(this),r=e.type;let n=t.get(r);if(null==n)return!0;const o=wrapEvent(this,e);let i=null;for(;null!=n;){if(n.once?null!==i?i.next=n.next:null!==n.next?t.set(r,n.next):t.delete(r):i=n,setPassiveListener(o,n.passive?n.listener:null),"function"==typeof n.listener)try{n.listener.call(this,o)}catch(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}else n.listenerType!==ATTRIBUTE&&"function"==typeof n.listener.handleEvent&&n.listener.handleEvent(o);if(isStopped(o))break;n=n.next}return setPassiveListener(o,null),setEventPhase(o,0),setCurrentTarget(o,null),!o.defaultPrevented}},Object.defineProperty(EventTarget.prototype,"constructor",{value:EventTarget,configurable:!0,writable:!0}),"undefined"!=typeof window&&void 0!==window.EventTarget&&Object.setPrototypeOf(EventTarget.prototype,window.EventTarget.prototype);class AbortSignal extends EventTarget{constructor(){throw super(),new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const e=abortedFlags.get(this);if("boolean"!=typeof e)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got "+(null===this?"null":typeof this));return e}}function createAbortSignal(){const e=Object.create(AbortSignal.prototype);return EventTarget.call(e),abortedFlags.set(e,!1),e}function abortSignal(e){!1===abortedFlags.get(e)&&(abortedFlags.set(e,!0),e.dispatchEvent({type:"abort"}))}defineEventAttribute(AbortSignal.prototype,"abort");const abortedFlags=new WeakMap;Object.defineProperties(AbortSignal.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(AbortSignal.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});let AbortController$1=class{constructor(){signals.set(this,createAbortSignal())}get signal(){return getSignal(this)}abort(){abortSignal(getSignal(this))}};const signals=new WeakMap;function getSignal(e){const t=signals.get(e);if(null==t)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got "+(null===e?"null":typeof e));return t}Object.defineProperties(AbortController$1.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(AbortController$1.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});var abortController=Object.freeze({__proto__:null,AbortController:AbortController$1,AbortSignal:AbortSignal,default:AbortController$1}),require$$1=getAugmentedNamespace(abortController),streamArrayParser={},hasRequiredStreamArrayParser,hasRequiredFallbackServiceStub;function requireStreamArrayParser(){if(hasRequiredStreamArrayParser)return streamArrayParser;hasRequiredStreamArrayParser=1,Object.defineProperty(streamArrayParser,"__esModule",{value:!0}),streamArrayParser.StreamArrayParser=void 0;const e=require$$1,t=Stream__default.default,r=requireFallbackRest(),n=requireFeatureDetection();class o extends t.Transform{constructor(t,r){super(Object.assign({},r,{readableObjectMode:!0})),this._done=!1,this._prevBlock=Buffer.from(""),this._isInString=!1,this._isSkipped=!1,this._level=0,this.rpc=t,this.cancelController=(0,n.hasAbortController)()?new AbortController:new e.AbortController,this.cancelSignal=this.cancelController.signal,this.cancelRequested=!1}_transform(e,t,n){let o=0,i=0;for(0===this._level&&0===i&&("["!==String.fromCharCode(e[0])&&this.emit("error",new Error(`Internal Error: API service stream data must start with a '[' and close with the corresponding ']', but it start with ${String.fromCharCode(e[0])}`)),i++,this._level++);i<e.length;){const t=String.fromCharCode(e[i]);if(this._isSkipped)this._isSkipped=!1;else switch(t){case"{":this._isInString||this._level++,this._isInString||2!==this._level||(o=i);break;case'"':this._isInString=!this._isInString;break;case"}":if(this._isInString||this._level--,!this._isInString&&1===this._level){const t=Buffer.concat([this._prevBlock,e.slice(o,i+1)]);try{const e=(0,r.decodeResponse)(this.rpc,!0,t);this.push(e)}catch(e){this.emit("error",e)}o=i+1,this._prevBlock=Buffer.from("")}break;case"]":this._isInString||1!==this._level||(this._done=!0,this.push(null));break;case"\\":this._isSkipped=!0}i++}this._level>1&&(this._prevBlock=Buffer.concat([this._prevBlock,e.slice(o,i)])),n()}_flush(e){e()}cancel(){this._done=!0,this.cancelRequested=!0,this.cancelController.abort(),this.end()}}return streamArrayParser.StreamArrayParser=o,streamArrayParser}function requireFallbackServiceStub(){if(hasRequiredFallbackServiceStub)return fallbackServiceStub;hasRequiredFallbackServiceStub=1,Object.defineProperty(fallbackServiceStub,"__esModule",{value:!0}),fallbackServiceStub.generateServiceStub=function(i,a,s,l,p,d,u,c){const f=(0,r.hasWindowFetch)()?window.fetch:e.default,h={close:()=>({cancel:()=>{}})};for(const[e,m]of Object.entries(i))h[e]=(e,i,h,g)=>{let y;null!=i||(i={});try{y=d(m,a,s,l,e,c)}catch(e){return g&&g(e),{cancel(){}}}const v=(0,r.hasAbortController)()?new AbortController:new t.AbortController,b=v.signal;let O=!1;const w=y.url,S=y.headers;for(const e of Object.keys(i))S[e]=i[e][0];const _=new n.StreamArrayParser(m);return p.getRequestHeaders().then(e=>{const t={headers:{...e,...S},body:y.body,method:y.method,signal:b};return"GET"!==y.method&&"DELETE"!==y.method||delete t.body,f(w,t)}).then(e=>e.ok&&m.responseStream?void(0,o.pipeline)(e.body,_,e=>{e&&(!O||e instanceof Error&&"AbortError"!==e.name)&&(g&&g(e),_.emit("error",e))}):Promise.all([Promise.resolve(e.ok),e.arrayBuffer()]).then(([e,t])=>{const r=u(m,e,t);g(null,r)}).catch(e=>{if(!O||"AbortError"!==e.name)if(m.responseStream)g&&g(e),_.emit("error",e);else{if(!g)throw e;g(e)}})).catch(e=>{if(m.responseStream)g&&g(e),_.emit("error",e);else{if(!g)throw e;g(e)}}),m.responseStream?_:{cancel:()=>{O=!0,v.abort()}}};return h};const e=require$$2$1,t=require$$1,r=requireFeatureDetection(),n=requireStreamArrayParser(),o=Stream__default.default;return fallbackServiceStub}var streaming={},readable={exports:{}},stream,hasRequiredStream,buffer_list,hasRequiredBuffer_list,destroy_1,hasRequiredDestroy;function requireStream(){return hasRequiredStream?stream:(hasRequiredStream=1,stream=Stream__default.default)}function requireBuffer_list(){if(hasRequiredBuffer_list)return buffer_list;function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function t(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?e(Object(o),!0).forEach(function(e){r(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function r(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:String(t)}hasRequiredBuffer_list=1;var i=require$$0__default$7.default.Buffer,a=require$$1__default$4.default.inspect,s=a&&a.custom||"inspect";function l(e,t,r){i.prototype.copy.call(e,t,r)}return buffer_list=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return n(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return i.alloc(0);for(var t=i.allocUnsafe(e>>>0),r=this.head,n=0;r;)l(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var o=t.data,i=e>o.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0===(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=i.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0===(e-=a)){a===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(a));break}++n}return this.length-=n,t}},{key:s,value:function(e,r){return a(this,t(t({},r),{},{depth:0,customInspect:!1}))}}]),e}()}function requireDestroy(){if(hasRequiredDestroy)return destroy_1;function e(e,n){r(e,n),t(e)}function t(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function r(e,t){e.emit("error",t)}return hasRequiredDestroy=1,destroy_1={destroy:function(n,o){var i=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(o?o(n):n&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(r,this,n)):process.nextTick(r,this,n)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,function(r){!o&&r?i._writableState?i._writableState.errorEmitted?process.nextTick(t,i):(i._writableState.errorEmitted=!0,process.nextTick(e,i,r)):process.nextTick(e,i,r):o?(process.nextTick(t,i),o(r)):process.nextTick(t,i)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}},destroy_1}var errors={},hasRequiredErrors,state,hasRequiredState;function requireErrors(){if(hasRequiredErrors)return errors;hasRequiredErrors=1;const e={};function t(t,r,n){n||(n=Error);class o extends n{constructor(e,t,n){super(function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(e,t,n))}}o.prototype.name=n.name,o.prototype.code=t,e[t]=o}function r(e,t){if(Array.isArray(e)){const r=e.length;return e=e.map(e=>String(e)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}return t("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(e,t,n){let o;var i;let a;if("string"==typeof t&&(i="not ",t.substr(0,i.length)===i)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a=`The ${e} ${o} ${r(t,"type")}`;else{const n=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a=`The "${e}" ${n} ${o} ${r(t,"type")}`}return a+=". Received type "+typeof n,a},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),errors.codes=e,errors}function requireState(){if(hasRequiredState)return state;hasRequiredState=1;var e=requireErrors().codes.ERR_INVALID_OPT_VALUE;return state={getHighWaterMark:function(t,r,n,o){var i=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(r,o,n);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new e(o?n:"highWaterMark",i);return Math.floor(i)}return t.objectMode?16:16384}}}var inherits={exports:{}},inherits_browser={exports:{}},hasRequiredInherits_browser,hasRequiredInherits,node$1,hasRequiredNode$1,_stream_writable,hasRequired_stream_writable,_stream_duplex,hasRequired_stream_duplex;function requireInherits_browser(){return hasRequiredInherits_browser||(hasRequiredInherits_browser=1,"function"==typeof Object.create?inherits_browser.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}),inherits_browser.exports}function requireInherits(){if(hasRequiredInherits)return inherits.exports;hasRequiredInherits=1;try{var e=require("util");if("function"!=typeof e.inherits)throw"";inherits.exports=e.inherits}catch(e){inherits.exports=requireInherits_browser()}return inherits.exports}function requireNode$1(){return hasRequiredNode$1?node$1:(hasRequiredNode$1=1,node$1=require$$1__default$4.default.deprecate)}function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;function e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var t;hasRequired_stream_writable=1,_stream_writable=w,w.WritableState=O;var r={deprecate:requireNode$1()},n=requireStream(),o=require$$0__default$7.default.Buffer,i=(void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var a,s=requireDestroy(),l=requireState().getHighWaterMark,p=requireErrors().codes,d=p.ERR_INVALID_ARG_TYPE,u=p.ERR_METHOD_NOT_IMPLEMENTED,c=p.ERR_MULTIPLE_CALLBACK,f=p.ERR_STREAM_CANNOT_PIPE,h=p.ERR_STREAM_DESTROYED,m=p.ERR_STREAM_NULL_VALUES,g=p.ERR_STREAM_WRITE_AFTER_END,y=p.ERR_UNKNOWN_ENCODING,v=s.errorOrDestroy;function b(){}function O(r,n,o){t=t||require_stream_duplex(),r=r||{},"boolean"!=typeof o&&(o=n instanceof t),this.objectMode=!!r.objectMode,o&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=l(this,r,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=!1===r.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if("function"!=typeof o)throw new c;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(process.nextTick(o,n),process.nextTick(C,e,t),e._writableState.errorEmitted=!0,v(e,n)):(o(n),e._writableState.errorEmitted=!0,v(e,n),C(e,t))}(e,r,n,t,o);else{var i=E(r)||e.destroyed;i||r.corked||r.bufferProcessing||!r.bufferedRequest||P(e,r),n?process.nextTick(_,e,r,i,o):_(e,r,i,o)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==r.emitClose,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function w(e){var r=this instanceof(t=t||require_stream_duplex());if(!r&&!a.call(w,this))return new w(e);this._writableState=new O(e,this,r),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),n.call(this)}function S(e,t,r,n,o,i,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new h("write")):r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function _(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),C(e,t)}function P(t,r){r.bufferProcessing=!0;var n=r.bufferedRequest;if(t._writev&&n&&n.next){var o=r.bufferedRequestCount,i=new Array(o),a=r.corkedRequestsFree;a.entry=n;for(var s=0,l=!0;n;)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,S(t,r,!0,r.length,i,"",a.finish),r.pendingcb++,r.lastBufferedRequest=null,a.next?(r.corkedRequestsFree=a.next,a.next=null):r.corkedRequestsFree=new e(r),r.bufferedRequestCount=0}else{for(;n;){var p=n.chunk,d=n.encoding,u=n.callback;if(S(t,r,!1,r.objectMode?1:p.length,p,d,u),n=n.next,r.bufferedRequestCount--,r.writing)break}null===n&&(r.lastBufferedRequest=null)}r.bufferedRequest=n,r.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final(function(r){t.pendingcb--,r&&v(e,r),t.prefinished=!0,e.emit("prefinish"),C(e,t)})}function C(e,t){var r=E(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(T,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}return requireInherits()(w,n),O.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(O.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===w&&(e&&e._writableState instanceof O)}})):a=function(e){return e instanceof this},w.prototype.pipe=function(){v(this,new f)},w.prototype.write=function(e,t,r){var n,a=this._writableState,s=!1,l=!a.objectMode&&(n=e,o.isBuffer(n)||n instanceof i);return l&&!o.isBuffer(e)&&(e=function(e){return o.from(e)}(e)),"function"==typeof t&&(r=t,t=null),l?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof r&&(r=b),a.ending?function(e,t){var r=new g;v(e,r),process.nextTick(t,r)}(this,r):(l||function(e,t,r,n){var o;return null===r?o=new m:"string"==typeof r||t.objectMode||(o=new d("chunk",["string","Buffer"],r)),!o||(v(e,o),process.nextTick(n,o),!1)}(this,a,e,r))&&(a.pendingcb++,s=function(e,t,r,n,i,a){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=o.from(t,r));return t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var l=t.objectMode?1:n.length;t.length+=l;var p=t.length<t.highWaterMark;p||(t.needDrain=!0);if(t.writing||t.corked){var d=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},d?d.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else S(e,t,!1,l,n,i,a);return p}(this,a,l,e,t,r)),s},w.prototype.cork=function(){this._writableState.corked++},w.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||P(this,e))},w.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new y(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(w.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(e,t,r){r(new u("_write()"))},w.prototype._writev=null,w.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,C(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(w.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),w.prototype.destroy=s.destroy,w.prototype._undestroy=s.undestroy,w.prototype._destroy=function(e,t){t(e)},_stream_writable}function require_stream_duplex(){if(hasRequired_stream_duplex)return _stream_duplex;hasRequired_stream_duplex=1;var e=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};_stream_duplex=a;var t=require_stream_readable(),r=require_stream_writable();requireInherits()(a,t);for(var n=e(r.prototype),o=0;o<n.length;o++){var i=n[o];a.prototype[i]||(a.prototype[i]=r.prototype[i])}function a(e){if(!(this instanceof a))return new a(e);t.call(this,e),r.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",s)))}function s(){this._writableState.ended||process.nextTick(l,this)}function l(e){e.end()}return Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),_stream_duplex}var string_decoder={},safeBuffer={exports:{}},hasRequiredSafeBuffer,hasRequiredString_decoder,endOfStream$1,hasRequiredEndOfStream$1,async_iterator,hasRequiredAsync_iterator,from_1,hasRequiredFrom,_stream_readable,hasRequired_stream_readable,_stream_transform,hasRequired_stream_transform,_stream_passthrough,hasRequired_stream_passthrough,pipeline_1,hasRequiredPipeline,hasRequiredReadable;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(e,t){var r=require$$0__default$7.default,n=r.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i),i.prototype=Object.create(n.prototype),o(n,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=n(e);return void 0!==t?"string"==typeof r?o.fill(t,r):o.fill(t):o.fill(0),o},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}}(safeBuffer,safeBuffer.exports)),safeBuffer.exports}function requireString_decoder(){if(hasRequiredString_decoder)return string_decoder;hasRequiredString_decoder=1;var e=requireSafeBuffer().Buffer,t=e.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(r){var n;switch(this.encoding=function(r){var n=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(r);if("string"!=typeof n&&(e.isEncoding===t||!t(r)))throw new Error("Unknown encoding: "+r);return n||r}(r),this.encoding){case"utf16le":this.text=i,this.end=a,n=4;break;case"utf8":this.fillLast=o,n=4;break;case"base64":this.text=s,this.end=l,n=3;break;default:return this.write=p,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(n)}function n(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function i(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function a(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function s(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}return string_decoder.StringDecoder=r,r.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},r.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},r.prototype.text=function(e,t){var r=function(e,t,r){var o=t.length-1;if(o<r)return 0;var i=n(t[o]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--o<r||-2===i)return 0;if(i=n(t[o]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--o<r||-2===i)return 0;if(i=n(t[o]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var o=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,o),e.toString("utf8",t,o)},r.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},string_decoder}function requireEndOfStream$1(){if(hasRequiredEndOfStream$1)return endOfStream$1;hasRequiredEndOfStream$1=1;var e=requireErrors().codes.ERR_STREAM_PREMATURE_CLOSE;function t(){}return endOfStream$1=function r(n,o,i){if("function"==typeof o)return r(n,null,o);o||(o={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n)}}}(i||t);var a=o.readable||!1!==o.readable&&n.readable,s=o.writable||!1!==o.writable&&n.writable,l=function(){n.writable||d()},p=n._writableState&&n._writableState.finished,d=function(){s=!1,p=!0,a||i.call(n)},u=n._readableState&&n._readableState.endEmitted,c=function(){a=!1,u=!0,s||i.call(n)},f=function(e){i.call(n,e)},h=function(){var t;return a&&!u?(n._readableState&&n._readableState.ended||(t=new e),i.call(n,t)):s&&!p?(n._writableState&&n._writableState.ended||(t=new e),i.call(n,t)):void 0},m=function(){n.req.on("finish",d)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(n)?s&&!n._writableState&&(n.on("end",l),n.on("close",l)):(n.on("complete",d),n.on("abort",h),n.req?m():n.on("request",m)),n.on("end",c),n.on("finish",d),!1!==o.error&&n.on("error",f),n.on("close",h),function(){n.removeListener("complete",d),n.removeListener("abort",h),n.removeListener("request",m),n.req&&n.req.removeListener("finish",d),n.removeListener("end",l),n.removeListener("close",l),n.removeListener("finish",d),n.removeListener("end",c),n.removeListener("error",f),n.removeListener("close",h)}},endOfStream$1}function requireAsync_iterator(){if(hasRequiredAsync_iterator)return async_iterator;var e;function t(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}hasRequiredAsync_iterator=1;var r=requireEndOfStream$1(),n=Symbol("lastResolve"),o=Symbol("lastReject"),i=Symbol("error"),a=Symbol("ended"),s=Symbol("lastPromise"),l=Symbol("handlePromise"),p=Symbol("stream");function d(e,t){return{value:e,done:t}}function u(e){var t=e[n];if(null!==t){var r=e[p].read();null!==r&&(e[s]=null,e[n]=null,e[o]=null,t(d(r,!1)))}}function c(e){process.nextTick(u,e)}var f=Object.getPrototypeOf(function(){}),h=Object.setPrototypeOf((e={get stream(){return this[p]},next:function(){var e=this,t=this[i];if(null!==t)return Promise.reject(t);if(this[a])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise(function(t,r){process.nextTick(function(){e[i]?r(e[i]):t(d(void 0,!0))})});var r,n=this[s];if(n)r=new Promise(function(e,t){return function(r,n){e.then(function(){t[a]?r(d(void 0,!0)):t[l](r,n)},n)}}(n,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(d(o,!1));r=new Promise(this[l])}return this[s]=r,r}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var e=this;return new Promise(function(t,r){e[p].destroy(null,function(e){e?r(e):t(d(void 0,!0))})})}),e),f);return async_iterator=function(e){var u,f=Object.create(h,(t(u={},p,{value:e,writable:!0}),t(u,n,{value:null,writable:!0}),t(u,o,{value:null,writable:!0}),t(u,i,{value:null,writable:!0}),t(u,a,{value:e._readableState.endEmitted,writable:!0}),t(u,l,{value:function(e,t){var r=f[p].read();r?(f[s]=null,f[n]=null,f[o]=null,e(d(r,!1))):(f[n]=e,f[o]=t)},writable:!0}),u));return f[s]=null,r(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=f[o];return null!==t&&(f[s]=null,f[n]=null,f[o]=null,t(e)),void(f[i]=e)}var r=f[n];null!==r&&(f[s]=null,f[n]=null,f[o]=null,r(d(void 0,!0))),f[a]=!0}),e.on("readable",c.bind(null,f)),f},async_iterator}function requireFrom(){if(hasRequiredFrom)return from_1;function e(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function r(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}hasRequiredFrom=1;var n=requireErrors().codes.ERR_INVALID_ARG_TYPE;return from_1=function(o,i,a){var s;if(i&&"function"==typeof i.next)s=i;else if(i&&i[Symbol.asyncIterator])s=i[Symbol.asyncIterator]();else{if(!i||!i[Symbol.iterator])throw new n("iterable",["Iterable"],i);s=i[Symbol.iterator]()}var l=new o(function(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach(function(t){r(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}({objectMode:!0},a)),p=!1;function d(){return u.apply(this,arguments)}function u(){var t;return t=function*(){try{var e=yield s.next(),t=e.value;e.done?l.push(null):l.push(yield t)?d():p=!1}catch(e){l.destroy(e)}},u=function(){var r=this,n=arguments;return new Promise(function(o,i){var a=t.apply(r,n);function s(t){e(a,o,i,s,l,"next",t)}function l(t){e(a,o,i,s,l,"throw",t)}s(void 0)})},u.apply(this,arguments)}return l._read=function(){p||(p=!0,d())},l},from_1}function require_stream_readable(){if(hasRequired_stream_readable)return _stream_readable;var e;hasRequired_stream_readable=1,_stream_readable=w,w.ReadableState=O,require$$0__default$3.default.EventEmitter;var t=function(e,t){return e.listeners(t).length},r=requireStream(),n=require$$0__default$7.default.Buffer,o=(void 0!==commonjsGlobal?commonjsGlobal:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var i,a=require$$1__default$4.default;i=a&&a.debuglog?a.debuglog("stream"):function(){};var s,l,p,d=requireBuffer_list(),u=requireDestroy(),c=requireState().getHighWaterMark,f=requireErrors().codes,h=f.ERR_INVALID_ARG_TYPE,m=f.ERR_STREAM_PUSH_AFTER_EOF,g=f.ERR_METHOD_NOT_IMPLEMENTED,y=f.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;requireInherits()(w,r);var v=u.errorOrDestroy,b=["error","close","destroy","pause","resume"];function O(t,r,n){e=e||require_stream_duplex(),t=t||{},"boolean"!=typeof n&&(n=r instanceof e),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=c(this,t,"readableHighWaterMark",n),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s||(s=requireString_decoder().StringDecoder),this.decoder=new s(t.encoding),this.encoding=t.encoding)}function w(t){if(e=e||require_stream_duplex(),!(this instanceof w))return new w(t);var n=this instanceof e;this._readableState=new O(t,this,n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),r.call(this)}function S(e,t,r,a,s){i("readableAddChunk",t);var l,p=e._readableState;if(null===t)p.reading=!1,function(e,t){if(i("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(e)))}(e,p);else if(s||(l=function(e,t){var r;i=t,n.isBuffer(i)||i instanceof o||"string"==typeof t||void 0===t||e.objectMode||(r=new h("chunk",["string","Buffer","Uint8Array"],t));var i;return r}(p,t)),l)v(e,l);else if(p.objectMode||t&&t.length>0)if("string"==typeof t||p.objectMode||Object.getPrototypeOf(t)===n.prototype||(t=function(e){return n.from(e)}(t)),a)p.endEmitted?v(e,new y):_(e,p,t,!0);else if(p.ended)v(e,new m);else{if(p.destroyed)return!1;p.reading=!1,p.decoder&&!r?(t=p.decoder.write(t),p.objectMode||0!==t.length?_(e,p,t,!1):R(e,p)):_(e,p,t,!1)}else a||(p.reading=!1,R(e,p));return!p.ended&&(p.length<p.highWaterMark||0===p.length)}function _(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&T(e)),R(e,t)}Object.defineProperty(w.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),w.prototype.destroy=u.destroy,w.prototype._undestroy=u.undestroy,w.prototype._destroy=function(e,t){t(e)},w.prototype.push=function(e,t){var r,o=this._readableState;return o.objectMode?r=!0:"string"==typeof e&&((t=t||o.defaultEncoding)!==o.encoding&&(e=n.from(e,t),t=""),r=!0),S(this,e,t,!1,r)},w.prototype.unshift=function(e){return S(this,e,null,!0,!1)},w.prototype.isPaused=function(){return!1===this._readableState.flowing},w.prototype.setEncoding=function(e){s||(s=requireString_decoder().StringDecoder);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";null!==r;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var P=1073741824;function E(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=P?e=P:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(C,e))}function C(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,A(e)}function R(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(D,e,t))}function D(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(i("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function k(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function x(e){i("readable nexttick read 0"),e.read(0)}function j(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),A(e),t.flowing&&!t.reading&&e.read(0)}function A(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function I(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(q,t,e))}function q(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function M(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}return w.prototype.read=function(e){i("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):T(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&I(this),null;var n,o=t.needReadable;return i("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&i("length less than watermark",o=!0),t.ended||t.reading?i("reading or ended",o=!1):o&&(i("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=E(r,t))),null===(n=e>0?N(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&I(this)),null!==n&&this.emit("data",n),n},w.prototype._read=function(e){v(this,new g("_read()"))},w.prototype.pipe=function(e,r){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,i("pipe count=%d opts=%j",o.pipesCount,r);var a=(!r||!1!==r.end)&&e!==process.stdout&&e!==process.stderr?l:m;function s(t,r){i("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,i("cleanup"),e.removeListener("close",f),e.removeListener("finish",h),e.removeListener("drain",p),e.removeListener("error",c),e.removeListener("unpipe",s),n.removeListener("end",l),n.removeListener("end",m),n.removeListener("data",u),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||p())}function l(){i("onend"),e.end()}o.endEmitted?process.nextTick(a):n.once("end",a),e.on("unpipe",s);var p=function(e){return function(){var r=e._readableState;i("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,0===r.awaitDrain&&t(e,"data")&&(r.flowing=!0,A(e))}}(n);e.on("drain",p);var d=!1;function u(t){i("ondata");var r=e.write(t);i("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==M(o.pipes,e))&&!d&&(i("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function c(r){i("onerror",r),m(),e.removeListener("error",c),0===t(e,"error")&&v(e,r)}function f(){e.removeListener("finish",h),m()}function h(){i("onfinish"),e.removeListener("close",f),m()}function m(){i("unpipe"),n.unpipe(e)}return n.on("data",u),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",c),e.once("close",f),e.once("finish",h),e.emit("pipe",n),o.flowing||(i("pipe resume"),n.resume()),e},w.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=M(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},w.prototype.on=function(e,t){var n=r.prototype.on.call(this,e,t),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,i("on readable",o.length,o.reading),o.length?T(this):o.reading||process.nextTick(x,this))),n},w.prototype.addListener=w.prototype.on,w.prototype.removeListener=function(e,t){var n=r.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(k,this),n},w.prototype.removeAllListeners=function(e){var t=r.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(k,this),t},w.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(j,e,t))}(this,e)),e.paused=!1,this},w.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},w.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",function(){if(i("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){(i("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a<b.length;a++)e.on(b[a],this.emit.bind(this,b[a]));return this._read=function(t){i("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(w.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=requireAsync_iterator()),l(this)}),Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(w.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(w.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),w._fromList=N,Object.defineProperty(w.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(w.from=function(e,t){return void 0===p&&(p=requireFrom()),p(w,e,t)}),_stream_readable}function require_stream_transform(){if(hasRequired_stream_transform)return _stream_transform;hasRequired_stream_transform=1,_stream_transform=s;var e=requireErrors().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,i=require_stream_duplex();function a(e,t){var n=this._transformState;n.transforming=!1;var o=n.writecb;if(null===o)return this.emit("error",new r);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),o(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);i.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?p(this,null,null):this._flush(function(t,r){p(e,t,r)})}function p(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new o;if(e._transformState.transforming)throw new n;return e.push(null)}return requireInherits()(s,i),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,i.prototype.push.call(this,e,t)},s.prototype._transform=function(e,r,n){n(new t("_transform()"))},s.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},s.prototype._destroy=function(e,t){i.prototype._destroy.call(this,e,function(e){t(e)})},_stream_transform}function require_stream_passthrough(){if(hasRequired_stream_passthrough)return _stream_passthrough;hasRequired_stream_passthrough=1,_stream_passthrough=t;var e=require_stream_transform();function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return requireInherits()(t,e),t.prototype._transform=function(e,t,r){r(null,e)},_stream_passthrough}function requirePipeline(){if(hasRequiredPipeline)return pipeline_1;var e;hasRequiredPipeline=1;var t=requireErrors().codes,r=t.ERR_MISSING_ARGS,n=t.ERR_STREAM_DESTROYED;function o(e){if(e)throw e}function i(e){e()}function a(e,t){return e.pipe(t)}return pipeline_1=function(){for(var t=arguments.length,s=new Array(t),l=0;l<t;l++)s[l]=arguments[l];var p,d=function(e){return e.length?"function"!=typeof e[e.length-1]?o:e.pop():o}(s);if(Array.isArray(s[0])&&(s=s[0]),s.length<2)throw new r("streams");var u=s.map(function(t,r){var o=r<s.length-1;return function(t,r,o,i){i=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(i);var a=!1;t.on("close",function(){a=!0}),void 0===e&&(e=requireEndOfStream$1()),e(t,{readable:r,writable:o},function(e){if(e)return i(e);a=!0,i()});var s=!1;return function(e){if(!a&&!s)return s=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void i(e||new n("pipe"))}}(t,o,r>0,function(e){p||(p=e),e&&u.forEach(i),o||(u.forEach(i),d(p))})});return s.reduce(a)},pipeline_1}function requireReadable(){return hasRequiredReadable||(hasRequiredReadable=1,function(e,t){var r=Stream__default.default;"disable"===process.env.READABLE_STREAM&&r?(e.exports=r.Readable,Object.assign(e.exports,r),e.exports.Stream=r):((t=e.exports=require_stream_readable()).Stream=r||t,t.Readable=t,t.Writable=require_stream_writable(),t.Duplex=require_stream_duplex(),t.Transform=require_stream_transform(),t.PassThrough=require_stream_passthrough(),t.finished=requireEndOfStream$1(),t.pipeline=requirePipeline())}(readable,readable.exports)),readable.exports}var once={exports:{}},wrappy_1,hasRequiredWrappy,hasRequiredOnce,endOfStream,hasRequiredEndOfStream,streamShift,hasRequiredStreamShift,duplexify,hasRequiredDuplexify;function requireWrappy(){if(hasRequiredWrappy)return wrappy_1;return hasRequiredWrappy=1,wrappy_1=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){n[e]=t[e]}),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),o=e[e.length-1];return"function"==typeof n&&n!==o&&Object.keys(o).forEach(function(e){n[e]=o[e]}),n}},wrappy_1}function requireOnce(){if(hasRequiredOnce)return once.exports;hasRequiredOnce=1;var e=requireWrappy();function t(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function r(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}return once.exports=e(t),once.exports.strict=e(r),t.proto=t(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return t(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return r(this)},configurable:!0})}),once.exports}function requireEndOfStream(){if(hasRequiredEndOfStream)return endOfStream;hasRequiredEndOfStream=1;var e=requireOnce(),t=function(){},r=commonjsGlobal.Bare?queueMicrotask:process.nextTick.bind(process),n=function(o,i,a){if("function"==typeof i)return n(o,null,i);i||(i={}),a=e(a||t);var s=o._writableState,l=o._readableState,p=i.readable||!1!==i.readable&&o.readable,d=i.writable||!1!==i.writable&&o.writable,u=!1,c=function(){o.writable||f()},f=function(){d=!1,p||a.call(o)},h=function(){p=!1,d||a.call(o)},m=function(e){a.call(o,e?new Error("exited with error code: "+e):null)},g=function(e){a.call(o,e)},y=function(){r(v)},v=function(){if(!u)return(!p||l&&l.ended&&!l.destroyed)&&(!d||s&&s.ended&&!s.destroyed)?void 0:a.call(o,new Error("premature close"))},b=function(){o.req.on("finish",f)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(o)?d&&!s&&(o.on("end",c),o.on("close",c)):(o.on("complete",f),o.on("abort",y),o.req?b():o.on("request",b)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(o)&&o.on("exit",m),o.on("end",h),o.on("finish",f),!1!==i.error&&o.on("error",g),o.on("close",y),function(){u=!0,o.removeListener("complete",f),o.removeListener("abort",y),o.removeListener("request",b),o.req&&o.req.removeListener("finish",f),o.removeListener("end",c),o.removeListener("close",c),o.removeListener("finish",f),o.removeListener("exit",m),o.removeListener("end",h),o.removeListener("error",g),o.removeListener("close",y)}};return endOfStream=n}function requireStreamShift(){if(hasRequiredStreamShift)return streamShift;return hasRequiredStreamShift=1,streamShift=function(e){var t=e._readableState;return t?t.objectMode||"number"==typeof e._duplexState?e.read():e.read(function(e){if(e.buffer.length){var t=e.bufferIndex||0;if(e.buffer.head)return e.buffer.head.data.length;if(e.buffer.length-t>0&&e.buffer[t])return e.buffer[t].length}return e.length}(t)):null},streamShift}function requireDuplexify(){if(hasRequiredDuplexify)return duplexify;hasRequiredDuplexify=1;var e=requireReadable(),t=requireEndOfStream(),r=requireInherits(),n=requireStreamShift(),o=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),i=function(e,t){e._corked?e.once("uncork",t):t()},a=function(e,t){return function(r){r?function(e,t){e._autoDestroy&&e.destroy(t)}(e,"premature close"===r.message?null:r):t&&!e._ended&&e.end()}},s=function(){},l=function(t,r,n){if(!(this instanceof l))return new l(t,r,n);e.Duplex.call(this,n),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!n||!1!==n.autoDestroy,this._forwardDestroy=!n||!1!==n.destroy,this._forwardEnd=!n||!1!==n.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,t&&this.setWritable(t),r&&this.setReadable(r)};return r(l,e.Duplex),l.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new l(e,t,r)},l.prototype.cork=function(){1===++this._corked&&this.emit("cork")},l.prototype.uncork=function(){this._corked&&0===--this._corked&&this.emit("uncork")},l.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed)e&&e.destroy&&e.destroy();else if(null!==e&&!1!==e){var r=this,n=t(e,{writable:!0,readable:!1},a(this,this._forwardEnd)),o=function(){var e=r._ondrain;r._ondrain=null,e&&e()};this._unwrite&&process.nextTick(o),this._writable=e,this._writable.on("drain",o),this._unwrite=function(){r._writable.removeListener("drain",o),n()},this.uncork()}else this.end()},l.prototype.setReadable=function(r){if(this._unread&&this._unread(),this.destroyed)r&&r.destroy&&r.destroy();else{if(null===r||!1===r)return this.push(null),void this.resume();var n,o=this,i=t(r,{writable:!1,readable:!0},a(this)),s=function(){o._forward()},l=function(){o.push(null)};this._drained=!0,this._readable=r,this._readable2=r._readableState?r:(n=r,new e.Readable({objectMode:!0,highWaterMark:16}).wrap(n)),this._readable2.on("readable",s),this._readable2.on("end",l),this._unread=function(){o._readable2.removeListener("readable",s),o._readable2.removeListener("end",l),i()},this._forward()}},l.prototype._read=function(){this._drained=!0,this._forward()},l.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){var e;for(this._forwarding=!0;this._drained&&null!==(e=n(this._readable2));)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},l.prototype.destroy=function(e,t){if(t||(t=s),this.destroyed)return t(null);this.destroyed=!0;var r=this;process.nextTick(function(){r._destroy(e),t(null)})},l.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},l.prototype._write=function(e,t,r){if(!this.destroyed)return this._corked?i(this,this._write.bind(this,e,t,r)):e===o?this._finish(r):this._writable?void(!1===this._writable.write(e)?this._ondrain=r:this.destroyed||r()):r()},l.prototype._finish=function(e){var t=this;this.emit("preend"),i(this,function(){var r,n;r=t._forwardEnd&&t._writable,n=function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),i(t,e)},r?r._writableState&&r._writableState.finished?n():r._writableState?r.end(n):(r.end(),n()):n()})},l.prototype.end=function(t,r,n){return"function"==typeof t?this.end(null,null,t):"function"==typeof r?this.end(t,null,r):(this._ended=!0,t&&this.write(t),this._writableState.ending||this._writableState.destroyed||this.write(o),e.Writable.prototype.end.call(this,n))},duplexify=l}var retryRequest={exports:{}},extend,hasRequiredExtend,hasRequiredRetryRequest,hasRequiredStreaming;function requireExtend(){if(hasRequiredExtend)return extend;hasRequiredExtend=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return extend=function e(){var t,r,n,l,p,d,u=arguments[0],c=1,f=arguments.length,h=!1;for("boolean"==typeof u&&(h=u,u=arguments[1]||{},c=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});c<f;++c)if(null!=(t=arguments[c]))for(r in t)n=s(u,r),u!==(l=s(t,r))&&(h&&l&&(i(l)||(p=o(l)))?(p?(p=!1,d=n&&o(n)?n:[]):d=n&&i(n)?n:{},a(u,{name:r,newValue:e(h,d,l)})):void 0!==l&&a(u,{name:r,newValue:l}));return u},extend}function requireRetryRequest(){if(hasRequiredRetryRequest)return retryRequest.exports;hasRequiredRetryRequest=1;const{PassThrough:e}=Stream__default.default,t=requireExtend();let r=()=>{};"undefined"!=typeof process&&"env"in process&&"object"==typeof process.env&&"retry-request"===process.env.DEBUG&&(r=e=>{console.log("retry-request:",e)});const n={objectMode:!1,retries:2,maxRetryDelay:64,retryDelayMultiplier:2,totalTimeout:600,noResponseRetries:2,currentRetryAttempt:0,shouldRetryFn:function(e){const t=[[100,199],[429,429],[500,599]],n=e.statusCode;let o;for(r(`Response status: ${n}`);o=t.shift();)if(n>=o[0]&&n<=o[1])return!0}};function o(e){const{maxRetryDelay:t,retryDelayMultiplier:r,retryNumber:n,timeOfFirstRequest:o,totalTimeout:i}=e,a=1e3*t,s=1e3*i,l=Math.floor(1e3*Math.random()),p=1e3*Math.pow(r,n)+l,d=s-(Date.now()-o);return Math.min(p,d,a)}return retryRequest.exports=function(i,a,s){"string"==typeof i&&(i={url:i});const l="function"!=typeof arguments[arguments.length-1];"function"==typeof a&&(s=a);const p=a&&"number"==typeof a.currentRetryAttempt;if(void 0===(a=t({},n,a)).request)throw new Error("A request library must be provided to retry-request.");let d,u,c,f,h=a.currentRetryAttempt,m=0,g=!1;const y={abort:function(){f&&f.abort&&f.abort()}};l&&(d=new e({objectMode:a.objectMode}),d.abort=b);const v=Date.now();return h>0?w(h):O(),l?d:y;function b(){c=null,u&&(u.abort&&u.abort(),u.cancel&&u.cancel(),u.destroy?u.destroy():u.end&&u.end())}function O(){let t=!1;function n(e=[]){t||(t=!0,d.emit("complete",...e))}h++,r(`Current retry attempt: ${h}`),l?(g=!1,c=new e({objectMode:a.objectMode}),u=a.request(i),setImmediate(()=>{d.emit("request")}),u.on("error",e=>{g||(g=!0,S(e))}).on("response",(e,t)=>{g||(g=!0,S(null,e,t))}).on("complete",(...e)=>n(e)).on("finish",(...e)=>n(e)),u.pipe(c)):f=a.request(i,S)}function w(e){l&&b();const t=o({maxRetryDelay:a.maxRetryDelay,retryDelayMultiplier:a.retryDelayMultiplier,retryNumber:e,timeOfFirstRequest:v,totalTimeout:a.totalTimeout});r(`Next retry delay: ${t}`),t<=0?m=a.noResponseRetries+1:setTimeout(O,t)}function S(e,t,r){if(e)return m++,void(m<=a.noResponseRetries?w(m):l?(d.emit("error",e),d.end()):s(e,t,r));(p?h:h-1)<a.retries&&a.shouldRetryFn(t)?w(h):l?(d.emit("response",t),c.pipe(d),u.on("error",e=>{d.destroy(e)})):s(e,t,r)}},retryRequest.exports.defaults=n,retryRequest.exports.getNextRetryDelay=o,retryRequest.exports}function requireStreaming(){if(hasRequiredStreaming)return streaming;hasRequiredStreaming=1,Object.defineProperty(streaming,"__esModule",{value:!0}),streaming.StreamProxy=streaming.StreamType=void 0;const e=requireGax(),t=requireGoogleError(),r=requireStatus(),n=Stream__default.default,o=requireDuplexify(),i=requireRetryRequest();var a;!function(e){e[e.SERVER_STREAMING=1]="SERVER_STREAMING",e[e.CLIENT_STREAMING=2]="CLIENT_STREAMING",e[e.BIDI_STREAMING=3]="BIDI_STREAMING"}(a||(streaming.StreamType=a={}));return streaming.StreamProxy=class extends o{constructor(e,t,r,n){super(void 0,void 0,{objectMode:!0,readable:e!==a.CLIENT_STREAMING,writable:e!==a.SERVER_STREAMING}),this.type=e,this._callback=t,this._isCancelCalled=!1,this._responseHasSent=!1,this.rest=r,this.gaxServerStreamingRetries=n}shouldRetryRequest(e,r){const n=t.GoogleError.parseGRPCStatusDetails(e);let o=this.defaultShouldRetry(n,r);return r.shouldRetryFn&&(o=r.shouldRetryFn(n)),o}cancel(){this.stream?this.stream.cancel():this._isCancelCalled=!0}throwIfMaxRetriesOrTotalTimeoutExceeded(e,n,o,i,a,s){const l=(new Date).getTime();if(a&&(0===o||o<0||e&&l>=e)){const e=new t.GoogleError(`Total timeout of API exceeded ${a} milliseconds ${i?`retrying error ${i} `:""} before any response was received.`);throw e.code=r.Status.DEADLINE_EXCEEDED,e}if(0===n){const e=i;throw e.note="Max retries is set to zero.",e}if(s&&s>=n){const e=new t.GoogleError("Exceeded maximum number of retries "+(i?`retrying error ${i} `:"")+"before any response was received");throw e.code=r.Status.DEADLINE_EXCEEDED,e}}eventForwardHelper(e){["metadata","response","status"].forEach(t=>{e.on(t,this.emit.bind(this,t))})}statusMetadataHelper(e){e.on("status",()=>{this._responseHasSent||e.emit("response",{code:200,details:"",message:"OK"})}),e.on("metadata",t=>{e.emit("response",{code:200,details:"",message:"OK",metadata:t}),this._responseHasSent=!0})}forwardEvents(e){this.eventForwardHelper(e),this.statusMetadataHelper(e),e.on("error",e=>{t.GoogleError.parseGRPCStatusDetails(e)})}defaultShouldRetry(e,t){return!(t.retryCodes.length>0&&t.retryCodes.indexOf(e.code)<0||0===t.retryCodes.length)}setStream(e,t,r={},n){if(this.apiCall=e,this.argument=t,this.type===a.SERVER_STREAMING){if(this.rest){const r=e(t,this._callback);this.stream=r,this.setReadable(r)}else if(this.gaxServerStreamingRetries){const r=()=>{if(this._isCancelCalled)return void(this.stream&&this.stream.cancel());return e(t,this._callback)},o=this.newStreamingRetryRequest({request:r,retry:n});this.stream=o,this.eventForwardHelper(o),this.setReadable(o)}else{const n=i(null,{objectMode:!0,request:()=>{if(this._isCancelCalled)return void(this.stream&&this.stream.cancel());const r=e(t,this._callback);return this.stream=r,this.forwardEvents(r),r},retries:r.retries,currentRetryAttempt:r.currentRetryAttempt,noResponseRetries:r.noResponseRetries,shouldRetryFn:r.shouldRetryFn});this.setReadable(n)}return}const o=e(t,this._callback);this.stream=o,this.forwardEvents(o),this.type===a.CLIENT_STREAMING&&this.setWritable(o),this.type===a.BIDI_STREAMING&&(this.setReadable(o),this.setWritable(o)),this._isCancelCalled&&this.stream&&this.stream.cancel()}newStreamingRetryRequest(o){var i,a,s,l;const p=null!==(i=o.retry)&&void 0!==i?i:{retryCodes:[],backoffSettings:(0,e.createDefaultBackoffSettings)()};let d=0;const u=new n.PassThrough({objectMode:!0}),c=null!==(a=p.backoffSettings.totalTimeoutMillis)&&void 0!==a?a:void 0,f=null!==(s=p.backoffSettings.maxRetries)&&void 0!==s?s:void 0;let h=null!==(l=p.backoffSettings.initialRpcTimeoutMillis)&&void 0!==l?l:void 0,m=new Date,g=0;c&&(g=m.getTime()+c);const y=(e,r)=>{const n=t.GoogleError.parseGRPCStatusDetails(e);return n.note="Exception occurred in retry method that was not classified as transient",r.destroy(),u.destroy(n),u},v=e=>{let n=!1,i=!1,a=!1;const s=e.request(null);u.cancel=s.cancel;return["metadata","response","status"].forEach(e=>{s.on(e,u.emit.bind(u,e))}),this.statusMetadataHelper(s),s.on("data",e=>{d=0,this.emit.bind(this,"data")(e)}),s.on("status",()=>(i=!0,n&&u.end(),u)),s.on("end",()=>(a||(n=!0,i&&u.end()),u)),s.on("error",e=>{if(a=!0,void 0!==typeof f||void 0!==typeof c){if(this.shouldRetryRequest(e,p)){if(f&&c){const e=new t.GoogleError("Cannot set both totalTimeoutMillis and maxRetries in backoffSettings.");return e.code=r.Status.INVALID_ARGUMENT,s.destroy(),u.destroy(e),u}{try{this.throwIfMaxRetriesOrTotalTimeoutExceeded(g,f,h,e,c,d)}catch(e){const r=t.GoogleError.parseGRPCStatusDetails(e);return s.destroy(),u.destroy(r),u}const r=p.backoffSettings.retryDelayMultiplier,n=p.backoffSettings.maxRetryDelayMillis,i=p.backoffSettings.rpcTimeoutMultiplier,a=p.backoffSettings.maxRpcTimeoutMillis;let l=p.backoffSettings.initialRetryDelayMillis;const y=Math.random()*l;return(()=>{setTimeout(()=>{if(h){m=new Date,l=Math.min(l*r,n);const e=h&&i?h*i:0,t=a||0,o=g?g-m.getTime():0;h=Math.min(e,t,o)}d++;let e=this.argument;void 0!==p.getResumptionRequestFn&&(e=p.getResumptionRequestFn(e));return o.request=()=>{if(this._isCancelCalled)return void(this.stream&&this.stream.cancel());return this.apiCall(e,this._callback)},v(o)},y)})()}}return y(e,s)}return y(e,s)}),u};return v(o)}},streaming}var pathTemplate={},hasRequiredPathTemplate;function requirePathTemplate(){if(hasRequiredPathTemplate)return pathTemplate;hasRequiredPathTemplate=1,Object.defineProperty(pathTemplate,"__esModule",{value:!0}),pathTemplate.PathTemplate=void 0;return pathTemplate.PathTemplate=class{constructor(e){this.bindings={},this.data=e,this.segments=this.parsePathTemplate(e),this.size=this.segments.length}match(e){let t=e.split("/");const r={};if(t.length!==this.segments.length){if(!this.data.includes("**"))throw new TypeError(`This path ${e} does not match path template ${this.data}, the number of parameters is not same.`);if(t.length!==this.segments.length+1)throw new TypeError(`This path ${e} does not match path template ${this.data}, the number of parameters is not same with one wildcard.`)}for(let e=0;e<this.segments.length&&t.length>0;e++)if(this.segments[e]!==t[0]){if(!this.segments[e].includes("*"))throw new TypeError(`segment does not match, ${this.segments[e]} and ${t[e]}.`);{let n=this.segments[e];const o=n.match(/\{[$0-9a-zA-Z_]+=.*?\}/g);if(!o)throw new Error(`Error processing path template segment ${n}`);const i=o.map(e=>e.replace(/^\{/,"").replace(/=.*/,""));if(n.includes("**"))r[i[0]]=t[0]+"/"+t[1],t=t.slice(2);else{if(1===i.length)r[i[0]]=t[0];else{const o=t[0].split(/[-_.~]/);if(o.length!==i.length)throw new Error(`segment ${n} does not match ${t[0]}`);for(const e of i)r[e]=o[0],n=n.replace(`{${e}=*}`,`${o[0]}`),o.shift();if(n!==t[0])throw new TypeError(`non slash resource pattern ${this.segments[e]} and ${t[0]} should have same separator`)}t.shift()}}}else t.shift();return r}render(e){if(Object.keys(e).length!==Object.keys(this.bindings).length)throw new TypeError(`The number of variables ${Object.keys(e).length} does not match the number of needed variables ${Object.keys(this.bindings).length}`);let t=this.inspect();for(const r of Object.keys(e)){const n=e[r].toString();if(!this.bindings[r])throw new TypeError(`render fails for not matching ${e[r]}`);const o=this.bindings[r];if("*"===o){if(!n.match(/[^/{}]+/))throw new TypeError(`render fails for not matching ${n}`);t=t.replace(`{${r}=*}`,`${n}`)}else if("**"===o){if(!n.match(/[^{}]+/))throw new TypeError(`render fails for not matching ${n}`);t=t.replace(`{${r}=**}`,`${n}`)}}return t}inspect(){return this.segments.join("/")}parsePathTemplate(e){const t=function(e){let t=0,r=0,n=0;const o=[];for(;r>=t&&r<e.length;){if("{"===e.charAt(r))n+=1;else if("}"===e.charAt(r))n-=1;else if("/"===e.charAt(r)){if(r===e.length-1)throw new TypeError("Invalid path, it can not be ended by /");0===n&&(o.push(e.substring(t,r)),t=r+1)}if(r===e.length-1){if(0!==n)throw new TypeError("Brackets are invalid.");o.push(e.substring(t))}r+=1}return o}(e);let r=0,n=0;const o=[];let i;if(t.forEach(e=>{if("*"===e||"**"===e)this.bindings[`$${r}`]=e,o.push(`{$${r}=${e}}`),r+=1,"**"===e&&++n;else if(i=e.match(/\{[0-9a-zA-Z-.~_]+(?:=.*?)?\}/g)){for(const t of i){const r=t.match(/^\{([0-9a-zA-Z-.~_]+)(?:=(.*?))?\}$/);if(!r)throw new Error(`Cannot process path template segment ${t}`);const o=r[1];let i=r[2];i?"*"===i?this.bindings[o]=i:"**"===i&&(++n,this.bindings[o]=i):(i="*",e=e.replace(o,o+"=*"),this.bindings[o]=i)}o.push(e)}else e.match(/[0-9a-zA-Z-.~_]+/)&&o.push(e)}),n>1)throw new TypeError("Can not have more than one wildcard.");return o}},pathTemplate}var version$1="4.6.1",require$$19={version:version$1},descriptor={},longRunningDescriptor={},longRunningApiCaller={},longrunning={},hasRequiredLongrunning,hasRequiredLongRunningApiCaller,hasRequiredLongRunningDescriptor;function requireLongrunning(){if(hasRequiredLongrunning)return longrunning;hasRequiredLongrunning=1,Object.defineProperty(longrunning,"__esModule",{value:!0}),longrunning.Operation=void 0,longrunning.operation=function(e,t,r,n){return new o(e,t,r,n)};const e=require$$0__default$3.default,t=requireStatus(),r=requireGoogleError(),n=requireOperations();class o extends e.EventEmitter{constructor(e,t,r,n){super(),this.completeListeners=0,this.hasActiveListeners=!1,this.latestResponse=e,this.name=this.latestResponse.name,this.done=this.latestResponse.done,this.error=this.latestResponse.error,this.longrunningDescriptor=t,this.result=null,this.metadata=null,this.backoffSettings=r,this._unpackResponse(e),this._listenForEvents(),this._callOptions=n}_listenForEvents(){this.on("newListener",e=>{"complete"===e&&(this.completeListeners++,this.hasActiveListeners||(this.hasActiveListeners=!0,this.startPolling_()))}),this.on("removeListener",e=>{"complete"===e&&0===--this.completeListeners&&(this.hasActiveListeners=!1)})}cancel(){this.currentCallPromise_&&this.currentCallPromise_.cancel();const e=this.longrunningDescriptor.operationsClient,t=new n.google.longrunning.CancelOperationRequest;return t.name=this.latestResponse.name,e.cancelOperation(t)}getOperation(e){const t=this,o=this.longrunningDescriptor.operationsClient;function i(){if(!e)return new Promise((e,n)=>{if(t.latestResponse.error){const e=new r.GoogleError(t.latestResponse.error.message);e.code=t.latestResponse.error.code,n(e)}else e([t.result,t.metadata,t.latestResponse])})}if(this.latestResponse.done)return this._unpackResponse(this.latestResponse,e),i();const a=new n.google.longrunning.GetOperationRequest;a.name=this.latestResponse.name,this.currentCallPromise_=o.getOperationInternal(a,this._callOptions);const s=this.currentCallPromise_.then(r=>(t.latestResponse=r[0],t._unpackResponse(r[0],e),i()),t=>{if(!e)return Promise.reject(t);e(t)});return e?void 0:s}_unpackResponse(e,t){const n=this.longrunningDescriptor.responseDecoder,o=this.longrunningDescriptor.metadataDecoder;let i,a;if(e.done){if("error"===e.result){const n=new r.GoogleError(e.error.message);return n.code=e.error.code,this.error=n,void(t&&t(n))}n&&e.response&&(this.response=e.response,i=n(e.response.value),this.result=i,this.done=!0)}o&&e.metadata&&(a=o(e.metadata.value),this.metadata=a),t&&t(null,i,a,e)}startPolling_(){const e=this;let n=new Date;const o=this.backoffSettings.retryDelayMultiplier,i=this.backoffSettings.maxRetryDelayMillis;let a,s=this.backoffSettings.initialRetryDelayMillis,l=1/0;function p(t,...r){e.emit(t,...r)}this.backoffSettings.totalTimeoutMillis&&(l=n.getTime()+this.backoffSettings.totalTimeoutMillis),this.latestResponse.metadata&&(a=this.latestResponse.metadata.value),function d(){if(e.hasActiveListeners){if(n.getTime()>=l){const e=new r.GoogleError("Total timeout exceeded before any response was received");return e.code=t.Status.DEADLINE_EXCEEDED,void setImmediate(p,"error",e)}e.getOperation((e,t,r,l)=>{if(!e)return t?void setImmediate(p,"complete",t,r,l):(l.metadata&&(!a||l&&!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;++r)if(e[r]!==t[r])return!1;return!0}(l.metadata.value,a))&&(setImmediate(p,"progress",r,l),a=l.metadata.value),l.done?void setImmediate(p,"complete",{},r,l):void setTimeout(()=>{n=new Date,s=Math.min(s*o,i),d()},s));setImmediate(p,"error",e)})}}()}promise(){return new Promise((e,t)=>{this.on("error",t).on("complete",(t,r,n)=>{e([t,r,n])})})}}return longrunning.Operation=o,longrunning}function requireLongRunningApiCaller(){if(hasRequiredLongRunningApiCaller)return longRunningApiCaller;hasRequiredLongRunningApiCaller=1,Object.defineProperty(longRunningApiCaller,"__esModule",{value:!0}),longRunningApiCaller.LongrunningApiCaller=void 0;const e=requireCall(),t=requireGax(),r=requireLongrunning();return longRunningApiCaller.LongrunningApiCaller=class{constructor(e){this.longrunningDescriptor=e}init(t){return t?new e.OngoingCall(t):new e.OngoingCallPromise}wrap(e){return e}call(e,t,r,n){n.call((t,n)=>this._wrapOperation(e,r,t,n),t)}_wrapOperation(e,n,o,i){let a=n.longrunning;a||(a=(0,t.createDefaultBackoffSettings)());const s=this.longrunningDescriptor;return e(o,(e,t)=>{if(e)return void i(e,null,null,t);const o=new r.Operation(t,s,a,n);i(null,o,t)})}fail(e,t){e.callback(t)}result(e){return e.promise}},longRunningApiCaller}function requireLongRunningDescriptor(){if(hasRequiredLongRunningDescriptor)return longRunningDescriptor;hasRequiredLongRunningDescriptor=1,Object.defineProperty(longRunningDescriptor,"__esModule",{value:!0}),longRunningDescriptor.LongRunningDescriptor=void 0;const e=requireLongRunningApiCaller();return longRunningDescriptor.LongRunningDescriptor=class{constructor(e,t,r){this.operationsClient=e,this.responseDecoder=t,this.metadataDecoder=r}getApiCaller(){return new e.LongrunningApiCaller(this)}},longRunningDescriptor}var pageDescriptor={},pagedApiCaller={},resourceCollector={},hasRequiredResourceCollector,hasRequiredPagedApiCaller,hasRequiredPageDescriptor;function requireResourceCollector(){if(hasRequiredResourceCollector)return resourceCollector;hasRequiredResourceCollector=1,Object.defineProperty(resourceCollector,"__esModule",{value:!0}),resourceCollector.ResourceCollector=void 0;return resourceCollector.ResourceCollector=class{constructor(e,t=-1){this.apiCall=e,this.resources=[],this.maxResults=t}callback(e,t,r){if(e)return void this.rejectCallback(e);for(const e of t)if(this.resources.push(e),this.resources.length===this.maxResults){r=null;break}if(!r)return void this.resolveCallback(this.resources);setImmediate(this.apiCall,r,(...e)=>this.callback(...e))}processAllPages(e){return new Promise((t,r)=>{this.resolveCallback=t,this.rejectCallback=r;setImmediate(this.apiCall,e,(...e)=>this.callback(...e))})}},resourceCollector}function requirePagedApiCaller(){if(hasRequiredPagedApiCaller)return pagedApiCaller;hasRequiredPagedApiCaller=1,Object.defineProperty(pagedApiCaller,"__esModule",{value:!0}),pagedApiCaller.PagedApiCaller=void 0;const e=requireCall(),t=requireGoogleError(),r=requireResourceCollector(),n=requireWarnings();return pagedApiCaller.PagedApiCaller=class{constructor(e){this.pageDescriptor=e}generateParseResponseCallback(e,r){const n=this.pageDescriptor.resourceField,o=this.pageDescriptor.responsePageTokenField,i=this.pageDescriptor.requestPageTokenField;return(a,s)=>{if(a)return void r(a);if(!e)return void r(new t.GoogleError("Undefined request in pagination method callback."));if(!s)return void r(new t.GoogleError("Undefined response in pagination method callback."));const l=s[n]||[],p=s[o];let d=null;p&&(d=Object.assign({},e),d[i]=p),r(a,l,d,s)}}wrap(e){const t=this;return function(r,n,o,i){return e(r,n,o,t.generateParseResponseCallback(r,i))}}init(t){return t?new e.OngoingCall(t):new e.OngoingCallPromise}call(e,t,o,i){if(t=Object.assign({},t),!o.autoPaginate)return void i.call(e,t);t.pageSize&&o.autoPaginate&&(0,n.warn)("autoPaginate true","Providing a pageSize without setting autoPaginate to false will still return all results. See https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#auto-pagination for more information on how to configure manual paging","AutopaginateTrueWarning");const a=o.maxResults||-1;new r.ResourceCollector(e,a).processAllPages(t).then(e=>i.callback(null,e),e=>i.callback(e))}fail(e,t){e.callback(t)}result(e){return e.promise}},pagedApiCaller}function requirePageDescriptor(){if(hasRequiredPageDescriptor)return pageDescriptor;hasRequiredPageDescriptor=1,Object.defineProperty(pageDescriptor,"__esModule",{value:!0}),pageDescriptor.PageDescriptor=void 0;const e=Stream__default.default,t=requireNormalApiCaller(),r=requireWarnings(),n=requirePagedApiCaller();return pageDescriptor.PageDescriptor=class{constructor(e,t,r){this.requestPageTokenField=e,this.responsePageTokenField=t,this.resourceField=r}createStream(t,n,o){(null==o?void 0:o.autoPaginate)&&(0,r.warn)("autoPaginate true","Autopaginate will always be set to false in stream paging methods. See more info at https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#auto-pagination for more information on how to configure paging calls","AutopaginateTrueWarning");const i=new e.PassThrough({objectMode:!0}),a="maxResults"in(o=Object.assign({},o,{autoPaginate:!1}))?o.maxResults:-1;let s=0,l=!1;function p(e,r,d,u){if(e)i.emit("error",e);else{i.emit("response",u);for(let e=0;e<r.length;++e){if(i._readableState.ended)return;null!==r[e]&&(i.push(r[e]),s++,s===a&&i.end())}i._readableState.ended||(d?("pageToken"in o&&delete o.pageToken,i.isPaused()?(n=d,l=!1):setImmediate(t,d,o,p)):i.end())}}return i.on("resume",()=>{l||(l=!0,t(n,o,p))}),i}asyncIterate(e,t,n){(null==n?void 0:n.autoPaginate)&&(0,r.warn)("autoPaginate true","Autopaginate will always be set to false in Async paging methods. See more info at https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#auto-pagination for more information on how to configure paging calls","AutopaginateTrueWarning"),n=Object.assign({},n,{autoPaginate:!1});return this.createIterator(e,t,n)}createIterator(e,t,r){const n={[Symbol.asyncIterator](){let n=t;const o=[];return{async next(){if(o.length>0)return Promise.resolve({done:!1,value:o.shift()});let t=0;for(;0===o.length&&n;){let i;if([i,n]=await e(n,r),i&&!Array.isArray(i))for(const[e,t]of Object.entries(i))o.push([e,t]);else o.push(...i);if(0===o.length&&(++t,t>10))break}return 0===o.length?Promise.resolve({done:!0,value:void 0}):Promise.resolve({done:!1,value:o.shift()})}}}};return n}getApiCaller(e){return e.autoPaginate?new n.PagedApiCaller(this):new t.NormalApiCaller}},pageDescriptor}var streamDescriptor={},streamingApiCaller={},hasRequiredStreamingApiCaller,hasRequiredStreamDescriptor;function requireStreamingApiCaller(){if(hasRequiredStreamingApiCaller)return streamingApiCaller;hasRequiredStreamingApiCaller=1,Object.defineProperty(streamingApiCaller,"__esModule",{value:!0}),streamingApiCaller.StreamingApiCaller=void 0;const e=requireWarnings(),t=requireStreaming();return streamingApiCaller.StreamingApiCaller=class{constructor(e){this.descriptor=e}init(e){return new t.StreamProxy(this.descriptor.type,e,this.descriptor.rest,this.descriptor.gaxStreamingRetries)}wrap(r){switch(this.descriptor.type){case t.StreamType.SERVER_STREAMING:return(e,t,n)=>r(e,t,n);case t.StreamType.CLIENT_STREAMING:return(e,t,n,o)=>r(t,n,o);case t.StreamType.BIDI_STREAMING:return(e,t,n)=>r(t,n);default:(0,e.warn)("streaming_wrap_unknown_stream_type",`Unknown stream type: ${this.descriptor.type}`)}return r}call(e,t,r,n){n.setStream(e,t,r.retryRequestOptions,r.retry)}fail(e,t){e.emit("error",t)}result(e){return e}},streamingApiCaller}function requireStreamDescriptor(){if(hasRequiredStreamDescriptor)return streamDescriptor;hasRequiredStreamDescriptor=1,Object.defineProperty(streamDescriptor,"__esModule",{value:!0}),streamDescriptor.StreamDescriptor=void 0;const e=requireStreamingApiCaller();return streamDescriptor.StreamDescriptor=class{constructor(e,t,r){this.type=e,this.streaming=!0,this.rest=t,this.gaxStreamingRetries=r}getApiCaller(){return new e.StreamingApiCaller(this)}},streamDescriptor}var bundleDescriptor={},bundleApiCaller={},hasRequiredBundleApiCaller;function requireBundleApiCaller(){if(hasRequiredBundleApiCaller)return bundleApiCaller;hasRequiredBundleApiCaller=1,Object.defineProperty(bundleApiCaller,"__esModule",{value:!0}),bundleApiCaller.BundleApiCaller=void 0;const e=requireCall(),t=requireGoogleError();return bundleApiCaller.BundleApiCaller=class{constructor(e){this.bundler=e}init(t){return t?new e.OngoingCall(t):new e.OngoingCallPromise}wrap(e){return e}call(e,r,n,o){if(!n.isBundling)throw new t.GoogleError("Bundling enabled with no isBundling!");o.call((t,r)=>(this.bundler.schedule(e,t,r),o),r)}fail(e,t){e.callback(t)}result(e){return e.promise}},bundleApiCaller}var bundleExecutor={},bundlingUtils={},hasRequiredBundlingUtils;function requireBundlingUtils(){if(hasRequiredBundlingUtils)return bundlingUtils;function e(e,t){const r=t.split(".");let n=e;for(const e of r)n=null==n?void 0:n[e];return n}return hasRequiredBundlingUtils=1,Object.defineProperty(bundlingUtils,"__esModule",{value:!0}),bundlingUtils.computeBundleId=function(t,r){const n=[];let o=!1;for(const i of r){const r=e(t,i);void 0===r?n.push(null):(o=!0,n.push(r))}if(!o)return;return JSON.stringify(n)},bundlingUtils}var task={},hasRequiredTask,hasRequiredBundleExecutor,hasRequiredBundleDescriptor,hasRequiredDescriptor;function requireTask(){if(hasRequiredTask)return task;hasRequiredTask=1,Object.defineProperty(task,"__esModule",{value:!0}),task.Task=void 0,task.deepCopyForResponse=r;const e=requireStatus(),t=requireGoogleError();function r(e,t){let n;return null===e?null:void 0!==e?Array.isArray(e)?(n=[],e.forEach(e=>{n.push(r(e,null))}),n):void 0!==e.copy?e.copy():e instanceof ArrayBuffer?e.slice(0):"object"==typeof e?(n={},Object.keys(e).forEach(o=>{t&&o===t.field&&Array.isArray(e[o])?n[o]=e[o].slice(t.start,t.end):n[o]=r(e[o],null)}),n):e:void 0}return task.Task=class{constructor(e,t,r,n){this._apiCall=e,this._request=t,this._bundledField=r,this._subresponseField=n,this._data=[]}getElementCount(){let e=0;for(let t=0;t<this._data.length;++t)e+=this._data[t].elements.length;return e}getRequestByteSize(){let e=0;for(let t=0;t<this._data.length;++t)e+=this._data[t].bytes;return e}run(){if(0===this._data.length)return[];const n=this._request,o=[],i=[];for(let e=0;e<this._data.length;++e)o.push(...this._data[e].elements),i.push(this._data[e].callback.id);n[this._bundledField]=o;const a=this;return this.callCanceller=this._apiCall(n,(n,o)=>{const i=[];if(n)a._data.forEach(()=>{i.push(void 0)});else{let e=null;a._subresponseField&&(e={field:a._subresponseField,start:0}),a._data.forEach(t=>{e&&(e.end=e.start+t.elements.length),i.push(r(o,e)),e&&(e.start=e.end)})}for(let r=0;r<a._data.length;++r)if(a._data[r].cancelled){const n=new t.GoogleError("cancelled");n.code=e.Status.CANCELLED,a._data[r].callback(n)}else a._data[r].callback(n,i[r])}),i}extend(e,t,r){this._data.push({elements:e,bytes:t,callback:r})}cancel(r){if(this.callCanceller){let e=!0;return this._data.forEach(t=>{t.callback.id===r&&(t.cancelled=!0),t.cancelled||(e=!1)}),e&&this.callCanceller.cancel(),e}for(let n=0;n<this._data.length;++n)if(this._data[n].callback.id===r){const r=new t.GoogleError("cancelled");r.code=e.Status.CANCELLED,this._data[n].callback(r),this._data.splice(n,1);break}return 0===this._data.length}},task}function requireBundleExecutor(){if(hasRequiredBundleExecutor)return bundleExecutor;hasRequiredBundleExecutor=1,Object.defineProperty(bundleExecutor,"__esModule",{value:!0}),bundleExecutor.BundleExecutor=void 0;const e=requireStatus(),t=requireGoogleError(),r=requireWarnings(),n=requireBundlingUtils(),o=requireTask();function i(){}return bundleExecutor.BundleExecutor=class{constructor(e,t){this._options=e,this._descriptor=t,this._tasks={},this._timers={},this._invocations={},this._invocationId=0}schedule(a,s,l){const p=(0,n.computeBundleId)(s,this._descriptor.requestDiscriminatorFields);if(l=l||i,void 0===p)return(0,r.warn)("bundling_schedule_bundleid_undefined",`The request does not have enough information for request bundling. Invoking immediately. Request: ${JSON.stringify(s)} discriminator fields: ${this._descriptor.requestDiscriminatorFields}`),a(s,l);if(void 0===s[this._descriptor.bundledField])return(0,r.warn)("bundling_no_bundled_field",`Request does not contain field ${this._descriptor.bundledField} that must present for bundling. Invoking immediately. Request: ${JSON.stringify(s)}`),a(s,l);p in this._tasks||(this._tasks[p]=new o.Task(a,s,this._descriptor.bundledField,this._descriptor.subresponseField));let d=this._tasks[p];l.id=String(this._invocationId++),this._invocations[l.id]=p;const u=s[this._descriptor.bundledField],c=u.length;let f=0;const h=this;u.forEach(e=>{f+=this._descriptor.byteLengthFunction(e)});const m=this._options.elementCountLimit||0,g=this._options.requestByteLimit||0;if(m>0&&c>m||g>0&&f>=g){let r;r=m>0&&c>m?"The number of elements "+c+" exceeds the limit "+this._options.elementCountLimit:"The required bytes "+f+" exceeds the limit "+this._options.requestByteLimit;const n=new t.GoogleError(r);return n.code=e.Status.INVALID_ARGUMENT,l(n),{cancel:i}}const y=d.getElementCount(),v=d.getRequestByteSize();(m>0&&c+y>=m||g>0&&f+v>=g)&&(this._runNow(p),this._tasks[p]=new o.Task(a,s,this._descriptor.bundledField,this._descriptor.subresponseField),d=this._tasks[p]),d.extend(u,f,l);const b={cancel(){h._cancel(l.id)}},O=this._options.elementCountThreshold||0,w=this._options.requestByteThreshold||0;return O>0&&d.getElementCount()>=O||w>0&&d.getRequestByteSize()>=w?(this._runNow(p),b):(!(p in this._timers)&&this._options.delayThreshold>0&&(this._timers[p]=setTimeout(()=>{delete this._timers[p],this._runNow(p)},this._options.delayThreshold)),b)}_maybeClearTimeout(e){if(e in this._timers){const t=this._timers[e];delete this._timers[e],clearTimeout(t)}}_cancel(e){if(!(e in this._invocations))return;const t=this._invocations[e];if(!(t in this._tasks))return;const r=this._tasks[t];delete this._invocations[e],r.cancel(e)&&(this._maybeClearTimeout(t),delete this._tasks[t])}_runNow(e){if(!(e in this._tasks))return void(0,r.warn)("bundle_runnow_bundleid_unknown",`No such bundleid: ${e}`);this._maybeClearTimeout(e);const t=this._tasks[e];delete this._tasks[e],t.run().forEach(e=>{delete this._invocations[e]})}},bundleExecutor}function requireBundleDescriptor(){if(hasRequiredBundleDescriptor)return bundleDescriptor;hasRequiredBundleDescriptor=1,Object.defineProperty(bundleDescriptor,"__esModule",{value:!0}),bundleDescriptor.BundleDescriptor=void 0;const e=requireNormalApiCaller(),t=requireBundleApiCaller(),r=requireBundleExecutor(),n=requireUtil$2();return bundleDescriptor.BundleDescriptor=class{constructor(e,t,r,o){o||"function"!=typeof r||(o=r,r=null),this.bundledField=e,this.requestDiscriminatorFields=t.map(n.toCamelCase),this.subresponseField=r,this.byteLengthFunction=o}getApiCaller(n){return!1===n.isBundling?new e.NormalApiCaller:new t.BundleApiCaller(new r.BundleExecutor(n.bundleOptions,this))}},bundleDescriptor}function requireDescriptor(){return hasRequiredDescriptor||(hasRequiredDescriptor=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.BundleDescriptor=e.StreamDescriptor=e.PageDescriptor=e.LongrunningDescriptor=void 0;var t=requireLongRunningDescriptor();Object.defineProperty(e,"LongrunningDescriptor",{enumerable:!0,get:function(){return t.LongRunningDescriptor}});var r=requirePageDescriptor();Object.defineProperty(e,"PageDescriptor",{enumerable:!0,get:function(){return r.PageDescriptor}});var n=requireStreamDescriptor();Object.defineProperty(e,"StreamDescriptor",{enumerable:!0,get:function(){return n.StreamDescriptor}});var o=requireBundleDescriptor();Object.defineProperty(e,"BundleDescriptor",{enumerable:!0,get:function(){return o.BundleDescriptor}})}(descriptor)),descriptor}var iamService={},interfaces$2={"google.iam.v1.IAMPolicy":{retry_codes:{non_idempotent:[],idempotent:["DEADLINE_EXCEEDED","UNAVAILABLE"]},retry_params:{default:{initial_retry_delay_millis:100,retry_delay_multiplier:1.3,max_retry_delay_millis:6e4,initial_rpc_timeout_millis:2e4,rpc_timeout_multiplier:1,max_rpc_timeout_millis:2e4,total_timeout_millis:6e5}},methods:{GetIamPolicy:{retry_codes_name:"non_idempotent",retry_params_name:"default"},SetIamPolicy:{retry_codes_name:"non_idempotent",retry_params_name:"default"},TestIamPermissions:{retry_codes_name:"non_idempotent",retry_params_name:"default"}}}},require$$2={interfaces:interfaces$2},nested$3={google:{nested:{iam:{nested:{v1:{options:{cc_enable_arenas:!0,csharp_namespace:"Google.Cloud.Iam.V1",go_package:"google.golang.org/genproto/googleapis/iam/v1;iam",java_multiple_files:!0,java_outer_classname:"PolicyProto",java_package:"com.google.iam.v1",php_namespace:"Google\\Cloud\\Iam\\V1"},nested:{IAMPolicy:{options:{"(google.api.default_host)":"iam-meta-api.googleapis.com"},methods:{SetIamPolicy:{requestType:"SetIamPolicyRequest",responseType:"Policy",options:{"(google.api.http).post":"/v1/{resource=**}:setIamPolicy","(google.api.http).body":"*"},parsedOptions:[{"(google.api.http)":{post:"/v1/{resource=**}:setIamPolicy",body:"*"}}]},GetIamPolicy:{requestType:"GetIamPolicyRequest",responseType:"Policy",options:{"(google.api.http).post":"/v1/{resource=**}:getIamPolicy","(google.api.http).body":"*"},parsedOptions:[{"(google.api.http)":{post:"/v1/{resource=**}:getIamPolicy",body:"*"}}]},TestIamPermissions:{requestType:"TestIamPermissionsRequest",responseType:"TestIamPermissionsResponse",options:{"(google.api.http).post":"/v1/{resource=**}:testIamPermissions","(google.api.http).body":"*"},parsedOptions:[{"(google.api.http)":{post:"/v1/{resource=**}:testIamPermissions",body:"*"}}]}}},SetIamPolicyRequest:{fields:{resource:{type:"string",id:1,options:{"(google.api.field_behavior)":"REQUIRED","(google.api.resource_reference).type":"*"}},policy:{type:"Policy",id:2,options:{"(google.api.field_behavior)":"REQUIRED"}}}},GetIamPolicyRequest:{fields:{resource:{type:"string",id:1,options:{"(google.api.field_behavior)":"REQUIRED","(google.api.resource_reference).type":"*"}},options:{type:"GetPolicyOptions",id:2}}},TestIamPermissionsRequest:{fields:{resource:{type:"string",id:1,options:{"(google.api.field_behavior)":"REQUIRED","(google.api.resource_reference).type":"*"}},permissions:{rule:"repeated",type:"string",id:2,options:{"(google.api.field_behavior)":"REQUIRED"}}}},TestIamPermissionsResponse:{fields:{permissions:{rule:"repeated",type:"string",id:1}}},GetPolicyOptions:{fields:{requestedPolicyVersion:{type:"int32",id:1}}},Policy:{fields:{version:{type:"int32",id:1},bindings:{rule:"repeated",type:"Binding",id:4},etag:{type:"bytes",id:3}}},Binding:{fields:{role:{type:"string",id:1},members:{rule:"repeated",type:"string",id:2},condition:{type:"google.type.Expr",id:3}}},PolicyDelta:{fields:{bindingDeltas:{rule:"repeated",type:"BindingDelta",id:1},auditConfigDeltas:{rule:"repeated",type:"AuditConfigDelta",id:2}}},BindingDelta:{fields:{action:{type:"Action",id:1},role:{type:"string",id:2},member:{type:"string",id:3},condition:{type:"google.type.Expr",id:4}},nested:{Action:{values:{ACTION_UNSPECIFIED:0,ADD:1,REMOVE:2}}}},AuditConfigDelta:{fields:{action:{type:"Action",id:1},service:{type:"string",id:2},exemptedMember:{type:"string",id:3},logType:{type:"string",id:4}},nested:{Action:{values:{ACTION_UNSPECIFIED:0,ADD:1,REMOVE:2}}}},logging:{options:{csharp_namespace:"Google.Cloud.Iam.V1.Logging",go_package:"google.golang.org/genproto/googleapis/iam/v1/logging;logging",java_multiple_files:!0,java_outer_classname:"AuditDataProto",java_package:"com.google.iam.v1.logging"},nested:{AuditData:{fields:{policyDelta:{type:"google.iam.v1.PolicyDelta",id:2}}}}}}}}},api:{options:{go_package:"google.golang.org/genproto/googleapis/api/annotations;annotations",java_multiple_files:!0,java_outer_classname:"ResourceProto",java_package:"com.google.api",objc_class_prefix:"GAPI",cc_enable_arenas:!0},nested:{http:{type:"HttpRule",id:72295728,extend:"google.protobuf.MethodOptions"},Http:{fields:{rules:{rule:"repeated",type:"HttpRule",id:1},fullyDecodeReservedExpansion:{type:"bool",id:2}}},HttpRule:{oneofs:{pattern:{oneof:["get","put","post","delete","patch","custom"]}},fields:{selector:{type:"string",id:1},get:{type:"string",id:2},put:{type:"string",id:3},post:{type:"string",id:4},delete:{type:"string",id:5},patch:{type:"string",id:6},custom:{type:"CustomHttpPattern",id:8},body:{type:"string",id:7},responseBody:{type:"string",id:12},additionalBindings:{rule:"repeated",type:"HttpRule",id:11}}},CustomHttpPattern:{fields:{kind:{type:"string",id:1},path:{type:"string",id:2}}},methodSignature:{rule:"repeated",type:"string",id:1051,extend:"google.protobuf.MethodOptions"},defaultHost:{type:"string",id:1049,extend:"google.protobuf.ServiceOptions"},oauthScopes:{type:"string",id:1050,extend:"google.protobuf.ServiceOptions"},fieldBehavior:{rule:"repeated",type:"google.api.FieldBehavior",id:1052,extend:"google.protobuf.FieldOptions"},FieldBehavior:{values:{FIELD_BEHAVIOR_UNSPECIFIED:0,OPTIONAL:1,REQUIRED:2,OUTPUT_ONLY:3,INPUT_ONLY:4,IMMUTABLE:5}},resourceReference:{type:"google.api.ResourceReference",id:1055,extend:"google.protobuf.FieldOptions"},resourceDefinition:{rule:"repeated",type:"google.api.ResourceDescriptor",id:1053,extend:"google.protobuf.FileOptions"},resource:{type:"google.api.ResourceDescriptor",id:1053,extend:"google.protobuf.MessageOptions"},ResourceDescriptor:{fields:{type:{type:"string",id:1},pattern:{rule:"repeated",type:"string",id:2},nameField:{type:"string",id:3},history:{type:"History",id:4},plural:{type:"string",id:5},singular:{type:"string",id:6}},nested:{History:{values:{HISTORY_UNSPECIFIED:0,ORIGINALLY_SINGLE_PATTERN:1,FUTURE_MULTI_PATTERN:2}}}},ResourceReference:{fields:{type:{type:"string",id:1},childType:{type:"string",id:2}}}}},protobuf:{options:{go_package:"github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor",java_package:"com.google.protobuf",java_outer_classname:"DescriptorProtos",csharp_namespace:"Google.Protobuf.Reflection",objc_class_prefix:"GPB",cc_enable_arenas:!0,optimize_for:"SPEED"},nested:{FileDescriptorSet:{fields:{file:{rule:"repeated",type:"FileDescriptorProto",id:1}}},FileDescriptorProto:{fields:{name:{type:"string",id:1},package:{type:"string",id:2},dependency:{rule:"repeated",type:"string",id:3},publicDependency:{rule:"repeated",type:"int32",id:10,options:{packed:!1}},weakDependency:{rule:"repeated",type:"int32",id:11,options:{packed:!1}},messageType:{rule:"repeated",type:"DescriptorProto",id:4},enumType:{rule:"repeated",type:"EnumDescriptorProto",id:5},service:{rule:"repeated",type:"ServiceDescriptorProto",id:6},extension:{rule:"repeated",type:"FieldDescriptorProto",id:7},options:{type:"FileOptions",id:8},sourceCodeInfo:{type:"SourceCodeInfo",id:9},syntax:{type:"string",id:12}}},DescriptorProto:{fields:{name:{type:"string",id:1},field:{rule:"repeated",type:"FieldDescriptorProto",id:2},extension:{rule:"repeated",type:"FieldDescriptorProto",id:6},nestedType:{rule:"repeated",type:"DescriptorProto",id:3},enumType:{rule:"repeated",type:"EnumDescriptorProto",id:4},extensionRange:{rule:"repeated",type:"ExtensionRange",id:5},oneofDecl:{rule:"repeated",type:"OneofDescriptorProto",id:8},options:{type:"MessageOptions",id:7},reservedRange:{rule:"repeated",type:"ReservedRange",id:9},reservedName:{rule:"repeated",type:"string",id:10}},nested:{ExtensionRange:{fields:{start:{type:"int32",id:1},end:{type:"int32",id:2},options:{type:"ExtensionRangeOptions",id:3}}},ReservedRange:{fields:{start:{type:"int32",id:1},end:{type:"int32",id:2}}}}},ExtensionRangeOptions:{fields:{uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]]},FieldDescriptorProto:{fields:{name:{type:"string",id:1},number:{type:"int32",id:3},label:{type:"Label",id:4},type:{type:"Type",id:5},typeName:{type:"string",id:6},extendee:{type:"string",id:2},defaultValue:{type:"string",id:7},oneofIndex:{type:"int32",id:9},jsonName:{type:"string",id:10},options:{type:"FieldOptions",id:8},proto3Optional:{type:"bool",id:17}},nested:{Type:{values:{TYPE_DOUBLE:1,TYPE_FLOAT:2,TYPE_INT64:3,TYPE_UINT64:4,TYPE_INT32:5,TYPE_FIXED64:6,TYPE_FIXED32:7,TYPE_BOOL:8,TYPE_STRING:9,TYPE_GROUP:10,TYPE_MESSAGE:11,TYPE_BYTES:12,TYPE_UINT32:13,TYPE_ENUM:14,TYPE_SFIXED32:15,TYPE_SFIXED64:16,TYPE_SINT32:17,TYPE_SINT64:18}},Label:{values:{LABEL_OPTIONAL:1,LABEL_REQUIRED:2,LABEL_REPEATED:3}}}},OneofDescriptorProto:{fields:{name:{type:"string",id:1},options:{type:"OneofOptions",id:2}}},EnumDescriptorProto:{fields:{name:{type:"string",id:1},value:{rule:"repeated",type:"EnumValueDescriptorProto",id:2},options:{type:"EnumOptions",id:3},reservedRange:{rule:"repeated",type:"EnumReservedRange",id:4},reservedName:{rule:"repeated",type:"string",id:5}},nested:{EnumReservedRange:{fields:{start:{type:"int32",id:1},end:{type:"int32",id:2}}}}},EnumValueDescriptorProto:{fields:{name:{type:"string",id:1},number:{type:"int32",id:2},options:{type:"EnumValueOptions",id:3}}},ServiceDescriptorProto:{fields:{name:{type:"string",id:1},method:{rule:"repeated",type:"MethodDescriptorProto",id:2},options:{type:"ServiceOptions",id:3}}},MethodDescriptorProto:{fields:{name:{type:"string",id:1},inputType:{type:"string",id:2},outputType:{type:"string",id:3},options:{type:"MethodOptions",id:4},clientStreaming:{type:"bool",id:5,options:{default:!1}},serverStreaming:{type:"bool",id:6,options:{default:!1}}}},FileOptions:{fields:{javaPackage:{type:"string",id:1},javaOuterClassname:{type:"string",id:8},javaMultipleFiles:{type:"bool",id:10,options:{default:!1}},javaGenerateEqualsAndHash:{type:"bool",id:20,options:{deprecated:!0}},javaStringCheckUtf8:{type:"bool",id:27,options:{default:!1}},optimizeFor:{type:"OptimizeMode",id:9,options:{default:"SPEED"}},goPackage:{type:"string",id:11},ccGenericServices:{type:"bool",id:16,options:{default:!1}},javaGenericServices:{type:"bool",id:17,options:{default:!1}},pyGenericServices:{type:"bool",id:18,options:{default:!1}},phpGenericServices:{type:"bool",id:42,options:{default:!1}},deprecated:{type:"bool",id:23,options:{default:!1}},ccEnableArenas:{type:"bool",id:31,options:{default:!0}},objcClassPrefix:{type:"string",id:36},csharpNamespace:{type:"string",id:37},swiftPrefix:{type:"string",id:39},phpClassPrefix:{type:"string",id:40},phpNamespace:{type:"string",id:41},phpMetadataNamespace:{type:"string",id:44},rubyPackage:{type:"string",id:45},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],reserved:[[38,38]],nested:{OptimizeMode:{values:{SPEED:1,CODE_SIZE:2,LITE_RUNTIME:3}}}},MessageOptions:{fields:{messageSetWireFormat:{type:"bool",id:1,options:{default:!1}},noStandardDescriptorAccessor:{type:"bool",id:2,options:{default:!1}},deprecated:{type:"bool",id:3,options:{default:!1}},mapEntry:{type:"bool",id:7},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],reserved:[[8,8],[9,9]]},FieldOptions:{fields:{ctype:{type:"CType",id:1,options:{default:"STRING"}},packed:{type:"bool",id:2},jstype:{type:"JSType",id:6,options:{default:"JS_NORMAL"}},lazy:{type:"bool",id:5,options:{default:!1}},deprecated:{type:"bool",id:3,options:{default:!1}},weak:{type:"bool",id:10,options:{default:!1}},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],reserved:[[4,4]],nested:{CType:{values:{STRING:0,CORD:1,STRING_PIECE:2}},JSType:{values:{JS_NORMAL:0,JS_STRING:1,JS_NUMBER:2}}}},OneofOptions:{fields:{uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]]},EnumOptions:{fields:{allowAlias:{type:"bool",id:2},deprecated:{type:"bool",id:3,options:{default:!1}},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],reserved:[[5,5]]},EnumValueOptions:{fields:{deprecated:{type:"bool",id:1,options:{default:!1}},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]]},ServiceOptions:{fields:{deprecated:{type:"bool",id:33,options:{default:!1}},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]]},MethodOptions:{fields:{deprecated:{type:"bool",id:33,options:{default:!1}},idempotencyLevel:{type:"IdempotencyLevel",id:34,options:{default:"IDEMPOTENCY_UNKNOWN"}},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],nested:{IdempotencyLevel:{values:{IDEMPOTENCY_UNKNOWN:0,NO_SIDE_EFFECTS:1,IDEMPOTENT:2}}}},UninterpretedOption:{fields:{name:{rule:"repeated",type:"NamePart",id:2},identifierValue:{type:"string",id:3},positiveIntValue:{type:"uint64",id:4},negativeIntValue:{type:"int64",id:5},doubleValue:{type:"double",id:6},stringValue:{type:"bytes",id:7},aggregateValue:{type:"string",id:8}},nested:{NamePart:{fields:{namePart:{rule:"required",type:"string",id:1},isExtension:{rule:"required",type:"bool",id:2}}}}},SourceCodeInfo:{fields:{location:{rule:"repeated",type:"Location",id:1}},nested:{Location:{fields:{path:{rule:"repeated",type:"int32",id:1},span:{rule:"repeated",type:"int32",id:2},leadingComments:{type:"string",id:3},trailingComments:{type:"string",id:4},leadingDetachedComments:{rule:"repeated",type:"string",id:6}}}}},GeneratedCodeInfo:{fields:{annotation:{rule:"repeated",type:"Annotation",id:1}},nested:{Annotation:{fields:{path:{rule:"repeated",type:"int32",id:1},sourceFile:{type:"string",id:2},begin:{type:"int32",id:3},end:{type:"int32",id:4}}}}}}},type:{options:{go_package:"google.golang.org/genproto/googleapis/type/expr;expr",java_multiple_files:!0,java_outer_classname:"ExprProto",java_package:"com.google.type",objc_class_prefix:"GTP"},nested:{Expr:{fields:{expression:{type:"string",id:1},title:{type:"string",id:2},description:{type:"string",id:3},location:{type:"string",id:4}}}}}}}},require$$5$1={nested:nested$3},hasRequiredIamService;function requireIamService(){if(hasRequiredIamService)return iamService;hasRequiredIamService=1,Object.defineProperty(iamService,"__esModule",{value:!0}),iamService.IamClient=void 0;const e=requireCreateApiCall(),t=requireRoutingHeader(),r=require$$2,n=requireFallback();let o=require$$19.version;const i=require$$5$1;return iamService.IamClient=class{constructor(e,t){this._terminated=!1,this.descriptors={page:{},stream:{},longrunning:{}},this.innerApiCalls={},this.gaxGrpc=e;const a=Object.assign({servicePath:t.servicePath,port:t.port,clientConfig:t.clientConfig,apiEndpoint:t.apiEndpoint,fallback:t.fallback},t);o=a.fallback?n.version:o,a.scopes=this.constructor.scopes,this._opts=a,this.auth=e.auth;const s=[`gax/${o}`,`gapic/${o}`];"undefined"!=typeof process&&"versions"in process?s.push(`gl-node/${process.versions.node}`):s.push(`gl-web/${o}`),a.fallback||s.push(`grpc/${e.grpcVersion}`),a.libName&&a.libVersion&&s.push(`${a.libName}/${a.libVersion}`),this._protos=this.gaxGrpc.loadProtoJSON(i),this._defaults=e.constructSettings("google.iam.v1.IAMPolicy",r,a.clientConfig||{},{"x-goog-api-client":s.join(" ")}),this.innerApiCalls={}}initialize(){if(this.iamPolicyStub)return this.iamPolicyStub;this.iamPolicyStub=this.gaxGrpc.createStub(this._opts.fallback?this._protos.lookupService("google.iam.v1.IAMPolicy"):this._protos.google.iam.v1.IAMPolicy,this._opts);const t=["getIamPolicy","setIamPolicy","testIamPermissions"];for(const r of t){const t=this.iamPolicyStub.then(e=>(...t)=>{if(this._terminated)return Promise.reject("The client has already been closed.");return e[r].apply(e,t)},e=>()=>{throw e});this.innerApiCalls[r]=(0,e.createApiCall)(t,this._defaults[r],this.descriptors.page[r])}return this.iamPolicyStub}static get servicePath(){return"cloudkms.googleapis.com"}static get apiEndpoint(){return"cloudkms.googleapis.com"}static get port(){return 443}static get scopes(){return["https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudkms"]}getProjectId(e){return this.auth&&"getProjectId"in this.auth?this.auth.getProjectId(e):e?void e(new Error("Cannot determine project ID.")):Promise.reject("Cannot determine project ID.")}getIamPolicy(e,r,n){let o;return r instanceof Function&&void 0===n?(n=r,o={}):o=r,e=e||{},o=o||{},o.otherArgs=o.otherArgs||{},o.otherArgs.headers=o.otherArgs.headers||{},o.otherArgs.headers["x-goog-request-params"]=t.fromParams({resource:e.resource}),this.initialize(),this.innerApiCalls.getIamPolicy(e,o,n)}setIamPolicy(e,r,n){let o;return r instanceof Function&&void 0===n?(n=r,o={}):o=r,e=e||{},o=o||{},o.otherArgs=o.otherArgs||{},o.otherArgs.headers=o.otherArgs.headers||{},o.otherArgs.headers["x-goog-request-params"]=t.fromParams({resource:e.resource}),this.initialize(),this.innerApiCalls.setIamPolicy(e,o,n)}testIamPermissions(e,r,n){let o;return r instanceof Function&&void 0===n?(n=r,o={}):o=r,e=e||{},o=o||{},o.otherArgs=o.otherArgs||{},o.otherArgs.headers=o.otherArgs.headers||{},o.otherArgs.headers["x-goog-request-params"]=t.fromParams({resource:e.resource}),this.initialize(),this.innerApiCalls.testIamPermissions(e,o,n)}close(){return this.initialize(),this._terminated?Promise.resolve():this.iamPolicyStub.then(e=>{this._terminated=!0,e.close()})}},iamService}var locationService={},nested$2={google:{nested:{cloud:{nested:{location:{options:{cc_enable_arenas:!0,go_package:"google.golang.org/genproto/googleapis/cloud/location;location",java_multiple_files:!0,java_outer_classname:"LocationsProto",java_package:"com.google.cloud.location"},nested:{Locations:{options:{"(google.api.default_host)":"cloud.googleapis.com","(google.api.oauth_scopes)":"https://www.googleapis.com/auth/cloud-platform"},methods:{ListLocations:{requestType:"ListLocationsRequest",responseType:"ListLocationsResponse",options:{"(google.api.http).get":"/v1/{name=locations}","(google.api.http).additional_bindings.get":"/v1/{name=projects/*}/locations"},parsedOptions:[{"(google.api.http)":{get:"/v1/{name=locations}",additional_bindings:{get:"/v1/{name=projects/*}/locations"}}}]},GetLocation:{requestType:"GetLocationRequest",responseType:"Location",options:{"(google.api.http).get":"/v1/{name=locations/*}","(google.api.http).additional_bindings.get":"/v1/{name=projects/*/locations/*}"},parsedOptions:[{"(google.api.http)":{get:"/v1/{name=locations/*}",additional_bindings:{get:"/v1/{name=projects/*/locations/*}"}}}]}}},ListLocationsRequest:{fields:{name:{type:"string",id:1},filter:{type:"string",id:2},pageSize:{type:"int32",id:3},pageToken:{type:"string",id:4}}},ListLocationsResponse:{fields:{locations:{rule:"repeated",type:"Location",id:1},nextPageToken:{type:"string",id:2}}},GetLocationRequest:{fields:{name:{type:"string",id:1}}},Location:{fields:{name:{type:"string",id:1},locationId:{type:"string",id:4},displayName:{type:"string",id:5},labels:{keyType:"string",type:"string",id:2},metadata:{type:"google.protobuf.Any",id:3}}}}}}},api:{options:{go_package:"google.golang.org/genproto/googleapis/api/annotations;annotations",java_multiple_files:!0,java_outer_classname:"ClientProto",java_package:"com.google.api",objc_class_prefix:"GAPI",cc_enable_arenas:!0},nested:{http:{type:"HttpRule",id:72295728,extend:"google.protobuf.MethodOptions"},Http:{fields:{rules:{rule:"repeated",type:"HttpRule",id:1},fullyDecodeReservedExpansion:{type:"bool",id:2}}},HttpRule:{oneofs:{pattern:{oneof:["get","put","post","delete","patch","custom"]}},fields:{selector:{type:"string",id:1},get:{type:"string",id:2},put:{type:"string",id:3},post:{type:"string",id:4},delete:{type:"string",id:5},patch:{type:"string",id:6},custom:{type:"CustomHttpPattern",id:8},body:{type:"string",id:7},responseBody:{type:"string",id:12},additionalBindings:{rule:"repeated",type:"HttpRule",id:11}}},CustomHttpPattern:{fields:{kind:{type:"string",id:1},path:{type:"string",id:2}}},methodSignature:{rule:"repeated",type:"string",id:1051,extend:"google.protobuf.MethodOptions"},defaultHost:{type:"string",id:1049,extend:"google.protobuf.ServiceOptions"},oauthScopes:{type:"string",id:1050,extend:"google.protobuf.ServiceOptions"}}},protobuf:{options:{go_package:"google.golang.org/protobuf/types/descriptorpb",java_package:"com.google.protobuf",java_outer_classname:"DescriptorProtos",csharp_namespace:"Google.Protobuf.Reflection",objc_class_prefix:"GPB",cc_enable_arenas:!0,optimize_for:"SPEED"},nested:{FileDescriptorSet:{fields:{file:{rule:"repeated",type:"FileDescriptorProto",id:1}}},FileDescriptorProto:{fields:{name:{type:"string",id:1},package:{type:"string",id:2},dependency:{rule:"repeated",type:"string",id:3},publicDependency:{rule:"repeated",type:"int32",id:10,options:{packed:!1}},weakDependency:{rule:"repeated",type:"int32",id:11,options:{packed:!1}},messageType:{rule:"repeated",type:"DescriptorProto",id:4},enumType:{rule:"repeated",type:"EnumDescriptorProto",id:5},service:{rule:"repeated",type:"ServiceDescriptorProto",id:6},extension:{rule:"repeated",type:"FieldDescriptorProto",id:7},options:{type:"FileOptions",id:8},sourceCodeInfo:{type:"SourceCodeInfo",id:9},syntax:{type:"string",id:12}}},DescriptorProto:{fields:{name:{type:"string",id:1},field:{rule:"repeated",type:"FieldDescriptorProto",id:2},extension:{rule:"repeated",type:"FieldDescriptorProto",id:6},nestedType:{rule:"repeated",type:"DescriptorProto",id:3},enumType:{rule:"repeated",type:"EnumDescriptorProto",id:4},extensionRange:{rule:"repeated",type:"ExtensionRange",id:5},oneofDecl:{rule:"repeated",type:"OneofDescriptorProto",id:8},options:{type:"MessageOptions",id:7},reservedRange:{rule:"repeated",type:"ReservedRange",id:9},reservedName:{rule:"repeated",type:"string",id:10}},nested:{ExtensionRange:{fields:{start:{type:"int32",id:1},end:{type:"int32",id:2},options:{type:"ExtensionRangeOptions",id:3}}},ReservedRange:{fields:{start:{type:"int32",id:1},end:{type:"int32",id:2}}}}},ExtensionRangeOptions:{fields:{uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]]},FieldDescriptorProto:{fields:{name:{type:"string",id:1},number:{type:"int32",id:3},label:{type:"Label",id:4},type:{type:"Type",id:5},typeName:{type:"string",id:6},extendee:{type:"string",id:2},defaultValue:{type:"string",id:7},oneofIndex:{type:"int32",id:9},jsonName:{type:"string",id:10},options:{type:"FieldOptions",id:8},proto3Optional:{type:"bool",id:17}},nested:{Type:{values:{TYPE_DOUBLE:1,TYPE_FLOAT:2,TYPE_INT64:3,TYPE_UINT64:4,TYPE_INT32:5,TYPE_FIXED64:6,TYPE_FIXED32:7,TYPE_BOOL:8,TYPE_STRING:9,TYPE_GROUP:10,TYPE_MESSAGE:11,TYPE_BYTES:12,TYPE_UINT32:13,TYPE_ENUM:14,TYPE_SFIXED32:15,TYPE_SFIXED64:16,TYPE_SINT32:17,TYPE_SINT64:18}},Label:{values:{LABEL_OPTIONAL:1,LABEL_REQUIRED:2,LABEL_REPEATED:3}}}},OneofDescriptorProto:{fields:{name:{type:"string",id:1},options:{type:"OneofOptions",id:2}}},EnumDescriptorProto:{fields:{name:{type:"string",id:1},value:{rule:"repeated",type:"EnumValueDescriptorProto",id:2},options:{type:"EnumOptions",id:3},reservedRange:{rule:"repeated",type:"EnumReservedRange",id:4},reservedName:{rule:"repeated",type:"string",id:5}},nested:{EnumReservedRange:{fields:{start:{type:"int32",id:1},end:{type:"int32",id:2}}}}},EnumValueDescriptorProto:{fields:{name:{type:"string",id:1},number:{type:"int32",id:2},options:{type:"EnumValueOptions",id:3}}},ServiceDescriptorProto:{fields:{name:{type:"string",id:1},method:{rule:"repeated",type:"MethodDescriptorProto",id:2},options:{type:"ServiceOptions",id:3}}},MethodDescriptorProto:{fields:{name:{type:"string",id:1},inputType:{type:"string",id:2},outputType:{type:"string",id:3},options:{type:"MethodOptions",id:4},clientStreaming:{type:"bool",id:5,options:{default:!1}},serverStreaming:{type:"bool",id:6,options:{default:!1}}}},FileOptions:{fields:{javaPackage:{type:"string",id:1},javaOuterClassname:{type:"string",id:8},javaMultipleFiles:{type:"bool",id:10,options:{default:!1}},javaGenerateEqualsAndHash:{type:"bool",id:20,options:{deprecated:!0}},javaStringCheckUtf8:{type:"bool",id:27,options:{default:!1}},optimizeFor:{type:"OptimizeMode",id:9,options:{default:"SPEED"}},goPackage:{type:"string",id:11},ccGenericServices:{type:"bool",id:16,options:{default:!1}},javaGenericServices:{type:"bool",id:17,options:{default:!1}},pyGenericServices:{type:"bool",id:18,options:{default:!1}},phpGenericServices:{type:"bool",id:42,options:{default:!1}},deprecated:{type:"bool",id:23,options:{default:!1}},ccEnableArenas:{type:"bool",id:31,options:{default:!0}},objcClassPrefix:{type:"string",id:36},csharpNamespace:{type:"string",id:37},swiftPrefix:{type:"string",id:39},phpClassPrefix:{type:"string",id:40},phpNamespace:{type:"string",id:41},phpMetadataNamespace:{type:"string",id:44},rubyPackage:{type:"string",id:45},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],reserved:[[38,38]],nested:{OptimizeMode:{values:{SPEED:1,CODE_SIZE:2,LITE_RUNTIME:3}}}},MessageOptions:{fields:{messageSetWireFormat:{type:"bool",id:1,options:{default:!1}},noStandardDescriptorAccessor:{type:"bool",id:2,options:{default:!1}},deprecated:{type:"bool",id:3,options:{default:!1}},mapEntry:{type:"bool",id:7},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],reserved:[[8,8],[9,9]]},FieldOptions:{fields:{ctype:{type:"CType",id:1,options:{default:"STRING"}},packed:{type:"bool",id:2},jstype:{type:"JSType",id:6,options:{default:"JS_NORMAL"}},lazy:{type:"bool",id:5,options:{default:!1}},deprecated:{type:"bool",id:3,options:{default:!1}},weak:{type:"bool",id:10,options:{default:!1}},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],reserved:[[4,4]],nested:{CType:{values:{STRING:0,CORD:1,STRING_PIECE:2}},JSType:{values:{JS_NORMAL:0,JS_STRING:1,JS_NUMBER:2}}}},OneofOptions:{fields:{uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]]},EnumOptions:{fields:{allowAlias:{type:"bool",id:2},deprecated:{type:"bool",id:3,options:{default:!1}},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],reserved:[[5,5]]},EnumValueOptions:{fields:{deprecated:{type:"bool",id:1,options:{default:!1}},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]]},ServiceOptions:{fields:{deprecated:{type:"bool",id:33,options:{default:!1}},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]]},MethodOptions:{fields:{deprecated:{type:"bool",id:33,options:{default:!1}},idempotencyLevel:{type:"IdempotencyLevel",id:34,options:{default:"IDEMPOTENCY_UNKNOWN"}},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],nested:{IdempotencyLevel:{values:{IDEMPOTENCY_UNKNOWN:0,NO_SIDE_EFFECTS:1,IDEMPOTENT:2}}}},UninterpretedOption:{fields:{name:{rule:"repeated",type:"NamePart",id:2},identifierValue:{type:"string",id:3},positiveIntValue:{type:"uint64",id:4},negativeIntValue:{type:"int64",id:5},doubleValue:{type:"double",id:6},stringValue:{type:"bytes",id:7},aggregateValue:{type:"string",id:8}},nested:{NamePart:{fields:{namePart:{rule:"required",type:"string",id:1},isExtension:{rule:"required",type:"bool",id:2}}}}},SourceCodeInfo:{fields:{location:{rule:"repeated",type:"Location",id:1}},nested:{Location:{fields:{path:{rule:"repeated",type:"int32",id:1},span:{rule:"repeated",type:"int32",id:2},leadingComments:{type:"string",id:3},trailingComments:{type:"string",id:4},leadingDetachedComments:{rule:"repeated",type:"string",id:6}}}}},GeneratedCodeInfo:{fields:{annotation:{rule:"repeated",type:"Annotation",id:1}},nested:{Annotation:{fields:{path:{rule:"repeated",type:"int32",id:1},sourceFile:{type:"string",id:2},begin:{type:"int32",id:3},end:{type:"int32",id:4}}}}},Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}}}}},require$$5={nested:nested$2},interfaces$1={"google.cloud.location.Locations":{retry_codes:{non_idempotent:[],idempotent:["DEADLINE_EXCEEDED","UNAVAILABLE"]},retry_params:{default:{initial_retry_delay_millis:100,retry_delay_multiplier:1.3,max_retry_delay_millis:6e4,initial_rpc_timeout_millis:6e4,rpc_timeout_multiplier:1,max_rpc_timeout_millis:6e4,total_timeout_millis:6e5}},methods:{ListLocations:{retry_codes_name:"non_idempotent",retry_params_name:"default"},GetLocation:{retry_codes_name:"non_idempotent",retry_params_name:"default"}}}},require$$6={interfaces:interfaces$1},hasRequiredLocationService,hasRequiredFallback;function requireLocationService(){if(hasRequiredLocationService)return locationService;hasRequiredLocationService=1,Object.defineProperty(locationService,"__esModule",{value:!0}),locationService.LocationsClient=void 0;const e=requireGax(),t=requireWarnings(),r=requireCreateApiCall(),n=requireRoutingHeader(),o=requirePageDescriptor(),i=require$$5,a=require$$6,s=require$$19.version;return locationService.LocationsClient=class{constructor(e,r){var n,l;this._terminated=!1,this.descriptors={page:{},stream:{},longrunning:{},batching:{}},this.gaxGrpc=e;const p=this.constructor,d=(null==r?void 0:r.servicePath)||(null==r?void 0:r.apiEndpoint)||p.servicePath;this._providedCustomServicePath=!(!(null==r?void 0:r.servicePath)&&!(null==r?void 0:r.apiEndpoint));const u=(null==r?void 0:r.port)||p.port,c=null!==(n=null==r?void 0:r.clientConfig)&&void 0!==n?n:{},f=null!==(l=null==r?void 0:r.fallback)&&void 0!==l?l:"undefined"!=typeof window&&"function"==typeof(null===window||void 0===window?void 0:window.fetch);r=Object.assign({servicePath:d,port:u,clientConfig:c,fallback:f},r),d===p.servicePath||"scopes"in r||(r.scopes=p.scopes),this._opts=r,this.auth=e.auth,d===p.servicePath&&(this.auth.defaultScopes=p.scopes);const h=[`gax/${s}`,`gapic/${s}`];"undefined"!=typeof process&&"versions"in process?h.push(`gl-node/${process.versions.node}`):h.push(`gl-web/${s}`),r.fallback?"rest"===r.fallback&&h.push(`rest/${e.grpcVersion}`):h.push(`grpc/${e.grpcVersion}`),r.libName&&r.libVersion&&h.push(`${r.libName}/${r.libVersion}`),this._protos=e.loadProtoJSON(i),this.descriptors.page={listLocations:new o.PageDescriptor("pageToken","nextPageToken","locations")},this._defaults=e.constructSettings("google.cloud.location.Locations",a,r.clientConfig||{},{"x-goog-api-client":h.join(" ")}),this.innerApiCalls={},this.warn=t.warn}initialize(){if(this.locationsStub)return this.locationsStub;this.locationsStub=this.gaxGrpc.createStub(this._opts.fallback?this._protos.lookupService("google.cloud.location.Locations"):this._protos.google.cloud.location.Locations,this._opts,this._providedCustomServicePath);const e=["listLocations","getLocation"];for(const t of e){const e=this.locationsStub.then(e=>(...r)=>{if(this._terminated)return Promise.reject("The client has already been closed.");return e[t].apply(e,r)},e=>()=>{throw e}),n=this.descriptors.page[t]||void 0,o=(0,r.createApiCall)(e,this._defaults[t],n);this.innerApiCalls[t]=o}return this.locationsStub}static get servicePath(){return"cloud.googleapis.com"}static get apiEndpoint(){return"cloud.googleapis.com"}static get port(){return 443}static get scopes(){return["https://www.googleapis.com/auth/cloud-platform"]}getProjectId(e){if(!e)return this.auth.getProjectId();this.auth.getProjectId(e)}getLocation(e,t,r){let o;return e=e||{},"function"==typeof t&&void 0===r?(r=t,o={}):o=t,o=o||{},o.otherArgs=o.otherArgs||{},o.otherArgs.headers=o.otherArgs.headers||{},o.otherArgs.headers["x-goog-request-params"]=n.fromParams({name:e.name||""}),this.initialize(),this.innerApiCalls.getLocation(e,o,r)}listLocations(e,t,r){let o;return e=e||{},"function"==typeof t&&void 0===r?(r=t,o={}):o=t,o=o||{},o.otherArgs=o.otherArgs||{},o.otherArgs.headers=o.otherArgs.headers||{},o.otherArgs.headers["x-goog-request-params"]=n.fromParams({name:e.name||""}),this.initialize(),this.innerApiCalls.listLocations(e,o,r)}listLocationsAsync(t,r){t=t||{},(r=r||{}).otherArgs=r.otherArgs||{},r.otherArgs.headers=r.otherArgs.headers||{},r.otherArgs.headers["x-goog-request-params"]=n.fromParams({name:t.name||""}),r=r||{};const o=new e.CallSettings(r);return this.initialize(),this.descriptors.page.listLocations.asyncIterate(this.innerApiCalls.listLocations,t,o)}close(){return this.initialize(),this._terminated?Promise.resolve():this.locationsStub.then(e=>{this._terminated=!0,e.close()})}},locationService}function requireFallback(){return hasRequiredFallback||(hasRequiredFallback=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.fallback=t.GoogleError=t.operation=t.Operation=t.warn=t.protobufMinimal=t.protobuf=t.LocationProtos=t.IamProtos=t.operationsProtos=t.GrpcClient=t.defaultToObjectOptions=t.makeUUID=t.LocationsClient=t.IamClient=t.OperationsClient=t.StreamType=t.StreamDescriptor=t.PageDescriptor=t.LongrunningDescriptor=t.BundleDescriptor=t.version=t.createDefaultBackoffSettings=t.RetryOptions=t.constructSettings=t.CallSettings=t.routingHeader=t.PathTemplate=void 0,t.lro=function(e){(e=Object.assign({scopes:[]},e)).protoJson&&(e=Object.assign(e,{fallback:!0}));const t=new C(e);return new l.OperationsClientBuilder(t,e.protoJson)},t.createApiCall=function(e,t,r,n){if(r&&"streaming"in r&&r.type!==f.StreamType.SERVER_STREAMING)return()=>{throw new Error("The REST transport currently does not support client-streaming or bidi-stream calls.")};if(r&&"streaming"in r&&!(0,u.isNodeJS)())return()=>{throw new Error("Server streaming over the REST transport is only supported in Node.js.")};return(0,p.createApiCall)(e,t,r)};const r=requireObjectHash(),n=requireProtobufjs();t.protobuf=n;const o=requireGax(),i=requireRoutingHeader();t.routingHeader=i;const a=requireStatus(),s=require$$3__default.default,l=requireOperationsClient(),p=requireCreateApiCall(),d=requireFallbackRest(),u=requireFeatureDetection(),c=requireFallbackServiceStub(),f=requireStreaming(),h=requireUtil$2(),m=requireIam_service();t.IamProtos=m;const g=requireLocations();t.LocationProtos=g;const y=requireOperations();t.operationsProtos=y;var v=requirePathTemplate();Object.defineProperty(t,"PathTemplate",{enumerable:!0,get:function(){return v.PathTemplate}});var b=requireGax();Object.defineProperty(t,"CallSettings",{enumerable:!0,get:function(){return b.CallSettings}}),Object.defineProperty(t,"constructSettings",{enumerable:!0,get:function(){return b.constructSettings}}),Object.defineProperty(t,"RetryOptions",{enumerable:!0,get:function(){return b.RetryOptions}}),Object.defineProperty(t,"createDefaultBackoffSettings",{enumerable:!0,get:function(){return b.createDefaultBackoffSettings}}),t.version=require$$19.version+"-fallback";var O=requireDescriptor();Object.defineProperty(t,"BundleDescriptor",{enumerable:!0,get:function(){return O.BundleDescriptor}}),Object.defineProperty(t,"LongrunningDescriptor",{enumerable:!0,get:function(){return O.LongrunningDescriptor}}),Object.defineProperty(t,"PageDescriptor",{enumerable:!0,get:function(){return O.PageDescriptor}}),Object.defineProperty(t,"StreamDescriptor",{enumerable:!0,get:function(){return O.StreamDescriptor}});var w=requireStreaming();Object.defineProperty(t,"StreamType",{enumerable:!0,get:function(){return w.StreamType}});var S=requireOperationsClient();Object.defineProperty(t,"OperationsClient",{enumerable:!0,get:function(){return S.OperationsClient}});var _=requireIamService();Object.defineProperty(t,"IamClient",{enumerable:!0,get:function(){return _.IamClient}});var P=requireLocationService();Object.defineProperty(t,"LocationsClient",{enumerable:!0,get:function(){return P.LocationsClient}});var E=requireUtil$2();Object.defineProperty(t,"makeUUID",{enumerable:!0,get:function(){return E.makeUUID}}),t.defaultToObjectOptions={keepCase:!1,longs:String,enums:String,defaults:!0,oneofs:!0};const T="x-goog-api-client";class C{static clearProtoCache(){C.protoCache.clear()}constructor(e={}){var t;if((0,u.isNodeJS)())this.auth=e.auth||new s.GoogleAuth(e);else{if(!e.auth)throw new Error(JSON.stringify(e)+"You need to pass auth instance to use gRPC-fallback client in browser or other non-Node.js environments. Use OAuth2Client from google-auth-library.");this.auth=e.auth}this.fallback=!!e.fallback,this.grpcVersion=require$$19.version,this.httpRules=e.httpRules,this.numericEnums=null!==(t=e.numericEnums)&&void 0!==t&&t}loadProto(e){return n.Root.fromJSON(e)}loadProtoJSON(e,t=!1){const o=r(JSON.stringify(e)).toString(),i=C.protoCache.get(o);if(i&&!t)return i;const a=n.Root.fromJSON(e);return C.protoCache.set(o,a),a}static getServiceMethods(e){const t={};for(const[r,n]of Object.entries(e.methods)){t[(0,h.toLowerCamelCase)(r)]=n}return t}constructSettings(e,r,n,i){return o.constructSettings(e,r,n,a.Status,{metadataBuilder:function(e,r){const n={};i||(i={});for(const e in i)n[e]=Array.isArray(i[e])?i[e]:[i[e]];const o=[];if(n[T]&&n[T][0]&&o.push(...n[T][0].split(" ")),o.push(`grpc-web/${t.version}`),n[T]=[o.join(" ")],!r)return n;for(const e in r)if(e.toLowerCase()!==T){const t=r[e];if(Array.isArray(t))if(void 0===n[e])n[e]=t;else{if(!Array.isArray(n[e]))throw new Error(`Can not add value ${t} to the call metadata.`);n[e].push(...t)}else n[e]=[t]}return n}})}async createStub(e,t,r){if(this.authClient||(this.auth&&"getClient"in this.auth?this.authClient=await this.auth.getClient():this.auth&&"getRequestHeaders"in this.auth&&(this.authClient=this.auth)),!this.authClient)throw new Error("No authentication was provided");if(t.universeDomain||(t.universeDomain="googleapis.com"),t.universeDomain){const e=this.authClient.universeDomain;if(e&&t.universeDomain!==e)throw new Error(`The configured universe domain (${t.universeDomain}) does not match the universe domain found in the credentials (${e}). If you haven't configured the universe domain explicitly, googleapis.com is the default.`)}e.resolveAll();const n=C.getServiceMethods(e),o=t.protocol||"https";let i,a=t.servicePath;if(!a&&e.options&&e.options["(google.api.default_host)"]&&(a=e.options["(google.api.default_host)"]),!a)throw new Error(`Cannot determine service API path for service ${e.name}.`);const s=a.match(/^(.*):(\d+)$/);s&&(a=s[1],i=parseInt(s[2])),t.port?i=t.port:i||(i=443);const l=d.encodeRequest,p=d.decodeResponse;return(0,c.generateServiceStub)(n,o,a,i,this.authClient,l,p,this.numericEnums)}static createByteLengthFunction(e){return o.createByteLengthFunction(e)}}t.GrpcClient=C,C.protoCache=new Map,t.protobufMinimal=requireMinimal();var R=requireWarnings();Object.defineProperty(t,"warn",{enumerable:!0,get:function(){return R.warn}});var D=requireLongrunning();Object.defineProperty(t,"Operation",{enumerable:!0,get:function(){return D.Operation}}),Object.defineProperty(t,"operation",{enumerable:!0,get:function(){return D.operation}});var k=requireGoogleError();Object.defineProperty(t,"GoogleError",{enumerable:!0,get:function(){return k.GoogleError}});const x=e.exports;t.fallback=x}(fallback,fallback.exports)),fallback.exports}var nested$1={google:{nested:{protobuf:{nested:{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}},Duration:{fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}},rpc:{options:{cc_enable_arenas:!0,go_package:"google.golang.org/genproto/googleapis/rpc/errdetails;errdetails",java_multiple_files:!0,java_outer_classname:"ErrorDetailsProto",java_package:"com.google.rpc",objc_class_prefix:"RPC"},nested:{Status:{fields:{code:{type:"int32",id:1},message:{type:"string",id:2},details:{rule:"repeated",type:"google.protobuf.Any",id:3}}},RetryInfo:{fields:{retryDelay:{type:"google.protobuf.Duration",id:1}}},DebugInfo:{fields:{stackEntries:{rule:"repeated",type:"string",id:1},detail:{type:"string",id:2}}},QuotaFailure:{fields:{violations:{rule:"repeated",type:"Violation",id:1}},nested:{Violation:{fields:{subject:{type:"string",id:1},description:{type:"string",id:2}}}}},ErrorInfo:{fields:{reason:{type:"string",id:1},domain:{type:"string",id:2},metadata:{keyType:"string",type:"string",id:3}}},PreconditionFailure:{fields:{violations:{rule:"repeated",type:"Violation",id:1}},nested:{Violation:{fields:{type:{type:"string",id:1},subject:{type:"string",id:2},description:{type:"string",id:3}}}}},BadRequest:{fields:{fieldViolations:{rule:"repeated",type:"FieldViolation",id:1}},nested:{FieldViolation:{fields:{field:{type:"string",id:1},description:{type:"string",id:2}}}}},RequestInfo:{fields:{requestId:{type:"string",id:1},servingData:{type:"string",id:2}}},ResourceInfo:{fields:{resourceType:{type:"string",id:1},resourceName:{type:"string",id:2},owner:{type:"string",id:3},description:{type:"string",id:4}}},Help:{fields:{links:{rule:"repeated",type:"Link",id:1}},nested:{Link:{fields:{description:{type:"string",id:1},url:{type:"string",id:2}}}}},LocalizedMessage:{fields:{locale:{type:"string",id:1},message:{type:"string",id:2}}}}}}}},require$$4$1={nested:nested$1},hasRequiredGoogleError,hasRequiredCall,hasRequiredNormalApiCaller,hasRequiredApiCaller;function requireGoogleError(){if(hasRequiredGoogleError)return googleError;hasRequiredGoogleError=1,Object.defineProperty(googleError,"__esModule",{value:!0}),googleError.GoogleErrorDecoder=googleError.GoogleError=void 0;const e=requireStatus(),t=requireProtobufjs(),r=requireSrc$3(),n=requireFallback();class o extends Error{static parseGRPCStatusDetails(e){const t=new i;try{if(e.metadata&&e.metadata.get("grpc-status-details-bin")){const r=t.decodeGRPCStatusDetails(e.metadata.get("grpc-status-details-bin"));r&&r.details&&r.details.length>0&&(e.statusDetails=r.details),r&&r.errorInfo&&(e.reason=r.errorInfo.reason,e.domain=r.errorInfo.domain,e.errorInfoMetadata=r.errorInfo.metadata)}}catch(e){}return e}static parseHttpError(t){Array.isArray(t)&&(t=t.find(e=>"error"in e)),t.error||(t.error={},Object.keys(t).filter(e=>"error"!==e).forEach(e=>{t.error[e]=t[e],delete t[e]}));const r=new i,n=r.decodeHTTPError(t.error),a=Object.assign(new o(t.error.message),n);if(t.error.code?a.code=(0,e.rpcCodeFromHttpStatusCode)(t.error.code):delete a.code,a.details)try{const e=r.decodeHttpStatusDetails(a.details);e&&e.details&&e.details.length>0&&(a.statusDetails=e.details),e&&e.errorInfo&&(a.reason=e.errorInfo.reason,a.domain=e.errorInfo.domain,a.errorInfoMetadata=e.errorInfo.metadata)}catch(e){}return a}}googleError.GoogleError=o;class i{constructor(){const e=require$$4$1;this.root=t.Root.fromJSON(e),this.anyType=this.root.lookupType("google.protobuf.Any"),this.statusType=this.root.lookupType("google.rpc.Status")}decodeProtobufAny(e){const t=e.type_url.match(/^type.googleapis.com\/(.*)/);if(!t)throw new Error(`Unknown type encoded in google.protobuf.any: ${e.type_url}`);const r=t[1],n=this.root.lookupType(r);if(!n)throw new Error(`Cannot lookup type ${r}`);return n.decode(e.value)}decodeRpcStatus(e){const t=new Uint8Array(e),r=this.statusType.decode(t),n=[];let o;for(const e of r.details)try{const t=this.decodeProtobufAny(e);n.push(t),"type.googleapis.com/google.rpc.ErrorInfo"===e.type_url&&(o=t)}catch(e){}return{code:r.code,message:r.message,statusDetails:n,reason:null==o?void 0:o.reason,domain:null==o?void 0:o.domain,errorInfoMetadata:null==o?void 0:o.metadata}}callErrorFromStatus(t){return t.message=`${t.code} ${e.Status[t.code]}: ${t.message}`,Object.assign(new o(t.message),t)}decodeErrorFromBuffer(e){return this.callErrorFromStatus(this.decodeRpcStatus(e))}decodeGRPCStatusDetails(e){const t=[];let r;e.forEach(e=>{const n=new Uint8Array(e),o=this.statusType.decode(n);for(const e of o.details)try{const n=this.decodeProtobufAny(e);t.push(n),"type.googleapis.com/google.rpc.ErrorInfo"===e.type_url&&(r=n)}catch(e){}});return{details:t,errorInfo:r}}decodeHTTPError(e){const t=r.fromProto3JSON(this.statusType,e);if(!t)throw new Error(`Received error message ${e}, but failed to serialize as proto3 message`);return this.statusType.toObject(t,n.defaultToObjectOptions)}decodeHttpStatusDetails(e){const t=[];let r;for(const n of e)try{const e=this.decodeProtobufAny(n);t.push(e),"type.googleapis.com/google.rpc.ErrorInfo"===n.type_url&&(r=e)}catch(e){}return{details:t,errorInfo:r}}}return googleError.GoogleErrorDecoder=i,googleError}function requireCall(){if(hasRequiredCall)return call;hasRequiredCall=1,Object.defineProperty(call,"__esModule",{value:!0}),call.OngoingCallPromise=call.OngoingCall=void 0;const e=requireStatus(),t=requireGoogleError();class r{constructor(e){this.callback=e,this.completed=!1}cancel(){if(!this.completed)if(this.completed=!0,this.cancelFunc)this.cancelFunc();else{const r=new t.GoogleError("cancelled");r.code=e.Status.CANCELLED,this.callback(r)}}call(e,r){if(this.completed)return;const n=e(r,(e,t,r,n)=>{this.completed=!0,setImmediate(this.callback,e,t,r,n)});n instanceof Promise&&n.catch(e=>{setImmediate(this.callback,new t.GoogleError(e),null,null,null)}),this.cancelFunc=()=>n.cancel()}}call.OngoingCall=r;return call.OngoingCallPromise=class extends r{constructor(){let e,r;const n=new Promise((t,n)=>{e=t,r=n});super((n,o,i,a)=>{if(n)n.metadata?r(t.GoogleError.parseGRPCStatusDetails(n)):r(n);else{if(void 0===o)throw new t.GoogleError("Neither error nor response are defined");e([o,i||null,a||null])}}),this.promise=n,this.promise.cancel=()=>{this.cancel()}}},call}function requireNormalApiCaller(){if(hasRequiredNormalApiCaller)return normalApiCaller;hasRequiredNormalApiCaller=1,Object.defineProperty(normalApiCaller,"__esModule",{value:!0}),normalApiCaller.NormalApiCaller=void 0;const e=requireCall();return normalApiCaller.NormalApiCaller=class{init(t){return t?new e.OngoingCall(t):new e.OngoingCallPromise}wrap(e){return e}call(e,t,r,n){n.call(e,t)}fail(e,t){e.callback(t)}result(e){return e.promise}},normalApiCaller}function requireApiCaller(){if(hasRequiredApiCaller)return apiCaller;hasRequiredApiCaller=1,Object.defineProperty(apiCaller,"__esModule",{value:!0}),apiCaller.createAPICaller=function(t,r){if(!r)return new e.NormalApiCaller;return r.getApiCaller(t)};const e=requireNormalApiCaller();return apiCaller}var retries={},timeout={},hasRequiredTimeout,hasRequiredRetries,hasRequiredCreateApiCall;function requireTimeout(){if(hasRequiredTimeout)return timeout;return hasRequiredTimeout=1,Object.defineProperty(timeout,"__esModule",{value:!0}),timeout.addTimeoutArg=function(e,t,r,n){return(o,i)=>{const a=new Date,s=r.options||{};s.deadline=new Date(a.getTime()+t);const l=r.metadataBuilder?r.metadataBuilder(n,r.headers||{}):null;return e(o,l,s,i)}},timeout}function requireRetries(){if(hasRequiredRetries)return retries;hasRequiredRetries=1,Object.defineProperty(retries,"__esModule",{value:!0}),retries.retryable=function(n,o,i,a){const s=o.backoffSettings.retryDelayMultiplier,l=o.backoffSettings.maxRetryDelayMillis,p=o.backoffSettings.rpcTimeoutMultiplier,d=o.backoffSettings.maxRpcTimeoutMillis;let u=o.backoffSettings.initialRetryDelayMillis,c=o.backoffSettings.initialRpcTimeoutMillis;return(f,h)=>{let m,g,y,v=new Date;o.backoffSettings.totalTimeoutMillis&&(y=v.getTime()+o.backoffSettings.totalTimeoutMillis);let b=0;const O=o.backoffSettings.maxRetries;if(O&&y){const r=new t.GoogleError("Cannot set both totalTimeoutMillis and maxRetries in backoffSettings.");r.code=e.Status.INVALID_ARGUMENT,h(r)}else!function w(S){if(g=null,y&&v.getTime()>=y){const r=new t.GoogleError(`Total timeout of API ${a} exceeded ${o.backoffSettings.totalTimeoutMillis} milliseconds ${S?`retrying error ${S} `:""} before any response was received.`);return r.code=e.Status.DEADLINE_EXCEEDED,void h(r)}if(b&&b>=O){const r=new t.GoogleError("Exceeded maximum number of retries "+(S?`retrying error ${S} `:"")+"before any response was received");return r.code=e.Status.DEADLINE_EXCEEDED,void h(r)}b++;let _=S;const P=(0,r.addTimeoutArg)(n,c,i);m=P(f,(e,t,r,n)=>{if(e&&4!==e.code&&(_=e),e)if(m=null,o.retryCodes.length>0&&o.retryCodes.indexOf(e.code)<0)e.note="Exception occurred in retry method that was not classified as transient",h(e);else{const e=Math.random()*u;g=setTimeout(()=>{v=new Date,u=Math.min(u*s,l);const e=c&&p?c*p:0,t=d||0,r=y?y-v.getTime():0;c=Math.min(e,t,r),w(_)},e)}else h(null,t,r,n)}),m instanceof Promise&&m.catch(e=>{h(new t.GoogleError(e))})}();return{cancel(){if(g&&clearTimeout(g),m)m.cancel();else{const r=new t.GoogleError("cancelled");r.code=e.Status.CANCELLED,h(r)}}}}};const e=requireStatus(),t=requireGoogleError(),r=requireTimeout();return retries}function requireCreateApiCall(){if(hasRequiredCreateApiCall)return createApiCall;hasRequiredCreateApiCall=1,Object.defineProperty(createApiCall,"__esModule",{value:!0}),createApiCall.createApiCall=function(a,s,l,p){const d="function"==typeof a?Promise.resolve(a):a,u=(0,e.createAPICaller)(s,l);return(a,l,p)=>{var c,f;let h,m=u;if(m instanceof o.StreamingApiCaller){const e=null!==(f=null===(c=m.descriptor)||void 0===c?void 0:c.gaxStreamingRetries)&&void 0!==f&&f,r=(0,t.convertRetryOptions)(l,e);h=s.merge(r)}else h=s.merge(l);s.isBundling&&!h.isBundling&&(m=(0,e.createAPICaller)(s,void 0));const g=m.init(p);return d.then(e=>{var t,o,a;e=m.wrap(e);const s=null===(t=m.descriptor)||void 0===t?void 0:t.streaming,l=h.retry;if(s&&l&&(l.retryCodes.length>0&&l.shouldRetryFn&&((0,i.warn)("either_retrycodes_or_shouldretryfn","Only one of retryCodes or shouldRetryFn may be defined. Ignoring retryCodes."),l.retryCodes=[]),!m.descriptor.gaxStreamingRetries&&l.getResumptionRequestFn))throw new Error("getResumptionRequestFn can only be used when gaxStreamingRetries is set to true.");if(!s&&l){if(l.shouldRetryFn)throw new Error("Using a function to determine retry eligibility is only supported with server streaming calls");if(l.getResumptionRequestFn)throw new Error("Resumption strategy can only be used with server streaming retries");if(l.retryCodes&&l.retryCodes.length>0)return null!==(o=(a=l.backoffSettings).initialRpcTimeoutMillis)&&void 0!==o||(a.initialRpcTimeoutMillis=h.timeout),(0,r.retryable)(e,h.retry,h.otherArgs,h.apiName)}return(0,n.addTimeoutArg)(e,h.timeout,h.otherArgs)}).then(e=>{m.call(e,a,h,g)}).catch(e=>{m.fail(g,e)}),m.result(g)}};const e=requireApiCaller(),t=requireGax(),r=requireRetries(),n=requireTimeout(),o=requireStreamingApiCaller(),i=requireWarnings();return createApiCall}var interfaces={"google.longrunning.Operations":{retry_codes:{idempotent:["DEADLINE_EXCEEDED","UNAVAILABLE"],non_idempotent:[]},retry_params:{default:{initial_retry_delay_millis:100,retry_delay_multiplier:1.3,max_retry_delay_millis:6e4,initial_rpc_timeout_millis:9e4,rpc_timeout_multiplier:1,max_rpc_timeout_millis:9e4,total_timeout_millis:6e5}},methods:{GetOperation:{timeout_millis:6e4,retry_codes_name:"idempotent",retry_params_name:"default"},ListOperations:{timeout_millis:6e4,retry_codes_name:"idempotent",retry_params_name:"default"},CancelOperation:{timeout_millis:6e4,retry_codes_name:"idempotent",retry_params_name:"default"},DeleteOperation:{timeout_millis:6e4,retry_codes_name:"idempotent",retry_params_name:"default"}}}},require$$3={interfaces:interfaces},nested={google:{nested:{longrunning:{options:{cc_enable_arenas:!0,csharp_namespace:"Google.LongRunning",go_package:"google.golang.org/genproto/googleapis/longrunning;longrunning",java_multiple_files:!0,java_outer_classname:"OperationsProto",java_package:"com.google.longrunning",php_namespace:"Google\\LongRunning"},nested:{operationInfo:{type:"google.longrunning.OperationInfo",id:1049,extend:"google.protobuf.MethodOptions"},Operations:{options:{"(google.api.default_host)":"longrunning.googleapis.com"},methods:{ListOperations:{requestType:"ListOperationsRequest",responseType:"ListOperationsResponse",options:{"(google.api.http).get":"/v1/{name=operations}","(google.api.method_signature)":"name,filter"},parsedOptions:[{"(google.api.http)":{get:"/v1/{name=operations}"}},{"(google.api.method_signature)":"name,filter"}]},GetOperation:{requestType:"GetOperationRequest",responseType:"Operation",options:{"(google.api.http).get":"/v1/operations/{name}","(google.api.method_signature)":"name"},parsedOptions:[{"(google.api.http)":{get:"/v1/operations/{name}"}},{"(google.api.method_signature)":"name"}]},DeleteOperation:{requestType:"DeleteOperationRequest",responseType:"google.protobuf.Empty",options:{"(google.api.http).delete":"/v1/{name=operations/**}","(google.api.method_signature)":"name"},parsedOptions:[{"(google.api.http)":{delete:"/v1/{name=operations/**}"}},{"(google.api.method_signature)":"name"}]},CancelOperation:{requestType:"CancelOperationRequest",responseType:"google.protobuf.Empty",options:{"(google.api.http).post":"/v1/{name=operations/**}:cancel","(google.api.http).body":"*","(google.api.method_signature)":"name"},parsedOptions:[{"(google.api.http)":{post:"/v1/{name=operations/**}:cancel",body:"*"}},{"(google.api.method_signature)":"name"}]},WaitOperation:{requestType:"WaitOperationRequest",responseType:"Operation"}}},Operation:{oneofs:{result:{oneof:["error","response"]}},fields:{name:{type:"string",id:1},metadata:{type:"google.protobuf.Any",id:2},done:{type:"bool",id:3},error:{type:"google.rpc.Status",id:4},response:{type:"google.protobuf.Any",id:5}}},GetOperationRequest:{fields:{name:{type:"string",id:1}}},ListOperationsRequest:{fields:{name:{type:"string",id:4},filter:{type:"string",id:1},pageSize:{type:"int32",id:2},pageToken:{type:"string",id:3}}},ListOperationsResponse:{fields:{operations:{rule:"repeated",type:"Operation",id:1},nextPageToken:{type:"string",id:2}}},CancelOperationRequest:{fields:{name:{type:"string",id:1}}},DeleteOperationRequest:{fields:{name:{type:"string",id:1}}},WaitOperationRequest:{fields:{name:{type:"string",id:1},timeout:{type:"google.protobuf.Duration",id:2}}},OperationInfo:{fields:{responseType:{type:"string",id:1},metadataType:{type:"string",id:2}}}}},api:{options:{go_package:"google.golang.org/genproto/googleapis/api/annotations;annotations",java_multiple_files:!0,java_outer_classname:"ClientProto",java_package:"com.google.api",objc_class_prefix:"GAPI",cc_enable_arenas:!0},nested:{http:{type:"HttpRule",id:72295728,extend:"google.protobuf.MethodOptions"},Http:{fields:{rules:{rule:"repeated",type:"HttpRule",id:1},fullyDecodeReservedExpansion:{type:"bool",id:2}}},HttpRule:{oneofs:{pattern:{oneof:["get","put","post","delete","patch","custom"]}},fields:{selector:{type:"string",id:1},get:{type:"string",id:2},put:{type:"string",id:3},post:{type:"string",id:4},delete:{type:"string",id:5},patch:{type:"string",id:6},custom:{type:"CustomHttpPattern",id:8},body:{type:"string",id:7},responseBody:{type:"string",id:12},additionalBindings:{rule:"repeated",type:"HttpRule",id:11}}},CustomHttpPattern:{fields:{kind:{type:"string",id:1},path:{type:"string",id:2}}},methodSignature:{rule:"repeated",type:"string",id:1051,extend:"google.protobuf.MethodOptions"},defaultHost:{type:"string",id:1049,extend:"google.protobuf.ServiceOptions"},oauthScopes:{type:"string",id:1050,extend:"google.protobuf.ServiceOptions"}}},protobuf:{options:{go_package:"github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor",java_package:"com.google.protobuf",java_outer_classname:"DescriptorProtos",csharp_namespace:"Google.Protobuf.Reflection",objc_class_prefix:"GPB",cc_enable_arenas:!0,optimize_for:"SPEED"},nested:{FileDescriptorSet:{fields:{file:{rule:"repeated",type:"FileDescriptorProto",id:1}}},FileDescriptorProto:{fields:{name:{type:"string",id:1},package:{type:"string",id:2},dependency:{rule:"repeated",type:"string",id:3},publicDependency:{rule:"repeated",type:"int32",id:10,options:{packed:!1}},weakDependency:{rule:"repeated",type:"int32",id:11,options:{packed:!1}},messageType:{rule:"repeated",type:"DescriptorProto",id:4},enumType:{rule:"repeated",type:"EnumDescriptorProto",id:5},service:{rule:"repeated",type:"ServiceDescriptorProto",id:6},extension:{rule:"repeated",type:"FieldDescriptorProto",id:7},options:{type:"FileOptions",id:8},sourceCodeInfo:{type:"SourceCodeInfo",id:9},syntax:{type:"string",id:12}}},DescriptorProto:{fields:{name:{type:"string",id:1},field:{rule:"repeated",type:"FieldDescriptorProto",id:2},extension:{rule:"repeated",type:"FieldDescriptorProto",id:6},nestedType:{rule:"repeated",type:"DescriptorProto",id:3},enumType:{rule:"repeated",type:"EnumDescriptorProto",id:4},extensionRange:{rule:"repeated",type:"ExtensionRange",id:5},oneofDecl:{rule:"repeated",type:"OneofDescriptorProto",id:8},options:{type:"MessageOptions",id:7},reservedRange:{rule:"repeated",type:"ReservedRange",id:9},reservedName:{rule:"repeated",type:"string",id:10}},nested:{ExtensionRange:{fields:{start:{type:"int32",id:1},end:{type:"int32",id:2},options:{type:"ExtensionRangeOptions",id:3}}},ReservedRange:{fields:{start:{type:"int32",id:1},end:{type:"int32",id:2}}}}},ExtensionRangeOptions:{fields:{uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]]},FieldDescriptorProto:{fields:{name:{type:"string",id:1},number:{type:"int32",id:3},label:{type:"Label",id:4},type:{type:"Type",id:5},typeName:{type:"string",id:6},extendee:{type:"string",id:2},defaultValue:{type:"string",id:7},oneofIndex:{type:"int32",id:9},jsonName:{type:"string",id:10},options:{type:"FieldOptions",id:8},proto3Optional:{type:"bool",id:17}},nested:{Type:{values:{TYPE_DOUBLE:1,TYPE_FLOAT:2,TYPE_INT64:3,TYPE_UINT64:4,TYPE_INT32:5,TYPE_FIXED64:6,TYPE_FIXED32:7,TYPE_BOOL:8,TYPE_STRING:9,TYPE_GROUP:10,TYPE_MESSAGE:11,TYPE_BYTES:12,TYPE_UINT32:13,TYPE_ENUM:14,TYPE_SFIXED32:15,TYPE_SFIXED64:16,TYPE_SINT32:17,TYPE_SINT64:18}},Label:{values:{LABEL_OPTIONAL:1,LABEL_REQUIRED:2,LABEL_REPEATED:3}}}},OneofDescriptorProto:{fields:{name:{type:"string",id:1},options:{type:"OneofOptions",id:2}}},EnumDescriptorProto:{fields:{name:{type:"string",id:1},value:{rule:"repeated",type:"EnumValueDescriptorProto",id:2},options:{type:"EnumOptions",id:3},reservedRange:{rule:"repeated",type:"EnumReservedRange",id:4},reservedName:{rule:"repeated",type:"string",id:5}},nested:{EnumReservedRange:{fields:{start:{type:"int32",id:1},end:{type:"int32",id:2}}}}},EnumValueDescriptorProto:{fields:{name:{type:"string",id:1},number:{type:"int32",id:2},options:{type:"EnumValueOptions",id:3}}},ServiceDescriptorProto:{fields:{name:{type:"string",id:1},method:{rule:"repeated",type:"MethodDescriptorProto",id:2},options:{type:"ServiceOptions",id:3}}},MethodDescriptorProto:{fields:{name:{type:"string",id:1},inputType:{type:"string",id:2},outputType:{type:"string",id:3},options:{type:"MethodOptions",id:4},clientStreaming:{type:"bool",id:5,options:{default:!1}},serverStreaming:{type:"bool",id:6,options:{default:!1}}}},FileOptions:{fields:{javaPackage:{type:"string",id:1},javaOuterClassname:{type:"string",id:8},javaMultipleFiles:{type:"bool",id:10,options:{default:!1}},javaGenerateEqualsAndHash:{type:"bool",id:20,options:{deprecated:!0}},javaStringCheckUtf8:{type:"bool",id:27,options:{default:!1}},optimizeFor:{type:"OptimizeMode",id:9,options:{default:"SPEED"}},goPackage:{type:"string",id:11},ccGenericServices:{type:"bool",id:16,options:{default:!1}},javaGenericServices:{type:"bool",id:17,options:{default:!1}},pyGenericServices:{type:"bool",id:18,options:{default:!1}},phpGenericServices:{type:"bool",id:42,options:{default:!1}},deprecated:{type:"bool",id:23,options:{default:!1}},ccEnableArenas:{type:"bool",id:31,options:{default:!0}},objcClassPrefix:{type:"string",id:36},csharpNamespace:{type:"string",id:37},swiftPrefix:{type:"string",id:39},phpClassPrefix:{type:"string",id:40},phpNamespace:{type:"string",id:41},phpMetadataNamespace:{type:"string",id:44},rubyPackage:{type:"string",id:45},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],reserved:[[38,38]],nested:{OptimizeMode:{values:{SPEED:1,CODE_SIZE:2,LITE_RUNTIME:3}}}},MessageOptions:{fields:{messageSetWireFormat:{type:"bool",id:1,options:{default:!1}},noStandardDescriptorAccessor:{type:"bool",id:2,options:{default:!1}},deprecated:{type:"bool",id:3,options:{default:!1}},mapEntry:{type:"bool",id:7},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],reserved:[[8,8],[9,9]]},FieldOptions:{fields:{ctype:{type:"CType",id:1,options:{default:"STRING"}},packed:{type:"bool",id:2},jstype:{type:"JSType",id:6,options:{default:"JS_NORMAL"}},lazy:{type:"bool",id:5,options:{default:!1}},deprecated:{type:"bool",id:3,options:{default:!1}},weak:{type:"bool",id:10,options:{default:!1}},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],reserved:[[4,4]],nested:{CType:{values:{STRING:0,CORD:1,STRING_PIECE:2}},JSType:{values:{JS_NORMAL:0,JS_STRING:1,JS_NUMBER:2}}}},OneofOptions:{fields:{uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]]},EnumOptions:{fields:{allowAlias:{type:"bool",id:2},deprecated:{type:"bool",id:3,options:{default:!1}},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],reserved:[[5,5]]},EnumValueOptions:{fields:{deprecated:{type:"bool",id:1,options:{default:!1}},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]]},ServiceOptions:{fields:{deprecated:{type:"bool",id:33,options:{default:!1}},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]]},MethodOptions:{fields:{deprecated:{type:"bool",id:33,options:{default:!1}},idempotencyLevel:{type:"IdempotencyLevel",id:34,options:{default:"IDEMPOTENCY_UNKNOWN"}},uninterpretedOption:{rule:"repeated",type:"UninterpretedOption",id:999}},extensions:[[1e3,536870911]],nested:{IdempotencyLevel:{values:{IDEMPOTENCY_UNKNOWN:0,NO_SIDE_EFFECTS:1,IDEMPOTENT:2}}}},UninterpretedOption:{fields:{name:{rule:"repeated",type:"NamePart",id:2},identifierValue:{type:"string",id:3},positiveIntValue:{type:"uint64",id:4},negativeIntValue:{type:"int64",id:5},doubleValue:{type:"double",id:6},stringValue:{type:"bytes",id:7},aggregateValue:{type:"string",id:8}},nested:{NamePart:{fields:{namePart:{rule:"required",type:"string",id:1},isExtension:{rule:"required",type:"bool",id:2}}}}},SourceCodeInfo:{fields:{location:{rule:"repeated",type:"Location",id:1}},nested:{Location:{fields:{path:{rule:"repeated",type:"int32",id:1},span:{rule:"repeated",type:"int32",id:2},leadingComments:{type:"string",id:3},trailingComments:{type:"string",id:4},leadingDetachedComments:{rule:"repeated",type:"string",id:6}}}}},GeneratedCodeInfo:{fields:{annotation:{rule:"repeated",type:"Annotation",id:1}},nested:{Annotation:{fields:{path:{rule:"repeated",type:"int32",id:1},sourceFile:{type:"string",id:2},begin:{type:"int32",id:3},end:{type:"int32",id:4}}}}},Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}},Duration:{fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}},Empty:{fields:{}}}},rpc:{options:{cc_enable_arenas:!0,go_package:"google.golang.org/genproto/googleapis/rpc/status;status",java_multiple_files:!0,java_outer_classname:"StatusProto",java_package:"com.google.rpc",objc_class_prefix:"RPC"},nested:{Status:{fields:{code:{type:"int32",id:1},message:{type:"string",id:2},details:{rule:"repeated",type:"google.protobuf.Any",id:3}}}}}}}},require$$4={nested:nested},hasRequiredOperationsClient,hasRequiredSrc$2;function requireOperationsClient(){return hasRequiredOperationsClient||(hasRequiredOperationsClient=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.OperationsClientBuilder=e.OperationsClient=e.ALL_SCOPES=e.SERVICE_ADDRESS=void 0;const t=requireCreateApiCall(),r=requireDescriptor(),n=requireGax(),o=require$$3,i=require$$4,a=requireTranscoding();e.SERVICE_ADDRESS="longrunning.googleapis.com";const s=require$$19.version;e.ALL_SCOPES=[];class l{constructor(n,i,a){const l=Object.assign({servicePath:e.SERVICE_ADDRESS,port:443,clientConfig:{}},a),p=["gl-node/"+process.versions.node];l.libName&&l.libVersion&&p.push(l.libName+"/"+l.libVersion),p.push("gapic/0.7.1","gax/"+s),l.fallback?p.push("gl-web/"+s):p.push("grpc/"+n.grpcVersion);const d=n.constructSettings("google.longrunning.Operations",o,l.clientConfig||{},{"x-goog-api-client":p.join(" ")});this.auth=n.auth,this.innerApiCalls={},this.descriptor={listOperations:new r.PageDescriptor("pageToken","nextPageToken","operations")},this.operationsStub=n.createStub(l.fallback?i.lookupService("google.longrunning.Operations"):i.google.longrunning.Operations,l);const u=["getOperation","listOperations","cancelOperation","deleteOperation"];for(const e of u){const r=this.operationsStub.then(t=>(...r)=>t[e].apply(t,r),e=>()=>{throw e});this.innerApiCalls[e]=(0,t.createApiCall)(r,d[e],this.descriptor[e])}}close(){this.operationsStub.then(e=>e.close())}getProjectId(e){return this.auth&&"getProjectId"in this.auth?this.auth.getProjectId(e):e?void e(new Error("Cannot determine project ID.")):Promise.reject("Cannot determine project ID.")}getOperationInternal(e,t,r){return e=e||{},t=t||{},this.innerApiCalls.getOperation(e,t,r)}getOperation(e,t,r){let n;return t instanceof Function&&void 0===r?(r=t,n={}):n=t,e=e||{},n=n||{},this.innerApiCalls.getOperation(e,n,r)}listOperations(e,t,r){let n;return t instanceof Function&&void 0===r?(r=t,n={}):n=t,e=e||{},n=n||{},this.innerApiCalls.listOperations(e,n,r)}listOperationsStream(e,t){const r=new n.CallSettings(t);return this.descriptor.listOperations.createStream(this.innerApiCalls.listOperations,e,r)}listOperationsAsync(e,t){e=e||{},t=t||{};const r=new n.CallSettings(t);return this.descriptor.listOperations.asyncIterate(this.innerApiCalls.listOperations,e,r)}cancelOperation(e,t,r){let n;return t instanceof Function&&void 0===r?(r=t,n={}):n=t,e=e||{},n=n||{},this.innerApiCalls.cancelOperation(e,n,r)}deleteOperation(e,t,r){let n;return t instanceof Function&&void 0===r?(r=t,n={}):n=t,e=e||{},n=n||{},this.innerApiCalls.deleteOperation(e,n,r)}}e.OperationsClient=l;e.OperationsClientBuilder=class{constructor(e,t){t&&e.httpRules&&(0,a.overrideHttpRules)(e.httpRules,t);const r=null!=t?t:e.loadProtoJSON(i);this.operationsClient=t=>(e.fallback&&(t.fallback=e.fallback),new l(e,r,t)),Object.assign(this.operationsClient,l)}}}(operationsClient)),operationsClient}function requireSrc$2(){return hasRequiredSrc$2||(hasRequiredSrc$2=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializer=e.warn=e.ChannelCredentials=e.makeUUID=e.fallback=e.protobufMinimal=e.protobuf=e.version=e.createByteLengthFunction=e.LocationsClient=e.IamClient=e.OperationsClient=e.LocationProtos=e.IamProtos=e.operationsProtos=e.routingHeader=e.StreamType=e.Status=e.PathTemplate=e.operation=e.Operation=e.GrpcClient=e.GoogleProtoFilesRoot=e.ClientStub=e.GoogleError=e.createMaxRetriesBackoffSettings=e.createDefaultBackoffSettings=e.createBackoffSettings=e.createBundleOptions=e.createRetryOptions=e.RetryOptions=e.constructSettings=e.CallSettings=e.StreamDescriptor=e.PageDescriptor=e.LongrunningDescriptor=e.BundleDescriptor=e.createApiCall=e.OngoingCall=e.grpc=e.GoogleAuth=void 0,e.lro=b;const t=requireSrc$5();e.grpc=t;const r=requireGrpc(),n=requireIam_service();e.IamProtos=n;const o=requireLocations();e.LocationProtos=o;const i=requireOperations();e.operationsProtos=i;const a=requireOperationsClient(),s=requireRoutingHeader();e.routingHeader=s;var l=require$$3__default.default;Object.defineProperty(e,"GoogleAuth",{enumerable:!0,get:function(){return l.GoogleAuth}});var p=requireCall();Object.defineProperty(e,"OngoingCall",{enumerable:!0,get:function(){return p.OngoingCall}});var d=requireCreateApiCall();Object.defineProperty(e,"createApiCall",{enumerable:!0,get:function(){return d.createApiCall}});var u=requireDescriptor();Object.defineProperty(e,"BundleDescriptor",{enumerable:!0,get:function(){return u.BundleDescriptor}}),Object.defineProperty(e,"LongrunningDescriptor",{enumerable:!0,get:function(){return u.LongrunningDescriptor}}),Object.defineProperty(e,"PageDescriptor",{enumerable:!0,get:function(){return u.PageDescriptor}}),Object.defineProperty(e,"StreamDescriptor",{enumerable:!0,get:function(){return u.StreamDescriptor}});var c=requireGax();Object.defineProperty(e,"CallSettings",{enumerable:!0,get:function(){return c.CallSettings}}),Object.defineProperty(e,"constructSettings",{enumerable:!0,get:function(){return c.constructSettings}}),Object.defineProperty(e,"RetryOptions",{enumerable:!0,get:function(){return c.RetryOptions}}),Object.defineProperty(e,"createRetryOptions",{enumerable:!0,get:function(){return c.createRetryOptions}}),Object.defineProperty(e,"createBundleOptions",{enumerable:!0,get:function(){return c.createBundleOptions}}),Object.defineProperty(e,"createBackoffSettings",{enumerable:!0,get:function(){return c.createBackoffSettings}}),Object.defineProperty(e,"createDefaultBackoffSettings",{enumerable:!0,get:function(){return c.createDefaultBackoffSettings}}),Object.defineProperty(e,"createMaxRetriesBackoffSettings",{enumerable:!0,get:function(){return c.createMaxRetriesBackoffSettings}});var f=requireGoogleError();Object.defineProperty(e,"GoogleError",{enumerable:!0,get:function(){return f.GoogleError}});var h=requireGrpc();Object.defineProperty(e,"ClientStub",{enumerable:!0,get:function(){return h.ClientStub}}),Object.defineProperty(e,"GoogleProtoFilesRoot",{enumerable:!0,get:function(){return h.GoogleProtoFilesRoot}}),Object.defineProperty(e,"GrpcClient",{enumerable:!0,get:function(){return h.GrpcClient}});var m=requireLongrunning();Object.defineProperty(e,"Operation",{enumerable:!0,get:function(){return m.Operation}}),Object.defineProperty(e,"operation",{enumerable:!0,get:function(){return m.operation}});var g=requirePathTemplate();Object.defineProperty(e,"PathTemplate",{enumerable:!0,get:function(){return g.PathTemplate}});var y=requireStatus();Object.defineProperty(e,"Status",{enumerable:!0,get:function(){return y.Status}});var v=requireStreaming();function b(e){e=Object.assign({scopes:b.ALL_SCOPES},e);const t=new r.GrpcClient(e);return new a.OperationsClientBuilder(t)}Object.defineProperty(e,"StreamType",{enumerable:!0,get:function(){return v.StreamType}}),b.SERVICE_ADDRESS=a.SERVICE_ADDRESS,b.ALL_SCOPES=a.ALL_SCOPES;var O=requireOperationsClient();Object.defineProperty(e,"OperationsClient",{enumerable:!0,get:function(){return O.OperationsClient}});var w=requireIamService();Object.defineProperty(e,"IamClient",{enumerable:!0,get:function(){return w.IamClient}});var S=requireLocationService();Object.defineProperty(e,"LocationsClient",{enumerable:!0,get:function(){return S.LocationsClient}}),e.createByteLengthFunction=r.GrpcClient.createByteLengthFunction,e.version=require$$19.version;const _=requireProtobufjs();e.protobuf=_,e.protobufMinimal=requireMinimal();const P=requireFallback();e.fallback=P;var E=requireUtil$2();Object.defineProperty(e,"makeUUID",{enumerable:!0,get:function(){return E.makeUUID}});var T=requireSrc$5();Object.defineProperty(e,"ChannelCredentials",{enumerable:!0,get:function(){return T.ChannelCredentials}});var C=requireWarnings();Object.defineProperty(e,"warn",{enumerable:!0,get:function(){return C.warn}});const R=requireSrc$3();e.serializer=R}(src$7)),src$7}var srcExports$1=requireSrc$2(),_a,STATUS_TO_STRING_MAP=(_a={},_a[srcExports$1.Status.CANCELLED]="cancelled",_a[srcExports$1.Status.UNKNOWN]="unknown",_a[srcExports$1.Status.INVALID_ARGUMENT]="invalid-argument",_a[srcExports$1.Status.DEADLINE_EXCEEDED]="deadline-exceeded",_a[srcExports$1.Status.NOT_FOUND]="not-found",_a[srcExports$1.Status.ALREADY_EXISTS]="already-exists",_a[srcExports$1.Status.PERMISSION_DENIED]="permission-denied",_a[srcExports$1.Status.RESOURCE_EXHAUSTED]="resource-exhausted",_a[srcExports$1.Status.FAILED_PRECONDITION]="failed-precondition",_a[srcExports$1.Status.ABORTED]="aborted",_a[srcExports$1.Status.OUT_OF_RANGE]="out-of-range",_a[srcExports$1.Status.UNIMPLEMENTED]="unimplemented",_a[srcExports$1.Status.INTERNAL]="internal",_a[srcExports$1.Status.UNAVAILABLE]="unavailable",_a[srcExports$1.Status.DATA_LOSS]="data-loss",_a[srcExports$1.Status.UNAUTHENTICATED]="unauthenticated",_a[srcExports$1.Status.OK]="unknown",_a),FIRESTORE_ERROR_MAPPINGS={"permission-denied":{userMessage:"Unable to access storage. Please try signing in again.",internalMessage:"Firestore permission denied",shouldRetry:!1,severity:ErrorSeverity.Error},unavailable:{userMessage:"Service temporarily unavailable. Please try again in a moment.",internalMessage:"Firestore service unavailable",shouldRetry:!0,severity:ErrorSeverity.Warning},"not-found":{userMessage:"The requested data could not be found.",internalMessage:"Firestore document not found",shouldRetry:!1,severity:ErrorSeverity.Info},"deadline-exceeded":{userMessage:"The operation took too long. Please try again.",internalMessage:"Firestore operation timeout",shouldRetry:!0,severity:ErrorSeverity.Warning},unauthenticated:{userMessage:"Authentication required. Please sign in again.",internalMessage:"Firestore authentication failed",shouldRetry:!1,severity:ErrorSeverity.Error},"already-exists":{userMessage:"This record already exists.",internalMessage:"Firestore document already exists",shouldRetry:!1,severity:ErrorSeverity.Info},"resource-exhausted":{userMessage:"Service is at capacity. Please try again later.",internalMessage:"Firestore quota exceeded",shouldRetry:!0,severity:ErrorSeverity.Warning},"failed-precondition":{userMessage:"The operation cannot be completed at this time.",internalMessage:"Firestore precondition failed",shouldRetry:!1,severity:ErrorSeverity.Error},aborted:{userMessage:"The operation was cancelled. Please try again.",internalMessage:"Firestore transaction aborted",shouldRetry:!0,severity:ErrorSeverity.Warning},"invalid-argument":{userMessage:"Invalid data provided. Please check your input.",internalMessage:"Firestore invalid argument",shouldRetry:!1,severity:ErrorSeverity.Error},cancelled:{userMessage:"The operation was cancelled.",internalMessage:"Firestore operation cancelled",shouldRetry:!1,severity:ErrorSeverity.Info},unknown:{userMessage:"An unexpected error occurred. Please try again.",internalMessage:"Firestore unknown error",shouldRetry:!0,severity:ErrorSeverity.Error},"out-of-range":{userMessage:"The requested range is invalid.",internalMessage:"Firestore out of range",shouldRetry:!1,severity:ErrorSeverity.Error},unimplemented:{userMessage:"This feature is not yet available.",internalMessage:"Firestore operation not implemented",shouldRetry:!1,severity:ErrorSeverity.Error},internal:{userMessage:"An internal error occurred. Our team has been notified.",internalMessage:"Firestore internal error",shouldRetry:!0,severity:ErrorSeverity.Error},"data-loss":{userMessage:"Data integrity error. Please contact support.",internalMessage:"Firestore data loss detected",shouldRetry:!1,severity:ErrorSeverity.Error}};function isGoogleError(e){return e instanceof srcExports$1.GoogleError&&"number"==typeof e.code}function handleFirestoreError(e,t){var r,n;console.error("[".concat(t.service,"] Error in ").concat(t.operation,":"),e),isGoogleError(e)?(r=void 0!==e.code?STATUS_TO_STRING_MAP[e.code]:void 0,n=e):n=e instanceof Error?e:new Error(String(e));var o=r&&r in FIRESTORE_ERROR_MAPPINGS?FIRESTORE_ERROR_MAPPINGS[r]:{userMessage:"An unexpected error occurred. Please try again.",internalMessage:"Unknown error type",shouldRetry:!1,severity:ErrorSeverity.Error};throw console.error("[Internal] Error from Firestore: ".concat(o.internalMessage),{code:r,operation:t.operation,metadata:t.metadata}),new OakGoogleClassroomException(o.userMessage,t.service,{code:r,shouldRetry:o.shouldRetry,severity:o.severity,context:t,originalError:n})}var src$1={},gaxios={},isStream_1,hasRequiredIsStream;function requireIsStream(){if(hasRequiredIsStream)return isStream_1;hasRequiredIsStream=1;const e=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;return e.writable=t=>e(t)&&!1!==t.writable&&"function"==typeof t._write&&"object"==typeof t._writableState,e.readable=t=>e(t)&&!1!==t.readable&&"function"==typeof t._read&&"object"==typeof t._readableState,e.duplex=t=>e.writable(t)&&e.readable(t),e.transform=t=>e.duplex(t)&&"function"==typeof t._transform,isStream_1=e}var common$1={},util={},name="gaxios",version="6.7.1",description="A simple common HTTP client specifically for Google APIs and services.",main="build/src/index.js",types="build/src/index.d.ts",files=["build/src"],scripts={lint:"gts check",test:"c8 mocha build/test","presystem-test":"npm run compile","system-test":"mocha build/system-test --timeout 80000",compile:"tsc -p .",fix:"gts fix",prepare:"npm run compile",pretest:"npm run compile",webpack:"webpack","prebrowser-test":"npm run compile","browser-test":"node build/browser-test/browser-test-runner.js",docs:"compodoc src/","docs-test":"linkinator docs","predocs-test":"npm run docs","samples-test":"cd samples/ && npm link ../ && npm test && cd ../",prelint:"cd samples; npm link ../; npm install",clean:"gts clean",precompile:"gts clean"},repository="googleapis/gaxios",keywords=["google"],engines={node:">=14"},author="Google, LLC",license="Apache-2.0",devDependencies={"@babel/plugin-proposal-private-methods":"^7.18.6","@compodoc/compodoc":"1.1.19","@types/cors":"^2.8.6","@types/express":"^4.16.1","@types/extend":"^3.0.1","@types/mocha":"^9.0.0","@types/multiparty":"0.0.36","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^20.0.0","@types/node-fetch":"^2.5.7","@types/sinon":"^17.0.0","@types/tmp":"0.2.6","@types/uuid":"^10.0.0","abort-controller":"^3.0.0",assert:"^2.0.0",browserify:"^17.0.0",c8:"^8.0.0",cheerio:"1.0.0-rc.10",cors:"^2.8.5",execa:"^5.0.0",express:"^4.16.4","form-data":"^4.0.0",gts:"^5.0.0","is-docker":"^2.0.0",karma:"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^2.0.0","karma-mocha":"^2.0.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.4.0","karma-webpack":"5.0.0",linkinator:"^3.0.0",mocha:"^8.0.0",multiparty:"^4.2.1",mv:"^2.1.1",ncp:"^2.0.0",nock:"^13.0.0","null-loader":"^4.0.0",puppeteer:"^19.0.0",sinon:"^18.0.0","stream-browserify":"^3.0.0",tmp:"0.2.3","ts-loader":"^8.0.0",typescript:"^5.1.6",webpack:"^5.35.0","webpack-cli":"^4.0.0"},dependencies={extend:"^3.0.2","https-proxy-agent":"^7.0.1","is-stream":"^2.0.0","node-fetch":"^2.6.9",uuid:"^9.0.1"},require$$0={name:name,version:version,description:description,main:main,types:types,files:files,scripts:scripts,repository:repository,keywords:keywords,engines:engines,author:author,license:license,devDependencies:devDependencies,dependencies:dependencies},hasRequiredUtil,hasRequiredCommon$1;function requireUtil(){return hasRequiredUtil||(hasRequiredUtil=1,Object.defineProperty(util,"__esModule",{value:!0}),util.pkg=void 0,util.pkg=require$$0),util}function requireCommon$1(){return hasRequiredCommon$1||(hasRequiredCommon$1=1,function(e){var t,r=common$1&&common$1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.GaxiosError=e.GAXIOS_ERROR_SYMBOL=void 0,e.defaultErrorRedactor=function e(t){const r="<<REDACTED> - See `errorRedactor` option in `gaxios` for configuration>.";function o(e){if(e)for(const t of Object.keys(e))/^authentication$/i.test(t)&&(e[t]=r),/^authorization$/i.test(t)&&(e[t]=r),/secret/i.test(t)&&(e[t]=r)}function i(e,t){if("object"==typeof e&&null!==e&&"string"==typeof e[t]){const n=e[t];(/grant_type=/i.test(n)||/assertion=/i.test(n)||/secret/i.test(n))&&(e[t]=r)}}function a(e){"object"==typeof e&&null!==e&&("grant_type"in e&&(e.grant_type=r),"assertion"in e&&(e.assertion=r),"client_secret"in e&&(e.client_secret=r))}if(t.config){o(t.config.headers),i(t.config,"data"),a(t.config.data),i(t.config,"body"),a(t.config.body);try{const e=new n.URL("",t.config.url);e.searchParams.has("token")&&e.searchParams.set("token",r),e.searchParams.has("client_secret")&&e.searchParams.set("client_secret",r),t.config.url=e.toString()}catch(e){}}t.response&&(e({config:t.response.config}),o(t.response.headers),i(t.response,"data"),a(t.response.data));return t};const n=Url__default.default,o=requireUtil(),i=r(requireExtend());e.GAXIOS_ERROR_SYMBOL=Symbol.for(`${o.pkg.name}-gaxios-error`);class a extends Error{static[(t=e.GAXIOS_ERROR_SYMBOL,Symbol.hasInstance)](t){return!(!t||"object"!=typeof t||!(e.GAXIOS_ERROR_SYMBOL in t)||t[e.GAXIOS_ERROR_SYMBOL]!==o.pkg.version)||Function.prototype[Symbol.hasInstance].call(a,t)}constructor(e,r,n,a){var s;if(super(e),this.config=r,this.response=n,this.error=a,this[t]=o.pkg.version,this.config=(0,i.default)(!0,{},r),this.response&&(this.response.config=(0,i.default)(!0,{},this.response.config)),this.response){try{this.response.data=function(e,t){switch(e){case"stream":default:return t;case"json":return JSON.parse(JSON.stringify(t));case"arraybuffer":return JSON.parse(Buffer.from(t).toString("utf8"));case"blob":return JSON.parse(t.text())}}(this.config.responseType,null===(s=this.response)||void 0===s?void 0:s.data)}catch(e){}this.status=this.response.status}a&&"code"in a&&a.code&&(this.code=a.code),r.errorRedactor&&r.errorRedactor({config:this.config,response:this.response})}}e.GaxiosError=a}(common$1)),common$1}var retry={},hasRequiredRetry;function requireRetry(){if(hasRequiredRetry)return retry;function e(e){var r;const n=t(e);if("AbortError"===e.name||"AbortError"===(null===(r=e.error)||void 0===r?void 0:r.name))return!1;if(!n||0===n.retry)return!1;if(!e.response&&(n.currentRetryAttempt||0)>=n.noResponseRetries)return!1;if(!e.config.method||n.httpMethodsToRetry.indexOf(e.config.method.toUpperCase())<0)return!1;if(e.response&&e.response.status){let t=!1;for(const[r,o]of n.statusCodesToRetry){const n=e.response.status;if(n>=r&&n<=o){t=!0;break}}if(!t)return!1}return n.currentRetryAttempt=n.currentRetryAttempt||0,!(n.currentRetryAttempt>=n.retry)}function t(e){if(e&&e.config&&e.config.retryConfig)return e.config.retryConfig}return hasRequiredRetry=1,Object.defineProperty(retry,"__esModule",{value:!0}),retry.getRetryConfig=async function(r){let n=t(r);if(!r||!r.config||!n&&!r.config.retry)return{shouldRetry:!1};n=n||{},n.currentRetryAttempt=n.currentRetryAttempt||0,n.retry=void 0===n.retry||null===n.retry?3:n.retry,n.httpMethodsToRetry=n.httpMethodsToRetry||["GET","HEAD","PUT","OPTIONS","DELETE"],n.noResponseRetries=void 0===n.noResponseRetries||null===n.noResponseRetries?2:n.noResponseRetries,n.retryDelayMultiplier=n.retryDelayMultiplier?n.retryDelayMultiplier:2,n.timeOfFirstRequest=n.timeOfFirstRequest?n.timeOfFirstRequest:Date.now(),n.totalTimeout=n.totalTimeout?n.totalTimeout:Number.MAX_SAFE_INTEGER,n.maxRetryDelay=n.maxRetryDelay?n.maxRetryDelay:Number.MAX_SAFE_INTEGER;n.statusCodesToRetry=n.statusCodesToRetry||[[100,199],[408,408],[429,429],[500,599]],r.config.retryConfig=n;const o=n.shouldRetry||e;if(!await o(r))return{shouldRetry:!1,config:r.config};const i=function(e){var t;const r=e.currentRetryAttempt?0:null!==(t=e.retryDelay)&&void 0!==t?t:100,n=r+(Math.pow(e.retryDelayMultiplier,e.currentRetryAttempt)-1)/2*1e3,o=e.totalTimeout-(Date.now()-e.timeOfFirstRequest);return Math.min(n,o,e.maxRetryDelay)}(n);r.config.retryConfig.currentRetryAttempt+=1;const a=n.retryBackoff?n.retryBackoff(r,i):new Promise(e=>{setTimeout(e,i)});n.onRetryAttempt&&n.onRetryAttempt(r);return await a,{shouldRetry:!0,config:r.config}},retry}var interceptor={},hasRequiredInterceptor;function requireInterceptor(){if(hasRequiredInterceptor)return interceptor;hasRequiredInterceptor=1,Object.defineProperty(interceptor,"__esModule",{value:!0}),interceptor.GaxiosInterceptorManager=void 0;class e extends Set{}return interceptor.GaxiosInterceptorManager=e,interceptor}var dist$1={},src={exports:{}},browser={exports:{}},ms,hasRequiredMs,common,hasRequiredCommon,hasRequiredBrowser;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var e=1e3,t=60*e,r=60*t,n=24*r,o=7*n,i=365.25*n;function a(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}return ms=function(s,l){l=l||{};var p=typeof s;if("string"===p&&s.length>0)return function(a){if((a=String(a)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(!s)return;var l=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*i;case"weeks":case"week":case"w":return l*o;case"days":case"day":case"d":return l*n;case"hours":case"hour":case"hrs":case"hr":case"h":return l*r;case"minutes":case"minute":case"mins":case"min":case"m":return l*t;case"seconds":case"second":case"secs":case"sec":case"s":return l*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(s);if("number"===p&&isFinite(s))return l.long?function(o){var i=Math.abs(o);if(i>=n)return a(o,i,n,"day");if(i>=r)return a(o,i,r,"hour");if(i>=t)return a(o,i,t,"minute");if(i>=e)return a(o,i,e,"second");return o+" ms"}(s):function(o){var i=Math.abs(o);if(i>=n)return Math.round(o/n)+"d";if(i>=r)return Math.round(o/r)+"h";if(i>=t)return Math.round(o/t)+"m";if(i>=e)return Math.round(o/e)+"s";return o+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},ms}function requireCommon(){if(hasRequiredCommon)return common;return hasRequiredCommon=1,common=function(e){function t(e){let n,o,i,a=null;function s(...e){if(!s.enabled)return;const r=s,o=Number(new Date),i=o-(n||o);r.diff=i,r.prev=n,r.curr=o,n=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,o)=>{if("%%"===n)return"%";a++;const i=t.formatters[o];if("function"==typeof i){const t=e[a];n=i.call(r,t),e.splice(a,1),a--}return n}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(o!==t.namespaces&&(o=t.namespaces,i=t.enabled(e)),i),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function n(e,t){let r=0,n=0,o=-1,i=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(o=n,i=r,n++):(r++,n++);else{if(-1===o)return!1;n=o+1,i++,r=i}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of r)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const r of t.skips)if(n(e,r))return!1;for(const r of t.names)if(n(e,r))return!0;return!1},t.humanize=requireMs(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t},common}function requireBrowser(){return hasRequiredBrowser||(hasRequiredBrowser=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))}),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=requireCommon()(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(browser,browser.exports)),browser.exports}var node={exports:{}},hasFlag,hasRequiredHasFlag,supportsColor_1,hasRequiredSupportsColor,hasRequiredNode,hasRequiredSrc$1;function requireHasFlag(){return hasRequiredHasFlag?hasFlag:(hasRequiredHasFlag=1,hasFlag=(e,t=process.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),o=t.indexOf("--");return-1!==n&&(-1===o||n<o)})}function requireSupportsColor(){if(hasRequiredSupportsColor)return supportsColor_1;hasRequiredSupportsColor=1;const e=require$$0__default$1.default,t=require$$1__default$7.default,r=requireHasFlag(),{env:n}=process;let o;function i(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function a(t,i){if(0===o)return 0;if(r("color=16m")||r("color=full")||r("color=truecolor"))return 3;if(r("color=256"))return 2;if(t&&!i&&void 0===o)return 0;const a=o||0;if("dumb"===n.TERM)return a;if("win32"===process.platform){const t=e.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in n)||"codeship"===n.CI_NAME?1:a;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if("truecolor"===n.COLORTERM)return 3;if("TERM_PROGRAM"in n){const e=parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)||"COLORTERM"in n?1:a}return r("no-color")||r("no-colors")||r("color=false")||r("color=never")?o=0:(r("color")||r("colors")||r("color=true")||r("color=always"))&&(o=1),"FORCE_COLOR"in n&&(o="true"===n.FORCE_COLOR?1:"false"===n.FORCE_COLOR?0:0===n.FORCE_COLOR.length?1:Math.min(parseInt(n.FORCE_COLOR,10),3)),supportsColor_1={supportsColor:function(e){return i(a(e,e&&e.isTTY))},stdout:i(a(!0,t.isatty(1))),stderr:i(a(!0,t.isatty(2)))},supportsColor_1}function requireNode(){return hasRequiredNode||(hasRequiredNode=1,function(e,t){const r=require$$1__default$7.default,n=require$$1__default$4.default;t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(...e){return process.stderr.write(n.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(r){const{namespace:n,useColors:o}=this;if(o){const t=this.color,o="[3"+(t<8?t:"8;5;"+t),i=` ${o};1m${n} [0m`;r[0]=i+r[0].split("\n").join("\n"+i),r.push(o+"m+"+e.exports.humanize(this.diff)+"[0m")}else r[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+n+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)},t.destroy=n.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=requireSupportsColor();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e},{}),e.exports=requireCommon()(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts)}}(node,node.exports)),node.exports}function requireSrc$1(){return hasRequiredSrc$1||(hasRequiredSrc$1=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?src.exports=requireBrowser():src.exports=requireNode()),src.exports}var dist={},helpers={},hasRequiredHelpers,hasRequiredDist$1;function requireHelpers(){if(hasRequiredHelpers)return helpers;hasRequiredHelpers=1;var e=helpers&&helpers.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),t=helpers&&helpers.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=helpers&&helpers.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var o in r)"default"!==o&&Object.prototype.hasOwnProperty.call(r,o)&&e(n,r,o);return t(n,r),n};Object.defineProperty(helpers,"__esModule",{value:!0}),helpers.req=helpers.json=helpers.toBuffer=void 0;const n=r(http__default.default),o=r(require$$1__default$6.default);async function i(e){let t=0;const r=[];for await(const n of e)t+=n.length,r.push(n);return Buffer.concat(r,t)}return helpers.toBuffer=i,helpers.json=async function(e){const t=(await i(e)).toString("utf8");try{return JSON.parse(t)}catch(e){const r=e;throw r.message+=` (input: ${t})`,r}},helpers.req=function(e,t={}){const r=(("string"==typeof e?e:e.href).startsWith("https:")?o:n).request(e,t),i=new Promise((e,t)=>{r.once("response",e).once("error",t).end()});return r.then=i.then.bind(i),r},helpers}function requireDist$1(){return hasRequiredDist$1||(hasRequiredDist$1=1,function(e){var t=dist&&dist.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=dist&&dist.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=dist&&dist.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&t(n,e,o);return r(n,e),n},o=dist&&dist.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.Agent=void 0;const i=n(require$$0__default$2.default),a=n(http__default.default),s=require$$1__default$6.default;o(requireHelpers(),e);const l=Symbol("AgentBaseInternalState");class p extends a.Agent{constructor(e){super(e),this[l]={}}isSecureEndpoint(e){if(e){if("boolean"==typeof e.secureEndpoint)return e.secureEndpoint;if("string"==typeof e.protocol)return"https:"===e.protocol}const{stack:t}=new Error;return"string"==typeof t&&t.split("\n").some(e=>-1!==e.indexOf("(https.js:")||-1!==e.indexOf("node:https:"))}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);const t=new i.Socket({writable:!1});return this.sockets[e].push(t),this.totalSocketCount++,t}decrementSockets(e,t){if(!this.sockets[e]||null===t)return;const r=this.sockets[e],n=r.indexOf(t);-1!==n&&(r.splice(n,1),this.totalSocketCount--,0===r.length&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?s.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,t,r){const n={...t,secureEndpoint:this.isSecureEndpoint(t)},o=this.getName(n),i=this.incrementSockets(o);Promise.resolve().then(()=>this.connect(e,n)).then(s=>{if(this.decrementSockets(o,i),s instanceof a.Agent)try{return s.addRequest(e,n)}catch(e){return r(e)}this[l].currentSocket=s,super.createSocket(e,t,r)},e=>{this.decrementSockets(o,i),r(e)})}createConnection(){const e=this[l].currentSocket;if(this[l].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[l].defaultPort??("https:"===this.protocol?443:80)}set defaultPort(e){this[l]&&(this[l].defaultPort=e)}get protocol(){return this[l].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[l]&&(this[l].protocol=e)}}e.Agent=p}(dist)),dist}var parseProxyResponse={},hasRequiredParseProxyResponse,hasRequiredDist,hasRequiredGaxios,hasRequiredSrc;function requireParseProxyResponse(){if(hasRequiredParseProxyResponse)return parseProxyResponse;hasRequiredParseProxyResponse=1;var e=parseProxyResponse&&parseProxyResponse.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(parseProxyResponse,"__esModule",{value:!0}),parseProxyResponse.parseProxyResponse=void 0;const t=(0,e(requireSrc$1()).default)("https-proxy-agent:parse-proxy-response");return parseProxyResponse.parseProxyResponse=function(e){return new Promise((r,n)=>{let o=0;const i=[];function a(){const l=e.read();l?function(l){i.push(l),o+=l.length;const p=Buffer.concat(i,o),d=p.indexOf("\r\n\r\n");if(-1===d)return t("have not received end of HTTP headers yet..."),void a();const u=p.slice(0,d).toString("ascii").split("\r\n"),c=u.shift();if(!c)return e.destroy(),n(new Error("No header received from proxy CONNECT response"));const f=c.split(" "),h=+f[1],m=f.slice(2).join(" "),g={};for(const t of u){if(!t)continue;const r=t.indexOf(":");if(-1===r)return e.destroy(),n(new Error(`Invalid header from proxy CONNECT response: "${t}"`));const o=t.slice(0,r).toLowerCase(),i=t.slice(r+1).trimStart(),a=g[o];"string"==typeof a?g[o]=[a,i]:Array.isArray(a)?a.push(i):g[o]=i}t("got proxy server response: %o %o",c,g),s(),r({connect:{statusCode:h,statusText:m,headers:g},buffered:p})}(l):e.once("readable",a)}function s(){e.removeListener("end",l),e.removeListener("error",p),e.removeListener("readable",a)}function l(){s(),t("onend"),n(new Error("Proxy connection ended before receiving CONNECT response"))}function p(e){s(),t("onerror %o",e),n(e)}e.on("error",p),e.on("end",l),a()})},parseProxyResponse}function requireDist(){if(hasRequiredDist)return dist$1;hasRequiredDist=1;var e=dist$1&&dist$1.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),t=dist$1&&dist$1.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=dist$1&&dist$1.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var o in r)"default"!==o&&Object.prototype.hasOwnProperty.call(r,o)&&e(n,r,o);return t(n,r),n},n=dist$1&&dist$1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dist$1,"__esModule",{value:!0}),dist$1.HttpsProxyAgent=void 0;const o=r(require$$0__default$2.default),i=r(require$$1__default$1.default),a=n(require$$2__default.default),s=n(requireSrc$1()),l=requireDist$1(),p=Url__default.default,d=requireParseProxyResponse(),u=(0,s.default)("https-proxy-agent"),c=e=>void 0===e.servername&&e.host&&!o.isIP(e.host)?{...e,servername:e.host}:e;class f extends l.Agent{constructor(e,t){super(t),this.options={path:void 0},this.proxy="string"==typeof e?new p.URL(e):e,this.proxyHeaders=t?.headers??{},u("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const r=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):"https:"===this.proxy.protocol?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?m(t,"headers"):null,host:r,port:n}}async connect(e,t){const{proxy:r}=this;if(!t.host)throw new TypeError('No "host" provided');let n;"https:"===r.protocol?(u("Creating `tls.Socket`: %o",this.connectOpts),n=i.connect(c(this.connectOpts))):(u("Creating `net.Socket`: %o",this.connectOpts),n=o.connect(this.connectOpts));const s="function"==typeof this.proxyHeaders?this.proxyHeaders():{...this.proxyHeaders},l=o.isIPv6(t.host)?`[${t.host}]`:t.host;let p=`CONNECT ${l}:${t.port} HTTP/1.1\r\n`;if(r.username||r.password){const e=`${decodeURIComponent(r.username)}:${decodeURIComponent(r.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}s.Host=`${l}:${t.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(const e of Object.keys(s))p+=`${e}: ${s[e]}\r\n`;const f=(0,d.parseProxyResponse)(n);n.write(`${p}\r\n`);const{connect:g,buffered:y}=await f;if(e.emit("proxyConnect",g),this.emit("proxyConnect",g,e),200===g.statusCode)return e.once("socket",h),t.secureEndpoint?(u("Upgrading socket connection to TLS"),i.connect({...m(c(t),"host","path","port"),socket:n})):n;n.destroy();const v=new o.Socket({writable:!1});return v.readable=!0,e.once("socket",e=>{u("Replaying proxy buffer for failed request"),(0,a.default)(e.listenerCount("data")>0),e.push(y),e.push(null)}),v}}function h(e){e.resume()}function m(e,...t){const r={};let n;for(n in e)t.includes(n)||(r[n]=e[n]);return r}return f.protocols=["http","https"],dist$1.HttpsProxyAgent=f,dist$1}function requireGaxios(){if(hasRequiredGaxios)return gaxios;hasRequiredGaxios=1;var e,t,r,n,o,i,a,s,l=gaxios&&gaxios.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),p=gaxios&&gaxios.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),d=gaxios&&gaxios.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&l(t,e,r);return p(t,e),t},u=gaxios&&gaxios.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},c=gaxios&&gaxios.__classPrivateFieldSet||function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r},f=gaxios&&gaxios.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gaxios,"__esModule",{value:!0}),gaxios.Gaxios=void 0;const h=f(requireExtend()),m=require$$1__default$6.default,g=f(require$$2$1),y=f(require$$0__default$5.default),v=f(requireIsStream()),b=Url__default.default,O=requireCommon$1(),w=requireRetry(),S=Stream__default.default,_=require$$9,P=requireInterceptor(),E="undefined"!=typeof window&&window&&window.fetch?window.fetch:g.default;function T(e,t){return!!C(e,t)}function C(e,t){t=t.toLowerCase();for(const r of Object.keys((null==e?void 0:e.headers)||{}))if(t===r.toLowerCase())return e.headers[r]}class R{constructor(t){e.add(this),this.agentCache=new Map,this.defaults=t||{},this.interceptors={request:new P.GaxiosInterceptorManager,response:new P.GaxiosInterceptorManager}}async request(t={}){return t=await u(this,e,"m",i).call(this,t),t=await u(this,e,"m",n).call(this,t),u(this,e,"m",o).call(this,this._request(t))}async _defaultAdapter(e){const t=e.fetchImplementation||E,r=await t(e.url,e),n=await this.getResponseData(e,r);return this.translateResponse(e,r,n)}async _request(e={}){var t;try{let t;if(t=e.adapter?await e.adapter(e,this._defaultAdapter.bind(this)):await this._defaultAdapter(e),!e.validateStatus(t.status)){if("stream"===e.responseType){let e="";await new Promise(r=>{(null==t?void 0:t.data).on("data",t=>{e+=t}),(null==t?void 0:t.data).on("end",r)}),t.data=e}throw new O.GaxiosError(`Request failed with status code ${t.status}`,e,t)}return t}catch(r){const n=r instanceof O.GaxiosError?r:new O.GaxiosError(r.message,e,void 0,r),{shouldRetry:o,config:i}=await(0,w.getRetryConfig)(n);if(o&&i)return n.config.retryConfig.currentRetryAttempt=i.retryConfig.currentRetryAttempt,e.retryConfig=null===(t=n.config)||void 0===t?void 0:t.retryConfig,this._request(e);throw n}}async getResponseData(e,t){switch(e.responseType){case"stream":return t.body;case"json":{let e=await t.text();try{e=JSON.parse(e)}catch(e){}return e}case"arraybuffer":return t.arrayBuffer();case"blob":return t.blob();case"text":return t.text();default:return this.getResponseDataFromContentType(t)}}validateStatus(e){return e>=200&&e<300}paramsSerializer(e){return y.default.stringify(e)}translateResponse(e,t,r){const n={};return t.headers.forEach((e,t)=>{n[t]=e}),{config:e,data:r,headers:n,status:t.status,statusText:t.statusText,request:{responseURL:t.url}}}async getResponseDataFromContentType(e){let t=e.headers.get("Content-Type");if(null===t)return e.text();if(t=t.toLowerCase(),t.includes("application/json")){let t=await e.text();try{t=JSON.parse(t)}catch(e){}return t}return t.match(/^text\//)?e.text():e.blob()}async*getMultipartRequest(e,t){const r=`--${t}--`;for(const r of e){const e=`--${t}\r\nContent-Type: ${r.headers["Content-Type"]||"application/octet-stream"}\r\n\r\n`;yield e,"string"==typeof r.content?yield r.content:yield*r.content,yield"\r\n"}yield r}}return gaxios.Gaxios=R,t=R,e=new WeakSet,r=function(e,t=[]){var r,n;const o=new b.URL(e),i=[...t],a=(null===(n=null!==(r=process.env.NO_PROXY)&&void 0!==r?r:process.env.no_proxy)||void 0===n?void 0:n.split(","))||[];for(const e of a)i.push(e.trim());for(const e of i)if(e instanceof RegExp){if(e.test(o.toString()))return!1}else if(e instanceof b.URL){if(e.origin===o.origin)return!1}else if(e.startsWith("*.")||e.startsWith(".")){const t=e.replace(/^\*\./,".");if(o.hostname.endsWith(t))return!1}else if(e===o.origin||e===o.hostname||e===o.href)return!1;return!0},n=async function(e){let t=Promise.resolve(e);for(const e of this.interceptors.request.values())e&&(t=t.then(e.resolved,e.rejected));return t},o=async function(e){let t=Promise.resolve(e);for(const e of this.interceptors.response.values())e&&(t=t.then(e.resolved,e.rejected));return t},i=async function(n){var o,i,a,l;const p=(0,h.default)(!0,{},this.defaults,n);if(!p.url)throw new Error("URL is required.");const d=p.baseUrl||p.baseURL;if(d&&(p.url=d.toString()+p.url),p.paramsSerializer=p.paramsSerializer||this.paramsSerializer,p.params&&Object.keys(p.params).length>0){let e=p.paramsSerializer(p.params);e.startsWith("?")&&(e=e.slice(1));const t=p.url.toString().includes("?")?"&":"?";p.url=p.url+t+e}if("number"==typeof n.maxContentLength&&(p.size=n.maxContentLength),"number"==typeof n.maxRedirects&&(p.follow=n.maxRedirects),p.headers=p.headers||{},void 0===p.multipart&&p.data){const e="undefined"!=typeof FormData&&(null==p?void 0:p.data)instanceof FormData;v.default.readable(p.data)?p.body=p.data:"undefined"!=typeof Buffer&&Buffer.isBuffer(p.data)?(p.body=p.data,T(p,"Content-Type")||(p.headers["Content-Type"]="application/json")):"object"==typeof p.data?e||("application/x-www-form-urlencoded"===C(p,"content-type")?p.body=p.paramsSerializer(p.data):(T(p,"Content-Type")||(p.headers["Content-Type"]="application/json"),p.body=JSON.stringify(p.data))):p.body=p.data}else if(p.multipart&&p.multipart.length>0){const e=(0,_.v4)();p.headers["Content-Type"]=`multipart/related; boundary=${e}`;const t=new S.PassThrough;p.body=t,(0,S.pipeline)(this.getMultipartRequest(p.multipart,e),t,()=>{})}p.validateStatus=p.validateStatus||this.validateStatus,p.responseType=p.responseType||"unknown",p.headers.Accept||"json"!==p.responseType||(p.headers.Accept="application/json"),p.method=p.method||"GET";const c=p.proxy||(null===(o=null===process||void 0===process?void 0:process.env)||void 0===o?void 0:o.HTTPS_PROXY)||(null===(i=null===process||void 0===process?void 0:process.env)||void 0===i?void 0:i.https_proxy)||(null===(a=null===process||void 0===process?void 0:process.env)||void 0===a?void 0:a.HTTP_PROXY)||(null===(l=null===process||void 0===process?void 0:process.env)||void 0===l?void 0:l.http_proxy),f=u(this,e,"m",r).call(this,p.url,p.noProxy);if(p.agent);else if(c&&f){const e=await u(t,t,"m",s).call(t);this.agentCache.has(c)?p.agent=this.agentCache.get(c):(p.agent=new e(c,{cert:p.cert,key:p.key}),this.agentCache.set(c,p.agent))}else p.cert&&p.key&&(this.agentCache.has(p.key)?p.agent=this.agentCache.get(p.key):(p.agent=new m.Agent({cert:p.cert,key:p.key}),this.agentCache.set(p.key,p.agent)));return"function"!=typeof p.errorRedactor&&!1!==p.errorRedactor&&(p.errorRedactor=O.defaultErrorRedactor),p},s=async function(){return c(this,t,u(this,t,"f",a)||(await Promise.resolve().then(()=>d(requireDist()))).HttpsProxyAgent,"f",a),u(this,t,"f",a)},a={value:void 0},gaxios}function requireSrc(){return hasRequiredSrc||(hasRequiredSrc=1,function(e){var t=src$1&&src$1.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=src$1&&src$1.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.instance=e.Gaxios=e.GaxiosError=void 0,e.request=async function(t){return e.instance.request(t)};const n=requireGaxios();Object.defineProperty(e,"Gaxios",{enumerable:!0,get:function(){return n.Gaxios}});var o=requireCommon$1();Object.defineProperty(e,"GaxiosError",{enumerable:!0,get:function(){return o.GaxiosError}}),r(requireInterceptor(),e),e.instance=new n.Gaxios}(src$1)),src$1}var srcExports=requireSrc(),mapHTTPStatusToOAuthError=function(e){switch(e){case 400:return"invalid_request";case 401:return"invalid_token";case 403:return"access_denied";case 429:return"network_error";case 500:return"server_error";case 503:return"temporarily_unavailable"}return"unknown"},OAUTH_ERROR_MAPPINGS={invalid_client:{userMessage:"Authentication configuration error. Please contact support.",internalMessage:"OAuth client credentials invalid",shouldRetry:!1,severity:ErrorSeverity.Error},invalid_grant:{userMessage:"Your session has expired. Please sign in again.",internalMessage:"OAuth refresh token expired or revoked",shouldRetry:!1,severity:ErrorSeverity.Error},access_denied:{userMessage:"Access was denied. Please grant permission to continue.",internalMessage:"User denied OAuth permission",shouldRetry:!1,severity:ErrorSeverity.Info},invalid_token:{userMessage:"Your authentication token is invalid. Please sign in again.",internalMessage:"OAuth access token invalid",shouldRetry:!1,severity:ErrorSeverity.Error},expired_token:{userMessage:"Your session has expired. Please sign in again.",internalMessage:"OAuth access token expired",shouldRetry:!1,severity:ErrorSeverity.Error},redirect_uri_mismatch:{userMessage:"Authentication configuration error. Please contact support.",internalMessage:"OAuth redirect URI mismatch",shouldRetry:!1,severity:ErrorSeverity.Error},insufficient_scope:{userMessage:"Additional permissions are required. Please sign in again.",internalMessage:"OAuth insufficient scope",shouldRetry:!1,severity:ErrorSeverity.Error},network_error:{userMessage:"Network error. Please check your connection and try again.",internalMessage:"OAuth network error",shouldRetry:!0,severity:ErrorSeverity.Warning},timeout_error:{userMessage:"Request timed out. Please try again.",internalMessage:"OAuth request timeout",shouldRetry:!0,severity:ErrorSeverity.Warning},invalid_request:{userMessage:"Invalid request. Please try again.",internalMessage:"OAuth invalid request parameters",shouldRetry:!1,severity:ErrorSeverity.Error},unsupported_grant_type:{userMessage:"Authentication method not supported. Please contact support.",internalMessage:"OAuth unsupported grant type",shouldRetry:!1,severity:ErrorSeverity.Error},invalid_scope:{userMessage:"Invalid permissions requested. Please contact support.",internalMessage:"OAuth invalid scope",shouldRetry:!1,severity:ErrorSeverity.Error},unauthorized_client:{userMessage:"Application not authorized. Please contact support.",internalMessage:"OAuth client not authorized",shouldRetry:!1,severity:ErrorSeverity.Error},unknown:{userMessage:"An unexpected error occurred. Please try again.",internalMessage:"Unknown OAuth error",shouldRetry:!0,severity:ErrorSeverity.Error},server_error:{userMessage:"An unexpected error occurred. Please try again.",internalMessage:"OAuth server error",shouldRetry:!0,severity:ErrorSeverity.Error},temporarily_unavailable:{userMessage:"Service temporarily unavailable. Please try again in a moment.",internalMessage:"OAuth service temporarily unavailable",shouldRetry:!0,severity:ErrorSeverity.Warning}};function isOAuth2Error(e){return e instanceof srcExports.GaxiosError}function extractOAuthErrorCode(e){var t,r,n=null===(r=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===r?void 0:r.error;return"string"==typeof n?n:"string"==typeof e.code?e.code.startsWith("E")?"ETIMEDOUT"===e.code?"timeout_error":("ENOTFOUND"===e.code||e.code,"network_error"):e.code:e.status?mapHTTPStatusToOAuthError(e.status):"unknown"}function handleGoogleOAuth2Error(e,t){var r,n;console.error("[".concat(t.service,"] Error in ").concat(t.operation,":"),e),isOAuth2Error(e)?(r=extractOAuthErrorCode(e),n=e):e instanceof Error?(n=e,r="unknown"):(n=new Error(String(e)),r="unknown");var o=r&&r in OAUTH_ERROR_MAPPINGS?OAUTH_ERROR_MAPPINGS[r]:OAUTH_ERROR_MAPPINGS.unknown;throw console.error("[Internal] Error from Google OAuth2: ".concat(o.internalMessage),{code:r,operation:t.operation,metadata:t.metadata}),new OakGoogleClassroomException(o.userMessage,t.service,{code:r,shouldRetry:o.shouldRetry,severity:o.severity,context:t,originalError:n})}var ENCRYPTION_ERROR_MAPPINGS={encryption_failed:{userMessage:"Failed to encrypt data. Please try again.",internalMessage:"Encryption operation failed",shouldRetry:!1,severity:ErrorSeverity.Error},decryption_failed:{userMessage:"Failed to decrypt data. Please contact support.",internalMessage:"Decryption operation failed",shouldRetry:!1,severity:ErrorSeverity.Error}};function handleEncryptionError(e,t,r){var n;console.error("[".concat(t.service,"] Error in ").concat(t.operation,":"),e),n=e instanceof Error?e:new Error(String(e));var o=ENCRYPTION_ERROR_MAPPINGS[r];throw console.error("[Internal] Error from Encryption: ".concat(o.internalMessage),{code:r,operation:t.operation,metadata:t.metadata}),new OakGoogleClassroomException(o.userMessage,t.service,{code:r,shouldRetry:o.shouldRetry,severity:o.severity,context:t,originalError:n})}var EncryptionService=function(){function e(e){this.encryptionSecret=e,this.ENCRYPTION_SECRET=e}return e.prototype.encryptString=function(t){try{var r=crypto__default.default.randomBytes(e.SALT_BYTES).toString("hex"),n=crypto__default.default.randomBytes(e.IV_LENGTH),o=crypto__default.default.scryptSync(this.ENCRYPTION_SECRET,r,e.ENCRYPTION_KEY_LENGTH),i=crypto__default.default.createCipheriv(e.ALGORITHM,o,n),a=i.update(t,"utf8","hex");return a+=i.final("hex"),"".concat(n.toString("hex"),":").concat(a,":").concat(r)}catch(e){return handleEncryptionError(e,{operation:"encryptString",service:ExceptionType.Encryption,metadata:{message:"Failed to encrypt string",errorType:e instanceof Error?e.name:typeof e}},"encryption_failed")}},e.prototype.decryptString=function(t){try{var r=__read(t.split(":"),3),n=r[0],o=r[1],i=r[2];if(!n||!o||!i)throw new Error("Invalid encrypted string");var a=Buffer.from(n,"hex"),s=crypto__default.default.scryptSync(this.ENCRYPTION_SECRET,i,e.ENCRYPTION_KEY_LENGTH),l=crypto__default.default.createDecipheriv(e.ALGORITHM,s,a),p=l.update(o,"hex","utf8");return p+=l.final("utf8")}catch(e){return handleEncryptionError(e,{operation:"decryptString",service:ExceptionType.Encryption,metadata:{message:"Failed to decrypt string",errorType:e instanceof Error?e.name:typeof e}},"decryption_failed")}},e.ALGORITHM="aes-256-cbc",e.IV_LENGTH=16,e.SALT_BYTES=16,e.ENCRYPTION_KEY_LENGTH=32,e}(),FirestoreCollections;!function(e){e.CONNECTED_USERS_CREDENTIALS="connectedUsersCredentials",e.CLASSROOM_ATTACHMENTS="classroomAttachments"}(FirestoreCollections||(FirestoreCollections={}));var FirestoreClient=function(){function e(e){this.firestore=e,this._firestore=e}return e.prototype.getConnectedUserCredentials=function(e){return __awaiter(this,void 0,void 0,function(){var t,r,n;return __generator$1(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this._firestore.collection(FirestoreCollections.CONNECTED_USERS_CREDENTIALS).doc(e).get()];case 1:return(t=o.sent()).exists?[2,userCredentialsEntitySchema.parse(t.data())]:[2,null];case 2:return r=o.sent(),n={operation:"getConnectedUserCredentials",service:ExceptionType.Firestore,metadata:{message:"Failed to get users credentials"}},handleFirestoreError(r,n),[3,3];case 3:return[2]}})})},e.prototype.upsertConnectedUserCredentials=function(e){return __awaiter(this,void 0,void 0,function(){var t,r,n;return __generator$1(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),t=userCredentialsEntitySchema.parse(e),this._firestore.settings({ignoreUndefinedProperties:!0}),[4,this._firestore.collection(FirestoreCollections.CONNECTED_USERS_CREDENTIALS).doc(t.loginHint).set(t)];case 1:return o.sent(),[3,3];case 2:return r=o.sent(),n={operation:"upsertConnectedUserCredentials",service:ExceptionType.Firestore,metadata:{message:"Failed to upsert users credentials",originalError:r}},handleFirestoreError(r,n),[3,3];case 3:return[2]}})})},e.prototype.upsertClassroomAttachment=function(e){return __awaiter(this,void 0,void 0,function(){var t,r,n;return __generator$1(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),t=classroomAttachmentEntitySchema.parse(e),this._firestore.settings({ignoreUndefinedProperties:!0}),[4,this._firestore.collection(FirestoreCollections.CLASSROOM_ATTACHMENTS).doc(t.attachmentId).set(t)];case 1:return o.sent(),[3,3];case 2:return r=o.sent(),n={operation:"upsertClassroomAttachment",service:ExceptionType.Firestore,metadata:{message:"Failed to upsert classroom attachment",originalError:r}},handleFirestoreError(r,n),[3,3];case 3:return[2]}})})},e.prototype.getClassroomAttachmentById=function(e){return __awaiter(this,void 0,void 0,function(){var t,r,n;return __generator$1(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this._firestore.collection(FirestoreCollections.CLASSROOM_ATTACHMENTS).doc(e).get()];case 1:return(t=o.sent()).exists?[2,classroomAttachmentEntitySchema.parse(t.data())]:[2,null];case 2:return r=o.sent(),n={operation:"getClassroomAttachmentById",service:ExceptionType.Firestore,metadata:{message:"Failed to get classroom attachment by ID"}},handleFirestoreError(r,n),[3,3];case 3:return[2]}})})},e}(),GoogleOAuthClient=function(){function e(e,t,r,n,o){var i=this;if(this.googleClientId=e,this.googleClientSecret=t,this.callbackUrl=r,this.accessToken=n,this.refreshToken=o,!e)throw new Error("Google Client ID is missing");if(!t)throw new Error("Google Client Secret is missing");if(!r)throw new Error("Google OAuth Callback URL is missing");var a=new require$$3$2.OAuth2Client({clientId:e,clientSecret:t,redirectUri:r,forceRefreshOnFailure:!1});"true"===process.env.GOOGLE_CLASSROOM_DEV_MODE&&n&&(a.refreshHandler=function(){return __awaiter(i,void 0,void 0,function(){return __generator$1(this,function(e){return[2,{access_token:n,expiry_date:(new Date).getTime()+36e5}]})})}),(n||o)&&a.setCredentials({access_token:n,refresh_token:o}),this.client=a,this.clientId=e}return e.prototype.getAuthenticateUrl=function(e,t){void 0===t&&(t=!1);try{return this.client.generateAuthUrl({access_type:"offline",include_granted_scopes:!0,scope:["https://www.googleapis.com/auth/userinfo.profile","https://www.googleapis.com/auth/userinfo.email","https://www.googleapis.com/auth/classroom.courses.readonly","https://www.googleapis.com/auth/classroom.addons.student","https://www.googleapis.com/auth/classroom.addons.teacher"],loginHint:e,subscribeToNewsletter:t})}catch(e){return handleGoogleOAuth2Error(e,{operation:"getAuthenticateUrl",service:ExceptionType.GoogleOAuth,metadata:{message:"Failed to get authenticate url"}})}},e.prototype.exchangeCodeForTokens=function(e){return __awaiter(this,void 0,void 0,function(){var t,r,n,o,i,a;return __generator$1(this,function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),[4,this.client.getToken(e)];case 1:return t=s.sent().tokens,[4,this.client.verifyIdToken({idToken:t.id_token,audience:this.clientId})];case 2:return r=s.sent(),n=r.getPayload(),o={accessToken:t.access_token,loginHint:null==n?void 0:n.sub,refreshToken:t.refresh_token,profilePictureUrl:null==n?void 0:n.picture,email:null==n?void 0:n.email},[2,googleOAuthUserSchema.parse(o)];case 3:return i=s.sent(),a={operation:"exchangeCodeForTokens",service:ExceptionType.GoogleOAuth,metadata:{message:"Failed to exchange code for tokens"}},[2,handleGoogleOAuth2Error(i,a)];case 4:return[2]}})})},e.prototype.refreshAccessToken=function(e){return __awaiter(this,void 0,void 0,function(){var t,r,n;return __generator$1(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),this.client.setCredentials({refresh_token:e}),[4,this.client.getAccessToken()];case 1:return t=o.sent(),[2,tokenPayloadSchema.parse(t).token];case 2:return r=o.sent(),n={operation:"refreshAccessToken",service:ExceptionType.GoogleOAuth,metadata:{message:"Failed to refresh access token"}},[2,handleGoogleOAuth2Error(r,n)];case 3:return[2]}})})},e.prototype.isAuthenticated=function(e){return __awaiter(this,void 0,void 0,function(){var t,r,n;return __generator$1(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.client.getTokenInfo(e)];case 1:return t=o.sent(),t.expiry_date<Date.now()?[2,!1]:[2,!0];case 2:return r=o.sent(),n={operation:"isAuthenticated",service:ExceptionType.GoogleOAuth,metadata:{message:"Failed to check if access token is authenticated"}},[2,handleGoogleOAuth2Error(r,n)];case 3:return[2]}})})},e.prototype.getOAuth2Client=function(){return __awaiter(this,void 0,void 0,function(){return __generator$1(this,function(e){return[2,this.client]})})},e}(),OakGoogleClassroomAddOn=function(){function e(e,t,r,n,o,i,a){this.encryptionSecret=e,this.firestore=t,this.googleOAuthClientId=r,this.googleOAuthClientSecret=n,this.googleOAuthCallbackApiRoute=o,this.sessionSecret=i,this.baseUrl=a,this.encryptionService=new EncryptionService(e),this.firestoreClient=new FirestoreClient(t),this._googleOAuthClientId=r,this._googleOAuthClientSecret=n,this._googleOAuthCallbackApiRoute=o,this._sessionSecret=i}return e.prototype.getOAuthClient=function(e,t){return new GoogleOAuthClient(this._googleOAuthClientId,this._googleOAuthClientSecret,this._googleOAuthCallbackApiRoute,e,t)},e.prototype.getGoogleSignInUrl=function(e){return __awaiter(this,arguments,void 0,function(e,t){var r,n;return void 0===t&&(t=!1),__generator$1(this,function(o){if(r=this.getOAuthClient(),!(n=r.getAuthenticateUrl(e,t)))throw new OakGoogleClassroomException("Failed to get Google Authentication URL",ExceptionType.GoogleOAuth,{context:{operation:"getGoogleSignInUrl",service:ExceptionType.GoogleOAuth},severity:ErrorSeverity.Error,originalError:new Error("Failed to get Google Authentication URL")});return[2,n]})})},e.prototype.handleGoogleSignInCallback=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,n,o,i,a,s,l;return __generator$1(this,function(p){switch(p.label){case 0:if(!e||"string"!=typeof e||""===e.trim())throw new OakGoogleClassroomException("Invalid OAuth code provided",ExceptionType.GoogleOAuth,{context:{operation:"handleGoogleSignInCallback",service:ExceptionType.GoogleOAuth},severity:ErrorSeverity.Error,originalError:new Error("Invalid OAuth code provided")});return[4,this.getOAuthClient().exchangeCodeForTokens(e)];case 1:if(!(r=p.sent()))throw new OakGoogleClassroomException("Failed to authenticate Google sign-in",ExceptionType.GoogleOAuth,{context:{operation:"handleGoogleSignInCallback",service:ExceptionType.GoogleOAuth},severity:ErrorSeverity.Error,originalError:new Error("Failed to authenticate Google sign-in")});if(n=googleOAuthUserSchema.parse(r),!(o=n.accessToken))throw new OakGoogleClassroomException("Access token missing from OAuth response",ExceptionType.GoogleOAuth,{context:{operation:"handleGoogleSignInCallback",service:ExceptionType.GoogleOAuth,metadata:{loginHint:n.loginHint}},severity:ErrorSeverity.Error,originalError:new Error("Access token missing from OAuth response")});i=n.refreshToken?this.encryptionService.encryptString(n.refreshToken):void 0,a=n.profilePictureUrl?this.encryptionService.encryptString(n.profilePictureUrl):void 0,p.label=2;case 2:return p.trys.push([2,4,,5]),[4,sealData({loginHint:n.loginHint,accessToken:o},{password:this._sessionSecret})];case 3:return s=p.sent(),[3,5];case 4:throw l=p.sent(),new OakGoogleClassroomException("Failed to create encrypted session",ExceptionType.Encryption,{context:{operation:"handleGoogleSignInCallback",service:ExceptionType.Encryption,metadata:{loginHint:n.loginHint}},severity:ErrorSeverity.Error,originalError:l instanceof Error?l:new Error(String(l))});case 5:return[4,this.firestoreClient.upsertConnectedUserCredentials({refreshToken:i,profilePictureUrl:a,loginHint:n.loginHint})];case 6:return p.sent(),t&&n.email?[4,t(n.email)]:[3,8];case 7:p.sent(),p.label=8;case 8:return[2,{encryptedSession:s,accessToken:o,profilePictureUrl:n.profilePictureUrl}]}})})},e.prototype.decryptSession=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator$1(this,function(r){switch(r.label){case 0:return[4,unsealData(e,{password:this._sessionSecret})];case 1:return(null==(t=r.sent())?void 0:t.accessToken)&&(null==t?void 0:t.loginHint)?[2,t]:[2,null]}})})},e.prototype.getSessionAndUser=function(e){return __awaiter(this,void 0,void 0,function(){var t,r,n;return __generator$1(this,function(o){switch(o.label){case 0:return[4,this.decryptSession(e)];case 1:return(t=o.sent())?[4,this.firestoreClient.getConnectedUserCredentials(t.loginHint)]:[2,null];case 2:return(r=o.sent())?(n=r.refreshToken?this.encryptionService.decryptString(r.refreshToken):void 0,r.refreshToken=n,process.env.GOOGLE_CLASSROOM_DEV_REFRESH_TOKEN&&(r.refreshToken=process.env.GOOGLE_CLASSROOM_DEV_REFRESH_TOKEN),[2,{session:t,user:r}]):[2,null]}})})},e.prototype.verifyAuthSession=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,n,o,i;return __generator$1(this,function(a){switch(a.label){case 0:return e&&t?[4,this.getSessionAndUser(e)]:[2,null];case 1:return(r=a.sent())&&t&&(null===(i=null==r?void 0:r.session)||void 0===i?void 0:i.accessToken)===t?[4,(n=this.getOAuthClient(t,r.user.refreshToken)).isAuthenticated(t)]:[2,null];case 2:return a.sent()?[2,{session:e,token:t}]:[4,n.refreshAccessToken(r.user.refreshToken)];case 3:return(o=a.sent())?[4,sealData({loginHint:r.session.loginHint,accessToken:o},{password:this._sessionSecret})]:[3,5];case 4:return[2,{session:a.sent(),token:o}];case 5:return[2,null]}})})},e.prototype.createAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n,o,i,a;return __generator$1(this,function(s){switch(s.label){case 0:return[4,this.getSessionAndUser(r)];case 1:if(!(n=s.sent())||t!==n.session.accessToken)throw new Error("Invalid Google Classroom session");return o=this.getOAuthClient(t,n.user.refreshToken),[4,new GoogleClassroomClient(this.baseUrl,o).createAnnouncementAttachment(e)];case 2:return i=s.sent(),a=__assign(__assign({},i),{attachmentId:i.id,createdAt:(new Date).toISOString()}),[4,this.firestoreClient.upsertClassroomAttachment(a)];case 3:return s.sent(),[4,this.firestoreClient.getClassroomAttachmentById(i.id)];case 4:return[2,s.sent()]}})})},e}();exports.OakGoogleClassroomAddOn=OakGoogleClassroomAddOn;
|
|
8
106
|
//# sourceMappingURL=index.js.map
|