1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8023],{565:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>a,R9:()=>n,q7:()=>l,sr:()=>c});var i,n,s=r(1310);(i=n||(n={})).TRACK_INTAKE_REQUESTS="track_intake_requests",i.USE_TREE_WALKER_FOR_ACTION_NAME="use_tree_walker_for_action_name",i.FEATURE_OPERATION_VITAL="feature_operation_vital",i.SHORT_SESSION_INVESTIGATION="short_session_investigation",i.AVOID_FETCH_KEEPALIVE="avoid_fetch_keepalive";let o=new Set;function a(e){Array.isArray(e)&&e.filter(e=>(0,s.Rj)(n,e)).forEach(e=>{o.add(e)})}function c(e){return o.has(e)}function l(){return o}},982:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExpiresAt=t.ExpiresIn=void 0;class r{constructor(e){this._doesExpire=e}doesExpire(){return this._doesExpire}}class i extends r{constructor(e){super(e!==1/0),this._validForSeconds=null===e?1/0:e}seconds(){return this._validForSeconds}static never(){return new i(1/0)}static seconds(e){return new i(e)}static minutes(e){return new i(60*e)}static hours(e){return new i(3600*e)}static days(e){return new i(86400*e)}static epoch(e){return new i(Math.round(e-new Date().getTime()/1e3))}}t.ExpiresIn=i;class n extends r{constructor(e){super(void 0!==e&&0!==e),this.doesExpire()?this.validUntil=e:this.validUntil=1/0}epoch(){return this.validUntil}static fromEpoch(e){return new n(e)}}t.ExpiresAt=n},1310:(e,t,r)=>{"use strict";function i(e){return{...e}}function n(e,t){return Object.keys(e).some(r=>e[r]===t)}function s(e){return 0===Object.keys(e).length}function o(e,t){let r={};for(let i of Object.keys(e))r[i]=t(e[i]);return r}r.d(t,{LG:()=>o,RI:()=>s,Rj:()=>n,yG:()=>i})},1383:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Leaderboard=void 0;let i=r(84055),n=r(61624),s=r(52725);class o extends n.AbstractLeaderboard{constructor(e,t,r){try{(0,s.validateCacheName)(t),(0,s.validateLeaderboardName)(r)}catch(e){throw new i.InvalidArgumentError("cache name and leaderboard name must not be empty strings")}super(t,r,e)}}t.Leaderboard=o},2112:(e,t,r)=>{"use strict";r.d(t,{As:()=>l,bJ:()=>u,e6:()=>a});var i=r(99758),n=r(70493),s=r(90662),o=r(99857);let a="No stack, consider using an instance of Error";function c({originalError:e,stackTrace:t,source:r,useFallbackStack:l=!0,nonErrorPrefix:d}){var p,h,g,f;let m=u(e);return!t&&m&&(t=(0,s.T)(e)),{source:r,type:t?t.name:void 0,message:(p=t,h=m,g=d,f=e,(null==p?void 0:p.message)&&(null==p?void 0:p.name)?p.message:h?"Empty message":g?`${g} ${(0,n.s)((0,i.a)(f))}`:(0,n.s)((0,i.a)(f))),stack:t?(0,o.Yn)(t):l?a:void 0}}function l({stackTrace:e,originalError:t,handlingStack:r,componentStack:i,startClocks:n,nonErrorPrefix:s,useFallbackStack:o=!0,source:a,handling:d}){var p;let h=c({originalError:t,stackTrace:e,source:a,useFallbackStack:o,nonErrorPrefix:s});return{startClocks:n,handling:d,handlingStack:r,componentStack:i,originalError:t,...h,causes:u(t)?function(e,t){let r=[],i=e.cause;for(;null!=i&&r.length<10;){let e=c({originalError:i,source:t,useFallbackStack:!1});r.push(e),i=u(i)?i.cause:void 0}return r.length?r:void 0}(t,a):void 0,fingerprint:u(p=t)&&"dd_fingerprint"in p?String(p.dd_fingerprint):void 0,context:function(e){if(null!==e&&"object"==typeof e&&"dd_context"in e)return e.dd_context}(t)}}function u(e){return e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)}},2275:(e,t,r)=>{"use strict";r.d(t,{Ww:()=>s,Y9:()=>n,d0:()=>o});var i=r(53476);function n(){let e=(0,i.VZ)().DatadogEventBridge;if(e)return{getCapabilities(){var t;return JSON.parse((null==(t=e.getCapabilities)?void 0:t.call(e))||"[]")},getPrivacyLevel(){var t;return null==(t=e.getPrivacyLevel)?void 0:t.call(e)},getAllowedWebViewHosts:()=>JSON.parse(e.getAllowedWebViewHosts()),send(t,r,i){e.send(JSON.stringify({eventType:t,event:r,view:i?{id:i}:void 0}))}}}function s(e){let t=n();return!!t&&t.getCapabilities().includes(e)}function o(e){var t;void 0===e&&(e=null==(t=(0,i.VZ)().location)?void 0:t.hostname);let r=n();return!!r&&r.getAllowedWebViewHosts().some(t=>e===t||e.endsWith(`.${t}`))}},2374:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(52725),s=r(94452),o=new TextDecoder;class a extends i.ResponseBase{constructor(e){super(),this.type=s.CacheGetResponse.Hit,this.body=e}value(){return o.decode(this.body)}valueString(){return o.decode(this.body)}valueUint8Array(){return this.body}toString(){let e=(0,n.truncateString)(this.valueString());return`${super.toString()}: ${e}`}}t.Hit=a;class c extends i.BaseResponseMiss{constructor(){super(),this.type=s.CacheGetResponse.Miss}value(){}}t.Miss=c;class l extends i.BaseResponseError{constructor(e){super(e),this.type=s.CacheGetResponse.Error}value(){}}t.Error=l},3170:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3312:(e,t)=>{"use strict";var r,i,n,s,o,a,c,l,u,d,p,h,g,f,m,y,_,R,b,S,v,E,C,T,M,w;Object.defineProperty(t,"__esModule",{value:!0}),t.CacheSetIfAbsentOrHashNotEqualResponse=t.CacheSetIfAbsentOrHashEqualResponse=t.CacheSetIfPresentAndHashNotEqualResponse=t.CacheSetIfPresentAndHashEqualResponse=t.CacheSetWithHashResponse=t.CacheGetWithHashResponse=t.CacheDecreaseTtlResponse=t.CacheIncreaseTtlResponse=t.CacheUpdateTtlResponse=t.CacheItemGetTtlResponse=t.CacheItemGetTypeResponse=t.CacheKeysExistResponse=t.CacheKeyExistsResponse=t.CacheSetIfNotExistsResponse=t.CacheSetIfPresentAndNotEqualResponse=t.CacheSetIfAbsentOrEqualResponse=t.CacheSetIfNotEqualResponse=t.CacheSetIfEqualResponse=t.CacheSetIfPresentResponse=t.CacheSetIfAbsentResponse=t.CacheSetBatchResponse=t.CacheGetBatchResponse=t.CacheIncrementResponse=t.CacheDeleteResponse=t.CacheSetResponse=t.CacheGetResponse=void 0,(r=t.CacheGetResponse||(t.CacheGetResponse={})).Hit="Hit",r.Miss="Miss",r.Error="Error",(i=t.CacheSetResponse||(t.CacheSetResponse={})).Success="Success",i.Error="Error",(n=t.CacheDeleteResponse||(t.CacheDeleteResponse={})).Success="Success",n.Error="Error",(s=t.CacheIncrementResponse||(t.CacheIncrementResponse={})).Success="Success",s.Error="Error",(o=t.CacheGetBatchResponse||(t.CacheGetBatchResponse={})).Success="Success",o.Error="Error",(a=t.CacheSetBatchResponse||(t.CacheSetBatchResponse={})).Success="Success",a.Error="Error",(c=t.CacheSetIfAbsentResponse||(t.CacheSetIfAbsentResponse={})).Stored="Stored",c.NotStored="NotStored",c.Error="Error",(l=t.CacheSetIfPresentResponse||(t.CacheSetIfPresentResponse={})).Stored="Stored",l.NotStored="NotStored",l.Error="Error",(u=t.CacheSetIfEqualResponse||(t.CacheSetIfEqualResponse={})).Stored="Stored",u.NotStored="NotStored",u.Error="Error",(d=t.CacheSetIfNotEqualResponse||(t.CacheSetIfNotEqualResponse={})).Stored="Stored",d.NotStored="NotStored",d.Error="Error",(p=t.CacheSetIfAbsentOrEqualResponse||(t.CacheSetIfAbsentOrEqualResponse={})).Stored="Stored",p.NotStored="NotStored",p.Error="Error",(h=t.CacheSetIfPresentAndNotEqualResponse||(t.CacheSetIfPresentAndNotEqualResponse={})).Stored="Stored",h.NotStored="NotStored",h.Error="Error",(g=t.CacheSetIfNotExistsResponse||(t.CacheSetIfNotExistsResponse={})).Stored="Stored",g.NotStored="NotStored",g.Error="Error",(f=t.CacheKeyExistsResponse||(t.CacheKeyExistsResponse={})).Success="Success",f.Error="Error",(m=t.CacheKeysExistResponse||(t.CacheKeysExistResponse={})).Success="Success",m.Error="Error",(y=t.CacheItemGetTypeResponse||(t.CacheItemGetTypeResponse={})).Hit="Hit",y.Miss="Miss",y.Error="Error",(_=t.CacheItemGetTtlResponse||(t.CacheItemGetTtlResponse={})).Hit="Hit",_.Miss="Miss",_.Error="Error",(R=t.CacheUpdateTtlResponse||(t.CacheUpdateTtlResponse={})).Set="Set",R.Miss="Miss",R.Error="Error",(b=t.CacheIncreaseTtlResponse||(t.CacheIncreaseTtlResponse={})).Set="Set",b.NotSet="NotSet",b.Miss="Miss",b.Error="Error",(S=t.CacheDecreaseTtlResponse||(t.CacheDecreaseTtlResponse={}
1)).Set="Set",S.NotSet="NotSet",S.Miss="Miss",S.Error="Error",(v=t.CacheGetWithHashResponse||(t.CacheGetWithHashResponse={})).Hit="Hit",v.Miss="Miss",v.Error="Error",(E=t.CacheSetWithHashResponse||(t.CacheSetWithHashResponse={})).Stored="Stored",E.NotStored="NotStored",E.Error="Error",(C=t.CacheSetIfPresentAndHashEqualResponse||(t.CacheSetIfPresentAndHashEqualResponse={})).Stored="Stored",C.NotStored="NotStored",C.Error="Error",(T=t.CacheSetIfPresentAndHashNotEqualResponse||(t.CacheSetIfPresentAndHashNotEqualResponse={})).Stored="Stored",T.NotStored="NotStored",T.Error="Error",(M=t.CacheSetIfAbsentOrHashEqualResponse||(t.CacheSetIfAbsentOrHashEqualResponse={})).Stored="Stored",M.NotStored="NotStored",M.Error="Error",(w=t.CacheSetIfAbsentOrHashNotEqualResponse||(t.CacheSetIfAbsentOrHashNotEqualResponse={})).Stored="Stored",w.NotStored="NotStored",w.Error="Error"},3590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(52725),s=r(94452),o=new TextDecoder;class a extends i.ResponseBase{constructor(e,t){super(),this.type=s.CacheDictionaryGetFieldResponse.Hit,this.body=e,this.field=t}value(){return this.valueString()}valueString(){return o.decode(this.body)}valueUint8Array(){return this.body}toString(){let e=(0,n.truncateString)(this.valueString());return`${super.toString()}: ${e}`}fieldString(){return o.decode(this.field)}fieldUint8Array(){return this.field}}t.Hit=a;class c extends i.BaseResponseMiss{constructor(e){super(),this.type=s.CacheDictionaryGetFieldResponse.Miss,this.field=e}fieldString(){return o.decode(this.field)}fieldUint8Array(){return this.field}value(){}}t.Miss=c;class l extends i.BaseResponseError{constructor(e,t){super(e),this.type=s.CacheDictionaryGetFieldResponse.Error,this.field=t}fieldString(){return o.decode(this.field)}fieldUint8Array(){return this.field}value(){}}t.Error=l},4368:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asDisposableTokenPermissionsObject=t.isDisposableTokenPermissionsObject=t.asDisposableTokenCachePermission=t.isDisposableTokenCachePermission=t.isCacheItemKeyPrefix=t.isCacheItemKey=void 0;let i=r(12477);function n(e){return"role"in e&&"cache"in e&&"item"in e&&!("topic"in e)&&!("func"in e)}function s(e){return"permissions"in e&&e.permissions.every(e=>n(e)||(0,i.isFunctionPermission)(e))}t.isCacheItemKey=function(e){return e!==i.AllCacheItems&&("string"==typeof e||"key"in e)},t.isCacheItemKeyPrefix=function(e){return e!==i.AllCacheItems&&"string"!=typeof e&&"keyPrefix"in e},t.isDisposableTokenCachePermission=n,t.asDisposableTokenCachePermission=function(e){if(!n(e))throw Error(`permission is not a DisposableTokenCachePermission object: ${JSON.stringify(e)}`);return e},t.isDisposableTokenPermissionsObject=s,t.asDisposableTokenPermissionsObject=function(e){if(!s(e))throw Error(`Token scope is not a DisposableToken permissions object: ${JSON.stringify(e)}`);return e}},5008:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(e){super(),this.type=n.CacheSortedSetGetRankResponse.Hit,this._rank=e}rank(){return this._rank}
1toString(){return`${super.toString()}: rank: ${this.rank()}`}}t.Hit=s;class o extends i.BaseResponseMiss{constructor(){super(),this.type=n.CacheSortedSetGetRankResponse.Miss}rank(){}}t.Miss=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSortedSetGetRankResponse.Error}rank(){}}t.Error=a},6132:(e,t)=>{"use strict";var r,i,n,s;Object.defineProperty(t,"__esModule",{value:!0}),t.ClientResourceExhaustedError=t.UnknownServiceError=t.UnknownError=t.TimeoutError=t.ServerUnavailableError=t.PermissionError=t.StoreItemNotFoundError=t.StoreNotFoundError=t.CacheNotFoundError=t.LimitExceededError=t.InvalidArgumentError=t.InternalServerError=t.FailedPreconditionError=t.ConnectionError=t.CancelledError=t.BadRequestError=t.AuthenticationError=t.StoreAlreadyExistsError=t.CacheAlreadyExistsError=t.SdkError=t.MomentoErrorTransportDetails=t.MomentoGrpcErrorDetails=t.MomentoErrorCode=void 0,(n=r=t.MomentoErrorCode||(t.MomentoErrorCode={})).INVALID_ARGUMENT_ERROR="INVALID_ARGUMENT_ERROR",n.UNKNOWN_SERVICE_ERROR="UNKNOWN_SERVICE_ERROR",n.CACHE_ALREADY_EXISTS_ERROR="ALREADY_EXISTS_ERROR",n.ALREADY_EXISTS_ERROR="ALREADY_EXISTS_ERROR",n.STORE_ALREADY_EXISTS_ERROR="ALREADY_EXISTS_ERROR",n.CACHE_NOT_FOUND_ERROR="NOT_FOUND_ERROR",n.NOT_FOUND_ERROR="NOT_FOUND_ERROR",n.STORE_NOT_FOUND_ERROR="STORE_NOT_FOUND_ERROR",n.STORE_ITEM_NOT_FOUND_ERROR="STORE_ITEM_NOT_FOUND_ERROR",n.INTERNAL_SERVER_ERROR="INTERNAL_SERVER_ERROR",n.PERMISSION_ERROR="PERMISSION_ERROR",n.AUTHENTICATION_ERROR="AUTHENTICATION_ERROR",n.CANCELLED_ERROR="CANCELLED_ERROR",n.CONNECTION_ERROR="CONNECTION_ERROR",n.LIMIT_EXCEEDED_ERROR="LIMIT_EXCEEDED_ERROR",n.BAD_REQUEST_ERROR="BAD_REQUEST_ERROR",n.TIMEOUT_ERROR="TIMEOUT_ERROR",n.SERVER_UNAVAILABLE="SERVER_UNAVAILABLE",n.CLIENT_RESOURCE_EXHAUSTED="CLIENT_RESOURCE_EXHAUSTED",n.FAILED_PRECONDITION_ERROR="FAILED_PRECONDITION_ERROR",n.UNKNOWN_ERROR="UNKNOWN_ERROR";class o{constructor(e,t,r){this.code=e,this.details=t,this.metadata=r}}t.MomentoGrpcErrorDetails=o;class a{constructor(e){this.grpc=e}}t.MomentoErrorTransportDetails=a;class c extends Error{constructor(e,t=0,r,i){super(e);const n=new o(t,e,r);this._transportDetails=new a(n),this.stack=null!=i?i:void 0}wrappedErrorMessage(){return`${this._messageWrapper}: ${this.message}`}errorCode(){return this._errorCode}transportDetails(){return this._transportDetails}}t.SdkError=c;class l extends c{constructor(){super(...arguments),this._errorCode=r.CACHE_ALREADY_EXISTS_ERROR,this._messageWrapper="A cache with the specified name already exists. To resolve this error, either delete the existing cache and make a new one, or use a different name"}}t.CacheAlreadyExistsError=l;class u extends c{constructor(){super(...arguments),this._errorCode=r.STORE_ALREADY_EXISTS_ERROR,this._messageWrapper="A store with the specified name already exists. To resolve this error, either delete the existing store and make a new one, or use a different name"}}t.StoreAlreadyExistsError=u;class d extends c{constructor(){super(...arguments),this._errorCode=r.AUTHENTICATION_ERROR,this._messageWrapper="Invalid authentication credentials to connect to cache service"}}t.AuthenticationError=d;class p extends c{constructor(){super(...arguments),this._errorCode=r.BAD_REQUEST_ERROR,this._messageWrapper="The request was invali
1d; please contact us at [email protected]"}}t.BadRequestError=p;class h extends c{constructor(){super(...arguments),this._errorCode=r.CANCELLED_ERROR,this._messageWrapper="The request was cancelled; please contact us if this was unexpected at [email protected]"}}t.CancelledError=h;class g extends c{constructor(){super(...arguments),this._errorCode=r.CONNECTION_ERROR}}t.ConnectionError=g;class f extends c{constructor(){super(...arguments),this._errorCode=r.FAILED_PRECONDITION_ERROR,this._messageWrapper="System is not in a state required for the operation's execution"}}t.FailedPreconditionError=f;class m extends c{constructor(){super(...arguments),this._errorCode=r.INTERNAL_SERVER_ERROR,this._messageWrapper="An unexpected error occurred while trying to fulfill the request; please contact us at [email protected]"}}t.InternalServerError=m;class y extends c{constructor(){super(...arguments),this._errorCode=r.INVALID_ARGUMENT_ERROR,this._messageWrapper="Invalid argument passed to Momento client"}}t.InvalidArgumentError=y,(s=i||(i={})).TOPIC_SUBSCRIPTIONS_LIMIT_EXCEEDED="Topic subscriptions limit exceeded for this account",s.OPERATIONS_RATE_LIMIT_EXCEEDED="Request rate limit exceeded for this account",s.THROUGHPUT_RATE_LIMIT_EXCEEDED="Bandwidth limit exceeded for this account",s.REQUEST_SIZE_LIMIT_EXCEEDED="Request size limit exceeded for this account",s.ITEM_SIZE_LIMIT_EXCEEDED="Item size limit exceeded for this account",s.ELEMENT_SIZE_LIMIT_EXCEEDED="Element size limit exceeded for this account",s.UNKNOWN_LIMIT_EXCEEDED="Limit exceeded for this account";class _ extends c{constructor(e,t=0,i,n,s){super(e,t,i,n),this._errorCode=r.LIMIT_EXCEEDED_ERROR,this._messageWrapper=this.determineMessageWrapper(),this.errCause=s}determineMessageWrapper(){if(void 0!==this.errCause)switch(this.errCause){case"topic_subscriptions_limit_exceeded":return i.TOPIC_SUBSCRIPTIONS_LIMIT_EXCEEDED;case"operations_rate_limit_exceeded":return i.OPERATIONS_RATE_LIMIT_EXCEEDED;case"throughput_rate_limit_exceeded":return i.THROUGHPUT_RATE_LIMIT_EXCEEDED;case"request_size_limit_exceeded":return i.REQUEST_SIZE_LIMIT_EXCEEDED;case"item_size_limit_exceeded":return i.ITEM_SIZE_LIMIT_EXCEEDED;case"element_size_limit_exceeded":return i.ELEMENT_SIZE_LIMIT_EXCEEDED;default:return i.UNKNOWN_LIMIT_EXCEEDED}if(void 0!==this._transportDetails.grpc.details){let e=this._transportDetails.grpc.details.toLowerCase();if(e.includes("subscribers"))return i.TOPIC_SUBSCRIPTIONS_LIMIT_EXCEEDED;if(e.includes("operations"))return i.OPERATIONS_RATE_LIMIT_EXCEEDED;if(e.includes("throughput"))return i.THROUGHPUT_RATE_LIMIT_EXCEEDED;else if(e.includes("request limit"))return i.REQUEST_SIZE_LIMIT_EXCEEDED;else if(e.includes("item size"))return i.ITEM_SIZE_LIMIT_EXCEEDED;else if(e.includes("element size"))return i.ELEMENT_SIZE_LIMIT_EXCEEDED}return i.UNKNOWN_LIMIT_EXCEEDED}}t.LimitExceededError=_;class R extends c{constructor(){super(...arguments),this._errorCode=r.CACHE_NOT_FOUND_ERROR,this._messageWrapper="A cache with the specified name does not exist. To resolve this error, make sure you have created the cache before attempting to use it"}}t.CacheNotFoundError=R;class b extends c{constructor(){super(...arguments),this._errorCode=r.STORE_NOT_FOUND_ERROR,this._messageWrapper="A store with the specified name does not exist. To resolve this error, make sure you have created the store before attempting to use it"}}t.StoreNotFoundError=b;class S extends c{constructor(){super(...arguments),this._errorCode=r.STORE_ITEM_NOT_FOUND_ERROR,this._messageWrapper="An item with the specified key does not exist"}}t.StoreItemNotFoundError=S;class v extends c{constructor(){super(...arguments),this._errorCode=r.PERMISSION_ERROR,this._messageWrapper="Insufficient permissions to perform an operation on a cache"}}t.PermissionError=v;class E extends c{constructor(){super(...arguments),this._errorCode=r.SERVER_UNAVAILABLE,this._messageWrapper="The server was unable to handle the request; consider retrying. If the error persists, please contact us at [email protected]"}}t.ServerUnavailableError=E;class C extends c{constructor(){super(...arguments),this._errorCode=r.TIMEOUT_ERROR,this._messageWrapper="The client's configured timeout was exceeded;
1 you may need to use a Configuration with more lenient timeouts"}}t.TimeoutError=C;class T extends c{constructor(){super(...arguments),this._errorCode=r.UNKNOWN_ERROR,this._messageWrapper="Unknown error has occurred"}}t.UnknownError=T;class M extends c{constructor(){super(...arguments),this._errorCode=r.UNKNOWN_SERVICE_ERROR,this._messageWrapper="Service returned an unknown response; please contact us at [email protected]"}}t.UnknownServiceError=M;class w extends c{constructor(e){super(null!=e?e:"A client resource is exhausted, such as memory or number of subscriptions (stream connections)."),this._errorCode=r.CLIENT_RESOURCE_EXHAUSTED}}t.ClientResourceExhaustedError=w},6223:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RotateWebhookSecret=t.GetWebhookSecret=t.PutWebhook=t.ListWebhooks=t.DeleteWebhook=void 0,t.DeleteWebhook=r(13122),t.ListWebhooks=r(6314),t.PutWebhook=r(94874),t.GetWebhookSecret=r(55474),t.RotateWebhookSecret=r(57049)},6295:(e,t,r)=>{"use strict";r.d(t,{E:()=>u});var i=r(63189),n=r(58458),s=r(98099),o=r(4415),a=r(23622),c=r(37112),l=r(80674),u=class{#e;#t;#r;#i;#n;#s;#o;#a;constructor(e={}){this.#e=e.queryCache||new n.$,this.#t=e.mutationCache||new s.q,this.#r=e.defaultOptions||{},this.#i=new Map,this.#n=new Map,this.#s=0}mount(){this.#s++,1===this.#s&&(this.#o=o.m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=a.t.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,0===this.#s&&(this.#o?.(),this.#o=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=this.#e.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime((0,i.d2)(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let n=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(n.queryHash),o=s?.state.data,a=(0,i.Zw)(t,o);if(void 0!==a)return this.#e.build(this,n).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return c.jG.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;c.jG.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#e;return c.jG.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t};return Promise.all(c.jG.batch(()=>this.#e.findAll(e).map(e=>e.cancel(r)))).then(i.lQ).catch(i.lQ)}invalidateQueries(e,t={}){return c.jG.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let r={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(c.jG.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(i.lQ)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(i.lQ)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#e.build(this,t);return r.isStaleByTime((0,i.d2)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(i.lQ).catch(i.lQ)}fetchInfiniteQuery(e){return e.behavior=(0,l.PL)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(i.lQ).catch(i.lQ)}ensureInfiniteQueryData(e){return e.behavior=(0,l.PL)(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return a.t.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#i.set((0,i.EN)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#i.values()],r={};return t.forEach(t=>{(0,i.Cp)(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#n.set((0,i.EN)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#n.values()],r={};return t.forEach(t=>{(0,i.Cp)(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,i.F$)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===i.hT&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}}},6314:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(e){super(),this.type=n.ListWebhooksResponse.Success,this.webhooks=e}getWebhooks(){return this.webhooks}toString(){return super.toString()+": "+this.webhooks.map(e=>e.id.webhookName).join(", ")}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.ListWebhooksResponse.Error}}t.Error=o},6952:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.NotStored=t.Stored=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetIfAbsentResponse.Stored}}t.Stored=s;class o extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetIfAbsentResponse.NotStored}}t.NotStored=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSetIfAbsentResponse.Error}}t.Error=a},7197:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.CacheSortedSetRemoveElementsResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSortedSetRemoveElementsResponse.Error}}t.Error=o},7247:(e,t,r)=>{"use strict";r.d(t,{H:()=>s,N:()=>o});var i=r(47111),n=r(54572);function s(e,t,r){return document.readyState===t||"complete"===document.readyState?(r(),{stop:i.l}):(0,n.q)(e,window,"complete"===t?"load":"DOMContentLoaded",r,{once:!0})}function o(e,t){return new Promise(r=>{s(e,t,r)})}},7249:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.GenerateDisposableTokenResponse=void 0,(r=t.GenerateDisposableTokenResponse||(t.GenerateDisposableTokenResponse={})).Success="Success",r.Error="Error"},8446:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(e){super(),this.type=n.CacheSortedSetLengthByScoreResponse.Hit,this._length=e}length(){return this._length}toString(){return`${super.toString()}: length ${this._length}`}}t.Hit=s;class o extends i.BaseResponseMiss{constructor(){super(...arguments),this.type=n.CacheSortedSetLengthByScoreResponse.Miss}length(){}}t.Miss=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSortedSetLengthByScoreResponse.Error}length(){}}t.Error=a},8799:(e,t,r)=>{"use strict";r.d(t,{$A:()=>c,Bb:()=>i,Ih:()=>l,NW:()=>s,R8:()=>a,TC:()=>n,dV:()=>o});let i="datad0g.com",n="dd0g-gov.com",s="datadoghq.com",o="datadoghq.eu",a="ddog-gov.com",c="pci.browser-intake-datadoghq.com",l=["ddsource","dd-api-key","dd-request-id"]},9291:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(94452),s=new TextDecoder;class o extends i.ResponseBase{constructor(e){super(),this._displayListSizeLimit=5,this.type=n.CacheDictionaryFetchResponse.Hit,this.items=e}valueMap(){return this.valueMapStringString()}valueMapStringString(){return this.items.reduce((e,t)=>(e.set(s.decode(t.field),s.decode(t.value)),e),new Map)}valueMapStringUint8Array(){return this.items.reduce((e,t)=>(e.set(s.decode(t.field),t.value),e),new Map)}value(){return this.valueRecordStringString()}valueRecord(){return this.valueRecordStringString()}valueRecordStringString(){return this.items.reduce((e,t)=>(e[s.decode(t.field)]=s.decode(t.value),e),{})}valueRecordStringUint8Array(){return this.items.reduce((e,t)=>(e[s.decode(t.field)]=t.value,e),{})}truncateValueStrings(){let e=Array.from(this.valueMapStringString().entries());if(e.length<=this._displayListSizeLimit){let t=[];return e.forEach(e=>{t.push(`${e[0]}: ${e[1]}`)}),t.join(",")}{let t=e.slice(0,this._displayListSizeLimit),r=[];return t.forEach(e=>{r.push(`${e[0]}: ${e[1]}`)}),r.join(",")}}toString(){return`${super.toString()}: valueDictionaryStringString: ${this.truncateValueStrings()}`}}t.Hit=o;class a extends i.BaseResponseMiss{constructor(){super(...arguments),this.type=n.CacheDictionaryFetchResponse.Miss}value(){}}t.Miss=a;class c extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheDictionaryFetchResponse.Error}value(){}}t.Error=c},9837:(e,t,r)=>{var i=r(64555),n={};i.exportSymbol("Absent",null,n),i.exportSymbol("AbsentOrEqual",null,n),i.exportSymbol("AbsentOrHashEqual",null,n),i.exportSymbol("AbsentOrNotHashEqual",null,n),i.exportSymbol("Equal",null,n),i.exportSymbol("NotEqual",null,n),i.exportSymbol("Present",null,n),i.exportSymbol("PresentAndHashEqual",null,n),i.exportSymbol("PresentAndNotEqual",null,n),i.exportSymbol("PresentAndNotHashEqual",null,n),i.exportSymbol("Unconditional",null,n),i.exportSymbol("_Empty",null,n),i.exportSymbol("_Unbounded",null,n),n.Present=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n.Present,i.Message),i.DEBUG&&!COMPILED&&(n.Present.displayName="proto.Present"),n.PresentAndNotEqual=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n.PresentAndNotEqual,i.Message),i.DEBUG&&!COMPILED&&(n.PresentAndNotEqual.displayName="proto.PresentAndNotEqual"),n.Absent=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n.Absent,i.Message),i.DEBUG&&!COMPILED&&(n.Absent.displayName="proto.Absent"),n.Equal=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n.Equal,i.Message),i.DEBUG&&!COMPILED&&(n.Equal.displayName="proto.Equal"),n.AbsentOrEqual=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n.AbsentOrEqual,i.Message),i.DEBUG&&!COMPILED&&(n.AbsentOrEqual.displayName="proto.AbsentOrEqual"),n.NotEqual=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n.NotEqual,i.Message),i.DEBUG&&!COMPILED&&(n.NotEqual.displayName="proto.NotEqual"),n._Unbounded=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._Unbounded,i.Message),i.DEBUG&&!COMPILED&&(n._Unbounded.displayName="proto._Unbounded"),n._Empty=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._Empty,i.Message),i.DEBUG&&!COMPILED&&(n._Empty.displayName="proto._Empty"),n.PresentAndNotHashEqual=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n.PresentAndNotHashEqual,i.Message),i.DEBUG&&!COMPILED&&(n.PresentAndNotHashEqual.displayName="proto.PresentAndNotHashEqual"),n.PresentAndHashEqual=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n.PresentAndHashEqual,i.Message),i.DEBUG&&!COMPILED&&(n.PresentAndHashEqual.displayName="proto.PresentAndHashEqual"),n.AbsentOrHashEqual=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n.AbsentOrHashEqual,i.Message),i.DEBUG&&!COMPILED&&(n.AbsentOrHashEqual.displayName="proto.AbsentOrHashEqual"),n.AbsentOrNotHashEqual=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n.AbsentOrNotHashEqual,i.Message),i.DEBUG&&!COMPILED&&(n.AbsentOrNotHashEqual.displayName="proto.AbsentOrNotHashEqual"),n.Unconditional=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n.Unconditional,i.Message),i.DEBUG&&!COMPILED&&(n.Unconditional.displayName="proto.Unconditional"),i.Message.GENERATE_TO_OBJ
1ECT&&(n.Present.prototype.toObject=function(e){return n.Present.toObject(e,this)},n.Present.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n.Present.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.Present;return n.Present.deserializeBinaryFromReader(r,t)},n.Present.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n.Present.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.Present.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.Present.serializeBinaryToWriter=function(e,t){},i.Message.GENERATE_TO_OBJECT&&(n.PresentAndNotEqual.prototype.toObject=function(e){return n.PresentAndNotEqual.toObject(e,this)},n.PresentAndNotEqual.toObject=function(e,t){var r={valueToCheck:t.getValueToCheck_asB64()};return e&&(r.$jspbMessageInstance=t),r}),n.PresentAndNotEqual.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.PresentAndNotEqual;return n.PresentAndNotEqual.deserializeBinaryFromReader(r,t)},n.PresentAndNotEqual.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setValueToCheck(r)}else t.skipField();return e},n.PresentAndNotEqual.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.PresentAndNotEqual.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.PresentAndNotEqual.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getValueToCheck_asU8()).length>0&&t.writeBytes(1,r)},n.PresentAndNotEqual.prototype.getValueToCheck=function(){return i.Message.getFieldWithDefault(this,1,"")},n.PresentAndNotEqual.prototype.getValueToCheck_asB64=function(){return i.Message.bytesAsB64(this.getValueToCheck())},n.PresentAndNotEqual.prototype.getValueToCheck_asU8=function(){return i.Message.bytesAsU8(this.getValueToCheck())},n.PresentAndNotEqual.prototype.setValueToCheck=function(e){return i.Message.setProto3BytesField(this,1,e)},i.Message.GENERATE_TO_OBJECT&&(n.Absent.prototype.toObject=function(e){return n.Absent.toObject(e,this)},n.Absent.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n.Absent.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.Absent;return n.Absent.deserializeBinaryFromReader(r,t)},n.Absent.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n.Absent.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.Absent.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.Absent.serializeBinaryToWriter=function(e,t){},i.Message.GENERATE_TO_OBJECT&&(n.Equal.prototype.toObject=function(e){return n.Equal.toObject(e,this)},n.Equal.toObject=function(e,t){var r={valueToCheck:t.getValueToCheck_asB64()};return e&&(r.$jspbMessageInstance=t),r}),n.Equal.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.Equal;return n.Equal.deserializeBinaryFromReader(r,t)},n.Equal.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setValueToCheck(r)}else t.skipField();return e},n.Equal.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.Equal.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.Equal.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getValueToCheck_asU8()).length>0&&t.writeBytes(1,r)},n.Equal.prototype.getValueToCheck=function(){return i.Message.getFieldWithDefault(this,1,"")},n.Equal.prototype.getValueToCheck_asB64=function(){return i.Message.bytesAsB64(this.getValueToCheck())},n.Equal.prototype.getValueToCheck_asU8=function(){return i.Message.bytesAsU8(this.getValueToCheck())},n.Equal.prototype.setValueToCheck=function(e){return i.Message.setProto3BytesField(this,1,e)},i.Message.GENERATE_TO_OBJECT&&(n.AbsentOrEqual.prototype.toObject=function(e){return n.AbsentOrEqual.toObject(e,this)},n.AbsentOrEqual.toObject=function(e,t){var r={valueToCheck:t.getValueToCheck_asB64()};return e&&(r.$jspbMessageInstance=t),r}),n.AbsentOrEqual.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.AbsentOrEqual;return n.AbsentOrEqual.deserializeBinaryFromReader(r,t)},n.AbsentOrEqual.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setValueToCheck(r)}else t.skipField();return e},n.AbsentOrEqual.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.AbsentOrEqual.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.AbsentOrEqual.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getValueToCheck_asU8()).length>0&&t.writeBytes(1,r)},n.AbsentOrEqual.prototype.getValueToCheck=function(){return i.Message.getFieldWithDefault(this,1,"")},n.AbsentOrEqual.prototype.getValueToCheck_asB64=function(){return i.Message.bytesAsB64(this.getValueToCheck())},n.AbsentOrEqual.prototype.getValueToCheck_asU8=function(){return i.Message.bytesAsU8(this.getValueToCheck())},n.AbsentOrEqual.prototype.setValueToCheck=function(e){return i.Message.setProto3BytesField(this,1,e)}
1,i.Message.GENERATE_TO_OBJECT&&(n.NotEqual.prototype.toObject=function(e){return n.NotEqual.toObject(e,this)},n.NotEqual.toObject=function(e,t){var r={valueToCheck:t.getValueToCheck_asB64()};return e&&(r.$jspbMessageInstance=t),r}),n.NotEqual.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.NotEqual;return n.NotEqual.deserializeBinaryFromReader(r,t)},n.NotEqual.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setValueToCheck(r)}else t.skipField();return e},n.NotEqual.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.NotEqual.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.NotEqual.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getValueToCheck_asU8()).length>0&&t.writeBytes(1,r)},n.NotEqual.prototype.getValueToCheck=function(){return i.Message.getFieldWithDefault(this,1,"")},n.NotEqual.prototype.getValueToCheck_asB64=function(){return i.Message.bytesAsB64(this.getValueToCheck())},n.NotEqual.prototype.getValueToCheck_asU8=function(){return i.Message.bytesAsU8(this.getValueToCheck())},n.NotEqual.prototype.setValueToCheck=function(e){return i.Message.setProto3BytesField(this,1,e)},i.Message.GENERATE_TO_OBJECT&&(n._Unbounded.prototype.toObject=function(e){return n._Unbounded.toObject(e,this)},n._Unbounded.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n._Unbounded.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._Unbounded;return n._Unbounded.deserializeBinaryFromReader(r,t)},n._Unbounded.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n._Unbounded.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._Unbounded.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._Unbounded.serializeBinaryToWriter=function(e,t){},i.Message.GENERATE_TO_OBJECT&&(n._Empty.prototype.toObject=function(e){return n._Empty.toObject(e,this)},n._Empty.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n._Empty.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._Empty;return n._Empty.deserializeBinaryFromReader(r,t)},n._Empty.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n._Empty.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._Empty.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._Empty.serializeBinaryToWriter=function(e,t){},i.Message.GENERATE_TO_OBJECT&&(n.PresentAndNotHashEqual.prototype.toObject=function(e){return n.PresentAndNotHashEqual.toObject(e,this)},n.PresentAndNotHashEqual.toObject=function(e,t){var r={hashToCheck:t.getHashToCheck_asB64()};return e&&(r.$jspbMessageInstance=t),r}),n.PresentAndNotHashEqual.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.PresentAndNotHashEqual;return n.PresentAndNotHashEqual.deserializeBinaryFromReader(r,t)},n.PresentAndNotHashEqual.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setHashToCheck(r)}else t.skipField();return e},n.PresentAndNotHashEqual.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.PresentAndNotHashEqual.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.PresentAndNotHashEqual.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getHashToCheck_asU8()).length>0&&t.writeBytes(1,r)},n.PresentAndNotHashEqual.prototype.getHashToCheck=function(){return i.Message.getFieldWithDefault(this,1,"")},n.PresentAndNotHashEqual.prototype.getHashToCheck_asB64=function(){return i.Message.bytesAsB64(this.getHashToCheck())},n.PresentAndNotHashEqual.prototype.getHashToCheck_asU8=function(){return i.Message.bytesAsU8(this.getHashToCheck())},n.PresentAndNotHashEqual.prototype.setHashToCheck=function(e){return i.Message.setProto3BytesField(this,1,e)},i.Message.GENERATE_TO_OBJECT&&(n.PresentAndHashEqual.prototype.toObject=function(e){return n.PresentAndHashEqual.toObject(e,this)},n.PresentAndHashEqual.toObject=function(e,t){var r={hashToCheck:t.getHashToCheck_asB64()};return e&&(r.$jspbMessageInstance=t),r}),n.PresentAndHashEqual.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.PresentAndHashEqual;return n.PresentAndHashEqual.deserializeBinaryFromReader(r,t)},n.PresentAndHashEqual.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setHashToCheck(r)}else t.skipField();return e},n.PresentAndHashEqual.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.PresentAndHashEqual.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.PresentAndHashEqual.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getHashToCheck_asU8()).length>0&&t.writeBytes(1,r)},n.PresentAndHashEqual.prototype.getHashToCheck=function(){return i.Message.getFieldWithDefault(this,1,"")},n.PresentAndHashEqual.prototype.getHashToCheck_asB64=function(){return i.Message.bytesAsB64(this.getHashToCheck())},n.PresentAndHashEqual.prototype.getHashToCheck_asU8=function(){return i.Message.bytesAsU8(this.getHashToCheck())},n.PresentAndHashEqual.prototype.setHashToCheck=function(e){return i.Message.setProto3BytesField(this,1,e)}
1,i.Message.GENERATE_TO_OBJECT&&(n.AbsentOrHashEqual.prototype.toObject=function(e){return n.AbsentOrHashEqual.toObject(e,this)},n.AbsentOrHashEqual.toObject=function(e,t){var r={hashToCheck:t.getHashToCheck_asB64()};return e&&(r.$jspbMessageInstance=t),r}),n.AbsentOrHashEqual.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.AbsentOrHashEqual;return n.AbsentOrHashEqual.deserializeBinaryFromReader(r,t)},n.AbsentOrHashEqual.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setHashToCheck(r)}else t.skipField();return e},n.AbsentOrHashEqual.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.AbsentOrHashEqual.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.AbsentOrHashEqual.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getHashToCheck_asU8()).length>0&&t.writeBytes(1,r)},n.AbsentOrHashEqual.prototype.getHashToCheck=function(){return i.Message.getFieldWithDefault(this,1,"")},n.AbsentOrHashEqual.prototype.getHashToCheck_asB64=function(){return i.Message.bytesAsB64(this.getHashToCheck())},n.AbsentOrHashEqual.prototype.getHashToCheck_asU8=function(){return i.Message.bytesAsU8(this.getHashToCheck())},n.AbsentOrHashEqual.prototype.setHashToCheck=function(e){return i.Message.setProto3BytesField(this,1,e)},i.Message.GENERATE_TO_OBJECT&&(n.AbsentOrNotHashEqual.prototype.toObject=function(e){return n.AbsentOrNotHashEqual.toObject(e,this)},n.AbsentOrNotHashEqual.toObject=function(e,t){var r={hashToCheck:t.getHashToCheck_asB64()};return e&&(r.$jspbMessageInstance=t),r}),n.AbsentOrNotHashEqual.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.AbsentOrNotHashEqual;return n.AbsentOrNotHashEqual.deserializeBinaryFromReader(r,t)},n.AbsentOrNotHashEqual.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readBytes();e.setHashToCheck(r)}else t.skipField();return e},n.AbsentOrNotHashEqual.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.AbsentOrNotHashEqual.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.AbsentOrNotHashEqual.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getHashToCheck_asU8()).length>0&&t.writeBytes(1,r)},n.AbsentOrNotHashEqual.prototype.getHashToCheck=function(){return i.Message.getFieldWithDefault(this,1,"")},n.AbsentOrNotHashEqual.prototype.getHashToCheck_asB64=function(){return i.Message.bytesAsB64(this.getHashToCheck())},n.AbsentOrNotHashEqual.prototype.getHashToCheck_asU8=function(){return i.Message.bytesAsU8(this.getHashToCheck())},n.AbsentOrNotHashEqual.prototype.setHashToCheck=function(e){return i.Message.setProto3BytesField(this,1,e)},i.Message.GENERATE_TO_OBJECT&&(n.Unconditional.prototype.toObject=function(e){return n.Unconditional.toObject(e,this)},n.Unconditional.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n.Unconditional.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.Unconditional;return n.Unconditional.deserializeBinaryFromReader(r,t)},n.Unconditional.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n.Unconditional.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.Unconditional.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.Unconditional.serializeBinaryToWriter=function(e,t){},i.object.extend(t,n)},11102:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionTtl=void 0;let i=r(52725),n=r(78522);class s{constructor(e=null,t=!0){null!==e&&(0,i.validateTtlSeconds)(e),this._refreshTtl=t,this._ttlSeconds=e}ttlSeconds(){return this._ttlSeconds}ttlMilliseconds(){return null===this._ttlSeconds?null:(0,n.secondsToMilliseconds)(this._ttlSeconds)}refreshTtl(){return this._refreshTtl}static fromCacheTtl(){return new s(null,!0)}static of(e){return new s(e,!0)}static refreshTtlIfProvided(e=null){return new s(e,null!==e)}withRefreshTtlOnUpdates(){return new s(this._ttlSeconds,!0)}withNoRefreshTtlOnUpdates(){return new s(this._ttlSeconds,!1)}toString(){return`ttl: ${this._ttlSeconds||"null"}, refreshTtl: ${this._refreshTtl?"true":"false"}`}}t.CollectionTtl=s},11205:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);
1(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(6132),t)},11219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebhookClient=void 0;let i=r(79986),n=r(84055),s=r(83145),o=r(52725),a=r(89966),c=r(99851),l=r(18935);class u{constructor(e){this.configuration=e.configuration,this.credentialProvider=e.credentialProvider,this.logger=this.configuration.getLoggerFactory().getLogger(this),this.cacheServiceErrorMapper=new s.CacheServiceErrorMapper(e.configuration.getThrowOnErrors()),this.logger.debug(`Creating webhook client using endpoint: '${(0,a.getWebControlEndpoint)(this.credentialProvider)}'`),this.webhookClient=new i.WebhookClient((0,a.getWebControlEndpoint)(e.credentialProvider),null,{}),this.clientMetadataProvider=new c.ClientMetadataProvider({authToken:e.credentialProvider.getAuthToken(),clientType:"webhook"})}async deleteWebhook(e){try{(0,o.validateCacheName)(e.cacheName)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new n.DeleteWebhook.Error(e))}let t=new l._DeleteWebhookRequest,r=new l._WebhookId;return r.setWebhookName(e.webhookName),r.setCacheName(e.cacheName),t.setWebhookId(r),t.setWebhookId(r),this.logger.debug('issuing "DeleteWebhook" request'),await new Promise((e,r)=>{this.webhookClient.deleteWebhook(t,this.clientMetadataProvider.createClientMetadata(),(t,i)=>{t?this.cacheServiceErrorMapper.resolveOrRejectError({err:t,errorResponseFactoryFn:e=>new n.DeleteWebhook.Error(e),resolveFn:e,rejectFn:r}):e(new n.DeleteWebhook.Success)})})}async listWebhooks(e){try{(0,o.validateCacheName)(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new n.ListWebhooks.Error(e))}let t=new l._ListWebhookRequest;return t.setCacheName(e),this.logger.debug('issuing "ListWebhooks" request'),await new Promise((e,r)=>{this.webhookClient.listWebhooks(t,this.clientMetadataProvider.createClientMetadata(),(t,i)=>{if(t||!i)this.cacheServiceErrorMapper.resolveOrRejectError({err:t,errorResponseFactoryFn:e=>new n.ListWebhooks.Error(e),resolveFn:e,rejectFn:r});else{let t=i.getWebhookList().map(e=>{var t,r,i,s,o,a,c;return{id:{cacheName:null!=(r=null==(t=e.getWebhookId())?void 0:t.getCacheName())?r:"",webhookName:null!=(s=null==(i=e.getWebhookId())?void 0:i.getWebhookName())?s:""},topicName:null!=(o=e.getTopicName())?o:"",destination:new n.PostUrlWebhookDestination(null!=(c=null==(a=e.getDestination())?void 0:a.getPostUrl())?c:"")}});e(new n.ListWebhooks.Success(t))}})})}async putWebhook(e){try{(0,o.validateCacheName)(e.id.cacheName),(0,o.validateTopicName)(e.topicName),(0,o.validateWebhookName)(e.id.webhookName)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new n.PutWebhook.Error(e))}let t=new l._PutWebhookRequest,r=new l._Webhook,i=new l._WebhookId;i.setWebhookName(e.id.webhookName),i.setCacheName(e.id.cacheName),r.setWebhookId(i),r.setTopicName(e.topicName);let s=new l._WebhookDestination;return e.destination.getType()===n.WebhookDestinationType.PostUrl&&s.setPostUrl(e.destination.url()),r.setDestination(s),t.setWebhook(r),this.logger.debug('issuing "PutWebhook" request'),await new Promise((e,r)=>{this.webhookClient.putWebhook(t,this.clientMetadataProvider.createClientMetadata(),(t,i)=>{t||!i?this.cacheServiceErrorMapper.resolveOrRejectError({err:t,errorResponseFactoryFn:e=>new n.PutWebhook.Error(e),resolveFn:e,rejectFn:r}):e(new n.PutWebhook.Success(i.getSecretString()))})})}async getWebhookSecret(e){try{(0,o.validateCacheName)(e.cacheName),(0,o.validateWebhookName)(e.webhookName)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new n.GetWebhookSecret.Error(e))}let t=new l._GetWebhookSecretRequest;return t.setCacheName(e.cacheName),t.setWebhookName(e.webhookName),this.logger.debug('issuing "GetWebhookSecret" request'),await new Promise((e,r)=>{this.webhookClient.getWebhookSecret(t,this.clientMetadataProvider.createClientMetadata(),(t,i)=>{t||!i?this.cacheServiceErrorMapper.resolveOrRejectError({err:t,errorResponseFactoryFn:e=>new n.GetWebhookSecret.Error(e),resolveFn:e,rejectFn:r}):e(new n.GetWebhookSecret.Success({secret:i.getSecretString(),webhookName:i.getWebhookName(),cacheName:i.getCacheName()}
1))})})}async rotateWebhookSecret(e){try{(0,o.validateCacheName)(e.cacheName),(0,o.validateWebhookName)(e.webhookName)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new n.RotateWebhookSecret.Error(e))}let t=new l._RotateWebhookSecretRequest,r=new l._WebhookId;return r.setWebhookName(e.webhookName),r.setCacheName(e.cacheName),t.setWebhookId(r),this.logger.debug('issuing "RotateWebhookSecret" request'),await new Promise((r,i)=>{this.webhookClient.rotateWebhookSecret(t,this.clientMetadataProvider.createClientMetadata(),(t,s)=>{t||!s?this.cacheServiceErrorMapper.resolveOrRejectError({err:t,errorResponseFactoryFn:e=>new n.RotateWebhookSecret.Error(e),resolveFn:r,rejectFn:i}):r(new n.RotateWebhookSecret.Success({secret:s.getSecretString(),webhookName:e.webhookName,cacheName:e.cacheName}))})})}}t.WebhookClient=u},12376:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Set=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheUpdateTtlResponse.Set}}t.Set=s;class o extends i.BaseResponseMiss{constructor(){super(...arguments),this.type=n.CacheUpdateTtlResponse.Miss}}t.Miss=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheUpdateTtlResponse.Error}}t.Error=a},12463:(e,t)=>{"use strict";var r,i,n,s;Object.defineProperty(t,"__esModule",{value:!0}),t.ListCachesResponse=t.FlushCacheResponse=t.DeleteCacheResponse=t.CreateCacheResponse=void 0,(r=t.CreateCacheResponse||(t.CreateCacheResponse={})).Success="Success",r.AlreadyExists="AlreadyExists",r.Error="Error",(i=t.DeleteCacheResponse||(t.DeleteCacheResponse={})).Success="Success",i.Error="Error",(n=t.FlushCacheResponse||(t.FlushCacheResponse={})).Success="Success",n.Error="Error",(s=t.ListCachesResponse||(t.ListCachesResponse={})).Success="Success",s.Error="Error"},12477:(e,t)=>{"use strict";var r,i,n,s,o,a;function c(e){return"role"in e&&"cache"in e&&!("topic"in e)&&!("func"in e)}function l(e){return"role"in e&&"cache"in e&&"topic"in e&&!("func"in e)}function u(e){return"role"in e&&"cache"in e&&"func"in e&&!("topic"in e)}function d(e){return"permissions"in e&&e.permissions.every(e=>c(e)||l(e)||u(e))}Object.defineProperty(t,"__esModule",{value:!0}),t.PredefinedScope=t.asPermissionsObject=t.isPermissionsObject=t.AllDataReadWrite=t.asFunctionPermission=t.isFunctionPermission=t.isFunctionNamePrefix=t.isFunction=t.FunctionRole=t.asTopicPermission=t.isTopicPermission=t.isTopicName=t.TopicRole=t.asCachePermission=t.isCachePermission=t.isCacheName=t.AllFunctions=t.AllCacheItems=t.AllTopics=t.AllCaches=t.CacheRole=void 0,(s=r=t.CacheRole||(t.CacheRole={})).ReadWrite="readwrite",s.ReadOnly="readonly",s.WriteOnly="writeonly",t.AllCaches=Symbol(),t.AllTopics=Symbol(),t.AllCacheItems=Symbol(),t.AllFunctions=Symbol(),t.isCacheName=function(e){return e!==t.AllCaches&&"name"in e},t.isCachePermission=c,t.asCachePermission=function(e){if(!c(e))throw Error(`permission is not a CachePermission object: ${JSON.stringify(e)}`);return e},(o=i=t.TopicRole||(t.TopicRole={})).PublishSubscribe="publishsubscribe",o.SubscribeOnly="subscribeonly",o.PublishOnly="publishonly",t.isTopicName=function(e){return e!==t.AllTopics&&"name"in e},t.isTopicPermission=l,t.asTopicPermission=function(e){if(!l(e))throw Error(`permission is not a TopicPermission object: ${JSON.stringify(e)}`);return e},(a=n=t.FunctionRole||(t.FunctionRole={})).FunctionPermitNone="functionpermitnone",a.FunctionInvoke="functioninvoke",t.isFunction=function(e){return e!==t.AllFunctions&&"name"in e},t.isFunctionNamePrefix=function(e){return e!==t.AllFunctions&&"string"!=typeof e&&"namePrefix"in e},t.isFunctionPermission=u,t.asFunctionPermission=function(e){if(!u(e))throw Error(`permission is not a FunctionPermission object: ${JSON.stringify(e)}`);return e},t.AllDataReadWrite={permissions:[{role:r.ReadWrite,cache:t.AllCaches},{role:i.PublishSubscribe,cache:t.AllCaches,topic:t.AllTopics},{role:n.FunctionInvoke,cache:t.AllCaches,func:t.AllFunctions}]},t.isPermissionsObject=d,t.asPermissionsObject=function(e){if(!d(e))throw Error(`Token scope is not a Permissions object: ${JSON.stringify(e)}`);return e};class p{}t.PredefinedScope=p},12658:(e,t,r)=>{var i=r(64555),n={};i.exportSymbol("AccountManagementPermissions",null,n),i.exportSymbol("All",null,n),i.exportSymbol("AuthManagementPermissions",null,n),i.exportSymbol("CacheAPIPermissions",null,n),i.exportSymbol("CacheItemSelector",null,n),i.exportSymbol("CacheItemSelector.KindCase",null,n),i.exportSymbol("CacheSelector",null,n),i.exportSymbol("CacheSelector.KindCase",null,n),i.exportSymbol("ExplicitPermissionSet",null,n),i.exportSymbol("FunctionAPIPermissions",null,n),i.exportSymbol("FunctionSelector",null,n),i.exportSymbol("FunctionSelector.KindCase",null,n),i.exportSymbol("PermissionSet",null,n),i.exportSymbol("PermissionSet.KindCase",null,n),i.exportSymbol("ResourceManagementPermissions",null,n),i.exportSymbol("Rule",null,n),i.exportSymbol("Rule.AccountManagementRule",null,n),i.exportSymbol("Rule.AuthManagementRule",null,n),i.exportSymbol("Rule.AuthManagementRule.AuthItemsCase",null,n),i.exportSymbol("Rule.CacheRule",null,n),i.exportSymbol("Rule.CacheRule.CacheCase",null,n),i.exportSymbol("Rule.CacheRule.CacheItemCase",null,n),i.exportSymbol("Rule.FunctionRule",null,n),i.exportSymbol("Rule.FunctionRule.CacheCase",null,n),i.exportSymbol("Rule.FunctionRule.FunctionCase",null,n),i.exportSymbol("Rule.KindCase",null,n),i.exportSymbol("Rule.ResourceManagementRule",null,n),i.exportSymbol("Rule.ResourceManagementRule.ResourcesCase",null,n),i.exportSymbol("Rule.TopicRule",null,n),i.exportSymbol("Rule.TopicRule.CacheCase",null,n),i.exportSymbol("Rule.TopicRule.TopicCase",null,n),i.exportSymbol("SuperUserSetPermissionSet",null,n),i.exportSymbol("TopicAPIPermissions",null,n),i.exportSymbol("TopicSelector",null,n),i.exportSymbol("TopicSelector.KindCase",null,n),n.All=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n.All,i.Message),i.DEBUG&&!COMPILED&&(n.All.displayName="proto.All"),n.CacheSelector=function(e){i.Message.initialize(this,e,0,-1,null,n.CacheSelector.oneofGroups_)},i.inherits(n.CacheSelector,i.Message),i.DEBUG&&!COMPILED&&(n.CacheSelector.displayName="proto.CacheSelector"),n.CacheItemSelector=function(e){i.Message.initialize(this,e,0,-1,null,n.CacheItemSelector.oneofGroups_)},i.inherits(n.CacheItemSelector,i.Message),i.DEBUG&&!COMPILED&&(n.CacheItemSelector.displayName="proto.CacheItemSelector"),n.TopicSelector=function(e){i.Message.initialize(this,e,0,-1,null,n.TopicSelector.oneofGroups_)},i.inherits(n.TopicSelector,i.Message),i.DEBUG&&!COMPILED&&(n.TopicSelector.displayName="proto.TopicSelector"),n.FunctionSelector=function(e){i.Message.initialize(this,e,0,-1,null,n.FunctionSelector.oneofGroups_)},i.inherits(n.FunctionSelector,i.Message),i.DEBUG&&!COMPILED&&(n.FunctionSelector.displayName="proto.FunctionSelector"),n.PermissionSet=function(e){i.Message.initialize(this,e,0,-1,null,n.PermissionSet.oneofGroups_)},i.inherits(n.PermissionSet,i.Message),i.DEBUG&&!COMPILED&&(n.PermissionSet.displayName="proto.PermissionSet"),n.ExplicitPermissionSet=function(e){i.Message.initialize(this,e,0,-1,n.ExplicitPermissionSet.repeatedFields_,null)},i.inherits(n.ExplicitPermissionSet,i.Message),i.DEBUG&&!COMPILED&&(n.ExplicitPermissionSet.displayName="proto.ExplicitPermissionSet"),n.Rule=function(e){i.Message.initialize(this,e,0,-1,null,n.Rule.oneofGroups_)},i.inherits(n.Rule,i.Message),i.DEBUG&&!COMPILED&&(n.Rule.displayName="proto.Rule"),n.Rule.AccountManagementRule=function(e){i.Message.initialize(this,e,0,-1,n.Rule.AccountManagementRule.repeatedFields_,null)},i.inherits(n.Rule.AccountManagementRule,i.Message),i.DEBUG&&!COMPILED&&(n.Rule.AccountManagementRule.displayName="proto.Rule.AccountManagementRule"),n.Rule.AuthManagementRule=function(e){i.Message.initialize(this,e,0,-1,n.Rule.AuthManagementRule.repeatedFields_,n.Rule.AuthManagementRule.oneofGroups_)},i.inherits(n.Rule.AuthManagementRule,i.Message),i.DEBUG&&!COMPILED&&(n.Rule.AuthManagementRule.displayName="proto.Rule.AuthManagementRule"),n.Rule.ResourceManagementRule=function(e){i.Message.initialize(this,e,0,-1,n.Rule.ResourceManagementRule.repeatedFields_,n.Rule.ResourceManagementRule.oneofGroups_)},i.inherits(n.Rule.ResourceManagementRule,i.Message),i.DEBUG&&!COMPILED&&(n.Rule.ResourceManagementRule.displayName="proto.Rule.ResourceManagementRule"),n.Rule.CacheRule=function(e){i.Message.initialize(this,e,0,-1,n.Rule.CacheRule.repeatedFields_,n.Rule.CacheRule.oneofGroups_)},i.inherits(n.Rule.CacheRule,i.Message),i.DEBUG&&!COMPILED&&(n.Rule.CacheRule.displayName="proto.Rule.CacheRule"),n.Rule.TopicRule=function(e){i.Message.initialize(this,e,0,-1,n.Rule.TopicRule.repeatedFields_,n.Rule.TopicRule.oneofGroups_)},i.inherits(n.Rule.TopicRule,i.Message),i.DEBUG&&!COMPILED&&(n.Rule.TopicRule.displayName="proto.Rule.TopicRule"),n.Rule.FunctionRule=function(e){i.Message.initialize(this,e,0,-1,n.Rule.FunctionRule.repeatedFields_,n.Rule.FunctionRule.oneofGroups_)},i.inherits(n.Rule.FunctionRule,i.Message),i.DEBUG&&!COMPILED&&(n.Rule.FunctionRule.displayName="proto.Rule.FunctionRule"),i.Message.GENERATE_TO_OBJ
1ECT&&(n.All.prototype.toObject=function(e){return n.All.toObject(e,this)},n.All.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n.All.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.All;return n.All.deserializeBinaryFromReader(r,t)},n.All.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n.All.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.All.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.All.serializeBinaryToWriter=function(e,t){},n.CacheSelector.oneofGroups_=[[1]],n.CacheSelector.KindCase={KIND_NOT_SET:0,CACHE_NAME:1},n.CacheSelector.prototype.getKindCase=function(){return i.Message.computeOneofCase(this,n.CacheSelector.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(n.CacheSelector.prototype.toObject=function(e){return n.CacheSelector.toObject(e,this)},n.CacheSelector.toObject=function(e,t){var r={cacheName:i.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),n.CacheSelector.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.CacheSelector;return n.CacheSelector.deserializeBinaryFromReader(r,t)},n.CacheSelector.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setCacheName(r)}else t.skipField();return e},n.CacheSelector.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.CacheSelector.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.CacheSelector.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=i.Message.getField(e,1))&&t.writeString(1,r)},n.CacheSelector.prototype.getCacheName=function(){return i.Message.getFieldWithDefault(this,1,"")},n.CacheSelector.prototype.setCacheName=function(e){return i.Message.setOneofField(this,1,n.CacheSelector.oneofGroups_[0],e)},n.CacheSelector.prototype.clearCacheName=function(){return i.Message.setOneofField(this,1,n.CacheSelector.oneofGroups_[0],void 0)},n.CacheSelector.prototype.hasCacheName=function(){return null!=i.Message.getField(this,1)},n.CacheItemSelector.oneofGroups_=[[1,2]],n.CacheItemSelector.KindCase={KIND_NOT_SET:0,KEY:1,KEY_PREFIX:2},n.CacheItemSelector.prototype.getKindCase=function(){return i.Message.computeOneofCase(this,n.CacheItemSelector.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(n.CacheItemSelector.prototype.toObject=function(e){return n.CacheItemSelector.toObject(e,this)},n.CacheItemSelector.toObject=function(e,t){var r={key:t.getKey_asB64(),keyPrefix:t.getKeyPrefix_asB64()};return e&&(r.$jspbMessageInstance=t),r}),n.CacheItemSelector.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.CacheItemSelector;return n.CacheItemSelector.deserializeBinaryFromReader(r,t)},n.CacheItemSelector.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setKey(r);break;case 2:var r=t.readBytes();e.setKeyPrefix(r);break;default:t.skipField()}return e},n.CacheItemSelector.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.CacheItemSelector.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.CacheItemSelector.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=i.Message.getField(e,1))&&t.writeBytes(1,r),null!=(r=i.Message.getField(e,2))&&t.writeBytes(2,r)},n.CacheItemSelector.prototype.getKey=function(){return i.Message.getFieldWithDefault(this,1,"")},n.CacheItemSelector.prototype.getKey_asB64=function(){return i.Message.bytesAsB64(this.getKey())},n.CacheItemSelector.prototype.getKey_asU8=function(){return i.Message.bytesAsU8(this.getKey())},n.CacheItemSelector.prototype.setKey=function(e){return i.Message.setOneofField(this,1,n.CacheItemSelector.oneofGroups_[0],e)},n.CacheItemSelector.prototype.clearKey=function(){return i.Message.setOneofField(this,1,n.CacheItemSelector.oneofGroups_[0],void 0)},n.CacheItemSelector.prototype.hasKey=function(){return null!=i.Message.getField(this,1)},n.CacheItemSelector.prototype.getKeyPrefix=function(){return i.Message.getFieldWithDefault(this,2,"")},n.CacheItemSelector.prototype.getKeyPrefix_asB64=function(){return i.Message.bytesAsB64(this.getKeyPrefix())},n.CacheItemSelector.prototype.getKeyPrefix_asU8=function(){return i.Message.bytesAsU8(this.getKeyPrefix())},n.CacheItemSelector.prototype.setKeyPrefix=function(e){return i.Message.setOneofField(this,2,n.CacheItemSelector.oneofGroups_[0],e)},n.CacheItemSelector.prototype.clearKeyPrefix=function(){return i.Message.setOneofField(this,2,n.CacheItemSelector.oneofGroups_[0],void 0)},n.CacheItemSelector.prototype.hasKeyPrefix=function(){return null!=i.Message.getField(this,2)},n.TopicSelector.oneofGroups_=[[1,2]],n.TopicSelector.KindCase={KIND_NOT_SET:0,TOPIC_NAME:1,TOPIC_NAME_PREFIX:2},n.TopicSelector.prototype.getKindCase=function(){return i.Message.computeOneofCase(this,n.TopicSelector.oneofGroups_[0])}
1,i.Message.GENERATE_TO_OBJECT&&(n.TopicSelector.prototype.toObject=function(e){return n.TopicSelector.toObject(e,this)},n.TopicSelector.toObject=function(e,t){var r={topicName:i.Message.getFieldWithDefault(t,1,""),topicNamePrefix:i.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),n.TopicSelector.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.TopicSelector;return n.TopicSelector.deserializeBinaryFromReader(r,t)},n.TopicSelector.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setTopicName(r);break;case 2:var r=t.readString();e.setTopicNamePrefix(r);break;default:t.skipField()}return e},n.TopicSelector.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.TopicSelector.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.TopicSelector.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=i.Message.getField(e,1))&&t.writeString(1,r),null!=(r=i.Message.getField(e,2))&&t.writeString(2,r)},n.TopicSelector.prototype.getTopicName=function(){return i.Message.getFieldWithDefault(this,1,"")},n.TopicSelector.prototype.setTopicName=function(e){return i.Message.setOneofField(this,1,n.TopicSelector.oneofGroups_[0],e)},n.TopicSelector.prototype.clearTopicName=function(){return i.Message.setOneofField(this,1,n.TopicSelector.oneofGroups_[0],void 0)},n.TopicSelector.prototype.hasTopicName=function(){return null!=i.Message.getField(this,1)},n.TopicSelector.prototype.getTopicNamePrefix=function(){return i.Message.getFieldWithDefault(this,2,"")},n.TopicSelector.prototype.setTopicNamePrefix=function(e){return i.Message.setOneofField(this,2,n.TopicSelector.oneofGroups_[0],e)},n.TopicSelector.prototype.clearTopicNamePrefix=function(){return i.Message.setOneofField(this,2,n.TopicSelector.oneofGroups_[0],void 0)},n.TopicSelector.prototype.hasTopicNamePrefix=function(){return null!=i.Message.getField(this,2)},n.FunctionSelector.oneofGroups_=[[1,2]],n.FunctionSelector.KindCase={KIND_NOT_SET:0,FUNCTION_NAME:1,FUNCTION_PREFIX:2},n.FunctionSelector.prototype.getKindCase=function(){return i.Message.computeOneofCase(this,n.FunctionSelector.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(n.FunctionSelector.prototype.toObject=function(e){return n.FunctionSelector.toObject(e,this)},n.FunctionSelector.toObject=function(e,t){var r={functionName:i.Message.getFieldWithDefault(t,1,""),functionPrefix:i.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),n.FunctionSelector.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.FunctionSelector;return n.FunctionSelector.deserializeBinaryFromReader(r,t)},n.FunctionSelector.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setFunctionName(r);break;case 2:var r=t.readString();e.setFunctionPrefix(r);break;default:t.skipField()}return e},n.FunctionSelector.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.FunctionSelector.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.FunctionSelector.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=i.Message.getField(e,1))&&t.writeString(1,r),null!=(r=i.Message.getField(e,2))&&t.writeString(2,r)},n.FunctionSelector.prototype.getFunctionName=function(){return i.Message.getFieldWithDefault(this,1,"")},n.FunctionSelector.prototype.setFunctionName=function(e){return i.Message.setOneofField(this,1,n.FunctionSelector.oneofGroups_[0],e)},n.FunctionSelector.prototype.clearFunctionName=function(){return i.Message.setOneofField(this,1,n.FunctionSelector.oneofGroups_[0],void 0)},n.FunctionSelector.prototype.hasFunctionName=function(){return null!=i.Message.getField(this,1)},n.FunctionSelector.prototype.getFunctionPrefix=function(){return i.Message.getFieldWithDefault(this,2,"")},n.FunctionSelector.prototype.setFunctionPrefix=function(e){return i.Message.setOneofField(this,2,n.FunctionSelector.oneofGroups_[0],e)},n.FunctionSelector.prototype.clearFunctionPrefix=function(){return i.Message.setOneofField(this,2,n.FunctionSelector.oneofGroups_[0],void 0)},n.FunctionSelector.prototype.hasFunctionPrefix=function(){return null!=i.Message.getField(this,2)},n.PermissionSet.oneofGroups_=[[1,2]],n.PermissionSet.KindCase={KIND_NOT_SET:0,SUPER_USER:1,EXPLICIT:2},n.PermissionSet.prototype.getKindCase=function(){return i.Message.computeOneofCase(this,n.PermissionSet.oneofGroups_[0])}
1,i.Message.GENERATE_TO_OBJECT&&(n.PermissionSet.prototype.toObject=function(e){return n.PermissionSet.toObject(e,this)},n.PermissionSet.toObject=function(e,t){var r,s={superUser:i.Message.getFieldWithDefault(t,1,0),explicit:(r=t.getExplicit())&&n.ExplicitPermissionSet.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),n.PermissionSet.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.PermissionSet;return n.PermissionSet.deserializeBinaryFromReader(r,t)},n.PermissionSet.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setSuperUser(r);break;case 2:var r=new n.ExplicitPermissionSet;t.readMessage(r,n.ExplicitPermissionSet.deserializeBinaryFromReader),e.setExplicit(r);break;default:t.skipField()}return e},n.PermissionSet.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.PermissionSet.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.PermissionSet.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=i.Message.getField(e,1))&&t.writeEnum(1,r),null!=(r=e.getExplicit())&&t.writeMessage(2,r,n.ExplicitPermissionSet.serializeBinaryToWriter)},n.PermissionSet.prototype.getSuperUser=function(){return i.Message.getFieldWithDefault(this,1,0)},n.PermissionSet.prototype.setSuperUser=function(e){return i.Message.setOneofField(this,1,n.PermissionSet.oneofGroups_[0],e)},n.PermissionSet.prototype.clearSuperUser=function(){return i.Message.setOneofField(this,1,n.PermissionSet.oneofGroups_[0],void 0)},n.PermissionSet.prototype.hasSuperUser=function(){return null!=i.Message.getField(this,1)},n.PermissionSet.prototype.getExplicit=function(){return i.Message.getWrapperField(this,n.ExplicitPermissionSet,2)},n.PermissionSet.prototype.setExplicit=function(e){return i.Message.setOneofWrapperField(this,2,n.PermissionSet.oneofGroups_[0],e)},n.PermissionSet.prototype.clearExplicit=function(){return this.setExplicit(void 0)},n.PermissionSet.prototype.hasExplicit=function(){return null!=i.Message.getField(this,2)},n.ExplicitPermissionSet.repeatedFields_=[1],i.Message.GENERATE_TO_OBJECT&&(n.ExplicitPermissionSet.prototype.toObject=function(e){return n.ExplicitPermissionSet.toObject(e,this)},n.ExplicitPermissionSet.toObject=function(e,t){var r={rulesList:i.Message.toObjectList(t.getRulesList(),n.Rule.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),n.ExplicitPermissionSet.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.ExplicitPermissionSet;return n.ExplicitPermissionSet.deserializeBinaryFromReader(r,t)},n.ExplicitPermissionSet.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new n.Rule;t.readMessage(r,n.Rule.deserializeBinaryFromReader),e.addRules(r)}else t.skipField();return e},n.ExplicitPermissionSet.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.ExplicitPermissionSet.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.ExplicitPermissionSet.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getRulesList()).length>0&&t.writeRepeatedMessage(1,r,n.Rule.serializeBinaryToWriter)},n.ExplicitPermissionSet.prototype.getRulesList=function(){return i.Message.getRepeatedWrapperField(this,n.Rule,1)},n.ExplicitPermissionSet.prototype.setRulesList=function(e){return i.Message.setRepeatedWrapperField(this,1,e)},n.ExplicitPermissionSet.prototype.addRules=function(e,t){return i.Message.addToRepeatedWrapperField(this,1,e,n.Rule,t)},n.ExplicitPermissionSet.prototype.clearRulesList=function(){return this.setRulesList([])},n.Rule.oneofGroups_=[[1,2,3,4,5,7]],n.Rule.KindCase={KIND_NOT_SET:0,ACCOUNT_MANAGEMENT_RULE:1,AUTH_MANAGEMENT_RULE:2,RESOURCE_MANAGEMENT_RULE:3,CACHE_RULE:4,TOPIC_RULE:5,FUNCTION_RULE:7},n.Rule.prototype.getKindCase=function(){return i.Message.computeOneofCase(this,n.Rule.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(n.Rule.prototype.toObject=function(e){return n.Rule.toObject(e,this)},n.Rule.toObject=function(e,t){var r,i={accountManagementRule:(r=t.getAccountManagementRule())&&n.Rule.AccountManagementRule.toObject(e,r),authManagementRule:(r=t.getAuthManagementRule())&&n.Rule.AuthManagementRule.toObject(e,r),resourceManagementRule:(r=t.getResourceManagementRule())&&n.Rule.ResourceManagementRule.toObject(e,r),cacheRule:(r=t.getCacheRule())&&n.Rule.CacheRule.toObject(e,r),topicRule:(r=t.getTopicRule())&&n.Rule.TopicRule.toObject(e,r),functionRule:(r=t.getFunctionRule())&&n.Rule.FunctionRule.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),n.Rule.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.Rule;return n.Rule.deserializeBinaryFromReader(r,t)},n.Rule.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new n.Rule.AccountManagementRule;t.readMessage(r,n.Rule.AccountManagementRule.deserializeBinaryFromReader),e.setAccountManagementRule(r);break;case 2:var r=new n.Rule.AuthManagementRule;t.readMessage(r,n.Rule.AuthManagementRule.deserializeBinaryFromReader),e.setAuthManagementRule(r);break;case 3:var r=new n.Rule.ResourceManagementRule;t.readMessage(r,n.Rule.ResourceManagementRule.deserializeBinaryFromReader),e.setResourceManagementRule(r);break;case 4:var r=new n.Rule.CacheRule;t.readMessage(r,n.Rule.CacheRule.deserializeBinaryFromReader),e.setCac
1heRule(r);break;case 5:var r=new n.Rule.TopicRule;t.readMessage(r,n.Rule.TopicRule.deserializeBinaryFromReader),e.setTopicRule(r);break;case 7:var r=new n.Rule.FunctionRule;t.readMessage(r,n.Rule.FunctionRule.deserializeBinaryFromReader),e.setFunctionRule(r);break;default:t.skipField()}return e},n.Rule.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.Rule.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.Rule.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getAccountManagementRule())&&t.writeMessage(1,r,n.Rule.AccountManagementRule.serializeBinaryToWriter),null!=(r=e.getAuthManagementRule())&&t.writeMessage(2,r,n.Rule.AuthManagementRule.serializeBinaryToWriter),null!=(r=e.getResourceManagementRule())&&t.writeMessage(3,r,n.Rule.ResourceManagementRule.serializeBinaryToWriter),null!=(r=e.getCacheRule())&&t.writeMessage(4,r,n.Rule.CacheRule.serializeBinaryToWriter),null!=(r=e.getTopicRule())&&t.writeMessage(5,r,n.Rule.TopicRule.serializeBinaryToWriter),null!=(r=e.getFunctionRule())&&t.writeMessage(7,r,n.Rule.FunctionRule.serializeBinaryToWriter)},n.Rule.AccountManagementRule.repeatedFields_=[1],i.Message.GENERATE_TO_OBJECT&&(n.Rule.AccountManagementRule.prototype.toObject=function(e){return n.Rule.AccountManagementRule.toObject(e,this)},n.Rule.AccountManagementRule.toObject=function(e,t){var r,n={permissionsList:null==(r=i.Message.getRepeatedField(t,1))?void 0:r};return e&&(n.$jspbMessageInstance=t),n}),n.Rule.AccountManagementRule.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.Rule.AccountManagementRule;return n.Rule.AccountManagementRule.deserializeBinaryFromReader(r,t)},n.Rule.AccountManagementRule.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber())for(var r=t.isDelimited()?t.readPackedEnum():[t.readEnum()],i=0;i<r.length;i++)e.addPermissions(r[i]);else t.skipField();return e},n.Rule.AccountManagementRule.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.Rule.AccountManagementRule.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.Rule.AccountManagementRule.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPermissionsList()).length>0&&t.writePackedEnum(1,r)},n.Rule.AccountManagementRule.prototype.getPermissionsList=function(){return i.Message.getRepeatedField(this,1)},n.Rule.AccountManagementRule.prototype.setPermissionsList=function(e){return i.Message.setField(this,1,e||[])},n.Rule.AccountManagementRule.prototype.addPermissions=function(e,t){return i.Message.addToRepeatedField(this,1,e,t)},n.Rule.AccountManagementRule.prototype.clearPermissionsList=function(){return this.setPermissionsList([])},n.Rule.AuthManagementRule.repeatedFields_=[1],n.Rule.AuthManagementRule.oneofGroups_=[[2]],n.Rule.AuthManagementRule.AuthItemsCase={AUTH_ITEMS_NOT_SET:0,ALL_ITEMS:2},n.Rule.AuthManagementRule.prototype.getAuthItemsCase=function(){return i.Message.computeOneofCase(this,n.Rule.AuthManagementRule.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(n.Rule.AuthManagementRule.prototype.toObject=function(e){return n.Rule.AuthManagementRule.toObject(e,this)},n.Rule.AuthManagementRule.toObject=function(e,t){var r,s={permissionsList:null==(r=i.Message.getRepeatedField(t,1))?void 0:r,allItems:(r=t.getAllItems())&&n.All.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),n.Rule.AuthManagementRule.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.Rule.AuthManagementRule;return n.Rule.AuthManagementRule.deserializeBinaryFromReader(r,t)},n.Rule.AuthManagementRule.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:for(var r=t.isDelimited()?t.readPackedEnum():[t.readEnum()],i=0;i<r.length;i++)e.addPermissions(r[i]);break;case 2:var s=new n.All;t.readMessage(s,n.All.deserializeBinaryFromReader),e.setAllItems(s);break;default:t.skipField()}return e},n.Rule.AuthManagementRule.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.Rule.AuthManagementRule.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.Rule.AuthManagementRule.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPermissionsList()).length>0&&t.writePackedEnum(1,r),null!=(r=e.getAllItems())&&t.writeMessage(2,r,n.All.serializeBinaryToWriter)},n.Rule.AuthManagementRule.prototype.getPermissionsList=function(){return i.Message.getRepeatedField(this,1)},n.Rule.AuthManagementRule.prototype.setPermissionsList=function(e){return i.Message.setField(this,1,e||[])},n.Rule.AuthManagementRule.prototype.addPermissions=function(e,t){return i.Message.addToRepeatedField(this,1,e,t)},n.Rule.AuthManagementRule.prototype.clearPermissionsList=function(){return this.setPermissionsList([])},n.Rule.AuthManagementRule.prototype.getAllItems=function(){return i.Message.getWrapperField(this,n.All,2)},n.Rule.AuthManagementRule.prototype.setAllItems=function(e){return i.Message.setOneofWrapperField(this,2,n.Rule.AuthManagementRule.oneofGroups_[0],e)},n.Rule.AuthManagementRule.prototype.clearAllItems=function(){return this.setAllItems(void 0)},n.Rule.AuthManagementRule.prototype.hasAllItems=function(){return null!=i.Message.getField(this,2)},n.Rule.ResourceManagementRule.repeatedFields_=[1],n.Rule.ResourceManagementRule.oneofGroups_=[[2]],n.Rule.ResourceManagementRule.ResourcesCase={RESOURCES_NOT_SET:0,ALL_RESOURCES:2},n.Rule.ResourceManagementRule.prototype.getResourcesCase=function(){return i.Message.computeOneofCase(this,n.Rule.ResourceManagementRule.oneofGroups_[0])}
1,i.Message.GENERATE_TO_OBJECT&&(n.Rule.ResourceManagementRule.prototype.toObject=function(e){return n.Rule.ResourceManagementRule.toObject(e,this)},n.Rule.ResourceManagementRule.toObject=function(e,t){var r,s={permissionsList:null==(r=i.Message.getRepeatedField(t,1))?void 0:r,allResources:(r=t.getAllResources())&&n.All.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),n.Rule.ResourceManagementRule.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.Rule.ResourceManagementRule;return n.Rule.ResourceManagementRule.deserializeBinaryFromReader(r,t)},n.Rule.ResourceManagementRule.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:for(var r=t.isDelimited()?t.readPackedEnum():[t.readEnum()],i=0;i<r.length;i++)e.addPermissions(r[i]);break;case 2:var s=new n.All;t.readMessage(s,n.All.deserializeBinaryFromReader),e.setAllResources(s);break;default:t.skipField()}return e},n.Rule.ResourceManagementRule.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.Rule.ResourceManagementRule.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.Rule.ResourceManagementRule.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPermissionsList()).length>0&&t.writePackedEnum(1,r),null!=(r=e.getAllResources())&&t.writeMessage(2,r,n.All.serializeBinaryToWriter)},n.Rule.ResourceManagementRule.prototype.getPermissionsList=function(){return i.Message.getRepeatedField(this,1)},n.Rule.ResourceManagementRule.prototype.setPermissionsList=function(e){return i.Message.setField(this,1,e||[])},n.Rule.ResourceManagementRule.prototype.addPermissions=function(e,t){return i.Message.addToRepeatedField(this,1,e,t)},n.Rule.ResourceManagementRule.prototype.clearPermissionsList=function(){return this.setPermissionsList([])},n.Rule.ResourceManagementRule.prototype.getAllResources=function(){return i.Message.getWrapperField(this,n.All,2)},n.Rule.ResourceManagementRule.prototype.setAllResources=function(e){return i.Message.setOneofWrapperField(this,2,n.Rule.ResourceManagementRule.oneofGroups_[0],e)},n.Rule.ResourceManagementRule.prototype.clearAllResources=function(){return this.setAllResources(void 0)},n.Rule.ResourceManagementRule.prototype.hasAllResources=function(){return null!=i.Message.getField(this,2)},n.Rule.CacheRule.repeatedFields_=[1],n.Rule.CacheRule.oneofGroups_=[[2,3],[4,5]],n.Rule.CacheRule.CacheCase={CACHE_NOT_SET:0,ALL_CACHES:2,CACHE_SELECTOR:3},n.Rule.CacheRule.prototype.getCacheCase=function(){return i.Message.computeOneofCase(this,n.Rule.CacheRule.oneofGroups_[0])}
1,n.Rule.CacheRule.CacheItemCase={CACHE_ITEM_NOT_SET:0,ALL_ITEMS:4,ITEM_SELECTOR:5},n.Rule.CacheRule.prototype.getCacheItemCase=function(){return i.Message.computeOneofCase(this,n.Rule.CacheRule.oneofGroups_[1])},i.Message.GENERATE_TO_OBJECT&&(n.Rule.CacheRule.prototype.toObject=function(e){return n.Rule.CacheRule.toObject(e,this)},n.Rule.CacheRule.toObject=function(e,t){var r,s={permissionsList:null==(r=i.Message.getRepeatedField(t,1))?void 0:r,allCaches:(r=t.getAllCaches())&&n.All.toObject(e,r),cacheSelector:(r=t.getCacheSelector())&&n.CacheSelector.toObject(e,r),allItems:(r=t.getAllItems())&&n.All.toObject(e,r),itemSelector:(r=t.getItemSelector())&&n.CacheItemSelector.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),n.Rule.CacheRule.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.Rule.CacheRule;return n.Rule.CacheRule.deserializeBinaryFromReader(r,t)},n.Rule.CacheRule.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:for(var r=t.isDelimited()?t.readPackedEnum():[t.readEnum()],i=0;i<r.length;i++)e.addPermissions(r[i]);break;case 2:var s=new n.All;t.readMessage(s,n.All.deserializeBinaryFromReader),e.setAllCaches(s);break;case 3:var s=new n.CacheSelector;t.readMessage(s,n.CacheSelector.deserializeBinaryFromReader),e.setCacheSelector(s);break;case 4:var s=new n.All;t.readMessage(s,n.All.deserializeBinaryFromReader),e.setAllItems(s);break;case 5:var s=new n.CacheItemSelector;t.readMessage(s,n.CacheItemSelector.deserializeBinaryFromReader),e.setItemSelector(s);break;default:t.skipField()}return e},n.Rule.CacheRule.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.Rule.CacheRule.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.Rule.CacheRule.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPermissionsList()).length>0&&t.writePackedEnum(1,r),null!=(r=e.getAllCaches())&&t.writeMessage(2,r,n.All.serializeBinaryToWriter),null!=(r=e.getCacheSelector())&&t.writeMessage(3,r,n.CacheSelector.serializeBinaryToWriter),null!=(r=e.getAllItems())&&t.writeMessage(4,r,n.All.serializeBinaryToWriter),null!=(r=e.getItemSelector())&&t.writeMessage(5,r,n.CacheItemSelector.serializeBinaryToWriter)},n.Rule.CacheRule.prototype.getPermissionsList=function(){return i.Message.getRepeatedField(this,1)},n.Rule.CacheRule.prototype.setPermissionsList=function(e){return i.Message.setField(this,1,e||[])},n.Rule.CacheRule.prototype.addPermissions=function(e,t){return i.Message.addToRepeatedField(this,1,e,t)},n.Rule.CacheRule.prototype.clearPermissionsList=function(){return this.setPermissionsList([])},n.Rule.CacheRule.prototype.getAllCaches=function(){return i.Message.getWrapperField(this,n.All,2)},n.Rule.CacheRule.prototype.setAllCaches=function(e){return i.Message.setOneofWrapperField(this,2,n.Rule.CacheRule.oneofGroups_[0],e)},n.Rule.CacheRule.prototype.clearAllCaches=function(){return this.setAllCaches(void 0)},n.Rule.CacheRule.prototype.hasAllCaches=function(){return null!=i.Message.getField(this,2)},n.Rule.CacheRule.prototype.getCacheSelector=function(){return i.Message.getWrapperField(this,n.CacheSelector,3)},n.Rule.CacheRule.prototype.setCacheSelector=function(e){return i.Message.setOneofWrapperField(this,3,n.Rule.CacheRule.oneofGroups_[0],e)},n.Rule.CacheRule.prototype.clearCacheSelector=function(){return this.setCacheSelector(void 0)},n.Rule.CacheRule.prototype.hasCacheSelector=function(){return null!=i.Message.getField(this,3)},n.Rule.CacheRule.prototype.getAllItems=function(){return i.Message.getWrapperField(this,n.All,4)},n.Rule.CacheRule.prototype.setAllItems=function(e){return i.Message.setOneofWrapperField(this,4,n.Rule.CacheRule.oneofGroups_[1],e)},n.Rule.CacheRule.prototype.clearAllItems=function(){return this.setAllItems(void 0)},n.Rule.CacheRule.prototype.hasAllItems=function(){return null!=i.Message.getField(this,4)},n.Rule.CacheRule.prototype.getItemSelector=function(){return i.Message.getWrapperField(this,n.CacheItemSelector,5)},n.Rule.CacheRule.prototype.setItemSelector=function(e){return i.Message.setOneofWrapperField(this,5,n.Rule.CacheRule.oneofGroups_[1],e)},n.Rule.CacheRule.prototype.clearItemSelector=function(){return this.setItemSelector(void 0)},n.Rule.CacheRule.prototype.hasItemSelector=function(){return null!=i.Message.getField(this,5)},n.Rule.TopicRule.repeatedFields_=[1],n.Rule.TopicRule.oneofGroups_=[[2,3],[4,5]],n.Rule.TopicRule.CacheCase={CACHE_NOT_SET:0,ALL_CACHES:2,CACHE_SELECTOR:3},n.Rule.TopicRule.prototype.getCacheCase=function(){return i.Message.computeOneofCase(this,n.Rule.TopicRule.oneofGroups_[0])},n.Rule.TopicRule.TopicCase={TOPIC_NOT_SET:0,ALL_TOPICS:4,TOPIC_SELECTOR:5},n.Rule.TopicRule.prototype.getTopicCase=function(){return i.Message.computeOneofCase(this,n.Rule.TopicRule.oneofGroups_[1])}
1,i.Message.GENERATE_TO_OBJECT&&(n.Rule.TopicRule.prototype.toObject=function(e){return n.Rule.TopicRule.toObject(e,this)},n.Rule.TopicRule.toObject=function(e,t){var r,s={permissionsList:null==(r=i.Message.getRepeatedField(t,1))?void 0:r,allCaches:(r=t.getAllCaches())&&n.All.toObject(e,r),cacheSelector:(r=t.getCacheSelector())&&n.CacheSelector.toObject(e,r),allTopics:(r=t.getAllTopics())&&n.All.toObject(e,r),topicSelector:(r=t.getTopicSelector())&&n.TopicSelector.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),n.Rule.TopicRule.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.Rule.TopicRule;return n.Rule.TopicRule.deserializeBinaryFromReader(r,t)},n.Rule.TopicRule.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:for(var r=t.isDelimited()?t.readPackedEnum():[t.readEnum()],i=0;i<r.length;i++)e.addPermissions(r[i]);break;case 2:var s=new n.All;t.readMessage(s,n.All.deserializeBinaryFromReader),e.setAllCaches(s);break;case 3:var s=new n.CacheSelector;t.readMessage(s,n.CacheSelector.deserializeBinaryFromReader),e.setCacheSelector(s);break;case 4:var s=new n.All;t.readMessage(s,n.All.deserializeBinaryFromReader),e.setAllTopics(s);break;case 5:var s=new n.TopicSelector;t.readMessage(s,n.TopicSelector.deserializeBinaryFromReader),e.setTopicSelector(s);break;default:t.skipField()}return e},n.Rule.TopicRule.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.Rule.TopicRule.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.Rule.TopicRule.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPermissionsList()).length>0&&t.writePackedEnum(1,r),null!=(r=e.getAllCaches())&&t.writeMessage(2,r,n.All.serializeBinaryToWriter),null!=(r=e.getCacheSelector())&&t.writeMessage(3,r,n.CacheSelector.serializeBinaryToWriter),null!=(r=e.getAllTopics())&&t.writeMessage(4,r,n.All.serializeBinaryToWriter),null!=(r=e.getTopicSelector())&&t.writeMessage(5,r,n.TopicSelector.serializeBinaryToWriter)},n.Rule.TopicRule.prototype.getPermissionsList=function(){return i.Message.getRepeatedField(this,1)},n.Rule.TopicRule.prototype.setPermissionsList=function(e){return i.Message.setField(this,1,e||[])},n.Rule.TopicRule.prototype.addPermissions=function(e,t){return i.Message.addToRepeatedField(this,1,e,t)},n.Rule.TopicRule.prototype.clearPermissionsList=function(){return this.setPermissionsList([])},n.Rule.TopicRule.prototype.getAllCaches=function(){return i.Message.getWrapperField(this,n.All,2)},n.Rule.TopicRule.prototype.setAllCaches=function(e){return i.Message.setOneofWrapperField(this,2,n.Rule.TopicRule.oneofGroups_[0],e)},n.Rule.TopicRule.prototype.clearAllCaches=function(){return this.setAllCaches(void 0)},n.Rule.TopicRule.prototype.hasAllCaches=function(){return null!=i.Message.getField(this,2)},n.Rule.TopicRule.prototype.getCacheSelector=function(){return i.Message.getWrapperField(this,n.CacheSelector,3)},n.Rule.TopicRule.prototype.setCacheSelector=function(e){return i.Message.setOneofWrapperField(this,3,n.Rule.TopicRule.oneofGroups_[0],e)},n.Rule.TopicRule.prototype.clearCacheSelector=function(){return this.setCacheSelector(void 0)},n.Rule.TopicRule.prototype.hasCacheSelector=function(){return null!=i.Message.getField(this,3)},n.Rule.TopicRule.prototype.getAllTopics=function(){return i.Message.getWrapperField(this,n.All,4)},n.Rule.TopicRule.prototype.setAllTopics=function(e){return i.Message.setOneofWrapperField(this,4,n.Rule.TopicRule.oneofGroups_[1],e)},n.Rule.TopicRule.prototype.clearAllTopics=function(){return this.setAllTopics(void 0)},n.Rule.TopicRule.prototype.hasAllTopics=function(){return null!=i.Message.getField(this,4)},n.Rule.TopicRule.prototype.getTopicSelector=function(){return i.Message.getWrapperField(this,n.TopicSelector,5)},n.Rule.TopicRule.prototype.setTopicSelector=function(e){return i.Message.setOneofWrapperField(this,5,n.Rule.TopicRule.oneofGroups_[1],e)},n.Rule.TopicRule.prototype.clearTopicSelector=function(){return this.setTopicSelector(void 0)},n.Rule.TopicRule.prototype.hasTopicSelector=function(){return null!=i.Message.getField(this,5)},n.Rule.FunctionRule.repeatedFields_=[1],n.Rule.FunctionRule.oneofGroups_=[[2,3],[4,5]],n.Rule.FunctionRule.CacheCase={CACHE_NOT_SET:0,ALL_CACHES:2,CACHE_SELECTOR:3},n.Rule.FunctionRule.prototype.getCacheCase=function(){return i.Message.computeOneofCase(this,n.Rule.FunctionRule.oneofGroups_[0])},n.Rule.FunctionRule.FunctionCase={FUNCTION_NOT_SET:0,ALL_FUNCTIONS:4,FUNCTION_SELECTOR:5},n.Rule.FunctionRule.prototype.getFunctionCase=function(){return i.Message.computeOneofCase(this,n.Rule.FunctionRule.oneofGroups_[1])}
1,i.Message.GENERATE_TO_OBJECT&&(n.Rule.FunctionRule.prototype.toObject=function(e){return n.Rule.FunctionRule.toObject(e,this)},n.Rule.FunctionRule.toObject=function(e,t){var r,s={permissionsList:null==(r=i.Message.getRepeatedField(t,1))?void 0:r,allCaches:(r=t.getAllCaches())&&n.All.toObject(e,r),cacheSelector:(r=t.getCacheSelector())&&n.CacheSelector.toObject(e,r),allFunctions:(r=t.getAllFunctions())&&n.All.toObject(e,r),functionSelector:(r=t.getFunctionSelector())&&n.FunctionSelector.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),n.Rule.FunctionRule.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.Rule.FunctionRule;return n.Rule.FunctionRule.deserializeBinaryFromReader(r,t)},n.Rule.FunctionRule.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:for(var r=t.isDelimited()?t.readPackedEnum():[t.readEnum()],i=0;i<r.length;i++)e.addPermissions(r[i]);break;case 2:var s=new n.All;t.readMessage(s,n.All.deserializeBinaryFromReader),e.setAllCaches(s);break;case 3:var s=new n.CacheSelector;t.readMessage(s,n.CacheSelector.deserializeBinaryFromReader),e.setCacheSelector(s);break;case 4:var s=new n.All;t.readMessage(s,n.All.deserializeBinaryFromReader),e.setAllFunctions(s);break;case 5:var s=new n.FunctionSelector;t.readMessage(s,n.FunctionSelector.deserializeBinaryFromReader),e.setFunctionSelector(s);break;default:t.skipField()}return e},n.Rule.FunctionRule.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.Rule.FunctionRule.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.Rule.FunctionRule.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPermissionsList()).length>0&&t.writePackedEnum(1,r),null!=(r=e.getAllCaches())&&t.writeMessage(2,r,n.All.serializeBinaryToWriter),null!=(r=e.getCacheSelector())&&t.writeMessage(3,r,n.CacheSelector.serializeBinaryToWriter),null!=(r=e.getAllFunctions())&&t.writeMessage(4,r,n.All.serializeBinaryToWriter),null!=(r=e.getFunctionSelector())&&t.writeMessage(5,r,n.FunctionSelector.serializeBinaryToWriter)},n.Rule.FunctionRule.prototype.getPermissionsList=function(){return i.Message.getRepeatedField(this,1)},n.Rule.FunctionRule.prototype.setPermissionsList=function(e){return i.Message.setField(this,1,e||[])},n.Rule.FunctionRule.prototype.addPermissions=function(e,t){return i.Message.addToRepeatedField(this,1,e,t)},n.Rule.FunctionRule.prototype.clearPermissionsList=function(){return this.setPermissionsList([])},n.Rule.FunctionRule.prototype.getAllCaches=function(){return i.Message.getWrapperField(this,n.All,2)},n.Rule.FunctionRule.prototype.setAllCaches=function(e){return i.Message.setOneofWrapperField(this,2,n.Rule.FunctionRule.oneofGroups_[0],e)},n.Rule.FunctionRule.prototype.clearAllCaches=function(){return this.setAllCaches(void 0)},n.Rule.FunctionRule.prototype.hasAllCaches=function(){return null!=i.Message.getField(this,2)},n.Rule.FunctionRule.prototype.getCacheSelector=function(){return i.Message.getWrapperField(this,n.CacheSelector,3)},n.Rule.FunctionRule.prototype.setCacheSelector=function(e){return i.Message.setOneofWrapperField(this,3,n.Rule.FunctionRule.oneofGroups_[0],e)},n.Rule.FunctionRule.prototype.clearCacheSelector=function(){return this.setCacheSelector(void 0)},n.Rule.FunctionRule.prototype.hasCacheSelector=function(){return null!=i.Message.getField(this,3)},n.Rule.FunctionRule.prototype.getAllFunctions=function(){return i.Message.getWrapperField(this,n.All,4)},n.Rule.FunctionRule.prototype.setAllFunctions=function(e){return i.Message.setOneofWrapperField(this,4,n.Rule.FunctionRule.oneofGroups_[1],e)},n.Rule.FunctionRule.prototype.clearAllFunctions=function(){return this.setAllFunctions(void 0)},n.Rule.FunctionRule.prototype.hasAllFunctions=function(){return null!=i.Message.getField(this,4)},n.Rule.FunctionRule.prototype.getFunctionSelector=function(){return i.Message.getWrapperField(this,n.FunctionSelector,5)},n.Rule.FunctionRule.prototype.setFunctionSelector=function(e){return i.Message.setOneofWrapperField(this,5,n.Rule.FunctionRule.oneofGroups_[1],e)},n.Rule.FunctionRule.prototype.clearFunctionSelector=function(){return this.setFunctionSelector(void 0)},n.Rule.FunctionRule.prototype.hasFunctionSelector=function(){return null!=i.Message.getField(this,5)},n.Rule.prototype.getAccountManagementRule=function(){return i.Message.getWrapperField(this,n.Rule.AccountManagementRule,1)},n.Rule.prototype.setAccountManagementRule=function(e){return i.Message.setOneofWrapperField(this,1,n.Rule.oneofGroups_[0],e)},n.Rule.prototype.clearAccountManagementRule=function(){return this.setAccountManagementRule(void 0)},n.Rule.prototype.hasAccountManagementRule=function(){return null!=i.Message.getField(this,1)},n.Rule.prototype.getAuthManagementRule=function(){return i.Message.getWrapperField(this,n.Rule.AuthManagementRule,2)},n.Rule.prototype.setAuthManagementRule=function(e){return i.Message.setOneofWrapperField(this,2,n.Rule.oneofGroups_[0],e)},n.Rule.prototype.clearAuthManagementRule=function(){return this.setAuthManagementRule(void 0)},n.Rule.prototype.hasAuthManagementRule=function(){return null!=i.Message.getField(this,2)},n.Rule.prototype.getResourceManagementRule=function(){return i.Message.getWrapperField(this,n.Rule.ResourceManagementRule,3)},n.Rule.prototype.setResourceManagementRule=function(e){return i.Message.setOneofWrapperField(this,3,n.Rule.oneofGroups_[0],e)},n.Rule.prototype.clearResourceManagementRule=function(){return this.setResourceManagementRule(void 0)},n.Rule.prototype.hasResourceManagementRule=function(){return null!=i.Message.getField(this,3)},n.Rule.prototype.getCacheRule=function(){return i.Message.getWrapperField(this,n.Rule.CacheRule,4)},n.Rule.prototype.setCacheRule=function(e){return i.Message.setOneofWrapperField(this,4,n.Rule.oneofGroups_[0],e)},n.Rule.prototype.clearCacheRule=function(){return this.setCacheRule(void 0)},n.Rule.prototype.hasCacheRule=function(){return null!=i.Message.getField(this,4)},n.Rule.prototype.getTopicRule=function(){return i.Message.getWrapperField(this,n.Rule.TopicRule,5)},n.Rule.prototype.setTopicRule=function(e){return i.Message.setOneofWrapperField(this,5,n.Rule.oneofGroups_[0],e)},n.Rule.prototype.clearTopicRule=function(){return this.setTopicRule(void 0)},n.Rule.prototype.hasTopicRule=function(){return null!=i.Message.getField(this,5)},n.Rule.prototype.getFunctionRule=function(){return i.Message.getWrapperField(this,n.Rule.FunctionRule,7)},n.Rule.prototype.setFunctionRule=function(e){return i.Message.setOneofWrapperField(this,7,n.Rule.oneofGroups_[0],e)},n.Rule.prototype.clearFunctionRule=function(){return this.setFunctionRule(void 0)},n.Rule.prototype.hasFunctionRule=function(){return null!=i.Message.getField(this,7)},n.AccountManagementPermissions={ACCOUNTREAD:0,ACCOUNTWRITE:1,ACCOUNTLIST:2},n.AuthManagementPermissions={AUTHREAD:0,AUTHWRITE:1,AUTHLIST:2},n.ResourceManagementPermissions={RESOURCEREAD:0,RESOURCEWRITE:1,RESOURCELIST:2},n.CacheAPIPermissions={CACHELIST:0,CACHEREAD:1,CACHEWRITE:2},n.TopicAPIPermissions={TOPICLIST:0,TOPICREAD:1,TOPICWRITE:2},n.FunctionAPIPermissions={FUNCTIONINVOKESET:0},n.SuperUserSetPermissionSet={SUPERUSERSET:0},i.object.extend(t,n)},13067:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(e){super(),this.type=n.CacheListPushFrontResponse.Success,this._listLength=e}listLength(){return this._listLength}toString(){return`${super.toString()}: listLength: ${this._listLength}`}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheListPushFrontResponse.Error}}t.Error=o},13122:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.DeleteWebhookResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.DeleteWebhookResponse.Error}}t.Error=o},13375:()=>{},13861:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(e){super(),this.type=n.CacheItemGetTtlResponse.Hit,this.ttlMillis=e}remainingTtlMillis(){return this.ttlMillis}toString(){return`${super.toString()}: remaining ttl: ${this.ttlMillis}`}}t.Hit=s;class o extends i.BaseResponseMiss{constructor(){super(),this.type=n.CacheItemGetTtlResponse.Miss}remainingTtlMillis(){}}t.Miss=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheItemGetTtlResponse.Error}remainingTtlMillis(){}}t.Error=a},14279:(e,t,r)=>{"use strict";r.d(t,{y:()=>n});var i=r(14534);function n(e,t){return(...r)=>{try{return e(...r)}catch(e){i.Vy.error(t,e)}}}},14285:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},14304:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.CacheSortedSetRemoveElementResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSortedSetRemoveElementResponse.Error}}t.Error=o},14534:(e,t,r)=>{"use strict";r.d(t,{JZ:()=>n,Vy:()=>a,Xs:()=>l,bP:()=>i,fH:()=>c,xG:()=>u});let i={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},n=console,s={};
1Object.keys(i).forEach(e=>{s[e]=n[e]});let o="Datadog Browser SDK:",a={debug:s.debug.bind(n,o),log:s.log.bind(n,o),info:s.info.bind(n,o),warn:s.warn.bind(n,o),error:s.error.bind(n,o)},c="https://docs.datadoghq.com",l=`${c}/real_user_monitoring/browser/troubleshooting`,u="More details:"},14596:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.FlushCacheResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.FlushCacheResponse.Error}}t.Error=o},15034:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=void 0,t.sleep=e=>new Promise(t=>setTimeout(t,e))},15346:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RefreshApiKeyResponse=t.GenerateDisposableTokenResponse=t.GenerateApiKeyResponse=void 0;var i=r(33899);Object.defineProperty(t,"GenerateApiKeyResponse",{enumerable:!0,get:function(){return i.GenerateApiKeyResponse}});var n=r(7249);Object.defineProperty(t,"GenerateDisposableTokenResponse",{enumerable:!0,get:function(){return n.GenerateDisposableTokenResponse}});var s=r(70045);Object.defineProperty(t,"RefreshApiKeyResponse",{enumerable:!0,get:function(){return s.RefreshApiKeyResponse}})},15638:(e,t,r)=>{"use strict";r.d(t,{Kp:()=>c,_T:()=>a,y5:()=>o});var i=r(60403),n=r(54110),s=r(54572);let o={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function a(e){return new i.cP(t=>{let{stop:r}=(0,s.l)(e,window,["visibilitychange","freeze"],e=>{"visibilitychange"===e.type&&"hidden"===document.visibilityState?t.notify({reason:o.HIDDEN}):"freeze"===e.type&&t.notify({reason:o.FROZEN})},{capture:!0}),i=(0,s.q)(e,window,"beforeunload",()=>{t.notify({reason:o.UNLOADING})}).stop;return()=>{r(),i()}})}function c(e){return(0,n.KQ)(o).includes(e)}},16848:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(52725),s=r(94452),o=new TextDecoder;class a extends i.ResponseBase{constructor(e){super(),this.type=s.CacheListPopBackResponse.Hit,this.body=e}value(){return o.decode(this.body)}valueString(){return o.decode(this.body)}valueUint8Array(){return this.body}toString(){let e=(0,n.truncateString)(this.valueString());return`${super.toString()}: ${e}`}}t.Hit=a;class c extends i.BaseResponseMiss{constructor(){super(),this.type=s.CacheListPopBackResponse.Miss}value(){}}t.Miss=c;class l extends i.BaseResponseError{constructor(e){super(e),this.type=s.CacheListPopBackResponse.Error}value(){}}t.Error=l},17214:(e,t)=>
1{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseNotFound=t.ResponseFound=t.ResponseSuccess=t.BaseResponseSubscription=t.BaseResponseSuccess=t.ResponseMiss=t.BaseResponseMiss=t.ResponseHit=t.ResponseError=t.BaseResponseError=t.ResponseBase=void 0;class r{toString(){return this.constructor.name}}t.ResponseBase=r;class i extends r{constructor(e){super(),this._innerException=e}message(){return this._innerException.wrappedErrorMessage()}innerException(){return this._innerException}errorCode(){return this._innerException.errorCode()}toString(){return this.message()}}t.BaseResponseError=i,t.ResponseError=function(e){return class extends e{message(){return this._innerException.wrappedErrorMessage()}innerException(){return this._innerException}errorCode(){return this._innerException.errorCode()}toString(){return this.message()}}},t.ResponseHit=function(e){return class extends e{}};class n extends r{constructor(){super(...arguments),this.is_miss=!0}}t.BaseResponseMiss=n,t.ResponseMiss=function(e){return class extends e{constructor(){super(...arguments),this.is_miss=!0}}};class s extends r{constructor(){super(...arguments),this.is_success=!0}}t.BaseResponseSuccess=s;class o extends r{constructor(){super(...arguments),this.is_subscribed=!0}}t.BaseResponseSubscription=o,t.ResponseSuccess=function(e){return class extends e{constructor(){super(...arguments),this.is_success=!0}}},t.ResponseFound=function(e){return class extends e{}},t.ResponseNotFound=function(e){return class extends e{}}},17784:()=>{},18244:(e,t)=>{"use strict";var r,i,n,s,o,a,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),t.CacheListPopFrontResponse=t.CacheListPopBackResponse=t.CacheListLengthResponse=t.CacheListFetchResponse=t.CacheListRetainResponse=t.CacheListRemoveValueResponse=t.CacheListPushFrontResponse=t.CacheListPushBackResponse=t.CacheListConcatenateFrontResponse=t.CacheListConcatenateBackResponse=void 0,(r=t.CacheListConcatenateBackResponse||(t.CacheListConcatenateBackResponse={})).Success="Success",r.Error="Error",(i=t.CacheListConcatenateFrontResponse||(t.CacheListConcatenateFrontResponse={})).Success="Success",i.Error="Error",(n=t.CacheListPushBackResponse||(t.CacheListPushBackResponse={})).Success="Success",n.Error="Error",(s=t.CacheListPushFrontResponse||(t.CacheListPushFrontResponse={})).Success="Success",s.Error="Error",(o=t.CacheListRemoveValueResponse||(t.CacheListRemoveValueResponse={})).Success="Success",o.Error="Error",(a=t.CacheListRetainResponse||(t.CacheListRetainResponse={})).Success="Success",a.Error="Error",(c=t.CacheListFetchResponse||(t.CacheListFetchResponse={})).Hit="Hit",c.Miss="Miss",c.Error="Error",(l=t.CacheListLengthResponse||(t.CacheListLengthResponse={})).Hit="Hit",l.Miss="Miss",l.Error="Error",(u=t.CacheListPopBackResponse||(t.CacheListPopBackResponse={})).Hit="Hit",u.Miss="Miss",u.Error="Error",(d=t.CacheListPopFrontResponse||(t.CacheListPopFrontResponse={})).Hit="Hit",d.Miss="Miss",d.Error="Error"},18318:(e,t,r)=>{"use strict";r.d(t,{Qv:()=>u,XS:()=>a,hw:()=>l,qb:()=>o});var i=r(17447),n=r(63189);function s(e){return e}
1function o(e){return e.state.isPaused}function a(e){return"success"===e.state.status}function c(e){return!0}function l(e,t={}){let r=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??o,i=e.getMutationCache().getAll().flatMap(e=>r(e)?[{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}]:[]),u=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??a,d=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??c,p=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??s;return{mutations:i,queries:e.getQueryCache().getAll().flatMap(e=>{let t;return u(e)?[{dehydratedAt:Date.now(),state:{...e.state,...void 0!==e.state.data&&{data:p(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,..."pending"===e.state.status&&{promise:(t=e.promise?.then(p).catch(e=>d(e)?Promise.reject(Error("redacted")):Promise.reject(e)),t?.catch(n.lQ),t)},...e.meta&&{meta:e.meta}}]:[]})}}function u(e,t,r){if("object"!=typeof t||null===t)return;let o=e.getMutationCache(),a=e.getQueryCache(),c=r?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??s,l=t.mutations||[],u=t.queries||[];l.forEach(({state:t,...i})=>{o.build(e,{...e.getDefaultOptions().hydrate?.mutations,...r?.defaultOptions?.mutations,...i},t)}),u.forEach(({queryKey:t,state:s,queryHash:o,meta:l,promise:u,dehydratedAt:d})=>{let p=u?(0,i.b)(u):void 0,h=void 0===s.data?p?.data:s.data,g=void 0===h?h:c(h),f=a.get(o),m=f?.state.status==="pending",y=f?.state.fetchStatus==="fetching";if(f){let e=p&&void 0!==d&&d>f.state.dataUpdatedAt;if(s.dataUpdatedAt>f.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=s;f.setState({...t,data:g})}}else f=a.build(e,{...e.getDefaultOptions().hydrate?.queries,...r?.defaultOptions?.queries,queryKey:t,queryHash:o,meta:l},{...s,data:g,fetchStatus:"idle",status:void 0!==g?"success":s.status});u&&!m&&!y&&(void 0===d||d>f.state.dataUpdatedAt)&&f.fetch(void 0,{initialPromise:Promise.resolve(u).then(c)}).catch(n.lQ)})}},18935:(e,t,r)=>{var i=r(64555),n={};i.exportSymbol("_DeleteWebhookRequest",null,n),i.exportSymbol("_DeleteWebhookResponse",null,n),i.exportSymbol("_GetWebhookSecretRequest",null,n),i.exportSymbol("_GetWebhookSecretResponse",null,n),i.exportSymbol("_ListWebhookRequest",null,n),i.exportSymbol("_ListWebhooksResponse",null,n),i.exportSymbol("_PutWebhookRequest",null,n),i.exportSymbol("_PutWebhookResponse",null,n),i.exportSymbol("_RotateWebhookSecretRequest",null,n),i.exportSymbol("_RotateWebhookSecretResponse",null,n),i.exportSymbol("_Webhook",null,n),i.exportSymbol("_WebhookDestination",null,n),i.exportSymbol("_WebhookDestination.KindCase",null,n),i.exportSymbol("_WebhookId",null,n),n._WebhookId=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._WebhookId,i.Message),i.DEBUG&&!COMPILED&&(n._WebhookId.displayName="proto._WebhookId"),n._Webhook=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._Webhook,i.Message),i.DEBUG&&!COMPILED&&(n._Webhook.displayName="proto._Webhook"),n._PutWebhookRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._PutWebhookRequest,i.Message),i.DEBUG&&!COMPILED&&(n._PutWebhookRequest.displayName="proto._PutWebhookRequest"),n._PutWebhookResponse=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._PutWebhookResponse,i.Message),i.DEBUG&&!COMPILED&&(n._PutWebhookResponse.displayName="proto._PutWebhookResponse"),n._DeleteWebhookRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._DeleteWebhookRequest,i.Message),i.DEBUG&&!COMPILED&&(n._DeleteWebhookRequest.displayName="proto._DeleteWebhookRequest"),n._DeleteWebhookResponse=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._DeleteWebhookResponse,i.Message),i.DEBUG&&!COMPILED&&(n._DeleteWebhookResponse.displayName="proto._DeleteWebhookResponse"),n._ListWebhookRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._ListWebhookRequest,i.Message),i.DEBUG&&!COMPILED&&(n._ListWebhookRequest.displayName="proto._ListWebhookRequest"),n._ListWebhooksResponse=function(e){i.Message.initialize(this,e,0,-1,n._ListWebhooksResponse.repeatedFields_,null)},i.inherits(n._ListWebhooksResponse,i.Message),i.DEBUG&&!COMPILED&&(n._ListWebhooksResponse.displayName="proto._ListWebhooksResponse"),n._GetWebhookSecretRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._GetWebhookSecretRequest,i.Message),i.DEBUG&&!COMPILED&&(n._GetWebhookSecretRequest.displayName="proto._GetWebhookSecretRequest"),n._GetWebhookSecretResponse=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._GetWebhookSecretResponse,i.Message),i.DEBUG&&!COMPILED&&(n._GetWebhookSecretResponse.displayName="proto._GetWebhookSecretResponse"),n._WebhookDestination=function(e){i.Message.initialize(this,e,0,-1,null,n._WebhookDestination.oneofGroups_)},i.inherits(n._WebhookDestination,i.Message),i.DEBUG&&!COMPILED&&(n._WebhookDestination.displayName="proto._WebhookDestination"),n._RotateWebhookSecretRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._RotateWebhookSecretRequest,i.Message),i.DEBUG&&!COMPILED&&(n._RotateWebhookSecretRequest.displayName="proto._RotateWebhookSecretRequest"),n._RotateWebhookSecretResponse=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._RotateWebhookSecretResponse,i.Message),i.DEBUG&&!COMPILED&&(n._RotateWebhookSecretResponse.displayName="proto._RotateWebhookSecretResponse"),i.Message.GENERATE_TO_OBJ
1ECT&&(n._WebhookId.prototype.toObject=function(e){return n._WebhookId.toObject(e,this)},n._WebhookId.toObject=function(e,t){var r={cacheName:i.Message.getFieldWithDefault(t,1,""),webhookName:i.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),n._WebhookId.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._WebhookId;return n._WebhookId.deserializeBinaryFromReader(r,t)},n._WebhookId.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setCacheName(r);break;case 2:var r=t.readString();e.setWebhookName(r);break;default:t.skipField()}return e},n._WebhookId.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._WebhookId.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._WebhookId.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheName()).length>0&&t.writeString(1,r),(r=e.getWebhookName()).length>0&&t.writeString(2,r)},n._WebhookId.prototype.getCacheName=function(){return i.Message.getFieldWithDefault(this,1,"")},n._WebhookId.prototype.setCacheName=function(e){return i.Message.setProto3StringField(this,1,e)},n._WebhookId.prototype.getWebhookName=function(){return i.Message.getFieldWithDefault(this,2,"")},n._WebhookId.prototype.setWebhookName=function(e){return i.Message.setProto3StringField(this,2,e)},i.Message.GENERATE_TO_OBJECT&&(n._Webhook.prototype.toObject=function(e){return n._Webhook.toObject(e,this)},n._Webhook.toObject=function(e,t){var r,s={webhookId:(r=t.getWebhookId())&&n._WebhookId.toObject(e,r),topicName:i.Message.getFieldWithDefault(t,2,""),destination:(r=t.getDestination())&&n._WebhookDestination.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),n._Webhook.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._Webhook;return n._Webhook.deserializeBinaryFromReader(r,t)},n._Webhook.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new n._WebhookId;t.readMessage(r,n._WebhookId.deserializeBinaryFromReader),e.setWebhookId(r);break;case 2:var r=t.readString();e.setTopicName(r);break;case 3:var r=new n._WebhookDestination;t.readMessage(r,n._WebhookDestination.deserializeBinaryFromReader),e.setDestination(r);break;default:t.skipField()}return e},n._Webhook.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._Webhook.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._Webhook.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getWebhookId())&&t.writeMessage(1,r,n._WebhookId.serializeBinaryToWriter),(r=e.getTopicName()).length>0&&t.writeString(2,r),null!=(r=e.getDestination())&&t.writeMessage(3,r,n._WebhookDestination.serializeBinaryToWriter)},n._Webhook.prototype.getWebhookId=function(){return i.Message.getWrapperField(this,n._WebhookId,1)},n._Webhook.prototype.setWebhookId=function(e){return i.Message.setWrapperField(this,1,e)},n._Webhook.prototype.clearWebhookId=function(){return this.setWebhookId(void 0)},n._Webhook.prototype.hasWebhookId=function(){return null!=i.Message.getField(this,1)},n._Webhook.prototype.getTopicName=function(){return i.Message.getFieldWithDefault(this,2,"")},n._Webhook.prototype.setTopicName=function(e){return i.Message.setProto3StringField(this,2,e)},n._Webhook.prototype.getDestination=function(){return i.Message.getWrapperField(this,n._WebhookDestination,3)},n._Webhook.prototype.setDestination=function(e){return i.Message.setWrapperField(this,3,e)},n._Webhook.prototype.clearDestination=function(){return this.setDestination(void 0)},n._Webhook.prototype.hasDestination=function(){return null!=i.Message.getField(this,3)},i.Message.GENERATE_TO_OBJECT&&(n._PutWebhookRequest.prototype.toObject=function(e){return n._PutWebhookRequest.toObject(e,this)},n._PutWebhookRequest.toObject=function(e,t){var r,i={webhook:(r=t.getWebhook())&&n._Webhook.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),n._PutWebhookRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._PutWebhookRequest;return n._PutWebhookRequest.deserializeBinaryFromReader(r,t)},n._PutWebhookRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new n._Webhook;t.readMessage(r,n._Webhook.deserializeBinaryFromReader),e.setWebhook(r)}else t.skipField();return e},n._PutWebhookRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._PutWebhookRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._PutWebhookRequest.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getWebhook())&&t.writeMessage(1,r,n._Webhook.serializeBinaryToWriter)},n._PutWebhookRequest.prototype.getWebhook=function(){return i.Message.getWrapperField(this,n._Webhook,1)},n._PutWebhookRequest.prototype.setWebhook=function(e){return i.Message.setWrapperField(this,1,e)},n._PutWebhookRequest.prototype.clearWebhook=function(){return this.setWebhook(void 0)},n._PutWebhookRequest.prototype.hasWebhook=function(){return null!=i.Message.getField(this,1)}
1,i.Message.GENERATE_TO_OBJECT&&(n._PutWebhookResponse.prototype.toObject=function(e){return n._PutWebhookResponse.toObject(e,this)},n._PutWebhookResponse.toObject=function(e,t){var r={secretString:i.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),n._PutWebhookResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._PutWebhookResponse;return n._PutWebhookResponse.deserializeBinaryFromReader(r,t)},n._PutWebhookResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setSecretString(r)}else t.skipField();return e},n._PutWebhookResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._PutWebhookResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._PutWebhookResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSecretString()).length>0&&t.writeString(1,r)},n._PutWebhookResponse.prototype.getSecretString=function(){return i.Message.getFieldWithDefault(this,1,"")},n._PutWebhookResponse.prototype.setSecretString=function(e){return i.Message.setProto3StringField(this,1,e)},i.Message.GENERATE_TO_OBJECT&&(n._DeleteWebhookRequest.prototype.toObject=function(e){return n._DeleteWebhookRequest.toObject(e,this)},n._DeleteWebhookRequest.toObject=function(e,t){var r,i={webhookId:(r=t.getWebhookId())&&n._WebhookId.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),n._DeleteWebhookRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._DeleteWebhookRequest;return n._DeleteWebhookRequest.deserializeBinaryFromReader(r,t)},n._DeleteWebhookRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new n._WebhookId;t.readMessage(r,n._WebhookId.deserializeBinaryFromReader),e.setWebhookId(r)}else t.skipField();return e},n._DeleteWebhookRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._DeleteWebhookRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._DeleteWebhookRequest.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getWebhookId())&&t.writeMessage(1,r,n._WebhookId.serializeBinaryToWriter)},n._DeleteWebhookRequest.prototype.getWebhookId=function(){return i.Message.getWrapperField(this,n._WebhookId,1)},n._DeleteWebhookRequest.prototype.setWebhookId=function(e){return i.Message.setWrapperField(this,1,e)},n._DeleteWebhookRequest.prototype.clearWebhookId=function(){return this.setWebhookId(void 0)},n._DeleteWebhookRequest.prototype.hasWebhookId=function(){return null!=i.Message.getField(this,1)},i.Message.GENERATE_TO_OBJECT&&(n._DeleteWebhookResponse.prototype.toObject=function(e){return n._DeleteWebhookResponse.toObject(e,this)},n._DeleteWebhookResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n._DeleteWebhookResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._DeleteWebhookResponse;return n._DeleteWebhookResponse.deserializeBinaryFromReader(r,t)},n._DeleteWebhookResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n._DeleteWebhookResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._DeleteWebhookResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._DeleteWebhookResponse.serializeBinaryToWriter=function(e,t){},i.Message.GENERATE_TO_OBJECT&&(n._ListWebhookRequest.prototype.toObject=function(e){return n._ListWebhookRequest.toObject(e,this)},n._ListWebhookRequest.toObject=function(e,t){var r={cacheName:i.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),n._ListWebhookRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._ListWebhookRequest;return n._ListWebhookRequest.deserializeBinaryFromReader(r,t)},n._ListWebhookRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setCacheName(r)}else t.skipField();return e},n._ListWebhookRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._ListWebhookRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._ListWebhookRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheName()).length>0&&t.writeString(1,r)},n._ListWebhookRequest.prototype.getCacheName=function(){return i.Message.getFieldWithDefault(this,1,"")},n._ListWebhookRequest.prototype.setCacheName=function(e){return i.Message.setProto3StringField(this,1,e)},n._ListWebhooksResponse.repeatedFields_=[1],i.Message.GENERATE_TO_OBJ
1ECT&&(n._ListWebhooksResponse.prototype.toObject=function(e){return n._ListWebhooksResponse.toObject(e,this)},n._ListWebhooksResponse.toObject=function(e,t){var r={webhookList:i.Message.toObjectList(t.getWebhookList(),n._Webhook.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),n._ListWebhooksResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._ListWebhooksResponse;return n._ListWebhooksResponse.deserializeBinaryFromReader(r,t)},n._ListWebhooksResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new n._Webhook;t.readMessage(r,n._Webhook.deserializeBinaryFromReader),e.addWebhook(r)}else t.skipField();return e},n._ListWebhooksResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._ListWebhooksResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._ListWebhooksResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getWebhookList()).length>0&&t.writeRepeatedMessage(1,r,n._Webhook.serializeBinaryToWriter)},n._ListWebhooksResponse.prototype.getWebhookList=function(){return i.Message.getRepeatedWrapperField(this,n._Webhook,1)},n._ListWebhooksResponse.prototype.setWebhookList=function(e){return i.Message.setRepeatedWrapperField(this,1,e)},n._ListWebhooksResponse.prototype.addWebhook=function(e,t){return i.Message.addToRepeatedWrapperField(this,1,e,n._Webhook,t)},n._ListWebhooksResponse.prototype.clearWebhookList=function(){return this.setWebhookList([])},i.Message.GENERATE_TO_OBJECT&&(n._GetWebhookSecretRequest.prototype.toObject=function(e){return n._GetWebhookSecretRequest.toObject(e,this)},n._GetWebhookSecretRequest.toObject=function(e,t){var r={cacheName:i.Message.getFieldWithDefault(t,1,""),webhookName:i.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),n._GetWebhookSecretRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GetWebhookSecretRequest;return n._GetWebhookSecretRequest.deserializeBinaryFromReader(r,t)},n._GetWebhookSecretRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setCacheName(r);break;case 2:var r=t.readString();e.setWebhookName(r);break;default:t.skipField()}return e},n._GetWebhookSecretRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GetWebhookSecretRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GetWebhookSecretRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheName()).length>0&&t.writeString(1,r),(r=e.getWebhookName()).length>0&&t.writeString(2,r)},n._GetWebhookSecretRequest.prototype.getCacheName=function(){return i.Message.getFieldWithDefault(this,1,"")},n._GetWebhookSecretRequest.prototype.setCacheName=function(e){return i.Message.setProto3StringField(this,1,e)},n._GetWebhookSecretRequest.prototype.getWebhookName=function(){return i.Message.getFieldWithDefault(this,2,"")},n._GetWebhookSecretRequest.prototype.setWebhookName=function(e){return i.Message.setProto3StringField(this,2,e)},i.Message.GENERATE_TO_OBJECT&&(n._GetWebhookSecretResponse.prototype.toObject=function(e){return n._GetWebhookSecretResponse.toObject(e,this)},n._GetWebhookSecretResponse.toObject=function(e,t){var r={cacheName:i.Message.getFieldWithDefault(t,1,""),webhookName:i.Message.getFieldWithDefault(t,2,""),secretString:i.Message.getFieldWithDefault(t,3,"")};return e&&(r.$jspbMessageInstance=t),r}),n._GetWebhookSecretResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GetWebhookSecretResponse;return n._GetWebhookSecretResponse.deserializeBinaryFromReader(r,t)},n._GetWebhookSecretResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setCacheName(r);break;case 2:var r=t.readString();e.setWebhookName(r);break;case 3:var r=t.readString();e.setSecretString(r);break;default:t.skipField()}return e},n._GetWebhookSecretResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GetWebhookSecretResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GetWebhookSecretResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheName()).length>0&&t.writeString(1,r),(r=e.getWebhookName()).length>0&&t.writeString(2,r),(r=e.getSecretString()).length>0&&t.writeString(3,r)},n._GetWebhookSecretResponse.prototype.getCacheName=function(){return i.Message.getFieldWithDefault(this,1,"")},n._GetWebhookSecretResponse.prototype.setCacheName=function(e){return i.Message.setProto3StringField(this,1,e)},n._GetWebhookSecretResponse.prototype.getWebhookName=function(){return i.Message.getFieldWithDefault(this,2,"")},n._GetWebhookSecretResponse.prototype.setWebhookName=function(e){return i.Message.setProto3StringField(this,2,e)},n._GetWebhookSecretResponse.prototype.getSecretString=function(){return i.Message.getFieldWithDefault(this,3,"")},n._GetWebhookSecretResponse.prototype.setSecretString=function(e){return i.Message.setProto3StringField(this,3,e)},n._WebhookDestination.oneofGroups_=[[1]],n._WebhookDestination.KindCase={KIND_NOT_SET:0,POST_URL:1},n._WebhookDestination.prototype.getKindCase=function(){return i.Message.computeOneofCase(this,n._WebhookDestination.oneofGroups_[0])}
1,i.Message.GENERATE_TO_OBJECT&&(n._WebhookDestination.prototype.toObject=function(e){return n._WebhookDestination.toObject(e,this)},n._WebhookDestination.toObject=function(e,t){var r={postUrl:i.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),n._WebhookDestination.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._WebhookDestination;return n._WebhookDestination.deserializeBinaryFromReader(r,t)},n._WebhookDestination.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setPostUrl(r)}else t.skipField();return e},n._WebhookDestination.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._WebhookDestination.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._WebhookDestination.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=i.Message.getField(e,1))&&t.writeString(1,r)},n._WebhookDestination.prototype.getPostUrl=function(){return i.Message.getFieldWithDefault(this,1,"")},n._WebhookDestination.prototype.setPostUrl=function(e){return i.Message.setOneofField(this,1,n._WebhookDestination.oneofGroups_[0],e)},n._WebhookDestination.prototype.clearPostUrl=function(){return i.Message.setOneofField(this,1,n._WebhookDestination.oneofGroups_[0],void 0)},n._WebhookDestination.prototype.hasPostUrl=function(){return null!=i.Message.getField(this,1)},i.Message.GENERATE_TO_OBJECT&&(n._RotateWebhookSecretRequest.prototype.toObject=function(e){return n._RotateWebhookSecretRequest.toObject(e,this)},n._RotateWebhookSecretRequest.toObject=function(e,t){var r,i={webhookId:(r=t.getWebhookId())&&n._WebhookId.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),n._RotateWebhookSecretRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._RotateWebhookSecretRequest;return n._RotateWebhookSecretRequest.deserializeBinaryFromReader(r,t)},n._RotateWebhookSecretRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new n._WebhookId;t.readMessage(r,n._WebhookId.deserializeBinaryFromReader),e.setWebhookId(r)}else t.skipField();return e},n._RotateWebhookSecretRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._RotateWebhookSecretRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._RotateWebhookSecretRequest.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getWebhookId())&&t.writeMessage(1,r,n._WebhookId.serializeBinaryToWriter)},n._RotateWebhookSecretRequest.prototype.getWebhookId=function(){return i.Message.getWrapperField(this,n._WebhookId,1)},n._RotateWebhookSecretRequest.prototype.setWebhookId=function(e){return i.Message.setWrapperField(this,1,e)},n._RotateWebhookSecretRequest.prototype.clearWebhookId=function(){return this.setWebhookId(void 0)},n._RotateWebhookSecretRequest.prototype.hasWebhookId=function(){return null!=i.Message.getField(this,1)},i.Message.GENERATE_TO_OBJECT&&(n._RotateWebhookSecretResponse.prototype.toObject=function(e){return n._RotateWebhookSecretResponse.toObject(e,this)},n._RotateWebhookSecretResponse.toObject=function(e,t){var r={secretString:i.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),n._RotateWebhookSecretResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._RotateWebhookSecretResponse;return n._RotateWebhookSecretResponse.deserializeBinaryFromReader(r,t)},n._RotateWebhookSecretResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setSecretString(r)}else t.skipField();return e},n._RotateWebhookSecretResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._RotateWebhookSecretResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._RotateWebhookSecretResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSecretString()).length>0&&t.writeString(1,r)},n._RotateWebhookSecretResponse.prototype.getSecretString=function(){return i.Message.getFieldWithDefault(this,1,"")},n._RotateWebhookSecretResponse.prototype.setSecretString=function(e){return i.Message.setProto3StringField(this,1,e)},i.object.extend(t,n)},19090:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToBase64=t.decodeFromBase64=void 0;let i=r(32929);t.decodeFromBase64=e=>i.Buffer.from(e,"base64").toString("utf8"),t.encodeToBase64=e=>i.Buffer.from(e,"utf-8").toString("base64")},19434:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(52725),s=r(94452),o=new TextDecoder;class a extends i.ResponseBase{constructor(e){super(),this.type=s.CacheListPopFrontResponse.Hit,this.body=e}value(){return o.decode(this.body)}valueString(){return o.decode(this.body)}valueUint8Array(){return this.body}toString(){let e=(0,n.truncateString)(this.valueString());return`${super.toString()}: ${e}`}}t.Hit=a;class c extends i.BaseResponseMiss{constructor(){super(),this.type=s.CacheListPopFrontResponse.Miss}value(){}}t.Miss=c;class l extends i.BaseResponseError{constructor(e){super(e),this.type=s.CacheListPopFrontResponse.Error}value(){}}t.Error=l},20176:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},21312:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ItemType=void 0,(r=t.ItemType||(t.ItemType={}))[r.SCALAR=0]="SCALAR",r[r.DICTIONARY=1]="DICTIONARY",r[r.LIST=2]="LIST",r[r.SET=3]="SET",r[r.SORTED_SET=4]="SORTED_SET"},21566:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.LeaderboardUpsertResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.LeaderboardUpsertResponse.Error}}t.Error=o},21587:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(e){super(),this.type=n.CacheItemGetTypeResponse.Hit,this.keyType=e}itemType(){return this.keyType}toString(){return`${super.toString()}: item type: ${this.keyType}`}}t.Hit=s;class o extends i.BaseResponseMiss{constructor(){super(),this.type=n.CacheItemGetTypeResponse.Miss}itemType(){}}t.Miss=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheItemGetTypeResponse.Error}itemType(){}}t.Error=a},21595:(e,t,r)=>{var i=r(64555),n={},s=r(90391);i.object.extend(n,s),i.exportSymbol("_GenerateDisposableTokenRequest",null,n),i.exportSymbol("_GenerateDisposableTokenRequest.Expires",null,n),i.exportSymbol("_GenerateDisposableTokenResponse",null,n),n._GenerateDisposableTokenRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._GenerateDisposableTokenRequest,i.Message),i.DEBUG&&!COMPILED&&(n._GenerateDisposableTokenRequest.displayName="proto._GenerateDisposableTokenRequest"),n._GenerateDisposableTokenRequest.Expires=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._GenerateDisposableTokenRequest.Expires,i.Message),i.DEBUG&&!COMPILED&&(n._GenerateDisposableTokenRequest.Expires.displayName="proto._GenerateDisposableTokenRequest.Expires"),n._GenerateDisposableTokenResponse=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._GenerateDisposableTokenResponse,i.Message),i.DEBUG&&!COMPILED&&(n._GenerateDisposableTokenResponse.displayName="proto._GenerateDisposableTokenResponse"),i.Message.GENERATE_TO_OBJECT&&(n._GenerateDisposableTokenRequest.prototype.toObject=function(e){return n._GenerateDisposableTokenRequest.toObject(e,this)},n._GenerateDisposableTokenRequest.toObject=function(e,t){var r,o={expires:(r=t.getExpires())&&n._GenerateDisposableTokenRequest.Expires.toObject(e,r),authToken:i.Message.getFieldWithDefault(t,2,""),permissions:(r=t.getPermissions())&&s.Permissions.toObject(e,r),tokenId:i.Message.getFieldWithDefault(t,4,"")};return e&&(o.$jspbMessageInstance=t),o}),n._GenerateDisposableTokenRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GenerateDisposableTokenRequest;return n._GenerateDisposableTokenRequest.deserializeBinaryFromReader(r,t)},n._GenerateDisposableTokenRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new n._GenerateDisposableTokenRequest.Expires;t.readMessage(r,n._GenerateDisposableTokenRequest.Expires.deserializeBinaryFromReader),e.setExpires(r);break;case 2:var r=t.readString();e.setAuthToken(r);break;case 3:var r=new s.Permissions;t.readMessage(r,s.Permissions.deserializeBinaryFromReader),e.setPermissions(r);break;case 4:var r=t.readString();e.setTokenId(r);break;default:t.skipField()}return e},n._GenerateDisposableTokenRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GenerateDisposableTokenRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GenerateDisposableTokenRequest.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getExpires())&&t.writeMessage(1,r,n._GenerateDisposableTokenRequest.Expires.serializeBinaryToWriter),(r=e.getAuthToken()).length>0&&t.writeString(2,r),null!=(r=e.getPermissions())&&t.writeMessage(3,r,s.Permissions.serializeBinaryToWriter),(r=e.getTokenId()).length>0&&t.writeString(4,r)}
1,i.Message.GENERATE_TO_OBJECT&&(n._GenerateDisposableTokenRequest.Expires.prototype.toObject=function(e){return n._GenerateDisposableTokenRequest.Expires.toObject(e,this)},n._GenerateDisposableTokenRequest.Expires.toObject=function(e,t){var r={validForSeconds:i.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),n._GenerateDisposableTokenRequest.Expires.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GenerateDisposableTokenRequest.Expires;return n._GenerateDisposableTokenRequest.Expires.deserializeBinaryFromReader(r,t)},n._GenerateDisposableTokenRequest.Expires.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setValidForSeconds(r)}else t.skipField();return e},n._GenerateDisposableTokenRequest.Expires.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GenerateDisposableTokenRequest.Expires.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GenerateDisposableTokenRequest.Expires.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getValidForSeconds())&&t.writeUint32(1,r)},n._GenerateDisposableTokenRequest.Expires.prototype.getValidForSeconds=function(){return i.Message.getFieldWithDefault(this,1,0)},n._GenerateDisposableTokenRequest.Expires.prototype.setValidForSeconds=function(e){return i.Message.setProto3IntField(this,1,e)},n._GenerateDisposableTokenRequest.prototype.getExpires=function(){return i.Message.getWrapperField(this,n._GenerateDisposableTokenRequest.Expires,1)},n._GenerateDisposableTokenRequest.prototype.setExpires=function(e){return i.Message.setWrapperField(this,1,e)},n._GenerateDisposableTokenRequest.prototype.clearExpires=function(){return this.setExpires(void 0)},n._GenerateDisposableTokenRequest.prototype.hasExpires=function(){return null!=i.Message.getField(this,1)},n._GenerateDisposableTokenRequest.prototype.getAuthToken=function(){return i.Message.getFieldWithDefault(this,2,"")},n._GenerateDisposableTokenRequest.prototype.setAuthToken=function(e){return i.Message.setProto3StringField(this,2,e)},n._GenerateDisposableTokenRequest.prototype.getPermissions=function(){return i.Message.getWrapperField(this,s.Permissions,3)},n._GenerateDisposableTokenRequest.prototype.setPermissions=function(e){return i.Message.setWrapperField(this,3,e)},n._GenerateDisposableTokenRequest.prototype.clearPermissions=function(){return this.setPermissions(void 0)},n._GenerateDisposableTokenRequest.prototype.hasPermissions=function(){return null!=i.Message.getField(this,3)},n._GenerateDisposableTokenRequest.prototype.getTokenId=function(){return i.Message.getFieldWithDefault(this,4,"")},n._GenerateDisposableTokenRequest.prototype.setTokenId=function(e){return i.Message.setProto3StringField(this,4,e)},i.Message.GENERATE_TO_OBJECT&&(n._GenerateDisposableTokenResponse.prototype.toObject=function(e){return n._GenerateDisposableTokenResponse.toObject(e,this)},n._GenerateDisposableTokenResponse.toObject=function(e,t){var r={apiKey:i.Message.getFieldWithDefault(t,1,""),endpoint:i.Message.getFieldWithDefault(t,2,""),validUntil:i.Message.getFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),n._GenerateDisposableTokenResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GenerateDisposableTokenResponse;return n._GenerateDisposableTokenResponse.deserializeBinaryFromReader(r,t)},n._GenerateDisposableTokenResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setApiKey(r);break;case 2:var r=t.readString();e.setEndpoint(r);break;case 3:var r=t.readUint64();e.setValidUntil(r);break;default:t.skipField()}return e},n._GenerateDisposableTokenResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GenerateDisposableTokenResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GenerateDisposableTokenResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getApiKey()).length>0&&t.writeString(1,r),(r=e.getEndpoint()).length>0&&t.writeString(2,r),0!==(r=e.getValidUntil())&&t.writeUint64(3,r)},n._GenerateDisposableTokenResponse.prototype.getApiKey=function(){return i.Message.getFieldWithDefault(this,1,"")},n._GenerateDisposableTokenResponse.prototype.setApiKey=function(e){return i.Message.setProto3StringField(this,1,e)},n._GenerateDisposableTokenResponse.prototype.getEndpoint=function(){return i.Message.getFieldWithDefault(this,2,"")},n._GenerateDisposableTokenResponse.prototype.setEndpoint=function(e){return i.Message.setProto3StringField(this,2,e)},n._GenerateDisposableTokenResponse.prototype.getValidUntil=function(){return i.Message.getFieldWithDefault(this,3,0)},n._GenerateDisposableTokenResponse.prototype.setValidUntil=function(e){return i.Message.setProto3IntField(this,3,e)},i.object.extend(t,n)},22187:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(e){super(),this.type=n.CacheIncrementResponse.Success,this.body=e}value(){return this.body}valueNumber(){return this.body}toString(){return`${super.toString()}: value: ${this.value()}`}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheIncrementResponse.Error}value(){}}t.Error=o},22627:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(e){super(),this.type=n.CacheSetBatchResponse.Success,this.body=e}results(){return this.body}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSetBatchResponse.Error}}t.Error=o},22629:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__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)&&i(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AuthClient=void 0;let o=s(r(43092)),a=s(r(71276));class c{constructor(e,t,r){this.methodDescriptorLogin=new o.MethodDescriptor("/auth.Auth/Login",o.MethodType.SERVER_STREAMING,a._LoginRequest,a._LoginResponse,e=>e.serializeBinary(),a._LoginResponse.deserializeBinary),this.methodDescriptorGenerateApiToken=new o.MethodDescriptor("/auth.Auth/GenerateApiToken",o.MethodType.UNARY,a._GenerateApiTokenRequest,a._GenerateApiTokenResponse,e=>e.serializeBinary(),a._GenerateApiTokenResponse.deserializeBinary),this.methodDescriptorRefreshApiToken=new o.MethodDescriptor("/auth.Auth/RefreshApiToken",o.MethodType.UNARY,a._RefreshApiTokenRequest,a._RefreshApiTokenResponse,e=>e.serializeBinary(),a._RefreshApiTokenResponse.deserializeBinary),r||(r={}),t||(t={}),r.format="text",this.client_=new o.GrpcWebClientBase(r),this.hostname_=e,this.credentials_=t,this.options_=r}login(e,t){return this.client_.serverStreaming(this.hostname_+"/auth.Auth/Login",e,t||{},this.methodDescriptorLogin)}generateApiToken(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/auth.Auth/GenerateApiToken",e,t||{},this.methodDescriptorGenerateApiToken,r):this.client_.unaryCall(this.hostname_+"/auth.Auth/GenerateApiToken",e,t||{},this.methodDescriptorGenerateApiToken)}refreshApiToken(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/auth.Auth/RefreshApiToken",e,t||{},this.methodDescriptorRefreshApiToken,r):this.client_.unaryCall(this.hostname_+"/auth.Auth/RefreshApiToken",e,t||{},this.methodDescriptorRefreshApiToken)}}t.AuthClient=c},23041:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.PostUrlWebhookDestination=t.WebhookDestinationType=void 0,(r=t.WebhookDestinationType||(t.WebhookDestinationType={})).PostUrl="post_url";class i{constructor(e){this._url=e}url(){return this._url}getType(){return r.PostUrl}}t.PostUrlWebhookDestination=i},24197:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(9370),t),n(r(37276),t),n(r(20176),t),n(r(49341),t),n(r(56173),t)},24299:()=>{},24384:(e,t,r)=>{var i=r(64555),n={},s=r(15538);i.object.extend(n,s),i.exportSymbol("RetrySemantic",null,n),i.exportSymbol("retrySemantic",null,n),n.RetrySemantic={NOTRETRYABLE:0,RETRYABLE:1},n.retrySemantic=new i.ExtensionFieldInfo(5e4,{retrySemantic:0},null,null,0),s.MessageOptions.extensionsBinary[5e4]=new i.ExtensionFieldBinaryInfo(n.retrySemantic,i.BinaryReader.prototype.readEnum,i.BinaryWriter.prototype.writeEnum,void 0,void 0,!1),s.MessageOptions.extensions[5e4]=n.retrySemantic,i.object.extend(t,n)},24587:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(11205),n=r(17214),s=r(3590),o=r(91313),a=r(94452),c=new TextDecoder;class l extends n.ResponseBase{constructor(e,t){super(),this.type=a.CacheDictionaryGetFieldsResponse.Hit,this.responses=[],this.items=e,this.fields=t,e.forEach((e,r)=>{e.result===o._ECacheResult.Hit?this.responses.push(new s.Hit(e.cacheBody,t[r])):e.result===o._ECacheResult.Miss?this.responses.push(new s.Miss(t[r])):this.responses.push(new s.Error(new i.UnknownError(e.result.toString()),t[r]))})}valueMapStringString(){return this.items.reduce((e,t,r)=>(t.result===o._ECacheResult.Hit&&e.set(c.decode(this.fields[r]),c.decode(t.cacheBody)),e),new Map)}valueMap(){return this.valueMapStringString()}valueMapStringUint8Array(){return this.items.reduce((e,t,r)=>(t.result===o._ECacheResult.Hit&&e.set(c.decode(this.fields[r]),t.cacheBody),e),new Map)}valueRecordStringString(){return this.items.reduce((e,t,r)=>(t.result===o._ECacheResult.Hit&&(e[c.decode(this.fields[r])]=c.decode(t.cacheBody)),e),{})}valueRecord(){return this.valueRecordStringString()}value(){return this.valueRecordStringString()}valueRecordStringUint8Array(){return this.items.reduce((e,t,r)=>(t.result===o._ECacheResult.Hit&&(e[c.decode(this.fields[r])]=t.cacheBody),e),{})}toString(){let e="";return this.valueMapStringString().forEach((t,r)=>{let i=`${r}: ${t}, `;e+=i}),`${super.toString()}: valueDictionaryStringString: ${e.slice(0,-2)}`}}t.Hit=l;class u extends n.BaseResponseMiss{constructor(){super(...arguments),this.type=a.CacheDictionaryGetFieldsResponse.Miss}value(){}}t.Miss=u;class d extends n.BaseResponseError{constructor(e){super(e),this.type=a.CacheDictionaryGetFieldsResponse.Error}value(){}}t.Error=d},24832:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CacheClient=void 0;let i=r(82062),n=r(22663),s=r(77336),o=r(35020),a=r(89966),c=r(42378),l=r(52725),u=r(84055);class d extends o.AbstractCacheClient{constructor(e){var t,r;(0,l.validateTtlSeconds)(e.defaultTtlSeconds);const o=null!=(t=e.configuration)?t:function(){let e=c.Configurations.Browser.latest();return e.getLoggerFactory().getLogger("CacheClient").info("No configuration provided to CacheClient. Using default configuration. For production use, consider specifying an explicit configuration."),e}(),d=null!=(r=e.credentialProvider)?r:(0,u.getDefaultCredentialProvider)(),p={...e,configuration:o,credentialProvider:d},h=function(e){return new i.CacheControlClient({configuration:e.configuration,credentialProvider:e.credentialProvider})}(p);super(h,[function(e){return new n.CacheDataClient({configuration:e.configuration,credentialProvider:e.credentialProvider,defaultTtlSeconds:e.defaultTtlSeconds})}(p)],function(e){return new s.PingClient({endpoint:(0,a.getWebCacheEndpoint)(e.credentialProvider),configuration:e.configuration})}(p))}close(){this.controlClient.close(),this.dataClients.map(e=>e.close())}get configuration(){return this._configuration}static async create(e){return new d(e)}}t.CacheClient=d},24908:(e,t,r)=>{"use strict";let i;r.d(t,{L:()=>D});var n=r(95787),s=r(53476),o=r(30357),a=r(2275),c=r(47111),l=r(73924),u=r(54572),d=r(27621);function p(e,t,r){let i,n=0,s=[],o=!0,a=0,c=[],{stop:l}=(0,u.q)(e,t,"message",({data:e})=>{if("wrote"!==e.type||e.streamId!==r)return;let t=c[0];t&&(t.id===e.id?(c.shift(),n+=e.additionalBytesCount,s.push(e.result),i=e.trailer,t.writeCallback?t.writeCallback(e.result.byteLength):t.finishCallback&&t.finishCallback()):t.id<e.id&&l())});function p(){let e=0===s.length?new Uint8Array(0):(0,d.wh)(s.concat(i)),t={rawBytesCount:n,output:e,outputBytesCount:e.byteLength,encoding:"deflate"};return n=0,s=[],t}function h(){o||(t.postMessage({action:"reset",streamId:r}),o=!0)}return{isAsync:!0,get isEmpty(){return o},write(e,i){t.postMessage({action:"write",id:a,data:e,streamId:r}),c.push({id:a,writeCallback:i,data:e}),o=!1,a+=1},finish(e){h(),c.length?(c.forEach(e=>{delete e.writeCallback}),c[c.length-1].finishCallback=()=>e(p())):e(p())},finishSync(){h();let e=c.map(e=>e.data).join("");return c.length=0,{...p(),pendingData:e}},estimateEncodedBytesCount:e=>e.length/8,stop(){l()}}}var h=r(38020),g=r(97033),f=r(14534),m=r(54105);function y({configuredUrl:e,error:t,source:r,scriptType:i}){var n;if(f.Vy.error(`${r} failed to start: an error occurred while initializing the ${i}:`,t),t instanceof Event||t instanceof Error&&((n=t.message).includes("Content Security Policy")||n.includes("requires 'TrustedScriptURL'"))){let t;t=e?`Please make sure the ${i} URL ${e} is correct and CSP is correctly configured.`:"Please make sure CSP is correctly configured.",f.Vy.error(`${t} See documentation at ${f.fH}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else"worker"===i&&(0,m.VJ)(t)}let _=30*h.OY;function R(e){return new Worker(e.workerUrl||URL.createObjectURL(new Blob(['(()=>{function t(t){if(1===t.length)return t[0];const e=t.reduce((t,e)=>t+e.length,0),a=new Uint8Array(e);let n=0;for(const e of t)a.set(e,n),n+=e.length;return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),n=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),r=new
1Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=Array(576);e(s);var h=Array(60);e(h);var l=Array(512);e(l);var _=Array(256);e(_);var o=Array(29);e(o);var d,u,f,c=Array(30);function p(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t&&t.length}function g(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(c);var v=function(t){return t<256?l[t]:l[256+(t>>>7)]},w=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},m=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},b=function(t,e,a){m(t,a[2*e],a[2*e+1])},y=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},z=function(t,e,a){var n,r,i=Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=y(i[h]++,h))}},k=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},x=function(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},U=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&A(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!A(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},B=function(t,e,r){var i,s,h,l,d=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?b(t,s,e):(h=_[s],b(t,h+256+1,e),0!==(l=a[h])&&(s-=o[h],m(t,s,l)),i--,h=v(i),b(t,h,r),0!==(l=n[h])&&(i-=c[h],m(t,i,l)))}while(d<t.last_lit);b(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=_,a=t.heap_len>>1;a>=1;a--)U(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,U(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,_=e.max_code,o=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>c&&(i=c,p++),l[2*n+1]=i,n>_||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(o[2*n+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>_||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),z(i,_,t.bl_count)},E=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},C=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{b(t,r,t.bl_tree)}while(0!==--h);else 0!==r?(r!==i&&(b(t,r,t.bl_tree),h--),b(t,16,t.bl_tree),m(t,h-3,2)):h<=10?(b(t,17,t.bl_tree),m(t,h-3,3)):(b(t,18,t.bl_tree),m(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},D=!1,M=function(t,e,a,n){m(t,0+(n?1:0),3),function(t,e,a){x(t),w(t,a),w(t,~a),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a)},j=M,L=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},S=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),T=function(t,e,a,n){var r=S,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},O={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},q=j,F=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_[a]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},G=-2,H=258,J=262,K=103,N=113,P=666,Q=function(t,e){return t.msg=O[e],e},R=function(t){return(t<<1)-(t>4?9:0)},V=function(t){for(var e=t.length;--e>=0;)t[e]=0},W=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},X=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Y=function(t,e){(function(t,e,a,n){var r,l,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;
vendor: 8,978 bytes, line 1
1for(E(t,t.dyn_ltree,t.l_desc.max_code),E(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=r&&(r=l)):r=l=a+5,a+4<=r&&-1!==e?M(t,e,a,n):4===t.strategy||l===r?(m(t,2+(n?1:0),3),B(t,s,h)):(m(t,4+(n?1:0),3),function(t,e,a,n){var r;for(m(t,e-257,5),m(t,a-1,5),m(t,n-4,4),r=0;r<n;r++)m(t,t.bl_tree[2*i[r]+1],3);C(t,t.dyn_ltree,e-1),C(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),B(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&x(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},Z=function(t,e){t.pending_buf[t.pending++]=e},$=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},tt=function(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=L(t.adler,e,r,a):2===t.state.wrap&&(t.adler=T(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-J?t.strstart-(t.w_size-J):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+H,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=H-(u-i),i=u-H,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead},at=function(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-J)){t.window.set(t.window.subarray(s,s+s),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--a);e=a=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=tt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=W(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=W(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<J&&0!==t.strm.avail_in)},nt=function(t,e){for(var a,n;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a)),t.match_length>=3)if(n=F(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=W(t,t.ins_h,t.window[t.strstart+1]);else n=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2},rt=function(t,e){for(var a,n,r;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=F(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Y(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=F(t,0,t.window[t.strstart-1]))&&Y(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=F(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2};function it(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var st=[new it(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Y(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-J&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Y(t,!1),t.strm.avail_out),1)}),new it(4,4,8,4,nt),new it(4,5,16,8,nt),new it(4,6,32,32,nt),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)];function ht(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}for(var lt=function(t){var e,i=function(t){if(!t||!t.state)return Q(t,G);t.total_in=t.total_out=0,t.data_type=2;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:N,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){D||(function(){var t,e,i,g,v,w=Array(16);for(i=0,g=0;g<28;g++)for(o[g]=i,t=0;t<1<<a[g];t++)_[i++]=g;for(_[i-1]=g,v=0,g=0;g<16;g++)for(c[g]=v,t=0;t<1<<n[g];t++)l[v++]=g;for(v>>=7;g<30;g++)for(c[g]=v<<7,t=0;t<1<<n[g]-7;t++)l[256+v++]=g;for(e=0;e<=15;e++)w[e]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,w[8]++;for(;t<=255;)s[2*t+1]=9,t++,w[9]++;for(;t<=279;)s[2*t+1]=7,t++,w[7]++;for(;t<=287;)s[2*t+1]=8,t++,w[8]++;for(z(s,287,w),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=y(t,5);d=new p(s,a,257,286,15),u=new p(h,n,0,30,15),f=new p([],r,0,19,7)}(),D=!0),t.l_desc=new g(t.dyn_ltree,d),t.d_desc=new g(t.dyn_dtree,u),t.bl_desc=new g(t.bl_tree,f),t.bi_buf=0,t.bi_valid=0,k(t)}(e),0}(t);return 0===i&&((e=t.state).window_size=2*e.w_size,V(e.head),e.max_lazy_match=st[e.level].max_lazy,e.good_match=st[e.level].good_length,e.nice_match=st[e.level].nice_length,e.max_chain_length=st[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i},_t=function(t,e){var a,n;if(!t||!t.state||e>5||e<0)return t?Q(t,G):G;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===P&&4!==e)return Q(t,0===t.avail_out?-5:G);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Z(r,31),Z(r,139),Z(r,8),r.gzhead?(Z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Z(r,255&r.gzhead.time),Z(r,r.gzhead.time>>8&255),Z(r,r.gzhead.time>>16&255),Z(r,r.gzhead.time>>24&255),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Z(r,255&r.gzhead.extra.length),Z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=T(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,3),r.status=N);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>
1=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=N,$(r,h),0!==r.strstart&&($(r,t.adler>>>16),$(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending!==r.pending_buf_size));)Z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=T(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=K)}else r.status=K;if(r.status===K&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&X(t),r.pending+2<=r.pending_buf_size&&(Z(r,255&t.adler),Z(r,t.adler>>8&255),t.adler=0,r.status=N)):r.status=N),0!==r.pending){if(X(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&R(e)<=R(i)&&4!==e)return Q(t,-5);if(r.status===P&&0!==t.avail_in)return Q(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==P){var l=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(at(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=H){if(at(t),t.lookahead<=H&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+H;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=H-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=F(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):st[r.level].func(r,e);if(3!==l&&4!==l||(r.status=P),1===l||3===l)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===l&&(1===e?function(t){m(t,2,3),b(t,256,s),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}(r):5!==e&&(q(r,0,0,!1),3===e&&(V(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),X(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(Z(r,255&t.adler),Z(r,t.adler>>8&255),Z(r,t.adler>>16&255),Z(r,t.adler>>24&255),Z(r,255&t.total_in),Z(r,t.total_in>>8&255),Z(r,t.total_in>>16&255),Z(r,t.total_in>>24&255)):($(r,t.adler>>>16),$(r,65535&t.adler)),X(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},ot=function(t){if(!t||!t.state)return G;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==K&&e!==N&&e!==P?Q(t,G):(t.state=null,e===N?Q(t,-3):0)},dt=new Uint8Array(256),ut=0;ut<256;ut++)dt[ut]=ut>=252?6:ut>=248?5:ut>=240?4:ut>=224?3:ut>=192?2:1;dt[254]=dt[254]=1;var ft=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ct=Object.prototype.toString;function pt(){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ft,this.strm.avail_out=0;var e,a,n=function(t,e,a,n,r,i){if(!t)return G;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||i<0||i>4)return Q(t,G);8===n&&(n=9);var h=new ht;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,lt(t)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw Error(O[n]);if(t.header&&(e=this.strm,a=t.header,e&&e.state&&(2!==e.state.wrap||(e.state.gzhead=a))),t.dictionary){var r;if(r="[object ArrayBuffer]"===ct.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=function(t,e){var a=e.length;if(!t||!t.state)return G;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return G;if(1===r&&(t.adler=L(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(V(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
1i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,at(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=W(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,at(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,0}(this.strm,r)))throw Error(O[n]);this._dict_set=!0}}function gt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch(n){t.postMessage({type:"errored",error:e+"",streamId:a})}}function vt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}pt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?4:0,"[object ArrayBuffer]"===ct.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(2===n||3===n)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(1===(a=_t(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=ot(this.strm),this.onEnd(a),this.ended=!0,0===a;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},pt.prototype.onData=function(t){this.chunks.push(t)},pt.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e=self){try{const a=new Map;e.addEventListener("message",n=>{try{const r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"6.25.0"};case"write":{let n=e.get(a.streamId);n||(n=new pt,e.set(a.streamId,n));const r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,n,r,i,s=t.length,h=0;for(r=0;r<s;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),h+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(h),i=0,r=0;i<h;r++)a=t.charCodeAt(r),55296==(64512&a)&&r+1<s&&(n=t.charCodeAt(r+1),56320==(64512&n)&&(a=65536+(a-55296<<10)+(n-56320),r++)),a<128?e[i++]=a:a<2048?(e[i++]=192|a>>>6,e[i++]=128|63&a):a<65536?(e[i++]=224|a>>>12,e[i++]=128|a>>>6&63,e[i++]=128|63&a):(e[i++]=240|a>>>18,e[i++]=128|a>>>12&63,e[i++]=128|a>>>6&63,e[i++]=128|63&a);return e}(a.data);return n.push(i,2),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:vt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){gt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}})}catch(t){gt(e,t)}}()})();'])))}let b={status:0};function S(e,t,r,i=R){switch(0===b.status&&function(e,t,r=R){try{let i=r(e),{stop:n}=(0,u.q)(e,i,"error",r=>{v(e,t,r)}),{stop:s}=(0,u.q)(e,i,"message",({data:r})=>{var i;"errored"===r.type?v(e,t,r.error,r.streamId):"initialized"===r.type&&(i=r.version,1===b.status&&(b={status:3,worker:b.worker,stop:b.stop,version:i}))});i.postMessage({action:"init"}),(0,g.wg)(()=>{var e;return e=t,void(1===b.status&&(f.Vy.error(`${e} failed to start: a timeout occurred while initializing the Worker`),b.initializationFailureCallbacks.forEach(e=>e()),b={status:2}))},_),b={status:1,worker:i,stop:()=>{n(),s()},initializationFailureCallbacks:[]}}catch(r){v(e,t,r)}}(e,t,i),b.status){case 1:return b.initializationFailureCallbacks.push(r),b.worker;case 3:return b.worker}}function v(e,t,r,i){1===b.status||0===b.status?(y({configuredUrl:e.workerUrl,error:r,source:t,scriptType:"worker"}),1===b.status&&b.initializationFailureCallbacks.forEach(e=>e()),b={status:2}):(0,m.VJ)(r,{worker_version:3===b.status&&b.version,stream_id:i})}function E(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}
1var C=r(60403),T=r(7247),M=r(36266);async function w(e,t,r){try{return await r}finally{e.notify(t)}}async function k(e=P){try{return await e()}catch(e){y({error:e,source:"Recorder",scriptType:"module"})}}async function P(){return(await r.e(9777).then(r.bind(r,71975))).startRecording}var O=r(71426);async function B(e=F){try{return await e()}catch(e){y({error:e,source:"Profiler",scriptType:"module"})}}async function F(){return(await r.e(12).then(r.bind(r,93491))).createRumProfiler}let A=function(e){let t;if((0,a.d0)()&&!(0,a.Ww)("records")||!E())return{start:c.l,stop:c.l,getReplayStats:()=>void 0,onRumStart:c.l,isRecording:()=>!1,getSessionReplayLink:()=>void 0};let{strategy:r,shouldStartImmediately:i}=(t=0,{strategy:{start(){t=1},stop(){t=2},isRecording:()=>!1,getSessionReplayLink:c.l},shouldStartImmediately:e=>1===t||0===t&&!e.startSessionReplayRecordingManually});return{start:e=>r.start(e),stop:()=>r.stop(),getSessionReplayLink:()=>r.getSessionReplayLink(),onRumStart:function(t,n,s,a,l,u){let d;r=function(e,t,r,i,n,s,a){let l,u=0;t.subscribe(9,()=>{(2===u||3===u)&&(f(),u=1)}),t.subscribe(10,()=>{1===u&&g()});let d=new C.cP;!function(e,t){let r,i,n;if(!e.metricsEnabled)return c.l;let{unsubscribe:s}=t.subscribe(e=>{switch(e.type){case"start":r={forced:e.forced,timestamp:(0,h.nx)()},i=void 0,n=void 0;break;case"document-ready":r&&(i=(0,h.vk)(r.timestamp,(0,h.nx)()));break;case"recorder-settled":r&&(n=(0,h.vk)(r.timestamp,(0,h.nx)()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":var t,o,a,c;s(),r&&(0,m.Gk)("Recorder init metrics",{metrics:(t=r.forced,o=n,a=(0,h.vk)(r.timestamp,(0,h.nx)()),c=e.type,{forced:t,loadRecorderModuleDuration:o,recorderInitDuration:a,result:c,waitForDocReadyDuration:i})})}})}(a,d);let p=async o=>{d.notify({type:"start",forced:o});let[c]=await Promise.all([w(d,{type:"recorder-settled"},n()),w(d,{type:"document-ready"},(0,T.N)(e,"interactive"))]);if(2!==u)return void d.notify({type:"aborted"});if(!c){u=0,d.notify({type:"recorder-load-failed"});return}let p=s();if(!p){u=0,d.notify({type:"deflate-encoder-load-failed"});return}({stop:l}=c(t,e,r,i,p,a)),u=3,d.notify({type:"succeeded"})};function g(e){var t,i,n,s,o;let a=r.findTrackedSession();if(t=a,i=e,!t||0===t.sessionReplay&&(!i||!i.force)){u=1;return}if(2===(n=u)||3===n)return;u=2;let c=(s=a,(o=e)&&o.force&&0===s.sessionReplay||!1);p(c).catch(M.Dx),c&&r.setForcedReplay()}function f(){3===u&&(null==l||l()),u=0}return{start:g,stop:f,getSessionReplayLink:()=>{var t,n,s;let a,c,l;return t=0!==u,n=a=r.findTrackedSession(),s=t,c=E()?n?0===n.sessionReplay?"incorrect-session-plan":s?void 0:"replay-not-started":"rum-not-tracked":"browser-not-supported",l=i.findView(),(0,o.dx)(e,{viewContext:l,errorType:c,session:a})},isRecording:()=>3===u}}(n,t,s,a,e,function(){return!d&&(null!=l||(l=S(n,"Datadog Session Replay",()=>{r.stop()},void 0)),l&&(d=p(n,l,1))),d},u),i(n)&&r.start()},isRecording:()=>3===b.status&&r.isRecording(),getReplayStats:e=>3===b.status?(0,l.lv)(e):void 0}}(k),D=(0,o.AB)(o.rJ,A,{onRumStart:function(e,t,r,n,a,c){let l,u=n.findTrackedSession();if(!u||!(0,o.$5)(u.id,r.profilingSampleRate))return;let d=(l={status:"starting"},t.register(0,({eventType:e})=>e!==o.bb.VIEW&&e!==o.bb.LONG_TASK?O.$O:{type:e,_dd:{profiling:l}}),{get:()=>l,set:e=>{l=e}});void 0===(0,s.VZ)().Profiler?d.set({status:"error",error_reason:"not-supported-by-browser"}):B().then(t=>{if(!t){(0,m.A2)("[DD_RUM] Failed to lazy load the RUM Profiler"),d.set({status:"error",error_reason:"failed-to-lazy-load"});return}(i=t(r,e,n,d,c)).start(a.findView())}).catch(M.Dx)},stop:()=>{null==i||i.stop().catch(M.Dx)}},{startDeflateWorker:S,createDeflateEncoder:p,sdkName:"rum"});(0,n.Z)((0,s.VZ)(),"DD_RUM",D)},25983:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CacheInfo=void 0;class r{constructor(e,t,r){this.name=e,this.topicLimits=t,this.cacheLimits=r}getName(){return this.name}getTopicLimits(){return this.topicLimits}getCacheLimits(){return this.cacheLimits}}t.CacheInfo=r},26433:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.InternalSuperUserPermissions=t.decodeAuthToken=t.populateAllEndpointsFromBaseEndpoint=t.isV2ApiKey=void 0;let i=r(11205),n=r(29425),s=r(46172),o=r(19090),a=r(12477);function c(e){return(0,n.default)(e)}function l(e){return!(0,s.isBase64)(e)&&"g"===c(e).t}function u(e){let t="";return e.endpointPrefix&&(t=`${e.endpointPrefix}.`),{controlEndpoint:`${t}control.${e.baseEndpoint}`,cacheEndpoint:`${t}cache.${e.baseEndpoint}`,tokenEndpoint:`${t}token.${e.baseEndpoint}`,secureConnection:e.secureConnection}}t.isV2ApiKey=l,t.populateAllEndpointsFromBaseEndpoint=u,t.decodeAuthToken=e=>{if(!e)throw new i.InvalidArgumentError("malformed auth token");try{if((0,s.isBase64)(e)){let t=JSON.parse((0,o.decodeFromBase64)(e));if(!t.endpoint||!t.api_key)throw new i.InvalidArgumentError("failed to parse token");let r=u({baseEndpoint:t.endpoint});return{controlEndpoint:r.controlEndpoint,cacheEndpoint:r.cacheEndpoint,tokenEndpoint:r.tokenEndpoint,authToken:t.api_key}}{if(l(e))throw new i.InvalidArgumentError("Received a v2 API key. Are you using the correct key? Or did you mean to use `fromApiKeyV2()` or `fromEnvVarV2()` instead?");let t=c(e);return{controlEndpoint:t.cp,cacheEndpoint:t.c,tokenEndpoint:t.c,authToken:e}}}catch(e){throw new i.InvalidArgumentError(`failed to parse token: ${e}`)}};class d extends a.PredefinedScope{}t.InternalSuperUserPermissions=d},26445:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var i=function(){return null}},27058:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractTopicClient=void 0;let i=r(84055),n=r(11205);class s{constructor(e){this.numActiveSubscriptions=0,this.client=e}}
1class o{constructor(e,t,r,i){this.nextPubsubStreamClientIndex=0,this.nextPubsubUnaryClientIndex=0,this.logger=e,this.pubsubStreamClients=t.map(e=>new s(e)),this.pubsubUnaryClients=r,this.webhookClient=i,this.maxConcurrentSubscriptions=100*this.pubsubStreamClients.length}async publish(e,t,r){return await this.getNextPublishClient().publish(e,t,r)}async subscribe(e,t,r){try{let{client:i,decrementSubscriptionCount:n}=this.getNextSubscribeClient(),s={...r,onSubscriptionEnd:()=>{var e;null==(e=r.onSubscriptionEnd)||e.call(r),n()}};return await i.subscribe(e,t,s)}catch(e){return new i.TopicSubscribe.Error(e)}}async deleteWebhook(e,t){return await this.webhookClient.deleteWebhook({cacheName:e,webhookName:t})}async listWebhooks(e){return await this.webhookClient.listWebhooks(e)}async putWebhook(e,t,r){let n=r.destination;return"string"==typeof n&&(n=new i.PostUrlWebhookDestination(n)),await this.webhookClient.putWebhook({topicName:r.topicName,id:{cacheName:e,webhookName:t},destination:n})}async getWebhookSecret(e,t){return await this.webhookClient.getWebhookSecret({cacheName:e,webhookName:t})}async rotateWebhookSecret(e,t){return await this.webhookClient.rotateWebhookSecret({cacheName:e,webhookName:t})}getNextPublishClient(){let e=this.pubsubUnaryClients[this.nextPubsubUnaryClientIndex];return this.nextPubsubUnaryClientIndex=(this.nextPubsubUnaryClientIndex+1)%this.pubsubUnaryClients.length,e}getNextSubscribeClient(){let e=0;for(let t of this.pubsubStreamClients)e+=t.numActiveSubscriptions;if(e<this.maxConcurrentSubscriptions)for(let e=0;e<this.maxConcurrentSubscriptions;e++){let e=this.pubsubStreamClients[this.nextPubsubStreamClientIndex%this.pubsubStreamClients.length];if(e.numActiveSubscriptions<100)return this.nextPubsubStreamClientIndex++,e.numActiveSubscriptions++,{client:e.client,decrementSubscriptionCount:()=>{e.numActiveSubscriptions--}}}throw new n.ClientResourceExhaustedError("Already at maximum number of subscriptions")}}t.AbstractTopicClient=o},27462:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={default:function(){return b},handleClientScriptLoad:function(){return y},initScriptLoader:function(){return _}};for(var n in i)Object.defineProperty(t,n,{enumerable:!0,get:i[n]});let s=r(24736),o=r(92965),a=r(54568),c=s._(r(97509)),l=o._(r(7620)),u=r(4725),d=r(29269),p=r(77129),h=r(96101),g=new Map,f=new Set,m=e=>{let{src:t,id:r,onLoad:i=()=>{},onReady:n=null,dangerouslySetInnerHTML:s,children:o="",strategy:a="afterInteractive",onError:l,stylesheets:u}=e,p=r||t;if(p&&f.has(p))return;if(g.has(t)){f.add(p),g.get(t).then(i,l);return}let h=()=>{n&&n(),f.add(p)},m=document.createElement("script"),y=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),i&&i.call(this,t),h()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});s?(m.innerHTML=s.__html||"",h()):o?(m.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",h()):t&&(m.src=t,g.set(t,y)),(0,d.setAttributesFromProps)(m,e),"worker"===a&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",a),u&&(e=>{if(c.default.preinit)return e.forEach(e=>{c.default.preinit(e,{as:"style"})});{let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(u),document.body.appendChild(m)};function y(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>m(e))}):m(e)}function _(e){e.forEach(y),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}function R(e){let{id:t,src:r="",onLoad:i=()=>{},onReady:n=null,strategy:s="afterInteractive",onError:o,stylesheets:d,...g}=e,{updateScripts:y,scripts:_,getIsSsr:R,appDir:b,nonce:S}=(0,l.useContext)(u.HeadManagerContext);S=g.nonce||S;let v=(0,l.useRef)(!1);(0,l.useEffect)(()=>{let e=t||r;v.current||(n&&e&&f.has(e)&&n(),v.current=!0)},[n,t,r]);let E=(0,l.useRef)(!1);if((0,l.useEffect)(()=>
1{if(!E.current){if("afterInteractive"===s)m(e);else"lazyOnload"===s&&("complete"===document.readyState?(0,p.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>m(e))}));E.current=!0}},[e,s]),("beforeInteractive"===s||"worker"===s)&&(y?(_[s]=(_[s]||[]).concat([{id:t,src:r,onLoad:i,onReady:n,onError:o,...g,nonce:S}]),y(_)):R&&R()?f.add(t||r):R&&!R()&&m({...e,nonce:S})),b){if(d&&d.forEach(e=>{c.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)if(!r)return g.dangerouslySetInnerHTML&&(g.children=g.dangerouslySetInnerHTML.__html,delete g.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:S,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,h.htmlEscapeJsonString)(JSON.stringify([0,{...g,id:t}]))})`}});else return c.default.preload(r,g.integrity?{as:"script",integrity:g.integrity,nonce:S,crossOrigin:g.crossOrigin}:{as:"script",nonce:S,crossOrigin:g.crossOrigin}),(0,a.jsx)("script",{nonce:S,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,h.htmlEscapeJsonString)(JSON.stringify([r,{...g,id:t}]))})`}});"afterInteractive"===s&&r&&c.default.preload(r,g.integrity?{as:"script",integrity:g.integrity,nonce:S,crossOrigin:g.crossOrigin}:{as:"script",nonce:S,crossOrigin:g.crossOrigin})}return null}Object.defineProperty(R,"__nextScript",{value:!0});let b=R;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27621:(e,t,r)=>{"use strict";r.d(t,{WW:()=>o,_m:()=>i,iH:()=>n,wh:()=>a});let i=1024,n=1048576,s=/[^\u0000-\u007F]/;function o(e){return s.test(e)?void 0!==window.TextEncoder?new TextEncoder().encode(e).length:new Blob([e]).size:e.length}function a(e){if(1===e.length)return e[0];let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;for(let i of e)t.set(i,r),r+=i.length;return t}},29177:(e,t,r)=>{"use strict";let i;function n(){return 0===o()}function s(){return 1===o()}function o(){return null!=i?i:i=function(e=window){var t;let r=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(r)?0:(null==(t=e.navigator.vendor)?void 0:t.indexOf("Apple"))===0||/safari/i.test(r)&&!/chrome|android/i.test(r)?1:2}()}r.d(t,{F2:()=>n,nr:()=>s})},29369:(e,t,r)=>{"use strict";var i=r(50804);Object.defineProperty(t,"__esModule",{value:!0}),t.EnvMomentoV2TokenProvider=t.ApiKeyV2TokenProvider=t.MomentoLocalProvider=t.getDefaultCredentialProvider=t.EnvMomentoTokenProvider=t.StringMomentoTokenProvider=t.CredentialProvider=void 0;let n=r(52725);function s(e){return void 0!==e.baseEndpoint}function o(e){return void 0!==e.cacheEndpoint&&void 0!==e.controlEndpoint&&void 0!==e.tokenEndpoint}class a{static fromEnvironmentVariable(e){return new u(e)}static fromEnvVar(e){return new u(e)}static fromString(e){return new l(e)}static fromDisposableToken(e){return new l(e)}static fromEnvVarV2(e){return new h(e)}static fromApiKeyV2(e){return new p(e)}static forMomentoLocal(e){return new d(e)}}t.CredentialProvider=a;class c{valueOf(){let e=Object.entries(this).filter(([e])=>"authToken"!==e);return(0,n.fromEntries)(e).valueOf()}}class l extends c{constructor(e){let t;if("string"==typeof e&&(e={apiKey:e}),super(),"authToken"in e)t=e.authToken;else if("apiKey"in e)t=e.apiKey;else throw Error("Missing required property: authToken or apiKey");const r=(0,n.decodeAuthToken)(t);if(this.apiKey=r.authToken,void 0===e.endpointOverrides){if(this.endpointsOverridden=!1,void 0===r.controlEndpoint)throw Error("Malformed token; unable to determine control endpoint. Depending on the type of token you are using, you may need to specify the controlEndpoint explicitly.");if(void 0===r.cacheEndpoint)throw Error("Malformed token; unable to determine cache endpoint. Depending on the type of token you are using, you may need to specify the cacheEndpoint explicitly.");if(void 0===r.tokenEndpoint)throw Error("Malformed token; unable to determine token endpoint. Depending on the type of token you are using, you may need to specify the tokenEndpoint explicitly.");this.allEndpoints={controlEndpoint:r.controlEndpoint,cacheEndpoint:r.cacheEndpoint,tokenEndpoint:r.tokenEndpoint}}else if(o(e.endpointOverrides))this.endpointsOverridden=!0,this.allEndpoints=e.endpointOverrides;else if(s(e.endpointOverrides))this.endpointsOverridden=!0,this.allEndpoints=(0,n.populateAllEndpointsFromBaseEndpoint)(e.endpointOverrides);else throw Error(`Unsupported endpointOverrides: ${e.endpointOverrides}`)}getAuthToken(){return this.apiKey}getCacheEndpoint(){return this.allEndpoints.cacheEndpoint}isCacheEndpointSecure(){return this.isEndpointSecure()}getControlEndpoint(){return this.allEndpoints.controlEndpoint}isControlEndpointSecure(){return this.isEndpointSecure()}getTokenEndpoint(){return this.allEndpoints.tokenEndpoint}isTokenEndpointSecure(){return this.isEndpointSecure()}isStorageEndpointSecure(){return this.isEndpointSecure()}areEndpointsOverridden(){return this.endpointsOverridden}isEndpointSecure(){return void 0===this.allEndpoints.secureConnection||this.allEndpoints.secureConnection}withMomentoLocal(){return new d}}t.StringMomentoTokenProvider=l;class u extends l{constructor(e){"string"==typeof e&&(e={environmentVariableName:e});const t=i.env[e.environmentVariableName];if(!t)throw Error(`Missing required environment variable ${e.environmentVariableName}`);super({authToken:t,endpointOverrides:e.endpointOverrides}),this.environmentVariableName=e.environmentVariableName}}t.EnvMomentoTokenProvider=u,t.getDefaultCredentialProvider=function(){try{return a.fromEnvVarV2()}catch(e){return a.fromEnvVar("MOMENTO_API_KEY")}};class d{constructor(e){const t=(null==e?void 0:e.hostname)||"127.0.0.1",r=(null==e?void 0:e.port)||8080,i=`${t}:${r}`;if(void 0===e||void 0===e.endpointOverrides)this.endpointsOverridden=!1,this.allEndpoints={controlEndpoint:i,cacheEndpoint:i,tokenEndpoint:i,secureConnection:!1};else if(o(e.endpointOverrides))this.endpointsOverridden=!0,this.allEndpoints=e.endpointOverrides;else if(s(e.endpointOverrides))this.endpointsOverridden=!0,this.allEndpoints=(0,n.populateAllEndpointsFromBaseEndpoint)(e.endpointOverrides);else throw Error(`Unsupported endpointOverrides: ${e.endpointOverrides}`)}getAuthToken(){return""}getCacheEndpoint(){return this.allEndpoints.cacheEndpoint}isCacheEndpointSecure(){return this.isEndpointSecure()}getControlEndpoint(){return this.allEndpoints.controlEndpoint}isControlEndpointSecure(){return this.isEndpointSecure()}getTokenEndpoint(){return this.allEndpoints.tokenEndpoint}isTokenEndpointSecure(){return this.isEndpointSecure()}areEndpointsOverridden(){return this.endpointsOverridden}isEndpointSecure(){return void 0===this.allEndpoints.secureConnection||this.allEndpoints.secureConnection}withMomentoLocal(){return new d}}t.MomentoLocalProvider=d;class p extends c{constructor(e){let t,r;if(super(),"authToken"in e)t=e.authToken;else if("apiKey"in e)t=e.apiKey;else throw Error("Missing required property: authToken or apiKey");if(!t.length)throw Error("API key cannot be an empty string");
1if(!(0,n.isV2ApiKey)(t))throw Error("Received an invalid v2 API key. Are you using the correct key? Or did you mean to use `fromString()` with a legacy key instead?");if("endpoint"in e)r=e.endpoint;else throw Error("Missing required property: endpoint");if(!r.length)throw Error("Endpoint cannot be an empty string");this.apiKey=t,this.allEndpoints={controlEndpoint:"control."+r,cacheEndpoint:"cache."+r,tokenEndpoint:"token."+r}}getAuthToken(){return this.apiKey}getCacheEndpoint(){return this.allEndpoints.cacheEndpoint}isCacheEndpointSecure(){return this.isEndpointSecure()}getControlEndpoint(){return this.allEndpoints.controlEndpoint}isControlEndpointSecure(){return this.isEndpointSecure()}getTokenEndpoint(){return this.allEndpoints.tokenEndpoint}isTokenEndpointSecure(){return this.isEndpointSecure()}isStorageEndpointSecure(){return this.isEndpointSecure()}areEndpointsOverridden(){return!1}isEndpointSecure(){return void 0===this.allEndpoints.secureConnection||this.allEndpoints.secureConnection}withMomentoLocal(){return new d}}t.ApiKeyV2TokenProvider=p;class h extends p{constructor(e){const t=(null==e?void 0:e.apiKeyEnvVar)||"MOMENTO_API_KEY",r=(null==e?void 0:e.endpointEnvVar)||"MOMENTO_ENDPOINT",s=i.env[r];if(!s)throw Error(`Empty value for environment variable ${r}`);if(!s.length)throw Error(`Endpoint environment variable ${r} cannot be an empty string`);const o=i.env[t];if(!o)throw Error(`Empty value for environment variable ${t}`);if(!o.length)throw Error(`API key environment variable ${t} cannot be an empty string`);if(!(0,n.isV2ApiKey)(o))throw Error("Received an invalid v2 API key. Are you using the correct key? Or did you mean to use `fromEnvironmentVariable()` with a legacy key instead?");super({authToken:o,endpoint:s})}}t.EnvMomentoV2TokenProvider=h},29417:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(e){super(),this.type=n.ListCachesResponse.Success,this.caches=e}getCaches(){return this.caches}toString(){let e=this.caches.map(e=>e.getName());return super.toString()+": "+e.join(", ")}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.ListCachesResponse.Error}}t.Error=o},29425:(e,t,r)=>{"use strict";function i(e){this.message=e}r.r(t),r.d(t,{InvalidTokenError:()=>s,default:()=>o}),i.prototype=Error(),i.prototype.name="InvalidCharacterError";var n="u">typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new i("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,s=0,o=0,a="";n=t.charAt(o++);~n&&(r=s%4?64*r+n:n,s++%4)&&(a+=String.fromCharCode(255&r>>(-2*s&6))))n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return a};function s(e){this.message=e}s.prototype=Error(),s.prototype.name="InvalidTokenError";let o=function(e,t){if("string"!=typeof e)throw new s("Invalid token specified");var r=+(!0!==(t=t||{}).header);try{return JSON.parse(function(e){var t,r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw"Illegal base64url string!"}try{return t=r,decodeURIComponent(n(t).replace(/(.)/g,function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return n(r)}}(e.split(".")[r]))}catch(e){throw new s("Invalid token specified: "+e.message)}}},29892:(e,t,r)=>{"use strict";r.d(t,{tO:()=>u});var i=r(53476),n=r(60403),s=r(97033),o=r(38020),a=r(96241);let c=30*o.OY,l=i.Wq?1:50;function u({pageMayExitObservable:e,sessionExpireObservable:t}){let r,i=e.subscribe(e=>g(e.reason)),o=t.subscribe(()=>g("session_expire")),d=new n.cP(()=>()=>{i.unsubscribe(),o.unsubscribe()}),p=0,h=0;function g(e){if(0===h)return;let t=h,r=p;h=0,p=0,f(),d.notify({reason:e,messagesCount:t,bytesCount:r})}function f(){(0,s.DJ)(r),r=void 0}return{flushObservable:d,get messagesCount(){return h},notifyBeforeAddMessage(e){p+e>=a.AK&&g("bytes_limit"),h+=1,p+=e,void 0===r&&(r=(0,s.wg)(()=>{g("duration_limit")},c))},notifyAfterAddMessage(e=0){p+=e,h>=l?g("messages_limit"):p>=a.AK&&g("bytes_limit")},notifyAfterRemoveMessage(e){p-=e,0==(h-=1)&&f()}}}},30357:(e,t,r)=>{"use strict";let i,n,s,o,a,c,l,u,d,p,h;r.d(t,{X2:()=>K,eT:()=>rA,o:()=>rF,$m:()=>rP,NT:()=>rO,Wd:()=>rB,bb:()=>z,do:()=>f,wP:()=>nr,wI:()=>ru,W3:()=>tW,PJ:()=>rx,dT:()=>rN,$4:()=>rd,Gn:()=>iO,zL:()=>iB,dx:()=>nt,rf:()=>rj,pB:()=>iA,wR:()=>rl,g1:()=>iF,XS:()=>ra,p_:()=>rc,$5:()=>tf,AB:()=>tI,jR:()=>rL,ei:()=>t6,ap:()=>rG,Ie:()=>rW,rJ:()=>ne,s5:()=>rn});var g,f,m=r(60403);let y={GRANTED:"granted",NOT_GRANTED:"not-granted"};var _=r(36604),R=r(38020),b=r(90662),S=r(53476),v=r(2112),E=r(74691),C=r(27621);function T(){let e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write(r,i){let n=(0,C.WW)(r);t+=n,e+=r,i&&i(n)},finish(e){e(this.finishSync())},finishSync(){let r={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,r},estimateEncodedBytesCount:e=>e.length}}var M=r(36266),w=r(54105),k=r(95787),P=r(78138),O=r(99857),B=r(99758);function F(e,t,r,i){return(0,M.dm)((...n)=>(i&&(0,w.Q6)({feature:i}),e()[t][r](...n)))}let A="userContext",D="globalContext",I="accountContext",x="getContext",L="setContext",N="setContextProperty",W="removeContextProperty",G="clearContext";var q=r(14534);function j(e,t){t.silentMultipleInit||q.Vy.error(`${e} is already initialized.`)}let z={ACTION:"action",ERROR:"error",LONG_TASK:"long_task",VIEW:"view",RESOURCE:"resource",VITAL:"vital"},U="initial_load",$="route_change",H="bf_cache",K={CLICK:"click",CUSTOM:"custom"},V="error_click",J="dead_click",Y="duration";var X=r(565);function Z(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,Z)}let Q=/([\w-]+)\s*=\s*([^;]+)/g;function ee(e,t){for(Q.lastIndex=0;;){let r=Q.exec(e);if(r){if(r[1]===t)return r[2]}else break}}function et(e,t,r=""){let i=e.charCodeAt(t-1),n=i>=55296&&i<=56319?t+1:t;return e.length<=n?e:`${e.slice(0,n)}${r}`}function er({vitalsByName:e,vitalsByReference:t},r,i={}){let n={name:r,startClocks:(0,R.M8)(),...i},s={__dd_vital_reference:!0};return e.set(r,n),t.set(s,n),s}function ei(e,{vitalsByName:t,vitalsByReference:r},i,n={}){var s,o,a,c,l;let u="string"==typeof i?t.get(i):r.get(i);u&&(e((s=u,o=u.startClocks,a=n,c=(0,R.M8)(),{name:s.name,type:Y,startClocks:o,duration:(0,R.vk)(o.timeStamp,c.timeStamp),context:(0,P.kg)(s.context,a.context),description:null!=(l=a.description)?l:s.description})),"string"==typeof i?t.delete(i):r.delete(i))}function en(e){let{startClocks:t,type:r,name:i,description:n,context:s}=e,o={id:Z(),type:r,name:i,description:n,...r===Y?{duration:(0,R.Zj)(e.duration)}:{step_type:e.stepType,operation_key:e.operationKey,failure_reason:e.failureReason}};return{rawRumEvent:{date:t.timeStamp,vital:o,type:z.VITAL,context:s},startTime:t.relative,duration:r===Y?e.duration:void 0,domainContext:{}}}function es(e,t,r){if(e)for(let i of e){let e=i[t];e&&e(r)}}function eo(e,t){let r=e.indexOf(t);r>=0&&e.splice(r,1)}function ea(e){return Array.isArray(e)&&e.length>0}var ec=r(54572),el=r(1310);let eu=[];function ed(e,t,r,i){var n,s;let o=(n=r,s=i,`_dd_c_${n}_${s}`);eu.push((0,ec.q)(e,window,"storage",({key:e})=>{o===e&&t.setContext(c())})),t.changeObservable.subscribe(function(){localStorage.setItem(o,JSON.stringify(t.getContext()))});let a=(0,P.kg)(c(),t.getContext());function c(){let e=localStorage.getItem(o);return e?JSON.parse(e):{}}(0,el.RI)(a)||t.setContext(a)}var ep=r(64647);function eh(e,t,r){let i={...e};for(let[e,{required:n,type:s}]of Object.entries(t))"string"!==s||eg(i[e])||(i[e]=String(i[e])),n&&eg(i[e])&&q.Vy.warn(`The property ${e} of ${r} is required; context will not be sent to the intake.`);return i}function eg(e){return null==e||""===e}function ef(e="",{propertiesConfig:t={}}={}){let r={},i=new m.cP,n={getContext:()=>(0,P.Go)(r),setContext:s=>{let o;((o="object"===(0,ep.P)(s))||q.Vy.error("Unsupported context:",s),o)?r=(0,B.a)(eh(s,t,e)):n.clearContext(),i.notify()},setContextProperty:(n,s)=>{r=(0,B.a)(eh({...r,[n]:s},t,e)),i.notify()},removeContextProperty:n=>{delete r[n],eh(r,t,e),i.notify()},clearContext:()=>{r={},i.notify()},changeObservable:i};return n}function em(){return ef("global context")}var ey=r(71426);function e_(){return ef("user",{propertiesConfig:{id:{type:"string"},name:{type:"string"},email:{type:"string"}}})}function eR(){return ef("account",{propertiesConfig:{id:{type:"string",required:!0},name:{type:"string"}}})}var eb=r(2275),eS=r(47111),ev=r(50468);async function eE(e,t){let r=e.getReader(),i=[];for(;;){let e=await r.read();if(e.done)break;t.collectStreamBody&&i.push(e.value)}return r.cancel().catch(eS.l),t.collectStreamBody?(0,C.wh)(i):void 0}var eC=r(62710);let eT=[];function eM({responseBodyAction:e}={}){return e&&eT.push(e),i||(i=new m.cP(e=>{if(!S.J2.fetch)return;let{stop:t}=(0,_.H)(S.J2,"fetch",t=>(function({parameters:e,onPostCall:t,handlingStack:r},i){let[n,s]=e,o=s&&s.method;void 0===o&&n instanceof Request&&(o=n.method);let a=void 0!==o?String(o).toUpperCase():"GET",c=n instanceof Request?n.url:(0,ev.l2)(String(n)),l={state:"start",init:s,input:n,method:a,startClocks:(0,R.M8)(),url:c,handlingStack:r};i.notify(l),e[0]=l.input,e[1]=l.init,t(e=>{ew(i,e,l).catch(M.Dx)})})(t,e),{computeHandlingStack:!0});return t})),i}async function ew(e,t,r){var i,n;let s;r.state="resolve";try{s=await t}catch(t){r.status=0,r.isAborted=(null==(n=null==(i=r.init)?void 0:i.signal)?void 0:n.aborted)||t instanceof DOMException&&t.code===DOMException.ABORT_ERR,r.error=t,e.notify(r);return}r.response=s,r.status=s.status,r.responseType=s.type,r.isAborted=!1;let o=eT.reduce((e,t)=>
1Math.max(e,t(r)),0);if(0!==o){let e=(0,eC.i)(s);if(e&&e.body)try{let t=await eE(e.body,{collectStreamBody:2===o});r.responseBody=t&&new TextDecoder().decode(t)}catch(e){}}e.notify(r)}function ek(e,t,r=0,i){let n=new Date;n.setTime(n.getTime()+r);let s=`expires=${n.toUTCString()}`,o=i&&i.crossSite?"none":"strict",a=i&&i.domain?`;domain=${i.domain}`:"",c=i&&i.secure?";secure":"",l=i&&i.partitioned?";partitioned":"";document.cookie=`${e}=${t};${s};path=/;samesite=${o}${a}${c}${l}`}function eP(e){return ee(document.cookie,e)}function eO(e){return n||(n=function(e){let t=new Map;for(Q.lastIndex=0;;){let r=Q.exec(e);if(r)t.set(r[1],r[2]);else break}return t}(document.cookie)),n.get(e)}function eB(e=location.hostname,t=document.referrer){if(void 0===s){let r=function(e,t){try{return e||(0,ev.c$)(t).hostname}catch(e){}}(e,t);if(r){let e=`dd_site_test_${Z()}`,t=r.split("."),i=t.pop();for(;t.length&&!eP(e);)i=`${t.pop()}.${i}`,ek(e,"test",R.OY,{domain:i});ek(e,"",0,{domain:i}),s=i}}return s}function eF(){return!S.Wq&&!!(S.J2._DATADOG_SYNTHETICS_INJECTS_RUM||eO("datadog-synthetics-injects-rum"))}function eA(){let e=window._DATADOG_SYNTHETICS_PUBLIC_ID||eO("datadog-synthetics-public-id");return"string"==typeof e?e:void 0}function eD(){let e=window._DATADOG_SYNTHETICS_RESULT_ID||eO("datadog-synthetics-result-id");return"string"==typeof e?e:void 0}function eI(){return!!(eA()&&eD())}var ex=r(14279),eL=r(76300),eN=r(97033),eW=r(29177);let eG="_dd_s";var eq=r(54110);let ej=4*R.MA,ez=15*R.iW,eU=R.$H,e$="cookie",eH="local-storage",eK=/^([a-zA-Z]+)=([a-z0-9-]+)$/;function eV(e,t){let r={isExpired:"1"};return t.trackAnonymousUser&&(null==e?void 0:e.anonymousId)&&(r.anonymousId=null==e?void 0:e.anonymousId),r}function eJ(e){return(0,el.RI)(e)}function eY(e){var t;return void 0!==e.isExpired||!((void 0===(t=e).created||(0,R.x3)()-Number(t.created)<ej)&&(void 0===t.expire||(0,R.x3)()<Number(t.expire)))}function eX(e){e.expire=String((0,R.x3)()+ez)}function eZ(e){return(0,eq.WP)(e).map(([e,t])=>"anonymousId"===e?`aid=${t}`:`${e}=${t}`).join("&")}function eQ(e){let t={};return e&&(-1!==e.indexOf("&")||eK.test(e))&&e.split("&").forEach(e=>{let r=eK.exec(e);if(null!==r){let[,e,i]=r;"aid"===e?t.anonymousId=i:t[e]=i}}),t}function e0(e){let t=function(e){let t={};if(t.secure=!!e.useSecureSessionCookie||!!e.usePartitionedCrossSiteSessionCookie,t.crossSite=!!e.usePartitionedCrossSiteSessionCookie,t.partitioned=!!e.usePartitionedCrossSiteSessionCookie,e.trackSessionAcrossSubdomains){let e=eB();if(!e)return;t.domain=e}return t}(e);return t&&function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{let t=`dd_cookie_test_${Z()}`,r="test";ek(t,r,R.iW,e);let i=eP(t)===r;return ek(t,"",0,e),i}catch(e){return q.Vy.error(e),!1}}(t)?{type:e$,cookieOptions:t}:void 0}function e1(e,t,r,i){let n=eZ(r);t.betaEncodeCookieOptions&&(n=eZ({...r,...!(0,el.RI)(r)?{c:e3(e)}:{}})),ek(eG,n,t.trackAnonymousUser?eU:i,e)}function e2(e,t){return t.betaEncodeCookieOptions?function(e){let t,r=(function(e){let t=new Map;for(Q.lastIndex=0;;){let r=Q.exec(e);if(r){let e=r[1],i=r[2];t.has(e)?t.get(e).push(i):t.set(e,[i])}else break}return t})(document.cookie).get(eG)||[],i=e3(e);for(let e of r.reverse())if((t=eQ(e)).c===i)break;return null==t||delete t.c,null!=t?t:{}}(e):eQ(eP(eG))}function e3(e){return((e.domain?e.domain.split(".").length-1:0)<<1|!!e.crossSite).toString(16)}function e4(){try{let e=Z(),t=`_dd_test_${e}`;localStorage.setItem(t,e);let r=localStorage.getItem(t);return localStorage.removeItem(t),e===r?{type:eH}:void 0}catch(e){return}}function e5(e){localStorage.setItem(eG,eZ(e))}function e6(){return eQ(localStorage.getItem(eG))}let e7=R.OY,e9=[];function e8(e,t,r=0){var i;let n,{isLockEnabled:s,persistSession:a,expireSession:c}=t,l=e=>a({...e,lock:n}),u=()=>{let{lock:e,...r}=t.retrieveSession();return{session:r,lock:e&&!function(e){let[,t]=e.split("--");return!t||(0,R.vk)(Number(t),(0,R.nx)())>e7}(e)?e:void 0}};if(o||(o=e),e!==o)return void e9.push(e);if(s&&r>=100)return void tt(t);let d=u();if(s&&(d.lock||(n=Z()+"--"+(0,R.nx)(),l(d.session),(d=u()).lock!==n)))return void te(e,t,r);let p=e.process(d.session);
1if(s&&(d=u()).lock!==n)return void te(e,t,r);if(p&&(eY(p)?c(p):(eX(p),s?l(p):a(p))),s&&!(p&&eY(p))){if((d=u()).lock!==n)return void te(e,t,r);a(d.session),p=d.session}null==(i=e.after)||i.call(e,p||d.session),tt(t)}function te(e,t,r){(0,eN.wg)(()=>{e8(e,t,r+1)},10)}function tt(e){o=void 0;let t=e9.shift();t&&e8(t,e)}let tr=R.OY;function ti(e){let t=(0,ep.P)(e);return"string"===t||"function"===t||e instanceof RegExp}function tn(e,t,r=!1){return e.some(e=>{try{if("function"==typeof e)return e(t);if(e instanceof RegExp)return e.test(t);if("string"==typeof e)return r?t.startsWith(e):e===t}catch(e){q.Vy.error(e)}return!1})}let ts=["chrome-extension://","moz-extension://"];function to(e){return ts.some(t=>e.includes(t))}var ta=r(8799);function tc(e,t,r){let i=function(e,t){let r=`/api/v2/${t}`,i=e.proxy;if("string"==typeof i){let e=(0,ev.l2)(i);return t=>`${e}?ddforward=${encodeURIComponent(`${r}?${t}`)}`}if("function"==typeof i)return e=>i({path:r,parameters:e});let n=tl(t,e);return e=>`https://${n}${r}?${e}`}(e,t);return{build:(n,s)=>i(function({clientToken:e,internalAnalyticsSubdomain:t,source:r="browser"},i,n,{retry:s,encoding:o},a=[]){let c=[`ddsource=${r}`,`dd-api-key=${e}`,`dd-evp-origin-version=${encodeURIComponent("6.25.0")}`,"dd-evp-origin=browser",`dd-request-id=${Z()}`].concat(a);return o&&c.push(`dd-evp-encoding=${o}`),"rum"===i&&(c.push(`batch_time=${(0,R.nx)()}`,`_dd.api=${n}`),s&&c.push(`_dd.retry_count=${s.count}`,`_dd.retry_after=${s.lastFailureStatus}`)),t&&c.reverse(),c.join("&")}(e,t,n,s,r)),trackType:t}}function tl(e,t){let{site:r=ta.NW,internalAnalyticsSubdomain:i}=t;if("logs"===e&&t.usePciIntake&&r===ta.NW)return ta.$A;if(i&&r===ta.NW)return`${i}.${ta.NW}`;if(r===ta.TC)return`http-intake.logs.${r}`;let n=r.split("."),s=n.pop();return`browser-intake-${n.join("-")}.${s}`}let tu={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input",MASK_UNLESS_ALLOWLISTED:"mask-unless-allowlisted"},td={ALL:"all",SAMPLED:"sampled"};function tp(e,t){return null==e||"string"==typeof e||(q.Vy.error(`${t} must be defined as a string`),!1)}function th(e,t){return void 0===e||!!(0,eL.fp)(e)||(q.Vy.error(`${t} Sample Rate should be a number between 0 and 100`),!1)}let tg=new Map;function tf(e,t){var r,i;let n,s,o;if(100===t)return!0;if(0===t)return!1;let a=tg.get(t);return a&&e===a.sessionId?a.decision:(n=window.BigInt?(r=BigInt(`0x${e.split("-")[4]}`),i=t,s=BigInt("1111111111111111111"),Number(r*s%(o=BigInt("0x10000000000000000")))<=i/100*Number(o)):(0,eL.ic)(t),tg.set(t,{sessionId:e,decision:n}),n)}function tm(e){let t=crypto.getRandomValues(new Uint32Array(2));return 63===e&&(t[t.length-1]>>>=1),{toString(e=10){let r=t[1],i=t[0],n="";do{let t=r%e*0x100000000+i;r=Math.floor(r/e),i=Math.floor(t/e),n=(t%e).toString(e)+n}while(r||i);return n}}}function ty(e){return e.toString(16).padStart(16,"0")}function t_(e){0!==e.status||e.isAborted||(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function tR(e,t,r,i,n,s){let o=r.findTrackedSession();if(!o)return;let a=e.allowedTracingUrls.find(e=>tn([e.match],t.url,!0));if(!a)return;let c=tf(o.id,e.traceSampleRate);(c||e.traceContextInjection===td.ALL)&&(t.traceSampled=c,t.traceId=tm(64),t.spanId=tm(63),s(function(e,t,r,i,n,s,o,a){let c={};if(n.forEach(i=>{switch(i){case"datadog":Object.assign(c,{"x-datadog-origin":"rum","x-datadog-parent-id":t.toString(),"x-datadog-sampling-priority":r?"1":"0","x-datadog-trace-id":e.toString()});break;case"tracecontext":Object.assign(c,{traceparent:`00-0000000000000000${ty(e)}-${ty(t)}-0${r?"1":"0"}`,tracestate:`dd=s:${r?"1":"0"};o:rum`});break;case"b3":Object.assign(c,{b3:`${ty(e)}-${ty(t)}-${r?"1":"0"}`});break;case"b3multi":Object.assign(c,{"X-B3-TraceId":ty(e),"X-B3-SpanId":ty(t),"X-B3-Sampled":r?"1":"0"})}}),a.propagateTraceBaggage){let e={"session.id":i},t=s.getContext().id;"string"==typeof t&&(e["user.id"]=t);let r=o.getContext().id;"string"==typeof r&&(e["account.id"]=r);let n=Object.entries(e).map(([e,t])=>`${e}=${encodeURIComponent(t)}`).join(",");n&&(c.baggage=n)}return c}(t.traceId,t.spanId,t.traceSampled,o.id,a.propagatorTypes,i,n,e)))}let tb=["tracecontext","datadog"],tS=/[a-zA-Z_$]/,tv=/[a-zA-Z0-9_$]/,tE=/[0-9]/,tC=/[a-fA-F0-9]/,tT={0:()=>
1!1,1:()=>!1,2:e=>tS.test(e),3:e=>tv.test(e),4:e=>"."===e,5:e=>"["===e,6:e=>"]"===e,7:e=>tE.test(e),8:e=>"'\"".includes(e),9:(e,t)=>e===t.quote,10:()=>!0,11:e=>"\\"===e,12:(e,t)=>void 0===t.escapeSequence?`${t.quote}/\\bfnrtu`.includes(e):!!t.escapeSequence.startsWith("u")&&t.escapeSequence.length<5&&tC.test(e)},tM={0:[2,5],1:[],2:[3,4,5,1],3:[3,4,5,1],4:[2],5:[8,7],6:[4,5,1],7:[7,6],8:[11,9,10],9:[6],10:[11,9,10],11:[12],12:[12,11,9,10]},tw=[2,3,7,10],tk=[4,5,6],tP={'"':'"',"'":"'","/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},tO=["applicationId","service","env","version","sessionSampleRate","sessionReplaySampleRate","defaultPrivacyLevel","enablePrivacyForActionName","traceSampleRate","trackSessionAcrossSubdomains","allowedTracingUrls","allowedTrackingOrigins"];async function tB(e,t){let r,i,n=(r={fetch:{}},{get:()=>r,increment:(e,t)=>{r[e]||(r[e]={}),r[e][t]||(r[e][t]=0),r[e][t]=r[e][t]+1}}),s=await tA(e);return s.ok?(n.increment("fetch","success"),i=function(e,t,r,i){let n={...e};return tO.forEach(e=>{e in t&&(n[e]=s(t[e]))}),Object.keys(r).forEach(e=>{var i;void 0!==t[e]&&(i=r[e],t[e].forEach(({key:e,value:t})=>{i.setContextProperty(e,s(t))}))}),n;function s(e){if(Array.isArray(e))return e.map(s);if("object"==typeof(t=e)&&null!==t){if("rcSerializedType"in e){let n=e.rcSerializedType;switch(n){case"string":return e.value;case"regex":return tF(e.value);case"dynamic":var t,r=e;let s,o=r.strategy;switch(o){case"cookie":s=function({name:e}){let t=eP(e);return i.increment("cookie",void 0!==t?"success":"missing"),t}(r);break;case"dom":s=function({selector:e,attribute:t}){var r,n;let s;try{s=document.querySelector(e)}catch(t){q.Vy.error(`Invalid selector in the remote configuration: '${e}'`),i.increment("dom","failure");return}if(!s)return void i.increment("dom","missing");if(r=s,n=t,"password"===r.getAttribute("type")&&"value"===n){q.Vy.error(`Forbidden element selected by the remote configuration: '${e}'`),i.increment("dom","failure");return}let o=void 0!==t?s.getAttribute(t):s.textContent;return null===o?void i.increment("dom","missing"):(i.increment("dom","success"),o)}(r);break;case"js":s=function({path:e}){let t=window,r=function(e){let t,r=[],i=0,n={quote:void 0,escapeSequence:void 0},s="";for(let c of e){if(!(t=tM[i].find(e=>tT[e](c,n))))return[];if(void 0!==n.escapeSequence&&12!==t){var o,a;if(o=n.escapeSequence,!("\"'/\\bfnrt".includes(o)||o.startsWith("u")&&5===o.length))return[];s+=(a=n.escapeSequence).startsWith("u")?String.fromCharCode(parseInt(a.slice(1),16)):tP[a],n.escapeSequence=void 0}tw.includes(t)?s+=c:tk.includes(t)&&""!==s?(r.push(s),s=""):12===t?n.escapeSequence=n.escapeSequence?`${n.escapeSequence}${c}`:c:8===t?n.quote=c:9===t&&(n.quote=void 0),i=t}return tM[i].includes(1)?(""!==s&&r.push(s),r):[]}(e);if(0===r.length){q.Vy.error(`Invalid JSON path in the remote configuration: '${e}'`),i.increment("js","failure");return}for(let n of r){if(!(n in t))return void i.increment("js","missing");try{t=t[n]}catch(t){q.Vy.error(`Error accessing: '${e}'`,t),i.increment("js","failure");return}}return i.increment("js","success"),t}(r);break;default:q.Vy.error(`Unsupported remote configuration: "strategy": "${o}"`);return}let a=r.extractor;return void 0!==a&&"string"==typeof s?function(e,t){let r=tF(e.value);if(void 0===r)return;let i=r.exec(t);if(null===i)return;let[n,s]=i;return s||n}(a,s):s;default:q.Vy.error(`Unsupported remote configuration: "rcSerializedType": "${n}"`);return}}return(0,el.LG)(e,s)}return e}}(e,s.value,t,n)):(n.increment("fetch","failure"),q.Vy.error(s.error)),(0,w.Gk)("remote configuration metrics",{metrics:n.get()}),i}function tF(e){try{return new RegExp(e)}catch(t){q.Vy.error(`Invalid regex in the remote configuration: '${e}'`)}}async function tA(e){let t;try{var r;t=await fetch((r=e).remoteConfigurationProxy?r.remoteConfigurationProxy:`https://sdk-configuration.${tl("rum",r)}/v1/${encodeURIComponent(r.remoteConfigurationId)}.json`)}catch(e){t=void 0}if(!t||!t.ok)return{ok:!1,error:Error("Error fetching the remote configuration.")};let i=await t.json();return i.rum?{ok:!0,value:i.rum}:{ok:!1,error:Error("No remote configuration for RUM.")}}function tD(e,t,r){e.changeObservable.subscribe(()=>{let i=e.getContext();r.add(e=>e[t].setContext(i))})}function tI(e,t,r,i={}){var n;let s,o={tryToInit(e){n||(n=e)},update(e){n=e,s.notify()},isGranted:()=>n===y.GRANTED,observable:s=new m.cP},a={vitalsByName:new Map,vitalsByReference:new WeakMap},c=function(e=function(){return new m.cP(e=>{var t,r;let i=(t,r)=>{let i=(0,v.As)({stackTrace:r,originalError:t,startClocks:(0,R.M8)(),nonErrorPrefix:"Uncaught",source:E.g.SOURCE,handling:"unhandled"});e.notify(i)},{stop:n}=(t=i,(0,_.H)((0,S.VZ)(),"onerror",({parameters:[e,r,i,n,s]})=>{let o;(0,v.bJ)(s)||(o=(0,b.h)(e,r,i,n)),t(null!=s?s:e,o)})),{stop:s}=(r=i,(0,_.H)((0,S.VZ)(),"onunhandledrejection",({parameters:[e]})=>{r(e.reason||"Empty reason")}));return()=>{n(),s()}})}){let t=new m.dX(500),r=e().subscribe(e=>{t.notify({type:0,error:e})});return{observable:t,stop:()=>{r.unsubscribe()}}}().observable,l=function({ignoreInitIfSyntheticsWillInjectRum:e=!0,startDeflateWorker:t},r,i,n){let s,o,a,c,l,u=(l=[],{add:e=>{l.push(e)>500&&l.splice(0,1)},remove:e=>{eo(l,e)},drain:e=>{l.forEach(t=>t(e)),l.length=0}}),d=em();tD(d,D,u);let p=e_();tD(p,A,u);let h=eR();tD(h,I,u);let g=r.observable.subscribe(m),f={};function m(){let e;if(!a||!c||!r.isGranted())return;if(g.unsubscribe(),c.trackViewsManually){if(!s)return;u.remove(s.callback),e=s.options}let t=n(c,o,e);u.drain(t)}function _(e,i){var n,s,l,u,d,p,h,g;let f,_,R=(0,eb.d0)();if(R&&(e={...p=e,applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100,defaultPrivacyLevel:null!=(h=p.defaultPrivacyLevel)?h:null==(g=(0,eb.Y9)())?void 0:g.getPrivacyLevel()}),a=e,(0,w.Rr)((f={session_sample_rate:(l=n=e).sessionSampleRate,telemetry_sample_rate:l.telemetrySampleRate,telemetry_configuration_sample_rate:l.telemetryConfigurationSampleRate,telemetry_usage_sample_rate:l.telemetryUsageSampleRate,use_before_send:!!l.beforeSend,use_partitioned_cross_site_session_cookie:l.usePartitionedCrossSiteSessionCookie,use_secure_session_cookie:l.useSecureSessionCookie,use_proxy:!!l.proxy,silent_multiple_init:l.silentMultipleInit,track_session_across_subdomains:l.trackSessionAcrossSubdomains,track_anonymous_user:l.trackA
1nonymousUser,session_persistence:l.sessionPersistence,allow_fallback_to_local_storage:!!l.allowFallbackToLocalStorage,store_contexts_across_pages:!!l.storeContextsAcrossPages,allow_untrusted_events:!!l.allowUntrustedEvents,tracking_consent:l.trackingConsent,use_allowed_tracking_origins:Array.isArray(l.allowedTrackingOrigins),beta_encode_cookie_options:l.betaEncodeCookieOptions,source:l.source,sdk_version:l.sdkVersion,variant:l.variant},{session_replay_sample_rate:n.sessionReplaySampleRate,start_session_replay_recording_manually:n.startSessionReplayRecordingManually,trace_sample_rate:n.traceSampleRate,trace_context_injection:n.traceContextInjection,propagate_trace_baggage:n.propagateTraceBaggage,action_name_attribute:n.actionNameAttribute,use_allowed_tracing_urls:ea(n.allowedTracingUrls),use_allowed_graph_ql_urls:ea(n.allowedGraphQlUrls),use_track_graph_ql_payload:ea(u=n.allowedGraphQlUrls)&&u.some(e=>"object"==typeof e&&"trackPayload"in e&&!!e.trackPayload),use_track_graph_ql_response_errors:ea(d=n.allowedGraphQlUrls)&&d.some(e=>"object"==typeof e&&"trackResponseErrors"in e&&!!e.trackResponseErrors),selected_tracing_propagators:(_=new Set,ea(n.allowedTracingUrls)&&n.allowedTracingUrls.forEach(e=>{ti(e)?tb.forEach(e=>_.add(e)):"object"===(0,ep.P)(e)&&Array.isArray(e.propagatorTypes)&&e.propagatorTypes.forEach(e=>_.add(e))}),Array.from(_)),default_privacy_level:n.defaultPrivacyLevel,enable_privacy_for_action_name:n.enablePrivacyForActionName,use_excluded_activity_urls:ea(n.excludedActivityUrls),use_worker_url:!!n.workerUrl,compress_intake_requests:n.compressIntakeRequests,track_views_manually:n.trackViewsManually,track_user_interactions:n.trackUserInteractions,track_resources:n.trackResources,track_long_task:n.trackLongTasks,track_bfcache_views:n.trackBfcacheViews,track_early_requests:n.trackEarlyRequests,plugins:null==(s=n.plugins)?void 0:s.map(e=>{var t;return{name:e.name,...null==(t=e.getConfigurationTelemetry)?void 0:t.call(e)}}),track_feature_flags_for_events:n.trackFeatureFlagsForEvents,remote_configuration_id:n.remoteConfigurationId,profiling_sample_rate:n.profilingSampleRate,use_remote_configuration_proxy:!!n.remoteConfigurationProxy,...f})),c)return void j("DD_RUM",e);let b=function(e,t){var r,i,n,s,o,a,c;if(void 0===e.trackFeatureFlagsForEvents||Array.isArray(e.trackFeatureFlagsForEvents)||q.Vy.warn("trackFeatureFlagsForEvents should be an array"),!e.applicationId)return void q.Vy.error("Application ID is not configured, no RUM data will be collected.");if(!th(e.sessionReplaySampleRate,"Session Replay")||!th(e.traceSampleRate,"Trace"))return;if(void 0!==e.excludedActivityUrls&&!Array.isArray(e.excludedActivityUrls))return void q.Vy.error("Excluded Activity Urls should be an array");let l=function(e){if(void 0===e.allowedTracingUrls)return[];if(!Array.isArray(e.allowedTracingUrls))return void q.Vy.error("Allowed Tracing URLs should be an array");if(0!==e.allowedTracingUrls.length&&void 0===e.service)return void q.Vy.error("Service needs to be configured when tracing is enabled");let t=[];return e.allowedTracingUrls.forEach(e=>{if(ti(e))t.push({match:e,propagatorTypes:tb});else"object"===(0,ep.P)(e)&&ti(e.match)&&Array.isArray(e.propagatorTypes)?t.push(e):q.Vy.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",e)}),t}(e);if(!l)return;let u=function(e,t){var r,i,n,s,o,a,c,l,u,d,p,h,g;if(!e||!e.clientToken)return void q.Vy.error("Client Token is not configured, we will not send any data.");if(void 0!==e.allowedTrackingOrigins&&!Array.isArray(e.allowedTrackingOrigins))return void q.Vy.error("Allowed Tracking Origins must be an array");if((!(p=e.site)||"string"!=typeof p||/(datadog|ddog|datad0g|dd0g)/.test(p)||(q.Vy.error(`Site should be a valid Datadog site. ${q.xG} ${q.fH}/getting_started/site/.`),0))&&th(e.sessionSampleRate,"Session")&&th(e.telemetrySampleRate,"Telemetry")&&th(e.telemetryConfigurationSampleRate,"Telemetry Configuration")&&th(e.telemetryUsageSampleRate,"Telemetry Usage")&&tp(e.version,"Version")&&tp(e.env,"Env")&&tp(e.service,"Service")&&function(e,t,r="u">typeof location?location.origin:""){let i=e.allowedTrackingOrigins;if(!i)return!function(e,t=""){return!to(e)&&to(t.split("\n").filter(e=>{let t=e.trim();return t.length&&/^at\s+|@/.test(t)})[1]||"")}(r,t)||(q.Vy.error("Running the Browser SDK in a Web extension content script is forbidden unless the `allowedTrackingOrigins` option is provided."),!1);let n=tn(i,r);return n||q.Vy.error("SDK initialized on a non-allowed domain."),n}(e,null!=t?t:"")){let t,p,f;if(void 0!==e.trackingConsent&&!(0,el.Rj)(y,e.trackingConsent))return void q.Vy.error('Tracking Consent should be either "granted" or "not-granted"');return{beforeSend:e.beforeSend&&(0,ex.y)(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:S.Wq?void 0:function(e){switch(e.sessionPersistence){case e$:return e0(e);case eH:return e4();case void 0:{let t=e0(e);return!t&&e.allowFallbackToLocalStorage&&(t=e4()),t}default:q.Vy.error(`Invalid session persistence '${String(e.sessionPersistence)}'`)}}(e),sessionSampleRate:null!=(r=e.sessionSampleRate)?r:100,telemetrySampleRate:null!=(i=e.telemetrySampleRate)?i:20,telemetryConfigurationSampleRate:null!=(n=e.telemetryConfigurationSampleRate)?n:5,telemetryUsageSampleRate:null!=(s=e.telemetryUsageSampleRate)?s:5,service:null!=(o=e.service)?o:void 0,env:null!=(a=e.env)?a:void 0,version:null!=(c=e.version)?c:void 0,datacenter:null!=(l=e.datacenter)?l:void 0,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,trackingConsent:null!=(u=e.trackingConsent)?u:y.GRANTED,trackAnonymousUser:null==(d=e.trackA
1nonymousUser)||d,storeContextsAcrossPages:!!e.storeContextsAcrossPages,betaEncodeCookieOptions:!!e.betaEncodeCookieOptions,variant:e.variant,sdkVersion:e.sdkVersion,...(t=e.site||ta.NW,p="flutter"===(h=e.source)||"unity"===h?h:"browser",f={logsEndpointBuilder:tc(g={...e,site:t,source:p},"logs"),rumEndpointBuilder:tc(g,"rum"),profilingEndpointBuilder:tc(g,"profile"),sessionReplayEndpointBuilder:tc(g,"replay"),exposuresEndpointBuilder:tc(g,"exposures"),flagEvaluationEndpointBuilder:tc(g,"flagevaluation")},{replica:function(e){if(!e.replica)return;let t={...e,site:ta.NW,clientToken:e.replica.clientToken};return{logsEndpointBuilder:tc(t,"logs"),rumEndpointBuilder:tc(t,"rum",[`application.id=${e.replica.applicationId}`])}}({...e,site:t,source:p}),site:t,source:p,...f})}}}(e,t),d=function(e){if(!e.allowedGraphQlUrls)return[];if(!Array.isArray(e.allowedGraphQlUrls))return q.Vy.warn("allowedGraphQlUrls should be an array"),[];let t=[];return e.allowedGraphQlUrls.forEach(e=>{ti(e)?t.push({match:e,trackPayload:!1,trackResponseErrors:!1}):e&&"object"==typeof e&&"match"in e&&ti(e.match)&&t.push({match:e.match,trackPayload:!!e.trackPayload,trackResponseErrors:!!e.trackResponseErrors})}),t}(e);if(!u)return;let p=null!=(r=e.sessionReplaySampleRate)?r:0;return{applicationId:e.applicationId,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:p,startSessionReplayRecordingManually:void 0!==e.startSessionReplayRecordingManually?!!e.startSessionReplayRecordingManually:0===p,traceSampleRate:null!=(i=e.traceSampleRate)?i:100,rulePsr:(0,eL.Et)(e.traceSampleRate)?e.traceSampleRate/100:void 0,allowedTracingUrls:l,excludedActivityUrls:null!=(n=e.excludedActivityUrls)?n:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!(null==(s=e.trackUserInteractions)||s),trackViewsManually:!!e.trackViewsManually,trackResources:!!(null==(o=e.trackResources)||o),trackLongTasks:!!(null==(a=e.trackLongTasks)||a),trackBfcacheViews:!!e.trackBfcacheViews,trackEarlyRequests:!!e.trackEarlyRequests,subdomain:e.subdomain,defaultPrivacyLevel:(0,el.Rj)(tu,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:tu.MASK,enablePrivacyForActionName:!!e.enablePrivacyForActionName,traceContextInjection:(0,el.Rj)(td,e.traceContextInjection)?e.traceContextInjection:td.SAMPLED,plugins:e.plugins||[],trackFeatureFlagsForEvents:e.trackFeatureFlagsForEvents||[],profilingSampleRate:null!=(c=e.profilingSampleRate)?c:0,propagateTraceBaggage:!!e.propagateTraceBaggage,allowedGraphQlUrls:d,...u}}(e,i);if(b){if(!R&&!b.sessionStoreStrategyType)return void q.Vy.warn("No storage available for session. We will not send any data.");if(b.compressIntakeRequests&&!R&&t&&!(o=t(b,"Datadog RUM",eS.l)))return;c=b,eM().subscribe(eS.l),r.tryToInit(b.trackingConsent),m()}}let b=e=>{u.add(t=>t.addDurationVital(e))};return{init(t,r,i){t?((0,X.Aq)(t.enableExperimentalFeatures),a=t,e&&eF()||(es(t.plugins,"onInit",{initConfiguration:t,publicApi:r}),t.remoteConfigurationId?tB(t,{user:p,context:d}).then(e=>{e&&_(e,i)}).catch(M.Dx):_(t,i))):q.Vy.error("Missing configuration")},get initConfiguration(){return a},getInternalContext:eS.l,stopSession:eS.l,addTiming(e,t=(0,R.nx)()){u.add(r=>r.addTiming(e,t))},startView(e,t=(0,R.M8)()){let r=r=>{r.startView(e,t)};u.add(r),s||(s={options:e,callback:r},m())},setViewName(e){u.add(t=>t.setViewName(e))},setViewContext(e){u.add(t=>t.setViewContext(e))},setViewContextProperty(e,t){u.add(r=>r.setViewContextProperty(e,t))},getViewContext:()=>f,globalContext:d,userContext:p,accountContext:h,addAction(e){u.add(t=>t.addAction(e))},addError(e){u.add(t=>t.addError(e))},addFeatureFlagEvaluation(e,t){u.add(r=>r.addFeatureFlagEvaluation(e,t))},startDurationVital:(e,t)=>er(i,e,t),stopDurationVital(e,t){ei(b,i,e,t)},addDurationVital:b,addOperationStepVital:(e,t,r,i)=>{u.add(n=>n.addOperationStepVital((0,B.a)(e),t,(0,B.a)(r),(0,B.a)(i)))}}}(i,o,a,(n,s,u)=>{var d,p;let h=s&&i.createDeflateEncoder?e=>i.createDeflateEncoder(n,s,e):T,g=e(n,t,r,u,h,o,a,c,i.sdkName);return t.onRumStart(g.lifeCycle,n,g.session,g.viewHistory,s,g.telemetry),r.onRumStart(g.lifeCycle,g.hooks,n,g.session,g.viewHistory,h),d=l,p=g,l={init:e=>{j("DD_RUM",e)},initConfiguration:d.initConfiguration,...p},es(n.plugins,"onRumStart",{strategy:l,addEvent:g.addEvent}),g}),u=()=>l,d=(0,M.dm)(e=>{l.startView("object"==typeof e?e:{name:e}),(0,w.Q6)({feature:"start-view"})}),p=(0,k.m)({init:e=>{let t=Error().stack;(0,M.um)(()=>l.init(e,p,t))},setTrackingConsent:(0,M.dm)(e=>{o.update(e),(0,w.Q6)({feature:"set-tracking-consent",tracking_consent:e})}
1),setViewName:(0,M.dm)(e=>{l.setViewName(e),(0,w.Q6)({feature:"set-view-name"})}),setViewContext:(0,M.dm)(e=>{l.setViewContext(e),(0,w.Q6)({feature:"set-view-context"})}),setViewContextProperty:(0,M.dm)((e,t)=>{l.setViewContextProperty(e,t),(0,w.Q6)({feature:"set-view-context-property"})}),getViewContext:(0,M.dm)(()=>((0,w.Q6)({feature:"set-view-context-property"}),l.getViewContext())),getInternalContext:(0,M.dm)(e=>l.getInternalContext(e)),getInitConfiguration:(0,M.dm)(()=>(0,P.Go)(l.initConfiguration)),addAction:(e,t)=>{let r=(0,O.uC)("action");(0,M.um)(()=>{l.addAction({name:(0,B.a)(e),context:(0,B.a)(t),startClocks:(0,R.M8)(),type:K.CUSTOM,handlingStack:r}),(0,w.Q6)({feature:"add-action"})})},addError:(e,t)=>{let r=(0,O.uC)("error");(0,M.um)(()=>{l.addError({error:e,handlingStack:r,context:(0,B.a)(t),startClocks:(0,R.M8)()}),(0,w.Q6)({feature:"add-error"})})},addTiming:(0,M.dm)((e,t)=>{l.addTiming((0,B.a)(e),t)}),setGlobalContext:F(u,D,L,"set-global-context"),getGlobalContext:F(u,D,x,"get-global-context"),setGlobalContextProperty:F(u,D,N,"set-global-context-property"),removeGlobalContextProperty:F(u,D,W,"remove-global-context-property"),clearGlobalContext:F(u,D,G,"clear-global-context"),setUser:F(u,A,L,"set-user"),getUser:F(u,A,x,"get-user"),setUserProperty:F(u,A,N,"set-user-property"),removeUserProperty:F(u,A,W,"remove-user-property"),clearUser:F(u,A,G,"clear-user"),setAccount:F(u,I,L,"set-account"),getAccount:F(u,I,x,"get-account"),setAccountProperty:F(u,I,N,"set-account-property"),removeAccountProperty:F(u,I,W,"remove-account-property"),clearAccount:F(u,I,G,"clear-account"),startView:d,stopSession:(0,M.dm)(()=>{l.stopSession(),(0,w.Q6)({feature:"stop-session"})}),addFeatureFlagEvaluation:(0,M.dm)((e,t)=>{l.addFeatureFlagEvaluation((0,B.a)(e),(0,B.a)(t)),(0,w.Q6)({feature:"add-feature-flag-evaluation"})}),getSessionReplayLink:(0,M.dm)(()=>t.getSessionReplayLink()),startSessionReplayRecording:(0,M.dm)(e=>{t.start(e),(0,w.Q6)({feature:"start-session-replay-recording",force:e&&e.force})}),stopSessionReplayRecording:(0,M.dm)(()=>t.stop()),addDurationVital:(0,M.dm)((e,t)=>{(0,w.Q6)({feature:"add-duration-vital"}),l.addDurationVital({name:(0,B.a)(e),type:Y,startClocks:(0,R.jR)(t.startTime),duration:t.duration,context:(0,B.a)(t&&t.context),description:(0,B.a)(t&&t.description)})}),startDurationVital:(0,M.dm)((e,t)=>((0,w.Q6)({feature:"start-duration-vital"}),l.startDurationVital((0,B.a)(e),{context:(0,B.a)(t&&t.context),description:(0,B.a)(t&&t.description)}))),stopDurationVital:(0,M.dm)((e,t)=>{(0,w.Q6)({feature:"stop-duration-vital"}),l.stopDurationVital("string"==typeof e?(0,B.a)(e):e,{context:(0,B.a)(t&&t.context),description:(0,B.a)(t&&t.description)})}),startFeatureOperation:(0,M.dm)((e,t)=>{(0,w.Q6)({feature:"add-operation-step-vital",action_type:"start"}),l.addOperationStepVital(e,"start",t)}),succeedFeatureOperation:(0,M.dm)((e,t)=>{(0,w.Q6)({feature:"add-operation-step-vital",action_type:"succeed"}),l.addOperationStepVital(e,"end",t)}),failFeatureOperation:(0,M.dm)((e,t,r)=>{(0,w.Q6)({feature:"add-operation-step-vital",action_type:"fail"}),l.addOperationStepVital(e,"end",r,t)})});return p}var tx=r(45664),tL=r(15638),tN=r(33095);function tW(){let e,t=window;if(t.Zone&&(e=(0,tN.W)(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){let r=new t.MutationObserver(eS.l),i=(0,tN.W)(r,"originalInstance");e=i&&i.constructor}return e||(e=t.MutationObserver),e}class tG{constructor(){this.callbacks={}}notify(e,t){let r=this.callbacks[e];r&&r.forEach(e=>e(t))}subscribe(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:()=>{this.callbacks[e]=this.callbacks[e].filter(e=>t!==e)}}}}let tq=1/0,tj=R.iW,tz=null,tU=new Set;function t$({expireDelay:e,maxEntries:t}){let r=[];tz||(tz=(0,eN.yb)(()=>void tU.forEach(e=>e()),tj));let i=()=>{let t=(0,R.$S)()-e;for(;r.length>0&&r[r.length-1].endTime<t;)r.pop()};return tU.add(i),{add:function(e,i){let n={value:e,startTime:i,endTime:tq,remove:()=>{eo(r,n)},close:e=>{n.endTime=e}};return t&&r.length>=t&&r.pop(),r.unshift(n),n},find:function(e=tq,t={returnInactive:!1}){for(let i of r)if(i.startTime<=e){if(t.returnInactive||e<=i.endTime)return i.value;break}},closeActive:function(e){let t=r[0];t&&t.endTime===tq&&t.close(e)}
1,findAll:function(e=tq,t=0){let i=(0,R.Gw)(e,t);return r.filter(t=>t.startTime<=i&&e<=t.endTime).map(e=>e.value)},reset:function(){r=[]},stop:function(){tU.delete(i),0===tU.size&&tz&&((0,eN.vG)(tz),tz=null)}}}let tH=new WeakMap;function tK({target:e,parameters:[t,r]}){tH.set(e,{state:"open",method:String(t).toUpperCase(),url:(0,ev.l2)(String(r))})}function tV({target:e}){let t=tH.get(e);t&&(t.isAborted=!0)}let tJ="fetch",tY="other",tX="initial_document",tZ=[["document",e=>tX===e],["xhr",e=>"xmlhttprequest"===e],[tJ,e=>"fetch"===e],["beacon",e=>"beacon"===e],["css",(e,t)=>/\.css$/i.test(t)],["js",(e,t)=>/\.js$/i.test(t)],["image",(e,t)=>["image","img","icon"].includes(e)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)],["font",(e,t)=>null!==/\.(woff|eot|woff2|ttf)$/i.exec(t)],["media",(e,t)=>["audio","video"].includes(e)||null!==/\.(mp3|mp4)$/i.exec(t)]];function tQ(...e){for(let t=1;t<e.length;t+=1)if(e[t-1]>e[t])return!1;return!0}function t0(e){return"xmlhttprequest"===e.initiatorType||"fetch"===e.initiatorType}function t1(e){return e.duration>=0}function t2(e){var t;let r=tQ(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd),i=!((t=e).redirectEnd>t.startTime)||tQ(e.startTime,e.redirectStart,e.redirectEnd,e.fetchStart);return r&&i}function t3(e,t,r){if(e<=t&&t<=r)return{duration:(0,R.Zj)((0,R.vk)(t,r)),start:(0,R.Zj)((0,R.vk)(e,t))}}function t4(e){return e&&(!ta.Ih.every(t=>e.includes(t))||(0,X.sr)(X.R9.TRACK_INTAKE_REQUESTS))}let t5=/data:(.+)?(;base64)?,/g;function t6(e,t=24e3){if(e.length<=t||!e.startsWith("data:"))return e;let r=e.substring(0,100).match(t5);return r?`${r[0]}[...]`:e}let t7=32*C._m;function t9(e,t){return t.allowedGraphQlUrls.find(t=>tn([t.match],e))}let t8=1;function re(){let e=t8;return t8+=1,e}function rt(e){return(0,eL.Et)(e)&&e<0?void 0:e}function rr({lifeCycle:e,isChildEvent:t,onChange:r=eS.l}){let i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},n=e.subscribe(13,e=>{var n;if("view"!==e.type&&"vital"!==e.type&&t(e))switch(e.type){case z.ERROR:i.errorCount+=1,r();break;case z.ACTION:i.actionCount+=1,e.action.frustration&&(i.frustrationCount+=e.action.frustration.type.length),r();break;case z.LONG_TASK:i.longTaskCount+=1,r();break;case z.RESOURCE:(null==(n=e._dd)?void 0:n.discarded)||(i.resourceCount+=1,r())}});return{stop:()=>{n.unsubscribe()},eventCounts:i}}function ri(e,t){return new m.cP(r=>{var i;let n,s;if(!window.PerformanceObserver)return;let o=e=>{let t=e.filter(e=>{var t;return!((t=e).entryType===f.RESOURCE&&(!t4(t.name)||!t1(t)))});t.length>0&&r.notify(t)},a=!0,l=new PerformanceObserver((0,M.dm)(e=>{a?n=(0,eN.wg)(()=>o(e.getEntries())):o(e.getEntries())}));try{l.observe(t)}catch(e){if([f.RESOURCE,f.NAVIGATION,f.LONG_TASK,f.PAINT].includes(t.type)){t.buffered&&(n=(0,eN.wg)(()=>o(performance.getEntriesByType(t.type))));try{l.observe({entryTypes:[t.type]})}catch(e){return}}}return a=!1,i=e,!c&&void 0!==window.performance&&"getEntries"in performance&&"addEventListener"in performance&&(c=(0,ec.q)(i,performance,"resourcetimingbufferfull",()=>{performance.clearResourceTimings()})),rn(f.FIRST_INPUT)||t.type!==f.FIRST_INPUT||({stop:s}=function(e,t){let r=(0,R.x3)(),i=!1,{stop:n}=(0,ec.l)(e,window,["click","mousedown","keydown","touchstart","pointerdown"],t=>{var r,i;if(!t.cancelable)return;let n={entryType:"first-input",processingStart:(0,R.$S)(),processingEnd:(0,R.$S)(),startTime:t.timeStamp,duration:0,name:"",cancelable:!1,target:null,toJSON:()=>({})};"pointerdown"===t.type?(r=e,i=n,(0,ec.l)(r,window,["pointerup","pointercancel"],e=>{"pointerup"===e.type&&s(i)},{once:!0})):s(n)},{passive:!0,capture:!0});return{stop:n};function s(e){if(!i){i=!0,n();let s=e.processingStart-e.startTime;s>=0&&s<(0,R.x3)()-r&&t(e)}}}(e,e=>{o([e])})),()=>{l.disconnect(),s&&s(),(0,eN.DJ)(n)}})}function rn(e){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(e)}function rs(e){return e.nodeType===Node.TEXT_NODE}
1function ro(e){return e.nodeType===Node.ELEMENT_NODE}function ra(e){return ro(e)&&!!e.shadowRoot}function rc(e){return!!e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&ro(e.host)}function rl(e){return e.childNodes.length>0||ra(e)}function ru(e,t){let r=e.firstChild;for(;r;)t(r),r=r.nextSibling;ra(e)&&t(e.shadowRoot)}function rd(e){return rc(e)?e.host:e.parentNode}(g=f||(f={})).EVENT="event",g.FIRST_INPUT="first-input",g.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",g.LAYOUT_SHIFT="layout-shift",g.LONG_TASK="longtask",g.LONG_ANIMATION_FRAME="long-animation-frame",g.NAVIGATION="navigation",g.PAINT="paint",g.RESOURCE="resource",g.VISIBILITY_STATE="visibility-state";let rp="data-dd-excluded-activity-mutations";function rh(e,t,r){let i,n=!1,s=(0,eN.wg)((0,M.dm)(()=>l({hadActivity:!1})),100),o=void 0!==r?(0,eN.wg)((0,M.dm)(()=>l({hadActivity:!0,end:(0,R.nx)()})),r):void 0,a=e.subscribe(({isBusy:e})=>{(0,eN.DJ)(s),(0,eN.DJ)(i);let t=(0,R.nx)();e||(i=(0,eN.wg)((0,M.dm)(()=>l({hadActivity:!0,end:t})),100))}),c=()=>{n=!0,(0,eN.DJ)(s),(0,eN.DJ)(i),(0,eN.DJ)(o),a.unsubscribe()};function l(e){n||(c(),t(e))}return{stop:c}}function rg(e,t,r,i){return new m.cP(n=>{let s,o=[],a=0;return o.push(t.subscribe(e=>{e.every(rm)||c()}),r.subscribe(c),ri(i,{type:f.RESOURCE}).subscribe(e=>{e.some(e=>!rf(i,e.name))&&c()}),e.subscribe(7,e=>{rf(i,e.url)||(void 0===s&&(s=e.requestIndex),a+=1,c())}),e.subscribe(8,e=>{rf(i,e.url)||void 0===s||e.requestIndex<s||(a-=1,c())})),()=>{o.forEach(e=>e.unsubscribe())};function c(){n.notify({isBusy:a>0})}})}function rf(e,t){return tn(e.excludedActivityUrls,t)}function rm(e){let t="characterData"===e.type?e.target.parentElement:e.target;return!!(t&&ro(t)&&t.matches(`[${rp}], [${rp}] *`))}let ry="data-dd-action-name",r_="Masked Element",rR=[ry,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],rb=[rC,function(e){if(e.id&&!rE(e.id))return`#${CSS.escape(e.id)}`}],rS=[rC,function(e){if("BODY"===e.tagName)return;let t=e.classList;for(let r=0;r<t.length;r+=1){let i=t[r];if(!rE(i))return`${CSS.escape(e.tagName)}.${CSS.escape(i)}`}},function(e){return CSS.escape(e.tagName)}];function rv(e,t){let r;if(!e.isConnected)return;let i=e;for(;i&&"HTML"!==i.nodeName;){let e=rT(i,rb,rM,t,r);if(e)return e;r=rT(i,rS,rw,t,r)||rk(function(e){let t=e.parentElement.firstElementChild,r=1;for(;t&&t!==e;)t.tagName===e.tagName&&(r+=1),t=t.nextElementSibling;return`${CSS.escape(e.tagName)}:nth-of-type(${r})`}(i),r),i=i.parentElement}return r}function rE(e){return/[0-9]/.test(e)}function rC(e,t){if(t){let e=r(t);if(e)return e}for(let e of rR){let t=r(e);if(t)return t}function r(t){if(e.hasAttribute(t))return`${CSS.escape(e.tagName)}[${t}="${CSS.escape(e.getAttribute(t))}"]`}}function rT(e,t,r,i,n){for(let s of t){let t=s(e,i);if(t&&r(e,t,n))return rk(t,n)}}function rM(e,t,r){return 1===e.ownerDocument.querySelectorAll(rk(t,r)).length}function rw(e,t,r){let i;if(void 0===r)i=e=>e.matches(t);else{let e=rk(`${t}:scope`,r);i=t=>null!==t.querySelector(e)}let n=e.parentElement.firstElementChild;for(;n;){if(n!==e&&i(n))return!1;n=n.nextElementSibling}return!0}function rk(e,t){return t?`${e}>${t}`:e}let rP={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:tu.ALLOW,MASK:tu.MASK,MASK_USER_INPUT:tu.MASK_USER_INPUT,MASK_UNLESS_ALLOWLISTED:tu.MASK_UNLESS_ALLOWLISTED},rO="data-dd-privacy",rB="hidden",rF="***",rA="data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",rD={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function rI(e){return`[${rO}="${e}"], .dd-privacy-${e}`}function rx(e,t,r){if(r&&r.has(e))return r.get(e);let i=rd(e),n=i?rx(i,t,r):t,s=rL(rN(e),n);return r&&r.set(e,s),s}function rL(e,t){switch(t){case rP.HIDDEN:case rP.IGNORE:return t}switch(e){case rP.ALLOW:case rP.MASK:case rP.MASK_USER_INPUT:case rP.MASK_UNLESS_ALLOWLISTED:case rP.HIDDEN:case rP.IGNORE:return e;default:return t}}function rN(e){if(ro(e)){if("BASE"===e.tagName)return rP.ALLOW;if("INPUT"===e.tagName){if("password"===e.type||"email"===e.type||"tel"===e.type||"hidden"===e.type)return rP.MASK;let t=e.getAttribute("autocomplete");if(t&&(t.startsWith("cc-")||t.endsWith("-password")))return rP.MASK}if(e.matches(rI(rP.HIDDEN)))return rP.HIDDEN;if(e.matches(rI(rP.MASK)))return rP.MASK;if(e.matches(rI(rP.MASK_UNLESS_ALLOWLISTED)))return rP.MASK_UNLESS_ALLOWLISTED;if(e.matches(rI(rP.MASK_USER_INPUT)))return rP.MASK_USER_INPUT;if(e.matches(rI(rP.ALLOW)))return rP.ALLOW;if(function(e){if("SCRIPT"===e.nodeName)return!0;
1if("LINK"===e.nodeName){let e=t("rel");return/preload|prefetch/i.test(e)&&"script"===t("as")||"shortcut icon"===e||"icon"===e}if("META"===e.nodeName){let r=t("name"),i=t("rel"),n=t("property");return/^msapplication-tile(image|color)$/.test(r)||"application-name"===r||"icon"===i||"apple-touch-icon"===i||"shortcut icon"===i||"keywords"===r||"description"===r||/^(og|twitter|fb):/.test(n)||/^(og|twitter):/.test(r)||"pinterest"===r||"robots"===r||"googlebot"===r||"bingbot"===r||e.hasAttribute("http-equiv")||"author"===r||"generator"===r||"framework"===r||"publisher"===r||"progid"===r||/^article:/.test(n)||/^product:/.test(n)||"google-site-verification"===r||"yandex-verification"===r||"csrf-token"===r||"p:domain_verify"===r||"verify-v1"===r||"verification"===r||"shopify-checkout-api-token"===r}function t(t){return(e.getAttribute(t)||"").toLowerCase()}return!1}(e))return rP.IGNORE}}function rW(e,t){switch(t){case rP.MASK:case rP.HIDDEN:case rP.IGNORE:return!0;case rP.MASK_UNLESS_ALLOWLISTED:if(rs(e))return!!rq(e.parentNode)||!rz(e.textContent||"");return rq(e);case rP.MASK_USER_INPUT:return rs(e)?rq(e.parentNode):rq(e);default:return!1}}function rG(e,t,r,i,n){if(i!==rP.MASK&&i!==rP.MASK_UNLESS_ALLOWLISTED||t===rO||rR.includes(t)||t===n.actionNameAttribute)return!1;switch(t){case"title":case"alt":case"placeholder":case"aria-label":case"name":return!0}return!!("A"===e&&"href"===t||"IFRAME"===e&&"srcdoc"===t||r&&t.startsWith("data-"))||("IMG"===e||"SOURCE"===e)&&("src"===t||"srcset"===t)}function rq(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;if("INPUT"===e.tagName)switch(e.type){case"button":case"color":case"reset":case"submit":return!1}return!!rD[e.tagName]}function rj(e,t){var r;let i=null==(r=e.parentElement)?void 0:r.tagName,n=e.textContent||"";if("HEAD"!==i||n.trim()){if("SCRIPT"===i)n=rF;else if(t===rP.HIDDEN)n=rF;else if(rW(e,t))if("DATALIST"===i||"SELECT"===i||"OPTGROUP"===i){if(!n.trim())return}else n="OPTION"===i?rF:t===rP.MASK_UNLESS_ALLOWLISTED?rU(n):n.replace(/\S/g,"x");return n}}function rz(e){var t;return!(e&&e.trim())||(null==(t=window.$DD_ALLOW)?void 0:t.has(e.toLocaleLowerCase()))||!1}function rU(e,t){return rz(e)?e:t||e.replace(/\S/g,"x")}let r$=R.OY;function rH(e,t){let r=e.closest(`[${t}]`);if(r)return rX(rY(r.getAttribute(t).trim()))}let rK=[(e,t,r)=>{if("labels"in e&&e.labels&&e.labels.length>0)return rQ(e.labels[0],t,r)},e=>{if("INPUT"===e.nodeName){let t=e.getAttribute("type");if("button"===t||"submit"===t||"reset"===t)return{name:e.value,nameSource:"text_content"}}},(e,t,r)=>{if("BUTTON"===e.nodeName||"LABEL"===e.nodeName||"button"===e.getAttribute("role"))return rQ(e,t,r)},(e,t,r)=>rZ(e,"aria-label",t,r),(e,t,r)=>{let i=e.getAttribute("aria-labelledby");if(i)return{name:i.split(/\s+/).map(t=>{var r,i;return r=e,i=t,r.ownerDocument?r.ownerDocument.getElementById(i):null}).filter(e=>!!e).map(e=>r0(e,t,r)).join(" "),nameSource:"text_content"}},(e,t,r)=>rZ(e,"alt",t,r),(e,t,r)=>rZ(e,"name",t,r),(e,t,r)=>rZ(e,"title",t,r),(e,t,r)=>rZ(e,"placeholder",t,r),(e,t,r)=>{if("options"in e&&e.options.length>0)return rQ(e.options[0],t,r)}],rV=[(e,t,r)=>rQ(e,t,r)];function rJ(e,t,r,i){let n=e,s=0;for(;s<=10&&n&&"BODY"!==n.nodeName&&"HTML"!==n.nodeName&&"HEAD"!==n.nodeName;){for(let e of t){let t=e(n,r,i);if(t){let{name:e,nameSource:r}=t,i=e&&e.trim();if(i)return{name:rX(rY(i)),nameSource:r}}}if("FORM"===n.nodeName)break;n=n.parentElement,s+=1}}function rY(e){return e.replace(/\s+/g," ")}function rX(e){return e.length>100?`${et(e,100)} [...]`:e}function rZ(e,t,r,i){let{enablePrivacyForActionName:n,defaultPrivacyLevel:s}=r,o=e.getAttribute(t);if(o&&n){let n=rx(e,s,i);rG(e.tagName,t,o,n,r)&&(o=rU(o,r_))}else o||(o="");return{name:o,nameSource:"standard_attribute"}}function rQ(e,t,r){return{name:r0(e,t,r)||"",nameSource:"text_content"}}function r0(e,t,r){if(e.isContentEditable)return;let{enablePrivacyForActionName:i,actionNameAttribute:n,defaultPrivacyLevel:s}=t;if((0,X.sr)(X.R9.USE_TREE_WALKER_FOR_ACTION_NAME)){var o=e,a=n,c=i,l=s,u=r;let t=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,function(e){let t=rx(e,l,u);if(c&&t&&rW(e,t))return NodeFilter.FILTER_REJECT;
1if(ro(e)){if(e.hasAttribute(ry)||a&&e.hasAttribute(a))return NodeFilter.FILTER_REJECT;let t=getComputedStyle(e);if("visible"!==t.visibility||"none"===t.display||t.contentVisibility&&"visible"!==t.contentVisibility)return NodeFilter.FILTER_REJECT}return NodeFilter.FILTER_ACCEPT}),d="";for(;t.nextNode();){let e=t.currentNode;if(ro(e)){("BR"===e.nodeName||"P"===e.nodeName||["block","flex","grid","list-item","table","table-caption"].includes(getComputedStyle(e).display))&&(d+=" ");continue}d+=e.textContent||""}return d.replace(/\s+/g," ").trim()}if("innerText"in e){let t=e.innerText,r=r=>{let i=e.querySelectorAll(r);for(let e=0;e<i.length;e+=1){let r=i[e];if("innerText"in r){let e=r.innerText;e&&e.trim().length>0&&(t=t.replace(e,""))}}};return r(`[${ry}]`),n&&r(`[${n}]`),i&&r(`${rI(rP.HIDDEN)}, ${rI(rP.MASK)}`),t}return e.textContent}function r1(){let e=window.getSelection();return!e||e.isCollapsed}function r2(e){return e.target instanceof Element&&!1!==e.isPrimary}function r3(e){if(e.hasPageActivity||e.getUserActivity().input||e.getUserActivity().scroll)return!1;let t=e.event.target;return"LABEL"===t.tagName&&t.hasAttribute("for")&&(t=document.getElementById(t.getAttribute("for"))),!t||!t.matches('input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *')}let r4=10*R.OY,r5=new Map;function r6(e,t){r5.set(e,t),r5.forEach((e,t)=>{(0,R.vk)(t,(0,R.$S)())>r4&&r5.delete(t)})}let r7=5*R.iW;function r9(e){let t=r8(e)?{action:{id:e.id,loading_time:rt((0,R.Zj)(e.duration)),frustration:{type:e.frustrationTypes},error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},_dd:{action:{target:e.target,position:e.position,name_source:e.nameSource}}}:{context:e.context},r=(0,P.kg)({action:{id:Z(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:z.ACTION},t),i=r8(e)?e.duration:void 0,n=r8(e)?{events:e.events}:{handlingStack:e.handlingStack};return{rawRumEvent:r,duration:i,startTime:e.startClocks.relative,domainContext:n}}function r8(e){return e.type!==K.CUSTOM}var ie=r(70493);let it={},ir="csp_violation";function ii(e){return{startClocks:(0,R.M8)(),source:E.g.REPORT,handling:"unhandled",...e}}function is(e,t,r,i,n){return r?(0,O.Yn)({name:e,message:t,stack:[{func:"?",url:r,line:null!=i?i:void 0,column:null!=n?n:void 0}]}):void 0}var io=r(80168);let ia=R.OY,ic=new WeakSet;function il(e){return(0,R.Gw)(e.startTime,e.duration)}var iu=r(7247);let id=2*R.iW;function ip(e,t){let r=t&&Number(t);if(e&&r)return{traceId:e,traceTime:r}}function ih(e){if(e&&e.nodeType===Node.COMMENT_NODE){let t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function ig(){if(rn(f.NAVIGATION)){let e=performance.getEntriesByType(f.NAVIGATION)[0];if(e)return e}let e=function(){let e={},t=performance.timing;for(let r in t)if((0,eL.Et)(t[r])){let i=t[r];e[r]=0===i?0:(0,R.gs)(i)}return e}(),t={entryType:f.NAVIGATION,initiatorType:"navigation",name:window.location.href,startTime:0,duration:e.loadEventEnd,decodedBodySize:0,encodedBodySize:0,transferSize:0,workerStart:0,toJSON:()=>({...t,toJSON:void 0}),...e};return t}function im(e,t,r,i){let n=t0(e)&&i?i.getMatchingRequest(e):void 0;return iy(e,n,r,t)}function iy(e,t,r,i){var n,s,o,a;if(!e&&!t)return;let c=t?function(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toString(),trace_id:e.traceId.toString(),rule_psr:t.rulePsr}}}(t,i):function(e,t){if(e.traceId)return{_dd:{trace_id:e.traceId,span_id:tm(63).toString(),rule_psr:t.rulePsr}}}(e,i);if(!i.trackResources&&!c)return;let l=e?(0,R.FR)(e.startTime):t.startClocks,u=e?function(e){let{duration:t,startTime:r,responseEnd:i}=e;return 0===t&&r<i?(0,R.vk)(r,i):t}(e):(n=r,s=l,o=t.duration,n.wasInPageStateDuringPeriod("frozen",s.relative,o)?void 0:o),d=t&&function(e,t){let r=t9(e.url,t);if(r){let t=function(e,t=!1){let r,i,n,s;if(!e||"string"!=typeof e)return;try{r=JSON.parse(e)}catch(e){return}if(!r)return;if(r.query){var o;let e=r.query.trim();i=null==(o=e.match(/^\s*(query|mutation|subscription)\b/i))?void 0:o[1],t&&(n=et(e,t7,"..."))}let a=r.operationName;return r.variables&&(s=JSON.stringify(r.variables)),{operationType:i,operationName:a,variables:s,payload:n}}(e.requestBody,r.trackPayload);if(t){if(r.trackResponseErrors&&e.responseBody){let r=function(e){let t;try{t=JSON.parse(e)}catch(e){return}if(!t||"object"!=typeof t)return;let r=t;if(ea(r.errors))return r.errors.map(e=>{var t;return{message:e.message,path:e.path,locations:e.locations,code:null==(t=e.extensions)?void 0:t.code}})}(e.responseBody);r&&(t.errors_count=r.length,t.errors=r)}return t}return}}(t,i),p=(0,P.kg)({date:l.timeStamp,resource:{id:Z(),duration:(0,R.Zj)(u),type:t?"x
1hr"===t.type?"xhr":tJ:function(e){let t=e.name;if(!(0,ev.AY)(t))return tY;let r=(0,ev.L2)(t);for(let[t,i]of tZ)if(i(e.initiatorType,r))return t;return tY}(e),method:t?t.method:void 0,status_code:t?t.status:0===(a=e.responseStatus)?void 0:a,url:t?t6(t.url):e.name,protocol:e&&(""===e.nextHopProtocol?void 0:e.nextHopProtocol),delivery_type:e&&(""===e.deliveryType?"other":e.deliveryType),graphql:d},type:z.RESOURCE,_dd:{discarded:!i.trackResources}},c,e&&function(e){let{renderBlockingStatus:t}=e;return{resource:{render_blocking_status:t,...function(e){if(e.startTime<e.responseStart){let{encodedBodySize:t,decodedBodySize:r,transferSize:i}=e;return{size:r,encoded_body_size:t,decoded_body_size:r,transfer_size:i}}return{size:void 0,encoded_body_size:void 0,decoded_body_size:void 0,transfer_size:void 0}}(e),...function(e){if(!t2(e))return;let{startTime:t,fetchStart:r,workerStart:i,redirectStart:n,redirectEnd:s,domainLookupStart:o,domainLookupEnd:a,connectStart:c,secureConnectionStart:l,connectEnd:u,requestStart:d,responseStart:p,responseEnd:h}=e,g={download:t3(t,p,h),first_byte:t3(t,d,p)};return 0<i&&i<r&&(g.worker=t3(t,i,r)),r<u&&(g.connect=t3(t,c,u),c<=l&&l<=u&&(g.ssl=t3(t,l,u))),r<a&&(g.dns=t3(t,o,a)),t<s&&(g.redirect=t3(t,n,s)),g}(e)}}}(e));return{startTime:l.relative,duration:u,rawRumEvent:p,domainContext:function(e,t){if(t){let r={performanceEntry:e,isAborted:t.isAborted,handlingStack:t.handlingStack};return"xhr"===t.type?{xhr:t.xhr,...r}:{requestInput:t.input,requestInit:t.init,response:t.response,error:t.error,...r}}return{performanceEntry:e}}(e,t)}}let i_=10*R.iW,iR=10*R.iW;function ib(e,t,r=window){if("hidden"===document.visibilityState)return{timeStamp:0,stop:eS.l};if(rn(f.VISIBILITY_STATE)){let e=performance.getEntriesByType(f.VISIBILITY_STATE).filter(e=>"hidden"===e.name).find(e=>e.startTime>=t.relative);if(e)return{timeStamp:e.startTime,stop:eS.l}}let i=1/0,{stop:n}=(0,ec.l)(e,r,["pagehide","visibilitychange"],e=>{("pagehide"===e.type||"hidden"===document.visibilityState)&&(i=e.timeStamp,n())},{capture:!0});return{get timeStamp(){return i},stop:n}}let iS=e=>{var t,r;let i,n,s,o;return e.previousRect.width*e.previousRect.height+e.currentRect.width*e.currentRect.height-(t=e.previousRect,r=e.currentRect,i=Math.max(t.left,r.left),n=Math.max(t.top,r.top),s=Math.min(t.right,r.right),o=Math.min(t.bottom,r.bottom),i>=s||n>=o?0:(s-i)*(o-n))};function iv({x:e,y:t,width:r,height:i}){return{x:e,y:t,width:r,height:i}}let iE=5*R.OY,iC=R.OY,iT=0,iM=1/0,iw=0,ik=()=>l?iT:window.performance.interactionCount||0,iP=+R.iW;function iO(){let e=window.visualViewport;return Math.round(e?e.pageLeft-e.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0)}function iB(){let e=window.visualViewport;return Math.round(e?e.pageTop-e.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0)}function iF(e){var t;return u||(t=e,u=new m.cP(e=>{let{throttled:r}=(0,eS.n)(()=>{e.notify(iA())},200);return(0,ec.q)(t,window,"resize",r,{capture:!0,passive:!0}).stop})),u}function iA(){let e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}let iD=R.OY,iI=5*R.iW,ix=5*R.iW;function iL(e){let t=e.indexOf("?");return t<0?e:e.slice(0,t)}let iN=R.iW,iW=[];async function iG(e){let t,r,i=e.sessionStoreStrategyType;i&&(i.type===e$?(t=e2(i.cookieOptions,e),r={cookie:await iq(),currentDomain:`${window.location.protocol}//${window.location.hostname}`}):t=e6(),(0,w.A2)("Unexpected session state",{sessionStoreStrategyType:i.type,session:t,isSyntheticsTest:eI(),createdTimestamp:null==t?void 0:t.created,expireTimestamp:null==t?void 0:t.expire,...r}))}async function iq(){let e;return{count:(e="cookieStore"in window?await window.cookieStore.getAll(eG):document.cookie.split(/\s*;\s*/).filter(e=>e.startsWith(eG))).length,domain:eB()||"undefined",...e}}var ij=r(99634),iz=r(96241),iU=r(29892);function i$(e){return Object.prototype.hasOwnProperty.call(history,e)?history:History.prototype}let iH=10*R.OY;function iK(){0!==d.batchCount&&((0,w.Gk)("Customer data measures",d),iY())}function iV(){return{min:1/0,max:0,sum:0}}function iJ(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function iY(){d={batchCount:0,batchBytesCount:iV(),batchMessagesCount:iV()}}function iX(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}let iZ=R.OY;function iQ(e,t){let r=ee(document.cookie,e),i=(0,eN.yb)(()=>{let i=ee(document.cookie,e);i!==r&&t(i)},iZ);return()=>{(0,eN.vG)(i)}}let i0="datadog-ci-visibility-test-execution-id";function i1(e,t,r=3e3){let i=0,n=!1;return{isLimitReached(){if(0===i&&(0,eN.wg)(()=>{i=0},R.iW),(i+=1)<=r||n)return n=!1,!1;if(i===r+1){n=!0;try{t({message:`Reached max number of ${e}s by minute: ${r}`,source:E.g.AGENT,startClocks:(0,R.M8)()})}finally{n=!1}}return!0}}}var i2=r(80196);function i3(e){return"object"===(0,ep.P)(e)}let i4={"view.name":"string","view.url":"string","view.referrer":"string"},i5={context:"object"},i6={service:"string",version:"string"};var i7=r(77984);let i9=ey.XP,i8=[z.ACTION,z.ERROR,z.LONG_TASK,z.RESOURCE,z.VITAL];function ne(e,t,r,i,n,s,o,c,u){var g,y;let S,C,T=[],k=new tG,F=i9();k.subscribe(13,e=>(0,tx.b)("rum",e));let A=e=>{k.notify(14,{error:e}),(0,w.A2)("Error reported to customer",{"error.message":e.message})},D=(0,tL._T)(e),I=D.subscribe(e=>{k.notify(11,e)});T.push(()=>I.unsubscribe());
1let x=(0,w.a5)("browser-rum-sdk",e,F,A,D,n);T.push(x.stop);let L=(0,eb.d0)()?(S={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplay:+!!(0,eb.Ww)("records")},{findTrackedSession:()=>S,expire:eS.l,expireObservable:new m.cP,setForcedReplay:eS.l}):((C=function(e,t,r){let i=new m.cP,n=new m.cP,s=function(e,t,r,i=function(e,t){return e.type===e$?function(e,t){let r={isLockEnabled:(0,eW.F2)(),persistSession:r=>e1(t,e,r,ez),retrieveSession:()=>e2(t,e),expireSession:r=>e1(t,e,eV(r,e),ej)};if(!eO(eG)){let e=eO("_dd"),t=eO("_dd_r"),i=eO("_dd_l"),n={};e&&(n.id=e),i&&/^[01]$/.test(i)&&(n.logs=i),t&&/^[012]$/.test(t)&&(n.rum=t),eJ(n)||(eX(n),r.persistSession(n))}return r}(t,e.cookieOptions):{isLockEnabled:!1,persistSession:e5,retrieveSession:e6,expireSession:e=>(function(e,t){e5(eV(e,t))})(e,t)}}(e,t)){let n,s=new m.cP,o=new m.cP,a=new m.cP,c=(0,eN.yb)(function(){let e=i.retrieveSession();eY(e)?e8({process:e=>eY(e)?eV(e,t):void 0,after:d},i):d(e)},tr);p();let{throttled:l,cancel:u}=(0,eS.n)(()=>{e8({process:e=>{if(eJ(e))return;let t=d(e);return function(e){if(eJ(e))return;let t=r(e.rum);e.rum=t,delete e.isExpired,"0"===t||e.id||(e.id=Z(),e.created=String((0,R.x3)()))}(t),t},after:e=>{eJ(e)||h()||(n=e,s.notify()),n=e}},i)},tr);function d(e){var r;return eY(e)&&(e=eV(e,t)),h()&&((r=e,n.id!==r.id||n.rum!==r.rum)?(n=eV(n,t),o.notify()):(a.notify({previousState:n,newState:e}),n=e)),e}function p(){e8({process:e=>{if(eJ(e))return e.anonymousId=Z(),eV(e,t)},after:e=>{n=e}},i)}function h(){return(null==n?void 0:n.rum)!==void 0}return{expandOrRenewSession:l,expandSession:function(){e8({process:e=>h()?d(e):void 0},i)},getSession:()=>n,renewObservable:s,expireObservable:o,sessionStateUpdateObservable:a,restartSession:p,expire:e=>{u(),!1===e&&n&&delete n.anonymousId,i.expireSession(n),d(eV(n,t))},stop:()=>{(0,eN.vG)(c)},updateSessionState:function(e){e8({process:t=>({...t,...e}),after:d},i)}}}(e.sessionStoreStrategyType,e,t);iW.push(()=>s.stop());let o=t$({expireDelay:ej});if(iW.push(()=>o.stop()),s.renewObservable.subscribe(()=>{o.add(a(),(0,R.$S)()),i.notify()}),s.expireObservable.subscribe(()=>{n.notify(),o.closeActive((0,R.$S)())}),s.expandOrRenewSession(),o.add(a(),(0,R.Oc)().relative),(0,X.sr)(X.R9.SHORT_SESSION_INVESTIGATION)){let t=s.getSession();t&&function(e,t){if(!window.cookieStore||!t.created)return;let r=Number(t.created),i=(0,R.x3)(),{stop:n}=(0,ec.q)(e,cookieStore,"change",function(e){let s=(0,eq.Uk)(e.changed,e=>e.name===eG);if(!s)return;let o=(0,R.x3)()-r;if(o>14*R.iW)n();else{let e=eQ(s.value);if(e.id&&e.id!==t.id){n();let r=(0,R.x3)()-i;iq().then(i=>{(0,w.A2)("Session cookie changed",{time:r,session_age:o,old:t,new:e,cookie:i})}).catch(M.Dx)}}});iW.push(n)}(e,t)}function a(){let t=s.getSession();return t?{id:t.id,trackingType:t.rum,isReplayForced:!!t.forcedReplay,anonymousId:t.anonymousId}:(iG(e).catch(()=>void 0),{id:"invalid",trackingType:"0",isReplayForced:!1,anonymousId:void 0})}return r.observable.subscribe(()=>{r.isGranted()?s.expandOrRenewSession():s.expire(!1)}),function(e,t){let{stop:r}=(0,ec.l)(e,window,["click","touchstart","keydown","scroll"],t,{capture:!0,passive:!0});iW.push(r)}(e,()=>{r.isGranted()&&s.expandOrRenewSession()}),function(e,t){let r=()=>{"visible"===document.visibilityState&&t()},{stop:i}=(0,ec.q)(e,document,"visibilitychange",r);iW.push(i);let n=(0,eN.yb)(r,iN);iW.push(()=>{(0,eN.vG)(n)})}(e,()=>s.expandSession()),function(e,t){let{stop:r}=(0,ec.q)(e,window,"resume",t,{capture:!0});iW.push(r)}(e,()=>s.restartSession()),{findSession:(e,t)=>o.find(e,t),renewObservable:i,expireObservable:n,sessionStateUpdateObservable:s.sessionStateUpdateObservable,expire:s.expire,updateSessionState:s.updateSessionState}}(e,t=>{var r,i,n;return r=e,"0"===(n=i=t)||"1"===n||"2"===n?i:(0,eL.ic)(r.sessionSampleRate)?(0,eL.ic)(r.sessionReplaySampleRate)?"1":"2":"0"},s)).expireObservable.subscribe(()=>{k.notify(9)}),C.renewObservable.subscribe(()=>{k.notify(10)}),C.sessionStateUpdateObservable.subscribe(({previousState:e,newState:t})=>{if(!e.forcedReplay&&t.forcedReplay){let e=C.findSession();e&&(e.isReplayForced=!0)}}),{findTrackedSession:e=>{let t=C.findSession(e);if(t&&"0"!==t.trackingType)return{id:t.id,sessionReplay:"1"===t.trackingType?1:2*!!t.isReplayForced,anonymousId:t.anonymousId}},expire:C.expire,expireObservable:C.expireObservable,setForcedReplay:()=>C.updateSessionState({forcedReplay:"1"})});if((0,eb.d0)()){let e;e=(0,eb.Y9)(),k.subscribe(13,t=>{e.send("rum",t)})}else{let t,r,i=(g=L.expireObservable,t=[e.rumEndpointBuilder],e.replica&&t.push(e.replica.rumEndpointBuilder),r=(0,ij.X)({encoder:n(2),request:(0,iz.sA)(t,A),flushController:(0,iU.tO)({pageMayExitObservable:D,sessionExpireOb
1servable:g})}),k.subscribe(13,e=>{e.type===z.VIEW?r.upsert(e,e.view.id):r.add(e)}),r);T.push(()=>i.stop()),y=i.flushController.flushObservable,x.metricsEnabled&&(iY(),p=!1,k.subscribe(13,()=>{p=!0}),y.subscribe(({bytesCount:e,messagesCount:t})=>{p&&(p=!1,d.batchCount+=1,iJ(d.batchBytesCount,e),iJ(d.batchMessagesCount,t))}),(0,eN.yb)(iK,iH))}F.register(1,()=>s.isGranted()?ey.$O:ey.ug);let{stop:N}=function(e,t){if(!t.metricsEnabled)return{stop:eS.l};let{unsubscribe:r}=e.subscribe(4,({initialViewMetrics:e})=>{var t,i;e.largestContentfulPaint&&e.navigationTimings&&((0,w.Gk)("Initial view metrics",{metrics:(t=e.largestContentfulPaint,i=e.navigationTimings,{lcp:{value:t.value},navigation:{domComplete:i.domComplete,domContentLoaded:i.domContentLoaded,domInteractive:i.domInteractive,firstByte:i.firstByte,loadEvent:i.loadEvent}})}),r())});return{stop:r}}(k,x);T.push(N);let{stop:W,...G}=function(e,t,r,i,n,s,o,c,u,d){var p,g,y,S,C,T,k,F,A,D,I,x;let L,N,W,G,j,Y,Q,es,eo,ea,eu,eh,eg,ev,eE,eC,eT=[],ew=(N=tW(),new m.cP(e=>{if(!N)return;let t=new N((0,M.dm)(t=>e.notify(t)));return t.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),()=>t.disconnect()})),ek=(p=location,W=(0,el.yG)(p),new m.cP(e=>{var t,i;let{stop:n}=function(e,t){let{stop:r}=(0,_.H)(i$("pushState"),"pushState",({onPostCall:e})=>{e(t)}),{stop:i}=(0,_.H)(i$("replaceState"),"replaceState",({onPostCall:e})=>{e(t)}),{stop:n}=(0,ec.q)(e,window,"popstate",t);return{stop:()=>{r(),i(),n()}}}(r,o),{stop:s}=(t=r,i=o,(0,ec.q)(t,window,"hashchange",i));function o(){if(W.href===p.href)return;let t=(0,el.yG)(p);e.notify({newLocation:t,oldLocation:W}),W=t}return()=>{n(),s()}})),{observable:eP,stop:eB}=function(){let e=new m.cP,{stop:t}=(0,_.H)(window,"open",()=>e.notify());return{observable:e,stop:t}}();eT.push(eB),t.register(0,({eventType:e})=>{let t=r.source;return{type:e,_dd:{format_version:2,drift:(0,R.TP)(),configuration:{session_sample_rate:(0,eL.LI)(r.sessionSampleRate,3),session_replay_sample_rate:(0,eL.LI)(r.sessionReplaySampleRate,3),profiling_sample_rate:(0,eL.LI)(r.profilingSampleRate,3),trace_sample_rate:(0,eL.LI)(r.traceSampleRate,3),beta_encode_cookie_options:r.betaEncodeCookieOptions},browser_sdk_version:(0,eb.d0)()?"6.25.0":void 0,sdk_name:u},application:{id:r.applicationId},date:(0,R.nx)(),source:t}}),t.register(1,()=>({application:{id:r.applicationId}}));let ex=function(e,t,r=500){let i,n=t$({expireDelay:ej,maxEntries:4e3});rn(f.VISIBILITY_STATE)&&performance.getEntriesByType(f.VISIBILITY_STATE).forEach(e=>{o("hidden"===e.name?"hidden":"active",e.startTime)}),o(iX(),(0,R.$S)());let{stop:s}=(0,ec.l)(t,window,["pageshow","focus","blur","visibilitychange","resume","freeze","pagehide"],e=>{var t;o("freeze"===(t=e).type?"frozen":"pagehide"===t.type?t.persisted?"frozen":"terminated":iX(),e.timeStamp)},{capture:!0});function o(e,t=(0,R.$S)()){e!==i&&(i=e,n.closeActive(t),n.add({state:i,startTime:t},t))}function a(e,t,r){return n.findAll(t,r).some(t=>t.state===e)}return e.register(0,({startTime:e,duration:t=0,eventType:i})=>i===z.VIEW?{type:i,_dd:{page_states:function(e,t,r){if(0!==e.length)return e.slice(-r).reverse().map(({state:e,startTime:r})=>({state:e,start:(0,R.Zj)((0,R.vk)(t,r))}))}(n.findAll(e,t),e,r)}}:i===z.ACTION||i===z.ERROR?{type:i,view:{in_foreground:a("active",e,0)}}:ey.$O),{wasInPageStateDuringPeriod:a,addPageState:o,stop:()=>{s(),n.stop()}}}(t,r);eT.push(()=>ex.stop());let eW=(G=t$({expireDelay:ej}),e.subscribe(1,e=>{var t;G.add({service:(t=e).service,version:t.version,context:t.context,id:t.id,name:t.name,startClocks:t.startClocks},e.startClocks.relative)}),e.subscribe(6,({endClocks:e})=>{G.closeActive(e.relative)}),e.subscribe(3,e=>{let t=G.find(e.startClocks.relative);t&&(e.name&&(t.name=e.name),e.context&&(t.context=e.context),t.sessionIsActive=e.sessionIsActive)}),e.subscribe(10,()=>{G.reset()}),{findView:e=>G.find(e),stop:()=>{G.stop()}});eT.push(()=>eW.stop());let eG=function(e,t,r,i){let n,s=t$({expireDelay:ej});e.subscribe(1,({startClocks:e})=>{let t=i.href;s.add(a({url:t,referrer:n||document.referrer}),e.relative),n=t}),e.subscribe(6,({endClocks:e})=>{s.closeActive(e.relative)});let o=r.subscribe(({newLocation:e})=>{let t=s.find();if(t){let r=(0,R.$S)();s.closeActive(r),s.add(a({url:e.href,referrer:t.referrer}),r)}});function a({url:e,referrer:t}){return{url:e,referrer:t}}return t.register(0,({startTime:e,eventType:t})=>{let r=s.find(e);return r?{type:t,view:{url:r.url,referrer:r.referrer}}:ey.ug}),{findUrl:e=>s.find(e),stop:()=>{o.unsubscribe(),s.stop()}}}(e,t,ek,location);eT.push(()=>eG.stop());let ez=(j=t$({expireDelay:ej}),e.subscribe(1,({startClocks:e})=>{j.add({},e.relative)}),e.subscribe(6,({endClocks:e})=>{j.closeActive(e.relative)}),t.register(0,({startTime:e,eventType:t})=>{if(!r.trackFeatureFlagsForEvents.concat([z.VIEW,z.ERROR]).includes(t))return ey.$O;let i=j.find(e);return!i||(0,el.RI)(i)?ey.$O:{type:t,feature_flags:i}}),{addFeatureFlagEvaluation:(e,t)=>{let r=j.find();r&&(r[e]=t)}});t.register(0,({eventType:e,startTime:t})=>{let r,s,o,a=i.findTrackedSession(t),c=eW.findView(t);return a&&c?(e===z.VIEW?(r=!!n.getReplayStats(c.id)||void 0,s=1===a.sessionReplay,o=!!c.sessionIsActive&&void 0):r=!!n.isRecording()||void 0,{type:e,session:{id:a.id,type:"user",has_replay:r,sampled_for_replay:s,is_active:o}}):ey.ug}),t.register(1,({startTime:e})=>{let t=i.findTrackedSession(e);return t?{session:{id:t.id}}:ey.$O}),t.register(0,({eventType:e})=>({type:e,connectivity:(0,i7.q)()}));let eU=(Y=em(),r.storeContextsAcrossPages&&ed(r,Y,"rum",2),t.register(0,()=>{let e=Y.getContext();return{context:e}}),Y),e$=(Q=e_(),r.storeContextsAcrossPages&&ed(r,Q,"rum",1),t.register(0,({eventType:e,startTime:t})=>{let n=Q.getContext(),s=i.findTrackedSession(t);
1return(s&&s.anonymousId&&!n.anonymous_id&&r.trackAnonymousUser&&(n.anonymous_id=s.anonymousId),(0,el.RI)(n))?ey.$O:{type:e,usr:n}}),t.register(1,({startTime:e})=>{var t;return{anonymous_id:null==(t=i.findTrackedSession(e))?void 0:t.anonymousId}}),Q),eH=(es=eR(),r.storeContextsAcrossPages&&ed(r,es,"rum",4),t.register(0,()=>{let e=es.getContext();return(0,el.RI)(e)||!e.id?ey.$O:{account:e}}),es),eK=function(e,t,r,i,n){let{unsubscribe:s}=e.subscribe(0,t=>{e.notify(12,r9(t))});t.register(0,({startTime:e,eventType:t})=>{if(t!==z.ERROR&&t!==z.RESOURCE&&t!==z.LONG_TASK)return ey.$O;let r=o.findActionId(e);return r?{type:t,action:{id:r}}:ey.$O}),t.register(1,({startTime:e})=>({action:{id:o.findActionId(e)}}));let o={findActionId:eS.l},a=eS.l;return n.trackUserInteractions&&({actionContexts:o,stop:a}=function(e,t,r,i){let n,s=t$({expireDelay:r7}),o=new m.cP;e.subscribe(10,()=>{s.reset()}),e.subscribe(5,l),e.subscribe(11,e=>{e.reason===tL.y5.UNLOADING&&l()});let{stop:a}=function(e,{onPointerDown:t,onPointerUp:r}){let i,n,s={selection:!1,input:!1,scroll:!1},o=[(0,ec.q)(e,window,"pointerdown",e=>{r2(e)&&(i=r1(),s={selection:!1,input:!1,scroll:!1},n=t(e))},{capture:!0}),(0,ec.q)(e,window,"selectionchange",()=>{i&&r1()||(s.selection=!0)},{capture:!0}),(0,ec.q)(e,window,"scroll",()=>{s.scroll=!0},{capture:!0,passive:!0}),(0,ec.q)(e,window,"pointerup",e=>{if(r2(e)&&n){let t=s;r(n,e,()=>t),n=void 0}},{capture:!0}),(0,ec.q)(e,window,"input",()=>{s.input=!0},{capture:!0})];return{stop:()=>{o.forEach(e=>e.stop())}}}(i,{onPointerDown:n=>(function(e,t,r,i,n){var s;let o;if((o=e.enablePrivacyForActionName?rx(i.target,e.defaultPrivacyLevel):rP.ALLOW)===rP.HIDDEN)return;let a=function(e,t,r){let i=e.target.getBoundingClientRect(),n=rv(e.target,r.actionNameAttribute);n&&r6(e.timeStamp,n);let{name:s,nameSource:o}=function(e,t,r=rP.ALLOW){let i=new Map,{actionNameAttribute:n}=t,s=rH(e,ry)||n&&rH(e,n);return s?{name:s,nameSource:"custom_attribute"}:r===rP.MASK?{name:r_,nameSource:"mask_placeholder"}:rJ(e,rK,t,i)||rJ(e,rV,t,i)||{name:"",nameSource:"blank"}}(e.target,r,t);return{type:K.CLICK,target:{width:Math.round(i.width),height:Math.round(i.height),selector:n},position:{x:Math.round(e.clientX-i.left),y:Math.round(e.clientY-i.top)},name:s,nameSource:o}}(i,o,e),c=!1;return s=e=>{c=e.hadActivity},rh(rg(t,r,n,e),s,100),{clickActionBase:a,hadActivityOnPointerDown:()=>c}})(i,e,t,n,r),onPointerUp:({clickActionBase:n,hadActivityOnPointerDown:a},l,u)=>{!function(e,t,r,i,n,s,o,a,c,l,u){var d,p;let h=function e(t,r,i,n,s){let o,a=Z(),c=(0,R.M8)(),l=r.add(a,c.relative),u=rr({lifeCycle:t,isChildEvent:e=>void 0!==e.action&&(Array.isArray(e.action.id)?e.action.id.includes(a):e.action.id===a)}),d=0,p=[],h=new m.cP;function g(e){0===d&&(d=1,(o=e)?l.close((0,R.gs)(o)):l.remove(),u.stop(),h.notify())}return{event:s,stop:g,stopObservable:h,get hasError(){return u.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==o},getUserActivity:i,addFrustration:e=>{p.push(e)},startClocks:c,isStopped:()=>1===d||2===d,clone:()=>e(t,r,i,n,s),validate:e=>{if(g(),1!==d)return;let{resourceCount:r,errorCount:i,longTaskCount:l}=u.eventCounts,h={duration:o&&(0,R.vk)(c.timeStamp,o),startClocks:c,id:a,frustrationTypes:p,c
1ounts:{resourceCount:r,errorCount:i,longTaskCount:l},events:null!=e?e:[s],event:s,...n};t.notify(0,h),d=2},discard:()=>{g(),d=2}}}(t,n,l,a,c);o(h);let g=null==(d=null==a?void 0:a.target)?void 0:d.selector;g&&r6(c.timeStamp,g);let{stop:f}=(p=e=>{e.hadActivity&&e.end<h.startClocks.timeStamp?h.discard():e.hadActivity?h.stop(e.end):u()?h.stop(h.startClocks.timeStamp):h.stop()},rh(rg(t,r,i,e),p,r4)),y=t.subscribe(5,({endClocks:e})=>{h.stop(e.timeStamp)}),_=s.subscribe(()=>{h.stop()});h.stopObservable.subscribe(()=>{y.unsubscribe(),f(),_.unsubscribe()})}(i,e,t,r,s,o,c,n,l,u,a)}});return{stop:()=>{l(),o.notify(),a()},actionContexts:{findActionId:e=>s.findAll(e)}};function c(e){if(!n||!n.tryAppend(e)){let t=e.clone();n=function(e,t){let r,i=[],n=0;function s(e){e.stopObservable.subscribe(o),i.push(e),(0,eN.DJ)(r),r=(0,eN.wg)(a,r$)}function o(){1===n&&i.every(e=>e.isStopped())&&(n=2,t(i))}function a(){(0,eN.DJ)(r),0===n&&(n=1,o())}return s(e),{tryAppend:e=>{var t,r,o,c;return 0===n&&(!(i.length>0)||(t=i[i.length-1].event,r=e.event,t.target===r.target&&100>=(o=t,c=r,Math.sqrt(Math.pow(o.clientX-c.clientX,2)+Math.pow(o.clientY-c.clientY,2)))&&t.timeStamp-r.timeStamp<=r$)?(s(e),!0):(a(),!1))},stop:()=>{a()}}}(e,e=>{!function(e,t){let{isRage:r}=function(e,t){if(function(e){if(e.some(e=>e.getUserActivity().selection||e.getUserActivity().scroll))return!1;for(let t=0;t<e.length-2;t+=1)if(e[t+3-1].event.timeStamp-e[t].event.timeStamp<=R.OY)return!0;return!1}(e))return t.addFrustration("rage_click"),e.some(r3)&&t.addFrustration(J),t.hasError&&t.addFrustration(V),{isRage:!0};let r=e.some(e=>e.getUserActivity().selection);return e.forEach(e=>{e.hasError&&e.addFrustration(V),r3(e)&&!r&&e.addFrustration(J)}),{isRage:!1}}(e,t);r?(e.forEach(e=>e.discard()),t.stop((0,R.nx)()),t.validate(e.map(e=>e.event))):(t.discard(),e.forEach(e=>e.validate()))}(e,t)})}}function l(){n&&n.stop()}}(e,r,i,n)),{addAction:t=>{e.notify(12,r9(t))},actionContexts:o,stop:()=>{s(),a()}}}(e,t,ew,eP,r);eT.push(eK.stop);let eV={addEvent:(t,r,i,n)=>{i8.includes(r.type)&&e.notify(12,{startTime:t,rawRumEvent:r,domainContext:i,duration:n})}},eJ=(ea=requestAnimationFrame((0,M.dm)(()=>{eo=iA()})),eu=iF(r).subscribe(e=>{eo=e}).unsubscribe,t.register(0,({eventType:e})=>({type:e,display:eo?{viewport:eo}:void 0})),{stop:()=>{eu(),ea&&cancelAnimationFrame(ea)}});eT.push(eJ.stop);let eY=function(e,t,r=function(e,t){let r=window.cookieStore?function(e){return(t,r)=>(0,ec.q)(e,window.cookieStore,"change",e=>{let i=e.changed.find(e=>e.name===t)||e.deleted.find(e=>e.name===t);i&&r(i.value)}).stop}(e):iQ;return new m.cP(e=>r(t,t=>e.notify(t)))}(e,i0)){var i;let n=eO(i0)||(null==(i=window.Cypress)?void 0:i.env("traceId")),s=r.subscribe(e=>{n=e});return t.register(0,({eventType:e})=>"string"!=typeof n?ey.$O:{type:e,session:{type:"ci_test"},ci_test:{test_execution_id:n}}),{stop:()=>{s.unsubscribe()}}}(r,t);eT.push(eY.stop),t.register(0,({eventType:e})=>eI()?{type:e,session:{type:"synthetics"},synthetics:{test_id:eA(),result_id:eD(),injected:eF()}}:ey.$O),h={[z.VIEW]:{"view.performance.lcp.resource_url":"string",...i5,...i4,...i6},[z.ERROR]:{"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string",...i5,...i4,...i6},[z.RESOURCE]:{"resource.url":"string","resource.graphql.variables":"string",...i5,...i4,...i6},[z.ACTION]:{"action.target.name":"string",...i5,...i4,...i6},[z.LONG_TASK]:{"long_task.scripts[].source_url":"string","long_task.scripts[].invoker":"string",...i5,...i4,...i6},[z.VITAL]:{...i5,...i4,...i6}},eh={[z.ERROR]:i1(z.ERROR,d,void 0),[z.ACTION]:i1(z.ACTION,d,void 0),[z.VITAL]:i1(z.VITAL,d,void 0)},e.subscribe(12,({startTime:i,duration:n,rawRumEvent:s,domainContext:o})=>{let a=t.triggerHook(0,{eventType:s.type,startTime:i,duration:n});if(a===ey.ug)return;let c=(0,P.kg)(a,s,{ddtags:(0,i2.m5)(r).join(",")});(function(e,t,r,i){var n,s;if(t){let i,n,o=(s=h[e.type],n=(e=>
1t(e,r))(i=(0,P.Go)(e)),(0,eq.WP)(s).forEach(([t,r])=>(function e(t,r,i,n){let[s,...o]=i;if("[]"===s){Array.isArray(t)&&Array.isArray(r)&&t.forEach((t,i)=>e(t,r[i],o,n));return}if(i3(t)&&i3(r)){var a,c,l,u;let i;if(o.length>0)return e(t[s],r[s],o,n);a=t,c=s,l=r[s],u=n,(i=(0,ep.P)(l))===u?a[c]=(0,B.a)(l):"object"===u&&("undefined"===i||"null"===i)&&(a[c]={})}})(e,i,t.split(/\.|(?=\[\])/),r)),n);if(!1===o&&e.type!==z.VIEW)return!1;!1===o&&q.Vy.warn("Can't dismiss view events using beforeSend!")}return!(null==(n=i[e.type])?void 0:n.isLimitReached())})(c,r.beforeSend,o,eh)&&((0,el.RI)(c.context)&&delete c.context,e.notify(13,c))});let{addTiming:eX,startView:eZ,setViewName:eQ,setViewContext:e0,setViewContextProperty:e1,getViewContext:e2,stop:e3}=(g=location,e.subscribe(4,t=>{var i,s,o,a,c,l,u,d,p,h,g,f,m,y,_,b,S,v,E,C;let T,M,w;return e.notify(12,(i=t,s=r,T=n.getReplayStats(i.id),M=null==(a=null==(o=i.commonViewMetrics)?void 0:o.cumulativeLayoutShift)?void 0:a.devicePixelRatio,w={_dd:{document_version:i.documentVersion,replay_stats:T,cls:M?{device_pixel_ratio:M}:void 0,configuration:{start_session_replay_recording_manually:s.startSessionReplayRecordingManually}},date:i.startClocks.timeStamp,type:z.VIEW,view:{action:{count:i.eventCounts.actionCount},frustration:{count:i.eventCounts.frustrationCount},cumulative_layout_shift:null==(c=i.commonViewMetrics.cumulativeLayoutShift)?void 0:c.value,cumulative_layout_shift_time:(0,R.Zj)(null==(l=i.commonViewMetrics.cumulativeLayoutShift)?void 0:l.time),cumulative_layout_shift_target_selector:null==(u=i.commonViewMetrics.cumulativeLayoutShift)?void 0:u.targetSelector,first_byte:(0,R.Zj)(null==(d=i.initialViewMetrics.navigationTimings)?void 0:d.firstByte),dom_complete:(0,R.Zj)(null==(p=i.initialViewMetrics.navigationTimings)?void 0:p.domComplete),dom_content_loaded:(0,R.Zj)(null==(h=i.initialViewMetrics.navigationTimings)?void 0:h.domContentLoaded),dom_interactive:(0,R.Zj)(null==(g=i.initialViewMetrics.navigationTimings)?void 0:g.domInteractive),error:{count:i.eventCounts.errorCount},first_contentful_paint:(0,R.Zj)(i.initialViewMetrics.firstContentfulPaint),first_input_delay:(0,R.Zj)(null==(f=i.initialViewMetrics.firstInput)?void 0:f.delay),first_input_time:(0,R.Zj)(null==(m=i.initialViewMetrics.firstInput)?void 0:m.time),first_input_target_selector:null==(y=i.initialViewMetrics.firstInput)?void 0:y.targetSelector,interaction_to_next_paint:(0,R.Zj)(null==(_=i.commonViewMetrics.interactionToNextPaint)?void 0:_.value),interaction_to_next_paint_time:(0,R.Zj)(null==(b=i.commonViewMetrics.interactionToNextPaint)?void 0:b.time),interaction_to_next_paint_target_selector:null==(S=i.commonViewMetrics.interactionToNextPaint)?void 0:S.targetSelector,is_active:i.isActive,name:i.name,largest_contentful_paint:(0,R.Zj)(null==(v=i.initialViewMetrics.largestContentfulPaint)?void 0:v.value),largest_contentful_paint_target_selector:null==(E=i.initialViewMetrics.largestContentfulPaint)?void 0:E.targetSelector,load_event:(0,R.Zj)(null==(C=i.initialViewMetrics.navigationTimings)?void 0:C.loadEvent),loading_time:rt((0,R.Zj)(i.commonViewMetrics.loadingTime)),loading_type:i.loadingType,long_task:{count:i.eventCounts.longTaskCount},performance:function({cumulativeLayoutShift:e,interactionToNextPaint:t},{firstContentfulPaint:r,firstInput:i,largestContentfulPaint:n}){return{cls:e&&{score:e.value,timestamp:(0,R.Zj)(e.time),target_selector:e.targetSelector,previous_rect:e.previousRect,current_rect:e.currentRect},fcp:r&&{timestamp:(0,R.Zj)(r)},fid:i&&{duration:(0,R.Zj)(i.delay),timestamp:(0,R.Zj)(i.time),target_selector:i.targetSelector},inp:t&&{duration:(0,R.Zj)(t.value),timestamp:(0,R.Zj)(t.time),target_selector:t.targetSelector},lcp:n&&{timestamp:(0,R.Zj)(n.value),target_selector:n.targetSelector,resource_url:n.resourceUrl}}}(i.commonViewMetrics,i.initialViewMetrics),resource:{count:i.eventCounts.resourceCount},time_spent:(0,R.Zj)(i.duration)},display:i.commonViewMetrics.scroll?{scroll:{max_depth:i.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:i.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:i.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:(0,R.Zj)(i.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,privacy:{replay_level:s.defaultPrivacyLevel},device:{locale:navigator.language,locales:navigator.languages,time_zone:function(){try{return new Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return}}()}},(0,el.RI)(i.customTimings)||(w.view.custom_timings=(0,el.LG)(i.customTimings,R.Zj)),{rawRumEvent:w,startTime:i.startClocks.relative,duration:i.duration,domainContext:{location:i.location}}))}),t.register(0,({startTime:e,eventType:t})=>{let r=eW.findView(e);return r?{type:t,service:r.service,version:r.version,context:r.context,view:{id:r.id,name:r.name}}:ey.ug}),t.register(1,({startTime:e})=>{var t;return{view:{id:null==(t=eW.findView(e))?void 0:t.id}}}),function(e,t,r,i,n,s,o,a){let c,u,d=new Set,p=h(U,(0,R.Oc)(),a);function h(s,o,a){let c=function(e,t,r,i,n,s,o=(0,R.M8)(),a){var c;let u,d=Z(),p=new m.cP,h={},g=0,y=(0,el.yG)(n),_=ef(),b=!0,S=null==a?void 0:a.name,v=(null==a?void 0:a.service)||i.service,E=(null==a?void 0:a.version)||i.version,C=null==a?void 0:a.context;C&&_.setContext(C);let T={id:d,name:S,startClocks:o,service:v,version:E,context:C};e.notify(1,T),e.notify(2,T);let{throttled:w,cancel:k}=(0,eS.n)(z,3e3,{leading:!1}),{setLoadEvent:P,setViewEnd:O,stop:B,stopINPTracking:F,getCommonViewMetrics:A}=function(e,t,r,i,n,s,o){let a={},{stop:c,setLoadEvent:u}=function(e,t,r,i,n,s,o){var a;let c=n===U,l=!0,u=[],d=ib(i,s);function p(){if(!l&&!c&&u.length>0){let e=Math.max(...u);e<d.timeStamp-s.relative&&o(e)}}let{stop:h}=(a=e=>{l&&(l=!1,e.hadActivity&&u.push((0,R.vk)(s.timeStamp,e.end)),p())}
1,rh(rg(e,t,r,i),a,void 0));return{stop:()=>{h(),d.stop()},setLoadEvent:e=>{c&&(c=!1,u.push(e),p())}}}(e,t,r,i,s,o,e=>{a.loadingTime=e,n()}),{stop:d}=function(e,t,r,i=function(e,t=iD){return new m.cP(r=>{if(window.ResizeObserver){let i=(0,eS.n)(function(){r.notify(function(){let e=iB(),{height:t}=iA();return{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(t+e),scrollTop:e}}())},t,{leading:!1,trailing:!0}),n=document.scrollingElement||document.documentElement,s=new ResizeObserver((0,M.dm)(i.throttled));n&&s.observe(n);let o=(0,ec.q)(e,window,"scroll",i.throttled,{passive:!0});return()=>{i.cancel(),s.disconnect(),o.stop()}}})}(e)){let n=0,s=0,o=0,a=i.subscribe(({scrollDepth:e,scrollTop:i,scrollHeight:a})=>{let c=!1;if(e>n&&(n=e,c=!0),a>s){s=a;let e=(0,R.$S)();o=(0,R.vk)(t.relative,e),c=!0}c&&r({maxDepth:Math.min(n,s),maxDepthScrollTop:i,maxScrollHeight:s,maxScrollHeightTime:o})});return{stop:()=>a.unsubscribe()}}(i,o,e=>{a.scroll=e}),{stop:p}=function(e,t,r){let i,n,s,o,a;if(!(rn(f.LAYOUT_SHIFT)&&"WeakRef"in window))return{stop:eS.l};let c=0;r({value:0});let l=(o=0,a=0,{update:e=>{let t;return void 0===n||e.startTime-s>=iC||e.startTime-n>=iE?(n=s=e.startTime,a=o=e.value,t=!0):(o+=e.value,s=e.startTime,(t=e.value>a)&&(a=e.value)),{cumulatedValue:o,isMaxValue:t}}}),u=ri(e,{type:f.LAYOUT_SHIFT,buffered:!0}).subscribe(n=>{var s;for(let o of n){if(o.hadRecentInput||o.startTime<t)continue;let{cumulatedValue:n,isMaxValue:a}=l.update(o);if(a){let e=function(e){let t;for(let r of e)if(r.node&&ro(r.node)){let e=iS(r);(!t||iS(t)<e)&&(t=r)}return t}(o.sources);i={target:(null==e?void 0:e.node)?new WeakRef(e.node):void 0,time:(0,R.vk)(t,o.startTime),previousRect:null==e?void 0:e.previousRect,currentRect:null==e?void 0:e.currentRect,devicePixelRatio:window.devicePixelRatio}}if(n>c){c=n;let t=null==(s=null==i?void 0:i.target)?void 0:s.deref();r({value:(0,eL.LI)(c,4),targetSelector:t&&rv(t,e.actionNameAttribute),time:null==i?void 0:i.time,previousRect:(null==i?void 0:i.previousRect)?iv(i.previousRect):void 0,currentRect:(null==i?void 0:i.currentRect)?iv(i.currentRect):void 0,devicePixelRatio:null==i?void 0:i.devicePixelRatio})}}});return{stop:()=>{u.unsubscribe()}}}(i,o.relative,e=>{a.cumulativeLayoutShift=e,n()}),{stop:h,getInteractionToNextPaint:g,setViewEnd:y}=function(e,t,r){var i;let n,s,o,a;if(!(rn(f.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:()=>void 0,setViewEnd:eS.l,stop:eS.l};let{getViewInteractionCount:c,stopViewInteractionCount:u}=(i=r,"interactionCount"in performance||l||(l=new window.PerformanceObserver((0,M.dm)(e=>{e.getEntries().forEach(e=>{e.interactionId&&(iM=Math.min(iM,e.interactionId),iT=((iw=Math.max(iw,e.interactionId))-iM)/7+1)})}))).observe({type:"event",buffered:!0,durationThreshold:0}),o=i===U?0:ik(),a={stopped:!1},{getViewInteractionCount:()=>a.stopped?a.interactionCount:ik()-o,stopViewInteractionCount:()=>{a={stopped:!0,interactionCount:ik()-o}}}),d=1/0,p=function(e){let t=[];function r(){t.sort((e,t)=>t.duration-e.duration).splice(10)}return{process(e){let i=t.findIndex(t=>e.interactionId===t.interactionId),n=t[t.length-1];-1!==i?e.duration>t[i].duration&&(t[i]=e,r()):(t.length<10||e.duration>n.duration)&&(t.push(e),r())},estimateP98Interaction(){let r=Math.min(t.length-1,Math.floor(e()/50));return t[r]}}}(c),h=-1;function g(r){for(let e of r)e.interactionId&&e.startTime>=t&&e.startTime<=d&&p.process(e);let i=p.estimateP98Interaction();if(i&&i.duration!==h){var o;let r;h=i.duration,s=(0,R.vk)(t,i.startTime),o=i.startTime,r=r5.get(o),r5.delete(o),!(n=r)&&i.target&&ro(i.target)&&(n=rv(i.target,e.actionNameAttribute))}}let m=ri(e,{type:f.FIRST_INPUT,buffered:!0}).subscribe(g),y=ri(e,{type:f.EVENT,durationThreshold:40,buffered:!0}).subscribe(g);return{getInteractionToNextPaint:()=>h>=0?{value:Math.min(h,iP),targetSelector:n,time:s}:c()?{value:0}:void 0,setViewEnd:e=>{d=e,u()},stop:()=>{y.unsubscribe(),m.unsubscribe()}}}(i,o.relative,s);return{stop:()=>{c(),p(),d()}
1,stopINPTracking:h,setLoadEvent:u,setViewEnd:y,getCommonViewMetrics:()=>(a.interactionToNextPaint=g(),a)}}(e,t,r,i,j,s,o),{stop:D,initialViewMetrics:I}=s===U?function(e,t,r,i){var n,s;let o,a={},{stop:c}=function(e,t,r=ig){return function(e,t){let r,{stop:i}=(0,iu.H)(e,"complete",()=>{r=(0,eN.wg)(()=>t())});return{stop:()=>{i(),(0,eN.DJ)(r)}}}(e,()=>{var e;let i=r();i.loadEventEnd<=0||t({domComplete:(e=i).domComplete,domContentLoaded:e.domContentLoadedEventEnd,domInteractive:e.domInteractive,loadEvent:e.loadEventEnd,firstByte:e.responseStart>=0&&e.responseStart<=(0,R.$S)()?e.responseStart:void 0})})}(e,e=>{r(e.loadEvent),a.navigationTimings=e,i()}),l=ib(e,t),{stop:u}=(n=e=>{a.firstContentfulPaint=e,i()},{stop:ri(e,{type:f.PAINT,buffered:!0}).subscribe(e=>{let t=e.find(e=>"first-contentful-paint"===e.name&&e.startTime<l.timeStamp&&e.startTime<i_);t&&n(t.startTime)}).unsubscribe}),{stop:d}=function(e,t,r,i){let n=1/0,{stop:s}=(0,ec.l)(e,r,["pointerdown","keydown"],e=>{n=e.timeStamp},{capture:!0,once:!0}),o=0,a=ri(e,{type:f.LARGEST_CONTENTFUL_PAINT,buffered:!0}).subscribe(r=>{let s=(0,eq.Uk)(r,e=>e.entryType===f.LARGEST_CONTENTFUL_PAINT&&e.startTime<n&&e.startTime<t.timeStamp&&e.startTime<iR&&e.size>o);if(s){var a;let t;s.element&&(t=rv(s.element,e.actionNameAttribute)),i({value:s.startTime,targetSelector:t,resourceUrl:""===(a=s).url?void 0:a.url}),o=s.size}});return{stop:()=>{s(),a.unsubscribe()}}}(e,l,window,e=>{a.largestContentfulPaint=e,i()}),{stop:p}=(s=e=>{a.firstInput=e,i()},o=ri(e,{type:f.FIRST_INPUT,buffered:!0}).subscribe(t=>{let r=t.find(e=>e.startTime<l.timeStamp);if(r){let t,i=(0,R.vk)(r.startTime,r.processingStart);r.target&&ro(r.target)&&(t=rv(r.target,e.actionNameAttribute)),s({delay:i>=0?i:0,time:r.startTime,targetSelector:t})}}),{stop:()=>{o.unsubscribe()}});return{stop:function(){c(),u(),d(),p(),l.stop()},initialViewMetrics:a}}(i,o,P,j):{stop:eS.l,initialViewMetrics:{}};s===H&&(c=o.relative,requestAnimationFrame(()=>{requestAnimationFrame(()=>{(e=>{I.firstContentfulPaint=e,I.largestContentfulPaint={value:e},j()})((0,R.vk)(c,(0,R.$S)()))})}));let{stop:x,eventCounts:L}=function(e,t,r){let{stop:i,eventCounts:n}=rr({lifeCycle:e,isChildEvent:e=>e.view.id===t,onChange:r});return{stop:i,eventCounts:n}}(e,d,j),N=(0,eN.yb)(z,iI),W=e.subscribe(11,e=>{e.reason===tL.y5.UNLOADING&&z()});function G(){e.notify(3,{id:d,name:S,context:_.getContext(),startClocks:o,sessionIsActive:b})}function j(){G(),w()}function z(){k(),G(),g+=1;let t=void 0===u?(0,R.nx)():u.timeStamp;e.notify(4,{customTimings:h,documentVersion:g,id:d,name:S,service:v,version:E,context:_.getContext(),loadingType:s,location:y,startClocks:o,commonViewMetrics:A(),initialViewMetrics:I,duration:(0,R.vk)(o.timeStamp,t),isActive:void 0===u,sessionIsActive:b,eventCounts:L})}return z(),_.changeObservable.subscribe(j),{get name(){return S},service:v,version:E,contextManager:_,stopObservable:p,end(t={}){var r,i;u||(u=null!=(r=t.endClocks)?r:(0,R.M8)(),b=null==(i=t.sessionIsActive)||i,e.notify(5,{endClocks:u}),e.notify(6,{endClocks:u}),(0,eN.vG)(N),O(u.relative),B(),W.unsubscribe(),z(),(0,eN.wg)(()=>{this.stop()},ix))},stop(){D(),x(),F(),p.notify()},addTiming(e,t){var r;let i;if(u)return;let n=(0,R.pu)(t)?t:(0,R.vk)(o.timeStamp,t);h[(i=(r=e).replace(/[^a-zA-Z0-9-_.@$]/g,"_"))!==r&&q.Vy.warn(`Invalid timing name: ${r}, sanitized to: ${i}`),i]=n,j()},setViewName(e){S=e,z()}}}(t,r,i,n,e,s,o,a);return d.add(c),c.stopObservable.subscribe(()=>{d.delete(c)}),c}return t.subscribe(10,()=>{p=h($,void 0,{name:p.name,service:p.service,version:p.version,context:p.contextManager.getContext()})}),t.subscribe(9,()=>{p.end({sessionIsActive:!1})}),o&&(u=s.subscribe(({oldLocation:e,newLocation:t})=>{var r,i;let n;r=e,i=t,r.pathname===i.pathname&&(""!==(n=i.hash.substring(1))&&document.getElementById(n)||iL(i.hash)===iL(r.hash))||(p.end(),p=h($))}),n.trackBfcacheViews&&(c=function(e,t){let{stop:r}=(0,ec.q)(e,window,"pageshow",e=>{e.persisted&&t(e)},{capture:!0});return r}(n,e=>{p.end(),p=h(H,(0,R.FR)(e.timeStamp),void 0)}))),{addTiming:(e,t=(0,R.nx)())=>{p.addTiming(e,t)},startView:(e,t)=>{p.end({endClocks:t}),p=h($,t,e)}
1,setViewContext:e=>{p.contextManager.setContext(e)},setViewContextProperty:(e,t)=>{p.contextManager.setContextProperty(e,t)},setViewName:e=>{p.setViewName(e)},getViewContext:()=>p.contextManager.getContext(),stop:()=>{u&&u.unsubscribe(),c&&c(),p.end(),d.forEach(e=>e.stop())}}}(g,e,ew,eP,r,ek,!r.trackViewsManually,s));eT.push(e3);let{stop:e4}=function(e,t,r,i=function(){let e=[];function t(t){let i;if(t.didTimeout){let e=performance.now();i=()=>30-(performance.now()-e)}else i=t.timeRemaining.bind(t);for(;i()>0&&e.length;)e.shift()();e.length&&r()}function r(){(0,io.BB)(t,{timeout:ia})}return{push(t){1===e.push(t)&&r()},stop(){e.length=0}}}(),n=function(e,t,r=ig){(0,iu.H)(e,"interactive",()=>{let e=r(),i=Object.assign(e.toJSON(),{entryType:f.RESOURCE,initiatorType:tX,duration:e.responseEnd,traceId:function(e){var t;let r,i,n=(r=(t=e).querySelector("meta[name=dd-trace-id]"),i=t.querySelector("meta[name=dd-trace-time]"),ip(r&&r.content,i&&i.content)||function(e){let t=function(e){for(let t=0;t<e.childNodes.length;t+=1){let r=ih(e.childNodes[t]);if(r)return r}if(e.body)for(let t=e.body.childNodes.length-1;t>=0;t-=1){let r=e.body.childNodes[t],i=ih(r);if(i)return i;if(!rs(r))break}}(e);if(t)return ip(ee(t,"trace-id"),ee(t,"trace-time"))}(e));if(!(!n||n.traceTime<=(0,R.x3)()-id))return n.traceId}(document),toJSON:()=>({...i,toJSON:void 0})});t(i)})}){let s,o=t.trackEarlyRequests;if(o){let t,r;t=new Set,r=e.subscribe(8,e=>{t.add(e),t.size>1e3&&((0,w.A2)("Too many requests"),t.delete(t.values().next().value))}),s={getMatchingRequest(e){let r,i=1/0;for(let n of t){let t=e.startTime-n.startClocks.relative;0<=t&&t<i&&n.url===e.name&&(i=Math.abs(t),r=n)}return r&&t.delete(r),r},stop(){r.unsubscribe()}}}else e.subscribe(8,e=>{c(()=>{var i,n,s;return i=e,n=t,s=r,iy(function(e){if(!performance||!("getEntriesByName"in performance))return;let t=performance.getEntriesByName(e.url,"resource");if(!t.length||!("toJSON"in t[0]))return;let r=t.filter(e=>!ic.has(e)).filter(e=>t1(e)&&t2(e)).filter(t=>{var r,i,n;return r=t,i=e.startClocks.relative,n=il({startTime:e.startClocks.relative,duration:e.duration}),r.startTime>=i-1&&il(r)<=(0,R.Gw)(n,1)});if(1===r.length)return ic.add(r[0]),r[0].toJSON()}(i),i,s,n)})});let a=ri(t,{type:f.RESOURCE,buffered:!0}).subscribe(e=>{for(let i of e)(o||!t0(i))&&c(()=>im(i,t,r,s))});function c(t){i.push(()=>{let r=t();r&&e.notify(12,r)})}return n(t,e=>{c(()=>im(e,t,r,s))}),{stop:()=>{i.stop(),a.unsubscribe()}}}(e,r,ex);if(eT.push(e4),r.trackLongTasks)if(rn(f.LONG_ANIMATION_FRAME)){let t,{stop:i}=(t=ri(r,{type:f.LONG_ANIMATION_FRAME,buffered:!0}).subscribe(t=>{for(let r of t){let t=(0,R.FR)(r.startTime),i={date:t.timeStamp,long_task:{id:Z(),entry_type:"long-animation-frame",duration:(0,R.Zj)(r.duration),blocking_duration:(0,R.Zj)(r.blockingDuration),first_ui_event_timestamp:(0,R.Zj)(r.firstUIEventTimestamp),render_start:(0,R.Zj)(r.renderStart),style_and_layout_start:(0,R.Zj)(r.styleAndLayoutStart),start_time:(0,R.Zj)(r.startTime),scripts:r.scripts.map(e=>({duration:(0,R.Zj)(e.duration),pause_duration:(0,R.Zj)(e.pauseDuration),forced_style_and_layout_duration:(0,R.Zj)(e.forcedStyleAndLayoutDuration),start_time:(0,R.Zj)(e.startTime),execution_start:(0,R.Zj)(e.executionStart),source_url:e.sourceURL,source_function_name:e.sourceFunctionName,source_char_position:e.sourceCharPosition,invoker:e.invoker,invoker_type:e.invokerType,window_attribution:e.windowAttribution}))},type:z.LONG_TASK,_dd:{discarded:!1}};e.notify(12,{rawRumEvent:i,startTime:t.relative,duration:r.duration,domainContext:{performanceEntry:r}})}}),{stop:()=>t.unsubscribe()});eT.push(i)}else ri(r,{type:f.LONG_TASK,buffered:!0}).subscribe(t=>{for(let i of t){if(i.entryType!==f.LONG_TASK||!r.trackLongTasks)break;let t=(0,R.FR)(i.startTime),n={date:t.timeStamp,long_task:{id:Z(),entry_type:"long-task",duration:(0,R.Zj)(i.duration)},type:z.LONG_TASK,_dd:{discarded:!1}};e.notify(12,{rawRumEvent:n,startTime:t.relative,duration:i.duration,domainContext:{performanceEntry:i}})}});let{addError:e5}=(eg=new m.cP,c.subscribe(e=>{0===e.type&&eg.notify(e.error)}),T=eg,(L=[q.bP.error].map(e=>{var t;return it[e]||(it[e]=(t=e,new m.cP(e=>{let r=q.JZ[t];return q.JZ[t]=(...i)=>{r.apply(console,i);let n=(0,O.uC)("console error");(0,M.um)(()=>
1{e.notify(function(e,t,r){let i=e.map(e=>{var t;return"string"==typeof(t=e)?(0,B.a)(t):(0,v.bJ)(t)?(0,O.NR)((0,b.T)(t)):(0,ie.s)((0,B.a)(t),void 0,2)}).join(" ");if(t===q.bP.error){let n=e.find(v.bJ),s=(0,v.As)({originalError:n,handlingStack:r,startClocks:(0,R.M8)(),source:E.g.CONSOLE,handling:"handled",nonErrorPrefix:"Provided",useFallbackStack:!1});return s.message=i,{api:t,message:i,handlingStack:r,error:s}}return{api:t,message:i,error:void 0,handlingStack:r}}(i,t,n))})},()=>{q.JZ[t]=r}}))),it[e]}),(0,m.Fx)(...L)).subscribe(e=>T.notify(e.error)),(ev=[],(y=[ir,"intervention"]).includes(ir)&&ev.push((k=r,new m.cP(e=>{let{stop:t}=(0,ec.q)(k,document,"securitypolicyviolation",t=>{var r;let i;e.notify((r=t,i=`'${r.blockedURI}' blocked by '${r.effectiveDirective}' directive`,ii({type:r.effectiveDirective,message:`${ir}: ${i}`,originalError:r,csp:{disposition:r.disposition},stack:is(r.effectiveDirective,r.originalPolicy?`${i} of the policy "${et(r.originalPolicy,100,"...")}"`:"no policy",r.sourceFile,r.lineNumber,r.columnNumber)})))});return t}))),(eE=y.filter(e=>e!==ir)).length&&ev.push((F=eE,new m.cP(e=>{if(!window.ReportingObserver)return;let t=(0,M.dm)((t,r)=>t.forEach(t=>e.notify(function(e){let{type:t,body:r}=e;return ii({type:r.id,message:`${t}: ${r.message}`,originalError:e,stack:is(r.id,r.message,r.sourceFile,r.lineNumber,r.columnNumber)})}(t)))),r=new window.ReportingObserver(t,{types:F,buffered:!0});return r.observe(),()=>{r.disconnect()}}))),(0,m.Fx)(...ev)).subscribe(e=>eg.notify(e)),eg.subscribe(t=>e.notify(14,{error:t})),(A=e).subscribe(14,({error:e})=>{var t;let r,i;A.notify(12,(r={date:(t=e).startClocks.timeStamp,error:{id:Z(),message:t.message,source:t.source,stack:t.stack,handling_stack:t.handlingStack,component_stack:t.componentStack,type:t.type,handling:t.handling,causes:t.causes,source_type:"browser",fingerprint:t.fingerprint,csp:t.csp},type:z.ERROR,context:t.context},i={error:t.originalError,handlingStack:t.handlingStack},{rawRumEvent:r,startTime:t.startClocks.relative,domainContext:i}))}),{addError:({error:e,handlingStack:t,componentStack:r,startClocks:i,context:n})=>{let s=(0,v.As)({originalError:e,handlingStack:t,componentStack:r,startClocks:i,nonErrorPrefix:"Provided",source:E.g.CUSTOM,handling:"handled"});s.context=(0,P.kg)(s.context,n),A.notify(14,{error:s})}});eC={clearTracingIfNeeded:t_,traceFetch:e=>tR(r,e,i,e$,eH,t=>{var r;if(e.input instanceof Request&&!(null==(r=e.init)?void 0:r.headers))e.input=new Request(e.input),Object.keys(t).forEach(r=>{e.input.headers.append(r,t[r])});else{e.init=(0,el.yG)(e.init);let r=[];e.init.headers instanceof Headers?e.init.headers.forEach((e,t)=>{r.push([t,e])}):Array.isArray(e.init.headers)?e.init.headers.forEach(e=>{r.push(e)}):e.init.headers&&Object.keys(e.init.headers).forEach(t=>{r.push([t,e.init.headers[t]])}),e.init.headers=r.concat((0,eq.WP)(t))}}),traceXhr:(e,t)=>tR(r,e,i,e$,eH,e=>{Object.keys(e).forEach(r=>{t.setRequestHeader(r,e[r])})})},function(e,t,r){var i;(!a&&(i=t,a=new m.cP(e=>{let{stop:t}=(0,_.H)(XMLHttpRequest.prototype,"open",tK),{stop:r}=(0,_.H)(XMLHttpRequest.prototype,"send",t=>{!function({target:e,parameters:[t],handlingStack:r},i,n){let s=tH.get(e);if(!s)return;s.state="start",s.startClocks=(0,R.M8)(),s.isAborted=!1,s.xhr=e,s.handlingStack=r,s.requestBody=t;let o=!1,{stop:a}=(0,_.H)(e,"onreadystatechange",()=>{e.readyState===XMLHttpRequest.DONE&&c()}),c=()=>{l(),a(),o||(o=!0,s.state="complete",s.duration=(0,R.vk)(s.startClocks.timeStamp,(0,R.nx)()),s.status=e.status,"string"==typeof e.response&&(s.responseBody=e.response),n.notify((0,el.yG)(s)))},{stop:l}=(0,ec.q)(i,e,"loadend",c);n.notify(s)}(t,i,e)},{computeHandlingStack:!0}),{stop:n}=(0,_.H)(XMLHttpRequest.prototype,"abort",tV);return()=>{t(),r(),n()}})),a).subscribe(t=>{if(t4(t.url))switch(t.state){case"start":r.traceXhr(t,t.xhr),t.requestIndex=re(),e.notify(7,{requestIndex:t.requestIndex,url:t.url});break;case"complete":r.clearTracingIfNeeded(t),e.notify(8,{duration:t.duration,method:t.method,requestIndex:t.requestIndex,spanId:t.spanId,startClocks:t.startClocks,status:t.status,traceId:t.traceId,traceSampled:t.traceSampled,type:"xhr",url:t.url,xhr:t.xhr,isAborted:t.isAborted,handlingStack:t.handlingStack,requestBody:t.requestBody,responseBody:t.responseBody})}})}(e,r,eC),D=e,I=r,x=eC,eM({responseBodyAction:e=>{var t;return(null==(t=t9(e.url,I))?void 0:t.trackResponseErrors)?2:1}}).subscribe(e=>{var t;if(t4(e.url))switch(e.state){case"start":x.traceFetch(e),e.requestIndex=re(),D.notify(7,{requestIndex:e.requestIndex,url:e.url});break;case"resolve":x.clearTracingIfNeeded(e),D.notify(8,{duration:(0,R.vk)(e.startClocks.timeStamp,(0,R.nx)()),method:e.method,requestIndex:e.requestIndex,responseType:e.responseType,spanId:e.spanId,startClocks:e.startClocks,status:e.status,traceId:e.traceId,traceSampled:e.traceSampled,type:tJ,url:e.url,response:e.response,init:e.init,input:e.input,isAborted:e.isAborted,handlingStack:e.handlingStack,requestBody:null==(t=e.init)?void 0:t.body,responseBody:e.responseBody})}});let e6=function(e,t,r){function i(r){t.wasInPageStateDuringPeriod("frozen",r.startClocks.relative,r.duration)||e.notify(12,en(r))}return{addOperationStepVital:function(t,r,i,n){if(!(0,X.sr)(X.R9.FEATURE_OPERATION_VITAL))return;let{operationKey:s,context:o,description:a}=i||{},c={name:t,type:"operation_step",operationKey:s,failureReason:n,stepType:r,startClocks:(0,R.M8)(),context:(0,B.a)(o),description:a};e.notify(12,en(c))},addDurationVital:i,startDurationVital:(e,t={})=>er(r,e,t),stopDurationVital:(e,t={})=>{ei(i,r,e,t)}}}(e,ex,o),e7=(S=r.applicationId,C=eK.actionContexts,{get:e=>{let t=eW.findView(e),r=eG.findUrl(e),n=i.findTrackedSession(e);if(n&&t&&r){let i=C.findActionId(e);return{application_id:S,session_id:n.id,user_action:i?{id:i}:void 0,view:{id:t.id,name:t.name,referrer:r.referrer,url:r.url}}}}});return{addAction:eK.addAction,addEvent:eV.addEvent,addError:e5,addTiming:eX,addFeatureFlagEvaluation:ez.addFeatureFlagEvaluation,startView:eZ,setViewContext:e0,setVie
1wContextProperty:e1,getViewContext:e2,setViewName:eQ,viewHistory:eW,getInternalContext:e7.get,startDurationVital:e6.startDurationVital,stopDurationVital:e6.stopDurationVital,addDurationVital:e6.addDurationVital,addOperationStepVital:e6.addOperationStepVital,globalContext:eU,userContext:e$,accountContext:eH,stop:()=>eT.forEach(e=>e())}}(k,F,e,L,t,i,o,c,u,A);return T.push(W),c.unbuffer(),T.push(()=>r.stop()),{...G,lifeCycle:k,session:L,stopSession:()=>L.expire(),telemetry:x,stop:()=>{T.forEach(e=>e())},hooks:F}}function nt(e,{session:t,viewContext:r,errorType:i}){var n;let s,o,a=t?t.id:"no-session-id",c=[];void 0!==i&&c.push(`error-type=${i}`),r&&(c.push(`seed=${r.id}`),c.push(`from=${r.startClocks.timeStamp}`));let l=(s=(n=e).site,o=n.subdomain||function(e){switch(e.site){case ta.NW:case ta.dV:return"app";case ta.Bb:return"dd";default:return}}(n),`https://${o?`${o}.`:""}${s}`),u=`/rum/replay/sessions/${a}`;return`${l}${u}?${c.join("&")}`}function nr(e,t,r,i){let n=(0,iz.sA)([e.profilingEndpointBuilder],e=>{t.notify(14,{error:e}),(0,w.A2)("Error reported to customer",{"error.message":e.message})}),s=r(i);return{async send({event:e,...t}){let r=new FormData,i=(0,ie.s)(e);if(!i)throw Error("Failed to serialize event");r.append("event",new Blob([i],{type:"application/json"}),"event.json");let o=i.length;for(let[e,i]of(0,eq.WP)(t)){let t=(0,ie.s)(i);if(!t)throw Error("Failed to serialize attachment");let n=await function(e,t){return new Promise(r=>{e.write(t),e.finish(e=>{r(e)})})}(s,t);o+=n.outputBytesCount,r.append(e,new Blob([n.output]),e)}n.send({data:r,bytesCount:o})}}}},30467:(e,t)=>{"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.TopicSubscribeResponse=t.TopicPublishResponse=void 0,(r=t.TopicPublishResponse||(t.TopicPublishResponse={})).Success="Success",r.Error="Error",(i=t.TopicSubscribeResponse||(t.TopicSubscribeResponse={})).Subscription="Subscription",i.Error="Error"},30880:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.CacheSortedSetPutElementsResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSortedSetPutElementsResponse.Error}}t.Error=o},31494:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TopicDiscontinuity=void 0;class r{constructor(e,t,r){this._lastSequenceNumber=e,this._newSequenceNumber=t,this._newSequencePage=r}lastSequenceNumber(){return this._lastSequenceNumber}newSequenceNumber(){return this._newSequenceNumber}newSequencePage(){return this._newSequencePage}toString(){let e=`Last Sequence Number: ${this._lastSequenceNumber}; New Sequence Number: ${this._newSequenceNumber}; New Sequence Page: ${this._newSequencePage}`;return`${this.constructor.name}: ${e}`}}t.TopicDiscontinuity=r},31752:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(e){super(),this.type=n.CacheSortedSetUnionStoreResponse.Success,this._length=e}length(){return this._length}toString(){return`${super.toString()}: length ${this._length}`}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSortedSetUnionStoreResponse.Error}}t.Error=o},31938:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(e){super(),this.type=n.CacheDictionaryIncrementResponse.Success,this._value=e}value(){return this._value}valueNumber(){return this._value}toString(){return`${super.toString()}: value: ${this.valueNumber()}`}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheDictionaryIncrementResponse.Error}value(){}}t.Error=o},32087:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452),s=r(84055),o=new TextDecoder;class a extends i.BaseResponseSuccess{constructor(e,t){super(),this.type=n.CacheGetBatchResponse.Success,this.body=e,this.keys=t}results(){return this.body}values(){return this.valuesRecordStringString()}valuesRecord(){return this.valuesRecordStringString()}valuesRecordStringString(){return this.body.reduce((e,t,r)=>(t instanceof s.CacheGet.Hit&&(e[o.decode(this.keys[r])]=t.valueString()),e),{})}valuesRecordStringUint8Array(){return this.body.reduce((e,t,r)=>(t instanceof s.CacheGet.Hit&&(e[o.decode(this.keys[r])]=t.valueUint8Array()),e),{})}valuesMap(){return this.valuesMapStringString()}valuesMapStringString(){return this.body.reduce((e,t,r)=>(t instanceof s.CacheGet.Hit&&e.set(o.decode(this.keys[r]),t.valueString()),e),new Map)}valuesMapStringUint8Array(){return this.body.reduce((e,t,r)=>(t instanceof s.CacheGet.Hit&&e.set(o.decode(this.keys[r]),t.valueUint8Array()),e),new Map)}toString(){let e=this.results().map(e=>e.toString()).toString();return`${super.toString()}: ${e}`}}t.Success=a;class c extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheGetBatchResponse.Error}values(){}}t.Error=c},32431:(e,t)=>{"use strict";var r;
1Object.defineProperty(t,"__esModule",{value:!0}),t.CompressionLevel=void 0,(r=t.CompressionLevel||(t.CompressionLevel={})).Balanced="Balanced",r.Fastest="Fastest",r.SmallestSize="SmallestSize"},32702:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Browser=t.Laptop=void 0;let i=r(99929),n=r(84055),s=r(34873),o=new(r(57435)).DefaultMomentoLoggerFactory;class a extends i.CacheConfiguration{static latest(e=o){return a.v1(e)}static v1(e=o){let t=new s.StaticGrpcConfiguration({deadlineMillis:5e3});return new a({loggerFactory:e,transportStrategy:new s.StaticTransportStrategy({grpcConfiguration:t}),middlewares:[],throwOnErrors:!1,readConcern:n.ReadConcern.BALANCED})}}t.Laptop=a;class c extends i.CacheConfiguration{static latest(e=o){return c.v1(e)}static v1(e=o){let t=new s.StaticGrpcConfiguration({deadlineMillis:5e3});return new c({loggerFactory:e,transportStrategy:new s.StaticTransportStrategy({grpcConfiguration:t}),middlewares:[],throwOnErrors:!1,readConcern:n.ReadConcern.BALANCED})}}t.Browser=c},32820:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(e){super(),this.type=n.CacheListConcatenateFrontResponse.Success,this._listLength=e}listLength(){return this._listLength}toString(){return`${super.toString()}: listLength: ${this._listLength}`}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheListConcatenateFrontResponse.Error}}t.Error=o},32949:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.NotSet=t.Set=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheDecreaseTtlResponse.Set}}t.Set=s;class o extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheDecreaseTtlResponse.NotSet}}t.NotSet=o;class a extends i.BaseResponseMiss{constructor(){super(...arguments),this.type=n.CacheDecreaseTtlResponse.Miss}}t.Miss=a;class c extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheDecreaseTtlResponse.Error}}t.Error=c},33095:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});var i=r(53476);function n(e,t){let r,n=(0,i.VZ)();return n.Zone&&"function"==typeof n.Zone.__symbol__&&(r=e[n.Zone.__symbol__(t)]),r||(r=e[t]),r}},33251:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Subscription=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSubscription{constructor(e,t){super(),this.type=n.TopicSubscribeResponse.Subscription,this.logger=e.getLogger(this),this.subscriptionState=t}unsubscribe(){this.logger.trace(`Unsubscribing from subscription: ${this.subscriptionState.toString()}`),this.subscriptionState.unsubscribe()}get isSubscribed(){return this.subscriptionState.isSubscribed}}t.Subscription=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.TopicSubscribeResponse.Error}}t.Error=o},33285:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.LeaderboardRemoveElementsResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.LeaderboardRemoveElementsResponse.Error}}t.Error=o},33395:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__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)&&i(t,e,r);return n(t,e),t};
1Object.defineProperty(t,"__esModule",{value:!0}),t.PingClient=void 0;let o=s(r(43092)),a=s(r(57758));class c{constructor(e,t,r){this.methodDescriptorPing=new o.MethodDescriptor("/cache_client.Ping/Ping",o.MethodType.UNARY,a._PingRequest,a._PingResponse,e=>e.serializeBinary(),a._PingResponse.deserializeBinary),r||(r={}),t||(t={}),r.format="text",this.client_=new o.GrpcWebClientBase(r),this.hostname_=e,this.credentials_=t,this.options_=r}ping(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Ping/Ping",e,t||{},this.methodDescriptorPing,r):this.client_.unaryCall(this.hostname_+"/cache_client.Ping/Ping",e,t||{},this.methodDescriptorPing)}}t.PingClient=c},33899:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.GenerateApiKeyResponse=void 0,(r=t.GenerateApiKeyResponse||(t.GenerateApiKeyResponse={})).Success="Success",r.Error="Error"},34257:()=>{},34873:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(85444),t),n(r(99466),t)},35020:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(24197),t),n(r(76557),t),n(r(51396),t),n(r(61624),t)},36266:(e,t,r)=>{"use strict";let i;r.d(t,{Bd:()=>o,Dx:()=>u,dm:()=>c,oO:()=>d,pM:()=>a,um:()=>l});var n=r(14534);let s=!1;function o(e){i=e}function a(e){s=e}function c(e){return function(...t){return l(e,this,t)}}function l(e,t,r){try{return e.apply(t,r)}catch(e){u(e)}}function u(e){if(d(e),i)try{i(e)}catch(e){d(e)}}function d(...e){s&&n.Vy.error("[MONITOR]",...e)}},36597:(e,t,r)=>{var i=r(64555),n={},s=r(9837);i.object.extend(n,s),i.exportSymbol("_DeleteLeaderboardRequest",null,n),i.exportSymbol("_Element",null,n),i.exportSymbol("_GetByRankRequest",null,n),i.exportSymbol("_GetByRankResponse",null,n),i.exportSymbol("_GetByScoreRequest",null,n),i.exportSymbol("_GetByScoreResponse",null,n),i.exportSymbol("_GetCompetitionRankRequest",null,n),i.exportSymbol("_GetCompetitionRankResponse",null,n),i.exportSymbol("_GetLeaderboardLengthRequest",null,n),i.exportSymbol("_GetLeaderboardLengthResponse",null,n),i.exportSymbol("_GetRankRequest",null,n),i.exportSymbol("_GetRankResponse",null,n),i.exportSymbol("_Order",null,n),i.exportSymbol("_RankRange",null,n),i.exportSymbol("_RankedElement",null,n),i.exportSymbol("_RemoveElementsRequest",null,n),i.exportSymbol("_ScoreRange",null,n),i.exportSymbol("_ScoreRange.MaxCase",null,n),i.exportSymbol("_ScoreRange.MinCase",null,n),i.exportSymbol("_UpsertElementsRequest",null,n),n._Element=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._Element,i.Message),i.DEBUG&&!COMPILED&&(n._Element.displayName="proto._Element"),n._RankedElement=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._RankedElement,i.Message),i.DEBUG&&!COMPILED&&(n._RankedElement.displayName="proto._RankedElement"),n._RankRange=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._RankRange,i.Message),i.DEBUG&&!COMPILED&&(n._RankRange.displayName="proto._RankRange"),n._ScoreRange=function(e){i.Message.initialize(this,e,0,-1,null,n._ScoreRange.oneofGroups_)},i.inherits(n._ScoreRange,i.Message),i.DEBUG&&!COMPILED&&(n._ScoreRange.displayName="proto._ScoreRange"),n._DeleteLeaderboardRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._DeleteLeaderboardRequest,i.Message),i.DEBUG&&!COMPILED&&(n._DeleteLeaderboardRequest.displayName="proto._DeleteLeaderboardRequest"),n._GetLeaderboardLengthRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._GetLeaderboardLengthRequest,i.Message),i.DEBUG&&!COMPILED&&(n._GetLeaderboardLengthRequest.displayName="proto._GetLeaderboardLengthRequest"),n._GetLeaderboardLengthResponse=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._GetLeaderboardLengthResponse,i.Message),i.DEBUG&&!COMPILED&&(n._GetLeaderboardLengthResponse.displayName="proto._GetLeaderboardLengthResponse"),n._UpsertElementsRequest=function(e){i.Message.initialize(this,e,0,-1,n._UpsertElementsRequest.repeatedFields_,null)},i.inherits(n._UpsertElementsRequest,i.Message),i.DEBUG&&!COMPILED&&(n._UpsertElementsRequest.displayName="proto._UpsertElementsRequest"),n._GetByRankRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._GetByRankRequest,i.Message),i.DEBUG&&!COMPILED&&(n._GetByRankRequest.displayName="proto._GetByRankRequest"),n._GetByRankResponse=function(e){i.Message.initialize(this,e,0,-1,n._GetByRankResponse.repeatedFields_,null)},i.inherits(n._GetByRankResponse,i.Message),i.DEBUG&&!COMPILED&&(n._GetByRankResponse.displayName="proto._GetByRankResponse"),n._GetRankRequest=function(e){i.Message.initialize(this,e,0,-1,n._GetRankRequest.repeatedFields_,null)},i.inherits(n._GetRankRequest,i.Message),i.DEBUG&&!COMPILED&&(n._GetRankRequest.displayName="proto._GetRankRequest"),n._GetRankResponse=function(e){i.Message.initialize(this,e,0,-1,n._GetRankResponse.repeatedFields_,null)},i.inherits(n._GetRankResponse,i.Message),i.DEBUG&&!COMPILED&&(n._GetRankResponse.displayName="proto._GetRankResponse"),n._RemoveElementsRequest=function(e){i.Message.initialize(this,e,0,-1,n._RemoveElementsRequest.repeatedFields_,null)},i.inherits(n._RemoveElementsRequest,i.Message),i.DEBUG&&!COMPILED&&(n._RemoveElementsRequest.displayName="proto._RemoveElementsRequest"),n._GetByScoreRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._GetByScoreRequest,i.Message),i.DEBUG&&!COMPILED&&(n._GetByScoreRequest.displayName="proto._GetByScoreRequest"),n._GetByScoreResponse=function(e){i.Message.initialize(this,e,0,-1,n._GetByScoreResponse.repeatedFields_,null)},i.inherits(n._GetByScoreResponse,i.Message),i.DEBUG&&!COMPILED&&(n._GetByScoreResponse.displayName="proto._GetByScoreResponse"),n._GetCompetitionRankRequest=function(e){i.Message.initialize(this,e,0,-1,n._GetCompetitionRankRequest.repeatedFields_,null)},i.inherits(n._GetCompetitionRankRequest,i.Message),i.DEBUG&&!COMPILED&&(n._GetCompetitionRankRequest.displayName="proto._GetCompetitionRankRequest"),n._GetCompetitionRankResponse=function(e){i.Message.initialize(this,e,0,-1,n._GetCompetitionRankResponse.repeatedFields_,null)},i.inherits(n._GetCompetitionRankResponse,i.Message),i.DEBUG&&!COMPILED&&(n._GetCompetitionRankResponse.displayName="proto._GetCompetitionRankResponse"),i.Message.GENERATE_TO_OBJ
1ECT&&(n._Element.prototype.toObject=function(e){return n._Element.toObject(e,this)},n._Element.toObject=function(e,t){var r={id:i.Message.getFieldWithDefault(t,1,0),score:i.Message.getFloatingPointFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),n._Element.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._Element;return n._Element.deserializeBinaryFromReader(r,t)},n._Element.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setId(r);break;case 3:var r=t.readDouble();e.setScore(r);break;default:t.skipField()}return e},n._Element.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._Element.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._Element.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getId())&&t.writeUint32(1,r),0!==(r=e.getScore())&&t.writeDouble(3,r)},n._Element.prototype.getId=function(){return i.Message.getFieldWithDefault(this,1,0)},n._Element.prototype.setId=function(e){return i.Message.setProto3IntField(this,1,e)},n._Element.prototype.getScore=function(){return i.Message.getFloatingPointFieldWithDefault(this,3,0)},n._Element.prototype.setScore=function(e){return i.Message.setProto3FloatField(this,3,e)},i.Message.GENERATE_TO_OBJECT&&(n._RankedElement.prototype.toObject=function(e){return n._RankedElement.toObject(e,this)},n._RankedElement.toObject=function(e,t){var r={id:i.Message.getFieldWithDefault(t,1,0),rank:i.Message.getFieldWithDefault(t,3,0),score:i.Message.getFloatingPointFieldWithDefault(t,4,0)};return e&&(r.$jspbMessageInstance=t),r}),n._RankedElement.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._RankedElement;return n._RankedElement.deserializeBinaryFromReader(r,t)},n._RankedElement.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setId(r);break;case 3:var r=t.readUint32();e.setRank(r);break;case 4:var r=t.readDouble();e.setScore(r);break;default:t.skipField()}return e},n._RankedElement.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._RankedElement.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._RankedElement.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getId())&&t.writeUint32(1,r),0!==(r=e.getRank())&&t.writeUint32(3,r),0!==(r=e.getScore())&&t.writeDouble(4,r)},n._RankedElement.prototype.getId=function(){return i.Message.getFieldWithDefault(this,1,0)},n._RankedElement.prototype.setId=function(e){return i.Message.setProto3IntField(this,1,e)},n._RankedElement.prototype.getRank=function(){return i.Message.getFieldWithDefault(this,3,0)},n._RankedElement.prototype.setRank=function(e){return i.Message.setProto3IntField(this,3,e)},n._RankedElement.prototype.getScore=function(){return i.Message.getFloatingPointFieldWithDefault(this,4,0)},n._RankedElement.prototype.setScore=function(e){return i.Message.setProto3FloatField(this,4,e)},i.Message.GENERATE_TO_OBJECT&&(n._RankRange.prototype.toObject=function(e){return n._RankRange.toObject(e,this)},n._RankRange.toObject=function(e,t){var r={startInclusive:i.Message.getFieldWithDefault(t,1,0),endExclusive:i.Message.getFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),n._RankRange.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._RankRange;return n._RankRange.deserializeBinaryFromReader(r,t)},n._RankRange.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setStartInclusive(r);break;case 2:var r=t.readUint32();e.setEndExclusive(r);break;default:t.skipField()}return e},n._RankRange.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._RankRange.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._RankRange.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getStartInclusive())&&t.writeUint32(1,r),0!==(r=e.getEndExclusive())&&t.writeUint32(2,r)},n._RankRange.prototype.getStartInclusive=function(){return i.Message.getFieldWithDefault(this,1,0)},n._RankRange.prototype.setStartInclusive=function(e){return i.Message.setProto3IntField(this,1,e)},n._RankRange.prototype.getEndExclusive=function(){return i.Message.getFieldWithDefault(this,2,0)},n._RankRange.prototype.setEndExclusive=function(e){return i.Message.setProto3IntField(this,2,e)},n._ScoreRange.oneofGroups_=[[1,5],[3,6]],n._ScoreRange.MinCase={MIN_NOT_SET:0,UNBOUNDED_MIN:1,MIN_INCLUSIVE:5},n._ScoreRange.prototype.getMinCase=function(){return i.Message.computeOneofCase(this,n._ScoreRange.oneofGroups_[0])},n._ScoreRange.MaxCase={MAX_NOT_SET:0,UNBOUNDED_MAX:3,MAX_EXCLUSIVE:6},n._ScoreRange.prototype.getMaxCase=function(){return i.Message.computeOneofCase(this,n._ScoreRange.oneofGroups_[1])}
1,i.Message.GENERATE_TO_OBJECT&&(n._ScoreRange.prototype.toObject=function(e){return n._ScoreRange.toObject(e,this)},n._ScoreRange.toObject=function(e,t){var r,n={unboundedMin:(r=t.getUnboundedMin())&&s._Unbounded.toObject(e,r),minInclusive:i.Message.getFloatingPointFieldWithDefault(t,5,0),unboundedMax:(r=t.getUnboundedMax())&&s._Unbounded.toObject(e,r),maxExclusive:i.Message.getFloatingPointFieldWithDefault(t,6,0)};return e&&(n.$jspbMessageInstance=t),n}),n._ScoreRange.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._ScoreRange;return n._ScoreRange.deserializeBinaryFromReader(r,t)},n._ScoreRange.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new s._Unbounded;t.readMessage(r,s._Unbounded.deserializeBinaryFromReader),e.setUnboundedMin(r);break;case 5:var r=t.readDouble();e.setMinInclusive(r);break;case 3:var r=new s._Unbounded;t.readMessage(r,s._Unbounded.deserializeBinaryFromReader),e.setUnboundedMax(r);break;case 6:var r=t.readDouble();e.setMaxExclusive(r);break;default:t.skipField()}return e},n._ScoreRange.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._ScoreRange.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._ScoreRange.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getUnboundedMin())&&t.writeMessage(1,r,s._Unbounded.serializeBinaryToWriter),null!=(r=i.Message.getField(e,5))&&t.writeDouble(5,r),null!=(r=e.getUnboundedMax())&&t.writeMessage(3,r,s._Unbounded.serializeBinaryToWriter),null!=(r=i.Message.getField(e,6))&&t.writeDouble(6,r)},n._ScoreRange.prototype.getUnboundedMin=function(){return i.Message.getWrapperField(this,s._Unbounded,1)},n._ScoreRange.prototype.setUnboundedMin=function(e){return i.Message.setOneofWrapperField(this,1,n._ScoreRange.oneofGroups_[0],e)},n._ScoreRange.prototype.clearUnboundedMin=function(){return this.setUnboundedMin(void 0)},n._ScoreRange.prototype.hasUnboundedMin=function(){return null!=i.Message.getField(this,1)},n._ScoreRange.prototype.getMinInclusive=function(){return i.Message.getFloatingPointFieldWithDefault(this,5,0)},n._ScoreRange.prototype.setMinInclusive=function(e){return i.Message.setOneofField(this,5,n._ScoreRange.oneofGroups_[0],e)},n._ScoreRange.prototype.clearMinInclusive=function(){return i.Message.setOneofField(this,5,n._ScoreRange.oneofGroups_[0],void 0)},n._ScoreRange.prototype.hasMinInclusive=function(){return null!=i.Message.getField(this,5)},n._ScoreRange.prototype.getUnboundedMax=function(){return i.Message.getWrapperField(this,s._Unbounded,3)},n._ScoreRange.prototype.setUnboundedMax=function(e){return i.Message.setOneofWrapperField(this,3,n._ScoreRange.oneofGroups_[1],e)},n._ScoreRange.prototype.clearUnboundedMax=function(){return this.setUnboundedMax(void 0)},n._ScoreRange.prototype.hasUnboundedMax=function(){return null!=i.Message.getField(this,3)},n._ScoreRange.prototype.getMaxExclusive=function(){return i.Message.getFloatingPointFieldWithDefault(this,6,0)},n._ScoreRange.prototype.setMaxExclusive=function(e){return i.Message.setOneofField(this,6,n._ScoreRange.oneofGroups_[1],e)},n._ScoreRange.prototype.clearMaxExclusive=function(){return i.Message.setOneofField(this,6,n._ScoreRange.oneofGroups_[1],void 0)},n._ScoreRange.prototype.hasMaxExclusive=function(){return null!=i.Message.getField(this,6)},i.Message.GENERATE_TO_OBJECT&&(n._DeleteLeaderboardRequest.prototype.toObject=function(e){return n._DeleteLeaderboardRequest.toObject(e,this)},n._DeleteLeaderboardRequest.toObject=function(e,t){var r={leaderboard:i.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),n._DeleteLeaderboardRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._DeleteLeaderboardRequest;return n._DeleteLeaderboardRequest.deserializeBinaryFromReader(r,t)},n._DeleteLeaderboardRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(2===t.getFieldNumber()){var r=t.readString();e.setLeaderboard(r)}else t.skipField();return e},n._DeleteLeaderboardRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._DeleteLeaderboardRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._DeleteLeaderboardRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getLeaderboard()).length>0&&t.writeString(2,r)},n._DeleteLeaderboardRequest.prototype.getLeaderboard=function(){return i.Message.getFieldWithDefault(this,2,"")},n._DeleteLeaderboardRequest.prototype.setLeaderboard=function(e){return i.Message.setProto3StringField(this,2,e)}
1,i.Message.GENERATE_TO_OBJECT&&(n._GetLeaderboardLengthRequest.prototype.toObject=function(e){return n._GetLeaderboardLengthRequest.toObject(e,this)},n._GetLeaderboardLengthRequest.toObject=function(e,t){var r={leaderboard:i.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),n._GetLeaderboardLengthRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GetLeaderboardLengthRequest;return n._GetLeaderboardLengthRequest.deserializeBinaryFromReader(r,t)},n._GetLeaderboardLengthRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(2===t.getFieldNumber()){var r=t.readString();e.setLeaderboard(r)}else t.skipField();return e},n._GetLeaderboardLengthRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GetLeaderboardLengthRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GetLeaderboardLengthRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getLeaderboard()).length>0&&t.writeString(2,r)},n._GetLeaderboardLengthRequest.prototype.getLeaderboard=function(){return i.Message.getFieldWithDefault(this,2,"")},n._GetLeaderboardLengthRequest.prototype.setLeaderboard=function(e){return i.Message.setProto3StringField(this,2,e)},i.Message.GENERATE_TO_OBJECT&&(n._GetLeaderboardLengthResponse.prototype.toObject=function(e){return n._GetLeaderboardLengthResponse.toObject(e,this)},n._GetLeaderboardLengthResponse.toObject=function(e,t){var r={count:i.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),n._GetLeaderboardLengthResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GetLeaderboardLengthResponse;return n._GetLeaderboardLengthResponse.deserializeBinaryFromReader(r,t)},n._GetLeaderboardLengthResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setCount(r)}else t.skipField();return e},n._GetLeaderboardLengthResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GetLeaderboardLengthResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GetLeaderboardLengthResponse.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getCount())&&t.writeUint32(1,r)},n._GetLeaderboardLengthResponse.prototype.getCount=function(){return i.Message.getFieldWithDefault(this,1,0)},n._GetLeaderboardLengthResponse.prototype.setCount=function(e){return i.Message.setProto3IntField(this,1,e)},n._UpsertElementsRequest.repeatedFields_=[3],i.Message.GENERATE_TO_OBJECT&&(n._UpsertElementsRequest.prototype.toObject=function(e){return n._UpsertElementsRequest.toObject(e,this)},n._UpsertElementsRequest.toObject=function(e,t){var r={leaderboard:i.Message.getFieldWithDefault(t,2,""),elementsList:i.Message.toObjectList(t.getElementsList(),n._Element.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),n._UpsertElementsRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._UpsertElementsRequest;return n._UpsertElementsRequest.deserializeBinaryFromReader(r,t)},n._UpsertElementsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 2:var r=t.readString();e.setLeaderboard(r);break;case 3:var r=new n._Element;t.readMessage(r,n._Element.deserializeBinaryFromReader),e.addElements(r);break;default:t.skipField()}return e},n._UpsertElementsRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._UpsertElementsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._UpsertElementsRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getLeaderboard()).length>0&&t.writeString(2,r),(r=e.getElementsList()).length>0&&t.writeRepeatedMessage(3,r,n._Element.serializeBinaryToWriter)},n._UpsertElementsRequest.prototype.getLeaderboard=function(){return i.Message.getFieldWithDefault(this,2,"")},n._UpsertElementsRequest.prototype.setLeaderboard=function(e){return i.Message.setProto3StringField(this,2,e)},n._UpsertElementsRequest.prototype.getElementsList=function(){return i.Message.getRepeatedWrapperField(this,n._Element,3)},n._UpsertElementsRequest.prototype.setElementsList=function(e){return i.Message.setRepeatedWrapperField(this,3,e)},n._UpsertElementsRequest.prototype.addElements=function(e,t){return i.Message.addToRepeatedWrapperField(this,3,e,n._Element,t)},n._UpsertElementsRequest.prototype.clearElementsList=function(){return this.setElementsList([])}
1,i.Message.GENERATE_TO_OBJECT&&(n._GetByRankRequest.prototype.toObject=function(e){return n._GetByRankRequest.toObject(e,this)},n._GetByRankRequest.toObject=function(e,t){var r,s={leaderboard:i.Message.getFieldWithDefault(t,2,""),rankRange:(r=t.getRankRange())&&n._RankRange.toObject(e,r),order:i.Message.getFieldWithDefault(t,4,0)};return e&&(s.$jspbMessageInstance=t),s}),n._GetByRankRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GetByRankRequest;return n._GetByRankRequest.deserializeBinaryFromReader(r,t)},n._GetByRankRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 2:var r=t.readString();e.setLeaderboard(r);break;case 3:var r=new n._RankRange;t.readMessage(r,n._RankRange.deserializeBinaryFromReader),e.setRankRange(r);break;case 4:var r=t.readEnum();e.setOrder(r);break;default:t.skipField()}return e},n._GetByRankRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GetByRankRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GetByRankRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getLeaderboard()).length>0&&t.writeString(2,r),null!=(r=e.getRankRange())&&t.writeMessage(3,r,n._RankRange.serializeBinaryToWriter),0!==(r=e.getOrder())&&t.writeEnum(4,r)},n._GetByRankRequest.prototype.getLeaderboard=function(){return i.Message.getFieldWithDefault(this,2,"")},n._GetByRankRequest.prototype.setLeaderboard=function(e){return i.Message.setProto3StringField(this,2,e)},n._GetByRankRequest.prototype.getRankRange=function(){return i.Message.getWrapperField(this,n._RankRange,3)},n._GetByRankRequest.prototype.setRankRange=function(e){return i.Message.setWrapperField(this,3,e)},n._GetByRankRequest.prototype.clearRankRange=function(){return this.setRankRange(void 0)},n._GetByRankRequest.prototype.hasRankRange=function(){return null!=i.Message.getField(this,3)},n._GetByRankRequest.prototype.getOrder=function(){return i.Message.getFieldWithDefault(this,4,0)},n._GetByRankRequest.prototype.setOrder=function(e){return i.Message.setProto3EnumField(this,4,e)},n._GetByRankResponse.repeatedFields_=[1],i.Message.GENERATE_TO_OBJECT&&(n._GetByRankResponse.prototype.toObject=function(e){return n._GetByRankResponse.toObject(e,this)},n._GetByRankResponse.toObject=function(e,t){var r={elementsList:i.Message.toObjectList(t.getElementsList(),n._RankedElement.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),n._GetByRankResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GetByRankResponse;return n._GetByRankResponse.deserializeBinaryFromReader(r,t)},n._GetByRankResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new n._RankedElement;t.readMessage(r,n._RankedElement.deserializeBinaryFromReader),e.addElements(r)}else t.skipField();return e},n._GetByRankResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GetByRankResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GetByRankResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getElementsList()).length>0&&t.writeRepeatedMessage(1,r,n._RankedElement.serializeBinaryToWriter)},n._GetByRankResponse.prototype.getElementsList=function(){return i.Message.getRepeatedWrapperField(this,n._RankedElement,1)},n._GetByRankResponse.prototype.setElementsList=function(e){return i.Message.setRepeatedWrapperField(this,1,e)},n._GetByRankResponse.prototype.addElements=function(e,t){return i.Message.addToRepeatedWrapperField(this,1,e,n._RankedElement,t)},n._GetByRankResponse.prototype.clearElementsList=function(){return this.setElementsList([])},n._GetRankRequest.repeatedFields_=[3],i.Message.GENERATE_TO_OBJECT&&(n._GetRankRequest.prototype.toObject=function(e){return n._GetRankRequest.toObject(e,this)},n._GetRankRequest.toObject=function(e,t){var r,n={leaderboard:i.Message.getFieldWithDefault(t,2,""),idsList:null==(r=i.Message.getRepeatedField(t,3))?void 0:r,order:i.Message.getFieldWithDefault(t,4,0)};return e&&(n.$jspbMessageInstance=t),n}),n._GetRankRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GetRankRequest;return n._GetRankRequest.deserializeBinaryFromReader(r,t)},n._GetRankRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 2:var r=t.readString();e.setLeaderboard(r);break;case 3:for(var i=t.isDelimited()?t.readPackedUint32():[t.readUint32()],n=0;n<i.length;n++)e.addIds(i[n]);break;case 4:var r=t.readEnum();e.setOrder(r);break;default:t.skipField()}return e},n._GetRankRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GetRankRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GetRankRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getLeaderboard()).length>0&&t.writeString(2,r),(r=e.getIdsList()).length>0&&t.writePackedUint32(3,r),0!==(r=e.getOrder())&&t.writeEnum(4,r)},n._GetRankRequest.prototype.getLeaderboard=function(){return i.Message.getFieldWithDefault(this,2,"")},n._GetRankRequest.prototype.setLeaderboard=function(e){return i.Message.setProto3StringField(this,2,e)},n._GetRankRequest.prototype.getIdsList=function(){return i.Message.getRepeatedField(this,3)},n._GetRankRequest.prototype.setIdsList=function(e){return i.Message.setField(this,3,e||[])},n._GetRankRequest.prototype.addIds=function(e,t){return i.Message.addToRepeatedField(this,3,e,t)},n._GetRankRequest.prototype.clearIdsList=function(){return this.setIdsList([])},n._GetRankRequest.prototype.getOrder=function(){return i.Message.getFieldWithDefault(this,4,0)},n._GetRankRequest.prototype.setOrder=function(e){return i.Message.setProto3EnumField(this,4,e)},n._GetRankResponse.repeatedFields_=[1],i.Message.GENERATE_TO_OBJ
1ECT&&(n._GetRankResponse.prototype.toObject=function(e){return n._GetRankResponse.toObject(e,this)},n._GetRankResponse.toObject=function(e,t){var r={elementsList:i.Message.toObjectList(t.getElementsList(),n._RankedElement.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),n._GetRankResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GetRankResponse;return n._GetRankResponse.deserializeBinaryFromReader(r,t)},n._GetRankResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new n._RankedElement;t.readMessage(r,n._RankedElement.deserializeBinaryFromReader),e.addElements(r)}else t.skipField();return e},n._GetRankResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GetRankResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GetRankResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getElementsList()).length>0&&t.writeRepeatedMessage(1,r,n._RankedElement.serializeBinaryToWriter)},n._GetRankResponse.prototype.getElementsList=function(){return i.Message.getRepeatedWrapperField(this,n._RankedElement,1)},n._GetRankResponse.prototype.setElementsList=function(e){return i.Message.setRepeatedWrapperField(this,1,e)},n._GetRankResponse.prototype.addElements=function(e,t){return i.Message.addToRepeatedWrapperField(this,1,e,n._RankedElement,t)},n._GetRankResponse.prototype.clearElementsList=function(){return this.setElementsList([])},n._RemoveElementsRequest.repeatedFields_=[3],i.Message.GENERATE_TO_OBJECT&&(n._RemoveElementsRequest.prototype.toObject=function(e){return n._RemoveElementsRequest.toObject(e,this)},n._RemoveElementsRequest.toObject=function(e,t){var r,n={leaderboard:i.Message.getFieldWithDefault(t,2,""),idsList:null==(r=i.Message.getRepeatedField(t,3))?void 0:r};return e&&(n.$jspbMessageInstance=t),n}),n._RemoveElementsRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._RemoveElementsRequest;return n._RemoveElementsRequest.deserializeBinaryFromReader(r,t)},n._RemoveElementsRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 2:var r=t.readString();e.setLeaderboard(r);break;case 3:for(var i=t.isDelimited()?t.readPackedUint32():[t.readUint32()],n=0;n<i.length;n++)e.addIds(i[n]);break;default:t.skipField()}return e},n._RemoveElementsRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._RemoveElementsRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._RemoveElementsRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getLeaderboard()).length>0&&t.writeString(2,r),(r=e.getIdsList()).length>0&&t.writePackedUint32(3,r)},n._RemoveElementsRequest.prototype.getLeaderboard=function(){return i.Message.getFieldWithDefault(this,2,"")},n._RemoveElementsRequest.prototype.setLeaderboard=function(e){return i.Message.setProto3StringField(this,2,e)},n._RemoveElementsRequest.prototype.getIdsList=function(){return i.Message.getRepeatedField(this,3)},n._RemoveElementsRequest.prototype.setIdsList=function(e){return i.Message.setField(this,3,e||[])},n._RemoveElementsRequest.prototype.addIds=function(e,t){return i.Message.addToRepeatedField(this,3,e,t)},n._RemoveElementsRequest.prototype.clearIdsList=function(){return this.setIdsList([])},i.Message.GENERATE_TO_OBJECT&&(n._GetByScoreRequest.prototype.toObject=function(e){return n._GetByScoreRequest.toObject(e,this)},n._GetByScoreRequest.toObject=function(e,t){var r,s={leaderboard:i.Message.getFieldWithDefault(t,2,""),scoreRange:(r=t.getScoreRange())&&n._ScoreRange.toObject(e,r),offset:i.Message.getFieldWithDefault(t,4,0),limitElements:i.Message.getFieldWithDefault(t,5,0),order:i.Message.getFieldWithDefault(t,6,0)};return e&&(s.$jspbMessageInstance=t),s}),n._GetByScoreRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GetByScoreRequest;return n._GetByScoreRequest.deserializeBinaryFromReader(r,t)},n._GetByScoreRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 2:var r=t.readString();e.setLeaderboard(r);break;case 3:var r=new n._ScoreRange;t.readMessage(r,n._ScoreRange.deserializeBinaryFromReader),e.setScoreRange(r);break;case 4:var r=t.readUint32();e.setOffset(r);break;case 5:var r=t.readUint32();e.setLimitElements(r);break;case 6:var r=t.readEnum();e.setOrder(r);break;default:t.skipField()}return e},n._GetByScoreRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GetByScoreRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GetByScoreRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getLeaderboard()).length>0&&t.writeString(2,r),null!=(r=e.getScoreRange())&&t.writeMessage(3,r,n._ScoreRange.serializeBinaryToWriter),0!==(r=e.getOffset())&&t.writeUint32(4,r),0!==(r=e.getLimitElements())&&t.writeUint32(5,r),0!==(r=e.getOrder())&&t.writeEnum(6,r)},n._GetByScoreRequest.prototype.getLeaderboard=function(){return i.Message.getFieldWithDefault(this,2,"")},n._GetByScoreRequest.prototype.setLeaderboard=function(e){return i.Message.setProto3StringField(this,2,e)},n._GetByScoreRequest.prototype.getScoreRange=function(){return i.Message.getWrapperField(this,n._ScoreRange,3)},n._GetByScoreRequest.prototype.setScoreRange=function(e){return i.Message.setWrapperField(this,3,e)},n._GetByScoreRequest.prototype.clearScoreRange=function(){return this.setScoreRange(void 0)},n._GetByScoreRequest.prototype.hasScoreRange=function(){return null!=i.Message.getField(this,3)},n._GetByScoreRequest.prototype.getOffset=function(){return i.Message.getFieldWithDefault(this,4,0)},n._GetByScoreRequest.prototype.setOffset=function(e){return i.Message.setProto3IntField(this,4,e)},n._GetByScoreRequest.prototype.getLimitElements=function(){return i.Message.getFieldWithDefault(this,5,0)},n._GetByScoreRequest.prototype.setLimitElements=function(e){return i.Message.setProto3IntField(this,5,e)},n._GetByScoreRequest.prototype.getOrder=function(){return i.Message.getFieldWithDefault(this,6,0)},n._GetByScoreRequest.prototype.setOrder=function(e){return i.Message.setProto3EnumField(this,6,e)},n._GetByScoreResponse.repeatedFields_=[1],i.Message.GENERATE_TO_OBJ
1ECT&&(n._GetByScoreResponse.prototype.toObject=function(e){return n._GetByScoreResponse.toObject(e,this)},n._GetByScoreResponse.toObject=function(e,t){var r={elementsList:i.Message.toObjectList(t.getElementsList(),n._RankedElement.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),n._GetByScoreResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GetByScoreResponse;return n._GetByScoreResponse.deserializeBinaryFromReader(r,t)},n._GetByScoreResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new n._RankedElement;t.readMessage(r,n._RankedElement.deserializeBinaryFromReader),e.addElements(r)}else t.skipField();return e},n._GetByScoreResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GetByScoreResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GetByScoreResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getElementsList()).length>0&&t.writeRepeatedMessage(1,r,n._RankedElement.serializeBinaryToWriter)},n._GetByScoreResponse.prototype.getElementsList=function(){return i.Message.getRepeatedWrapperField(this,n._RankedElement,1)},n._GetByScoreResponse.prototype.setElementsList=function(e){return i.Message.setRepeatedWrapperField(this,1,e)},n._GetByScoreResponse.prototype.addElements=function(e,t){return i.Message.addToRepeatedWrapperField(this,1,e,n._RankedElement,t)},n._GetByScoreResponse.prototype.clearElementsList=function(){return this.setElementsList([])},n._GetCompetitionRankRequest.repeatedFields_=[2],i.Message.GENERATE_TO_OBJECT&&(n._GetCompetitionRankRequest.prototype.toObject=function(e){return n._GetCompetitionRankRequest.toObject(e,this)},n._GetCompetitionRankRequest.toObject=function(e,t){var r,n={leaderboard:i.Message.getFieldWithDefault(t,1,""),idsList:null==(r=i.Message.getRepeatedField(t,2))?void 0:r,order:i.Message.getFieldWithDefault(t,3,0)};return e&&(n.$jspbMessageInstance=t),n}),n._GetCompetitionRankRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GetCompetitionRankRequest;return n._GetCompetitionRankRequest.deserializeBinaryFromReader(r,t)},n._GetCompetitionRankRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setLeaderboard(r);break;case 2:for(var i=t.isDelimited()?t.readPackedUint32():[t.readUint32()],n=0;n<i.length;n++)e.addIds(i[n]);break;case 3:var r=t.readEnum();e.setOrder(r);break;default:t.skipField()}return e},n._GetCompetitionRankRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GetCompetitionRankRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GetCompetitionRankRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getLeaderboard()).length>0&&t.writeString(1,r),(r=e.getIdsList()).length>0&&t.writePackedUint32(2,r),null!=(r=i.Message.getField(e,3))&&t.writeEnum(3,r)},n._GetCompetitionRankRequest.prototype.getLeaderboard=function(){return i.Message.getFieldWithDefault(this,1,"")},n._GetCompetitionRankRequest.prototype.setLeaderboard=function(e){return i.Message.setProto3StringField(this,1,e)},n._GetCompetitionRankRequest.prototype.getIdsList=function(){return i.Message.getRepeatedField(this,2)},n._GetCompetitionRankRequest.prototype.setIdsList=function(e){return i.Message.setField(this,2,e||[])},n._GetCompetitionRankRequest.prototype.addIds=function(e,t){return i.Message.addToRepeatedField(this,2,e,t)},n._GetCompetitionRankRequest.prototype.clearIdsList=function(){return this.setIdsList([])},n._GetCompetitionRankRequest.prototype.getOrder=function(){return i.Message.getFieldWithDefault(this,3,0)},n._GetCompetitionRankRequest.prototype.setOrder=function(e){return i.Message.setField(this,3,e)},n._GetCompetitionRankRequest.prototype.clearOrder=function(){return i.Message.setField(this,3,void 0)},n._GetCompetitionRankRequest.prototype.hasOrder=function(){return null!=i.Message.getField(this,3)},n._GetCompetitionRankResponse.repeatedFields_=[1],i.Message.GENERATE_TO_OBJECT&&(n._GetCompetitionRankResponse.prototype.toObject=function(e){return n._GetCompetitionRankResponse.toObject(e,this)},n._GetCompetitionRankResponse.toObject=function(e,t){var r={elementsList:i.Message.toObjectList(t.getElementsList(),n._RankedElement.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),n._GetCompetitionRankResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GetCompetitionRankResponse;return n._GetCompetitionRankResponse.deserializeBinaryFromReader(r,t)},n._GetCompetitionRankResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new n._RankedElement;t.readMessage(r,n._RankedElement.deserializeBinaryFromReader),e.addElements(r)}else t.skipField();return e},n._GetCompetitionRankResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GetCompetitionRankResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GetCompetitionRankResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getElementsList()).length>0&&t.writeRepeatedMessage(1,r,n._RankedElement.serializeBinaryToWriter)},n._GetCompetitionRankResponse.prototype.getElementsList=function(){return i.Message.getRepeatedWrapperField(this,n._RankedElement,1)},n._GetCompetitionRankResponse.prototype.setElementsList=function(e){return i.Message.setRepeatedWrapperField(this,1,e)},n._GetCompetitionRankResponse.prototype.addElements=function(e,t){return i.Message.addToRepeatedWrapperField(this,1,e,n._RankedElement,t)},n._GetCompetitionRankResponse.prototype.clearElementsList=function(){return this.setElementsList([])},n._Order={ASCENDING:0,DESCENDING:1},i.object.extend(t,n)},36604:(e,t,r)=>{"use strict";r.d(t,{H:()=>a,t:()=>c});var i=r(97033),n=r(36266),s=r(47111),o=r(99857);function a(e,t,r,{computeHandlingStack:i}={}){let c=e[t];if("function"!=typeof c)if(!(t in e&&"string"==typeof t&&t.startsWith("on")))return{stop:s.l};else c=s.l;let l=!1,u=function(){let e;if(l)return c.apply(this,arguments);let t=Array.from(arguments);(0,n.um)(r,null,[{target:this,parameters:t,onPostCall:t=>{e=t},handlingStack:i?(0,o.uC)("instrumented method"):void 0}]);let s=c.apply(this,t);return e&&(0,n.um)(e,null,[s]),s};return e[t]=u,{stop:()=>{l=!0,e[t]===u&&(e[t]=c)}}}function c(e,t,r){let n=Object.getOwnPropertyDescriptor(e,t);if(!n||!n.set||!n.configurable)return{stop:s.l};let o=s.l,a=(e,t)=>{(0,i.wg)(()=>{a!==o&&r(e,t)},0)},c=function(e){n.set.call(this,e),a(this,e)};
1return Object.defineProperty(e,t,{set:c}),{stop:()=>{var r;(null==(r=Object.getOwnPropertyDescriptor(e,t))?void 0:r.set)===c&&Object.defineProperty(e,t,n),a=o}}}},37276:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},37730:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(e){super(),this.type=n.CacheListConcatenateBackResponse.Success,this._listLength=e}listLength(){return this._listLength}toString(){return`${super.toString()}: listLength: ${this._listLength}`}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheListConcatenateBackResponse.Error}}t.Error=o},38020:(e,t,r)=>{"use strict";let i;r.d(t,{$H:()=>c,$S:()=>f,FR:()=>l,Gw:()=>R,M8:()=>m,MA:()=>a,OY:()=>s,Oc:()=>y,TP:()=>d,Zj:()=>p,gs:()=>b,iW:()=>o,jR:()=>u,nx:()=>g,pu:()=>S,vk:()=>_,x3:()=>h});var n=r(76300);let s=1e3,o=6e4,a=36e5,c=31536e6;function l(e){var t,r;let i;return{relative:e,timeStamp:(t=e,(i=h()-performance.now())>v()?Math.round(function(e,t){return e+t}(i,t)):(r=t,Math.round(v()+r)))}}function u(e){return{relative:b(e),timeStamp:e}}function d(){var e;return Math.round(h()-(e=v(),e+performance.now()))}function p(e){return(0,n.Et)(e)?(0,n.LI)(1e6*e,0):e}function h(){return new Date().getTime()}function g(){return h()}function f(){return performance.now()}function m(){return{relative:f(),timeStamp:g()}}function y(){return{relative:0,timeStamp:v()}}function _(e,t){return t-e}function R(e,t){return e+t}function b(e){return e-v()}function S(e){return e<c}function v(){var e,t;return void 0===i&&(i=null!=(t=null==(e=performance.timing)?void 0:e.navigationStart)?t:performance.timeOrigin),i}},38836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=void 0,t.range=function(e){return[...Array(e).keys()]}},39423:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.NotStored=t.Stored=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetIfAbsentOrEqualResponse.Stored}}t.Stored=s;class o extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetIfAbsentOrEqualResponse.NotStored}}t.NotStored=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSetIfAbsentOrEqualResponse.Error}}t.Error=a},39551:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(e){super(),this.type=n.LeaderboardFetchResponse.Success,this._elements=e}values(){return this._elements.map(e=>({id:e.id,score:e.score,rank:e.rank}))}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.LeaderboardFetchResponse.Error}}t.Error=o},40033:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LeaderboardUpsert=t.LeaderboardRemoveElements=t.LeaderboardLength=t.LeaderboardFetch=t.LeaderboardDelete=void 0,t.LeaderboardDelete=r(67294),t.LeaderboardFetch=r(39551),t.LeaderboardLength=r(95505),t.LeaderboardRemoveElements=r(33285),t.LeaderboardUpsert=r(21566)},40386:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(61748),t),n(r(52125),t)},40585:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(e){super(),this.type=n.CacheSortedSetLengthResponse.Hit,this._length=e}length(){return this._length}toString(){return`${super.toString()}: length ${this._length}`}}t.Hit=s;class o extends i.BaseResponseMiss{constructor(){super(),this.type=n.CacheSortedSetLengthResponse.Miss}length(){}}t.Miss=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSortedSetLengthResponse.Error}length(){}}t.Error=a},40720:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.CacheDictionaryRemoveFieldResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheDictionaryRemoveFieldResponse.Error}}t.Error=o},41310:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.permissionsFromScope=t.InternalWebGrpcAuthClient=void 0;let i=r(72125),n=r(71276),s=r(83145);var o=n._GenerateApiTokenRequest.Never,a=n._GenerateApiTokenRequest.Expires;let c=r(84055),l=r(52725),u=r(89966),d=r(99851),p=r(12477),h=r(4368),g=r(21595),f=r(90391);class m{constructor(e){var t;this.creds=e.credentialProvider,this.cacheServiceErrorMapper=new s.CacheServiceErrorMapper(null!=(t=e.throwOnErrors)&&t),this.clientMetadataProvider=new d.ClientMetadataProvider({clientType:"auth"}),this.authClient=new i.auth.AuthClient((0,u.getWebControlEndpoint)(this.creds),null,{}),this.tokenClient=new i.token.TokenClient((0,u.getWebTokenEndpoint)(this.creds),null,{})}async generateApiKey(e,t){let r,i=new n._GenerateApiTokenRequest;i.setAuthToken(this.creds.getAuthToken());try{r=y(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new c.GenerateApiKey.Error(e))}if(i.setPermissions(r),t.doesExpire()){try{(0,l.validateValidForSeconds)(t.seconds())}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new c.GenerateApiKey.Error(e))}let e=new a;e.setValidForSeconds(t.seconds()),i.setExpires(e)}else i.setNever(new o);return await new Promise((e,t)=>{this.authClient.generateApiToken(i,this.clientMetadataProvider.createClientMetadata(),(r,i)=>{r||!i?this.cacheServiceErrorMapper.resolveOrRejectError({err:r,errorResponseFactoryFn:e=>new c.GenerateApiKey.Error(e),resolveFn:e,rejectFn:t}):e(new c.GenerateApiKey.Success(i.getApiKey(),i.getRefreshToken(),i.getEndpoint(),c.ExpiresAt.fromEpoch(i.getValidUntil())))})})}generateAuthToken(e,t){return this.generateApiKey(e,t)}async refreshApiKey(e){let t=new n._RefreshApiTokenRequest;return t.setApiKey(this.creds.getAuthToken()),t.setRefreshToken(e),await new Promise((e,r)=>{this.authClient.refreshApiToken(t,this.clientMetadataProvider.createClientMetadata(),(t,i)=>{t||!i?this.cacheServiceErrorMapper.resolveOrRejectError({err:t,errorResponseFactoryFn:e=>new c.RefreshApiKey.Error(e),resolveFn:e,rejectFn:r}):e(new c.RefreshApiKey.Success(i.getApiKey(),i.getRefreshToken(),i.getEndpoint(),c.ExpiresAt.fromEpoch(i.getValidUntil())))})})}refreshAuthToken(e){return this.refreshApiKey(e)}async generateDisposableToken(e,t,r){let i,n=new g._GenerateDisposableTokenRequest;n.setAuthToken(this.creds.getAuthToken());try{i=y(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new c.GenerateDisposableToken.Error(e))}n.setPermissions(i);let s=null==r?void 0:r.tokenId;if(void 0!==s){try{(0,l.validateDisposableTokenTokenID)(s)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new c.GenerateDisposableToken.Error(e))}n.setTokenId(s)}try{(0,l.validateDisposableTokenExpiry)(t)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new c.GenerateDisposableToken.Error(e))}let o=new g._GenerateDisposableTokenRequest.Expires;return o.setValidForSeconds(t.seconds()),n.setExpires(o),await new Promise((e,t)=>{this.tokenClient.generateDisposableToken(n,this.clientMetadataProvider.createClientMetadata(),(r,i)=>{r||!i?this.cacheServiceErrorMapper.resolveOrRejectError({err:r,errorResponseFactoryFn:e=>new c.GenerateDisposableToken.Error(e),resolveFn:e,rejectFn:t}):e(new c.GenerateDisposableToken.Success(i.getApiKey(),i.getEndpoint(),c.ExpiresAt.fromEpoch(i.getValidUntil())))})})}}function y(e){let t=new f.Permissions;
1if(e instanceof l.InternalSuperUserPermissions)t.setSuperUser(f.SuperUserPermissions.SUPERUSER);else if(!(e instanceof p.PredefinedScope)&&(0,h.isDisposableTokenPermissionsObject)(e)){let r=(0,h.asDisposableTokenPermissionsObject)(e),i=new f.ExplicitPermissions;i.setPermissionsList(r.permissions.map(e=>(function(e){let t=new f.PermissionsType;if((0,h.isDisposableTokenCachePermission)(e)){var r;let i;t.setCachePermissions((r=(0,h.asDisposableTokenCachePermission)(e),i=_(r,i=new f.PermissionsType.CachePermissions),i=R(r,i),i=function(e,t){let r=new f.PermissionsType.CacheItemSelector;if(e.item===c.AllCacheItems)t.setAllItems(new f.PermissionsType.All);else if("string"==typeof e.item)r.setKey((0,u.convertToB64String)(e.item)),t.setItemSelector(r);else if((0,c.isCacheItemKey)(e.item))(0,l.validateCacheKeyOrPrefix)(e.item.key),r.setKey((0,u.convertToB64String)(e.item.key)),t.setItemSelector(r);else if((0,c.isCacheItemKeyPrefix)(e.item))(0,l.validateCacheKeyOrPrefix)(e.item.keyPrefix),r.setKeyPrefix((0,u.convertToB64String)(e.item.keyPrefix)),t.setItemSelector(r);else throw Error(`Unrecognized cache item specification in cache permission: ${JSON.stringify(e)}`);return t}(r,i)))}else if((0,p.isFunctionPermission)(e))t.setFunctionPermissions(b((0,p.asFunctionPermission)(e)));else throw Error(`Unrecognized token permission: ${JSON.stringify(e)}`);return t})(e))),t.setExplicit(i)}else if((0,p.isPermissionsObject)(e)){let r=(0,p.asPermissionsObject)(e),i=new f.ExplicitPermissions;i.setPermissionsList(r.permissions.map(e=>(function(e){let t=new f.PermissionsType;if((0,p.isTopicPermission)(e))return t.setTopicPermissions(function(e){let t=new f.PermissionsType.TopicPermissions;switch(e.role){case c.TopicRole.PublishSubscribe:t.setRole(f.TopicRole.TOPICREADWRITE);break;case c.TopicRole.SubscribeOnly:t.setRole(f.TopicRole.TOPICREADONLY);break;case c.TopicRole.PublishOnly:t.setRole(f.TopicRole.TOPICWRITEONLY);break;default:throw Error(`Unrecognized topic role: ${JSON.stringify(e)}`)}let r=new f.PermissionsType.CacheSelector;if(e.cache===c.AllCaches)t.setAllCaches(new f.PermissionsType.All);else if("string"==typeof e.cache)r.setCacheName(e.cache),t.setCacheSelector(r);else if((0,c.isCacheName)(e.cache))r.setCacheName(e.cache.name),t.setCacheSelector(r);else throw Error(`Unrecognized cache specification in topic permission: ${JSON.stringify(e)}`);let i=new f.PermissionsType.TopicSelector;if(e.topic===c.AllTopics)t.setAllTopics(new f.PermissionsType.All);else if("string"==typeof e.topic)i.setTopicName(e.topic),t.setTopicSelector(i);else if((0,c.isTopicName)(e.topic))i.setTopicName(e.topic.name),t.setTopicSelector(i);else throw Error(`Unrecognized topic specification in topic permission: ${JSON.stringify(e)}`);return t}((0,p.asTopicPermission)(e))),t;if((0,p.isCachePermission)(e)){var r;let i;return t.setCachePermissions((r=(0,p.asCachePermission)(e),i=_(r,i=new f.PermissionsType.CachePermissions),i=R(r,i))),t}if((0,p.isFunctionPermission)(e))return t.setFunctionPermissions(b((0,p.asFunctionPermission)(e))),t;throw Error(`Unrecognized token permission: ${JSON.stringify(e)}`)})(e))),t.setExplicit(i)}else throw Error(`Unrecognized token scope: ${JSON.stringify(e)}`);return t}function _(e,t){switch(e.role){case c.CacheRole.ReadWrite:t.setRole(f.CacheRole.CACHEREADWRITE);break;case c.CacheRole.ReadOnly:t.setRole(f.CacheRole.CACHEREADONLY);break;case c.CacheRole.WriteOnly:t.setRole(f.CacheRole.CACHEWRITEONLY);break;default:throw Error(`Unrecognized cache role: ${JSON.stringify(e)}`)}return t}function R(e,t){let r=new f.PermissionsType.CacheSelector;if(e.cache===c.AllCaches)t.setAllCaches(new f.PermissionsType.All);else if("string"==typeof e.cache)r.setCacheName(e.cache),t.setCacheSelector(r);else if((0,c.isCacheName)(e.cache))r.setCacheName(e.cache.name),t.setCacheSelector(r);else throw Error(`Unrecognized cache specification in cache permission: ${JSON.stringify(e)}`);return t}function b(e){let t=new f.PermissionsType.FunctionPermissions;return t=function(e,t){switch(e.role){case p.FunctionRole.FunctionPermitNone:t.setRole(f.FunctionRole.FUNCTIONPERMITNONE);break;case p.FunctionRole.FunctionInvoke:t.setRole(f.FunctionRole.FUNCTIONINVOKE);break;default:throw Error(`Unrecognized function role: ${JSON.stringify(e)}`)}return t}(e,t),t=function(e,t){let r=new f.PermissionsType.CacheSelector;
1if(e.cache===c.AllCaches)t.setAllCaches(new f.PermissionsType.All);else if("string"==typeof e.cache)r.setCacheName(e.cache),t.setCacheSelector(r);else if((0,c.isCacheName)(e.cache))r.setCacheName(e.cache.name),t.setCacheSelector(r);else throw Error(`Unrecognized cache specification in function permission: ${JSON.stringify(e)}`);return t}(e,t),t=function(e,t){let r=new f.PermissionsType.FunctionSelector;if(e.func===p.AllFunctions)t.setAllFunctions(new f.PermissionsType.All);else if((0,p.isFunctionNamePrefix)(e.func))r.setFunctionNamePrefix(e.func.namePrefix),t.setFunctionSelector(r);else if("string"==typeof e.func)r.setFunctionName(e.func),t.setFunctionSelector(r);else if((0,p.isFunction)(e.func))r.setFunctionName(e.func.name),t.setFunctionSelector(r);else throw Error(`Unrecognized function specification in function permission: ${JSON.stringify(e)}`);return t}(e,t)}t.InternalWebGrpcAuthClient=m,t.permissionsFromScope=y},42175:()=>{},42378:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.CacheSetBatch=t.CacheSetIfAbsentOrHashNotEqual=t.CacheSetIfAbsentOrHashEqual=t.CacheSetIfPresentAndHashNotEqual=t.CacheSetIfPresentAndHashEqual=t.CacheSetIfAbsentOrEqual=t.CacheSetIfPresentAndNotEqual=t.CacheSetIfNotEqual=t.CacheSetIfEqual=t.CacheSetIfPresent=t.CacheSetIfAbsent=t.CacheSetIfNotExists=t.CacheSetWithHash=t.CacheSet=t.CacheListRetain=t.CacheListRemoveValue=t.CacheListPushFront=t.CacheListPushBack=t.CacheListPopFront=t.CacheListPopBack=t.CacheListLength=t.CacheListFetch=t.CacheListConcatenateFront=t.CacheListConcatenateBack=t.CacheGetWithHash=t.CacheGet=t.AllFunctions=t.AllTopics=t.AllCaches=t.SortedSetAggregate=t.DisposableTokenScopes=t.TokenScopes=t.PermissionScopes=t.FunctionRole=t.TopicRole=t.CacheRole=t.AllDataReadWrite=t.EnvMomentoTokenProvider=t.StringMomentoTokenProvider=t.CredentialProvider=t.CacheInfo=t.AuthClient=t.CacheClient=t.Configurations=t.SortedSetOrder=t.ItemType=t.CollectionTtl=t.DefaultMomentoLoggerLevel=t.DefaultMomentoLogger=t.DefaultMomentoLoggerFactory=void 0,t.TopicSubscribe=t.TopicPublish=t.TopicDiscontinuity=t.TopicItem=t.TopicClient=t.TopicClientConfiguration=t.TopicConfigurations=t.CacheDecreaseTtl=t.CacheIncreaseTtl=t.CacheUpdateTtl=t.CacheKeysExist=t.CacheKeyExists=t.CacheItemGetTtl=t.CacheItemGetType=t.CacheSortedSetUnionStore=t.CacheSortedSetLengthByScore=t.CacheSortedSetLength=t.CacheSortedSetRemoveElements=t.CacheSortedSetRemoveElement=t.CacheSortedSetIncrementScore=t.CacheSortedSetGetScores=t.CacheSortedSetGetScore=t.CacheSortedSetGetRank=t.CacheSortedSetFetch=t.CacheSortedSetPutElements=t.CacheSortedSetPutElement=t.CacheSetSample=t.CacheSetRemoveElement=t.CacheSetRemoveElements=t.CacheSetAddElement=t.CacheSetAddElements=t.CacheDictionaryLength=t.CacheDictionaryIncrement=t.CacheDictionaryRemoveFields=t.CacheDictionaryRemoveField=t.CacheDictionaryGetFields=t.CacheDictionaryGetField=t.CacheDictionarySetFields=t.CacheDictionarySetField=t.CacheDictionaryFetch=t.CacheSetContainsElements=t.CacheSetContainsElement=t.CacheSetFetch=t.CacheIncrement=t.ListCaches=t.DeleteCache=t.CreateCache=t.CacheFlush=t.CacheDelete=t.CacheGetBatch=void 0,t.ReadConcern=t.WebhookDestinationType=t.RotateWebhookSecret=t.GetWebhookSecret=t.PutWebhook=t.ListWebhooks=t.DeleteWebhook=t.PostUrlWebhookDestination=t.NoopMomentoLoggerFactory=t.NoopMomentoLogger=t.UnknownError=t.StoreItemNotFoundError=t.StoreNotFoundError=t.CacheNotFoundError=t.PermissionError=t.BadRequestError=t.TimeoutError=t.ServerUnavailableError=t.UnknownServiceError=t.InvalidArgumentError=t.InternalServerError=t.LimitExceededError=t.FailedPreconditionError=t.CancelledError=t.AuthenticationError=t.StoreAlreadyExistsError=t.CacheAlreadyExistsError=t.SdkError=t.MomentoErrorCode=t.ExpiresIn=t.ExpiresAt=t.GenerateDisposableToken=t.RefreshAuthToken=t.RefreshApiKey=t.GenerateAuthToken=t.GenerateApiKey=t.LeaderboardOrder=t.PreviewLeaderboardCl
1ient=t.LeaderboardClientConfiguration=t.LeaderboardConfigurations=void 0;let s=r(24832);Object.defineProperty(t,"CacheClient",{enumerable:!0,get:function(){return s.CacheClient}});let o=r(59788);Object.defineProperty(t,"AuthClient",{enumerable:!0,get:function(){return o.AuthClient}});let a=r(71087);Object.defineProperty(t,"TopicClient",{enumerable:!0,get:function(){return a.TopicClient}});let c=r(53724);Object.defineProperty(t,"PreviewLeaderboardClient",{enumerable:!0,get:function(){return c.PreviewLeaderboardClient}}),t.Configurations=r(32702),t.TopicConfigurations=r(57628),t.LeaderboardConfigurations=r(82308),t.CacheGet=r(2374),t.CacheListConcatenateBack=r(37730),t.CacheListConcatenateFront=r(32820),t.CacheListFetch=r(81383),t.CacheListLength=r(45513),t.CacheListPopBack=r(16848),t.CacheListPopFront=r(19434),t.CacheListPushBack=r(61383),t.CacheListPushFront=r(13067),t.CacheListRemoveValue=r(58877),t.CacheListRetain=r(47172),t.CacheSet=r(79450),t.CacheDelete=r(99557),t.CacheFlush=r(14596),t.CreateCache=r(86448),t.DeleteCache=r(64051),t.ListCaches=r(29417),t.CacheSetFetch=r(58999),t.CacheDictionaryFetch=r(9291),t.CacheDictionarySetField=r(57218),t.CacheDictionarySetFields=r(65359),t.CacheDictionaryGetField=r(3590),t.CacheDictionaryGetFields=r(24587),t.CacheDictionaryRemoveField=r(40720),t.CacheDictionaryRemoveFields=r(69421),t.CacheDictionaryIncrement=r(31938),t.CacheDictionaryLength=r(70805),t.CacheSetAddElements=r(71318),t.CacheSetAddElement=r(85697),t.CacheSetContainsElement=r(45597),t.CacheSetContainsElements=r(81530),t.CacheSetRemoveElements=r(78893),t.CacheSetRemoveElement=r(52112),t.CacheSetSample=r(67323),t.CacheIncrement=r(22187),t.CacheSetIfNotExists=r(52205),t.CacheSetIfAbsent=r(6952),t.CacheSetIfPresent=r(66680),t.CacheSetIfEqual=r(95519),t.CacheSetIfNotEqual=r(63223),t.CacheSetIfPresentAndNotEqual=r(48981),t.CacheSetIfAbsentOrEqual=r(39423),t.CacheSortedSetPutElement=r(48776),t.CacheSortedSetPutElements=r(30880),t.CacheSortedSetFetch=r(43527),t.CacheSortedSetGetRank=r(5008),t.CacheSortedSetGetScore=r(53820),t.CacheSortedSetGetScores=r(46081),t.CacheSortedSetIncrementScore=r(46233),t.CacheSortedSetRemoveElement=r(14304),t.CacheSortedSetRemoveElements=r(7197),t.CacheSortedSetLength=r(40585),t.CacheSortedSetLengthByScore=r(8446),t.CacheSortedSetUnionStore=r(31752),t.CacheItemGetType=r(21587),t.CacheItemGetTtl=r(13861),t.CacheKeyExists=r(44364),t.CacheKeysExist=r(51088),t.CacheUpdateTtl=r(12376),t.CacheIncreaseTtl=r(74989),t.CacheDecreaseTtl=r(32949),t.CacheGetBatch=r(32087),t.CacheSetBatch=r(22627),t.CacheGetWithHash=r(71220),t.CacheSetWithHash=r(92344),t.CacheSetIfPresentAndHashEqual=r(54394),t.CacheSetIfPresentAndHashNotEqual=r(59398),t.CacheSetIfAbsentOrHashEqual=r(88708),t.CacheSetIfAbsentOrHashNotEqual=r(44512),t.TopicPublish=r(77112),t.TopicSubscribe=r(33251);let l=r(86414);Object.defineProperty(t,"TopicItem",{enumerable:!0,get:function(){return l.TopicItem}});let u=r(31494);Object.defineProperty(t,"TopicDiscontinuity",{enumerable:!0,get:function(){return u.TopicDiscontinuity}});let d=r(96691);t.GenerateApiKey=d,t.GenerateAuthToken=d;let p=r(96725);t.RefreshApiKey=p,t.RefreshAuthToken=p,t.GenerateDisposableToken=r(61337);let h=r(84055);Object.defineProperty(t,"CacheInfo",{enumerable:!0,get:function(){return h.CacheInfo}}),Object.defineProperty(t,"CollectionTtl",{enumerable:!0,get:function(){return h.CollectionTtl}}),Object.defineProperty(t,"ItemType",{enumerable:!0,get:function(){return h.ItemType}}),Object.defineProperty(t,"SortedSetOrder",{enumerable:!0,get:function(){return h.SortedSetOrder}}),Object.defineProperty(t,"CredentialProvider",{enumerable:!0,get:function(){return h.CredentialProvider}}),Object.defineProperty(t,"StringMomentoTokenProvider",{enumerable:!0,get:function(){return h.StringMomentoTokenProvider}}),Object.defineProperty(t,"EnvMomentoTokenProvider",{enumerable:!0,get:function(){return h.EnvMomentoTokenProvider}}),Object.defineProperty(t,"MomentoErrorCode",{enumerable:!0,get:function(){return h.MomentoErrorCode}}),Object.defineProperty(t,"SdkError",{enumerable:!0,get:function(){return h.SdkError}}),Object.defineProperty(t,"CacheAlreadyExistsError",{enumerable:!0,get:function(){return h.CacheAlreadyExistsError}}),Object.defineProperty(t,"StoreAlreadyExistsError",{enumerable:!0,get:function(){return h.StoreAlreadyExistsError}}),Object.defineProperty(t,"AuthenticationError",{enumerable:!0,get:function(){return h.AuthenticationError}}),Object.defineProperty(t,"CancelledError",{enumerable:!0,get:function(){return h.CancelledError}}),Object.defineProperty(t,"FailedPreconditionError",{enumerable:!0,get:function(){return h.FailedPreconditionError}}),Object.defineProperty(t,"LimitExceededError",{enumerable:!0,get:function(){return h.LimitExceededError}}),Object.defineProperty(t,"InternalServerError",{enumerable:!0,get:function(){return h.InternalServerError}}),Object.defineProperty(t,"InvalidArgumentError",{enumerable:!0,get:function(){return h.InvalidArgumentError}}),Object.defineProperty(t,"UnknownServiceError",{enumerable:!0,get:function(){return h.UnknownServiceError}}),Object.defineProperty(t,"ServerUnavailableError",{enumerable:!0,get:function(){return h.ServerUnavailableError}}),Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return h.TimeoutError}}),Object.defineProperty(t,"BadRequestError",{enumerable:!0,get:function(){return h.BadRequestError}}),Object.defineProperty(t,"PermissionError",{enumerable:!0,get:function(){return h.PermissionError}}),Object.defineProperty(t,"CacheNotFoundError",{enumerable:!0,get:function(){return h.CacheNotFoundError}}),Object.defineProperty(t,"StoreNotFoundError",{enumerable:!0,get:function(){return h.StoreNotFoundError}}),Object.defineProperty(t,"StoreItemNotFoundError",{enumerable:!0,get:function(){return h.StoreItemNotFoundError}}),Object.defineProperty(t,"UnknownError",{enumerable:!0,get:function(){return h.UnknownError}}),Object.defineProperty(t,"NoopMomentoLogger",{enumerable:!0,get:function(){return h.NoopMomentoLogger}}),Object.defineProperty(t,"NoopMomentoLoggerFactory",{enumerable:!0,get:function(){return h.NoopMomentoLoggerFactory}}),Object.defineProperty(t,"AllDataReadWrite",{enumerable:!0,get:function(){return h.AllDataReadWrite}}),Object.defineProperty(t,"PermissionScopes",{enumerable:!0,get:function(){return h.PermissionScopes}}),Object.defineProperty(t,"TokenScopes",{enumerable:!0,get:function(){return h.PermissionScopes}}),Object.defineProperty(t,"DisposableTokenScopes",{enumerable:!0,get:function(){return h.DisposableTokenScopes}}),Object.defineProperty(t,"ExpiresIn",{enumerable:!0,get:function(){return h.ExpiresIn}}),Object.defineProperty(t,"ExpiresAt",{enumerable:!0,get:function(){return h.ExpiresAt}}),Object.defineProperty(t,"AllCaches",{enumerable:!0,get:function(){return h.AllCaches}}),Object.defineProperty(t,"AllTopics",{enumerable:!0,get:function(){return h.AllTopics}}),Object.defineProperty(t,"AllFunctions",{enumerable:!0,get:function(){return h.AllFunctions}}),Object.defineProperty(t,"CacheRole",{enumerable:!0,get:function(){return h.CacheRole}}),Object.defineProperty(t,"TopicRole",{enumerable:!0,get:function(){return h.TopicRole}}),Object.defineProperty(t,"FunctionRole",{enumerable:!0,get:function(){return h.FunctionRole}}),Object.defineProperty(t,"LeaderboardOrder",{enumerable:!0,get:function(){return h.LeaderboardOrder}}),Object.defineProperty(t,"PostUrlWebhookDestination",{enumerable:!0,get:function(){return h.PostUrlWebhookDestination}}),Object.defineProperty(t,"DeleteWebhook",{enumerable:!0,get:function(){return h.DeleteWebhook}}),Object.defineProperty(t,"ListWebhooks",{enumerable:!0,get:function(){return h.ListWebhooks}}),Object.defineProperty(t,"PutWebhook",{enumerable:!0,get:function(){return h.PutWebhook}}),Object.defineProperty(t,"GetWebhookSecret",{enumerable:!0,get:function(){return h.GetWebhookSecret}}),Object.defineProperty(t,"RotateWebhookSecret",{enumerable:!0,get:function(){return h.RotateWebhookSecret}}),Object.defineProperty(t,"WebhookDestinationType",{enumerable:!0,get:function(){return h.WebhookDestinationType}}),Object.defineProperty(t,"ReadConcern",{enumerable:!0,get:function(){return h.ReadConcern}}),Object.defineProperty(t,"SortedSetAggregate",{enumerable:!0,get:function(){return h.SortedSetAggregate}}
1);let g=r(76911);Object.defineProperty(t,"TopicClientConfiguration",{enumerable:!0,get:function(){return g.TopicClientConfiguration}});let f=r(50631);Object.defineProperty(t,"LeaderboardClientConfiguration",{enumerable:!0,get:function(){return f.LeaderboardClientConfiguration}}),n(r(94452),t);var m=r(57435);Object.defineProperty(t,"DefaultMomentoLoggerFactory",{enumerable:!0,get:function(){return m.DefaultMomentoLoggerFactory}}),Object.defineProperty(t,"DefaultMomentoLogger",{enumerable:!0,get:function(){return m.DefaultMomentoLogger}}),Object.defineProperty(t,"DefaultMomentoLoggerLevel",{enumerable:!0,get:function(){return m.DefaultMomentoLoggerLevel}})},43092:function(e,t,r){function i(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var n,s,o,a="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,r){e!=Array.prototype&&e!=Object.prototype&&(e[t]=r.value)},c=function(e){e=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof r.g&&r.g,e];for(var t=0;t<e.length;++t){var i=e[t];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this);function l(){l=function(){},c.Symbol||(c.Symbol=d)}function u(e,t){this.a=e,a(this,"description",{configurable:!0,writable:!0,value:t})}u.prototype.toString=function(){return this.a};var d=(g=0,function e(t){if(this instanceof e)throw TypeError("Symbol is not a constructor");return new u("jscomp_symbol_"+(t||"")+"_"+g++,t)});function p(){l();var e=c.Symbol.iterator;e||(e=c.Symbol.iterator=c.Symbol("Symbol.iterator")),"function"!=typeof Array.prototype[e]&&a(Array.prototype,e,{configurable:!0,writable:!0,value:function(){var e;return e=i(this),p(),(e={next:e})[c.Symbol.iterator]=function(){return this},e}}),p=function(){}}function h(e){var t="u">typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:i(e)}}var g,f,m,y="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t};if("function"==typeof Object.setPrototypeOf)m=Object.setPrototypeOf;else{e:{var _={};try{_.__proto__={V:!0},Z=_.V;break e}catch(e){}Z=!1}m=Z?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw TypeError(e+" is not extensible");return e}:null}var R=m;function b(e,t){if(e.prototype=y(t.prototype),e.prototype.constructor=e,R)R(e,t);else for(var r in t)if("prototype"!=r)if(Object.defineProperties){var i=Object.getOwnPropertyDescriptor(t,r);i&&Object.defineProperty(e,r,i)}else e[r]=t[r];e.O=t.prototype}function S(e,t){if(t){var r=c;e=e.split(".");for(var i=0;i<e.length-1;i++){var n=e[i];n in r||(r[n]={}),r=r[n]}(t=t(i=r[e=e[e.length-1]]))!=i&&null!=t&&a(r,e,{configurable:!0,writable:!0,value:t})}}S("Array.prototype.keys",function(e){return e||function(){var e,t,r,i;return e=this,t=function(e){return e},p(),e instanceof String&&(e+=""),r=0,(i={next:function(){if(r<e.length){var n=r++;return{value:t(n,e[n]),done:!1}}return i.next=function(){return{done:!0,value:void 0}},i.next()}})[Symbol.iterator]=function(){return i},i}}),S("Array.prototype.find",function(e){return e||function(e,t){e:{var r=this;r instanceof String&&(r=String(r));for(var i=r.length,n=0;n<i;n++){var s=r[n];if(e.call(t,s,n,r)){e=s;break e}}e=void 0}return e}}),S("Object.is",function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}}),S("Array.prototype.includes",function(e){return e||function(e,t){var r=this;r instanceof String&&(r=String(r));var i=r.length;for(0>(t=t||0)&&(t=Math.max(t+i,0));t<i;t++){var n=r[t];if(n===e||Object.is(n,e))return!0}return!1}}),S("Promise",function(e){function t(e){this.b=0,this.c=void 0,this.a=[];var t=this.f();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function r(){this.a=null}function i(e){return e instanceof t?e:new t(function(t){t(e)})}if(e)return e;r.prototype.b=function(e){if(null==this.a){this.a=[];var t=this;this.c(function(){t.g()})}this.a.push(e)};var n=c.setTimeout;r.prototype.c=function(e){n(e,0)},r.prototype.g=function(){for(;this.a&&this.a.length;){var e=this.a;this.a=[];for(var t=0;t<e.length;++t){var r=e[t];e[t]=null;try{r()}catch(e){this.f(e)}}}this.a=null},r.prototype.f=function(e){this.c(function(){throw e})},t.prototype.f=function(){function e(e){return function(i){r||(r=!0,e.call(t,i))}}var t=this,r=!1;return{resolve:e(this.s),reject:e(this.g)}},t.prototype.s=function(e){if(e===this)this.g(TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.v(e);else{switch(typeof e){case"object":var r=null!=e;break;case"function":r=!0;break;default:r=!1}r?this.m(e):this.h(e)}},t.prototype.m=function(e){var t=void 0;try{t=e.then}catch(e){this.g(e);return}"function"==typeof t?this.w(t,e):this.h(e)},t.prototype.g=function(e){this.i(2,e)},t.prototype.h=function(e){this.i(1,e)},t.prototype.i=function(e,t){if(0!=this.b)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.b);this.b=e,this.c=t,this.l()},t.prototype.l=function(){if(null!=this.a){for(var e=0;e<this.a.length;++e)s.b(this.a[e]);this.a=null}};var s=new r;return t.prototype.v=function(e){var t=this.f();e.F(t.resolve,t.reject)},t.prototype.w=function(e,t){var r=this.f();try{e.call(t,r.resolve,r.reject)}catch(e){r.reject(e)}},t.prototype.then=function(e,r){function i(e,t){return"function"==typeof e?function(t){try{n(e(t))}catch(e){s(e)}}:t}var n,s,o=new t(function(e,t){n=e,s=t});return this.F(i(e,n),i(r,s)),o},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.F=function(e,t){function r(){switch(i.b){case 1:e(i.c);break;case 2:t(i.c);break;default:throw Error("Unexpected state: "+i.b)}}var i=this;null==this.a?s.b(r):this.a.push(r)},t.resolve=i,t.reject=function(e){return new t(function(t,r){r(e)})},t.race=function(e){return new t(function(t,r){for(var n=h(e),s=n.next();!s.done;s=n.next())i(s.value).F(t,r)})},t.all=function(e){var r=h(e),n=r.next();return n.done?i([]):new t(function(e,t){var s=[],o=0;do s.push(void 0),o++,i(n.value).F(function(t){return function(r){s[t]=r,0==--o&&e(s)}}(s.length-1),t),n=r.next();while(!n.done)})},t});var v=v||{},E=this||self;function C(e,t){e=e.split("."),t=t||E;for(var r=0;r<e.length;
1r++)if(null==(t=t[e[r]]))return null;return t}function T(){}function M(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var w="closure_uid_"+(1e9*Math.random()>>>0),k=0;function P(e,t,r){return e.call.apply(e.bind,arguments)}function O(e,t,r){if(!e)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,i),e.apply(t,r)}}return function(){return e.apply(t,arguments)}}function B(e,t,r){return(B=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?P:O).apply(null,arguments)}function F(e,t){function r(){}r.prototype=t.prototype,e.O=t.prototype,e.prototype=new r,e.prototype.constructor=e}function A(e){this.a=e||{}}function D(e,t,r,i){this.f=e,this.c=t,this.b=r,this.a=i}function I(e,t,r,i){r=void 0===r?{}:r,this.c=e,this.a=r,this.b=t,this.f=void 0===i?null:i}function x(e,t,r,i,n,s){this.name=e,this.a=n,this.b=s}function L(e,t,r){r=void 0===r?{}:r;var i=void 0===i?new A:i;return new D(t,e,r,i)}function N(e,t,r){r=void 0===r?{}:r,t=Error.call(this,t),this.message=t.message,"stack"in t&&(this.stack=t.stack),this.code=e,this.metadata=r}function W(e){this.a=e}function G(e){if(Error.captureStackTrace)Error.captureStackTrace(this,G);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function q(e,t){e=e.split("%s");for(var r="",i=e.length-1,n=0;n<i;n++)r+=e[n]+(n<t.length?t[n]:"%s");G.call(this,r+e[i])}function j(){this.l=null,this.i=[],this.m=0,this.b=z,this.f=this.a=this.h=0,this.c=null,this.g=0}A.prototype.get=function(e){return this.a[e]},A.prototype.G=function(){return Object.keys(this.a)},D.prototype.getRequestMessage=function(){return this.f},D.prototype.getMethodDescriptor=function(){return this.c},D.prototype.getMetadata=function(){return this.b},D.prototype.getCallOptions=function(){return this.a},I.prototype.getResponseMessage=function(){return this.c},I.prototype.getMetadata=function(){return this.a},I.prototype.getMethodDescriptor=function(){return this.b},I.prototype.getStatus=function(){return this.f},x.prototype.getName=function(){return this.name},x.prototype.getName=x.prototype.getName,b(N,Error),N.prototype.name="RpcError",W.prototype.on=function(e,t){return"data"==e||"error"==e?this:this.a.on(e,t)},W.prototype.removeListener=function(e,t){return this.a.removeListener(e,t)},W.prototype.cancel=function(){this.a.cancel()},F(G,Error),G.prototype.name="CustomError",F(q,G),q.prototype.name="AssertionError";var z=0;function U(e,t,r,i){throw e.b=3,e.l="The stream is broken @"+e.m+"/"+r+". Error: "+i+". With input:\n"+t,Error(e.l)}var $=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"==typeof e)return"string"!=typeof t||1!=t.length?-1:e.indexOf(t,0);for(var r=0;r<e.length;r++)if(r in e&&e[r]===t)return r;return -1},H=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function K(e,t){return -1!=e.indexOf(t)}e:{var V=E.navigator;if(V){var J=V.userAgent;if(J){Q=J;break e}}Q=""}var Y="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function X(e){return X[" "](e),e}X[" "]=T;var Z,Q,ee,et=K(Q,"Opera"),er=K(Q,"Trident")||K(Q,"MSIE"),ei=K(Q,"Edge"),en=K(Q,"Gecko")&&!(K(Q.toLowerCase(),"webkit")&&!K(Q,"Edge"))&&!(K(Q,"Trident")||K(Q,"MSIE"))&&!K(Q,"Edge"),es=K(Q.toLowerCase(),"webkit")&&!K(Q,"Edge");e:{var eo="",ea=(ec=Q,en?/rv:([^\);]+)(\)|;)/.exec(ec):ei?/Edge\/([\d\.]+)/.exec(ec):er?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(ec):es?/WebKit\/(\S+)/.exec(ec):et?/(?:Version)[ \/]?(\S+)/.exec(ec):void 0);if(ea&&(eo=ea?ea[1]:""),er){var ec,el,eu=E.document;if(null!=(el=eu?eu.documentMode:void 0)&&el>parseFloat(eo)){ee=String(el);break e}}ee=eo}var ed={};function ep(){0!=eh&&(Object.prototype.hasOwnProperty.call(this,w)&&this[w]||(this[w]=++k)),this.K=this.K}var eh=0;ep.prototype.K=!1;var eg=Object.freeze||function(e){return e};function ef(e,t){this.type=e,this.a=this.target=t,this.defaultPrevented=!1}ef.prototype.b=function(){this.defaultPrevented=!0};var em=function(){if(!E.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{E.addEventListener("test",T,t),E.removeEventListener("test",T,t)}catch(e){}return e}();function ey(e,t){if(ef.call(this,e?e.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,e){var r=this.t
1ype=e.type,i=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.a=t,t=e.relatedTarget){if(en){e:{try{X(t.nodeName);var n=!0;break e}catch(e){}n=!1}n||(t=null)}}else"mouseover"==r?t=e.fromElement:"mouseout"==r&&(t=e.toElement);this.relatedTarget=t,i?(this.clientX=void 0!==i.clientX?i.clientX:i.pageX,this.clientY=void 0!==i.clientY?i.clientY:i.pageY,this.screenX=i.screenX||0,this.screenY=i.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"==typeof e.pointerType?e.pointerType:e_[e.pointerType]||"",this.c=e,e.defaultPrevented&&ey.O.b.call(this)}}F(ey,ef);var e_=eg({2:"touch",3:"pen",4:"mouse"});ey.prototype.b=function(){ey.O.b.call(this);var e=this.c;e.preventDefault?e.preventDefault():e.returnValue=!1};var eR="closure_listenable_"+(1e6*Math.random()|0),eb=0;function eS(e,t,r,i,n){this.listener=e,this.proxy=null,this.src=t,this.type=r,this.capture=!!i,this.H=n,this.key=++eb,this.A=this.D=!1}function ev(e){e.A=!0,e.listener=null,e.proxy=null,e.src=null,e.H=null}function eE(e){this.src=e,this.a={},this.b=0}function eC(e,t){var r=t.type;if(r in e.a){var i,n=e.a[r],s=$(n,t);(i=0<=s)&&Array.prototype.splice.call(n,s,1),i&&(ev(t),0==e.a[r].length&&(delete e.a[r],e.b--))}}function eT(e,t,r,i){for(var n=0;n<e.length;++n){var s=e[n];if(!s.A&&s.listener==t&&!!r==s.capture&&s.H==i)return n}return -1}eE.prototype.add=function(e,t,r,i,n){var s=e.toString();(e=this.a[s])||(e=this.a[s]=[],this.b++);var o=eT(e,t,i,n);return -1<o?(t=e[o],r||(t.D=!1)):((t=new eS(t,this.src,s,!!i,n)).D=r,e.push(t)),t},eE.prototype.remove=function(e,t,r,i){if(!((e=e.toString())in this.a))return!1;var n=this.a[e];return -1<(t=eT(n,t,r,i))&&(ev(n[t]),Array.prototype.splice.call(n,t,1),0==n.length&&(delete this.a[e],this.b--),!0)};var eM="closure_lm_"+(1e6*Math.random()|0),ew={},ek=0;function eP(e,t,r,i,n){if(i&&i.once)!function e(t,r,i,n,s){if(Array.isArray(r))for(var o=0;o<r.length;o++)e(t,r[o],i,n,s);else i=ex(i),t&&t[eR]?t.f.add(String(r),i,!0,M(n)?!!n.capture:!!n,s):eO(t,r,i,!0,n,s)}(e,t,r,i,n);else if(Array.isArray(t))for(var s=0;s<t.length;s++)eP(e,t[s],r,i,n);else r=ex(r),e&&e[eR]?e.f.add(String(t),r,!1,M(i)?!!i.capture:!!i,n):eO(e,t,r,!1,i,n)}function eO(e,t,r,i,n,s){if(!t)throw Error("Invalid event type");var o=M(n)?!!n.capture:!!n,a=eD(e);if(a||(e[eM]=a=new eE(e)),!(r=a.add(t,r,i,o,s)).proxy){if(i=function e(t){return eA.call(e.src,e.listener,t)},r.proxy=i,i.src=e,i.listener=r,e.addEventListener)em||(n=o),void 0===n&&(n=!1),e.addEventListener(t.toString(),i,n);else if(e.attachEvent)e.attachEvent(eF(t.toString()),i);else if(e.addListener&&e.removeListener)e.addListener(i);else throw Error("addEventListener and attachEvent are unavailable.");ek++}}function eB(e){if("number"!=typeof e&&e&&!e.A){var t=e.src;if(t&&t[eR])eC(t.f,e);else{var r=e.type,i=e.proxy;t.removeEventListener?t.removeEventListener(r,i,e.capture):t.detachEvent?t.detachEvent(eF(r),i):t.addListener&&t.removeListener&&t.removeListener(i),ek--,(r=eD(t))?(eC(r,e),0==r.b&&(r.src=null,t[eM]=null)):ev(e)}}}function eF(e){return e in ew?ew[e]:ew[e]="on"+e}function eA(e,t){if(e.A)e=!0;else{t=new ey(t,this);var r=e.listener,i=e.H||e.src;e.D&&eB(e),e=r.call(i,t)}return e}function eD(e){return(e=e[eM])instanceof eE?e:null}var eI="__closure_events_fn_"+(1e9*Math.random()>>>0);function ex(e){return"function"==typeof e?e:(e[eI]||(e[eI]=function(t){return e.handleEvent(t)}),e[eI])}function eL(){ep.call(this),this.f=new eE(this),this.U=this}function eN(e,t){e=e.U;var r=t.type||t;if("string"==typeof t)t=new ef(t,e);else if(t instanceof ef)t.target=t.target||e;else{var i=t;!function(e,t){for(var r,i,n=1;n<arguments.length;n++){for(r in i=arguments[n])e[r]=i[r];for(var s=0;s<Y.length;s++)r=Y[s],Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}}(t=new ef(r,e),i)}eW(e=t.a=e,r,!0,t),eW(e,r,!1,t)}
1function eW(e,t,r,i){if(t=e.f.a[String(t)]){t=t.concat();for(var n=!0,s=0;s<t.length;++s){var o=t[s];if(o&&!o.A&&o.capture==r){var a=o.listener,c=o.H||o.src;o.D&&eC(e.f,o),n=!1!==a.call(c,i)&&n}}}}F(eL,ep),eL.prototype[eR]=!0,eL.prototype.addEventListener=function(e,t,r,i){eP(this,e,t,r,i)},eL.prototype.removeEventListener=function(e,t,r,i){!function e(t,r,i,n,s){if(Array.isArray(r))for(var o=0;o<r.length;o++)e(t,r[o],i,n,s);else(n=M(n)?!!n.capture:!!n,i=ex(i),t&&t[eR])?t.f.remove(String(r),i,n,s):t&&(t=eD(t))&&(r=t.a[r.toString()],t=-1,r&&(t=eT(r,i,n,s)),(i=-1<t?r[t]:null)&&eB(i))}(this,e,t,r,i)};var eG=E;function eq(e,t,r){if("function"==typeof e)r&&(e=B(e,r));else if(e&&"function"==typeof e.handleEvent)e=B(e.handleEvent,e);else throw Error("Invalid listener argument");return 0x7fffffff<Number(t)?-1:eG.setTimeout(e,t||0)}function ej(e,t){this.name=e,this.value=t}ej.prototype.toString=function(){return this.name};var ez=new ej("OFF",1/0),eU=new ej("SEVERE",1e3),e$=new ej("CONFIG",700),eH=new ej("FINE",500);function eK(){this.clear()}function eV(e,t,r){this.reset(e||ez,t,r,void 0,void 0)}function eJ(e,t){this.a=null,this.f=[],this.b=(void 0===t?null:t)||null,this.c=[],this.g={getName:function(){return e}}}function eY(){this.entries={};var e=new eJ("");e.a=e$,this.entries[""]=e}function eX(e,t,r){var i=e.entries[t];if(i)return void 0!==r&&(i.a=r),i;i=eX(e,t.substr(0,t.lastIndexOf(".")));var n=new eJ(t,i);return e.entries[t]=n,i.c.push(n),void 0!==r&&(n.a=r),n}function eZ(){return s||(s=new eY),s}function eQ(e,t,r){var i;(i=e)&&(i=e&&t)&&(i=(i=t.value)>=(e?function e(t){return t.a?t.a:t.b?e(t.b):(!function(e,t){throw new q("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}("Root logger has no level set."),ez)}(eX(eZ(),e.getName())):ez).value),i&&(t=t||ez,i=eX(eZ(),e.getName()),"function"==typeof r&&(r=r()),n||(n=new eK),function(e,t){for(;e;)e.f.forEach(function(e){e(t)}),e=e.b}(i,e=new eV(t,r,e=e.getName())))}function e0(e,t){e&&eQ(e,eH,t)}function e1(){}function e2(e){var t;return(t=e.a)||(t={},e5(e)&&(t[0]=!0,t[1]=!0),t=e.a=t),t}function e3(){}function e4(e){return(e=e5(e))?new ActiveXObject(e):new XMLHttpRequest}function e5(e){if(!e.b&&"u"<typeof XMLHttpRequest&&"u">typeof ActiveXObject){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],r=0;r<t.length;r++){var i=t[r];try{return new ActiveXObject(i),e.b=i}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.b}function e6(e,t){this.b=e[E.Symbol.iterator](),this.c=t,this.f=0}eK.prototype.clear=function(){},eV.prototype.reset=function(){},e1.prototype.a=null,F(e3,e1),o=new e3,l(),p(),e6.prototype[Symbol.iterator]=function(){return this},e6.prototype.next=function(){var e=this.b.next();return{value:e.done?void 0:this.c.call(void 0,e.value,this.f++),done:e.done}},l(),p(),l(),p();var e7="StopIteration"in E?E.StopIteration:{message:"StopIteration",stack:""};function e9(){}function e8(e){if(e instanceof tt||e instanceof tr||e instanceof ti)return e;if("function"==typeof e.next)return new tt(function(){return te(e)});if(l(),p(),"function"==typeof e[Symbol.iterator])return l(),p(),new tt(function(){return e[Symbol.iterator]()});if("function"==typeof e.u)return new tt(function(){return te(e.u())});throw Error("Not an iterator or iterable.")}function te(e){if(!(e instanceof e9))return e;var t=!1;return{next:function(){for(var r;!t;)try{r=e.a();break}catch(e){if(e!==e7)throw e;t=!0}return{value:r,done:t}}}}function tt(e){this.b=e}function tr(e){this.b=e}function ti(e){tt.call(this,function(){return e}),this.f=e}function tn(e,t){this.o={},this.j=[],this.B=this.size=0;var r=arguments.length;if(1<r){if(r%2)throw Error("Uneven number of arguments");for(var i=0;i<r;i+=2)this.set(arguments[i],arguments[i+1])}else e&&this.addAll(e)}function ts(e){if(e.size!=e.j.length){for(var t=0,r=0;t<e.j.length;){var i=e.j[t];to(e.o,i)&&(e.j[r++]=i),t++}e.j.length=r}if(e.size!=e.j.length){var n={};for(r=t=0;t<e.j.length;)to(n,i=e.j[t])||(e.j[r++]=i,n[i]=1),t++;e.j.length=r}}function to(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e9.prototype.next=function(){return e9.prototype.a.call(this)},e9.prototype.a=function(){throw e7},e9.prototype.u=function(){return this},l(),p(),tt.prototype.u=function(){return new tr(this.b())},tt.prototype[Symbol.iterator]=function(){return new ti(this.b())},tt.prototype.c=function(){return new ti(this.b())},l(),p(),b(tr,e9),tr.prototype.a=function(){var e=this.b.next();if(e.done)throw e7;return e.value},tr.prototype.next=function(){return tr.prototype.a.call(this)},tr.prototype[Symbol.iterator]=function(){return new ti(this.b)},tr.prototype.c=function(){return new ti(this.b)},b(ti,tt),ti.prototype.next=function(){return this.f.next()},(f=tn.prototype).G=function(){return ts(this),this.j.concat()},f.has=function(e){return to(this.o,e)},f.clear=function(){this.o={},this.B=this.size=this.j.length=0},f.remove=function(e){return this.delete(e)},f.delete=function(e){return!!to(this.o,e)&&(delete this.o[e],--this.size,this.B++,this.j.length>2*this.size&&ts(this),!0)},f.get=function(e,t){return to(this.o,e)?this.o[e]:t},f.set=function(e,t){to(this.o,e)||(this.size+=1,this.j.push(e),this.B++),this.o[e]=t},f.addAll=function(e){if(e instanceof tn)for(var t=e.G(),r=0;r<t.length;r++)this.set(t[r],e.get(t[r]));else for(t in e)this.set(t,e[t])},f.forEach=function(e,t){for(var r=this.G(),i=0;i<r.length;i++){var n=r[i],s=this.get(n);e.call(t,s,n,this)}},f.clone=function(){return new tn(this)},f.keys=function(){return e8(this.u(!0)).c()},f.values=function(){return e8(this.u(!1)).c()},f.entries=function(){var e=this;return new e6(this.keys(),function(t){return[t,e.get(t)]})},f.u=function(e){ts(this);var t=0,r=this.B,i=this,n=new e9;return n.a=function(){if(r!=i.B)throw Error("The map has changed since the iterator was created");if(t>=i.j.length)throw e7;var n=i.j[t++];return e?n:i.o[n]},n.next=n.a.bind(n),n};var ta=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function tc(e){eL.call(this),this.headers=new tn,this.C=e||null,this.c=!1,this.J=this.a=null,this.P=this.v="",this.g=0,this.l="",this.i=this.N=this.s=this.L=!1,this.h=0,this.w=null,this.m=tl,this.I=this.M=!1}F(tc,eL);var tl="";tc.prototype.b=eX(eZ(),"goog.net.XhrIo",void 0).g;var tu=/^https?$/i,td=["POST","PUT"];function tp(e,t){e.c=!1,e.a&&(e.i=!0,e.a.abort(),e.i=!1),e.l=t,e.g=5,th(e),tf(e)}function th(e){e.L||(e.L=!0,eN(e,"complete"),eN(e,"error"))}function tg(e){if(e.c&&void 0!==v){if(e.J[1]&&4==ty(e)&&2==e.getStatus())e0(e.b,tR(e,"Local request error detected and ignored"));else if(e.s&&4==ty(e))eq(e.R,0,e);else if(eN(e,"readystatechange"),4==ty(e)){e0(e.b,tR(e,"Request complete")),e.c=!1;try{var t,r,i=e.getStatus();switch(i){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var n=!0;break;default:n=!1}if(!(t=n)){if(r=0===i){var s=String(e.v).match(ta)[1]||null;if(!s&&E.self&&E.self.location){var o=E.self.location.protocol;s=o.substr(0,o.length-1)}r=!tu.test(s?s.toLowerCase():"")}t=r}if(t)eN(e,"complete"),eN(e,"success");else{e.g=6;try{var a=2<ty(e)?e.a.statusText:""}catch(t){e0(e.b,"Can not get status: "+t.message),a=""}e.l=a+" ["+e.getStatus()+"]",th(e)}}finally{tf(e)}}}}function tf(e){if(e.a){tm(e);var t=e.a,r=e.J[0]?T:null;e.a=null,e.J=null,eN(e,"ready");try{t.onreadystatechange=r}catch(t){(e=e.b)&&eQ(e,eU,"Problem encountered resetting onreadystatechange: "+t.message)}}}function tm(e){e.a&&e.I&&(e.a.ontimeout=null),e.w&&(eG.clearTimeout(e.w),e.w=null)}function ty(e){return e.a?e.a.readyState:0}function t_(e,t){if(e.a&&4==ty(e))return null===(e=e.a.getResponseHeader(t))?void 0:e}function tR(e,t){return t+" ["+e.P+" "+e.v+" "+e.getStatus()+"]"}(f=tc.prototype).T=function(){void 0!==v&&this.a&&(this.l="Timed out after "+this.h+"ms, aborting",this.g=8,e0(this.b,tR(this,this.l)),eN(this,"timeout"),this.abort(8))},f.abort=function(e){this.a&&this.c&&(e0(this.b,tR(this,"Aborting")),this.c=!1,this.i=!0,this.a.abort(),this.i=!1,this.g=e||7,eN(this,"complete"),eN(this,"abort"),tf(this))},f.R=function(){this.K||(this.N||this.s||this.i?tg(this):this.W())},f.W=function(){tg(this)},f.getStatus=function(){try{return 2<ty(this)?this.a.status:-1}catch(e){return -1}};var tb={},tS=null;function tv(){if(!tS){tS={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],r=0;5>r;r++){var i=e.concat(t[r].split(""));tb[r]=i;for(var n=0;n<i.length;n++){var s=i[n];void 0===tS[s]&&(tS[s]=n)}}}}var tE=["content-type","grpc-status","grpc-message"];function tC(e){this.a=e.Z,this.m=null,this.b=[],this.h=[],this.g=[],this.f=[],this.c=[],this.l=!1,this.i=0,this.s=new j;var t=this;eP(this.a,"readystatechange",function(){var e=t.a;if(e=e.a?e.a.getResponseHeader("Content-Type"):null){if(0==(e=e.toLowerCase()).lastIndexOf("application/grpc-web-text",0)){e=t.a;try{var r,i,n,s,o,a=e.a?e.a.responseText:""}catch(t){e0(e.b,"Can not get responseText: "+t.message),a=""}if(a=(e=a||"").length-e.length%4,0==(e=e.substr(t.i,a-t.i)).length)return;t.i=a,(n=3*(i=(r=e).length)/4)%3?n=Math.floor(n):K("=.",r[i-1])&&(n=K("=.",r[i-2])?n-2:n-1),s=new Uint8Array(n),o=0,function(e,t){function r(t){for(;i<e.length;){var r=e.charAt(i++),n=tS[r];if(null!=n)return n;if(!/^[\s\xa0]*$/.test(r))throw Error("Unknown base64 encoding at char: "+r)}return t}tv();for(var i=0;;
1){var n=r(-1),s=r(0),o=r(64),a=r(64);if(64===a&&-1===n)break;t(n<<2|s>>4),64!=o&&(t(s<<4&240|o>>2),64!=a&&t(o<<6&192|a))}}(r,function(e){s[o++]=e}),e=s.subarray(0,o)}else{if(0!=e.lastIndexOf("application/grpc",0))return void tM(t,new N(2,"Unknown Content-type received."));e=new Uint8Array(function(e){try{if(!e.a)return null;if("response"in e.a)return e.a.response;switch(e.m){case tl:case"text":return e.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.a)return e.a.mozResponseArrayBuffer}var t=e.b;return t&&eQ(t,eU,"Response type "+e.m+" is not supported on this browser"),null}catch(t){return e0(e.b,"Can not get response: "+t.message),null}}(t.a))}a=null;try{a=function(e,t){function r(){var e={};e[a.h]=a.c,a.i.push(e),a.b=z}var i,n,s,o,a=e,c=0;for(o=t instanceof Uint8Array||t instanceof Array?t:new Uint8Array(t);c<o.length;){switch(a.b){case 3:U(a,o,c,"stream already broken");break;case z:0==(i=o[c])||128==i?a.h=i:U(a,o,c,"invalid frame byte"),a.b=1,a.a=0,a.f=0;break;case 1:n=o[c],a.f++,a.a=(a.a<<8)+n,4==a.f&&(a.b=2,a.g=0,"u">typeof Uint8Array?a.c=new Uint8Array(a.a):a.c=Array(a.a),0==a.a&&r());break;case 2:s=o[c],a.c[a.g++]=s,a.g==a.a&&r();break;default:throw Error("unexpected parser state: "+a.b)}a.m++,c++}return e=a.i,a.i=[],0<e.length?e:null}(t.s,e)}catch(e){tM(t,new N(2,"Error in parsing response body"))}if(a)for(e=0;e<a.length;e++){if(0 in a[e]){var c=a[e][0];if(c){var l=!1,u=void 0;try{u=t.m(c),l=!0}catch(e){tM(t,new N(13,"Error when deserializing response data; error: "+e+", response: "+u))}if(l)for(c=u,l=0;l<t.b.length;l++)t.b[l](c)}}if(128 in a[e]&&0<a[e][128].length){for(l=0,c="";l<a[e][128].length;l++)c+=String.fromCharCode(a[e][128][l]);for(u=0,c=c.trim().split("\r\n"),l={};u<c.length;u++){var d=c[u].indexOf(":");l[c[u].substring(0,d).trim()]=c[u].substring(d+1).trim()}c=l,l=0,u="","grpc-status"in c&&(l=Number(c["grpc-status"]),delete c["grpc-status"]),"grpc-message"in c&&(u=c["grpc-message"],delete c["grpc-message"]),tM(t,new N(l,u,c))}}}}),eP(this.a,"complete",function(){var e=t.a.g,r=2,i="",n={},s=function(e){var t={};e=(e.a&&4==ty(e)&&e.a.getAllResponseHeaders()||"").split("\r\n");for(var r=0;r<e.length;r++)if(!/^[\s\xa0]*$/.test(e[r])){var i=function(e){var t=1;e=e.split(":");for(var r=[];0<t&&e.length;)r.push(e.shift()),t--;return e.length&&r.push(e.join(":")),r}(e[r]),n=i[0];if("string"==typeof(i=i[1])){i=i.trim();var s=t[n]||[];t[n]=s,s.push(i)}}var o,a=function(e){return e.join(", ")},c={};for(o in t)c[o]=a.call(void 0,t[o],o,t);return c}(t.a);Object.keys(s).forEach(function(e){tE.includes(e)||(n[e]=s[e])}),function(e,t){for(var r=0;r<e.g.length;r++)e.g[r](t)}(t,n);var o=-1;if(0!=e){switch(e){case 7:r=10;break;case 8:r=4;break;case 6:r=function(e){switch(e){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:default:return 2;case 501:return 12;case 503:return 14;case 504:return 4}}(o=t.a.getStatus());break;default:r=14}10==r&&t.l||(i=function(e){switch(e){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}}(e),-1!=o&&(i+=", http status code: "+o),tM(t,new N(r,i)))}else o=!1,"grpc-status"in s&&(r=Number(t_(t.a,"grpc-status")),"grpc-message"in s&&(i=t_(t.a,"grpc-message")),0!=r&&(tM(t,new N(r,i||"",s)),o=!0)),o||function(e){for(var t=0;t<e.c.length;t++)e.c[t]()}(t)})}function tT(e,t){-1<(t=e.indexOf(t))&&e.splice(t,1)}function tM(e,t){if(0!=t.code)for(var r=new N(t.code,decodeURIComponent(t.message||""),t.metadata),i=0;i<e.f.length;i++)e.f[i](r);for(r=0,t={code:t.code,details:decodeURIComponent(t.message||""),metadata:t.metadata};r<e.h.length;r++)e.h[r](t)}function tw(e,t){e=void 0===e?{}:e,this.a=e.format||C("format",e)||"text",this.g=e.aa||C("suppressCorsPreflight",e)||!1,this.f=e.withCredentials||C("withCredentials",e)||!1,this.b=e.$||C("streamInterceptors",e)||[],this.h=e.ba||C("unaryInterceptors",e)||[],this.c=t||null}function tk(e,t,r){var i=t.getMethodDescriptor(),n=r+i.getName();(r=e.c?e.c:new tc).M=e.f;var s=new tC({Z:r});s.m=i.b;var a=t.getMetadata();for(c in a)r.headers.set(c,a[c]);if("text"==e.a?(r.headers.set("Content-Type","application/grpc-web-text"),r.headers.set("Accept","application/grpc-web-text")):r.headers.set("Content-Type","application/grpc-web+proto"),r.headers.set("X-User-Agent","grpc-web-javascript/0.1"),r.headers.set("X-Grpc-Web","1"),r.headers.has("deadline")){var c=Number(r.headers.get("deadline"));c=Math.ceil(c-(new Date).getTime()),r.headers.delete("deadline"),1/0===c&&(c=0),0<c&&(r.headers.set("grpc-timeout",c+"m"),r.h=Math.max(0,Math.max(1e3,Math.ceil(1.1*c))))}if(e.g){a=r.headers,c={};for(var l=h(a.keys()),u=l.next();!u.done;u=l.next())c[u=u.value]=a.get(u);r.headers.clear();t:{for(d in c){var d=!1;break t}d=!0}!d&&((c=function(e){var t="",r=function(e,r){t+=r,t+=":",t+=e,t+="\r\n"};for(var i in e)r.call(void 0,e[i],i,e);return t}(c),"string"==typeof n)?(d=encodeURIComponent("$httpHeaders")+(c=null!=c?"="+encodeURIComponent(String(c)):""))&&(0>(c=n.indexOf("#"))&&(c=n.length),0>(a=n.indexOf("?"))||a>c?(a=c,l=""):l=n.substring(a+1,c),c=(n=[n.substr(0,a),l,n.substr(c)])[1],n[1]=d?c?c+"&"+d:d:c,n=n[0]+(n[1]?"?"+n[1]:"")+n[2]):n.a("$httpHeaders",c))}for(a=3,i=(t=(0,i.a)(t.getRequestMessage())).length,d=[0,0,0,0],c=new Uint8Array(5+i);0<=a;a--)d[a]=i%256,i>>>=8;if(c.set(new Uint8Array(d),1),c.set(t,5),t=c,"text"==e.a){for(e=t,void 0===p&&(p=0),tv(),p=tb[p],t=Array(Math.floor(e.length/3)),i=p[64]||"",d=c=0;c<e.length-2;c+=3){u=e[c];var p,g=e[c+1];l=e[c+2],a=p[u>>2],u=p[(3&u)<<4|g>>4],g=p[(15&g)<<2|l>>6],l=p[63&l],t[d++]=a+u+g+l}switch(a=0,l=i,e.length-c){case 2:l=p[(15&(a=e[c+1]))<<2]||i;case 1:e=e[c],t[d]=p[e>>2]+p[(3&e)<<4|a>>4]+l+i}t=t.join("")}else"binary"==e.a&&(r.m="arraybuffer");return!function(e,t,r){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.v+"; newUri="+t);e.v=t,e.l="",e.g=0,e.P="POST",e.L=!1,e.c=!0,e.a=e.C?e4(e.C):e4(o),e.J=e.C?e2(e.C):e2(o),e.a.onreadystatechange=B(e.R,e);try{e0(e.b,tR(e,"Opening Xhr")),e.N=!0,e.a.open("POST",String(t),!0),e.N=!1}catch(t){e0(e.b,tR(e,"Error opening Xhr: "+t.message)),tp(e,t);return}t=r||"";var i,n,s=(r=e.headers.clone()).G().find(function(e){return"content-type"==e.toLowerCase()}),a=E.FormData&&t instanceof E.FormData;!(0<=$(td,"POST"))||s||a||r.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),r.forEach(function(e,t){this.a.setRequestHeader(t,e)},e),e.m&&(e.a.responseType=e.m),"withCredentials"in e.a&&e.a.withCredentials!==e.M&&(e.a.withCredentials=e.M);try{tm(e),0<e.h&&(i=e.a,e.I=er&&(n=function(){for(var e=0,t=H(String(ee)).split("."),r=H("9").split("."),i=Math.max(t.length,r.length),n=0;0==e&&n<i;n++){var s,o,a,c,l,u,d=t[n]||"",p=r[n]||"";do{if(d=/(\d*)(\D*)(.*)/.exec(d)||["","","",""],p=/(\d*)(\D*)(.*)/.exec(p)||["","","",""],0==d[0].length&&0==p[
10].length)break;e=(s=0==d[1].length?0:parseInt(d[1],10),o=0==p[1].length?0:parseInt(p[1],10),(s<o?-1:+(s>o))||(a=0==d[2].length,c=0==p[2].length,a<c?-1:+(a>c))||(l=d[2],u=p[2],l<u?-1:+(l>u))),d=d[3],p=p[3]}while(0==e)}return 0<=e},Object.prototype.hasOwnProperty.call(ed,9)?ed[9]:ed[9]=n(9))&&"number"==typeof i.timeout&&void 0!==i.ontimeout,e0(e.b,tR(e,"Will abort after "+e.h+"ms if incomplete, xhr2 "+e.I)),e.I?(e.a.timeout=e.h,e.a.ontimeout=B(e.T,e)):e.w=eq(e.T,e.h,e)),e0(e.b,tR(e,"Sending request")),e.s=!0,e.a.send(t),e.s=!1}catch(t){e0(e.b,tR(e,"Send error: "+t.message)),tp(e,t)}}(r,n,t),s}function tP(e,t,r){var i=!1,n=null,s=!1;e.on("data",function(e){i=!0,n=e}),e.on("error",function(e){0==e.code||s||(s=!0,t(e,null))}),e.on("status",function(e){0==e.code||s?r&&t(null,null,e):(s=!0,t({code:e.code,message:e.details,metadata:e.metadata},null))}),r&&e.on("metadata",function(e){t(null,null,null,e)}),e.on("end",function(){s||(i?r?t(null,n,null,null,!0):t(null,n):t({code:2,message:"Incomplete response"})),r&&t(null,null)})}function tO(e,t){var r=e;return t.forEach(function(e){var t=r;r=function(r){return e.intercept(r,t)}}),r}tC.prototype.on=function(e,t){return"data"==e?this.b.push(t):"status"==e?this.h.push(t):"metadata"==e?this.g.push(t):"end"==e?this.c.push(t):"error"==e&&this.f.push(t),this},tC.prototype.removeListener=function(e,t){return"data"==e?tT(this.b,t):"status"==e?tT(this.h,t):"metadata"==e?tT(this.g,t):"end"==e?tT(this.c,t):"error"==e&&tT(this.f,t),this},tC.prototype.cancel=function(){this.l=!0,this.a.abort()},tC.prototype.cancel=tC.prototype.cancel,tC.prototype.removeListener=tC.prototype.removeListener,tC.prototype.on=tC.prototype.on,tw.prototype.X=function(e,t,r,i,n){var s=this,o=e.substr(0,e.length-i.name.length);return tP(e=tO(function(e){return tk(s,e,o)},this.b).call(this,L(i,t,r)),n,!1),new W(e)},tw.prototype.S=function(e,t,r,i){var n=this,s=e.substr(0,e.length-i.name.length);return tO(function(e){return new Promise(function(t,r){var i,o,a;tP(tk(n,e,s),function(n,s,c,l,u){n?r(n):u?a=s:c?o=c:l?i=l:(n=e.getMethodDescriptor(),s=void 0===(s=i)?{}:s,t(new I(a,n,s,void 0===o?null:o)))},!0)})},this.h).call(this,L(i,t,r)).then(function(e){return e.getResponseMessage()})},tw.prototype.unaryCall=function(e,t,r,i){return this.S(e,t,r,i)},tw.prototype.Y=function(e,t,r,i){var n=this,s=e.substr(0,e.length-i.name.length);return tO(function(e){return tk(n,e,s)},this.b).call(this,L(i,t,r))},tw.prototype.serverStreaming=tw.prototype.Y,tw.prototype.unaryCall=tw.prototype.unaryCall,tw.prototype.thenableCall=tw.prototype.S,tw.prototype.rpcCall=tw.prototype.X,e.exports.CallOptions=A,e.exports.MethodDescriptor=x,e.exports.GrpcWebClientBase=tw,e.exports.RpcError=N,e.exports.StatusCode={OK:0,CANCELLED:1,UNKNOWN:2,INVALID_ARGUMENT:3,DEADLINE_EXCEEDED:4,NOT_FOUND:5,ALREADY_EXISTS:6,PERMISSION_DENIED:7,UNAUTHENTICATED:16,RESOURCE_EXHAUSTED:8,FAILED_PRECONDITION:9,ABORTED:10,OUT_OF_RANGE:11,UNIMPLEMENTED:12,INTERNAL:13,UNAVAILABLE:14,DATA_LOSS:15},e.exports.MethodType={UNARY:"unary",SERVER_STREAMING:"server_streaming",BIDI_STREAMING:"bidi_streaming"},eG="u">typeof globalThis&&globalThis||self},43527:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(94452),s=new TextDecoder;class o extends i.ResponseBase{constructor(e){super(),this._displayListSizeLimit=5,this.type=n.CacheSortedSetFetchResponse.Hit,this.elements=e}valueArrayUint8Elements(){return this.elements.map(e=>({value:e.value,score:e.score}))}valueArrayStringElements(){return this.elements.map(e=>({value:s.decode(e.value),score:e.score}))}valueArray(){return this.valueArrayStringElements()}value(){return this.valueArrayStringElements()}truncateValueStrings(){let e=this.valueArrayStringElements(),t=[];return e.length<=this._displayListSizeLimit?e.forEach(e=>{t.push(`${e.value}: ${e.score}`)}):e.slice(0,this._displayListSizeLimit).forEach(e=>{t.push(`${e.value}: ${e.score}`)}),t.join(", ")}toString(){return`${super.toString()}: valueArrayStringElements: ${this.truncateValueStrings()}`}}t.Hit=o;class a extends i.BaseResponseMiss{constructor(){super(...arguments),this.type=n.CacheSortedSetFetchResponse.Miss}value(){}}t.Miss=a;class c extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSortedSetFetchResponse.Error}value(){}}t.Error=c},44364:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(e){super(),this.type=n.CacheKeyExistsResponse.Success,this._exists=e[0]}exists(){return this._exists}toString(){return`${super.toString()}: exists: ${String(this._exists)}`}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheKeyExistsResponse.Error}exists(){}}t.Error=o},44512:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.NotStored=t.Stored=void 0;let i=r(17214),n=r(94452),s=new TextDecoder;class o extends i.ResponseBase{constructor(e){super(),this.type=n.CacheSetIfAbsentOrHashNotEqualResponse.Stored,this._hash=e}hashString(){return s.decode(this._hash)}hashUint8Array(){return this._hash}}t.Stored=o;class a extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetIfAbsentOrHashNotEqualResponse.NotStored}}t.NotStored=a;class c extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSetIfAbsentOrHashNotEqualResponse.Error}}t.Error=c},45513:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(e){super(),this.type=n.CacheListLengthResponse.Hit,this._length=e}value(){return this._length}length(){return this._length}toString(){return`${super.toString()}: length ${this._length}`}}t.Hit=s;class o extends i.BaseResponseMiss{constructor(){super(),this.type=n.CacheListLengthResponse.Miss}value(){}}t.Miss=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheListLengthResponse.Error}value(){}}t.Error=a},45522:()=>{},45597:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(e){super(),this.type=n.CacheSetContainsElementResponse.Hit,this._containsElement=e}containsElement(){return this._containsElement}toString(){return`${super.toString()}: Hit - ${this._containsElement?"true":"false"}`}}t.Hit=s;class o extends i.BaseResponseMiss{constructor(){super(),this.type=n.CacheSetContainsElementResponse.Miss}containsElement(){}}t.Miss=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSetContainsElementResponse.Error}containsElement(){}}t.Error=a},45664:(e,t,r)=>{"use strict";r.d(t,{b:()=>n});var i=r(53476);function n(e,t){let r=i.J2.__ddBrowserSdkExtensionCallback;r&&r({type:e,payload:t})}},46081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(11205),n=r(17214),s=r(91313),o=r(94452),a=r(84055);class c extends n.ResponseBase{constructor(e,t){super(),this._responses=[],this.type=o.CacheSortedSetGetScoresResponse.Hit,e.forEach((e,r)=>{e.result===s._ECacheResult.Hit?this._responses.push(new a.CacheSortedSetGetScore.Hit(e.score,t[r])):e.result===s._ECacheResult.Miss?this._responses.push(new a.CacheSortedSetGetScore.Miss(t[r])):this._responses.push(new a.CacheSortedSetGetScore.Error(new i.UnknownError(e.result.toString()),t[r]))})}responses(){return this._responses}valueMapString(){return this._responses.reduce((e,t)=>(t instanceof a.CacheSortedSetGetScore.Hit&&e.set(t.valueString(),t.score()),e),new Map)}valueMap(){return this.valueMapString()}valueRecordString(){return this._responses.reduce((e,t)=>(t instanceof a.CacheSortedSetGetScore.Hit&&(e[t.valueString()]=t.score()),e),{})}valueRecord(){return this.valueRecordString()}value(){return this.valueRecord()}toString(){let e="";return this.valueMapString().forEach((t,r)=>{let i=`${r}: ${t}, `;e+=i}),`${super.toString()}: valueMapString: ${e.slice(0,-2)}`}}t.Hit=c;class l extends n.BaseResponseMiss{constructor(){super(...arguments),this.type=o.CacheSortedSetGetScoresResponse.Miss}value(){}}t.Miss=l;class u extends n.BaseResponseError{constructor(e){super(e),this.type=o.CacheSortedSetGetScoresResponse.Error}value(){}}t.Error=u},46172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSortedSetSources=t.validateMaxConcurrentRequests=t.validateLeaderboardNumberOfElements=t.validateLeaderboardCount=t.validateLeaderboardOffset=t.validateLeaderboardRanks=t.validateLeaderboardName=t.isBase64=t.validateDisposableTokenTokenID=t.validateDisposableTokenExpiry=t.validateTimeout=t.validateValidForSeconds=t.validateTtlSeconds=t.validateTtlMinutes=t.validateTopK=t.validateNumDimensions=t.validateIndexName=t.validateWebhookName=t.validateTopicName=t.validateListSliceStartEnd=t.validateListName=t.validateDictionaryName=t.validateSortedSetCount=t.validateSortedSetOffset=t.validateSortedSetScores=t.validateSortedSetRanks=t.validateSortedSetName=t.validateSetPopCount=t.validateSetSampleLimit=t.validateSetName=t.validateCacheKeyOrPrefix=t.validateCacheName=t.validateStoreName=void 0;let i=r(11205),n=r(19090);function s(e){return!e.trim()}t.validateStoreName=function(e){if(s(e))throw new i.InvalidArgumentError("store name must not be empty")},t.validateCacheName=function(e){if(s(e))throw new i.InvalidArgumentError("cache name must not be empty")},t.validateCacheKeyOrPrefix=function(e){if(s(e))throw new i.InvalidArgumentError("cache key or key prefix must not be empty")},t.validateSetName=function(e){if(s(e))throw new i.InvalidArgumentError("set name must not be empty")},t.validateSetSampleLimit=function(e){if(e<0)throw new i.InvalidArgumentError("limit must be non-negative (>= 0)")},t.validateSetPopCount=function(e){if(e<1)throw new i.InvalidArgumentError("count must be positive (> 0)")},t.validateSortedSetName=function(e){if(s(e))throw new i.InvalidArgumentError("sorted set name must not be empty")},t.validateSortedSetRanks=function(e,t){if(void 0!==t){if(e>0&&t>0&&e>t)throw new i.InvalidArgumentError("start rank must be less than end rank");if(e<0&&t<0&&e>=t)throw new i.InvalidArgumentError("negative start rank must be less than negative end rank")}},t.validateSortedSetScores=function(e,t){if(void 0!==e&&void 0!==t&&e>t)throw new i.InvalidArgumentError("minScore must be less than or equal to maxScore")},t.validateSortedSetOffset=function(e){if(e<0)throw new i.InvalidArgumentError("offset must be non-negative (>= 0)")},t.validateSortedSetCount=function(e){if(e<1)throw new i.InvalidArgumentError("count must be strictly positive (> 0)")},t.validateDictionaryName=function(e){if(s(e))throw new i.InvalidArgumentError("dictionary name must not be empty")},t.validateListName=function(e){if(s(e))throw new i.InvalidArgumentError("list name must not be empty")},t.validateListSliceStartEnd=function(e,t){if(void 0!==e&&void 0!==t&&!(e>0)&&!(t<0)&&t<=e)throw new i.InvalidArgumentError("endIndex (exclusive) must be larger than startIndex (inclusive)")},t.validateTopicName=function(e){if(s(e))throw new i.InvalidArgumentError("topic name must not be empty")},t.validateWebhookName=function(e){if(s(e))throw new i.InvalidArgumentError("webhook name must not be empty")},t.validateIndexName=function(e){if(s(e))throw new i.InvalidArgumentError("index name must not be empty")},t.validateNumDimensions=function(e){if(e<=0)throw new i.InvalidArgumentError("numDimensions must be greater than zero")},t.validateTopK=function(e){if(e<=0)throw new i.InvalidArgumentError("topK must be greater than zero")},t.validateTtlMinutes=function(e){if(e<0||!Number.isSafeInteger(e))throw new i.InvalidArgumentError("ttlMinutes must be a positive integer")},t.validateTtlSeconds=function(e){if(e<0||!Number.isSafeInteger(e))throw new i.InvalidArgumentError(`ttl must be a positive integer, received ${e}`)},t.validateValidForSeconds=function(e){if(e<0)throw new i.InvalidArgumentError("validForSeconds must be positive")},t.validateTimeout=function(e){if(e<0)throw new i.InvalidArgumentError("timeout must be positive")},t.validateDisposableTokenExpiry=function(e){if(!e.doesExpire())throw new i.InvalidArgumentError("disposable tokens must have an expiry");if(0>e.seconds())throw new i.InvalidArgumentError("disposable token expiry must be positive")},t.validateDisposableTokenTokenID=function(e){if(e.length>64)throw new i.InvalidArgumentError("TokenID must be less than or equal to 64 characters.")},t.isBase64=function(e){try{return(0,n.encodeToBase64)((0,n.decodeFromBase64)(e))===e}catch(e){return!1}},t.validateLeaderboardName=function(e){if(s(e))throw new i.InvalidArgumentError("leaderboard name must not be empty")},t.validateLeaderboardRanks=function(e,t){if(e>0&&t>0&&e>=t)throw new i.InvalidArgumentError("start rank must be less than end rank");if(e<0||t<0)throw new i.InvalidArgumentError("ranks must be positive")},t.validateLeaderboardOffset=function(e){if(e<0)throw new i.InvalidArgumentError("offset must be non-negative (>= 0)")},t.validateLeaderboardCount=function(e){if(e<1)throw new i.InvalidArgumentError("count must be strictly positive (> 0)")},t.validateLeaderboardNumberOfElements=function(e){if(e<1)throw new i.InvalidArgumentError("must provide at least one element")},t.validateMaxConcurrentRequests=function(e){if(e<1)throw new i.InvalidArgumentError("concurrent requests limit must be strictly positive (> 0)")},t.validateSortedSetSources=function(e){if(!e)throw new i.InvalidArgumentError("At least one sources is required");for(let t of e){let{sortedSetName:e,weight:r}=t;if("string"!=typeof e||0===e.length)throw new i.InvalidArgumentError("sortedSetName must be a non-empty string");if(!Number.isFinite(r))throw new i.InvalidArgumentError("weight must be a finite number")}}},46233:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(e){super(),this.type=n.CacheSortedSetIncrementScoreResponse.Success,this._score=e}score(){return this._score}toString(){return`${super.toString()}: value: ${this.score()}`}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSortedSetIncrementScoreResponse.Error}score(){}}t.Error=o},46704:(e,t)=>{"use strict";var r,i,n,s,o;Object.defineProperty(t,"__esModule",{value:!0}),t.LeaderboardUpsertResponse=t.LeaderboardRemoveElementsResponse=t.LeaderboardLengthResponse=t.LeaderboardFetchResponse=t.LeaderboardDeleteResponse=void 0,(r=t.LeaderboardDeleteResponse||(t.LeaderboardDeleteResponse={})).Success="Success",r.Error="Error",(i=t.LeaderboardFetchResponse||(t.LeaderboardFetchResponse={})).Success="Success",i.Error="Error",(n=t.LeaderboardLengthResponse||(t.LeaderboardLengthResponse={})).Success="Success",n.Error="Error",(s=t.LeaderboardRemoveElementsResponse||(t.LeaderboardRemoveElementsResponse={})).Success="Success",s.Error="Error",(o=t.LeaderboardUpsertResponse||(t.LeaderboardUpsertResponse={})).Success="Success",o.Error="Error"},47012:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__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)&&i(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.LeaderboardClient=void 0;let o=s(r(43092)),a=s(r(9837)),c=s(r(36597));class l{constructor(e,t,r){this.methodDescriptorDeleteLeaderboard=new o.MethodDescriptor("/leaderboard.Leaderboard/DeleteLeaderboard",o.MethodType.UNARY,c._DeleteLeaderboardRequest,a._Empty,e=>e.serializeBinary(),a._Empty.deserializeBinary),this.methodDescriptorUpsertElements=new o.MethodDescriptor("/leaderboard.Leaderboard/UpsertElements",o.MethodType.UNARY,c._UpsertElementsRequest,a._Empty,e=>e.serializeBinary(),a._Empty.deserializeBinary),this.methodDescriptorRemoveElements=new o.MethodDescriptor("/leaderboard.Leaderboard/RemoveElements",o.MethodType.UNARY,c._RemoveElementsRequest,a._Empty,e=>e.serializeBinary(),a._Empty.deserializeBinary),this.methodDescriptorGetLeaderboardLength=new o.MethodDescriptor("/leaderboard.Leaderboard/GetLeaderboardLength",o.MethodType.UNARY,c._GetLeaderboardLengthRequest,c._GetLeaderboardLengthResponse,e=>e.serializeBinary(),c._GetLeaderboardLengthResponse.deserializeBinary),this.methodDescriptorGetByRank=new o.MethodDescriptor("/leaderboard.Leaderboard/GetByRank",o.MethodType.UNARY,c._GetByRankRequest,c._GetByRankResponse,e=>e.serializeBinary(),c._GetByRankResponse.deserializeBinary),this.methodDescriptorGetRank=new o.MethodDescriptor("/leaderboard.Leaderboard/GetRank",o.MethodType.UNARY,c._GetRankRequest,c._GetRankResponse,e=>e.serializeBinary(),c._GetRankResponse.deserializeBinary),this.methodDescriptorGetByScore=new o.MethodDescriptor("/leaderboard.Leaderboard/GetByScore",o.MethodType.UNARY,c._GetByScoreRequest,c._GetByScoreResponse,e=>e.serializeBinary(),c._GetByScoreResponse.deserializeBinary),this.methodDescriptorGetCompetitionRank=new o.MethodDescriptor("/leaderboard.Leaderboard/GetCompetitionRank",o.MethodType.UNARY,c._GetCompetitionRankRequest,c._GetCompetitionRankResponse,e=>e.serializeBinary(),c._GetCompetitionRankResponse.deserializeBinary),r||(r={}),t||(t={}),r.format="text",this.client_=new o.GrpcWebClientBase(r),this.hostname_=e,this.credentials_=t,this.options_=r}deleteLeaderboard(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/leaderboard.Leaderboard/DeleteLeaderboard",e,t||{},this.methodDescriptorDeleteLeaderboard,r):this.client_.unaryCall(this.hostname_+"/leaderboard.Leaderboard/DeleteLeaderboard",e,t||{},this.methodDescriptorDeleteLeaderboard)}upsertElements(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/leaderboard.Leaderboard/UpsertElements",e,t||{},this.methodDescriptorUpsertElements,r):this.client_.unaryCall(this.hostname_+"/leaderboard.Leaderboard/UpsertElements",e,t||{},this.methodDescriptorUpsertElements)}removeElements(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/leaderboard.Leaderboard/RemoveElements",e,t||{},this.methodDescriptorRemoveElements,r):this.client_.unaryCall(this.hostname_+"/leaderboard.Leaderboard/RemoveElements",e,t||{},this.methodDescriptorRemoveElements)}getLeaderboardLength(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/leaderboard.Leaderboard/GetLeaderboardLength",e,t||{},this.methodDescriptorGetLeaderboardLength,r):this.client_.unaryCall(this.hostname_+"/leaderboard.Leaderboard/GetLeaderboardLength",e,t||{},this.methodDescriptorGetLeaderboardLength)}getByRank(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/leaderboard.Leaderboard/GetByRank",e,t||{},this.methodDescriptorGetByRank,r):this.client_.unaryCall(this.hostname_+"/leaderboard.Leaderboard/GetByRank",e,t||{},this.methodDescriptorGetByRank)}getRank(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/leaderboard.Leaderboard/GetRank",e,t||{},this.methodDescriptorGetRank,r):this.client_.unaryCall(this.hostname_+"/leaderboard.Leaderboard/GetRank",e,t||{},this.methodDescriptorGetRank)}getByScore(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/leaderboard.Leaderboard/GetByScore",e,t||{},this.methodDescriptorGetByScore,r):this.client_.unaryCall(this.hostname_+"/leaderboard.Leaderboard/GetByScore",e,t||{},this.methodDescriptorGetByScore)}getCompetitionRank(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/leaderboard.Leaderboard/GetCompetitionRank",e,t||{},this.methodDescriptorGetCompetitionRank,r):this.client_.unaryCall(this.hostname_+"/leaderboard.Leaderboard/GetCompetitionRank",e,t||{},this.methodDescriptorGetCompetitionRank)}}
1t.LeaderboardClient=l},47111:(e,t,r)=>{"use strict";r.d(t,{l:()=>s,n:()=>n});var i=r(97033);function n(e,t,r){let n,s,o=!r||void 0===r.leading||r.leading,a=!r||void 0===r.trailing||r.trailing,c=!1;return{throttled:(...r)=>{if(c){n=r;return}o?e(...r):n=r,c=!0,s=(0,i.wg)(()=>{a&&n&&e(...n),c=!1,n=void 0},t)},cancel:()=>{(0,i.DJ)(s),c=!1,n=void 0}}}function s(){}},47172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.CacheListRetainResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheListRetainResponse.Error}}t.Error=o},47560:(e,t)=>{"use strict";var r,i,n,s,o,a,c,l,u,d,p,h;Object.defineProperty(t,"__esModule",{value:!0}),t.CacheSortedSetUnionStoreResponse=t.CacheSortedSetRemoveElementsResponse=t.CacheSortedSetRemoveElementResponse=t.CacheSortedSetPutElementsResponse=t.CacheSortedSetPutElementResponse=t.CacheSortedSetLengthByScoreResponse=t.CacheSortedSetLengthResponse=t.CacheSortedSetIncrementScoreResponse=t.CacheSortedSetGetScoresResponse=t.CacheSortedSetGetScoreResponse=t.CacheSortedSetGetRankResponse=t.CacheSortedSetFetchResponse=void 0,(r=t.CacheSortedSetFetchResponse||(t.CacheSortedSetFetchResponse={})).Hit="Hit",r.Miss="Miss",r.Error="Error",(i=t.CacheSortedSetGetRankResponse||(t.CacheSortedSetGetRankResponse={})).Hit="Hit",i.Miss="Miss",i.Error="Error",(n=t.CacheSortedSetGetScoreResponse||(t.CacheSortedSetGetScoreResponse={})).Hit="Hit",n.Miss="Miss",n.Error="Error",(s=t.CacheSortedSetGetScoresResponse||(t.CacheSortedSetGetScoresResponse={})).Hit="Hit",s.Miss="Miss",s.Error="Error",(o=t.CacheSortedSetIncrementScoreResponse||(t.CacheSortedSetIncrementScoreResponse={})).Success="Success",o.Error="Error",(a=t.CacheSortedSetLengthResponse||(t.CacheSortedSetLengthResponse={})).Hit="Hit",a.Miss="Miss",a.Error="Error",(c=t.CacheSortedSetLengthByScoreResponse||(t.CacheSortedSetLengthByScoreResponse={})).Hit="Hit",c.Miss="Miss",c.Error="Error",(l=t.CacheSortedSetPutElementResponse||(t.CacheSortedSetPutElementResponse={})).Success="Success",l.Error="Error",(u=t.CacheSortedSetPutElementsResponse||(t.CacheSortedSetPutElementsResponse={})).Success="Success",u.Error="Error",(d=t.CacheSortedSetRemoveElementResponse||(t.CacheSortedSetRemoveElementResponse={})).Success="Success",d.Error="Error",(p=t.CacheSortedSetRemoveElementsResponse||(t.CacheSortedSetRemoveElementsResponse={})).Success="Success",p.Error="Error",(h=t.CacheSortedSetUnionStoreResponse||(t.CacheSortedSetUnionStoreResponse={})).Success="Success",h.Error="Error"},47599:(e,t,r)=>{"use strict";r.d(t,{g:()=>v});var i=class{constructor(){this.cache=null,this.cacheExpiry=0,this.CACHE_DURATION=3e5}get(e){return this.cache&&Date.now()<this.cacheExpiry?(e?.log("Using cached result","DetectionCache.get"),this.cache):null}set(e){this.cache=e,this.cacheExpiry=Date.now()+this.CACHE_DURATION}clear(){this.cache=null,this.cacheExpiry=0}},n=class e{constructor(e=!1){if(this.debug=e,"u">typeof window&&window.location){let e=new URLSearchParams(window.location.search).get("noblocky_console");if(e&&/^\d{6}$/.test(e)){let t=parseInt(e.substring(0,2),10),r=parseInt(e.substring(2,4),10),i=parseInt(e.substring(4,6),10),n=new Date,s=n.getDate(),o=n.getMonth()+1,a=n.getFullYear()%100;t===s&&r===o&&i===a&&(this.debug=!0)}}}formatMessage(t,r,i,n){this.debug&&(0,console[t])(e.NOBLOCKY_BADGE+" %c%s%c %s",e.NOBLOCKY_STYLE,"",e.NOBLOCKY_ORIGIN_STYLE,i,"",r,...n)}log(e,t,...r){this.formatMessage("log",e,t,r)}warn(e,t,...r){this.formatMessage("warn",e,t,r)}error(e,t,...r){this.formatMessage("error",e,t,r)}};function s(e,t){return Promise.race([e,new Promise((e,r)=>setTimeout(()=>r(Error("Detection timeout")),t))])}n.NOBLOCKY_BADGE="%c\uD83D\uDEE1 NoBlocky%c",n.NOBLOCKY_STYLE="background: #136794; color: #d6f1ff; font-weight: bold; padding: 4px 8px; border-radius: 3px;",n.NOBLOCKY_ORIGIN_STYLE="background: #111; color: #888; font-weight: bold; padding: 4px 8px; border-radius: 3px;";var o=class{constructor(e){this.logger=e}canRun(){return!0}createResult(e,t){return{isBlocked:e,confidence:t,method:this.getName(),timestamp:Date.now()}}handleError(e,t){let r=e instanceof Error?e.message:String(e),i=t?`${t}: ${r}`:r;return this.logger.error(`${this.getName()} detector failed: ${i}`,"BaseDetector.handleError"),null}},a=class{static register(e,t){this.factories.set(e,t)}static create(e,t,r){let i=this.factories.get(e);if(!i)throw Error(`Unknown detector type: ${e}`);return i(t,r)}static getAvailable(){return Array.from(this.factories.keys())}static isRegistered(e){return this.factories.has(e)}static clear(){this.factories.clear()}};a.factories=new Map;var c=class extends o{constructor(e){super(e)}getName(){return"bait-element"}async detect(){return new Promise(e=>{try{let t=[{className:"adsbox advertisement ads banner-ad",id:"google_ads_frame",innerHTML:'<div class="ad-content">Advertisement</div>'}
1,{className:"pub_300x250 pub_728x90 text-ad textAd",id:"ad_banner",innerHTML:"Sponsored Content"},{className:"AdSense adnxs adsbygoogle",id:"div-gpt-ad",innerHTML:" "}].map(e=>{let t=document.createElement("div");return t.innerHTML=e.innerHTML,t.className=e.className,t.style.cssText="width: 300px !important; height: 250px !important; position: absolute !important; left: -10000px !important; top: -1000px !important; display: block !important; visibility: visible !important;",t.id=e.id,t.setAttribute("data-ad","true"),t.setAttribute("data-google-query-id","test"),document.body.appendChild(t),t});setTimeout(()=>{let r=0;t.forEach(e=>{let t=window.getComputedStyle(e);(0===e.offsetHeight||0===e.offsetWidth||null===e.offsetParent||"none"===t.display||"hidden"===t.visibility||0===parseFloat(t.opacity))&&r++,e.parentNode&&e.parentNode.removeChild(e)});let i=r>0,n=r===t.length?"high":r>t.length/2?"medium":"low";e(this.createResult(i,n))},500)}catch(t){e(this.handleError(t,"bait element detection"))}})}},l=class extends o{constructor(e,t=[],r=.5,i=3e3,n=!1,s,o=[]){super(e),this.isNavigatingAway=!1,this.isNavigationDetectionRegistered=!1,this.fetchUrls=t,this.failRatio=r,this.timeout=i,this.consentAware=n,this.getConsentStatus=s,this.preConsentDomains=o.map(e=>{let t=e.trim();return(t=t.replace(/^https?:\/\//,"")).split("/")[0]}).filter(Boolean),this.preConsentDomains.length>0&&this.logger.log(`Initialized with pre-consent domains: ${this.preConsentDomains.join(", ")}`,"FetchAdsDetector.constructor")}getName(){return"fetch-ads"}canRun(){return this.fetchUrls.length>0}isPreConsentDomain(e){return this.preConsentDomains.some(t=>!!(e===t||e.endsWith("."+t)))}isExternalDomain(e){try{if(!e.startsWith("http://")&&!e.startsWith("https://"))return!1;let t=new URL(e),r="u">typeof window?window.location.origin:"";return t.origin!==r}catch{return!1}}getFilteredFetchUrls(){if(!this.consentAware||!this.getConsentStatus)return this.fetchUrls;if(this.getConsentStatus())return this.logger.log("User consent granted - all fetch URLs allowed","FetchAdsDetector.getFilteredFetchUrls"),this.fetchUrls;let e=this.fetchUrls.filter(e=>{if(!this.isExternalDomain(e))return!0;try{let t=new URL(e);return this.isPreConsentDomain(t.hostname)?(this.logger.log(`Allowing pre-consent domain (no consent): ${e}`,"FetchAdsDetector.getFilteredFetchUrls"),!0):(this.logger.log(`Skipping external URL (no consent, not in pre-consent list): ${e}`,"FetchAdsDetector.getFilteredFetchUrls"),!1)}catch{return this.logger.log(`Skipping malformed URL: ${e}`,"FetchAdsDetector.getFilteredFetchUrls"),!1}});return this.logger.log(`Consent-aware filtering: ${e.length}/${this.fetchUrls.length} URLs allowed (${this.preConsentDomains.length} pre-consent domains)`,"FetchAdsDetector.getFilteredFetchUrls"),e}setupNavigationDetection(){if(typeof window>"u"||"function"!=typeof window.addEventListener||this.isNavigationDetectionRegistered)return;this.isNavigationDetectionRegistered=!0,this.isNavigatingAway=!1;let e=()=>{this.isNavigatingAway=!0,this.logger.log("Navigation detected - will ignore quick fetch failures","FetchAdsDetector.setupNavigationDetection")};window.addEventListener("beforeunload",e),window.addEventListener("pagehide",e),this.navigationCleanup=()=>{window.removeEventListener("beforeunload",e),window.removeEventListener("pagehide",e)}}cleanupNavigationDetection(){this.navigationCleanup&&(this.navigationCleanup(),this.navigationCleanup=void 0),this.isNavigatingAway=!1,this.isNavigationDetectionRegistered=!1}isPageHiddenOrNavigating(){return"u">typeof document&&"hidden"===document.visibilityState||this.isNavigatingAway}async detect(){if(!this.fetchUrls||0===this.fetchUrls.length)return this.logger.error("No fetch URLs provided, skipping fetch detection","FetchAdsDetector.detect"),null;this.setupNavigationDetection();let e=this.getFilteredFetchUrls();if(0===e.length)return this.logger.warn("No URLs available for fetch detection after consent filtering","FetchAdsDetector.detect"),this.cleanupNavigationDetection(),this.createResult(!1,"none");1===e.length&&this.logger.warn("Only one URL available for fetch detection. Accuracy may be reduced.","FetchAdsDetector.detect");try{let t=await Promise.allSettled(e.map(async e=>{this.logger.log(`Testing fetch URL: ${e}`,"FetchAdsDetector.detect");let t=Date.now();try{await fetch(e,{method:"HEAD",mode:"no-cors",cache:"no-cache"});let r=Date.now()-t;return this.logger.log(`Fetch succeeded for ${e} in ${r}ms (visibilityState: ${"u">typeof document?document.visibilityState:"N/A"})`,"FetchAdsDetector.detect"),{isBlocked:!1,timeElapsed:r}}catch(i){this.logger.warn(`Fetch error for ${e}:`,"FetchAdsDetector.detect",i);let r=Date.now()-t;return"u">typeof navigator&&!navigator.onLine?(this.logger.warn("Device is offline - assuming network issue, not ad blocker","FetchAdsDetector.detect"),{isBlocked:!1,timeElapsed:r}):r<50?this.isPageHiddenOrNavigating()?(this.logger.warn(`Quick failure (${r}ms) but page is hidden/navigating - likely navigation/tab switch, not ad blocker`,"FetchAdsDetector.detect"),{isBlocked:!1,timeElapsed:r}):(this.logger.log(`Quick failure (${r}ms) - likely an ad blocker`,"FetchAdsDetector.detect"),{isBlocked:!0,timeElapsed:r}):(this.logger.log(`Slow failure (${r}ms) - likely a network issue`,"FetchAdsDetector.detect"),{isBlocked:!1,timeElapsed:r})}}));this.logger.log("Fetch detection results:","FetchAdsDetector.detect",t);let r=t.filter(e=>"fulfilled"===e.status),i=r.reduce((e,t)=>
1t.value.isBlocked?e+1:e,0),n=r.length>0?i/r.length:0,s="low",o=i>0;return n>=this.failRatio?s="high":n>=.5?s="medium":o&&(s="low"),this.cleanupNavigationDetection(),this.createResult(o,s)}catch(e){return this.cleanupNavigationDetection(),this.handleError(e,"fetch detection")}}},u=class extends o{constructor(e){super(e)}getName(){return"script-injection"}async detect(){return new Promise(e=>{try{let t=document.createElement("script");t.src="data:text/javascript;base64,"+btoa("window.adblockTest = true;"),t.className="advertisement",t.id="ad-script-test";let r=!1,i=()=>{t.parentNode&&t.parentNode.removeChild(t)};t.onload=()=>{r||(r=!0,i(),window.adblockTest?(e(this.createResult(!1,"low")),delete window.adblockTest):e(this.createResult(!0,"high")))},t.onerror=()=>{r||(r=!0,i(),e(this.createResult(!0,"high")))},document.head.appendChild(t),setTimeout(()=>{r||(r=!0,i(),e(this.createResult(!window.adblockTest,"low")),window.adblockTest&&delete window.adblockTest)},1e3)}catch(t){e(this.handleError(t,"script injection"))}})}},d=class extends o{constructor(e){super(e)}getName(){return"known-blockers"}async detect(){try{let e=[()=>!!window.__adblockplus,()=>!!window.uBlock,()=>!!window.AdguardApi,()=>!!document.querySelector("#adblock-detected")],t=0;for(let r of e)try{r()&&t++}catch{}let r=t>0,i=t>2?"high":t>1?"medium":"low";return this.createResult(r,i)}catch(e){return this.handleError(e,"known blockers detection")}}},p=class extends o{constructor(e){super(e)}getName(){return"dom-manipulation"}async detect(){try{let e=[()=>!Element.prototype.appendChild.toString().includes("[native code]"),()=>!document.createElement.toString().includes("[native code]"),()=>!!document.querySelector('style[id*="ublock"]'),()=>!!document.querySelector('style[id*="adblock"]'),()=>!!document.querySelector('[id*="adnauseum"]'),()=>{let e=document.createElement("div");e.className="ads",e.style.cssText="position: absolute; left: -9999px;",document.body.appendChild(e);let t=0===e.offsetHeight;return document.body.removeChild(e),t}],t=0;for(let r of e)try{r()&&t++}catch{}let r=t>0,i=t>2?"high":t>1?"medium":"low";return this.createResult(r,i)}catch(e){return this.handleError(e,"DOM manipulation detection")}}},h=class extends o{constructor(e,t=[],r=!0){super(e),this.adSelectors=t,this.checkParent=r}getName(){return"blocked-element"}canRun(){return this.adSelectors.length>0}isElementBlocked(e){let t=window.getComputedStyle(e);return"none"===t.display||"hidden"===t.visibility||0===parseFloat(t.opacity)||0===e.offsetWidth&&0===e.offsetHeight}async detect(){try{if(!this.canRun())return this.createResult(!1,"low");this.logger.log("Waiting 1000ms for ad blockers to apply rules","BlockedElementDetector.detect"),await new Promise(e=>setTimeout(e,1e3));let e=await Promise.all(this.adSelectors.map(async e=>{let t=document.querySelector(e);if(!t)return{blocked:null,directBlocked:!1,parentBlocked:!1};let r=this.isElementBlocked(t),i=!1;return this.checkParent&&t.parentElement&&!r&&(i=this.isElementBlocked(t.parentElement)),{blocked:r||i,directBlocked:r,parentBlocked:i}})),t=e.filter(e=>!0===e.blocked).length,r=e.filter(e=>!0===e.directBlocked).length,i=e.filter(e=>!0===e.parentBlocked).length,n;return n=0===t?"low":1===this.adSelectors.length&&1===r?"high":1===this.adSelectors.length&&1===i?"medium":1===t?"low":t>=2?"medium":"high",this.createResult(t>0,n)}catch(e){return this.handleError(e,"blocked element detection")}}};function g(){try{if(!a||"function"!=typeof a.getAvailable)return;0===a.getAvailable().length&&(a.register("bait-element",(e,t)=>new c(e)),a.register("fetch-ads",(e,t)=>new l(e,t.fetchUrls,t.failRatio,t.timeout,t.consentAware,t.getConsentStatus,t.preConsentDomains)),a.register("script-injection",(e,t)=>new u(e)),a.register("known-blockers",(e,t)=>new d(e)),a.register("dom-manipulation",(e,t)=>new p(e)),a.register("blocked-element",(e,t)=>new h(e,t.adSelectors,t.checkParent)))}catch(e){console.warn("DetectorRegistry initialization failed:",e)}}try{g()}catch(e){console.warn("DetectorRegistry initialization failed during module load:",e)}var f={isBlocked:!1,confidence:"low",strategy:"no-strategy",timestamp:Date.now(),detectorResults:[]},m=class{constructor(e){for(let t of(g(),this.options=this.resolveOptions(e),this.detectors={},this.options.methods))try{let r=this.createDetectorConfig(t,e),i=a.create(t,e.logger,r);this.detectors[t]=()=>i.detect()}catch(e){this.options.logger.warn(`Failed to create detector ${t}:`,"BaseStrategy.constructor",e)}}resolveOptions(e){return{...e,methods:e.methods??this.getDefaultMethods()}}createDetectorConfig(e,t){let r=t.detectorConfigs||{},i=(e={})=>({...e,consentAware:e?.consentAware??t.consentAware,getConsentStatus:e?.getConsentStatus??t.getConsentStatus,preConsentDomains:e?.preConsentDomains??t.preConsentDomains});switch(e){case"bait-element":return i(r["bait-element"]);case"fetch-ads":return i({...r["fetch-ads"],timeout:r["fetch-ads"]?.timeout??t.timeout});case"blocked-element":return i(r["blocked-element"]);case"script-injection":return i(r["script-injection"]);case"known-blockers":return i(r["known-blockers"]);case"dom-manipulation":return i(r["dom-manipulation"]);default:return{}}}async detect(){let e=[];
1if(0===this.options.methods.length)return this.options.logger.warn("No detection methods configured for strategy.","BaseStrategy.detect"),f;let t=this.options.methods.map(e=>{let t=this.detectors[e];return t?t():Promise.resolve(null)});try{(await Promise.allSettled(t.map(e=>s(e,this.options.timeout??0)))).forEach((t,r)=>{"fulfilled"===t.status&&t.value?e.push(t.value):"rejected"===t.status&&this.options.logger.warn(`Detection method ${this.options.methods[r]} failed:`,"BaseStrategy.detect",t.reason)})}catch(e){this.options.logger.error("Detection timeout or error:","BaseStrategy.detect",e)}return this.analyzeResults(e)}analyzeResults(e){if(0===e.length)return f;let t=e.filter(e=>e.isBlocked),r=t.filter(e=>"high"===e.confidence),i=t.filter(e=>"medium"===e.confidence),n=!1,s="low";return r.length>0?(n=!0,s="high"):i.length>=2||t.length>e.length/2?(n=!0,s="medium"):t.length>0&&(n=!0,s="low"),this.options.logger.log(`Generic strategy analysis: ${e.length} total, ${t.length} blocked, ${r.length} high confidence, ${i.length} medium confidence`,"BaseStrategy.analyzeResults"),{isBlocked:n,confidence:s,strategy:this.name,timestamp:Date.now(),detectorResults:e}}getMethods(){return this.options.methods}getOptions(){return{...this.options}}},y=class e extends m{constructor(t){let r=["https://connect.facebook.net/en_US/fbevents.js","https://tpc.googlesyndication.com/sodar/sodar2.js"];t.logger.log(`Constructing firefox-brave strategy with fetch URLs: ${r.join(", ")}`,"FirefoxBraveStrategy.constructor"),super({...{...t,detectorConfigs:{...t.detectorConfigs,"fetch-ads":{...t.detectorConfigs?.["fetch-ads"],fetchUrls:r,failRatio:1}}},methods:e.DEFAULT_METHODS}),this.name="firefox-brave"}getDefaultMethods(){return e.DEFAULT_METHODS}
1getDescription(){return`FirefoxBrave strategy using ${this.options.methods.length} detection methods: ${this.options.methods.join(", ")}`}};y.DEFAULT_METHODS=["fetch-ads"];var _=class e extends m{constructor(t){let r=t.detectorConfigs?.["fetch-ads"]?.fetchUrls&&t.detectorConfigs["fetch-ads"].fetchUrls.length>0?t.detectorConfigs["fetch-ads"].fetchUrls:["https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js","https://securepubads.g.doubleclick.net/tag/js/gpt.js","https://www.googletagservices.com/tag/js/gpt.js","https://cdn.doubleverify.com/dv-ads.min.js","https://contextual.media.net/dmedianet.js"];t.logger.log(`Constructing generic strategy with fetch URLs: ${r.join(", ")}`,"GenericStrategy.constructor"),super({...{...t,detectorConfigs:{...t.detectorConfigs,"fetch-ads":{...t.detectorConfigs?.["fetch-ads"],fetchUrls:r}}},methods:e.DEFAULT_METHODS}),this.name="generic"}getDefaultMethods(){return e.DEFAULT_METHODS}getDescription(){return`Generic strategy using ${this.options.methods.length} detection methods: ${this.options.methods.join(", ")}`}};_.DEFAULT_METHODS=["bait-element","fetch-ads","script-injection"];var R=class e extends m{constructor(t){let r=t.detectorConfigs?.["blocked-element"]?.adSelectors||e.DEFAULT_AD_SELECTORS,i=t.detectorConfigs?.["blocked-element"]?.checkParent??!0,n=t.timeout||5e3;t.logger.log(`Constructing safari strategy with ${r.length} ad selectors, checkParent: ${i}`,"SafariStrategy.constructor"),super({...{...t,timeout:n,detectorConfigs:{...t.detectorConfigs,"blocked-element":{...t.detectorConfigs?.["blocked-element"],adSelectors:r,checkParent:i}}},methods:e.DEFAULT_METHODS}),this.name="safari"}getDefaultMethods(){return e.DEFAULT_METHODS}
1getDescription(){let e=this.options.detectorConfigs?.["blocked-element"]?.adSelectors||[];return`Safari strategy using ${this.options.methods.length} detection methods: ${this.options.methods.join(", ")} with ${e.length} selectors`}analyzeResults(e){if(0===e.length)return{isBlocked:!1,confidence:"low",strategy:this.name,timestamp:Date.now(),detectorResults:[]};let t=e.filter(e=>e.isBlocked),r=!1,i="low";return t.length>0&&(r=!0,t.filter(e=>"high"===e.confidence).length>0?i="high":t.length>0&&(i="medium")),this.options.logger.log(`Safari strategy analysis: ${e.length} total, ${t.length} blocked, confidence: ${i}`,"SafariStrategy.analyzeResults"),{isBlocked:r,confidence:i,strategy:this.name,timestamp:Date.now(),detectorResults:e}}};R.DEFAULT_METHODS=["blocked-element"],R.DEFAULT_AD_SELECTORS=[".advertisement",".ad-banner",".ad-container",".sponsored-content",".sponsored","#ad-block","#advertisement",".ads",".ad",".mobile-ad",".banner-ad",".interstitial-ad",'[class*="google-ads"]','[class*="doubleclick"]','[id*="google_ads"]','[class*="adnxs"]','[class*="adsystem"]','[data-testid*="ad"]','[aria-label*="Sponsored"]',".sidebar-ad",".header-ad",".footer-ad",".content-ad",".in-article-ad"];var b=class e extends m{constructor(t){let r=["/media/player/videojs/videojs.ads.min.js","/js/fpu3/pu4.min.js","/js/gpu3/pu5.min.js"];t.logger.log(`Constructing ublock-ghostery strategy with fetch URLs: ${r.join(", ")}`,"UblockGhosteryStrategy.constructor"),super({...{...t,detectorConfigs:{...t.detectorConfigs,"fetch-ads":{...t.detectorConfigs?.["fetch-ads"],fetchUrls:r,failRatio:1}}},methods:e.DEFAULT_METHODS}),this.name="ublock-ghostery"}getDefaultMethods(){return e.DEFAULT_METHODS}
1getDescription(){return`UblockGhostery strategy using ${this.options.methods.length} detection methods: ${this.options.methods.join(", ")}`}};function S(){if(typeof window>"u"||typeof document>"u")return!1;try{let e=document.cookie.split(";").find(e=>e.trim().startsWith("OptanonConsent="));if(!e)return!1;let t=e.split("=").slice(1).join("=");if(!t)return!1;let r=decodeURIComponent(t),i;if(r.includes("&")){let e=r.match(/groups=([^&]+)/);if(!e)return!1;i=e[1]}else{if(!r.startsWith("groups="))return!1;i=r.substring(7)}return i.includes("C0004:1")||/(?:^|,)4:1(?:,|$)/.test(i)}catch(e){return console.warn("Error checking OneTrust consent:",e),!1}}b.DEFAULT_METHODS=["fetch-ads"];var v=class{constructor(e={}){this.isBootstrapped=!1,this.domReady=!1,this.globalOptions={timeout:e.timeout??3e3,debug:e.debug??!1,useRedirect:e.useRedirect??!1,redirectUrl:e.redirectUrl??"https://noblocky.com/ad-blocker-detected/",onDetect:e.onDetect,onNotDetect:e.onNotDetect,consentAware:e.consentAware??!1,getConsentStatus:e.getConsentStatus,preConsentDomains:e.preConsentDomains??[]},this.detectorOptions={baitElement:{...e.baitElement},blockedElement:{adSelectors:e.blockedElement?.adSelectors??[],checkParent:e.blockedElement?.checkParent??!0,...e.blockedElement},fetchAds:{fetchUrls:e.fetchAds?.fetchUrls??[],failRatio:e.fetchAds?.failRatio??.5,timeout:e.fetchAds?.timeout??this.globalOptions.timeout,preConsentDomains:e.fetchAds?.preConsentDomains??this.globalOptions.preConsentDomains,...e.fetchAds},scriptInjection:e.scriptInjection??{},knownBlockers:e.knownBlockers??{},domManipulation:e.domManipulation??{}},this.onDetect=e.onDetect,this.onNotDetect=e.onNotDetect,this.cache=new i,this.logger=new n(this.globalOptions.debug)}bootstrap(){return this.bootstrapPromise||(this.bootstrapPromise=this.performBootstrap()),this.bootstrapPromise}async performBootstrap(){if(!this.isBootstrapped){if(typeof window>"u"){this.logger.warn("NoBlocky bootstrap called in non-browser environment (SSR)","NoBlocky.bootstrap"),this.isBootstrapped=!0;return}this.logger.log("Starting NoBlocky bootstrap process","NoBlocky.bootstrap"),await this.waitForDOMReady(),this.domReady=!0,this.isBootstrapped=!0,this.logger.log("NoBlocky bootstrap complete - ready for detection","NoBlocky.bootstrap")}}async waitForDOMReady(){return new Promise(e=>{if("loading"===document.readyState){this.logger.log("Waiting for DOMContentLoaded event","NoBlocky.waitForDOMReady");let t=()=>{this.logger.log("DOMContentLoaded event fired","NoBlocky.waitForDOMReady"),document.removeEventListener("DOMContentLoaded",t),e()};document.addEventListener("DOMContentLoaded",t)}else this.logger.log("DOM already ready","NoBlocky.waitForDOMReady"),e()})}async detect(){if(this.isBootstrapped||(this.logger.log("Auto-bootstrapping before detection","NoBlocky.detect"),await this.bootstrap()),typeof window>"u")return this.logger.warn("Detection attempted in non-browser environment","NoBlocky.detect"),this.createSSRResult();this.domReady||(this.logger.warn("Detection attempted before DOM ready - waiting for bootstrap","NoBlocky.detect"),await this.bootstrap()),this.logger.log("Starting detection process","NoBlocky.detect");let e=this.cache.get(this.logger);if(e)return this.handleCallbacks(e),e;let t=this.globalOptions.consentAware?this.globalOptions.getConsentStatus||S:void 0,r=!1;this.globalOptions.consentAware&&t&&(r=!t())&&this.logger.log("Detection limited: consentAware is enabled and user consent not given","NoBlocky.detect");let i=[],n={logger:this.logger,timeout:this.globalOptions.timeout,consentAware:this.globalOptions.consentAware,getConsentStatus:t,preConsentDomains:this.globalOptions.preConsentDomains,detectorConfigs:{"bait-element":this.detectorOptions.baitElement,"blocked-element":this.detectorOptions.blockedElement,"fetch-ads":this.detectorOptions.fetchAds,"script-injection":this.detectorOptions.scriptInjection,"known-blockers":this.detectorOptions.knownBlockers,"dom-manipulation":this.detectorOptions.domManipulation}},s="low",o=0,a=[()=>new _(n),()=>new y(n),()=>new R(n),()=>new b(n)],c=this.createResult({consentLimited:r});try{for(;o<a.length&&"high"!==s;){let e=await a[o]().detect();i.push(e),o++,s=e.confidence,c=this.analyzeResults(i,r)}}catch(e){this.logger.error("Detection timeout or error:","NoBlocky.detect",e)}
1return this.logger.log(`Final analysis: isBlocked=${c.isBlocked}, confidence=${c.confidence}${r?" (consent limited)":""}`,"NoBlocky.detect",c),this.cache.set(c),this.handleCallbacks(c),this.globalOptions.useRedirect&&c.isBlocked&&this.globalOptions.redirectUrl&&"u">typeof window&&(this.logger.log(`Ad blocker detected, redirecting to ${this.globalOptions.redirectUrl}`,"NoBlocky.detect"),window.location.href=this.globalOptions.redirectUrl),c}async detectWithTimeout(){let e=this.globalOptions.timeout??3e3;return s(this.detect(),e)}analyzeResults(e,t=!1){if(0===e.length)return this.createResult({consentLimited:t});let r=e.filter(e=>e.isBlocked),i=r.filter(e=>"high"===e.confidence),n=r.filter(e=>"medium"===e.confidence),s=!1,o="low";i.length>0?(s=!0,o="high"):n.length>=2||r.length>e.length/2?(s=!0,o="medium"):0===r.length&&(o=t?"low":"medium");let a=e.filter(e=>null!=e&&"boolean"==typeof e.isBlocked);return this.createResult({strategyResults:a,isBlocked:s,confidence:o,consentLimited:t})}clearCache(){this.cache.clear()}createResult(e={}){return{isBlocked:!1,confidence:"low",timestamp:Date.now(),strategyResults:[],...e}}createSSRResult(){return this.createResult({environment:"ssr",reason:"Server-side rendering environment detected"})}handleCallbacks(e){try{e.isBlocked&&this.onDetect?(this.logger.log("Calling onDetect callback","NoBlocky.handleCallbacks"),this.onDetect(e)):!e.isBlocked&&this.onNotDetect&&(this.logger.log("Calling onNotDetect callback","NoBlocky.handleCallbacks"),this.onNotDetect(e))}catch(e){this.logger.error("Error in callback execution:","NoBlocky.handleCallbacks",e)}}};new v},48776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.CacheSortedSetPutElementResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSortedSetPutElementResponse.Error}}t.Error=o},48981:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.NotStored=t.Stored=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetIfPresentAndNotEqualResponse.Stored}}t.Stored=s;class o extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetIfPresentAndNotEqualResponse.NotStored}}t.NotStored=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSetIfPresentAndNotEqualResponse.Error}}t.Error=a},49341:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},49523:(e,t)=>
1{"use strict";function r(e,t=32){return e.length>t?e.substring(0,t)+"...":e}Object.defineProperty(t,"__esModule",{value:!0}),t.truncateStringArray=t.truncateString=void 0,t.truncateString=r,t.truncateStringArray=function(e,t=5){return(e.length<=t?e:e.slice(0,t).concat(["..."])).map(e=>r(e))}},50468:(e,t,r)=>{"use strict";let i;r.d(t,{AY:()=>o,L2:()=>a,c$:()=>c,l2:()=>s});var n=r(53476);function s(e){return c(e,location.href).href}function o(e){try{return!!c(e)}catch(e){return!1}}function a(e){let t=c(e).pathname;return"/"===t[0]?t:`/${t}`}function c(e,t){let{URL:r}=function(){if(!i){let e,t;try{(e=document.createElement("iframe")).style.display="none",document.body.appendChild(e),t=e.contentWindow}catch(e){t=n.J2}i={URL:t.URL},null==e||e.remove()}return i}();try{return void 0!==t?new r(e,t):new r(e)}catch(e){throw Error(`Failed to construct URL: ${String(e)}`)}}},50631:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LeaderboardClientConfiguration=void 0;class r{constructor(e){this.loggerFactory=e.loggerFactory,this.transportStrategy=e.transportStrategy,this.throwOnErrors=e.throwOnErrors}getLoggerFactory(){return this.loggerFactory}getTransportStrategy(){return this.transportStrategy}withClientTimeoutMillis(e){return new r({...this,transportStrategy:this.transportStrategy.withClientTimeoutMillis(e)})}withTransportStrategy(e){return new r({...this,transportStrategy:e})}getThrowOnErrors(){return this.throwOnErrors}withThrowOnErrors(e){return new r({...this,throwOnErrors:e})}}t.LeaderboardClientConfiguration=r},50777:()=>{},51088:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452),s=new TextDecoder;class o extends i.BaseResponseSuccess{constructor(e,t){super(),this.type=n.CacheKeysExistResponse.Success,this._keys=e,this._exists=t}exists(){return this._exists}valueRecord(){return this._keys.reduce((e,t,r)=>(e[s.decode(t)]=this._exists[r],e),{})}toString(){let e=this._exists.map(e=>e);return super.toString()+": exists: "+e.join(", ")}}t.Success=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheKeysExistResponse.Error}exists(){}}t.Error=a},51396:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(93765),t),n(r(82087),t)},51536:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(29369),t)},52112:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.CacheSetRemoveElementResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSetRemoveElementResponse.Error}}t.Error=o},52125:(e,t)=>{"use strict";var r,i,n;Object.defineProperty(t,"__esModule",{value:!0}),t.StorageDeleteResponse=t.StoragePutResponse=t.StorageGetResponse=void 0,(r=t.StorageGetResponse||(t.StorageGetResponse={})).Found="Found",r.NotFound="NotFound",r.Error="Error",(i=t.StoragePutResponse||(t.StoragePutResponse={})).Success="Success",i.Error="Error",(n=t.StorageDeleteResponse||(t.StorageDeleteResponse={})).Success="Success",n.Error="Error"},52205:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.NotStored=t.Stored=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetIfNotExistsResponse.Stored}}t.Stored=s;class o extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetIfNotExistsResponse.NotStored}}t.NotStored=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSetIfNotExistsResponse.Error}}t.Error=a},52491:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;class r{constructor(e){this.counter=0,this.waiting=[],this.max=e}take(){if(this.waiting.length>0&&this.counter<this.max){this.counter+=1;let e=this.waiting.shift();e&&e.resolve()}}acquire(){return this.counter<this.max?(this.counter+=1,new Promise(e=>{e(void 0)})):new Promise((e,t)=>{this.waiting.push({resolve:e,err:t})})}release(){this.counter-=1,this.take()}purge(){let e=this.waiting.length;for(let t=0;t<e;t+=1)this.waiting[t].err("Task has been purged.");return this.counter=0,this.waiting=[],e}}t.Semaphore=r},52725:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(26433),t),n(r(38836),t),n(r(49523),t),n(r(76296),t),n(r(15034),t),n(r(19090),t),n(r(46172),t),n(r(52491),t)},53476:(e,t,r)=>{"use strict";function i(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get(){return this},configurable:!0});let e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof e&&(e="object"==typeof self?self:"object"==typeof window?window:{}),e}r.d(t,{J2:()=>n,VZ:()=>i,Wq:()=>s});let n=i(),s="WorkerGlobalScope"in n},53724:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreviewLeaderboardClient=void 0;let i=r(1383),n=r(88422),s=r(84055),o=r(42378);class a{constructor(e){var t,r;const i={configuration:null!=(t=null==e?void 0:e.configuration)?t:function(){let e=o.LeaderboardConfigurations.Laptop.latest();return e.getLoggerFactory().getLogger("LeaderboardClient").info('No configuration provided to LeaderboardClient. Using default "Laptop" configuration, suitable for development. For production use, consider specifying an explicit configuration.'),e}(),credentialProvider:null!=(r=null==e?void 0:e.credentialProvider)?r:(0,s.getDefaultCredentialProvider)()};this.dataClient=new n.LeaderboardDataClient(i)}close(){this.dataClient.close()}leaderboard(e,t){return new i.Leaderboard(this.dataClient,e,t)}}t.PreviewLeaderboardClient=a},53729:(e,t,r)=>{"use strict";var i,n,s;Object.defineProperty(t,"__esModule",{value:!0}),t.LeaderboardOrder=t.SortedSetAggregate=t.SortedSetOrder=t.ttlOrFromCacheTtl=void 0;let o=r(11102);t.ttlOrFromCacheTtl=function(e){var t;return null!=(t=null==e?void 0:e.ttl)?t:o.CollectionTtl.fromCacheTtl()},(i=t.SortedSetOrder||(t.SortedSetOrder={})).Ascending="ASC",i.Descending="DESC",(n=t.SortedSetAggregate||(t.SortedSetAggregate={}))[n.SUM=0]="SUM",n[n.MIN=1]="MIN",n[n.MAX=2]="MAX",(s=t.LeaderboardOrder||(t.LeaderboardOrder={})).Ascending="ASC",s.Descending="DESC"},53820:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(e,t){super(),this.type=n.CacheSortedSetGetScoreResponse.Hit,this._value=t,this._score=e}valueUint8Array(){return this._value}valueString(){return new TextDecoder().decode(this._value)}score(){return this._score}toString(){return`${super.toString()}: value: ${this.valueString()}`}}t.Hit=s;class o extends i.BaseResponseMiss{constructor(e){super(),this.type=n.CacheSortedSetGetScoreResponse.Miss,this._value=e}valueUint8Array(){return this._value}valueString(){return new TextDecoder().decode(this._value)}score(){}toString(){return`${super.toString()}: value: ${this.valueString()}`}}t.Miss=o;class a extends i.BaseResponseError{constructor(e,t){super(e),this.type=n.CacheSortedSetGetScoreResponse.Error,this._value=t}valueUint8Array(){return this._value}valueString(){return new TextDecoder().decode(this._value)}score(){}}t.Error=a},54105:(e,t,r)=>{"use strict";let i;r.d(t,{Rr:()=>A,A2:()=>B,VJ:()=>F,Gk:()=>D,Q6:()=>
1I,a5:()=>O});var n=r(14534),s=r(2112),o=r(99857),a=r(565),c=r(80196),l=r(8799),u=r(60403),d=r(38020),p=r(36266),h=r(45664),g=r(76300),f=r(70493),m=r(78138),y=r(90662),_=r(77984),R=r(2275),b=r(99634),S=r(96241),v=r(29892),E=r(71426),C=r(53476);let T="configuration",M="usage",w=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],k=[l.R8];function P(){return i||(i=new u.dX(100)),i}function O(e,t,r,i,n,s){let o=new u.cP,{stop:y}=function(e,t,r,i,n){let s=[];if((0,R.d0)()){let e=(0,R.Y9)(),t=n.subscribe(t=>e.send("internal_telemetry",t));s.push(t.unsubscribe)}else{let o=[e.rumEndpointBuilder];e.replica&&e.site===l.Bb&&o.push(e.replica.rumEndpointBuilder);let a=(0,b.X)({encoder:i(4),request:(0,S.sA)(o,t),flushController:(0,v.tO)({pageMayExitObservable:r,sessionExpireObservable:new u.cP})});s.push(a.stop);let c=n.subscribe(a.add);s.push(c.unsubscribe)}return{stop:()=>s.forEach(e=>e())}}(t,i,n,s,o),{enabled:w,metricsEnabled:O}=function(e,t,r,i,n=1,s=15){var o;let l={},u=!k.includes(t.site)&&(0,g.ic)(t.telemetrySampleRate),y={log:u,[T]:u&&(0,g.ic)(t.telemetryConfigurationSampleRate),[M]:u&&(0,g.ic)(t.telemetryUsageSampleRate),metric:u&&(0,g.ic)(n)},R={is_local_file:(null==(o=C.J2.location)?void 0:o.protocol)==="file:",is_worker:C.Wq},b=P();return b.subscribe(({rawEvent:n,metricName:o})=>{var u,p,g,b;let S;if(o&&!y.metric||!y[n.type])return;let v=o||n.status||n.type,C=l[v];if(C||(C=l[v]=new Set),C.size>=s)return;let T=(0,f.s)(n);if(C.has(T))return;let M=r.triggerHook(1,{startTime:(0,d.M8)().relative});if(M===E.ug)return;let w=(u=M,p=e,g=n,b=R,S={type:"telemetry",date:(0,d.M8)().timeStamp,service:p,version:"6.25.0",source:"browser",_dd:{format_version:2},telemetry:(0,m.kg)(g,{runtime_env:b,connectivity:(0,_.q)(),sdk_setup:"npm"}),ddtags:(0,c.m5)(t).join(","),experimental_features:Array.from((0,a.q7)())},(0,m.kg)(S,u));i.notify(w),(0,h.b)("telemetry",w),C.add(T)}),b.unbuffer(),(0,p.Bd)(F),{enabled:u,metricsEnabled:y.metric}}(e,t,r,o);return{stop:y,enabled:w,metricsEnabled:O}}function B(e,t){(0,p.oO)(n.bP.debug,e,t),P().notify({rawEvent:{type:"log",message:e,status:"debug",...t}})}function F(e,t){P().notify({rawEvent:{type:"log",status:"error",...function(e){if((0,s.bJ)(e)){var t;let r=(0,y.T)(e);return{error:{kind:r.name,stack:(0,o.Yn)(((t=r).stack=t.stack.filter(e=>!e.url||w.some(t=>e.url.startsWith(t))),t))},message:r.message}}return{error:{stack:s.e6},message:`Uncaught ${(0,f.s)(e)}`}}(e),...t}})}function A(e){P().notify({rawEvent:{type:T,configuration:e}})}function D(e,t){P().notify({rawEvent:{type:"log",message:e,status:"debug",...t},metricName:e})}function I(e){P().notify({rawEvent:{type:M,usage:e}})}},54110:(e,t,r)=>{"use strict";function i(e,t){for(let r=e.length-1;r>=0;r-=1){let i=e[r];if(t(i,r,e))return i}}function n(e){return Object.values(e)}function s(e){return Object.entries(e)}r.d(t,{KQ:()=>n,Uk:()=>i,WP:()=>s})},54394:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.NotStored=t.Stored=void 0;let i=r(17214),n=r(94452),s=new TextDecoder;class o extends i.ResponseBase{constructor(e){super(),this.type=n.CacheSetIfPresentAndHashEqualResponse.Stored,this._hash=e}hashString(){return s.decode(this._hash)}hashUint8Array(){return this._hash}}t.Stored=o;class a extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetIfPresentAndHashEqualResponse.NotStored}}t.NotStored=a;class c extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSetIfPresentAndHashEqualResponse.Error}}t.Error=c},54425:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(e){super(),this.type=n.CacheSetLengthResponse.Hit,this._length=e}length(){return this._length}toString(){return`${super.toString()}: length ${this._length}`}}t.Hit=s;class o extends i.BaseResponseMiss{constructor(){super(),this.type=n.CacheSetLengthResponse.Miss}length(){}}t.Miss=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSetLengthResponse.Error}length(){}}t.Error=a},54572:(e,t,r)=>{"use strict";r.d(t,{l:()=>o,q:()=>s});var i=r(36266),n=r(33095);function s(e,t,r,i,n){return o(e,t,[r],i,n)}function o(e,t,r,s,{once:a,capture:c,passive:l}={}){let u=(0,i.dm)(t=>{(t.isTrusted||t.__ddIsTrusted||e.allowUntrustedEvents)&&(a&&g(),s(t))}),d=l?{capture:c,passive:l}:c,p=window.EventTarget&&t instanceof EventTarget?window.EventTarget.prototype:t,h=(0,n.W)(p,"addEventListener");function g(){let e=(0,n.W)(p,"removeEventListener");r.forEach(r=>e.call(t,r,u,d))}
1return r.forEach(e=>h.call(t,e,u,d)),{stop:g}}},55474:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(e){super(),this.type=n.GetWebhookSecretResponse.Success,this._secret=e.secret,this._cacheName=e.cacheName,this._webhookName=e.webhookName}secret(){return this._secret}webhookName(){return this._webhookName}cacheName(){return this._cacheName}toString(){return super.toString()+": "+this._webhookName}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.GetWebhookSecretResponse.Error}}t.Error=o},56093:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_SUBSCRIPTION_RETRY_DELAY_MILLIS=void 0,t.DEFAULT_SUBSCRIPTION_RETRY_DELAY_MILLIS=500},56173:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},56278:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__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)&&i(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TokenClient=void 0;let o=s(r(43092)),a=s(r(21595));class c{constructor(e,t,r){this.methodDescriptorGenerateDisposableToken=new o.MethodDescriptor("/token.Token/GenerateDisposableToken",o.MethodType.UNARY,a._GenerateDisposableTokenRequest,a._GenerateDisposableTokenResponse,e=>e.serializeBinary(),a._GenerateDisposableTokenResponse.deserializeBinary),r||(r={}),t||(t={}),r.format="text",this.client_=new o.GrpcWebClientBase(r),this.hostname_=e,this.credentials_=t,this.options_=r}generateDisposableToken(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/token.Token/GenerateDisposableToken",e,t||{},this.methodDescriptorGenerateDisposableToken,r):this.client_.unaryCall(this.hostname_+"/token.Token/GenerateDisposableToken",e,t||{},this.methodDescriptorGenerateDisposableToken)}}t.TokenClient=c},56305:()=>{},57049:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(e){super(),this.type=n.RotateWebhookSecretResponse.Success,this._secret=e.secret,this._cacheName=e.cacheName,this._webhookName=e.webhookName}secret(){return this._secret}webhookName(){return this._webhookName}cacheName(){return this._cacheName}toString(){return super.toString()+": "+this._webhookName}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.RotateWebhookSecretResponse.Error}}t.Error=o},57218:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.CacheDictionarySetFieldResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheDictionarySetFieldResponse.Error}}t.Error=o},57435:(e,t)=>{"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultMomentoLogger=t.DefaultMomentoLoggerFactory=t.DefaultMomentoLoggerLevel=void 0,(i=r=t.DefaultMomentoLoggerLevel||(t.DefaultMomentoLoggerLevel={}))[i.TRACE=5]="TRACE",i[i.DEBUG=10]="DEBUG",i[i.INFO=20]="INFO",i[i.WARN=30]="WARN",i[i.ERROR=40]="ERROR";class n{constructor(e=r.INFO){this.level=e}getLogger(e){return new s(e,this.level)}}t.DefaultMomentoLoggerFactory=n;class s{constructor(e,t){this.loggerName="string"==typeof e||e instanceof String?e:e.constructor.name,this.level=t}trace(e,...t){this.level>r.TRACE||this.outputMessage(console.log,r.TRACE,e,t)}debug(e,...t){this.level>r.DEBUG||this.outputMessage(console.log,r.DEBUG,e,t)}info(e,...t){this.level>r.INFO||this.outputMessage(console.log,r.INFO,e,t)}warn(e,...t){this.level>r.WARN||this.outputMessage(console.warn,r.WARN,e,t)}error(e,...t){this.level>r.ERROR||this.outputMessage(console.error,r.ERROR,e,t)}outputMessage(e,t,i,n){e(`[${new Date().toISOString()}] ${r[t]} (Momento: ${this.loggerName}): ${i}${n.join(",")}`)}}t.DefaultMomentoLogger=s},57628:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Browser=t.Laptop=t.Default=void 0;let i=r(57435),n=r(76911),s=new i.DefaultMomentoLoggerFactory;class o extends n.TopicClientConfiguration{static latest(e=s){return new n.TopicClientConfiguration({loggerFactory:e,throwOnErrors:!1})}}t.Default=o;class a extends n.TopicClientConfiguration{static latest(e=s){return a.v1(e)}static v1(e=s){return new a({loggerFactory:e,throwOnErrors:!1})}}t.Laptop=a;class c extends n.TopicClientConfiguration{static latest(e=s){return c.v1(e)}static v1(e=s){return new c({loggerFactory:e,throwOnErrors:!1})}}t.Browser=c},57740:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.middlewaresInterceptor=void 0;let i=r(97754);t.middlewaresInterceptor=function(e,t,r){return new n(e,t,r)};class n{constructor(e,t,r){this.logger=e.getLogger(this.constructor.name),this.middlewares=t,this.middlewareRequestContext=r}intercept(e,t){let r=this.middlewares.map(e=>e.onNewRequest(this.middlewareRequestContext)),n=new i.MiddlewareRequest(e),o=r.reduce((e,t)=>t.onRequest(e),n);return new s(this.logger,this.middlewareRequestContext,r,t(o._grpcRequest))}}
1class s{constructor(e,t,r,i){this.logger=e,this.middlewareRequestContext=t,this.middlewareRequestHandlers=r,this.stream=i,this.reversedMiddlewareRequestHandlers=[...this.middlewareRequestHandlers].reverse()}on(e,t){switch(e){case"error":return this.onResponseError(e,t);case"status":return this.onResponseStatus(e,t);case"metadata":return this.onResponseMetadata(e,t);case"data":return this.onResponseData(e,t);case"end":return this.onResponseEnd(e,t);default:return this.stream.on(e,t)}}removeListener(e,t){}cancel(){this.stream.cancel()}onResponseError(e,t){return this.stream.on(e,t)}onResponseStatus(e,t){let r=e=>{t(o("onResponseStatus",this.reversedMiddlewareRequestHandlers,e=>t=>e.onResponseStatus(t),new i.MiddlewareStatus(e))._grpcStatus)};return this.stream.on(e,r)}onResponseMetadata(e,t){let r=e=>{t(o("onResponseMetadata",this.reversedMiddlewareRequestHandlers,e=>t=>e.onResponseMetadata(t),new i.MiddlewareMetadata(e))._grpcMetadata)};return this.stream.on(e,r)}onResponseData(e,t){let r=e=>{t(o("onResponseData",this.reversedMiddlewareRequestHandlers,e=>t=>e.onResponseData(t),new i.MiddlewareMessage(e))._grpcMessage)};return this.stream.on(e,r)}onResponseEnd(e,t){let r=()=>{o("onResponseEnd",this.reversedMiddlewareRequestHandlers,e=>()=>e.onResponseEnd(),void 0),t()};return this.stream.on(e,r)}}function o(e,t,r,i){let n=t,s=i;for(;n.length>0;)s=r(n[0])(s),n=n.slice(1);return s}},57758:(e,t,r)=>{var i=r(64555),n={};i.exportSymbol("_PingRequest",null,n),i.exportSymbol("_PingResponse",null,n),n._PingRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._PingRequest,i.Message),i.DEBUG&&!COMPILED&&(n._PingRequest.displayName="proto._PingRequest"),n._PingResponse=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._PingResponse,i.Message),i.DEBUG&&!COMPILED&&(n._PingResponse.displayName="proto._PingResponse"),i.Message.GENERATE_TO_OBJECT&&(n._PingRequest.prototype.toObject=function(e){return n._PingRequest.toObject(e,this)},n._PingRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n._PingRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._PingRequest;return n._PingRequest.deserializeBinaryFromReader(r,t)},n._PingRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n._PingRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._PingRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._PingRequest.serializeBinaryToWriter=function(e,t){},i.Message.GENERATE_TO_OBJECT&&(n._PingResponse.prototype.toObject=function(e){return n._PingResponse.toObject(e,this)},n._PingResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n._PingResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._PingResponse;return n._PingResponse.deserializeBinaryFromReader(r,t)},n._PingResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n._PingResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._PingResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._PingResponse.serializeBinaryToWriter=function(e,t){},i.object.extend(t,n)},58458:(e,t,r)=>{"use strict";r.d(t,{$:()=>a});var i=r(63189),n=r(16976),s=r(37112),o=r(99177),a=class extends o.Q{constructor(e={}){super(),this.config=e,this.#c=new Map}#c;build(e,t,r){let s=t.queryKey,o=t.queryHash??(0,i.F$)(s,t),a=this.get(o);return a||(a=new n.X({client:e,queryKey:s,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(a)),a}add(e){this.#c.has(e.queryHash)||(this.#c.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#c.get(e.queryHash);t&&(e.destroy(),t===e&&this.#c.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){s.jG.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#c.get(e)}getAll(){return[...this.#c.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,i.MK)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,i.MK)(e,t)):t}notify(e){s.jG.batch(()=>
1{this.listeners.forEach(t=>{t(e)})})}onFocus(){s.jG.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){s.jG.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}},58877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.CacheListRemoveValueResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheListRemoveValueResponse.Error}}t.Error=o},58989:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(68720),t),n(r(3312),t),n(r(70290),t),n(r(18244),t),n(r(47560),t),n(r(12463),t)},58999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(52725),s=r(94452),o=new TextDecoder;class a extends i.ResponseBase{constructor(e){super(),this.type=s.CacheSetFetchResponse.Hit,this.elements=e}valueSet(){return this.valueSetString()}valueSetString(){return new Set(this.elements.map(e=>o.decode(e)))}valueSetUint8Array(){return new Set(this.elements)}value(){return this.valueArrayString()}valueArray(){return this.valueArrayString()}valueArrayString(){return this.elements.map(e=>o.decode(e))}valueArrayUint8Array(){return this.elements}toString(){let e=(0,n.truncateStringArray)(Array.from(this.valueSetString()));return`${super.toString()}: [${e.toString()}]`}}t.Hit=a;class c extends i.BaseResponseMiss{constructor(){super(...arguments),this.type=s.CacheSetFetchResponse.Miss}value(){}}t.Miss=c;class l extends i.BaseResponseError{constructor(e){super(e),this.type=s.CacheSetFetchResponse.Error}value(){}}t.Error=l},59398:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.NotStored=t.Stored=void 0;let i=r(17214),n=r(94452),s=new TextDecoder;class o extends i.ResponseBase{constructor(e){super(),this.type=n.CacheSetIfPresentAndHashNotEqualResponse.Stored,this._hash=e}hashString(){return s.decode(this._hash)}hashUint8Array(){return this._hash}}t.Stored=o;class a extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetIfPresentAndHashNotEqualResponse.NotStored}}t.NotStored=a;class c extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSetIfPresentAndHashNotEqualResponse.Error}}t.Error=c},59788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthClient=void 0;let i=r(35020),n=r(41310),s=r(84055);class o extends i.AbstractAuthClient{constructor(e){super({createAuthClient:()=>{var t;let r={...e,credentialProvider:null!=(t=null==e?void 0:e.credentialProvider)?t:(0,s.getDefaultCredentialProvider)()};return new n.InternalWebGrpcAuthClient(r)}})}}t.AuthClient=o},60403:(e,t,r)=>{"use strict";r.d(t,{dX:()=>c,cP:()=>o,Fx:()=>a});var i=r(36266),n=r(53476);function s(e){var t;let r=null==(t=n.J2.queueMicrotask)?void 0:t.bind(n.J2);"function"==typeof r?r((0,i.dm)(e)):Promise.resolve().then((0,i.dm)(e))}class o{constructor(e){this.onFirstSubscribe=e,this.observers=[]}subscribe(e){return this.addObserver(e),{unsubscribe:()=>this.removeObserver(e)}}notify(e){this.observers.forEach(t=>t(e))}addObserver(e){this.observers.push(e),1===this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe(this)||void 0)}removeObserver(e){this.observers=this.observers.filter(t=>e!==t),!this.observers.length&&this.onLastUnsubscribe&&this.onLastUnsubscribe()}}function a(...e){return new o(t=>{let r=e.map(e=>e.subscribe(e=>t.notify(e)));return()=>r.forEach(e=>e.unsubscribe())})}class c extends o{constructor(e){super(),this.maxBufferSize=e,this.buffer=[]}notify(e){this.buffer.push(e),this.buffer.length>this.maxBufferSize&&this.buffer.shift(),super.notify(e)}subscribe(e){let t=!1;return s(()=>{for(let r of this.buffer){if(t)return;e(r)}t||this.addObserver(e)}),{unsubscribe:()=>{t=!0,this.removeObserver(e)}}}unbuffer(){s(()=>{this.maxBufferSize=this.buffer.length=0})}}},60828:()=>{},61337:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452),s=r(52725);class o extends i.BaseResponseSuccess{constructor(e,t,r){super(),this.type=n.GenerateDisposableTokenResponse.Success,this.authToken=(0,s.encodeToBase64)(JSON.stringify({endpoint:t,api_key:e})),this.endpoint=t,this.expiresAt=r}}t.Success=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.GenerateDisposableTokenResponse.Error}}t.Error=a},61383:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(e){super(),this.type=n.CacheListPushBackResponse.Success,this._listLength=e}listLength(){return this._listLength}toString(){return`${super.toString()}: listLength: ${this._listLength}`}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheListPushBackResponse.Error}}t.Error=o},61624:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(86990),t),n(r(14285),t),n(r(78797),t)},61748:(e,t)=>{"use strict";var r,i,n;Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteStoreResponse=t.ListStoresResponse=t.CreateStoreResponse=void 0,(r=t.CreateStoreResponse||(t.CreateStoreResponse={})).Success="Success",r.AlreadyExists="AlreadyExists",r.Error="Error",(i=t.ListStoresResponse||(t.ListStoresResponse={})).Success="Success",i.Error="Error",(n=t.DeleteStoreResponse||(t.DeleteStoreResponse={})).Success="Success",n.Error="Error"},62e3:()=>{},62710:(e,t,r)=>{"use strict";function i(e){return e>=500}function n(e){try{return e.clone()}catch(e){return}}r.d(t,{G:()=>i,i:()=>n})},63167:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__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)&&i(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ScsControlClient=void 0;let o=s(r(43092)),a=s(r(70906));class c{constructor(e,t,r){this.methodDescriptorCreateCache=new o.MethodDescriptor("/control_client.ScsControl/CreateCache",o.MethodType.UNARY,a._CreateCacheRequest,a._CreateCacheResponse,e=>e.serializeBinary(),a._CreateCacheResponse.deserializeBinary),this.methodDescriptorDeleteCache=new o.MethodDescriptor("/control_client.ScsControl/DeleteCache",o.MethodType.UNARY,a._DeleteCacheRequest,a._DeleteCacheResponse,e=>e.serializeBinary(),a._DeleteCacheResponse.deserializeBinary),this.methodDescriptorListCaches=new o.MethodDescriptor("/control_client.ScsControl/ListCaches",o.MethodType.UNARY,a._ListCachesRequest,a._ListCachesResponse,e=>e.serializeBinary(),a._ListCachesResponse.deserializeBinary),this.methodDescriptorFlushCache=new o.MethodDescriptor("/control_client.ScsControl/FlushCache",o.MethodType.UNARY,a._FlushCacheRequest,a._FlushCacheResponse,e=>e.serializeBinary(),a._FlushCacheResponse.deserializeBinary),this.methodDescriptorCreateSigningKey=new o.MethodDescriptor("/control_client.ScsControl/CreateSigningKey",o.MethodType.UNARY,a._CreateSigningKeyRequest,a._CreateSigningKeyResponse,e=>e.serializeBinary(),a._CreateSigningKeyResponse.deserializeBinary),this.methodDescriptorRevokeSigningKey=new o.MethodDescriptor("/control_client.ScsControl/RevokeSigningKey",o.MethodType.UNARY,a._RevokeSigningKeyRequest,a._RevokeSigningKeyResponse,e=>e.serializeBinary(),a._RevokeSigningKeyResponse.deserializeBinary),this.methodDescriptorListSigningKeys=new o.MethodDescriptor("/control_client.ScsControl/ListSigningKeys",o.MethodType.UNARY,a._ListSigningKeysRequest,a._ListSigningKeysResponse,e=>e.serializeBinary(),a._ListSigningKeysResponse.deserializeBinary),this.methodDescriptorCreateIndex=new o.MethodDescriptor("/control_client.ScsControl/CreateIndex",o.MethodType.UNARY,a._
1CreateIndexRequest,a._CreateIndexResponse,e=>e.serializeBinary(),a._CreateIndexResponse.deserializeBinary),this.methodDescriptorDeleteIndex=new o.MethodDescriptor("/control_client.ScsControl/DeleteIndex",o.MethodType.UNARY,a._DeleteIndexRequest,a._DeleteIndexResponse,e=>e.serializeBinary(),a._DeleteIndexResponse.deserializeBinary),this.methodDescriptorListIndexes=new o.MethodDescriptor("/control_client.ScsControl/ListIndexes",o.MethodType.UNARY,a._ListIndexesRequest,a._ListIndexesResponse,e=>e.serializeBinary(),a._ListIndexesResponse.deserializeBinary),r||(r={}),t||(t={}),r.format="text",this.client_=new o.GrpcWebClientBase(r),this.hostname_=e,this.credentials_=t,this.options_=r}createCache(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/CreateCache",e,t||{},this.methodDescriptorCreateCache,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/CreateCache",e,t||{},this.methodDescriptorCreateCache)}deleteCache(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/DeleteCache",e,t||{},this.methodDescriptorDeleteCache,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/DeleteCache",e,t||{},this.methodDescriptorDeleteCache)}listCaches(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/ListCaches",e,t||{},this.methodDescriptorListCaches,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/ListCaches",e,t||{},this.methodDescriptorListCaches)}flushCache(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/FlushCache",e,t||{},this.methodDescriptorFlushCache,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/FlushCache",e,t||{},this.methodDescriptorFlushCache)}createSigningKey(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/CreateSigningKey",e,t||{},this.methodDescriptorCreateSigningKey,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/CreateSigningKey",e,t||{},this.methodDescriptorCreateSigningKey)}revokeSigningKey(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/RevokeSigningKey",e,t||{},this.methodDescriptorRevokeSigningKey,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/RevokeSigningKey",e,t||{},this.methodDescriptorRevokeSigningKey)}listSigningKeys(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/ListSigningKeys",e,t||{},this.methodDescriptorListSigningKeys,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/ListSigningKeys",e,t||{},this.methodDescriptorListSigningKeys)}createIndex(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/CreateIndex",e,t||{},this.methodDescriptorCreateIndex,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/CreateIndex",e,t||{},this.methodDescriptorCreateIndex)}deleteIndex(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/DeleteIndex",e,t||{},this.methodDescriptorDeleteIndex,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/DeleteIndex",e,t||{},this.methodDescriptorDeleteIndex)}listIndexes(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/control_client.ScsControl/ListIndexes",e,t||{},this.methodDescriptorListIndexes,r):this.client_.unaryCall(this.hostname_+"/control_client.ScsControl/ListIndexes",e,t||{},this.methodDescriptorListIndexes)}}t.ScsControlClient=c},63223:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.NotStored=t.Stored=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetIfNotEqualResponse.Stored}}t.Stored=s;class o extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetIfNotEqualResponse.NotStored}}t.NotStored=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSetIfNotEqualResponse.Error}}t.Error=a},64051:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.DeleteCacheResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.DeleteCacheResponse.Error}}t.Error=o},64647:(e,t,r)=>{"use strict";function i(e){return null===e?"null":Array.isArray(e)?"array":typeof e}r.d(t,{P:()=>i})},64813:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.ReadConcern=void 0,(r=t.ReadConcern||(t.ReadConcern={})).BALANCED="balanced",r.CONSISTENT="consistent"},65359:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.CacheDictionarySetFieldsResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheDictionarySetFieldsResponse.Error}}t.Error=o},65898:(e,t)=>{"use strict";var r,i,n,s,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ListWebhooksResponse=t.GetWebhookSecretResponse=t.RotateWebhookSecretResponse=t.DeleteWebhookResponse=t.PutWebhookResponse=void 0,(r=t.PutWebhookResponse||(t.PutWebhookResponse={})).Success="Success",r.Error="Error",(i=t.DeleteWebhookResponse||(t.DeleteWebhookResponse={})).Success="Success",i.Error="Error",(n=t.RotateWebhookSecretResponse||(t.RotateWebhookSecretResponse={})).Success="Success",n.Error="Error",(s=t.GetWebhookSecretResponse||(t.GetWebhookSecretResponse={})).Success="Success",s.Error="Error",(o=t.ListWebhooksResponse||(t.ListWebhooksResponse={})).Success="Success",o.Error="Error"},66680:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.NotStored=t.Stored=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetIfPresentResponse.Stored}}t.Stored=s;class o extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetIfPresentResponse.NotStored}}t.NotStored=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSetIfPresentResponse.Error}}t.Error=a},67294:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.LeaderboardDeleteResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.LeaderboardDeleteResponse.Error}}t.Error=o},67323:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(52725),s=r(94452),o=new TextDecoder;class a extends i.ResponseBase{constructor(e){super(),this.type=s.CacheSetSampleResponse.Hit,this.elements=e}valueSet(){return this.valueSetString()}valueSetString(){return new Set(this.elements.map(e=>o.decode(e)))}valueSetUint8Array(){return new Set(this.elements)}value(){return this.valueArrayString()}valueArray(){return this.valueArrayString()}valueArrayString(){return this.elements.map(e=>o.decode(e))}valueArrayUint8Array(){return this.elements}toString(){let e=(0,n.truncateStringArray)(Array.from(this.valueSetString()));return`${super.toString()}: [${e.toString()}]`}}t.Hit=a;class c extends i.BaseResponseMiss{constructor(){super(...arguments),this.type=s.CacheSetSampleResponse.Miss}value(){}}t.Miss=c;class l extends i.BaseResponseError{constructor(e){super(e),this.type=s.CacheSetSampleResponse.Error}value(){}}t.Error=l},67384:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(52725),s=r(94452),o=new TextDecoder;class a extends i.ResponseBase{constructor(e){super(),this.type=s.CacheSetPopResponse.Hit,this.elements=e}valueSet(){return this.valueSetString()}valueSetString(){return new Set(this.elements.map(e=>o.decode(e)))}valueSetUint8Array(){return new Set(this.elements)}value(){return this.valueArrayString()}valueArray(){return this.valueArrayString()}valueArrayString(){return this.elements.map(e=>o.decode(e))}valueArrayUint8Array(){return this.elements}toString(){let e=(0,n.truncateStringArray)(Array.from(this.valueSetString()));return`${super.toString()}: [${e.toString()}]`}}t.Hit=a;class c extends i.BaseResponseMiss{constructor(){super(...arguments),this.type=s.CacheSetPopResponse.Miss}value(){}}t.Miss=c;class l extends i.BaseResponseError{constructor(e){super(e),this.type=s.CacheSetPopResponse.Error}value(){}}t.Error=l},68720:(e,t)=>{"use strict";var r,i,n,s,o,a,c,l,u;
1Object.defineProperty(t,"__esModule",{value:!0}),t.CacheDictionarySetFieldsResponse=t.CacheDictionarySetFieldResponse=t.CacheDictionaryRemoveFieldsResponse=t.CacheDictionaryRemoveFieldResponse=t.CacheDictionaryLengthResponse=t.CacheDictionaryIncrementResponse=t.CacheDictionaryFetchResponse=t.CacheDictionaryGetFieldResponse=t.CacheDictionaryGetFieldsResponse=void 0,(r=t.CacheDictionaryGetFieldsResponse||(t.CacheDictionaryGetFieldsResponse={})).Hit="Hit",r.Miss="Miss",r.Error="Error",(i=t.CacheDictionaryGetFieldResponse||(t.CacheDictionaryGetFieldResponse={})).Hit="Hit",i.Miss="Miss",i.Error="Error",(n=t.CacheDictionaryFetchResponse||(t.CacheDictionaryFetchResponse={})).Hit="Hit",n.Miss="Miss",n.Error="Error",(s=t.CacheDictionaryIncrementResponse||(t.CacheDictionaryIncrementResponse={})).Success="Success",s.Error="Error",(o=t.CacheDictionaryLengthResponse||(t.CacheDictionaryLengthResponse={})).Hit="Hit",o.Miss="Miss",o.Error="Error",(a=t.CacheDictionaryRemoveFieldResponse||(t.CacheDictionaryRemoveFieldResponse={})).Success="Success",a.Error="Error",(c=t.CacheDictionaryRemoveFieldsResponse||(t.CacheDictionaryRemoveFieldsResponse={})).Success="Success",c.Error="Error",(l=t.CacheDictionarySetFieldResponse||(t.CacheDictionarySetFieldResponse={})).Success="Success",l.Error="Error",(u=t.CacheDictionarySetFieldsResponse||(t.CacheDictionarySetFieldsResponse={})).Success="Success",u.Error="Error"},69421:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.CacheDictionaryRemoveFieldsResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheDictionaryRemoveFieldsResponse.Error}}t.Error=o},70045:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.RefreshApiKeyResponse=void 0,(r=t.RefreshApiKeyResponse||(t.RefreshApiKeyResponse={})).Success="Success",r.Error="Error"},70290:(e,t)=>{"use strict";var r,i,n,s,o,a,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),t.CacheSetLengthResponse=t.CacheSetPopResponse=t.CacheSetSampleResponse=t.CacheSetRemoveElementsResponse=t.CacheSetRemoveElementResponse=t.CacheSetContainsElementsResponse=t.CacheSetContainsElementResponse=t.CacheSetFetchResponse=t.CacheSetAddElementsResponse=t.CacheSetAddElementResponse=void 0,(r=t.CacheSetAddElementResponse||(t.CacheSetAddElementResponse={})).Success="Success",r.Error="Error",(i=t.CacheSetAddElementsResponse||(t.CacheSetAddElementsResponse={})).Success="Success",i.Error="Error",(n=t.CacheSetFetchResponse||(t.CacheSetFetchResponse={})).Hit="Hit",n.Miss="Miss",n.Error="Error",(s=t.CacheSetContainsElementResponse||(t.CacheSetContainsElementResponse={})).Hit="Hit",s.Miss="Miss",s.Error="Error",(o=t.CacheSetContainsElementsResponse||(t.CacheSetContainsElementsResponse={})).Hit="Hit",o.Miss="Miss",o.Error="Error",(a=t.CacheSetRemoveElementResponse||(t.CacheSetRemoveElementResponse={})).Success="Success",a.Error="Error",(c=t.CacheSetRemoveElementsResponse||(t.CacheSetRemoveElementsResponse={})).Success="Success",c.Error="Error",(l=t.CacheSetSampleResponse||(t.CacheSetSampleResponse={})).Hit="Hit",l.Miss="Miss",l.Error="Error",(u=t.CacheSetPopResponse||(t.CacheSetPopResponse={})).Hit="Hit",u.Miss="Miss",u.Error="Error",(d=t.CacheSetLengthResponse||(t.CacheSetLengthResponse={})).Hit="Hit",d.Miss="Miss",d.Error="Error"},70493:(e,t,r)=>{"use strict";r.d(t,{M:()=>s,s:()=>n});var i=r(47111);function n(e,t,r){if("object"!=typeof e||null===e)return JSON.stringify(e);let i=s(Object.prototype),n=s(Array.prototype),o=s(Object.getPrototypeOf(e)),a=s(e);try{return JSON.stringify(e,t,r)}catch(e){return"<error: unable to serialize object>"}finally{i(),n(),o(),a()}}function s(e){let t=e.toJSON;return t?(delete e.toJSON,()=>{e.toJSON=t}):i.l}},70805:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(e){super(),this.type=n.CacheDictionaryLengthResponse.Hit,this._length=e}length(){return this._length}toString(){return`${super.toString()}: length ${this._length}`}value(){return this._length}}t.Hit=s;class o extends i.BaseResponseMiss{constructor(){super(...arguments),this.type=n.CacheDictionaryLengthResponse.Miss}value(){}}t.Miss=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheDictionaryLengthResponse.Error}value(){}}t.Error=a},70906:(e,t,r)=>{var i=r(64555),n={};i.exportSymbol("_Cache",null,n),i.exportSymbol("_CacheLimits",null,n),i.exportSymbol("_CreateCacheRequest",null,n),i.exportSymbol("_CreateCacheResponse",null,n),i.exportSymbol("_CreateIndexRequest",null,n),i.exportSymbol("_CreateIndexResponse",null,n),i.exportSymbol("_CreateSigningKeyRequest",null,n),i.exportSymbol("_CreateSigningKeyResponse",null,n),i.exportSymbol("_DeleteC
1acheRequest",null,n),i.exportSymbol("_DeleteCacheResponse",null,n),i.exportSymbol("_DeleteIndexRequest",null,n),i.exportSymbol("_DeleteIndexResponse",null,n),i.exportSymbol("_FlushCacheRequest",null,n),i.exportSymbol("_FlushCacheResponse",null,n),i.exportSymbol("_ListCachesRequest",null,n),i.exportSymbol("_ListCachesResponse",null,n),i.exportSymbol("_ListIndexesRequest",null,n),i.exportSymbol("_ListIndexesResponse",null,n),i.exportSymbol("_ListIndexesResponse._Index",null,n),i.exportSymbol("_ListSigningKeysRequest",null,n),i.exportSymbol("_ListSigningKeysResponse",null,n),i.exportSymbol("_RevokeSigningKeyRequest",null,n),i.exportSymbol("_RevokeSigningKeyResponse",null,n),i.exportSymbol("_SigningKey",null,n),i.exportSymbol("_SimilarityMetric",null,n),i.exportSymbol("_SimilarityMetric.SimilarityMetricCase",null,n),i.exportSymbol("_SimilarityMetric._CosineSimilarity",null,n),i.exportSymbol("_SimilarityMetric._EuclideanSimilarity",null,n),i.exportSymbol("_SimilarityMetric._InnerProduct",null,n),i.exportSymbol("_TopicLimits",null,n),n._SimilarityMetric=function(e){i.Message.initialize(this,e,0,-1,null,n._SimilarityMetric.oneofGroups_)},i.inherits(n._SimilarityMetric,i.Message),i.DEBUG&&!COMPILED&&(n._SimilarityMetric.displayName="proto._SimilarityMetric"),n._SimilarityMetric._EuclideanSimilarity=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._SimilarityMetric._EuclideanSimilarity,i.Message),i.DEBUG&&!COMPILED&&(n._SimilarityMetric._EuclideanSimilarity.displayName="proto._SimilarityMetric._EuclideanSimilarity"),n._SimilarityMetric._InnerProduct=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._SimilarityMetric._InnerProduct,i.Message),i.DEBUG&&!COMPILED&&(n._SimilarityMetric._InnerProduct.displayName="proto._SimilarityMetric._InnerProduct"),n._SimilarityMetric._CosineSimilarity=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._SimilarityMetric._CosineSimilarity,i.Message),i.DEBUG&&!COMPILED&&(n._SimilarityMetric._CosineSimilarity.displayName="proto._SimilarityMetric._CosineSimilarity"),n._CreateIndexRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._CreateIndexRequest,i.Message),i.DEBUG&&!COMPILED&&(n._CreateIndexRequest.displayName="proto._CreateIndexRequest"),n._CreateIndexResponse=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._CreateIndexResponse,i.Message),i.DEBUG&&!COMPILED&&(n._CreateIndexResponse.displayName="proto._CreateIndexResponse"),n._DeleteIndexRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._DeleteIndexRequest,i.Message),i.DEBUG&&!COMPILED&&(n._DeleteIndexRequest.displayName="proto._DeleteIndexRequest"),n._DeleteIndexResponse=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._DeleteIndexResponse,i.Message),i.DEBUG&&!COMPILED&&(n._DeleteIndexResponse.displayName="proto._DeleteIndexResponse"),n._ListIndexesRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._ListIndexesRequest,i.Message),i.DEBUG&&!COMPILED&&(n._ListIndexesRequest.displayName="proto._ListIndexesRequest"),n._ListIndexesResponse=function(e){i.Message.initialize(this,e,0,-1,n._ListIndexesResponse.repeatedFields_,null)},i.inherits(n._ListIndexesResponse,i.Message),i.DEBUG&&!COMPILED&&(n._ListIndexesResponse.displayName="proto._ListIndexesResponse"),n._ListIndexesResponse._Index=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._ListIndexesResponse._Index,i.Message),i.DEBUG&&!COMPILED&&(n._ListIndexesResponse._Index.displayName="proto._ListIndexesResponse._Index"),n._DeleteCacheRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._DeleteCacheRequest,i.Message),i.DEBUG&&!COMPILED&&(n._DeleteCacheRequest.displayName="proto._DeleteCacheRequest"),n._DeleteCacheResponse=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._DeleteCacheResponse,i.Message),i.DEBUG&&!COMPILED&&(n._DeleteCacheResponse.displayName="proto._DeleteCacheResponse"),n._CreateCacheRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._CreateCacheRequest,i.Message),i.DEBUG&&!COMPILED&&(n._CreateCacheRequest.displayName="proto._CreateCacheRequest"),n._CreateCacheResponse=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._CreateCacheResponse,i.Message),i.DEBUG&&!COMPILED&&(n._CreateCacheResponse.displayName="proto._CreateCacheResponse"),n._ListCachesRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._ListCachesRequest,i.Message),i.DEBUG&&!COMPILED&&(n._ListCachesRequest.displayName="proto._ListCachesRequest"),n._CacheLimits=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._CacheLimits,i.Message),i.DEBUG&&!COMPILED&&(n._CacheLimits.displayName="proto._CacheLimits"),n._TopicLimits=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._TopicLimits,i.Message),i.DEBUG&&!COMPILED&&(n._TopicLimits.displayName="proto._TopicLimits"),n._Cache=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._Cache,i.Message),i.DEBUG&&!COMPILED&&(n._Cache.displayName="proto._Cache"),n._ListCachesResponse=function(e){i.Message.initialize(this,e,0,-1,n._ListCachesResponse.repeatedFields_,null)},i.inherits(n._ListCachesResponse,i.Message),i.DEBUG&&!COMPILED&&(n._ListCachesResponse.displayName="proto._ListCachesResponse"),n._CreateSigningKeyRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._CreateSigningKeyRequest,i.Message),i.DEBUG&&!COMPILED&&(n._CreateSigningKeyRequest.displayName="proto._CreateSigningKeyRequest"),n._CreateSigningKeyResponse=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._CreateSigningKeyResponse,i.Message),i.DEBUG&&!COMPILED&&(n._CreateSigningKeyResponse.displayName="proto._CreateSigningKeyResponse"),n._RevokeSigningKeyRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._RevokeSigningKeyRequest,i.Message),i.DEBUG&&!COMPILED&&(n._RevokeSigningKeyRequest.displayName="proto._RevokeSigningKeyRequest"),n._RevokeSigningKeyResponse=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._RevokeSigningKeyResponse,i.Message),i.DEBUG&&!COMPILED&&(n._RevokeSigningKeyResponse.displayName="proto._RevokeSigningKeyResponse"),n._SigningKey=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._SigningKey,i.Message),i.DEBUG&&!COMPILED&&(n._SigningKey.displayName="proto._SigningKey"),n._ListSigningKeysRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._ListSigningKeysRequest,i.Message),i.DEBUG&&!COMPILED&&(n._ListSigningKeysRequest.displayName="proto._ListSigningKeysRequest"),n._ListSigningKeysResponse=function(e){i.Message.initialize(this,e,0,-1,n._ListSigningKeysResponse.repeatedFields_,null)},i.inherits(n._ListSigningKeysResponse,i.Message),i.DEBUG&&!COMPILED&&(n._ListSigningKeysResponse.displayName="proto._ListSigningKeysResponse"),n._FlushCacheRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._FlushCacheRequest,i.Message),i.DEBUG&&!COMPILED&&(n._FlushCacheRequest.displayName="proto._FlushCacheRequest"),n._FlushCacheResponse=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._FlushCacheResponse,i.Message),i.DEBUG&&!COMPILED&&(n._FlushCacheResponse.displayName="proto._FlushCacheResponse"),n._SimilarityMetric.oneofGroups_=[[1,2,3]],n._SimilarityMetric.SimilarityMetricCase={SIMILARITY_METRIC_NOT_SET:0,EUCLIDEAN_SIMILARITY:1,INNER_PRODUCT:2,COSINE_SIMILARITY:3},n._SimilarityMetric.prototype.getSimilarityMetricCase=function(){return i.Message.computeOneofCase(this,n._SimilarityMetric.oneofGroups_[0])}
1,i.Message.GENERATE_TO_OBJECT&&(n._SimilarityMetric.prototype.toObject=function(e){return n._SimilarityMetric.toObject(e,this)},n._SimilarityMetric.toObject=function(e,t){var r,i={euclideanSimilarity:(r=t.getEuclideanSimilarity())&&n._SimilarityMetric._EuclideanSimilarity.toObject(e,r),innerProduct:(r=t.getInnerProduct())&&n._SimilarityMetric._InnerProduct.toObject(e,r),cosineSimilarity:(r=t.getCosineSimilarity())&&n._SimilarityMetric._CosineSimilarity.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),n._SimilarityMetric.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._SimilarityMetric;return n._SimilarityMetric.deserializeBinaryFromReader(r,t)},n._SimilarityMetric.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new n._SimilarityMetric._EuclideanSimilarity;t.readMessage(r,n._SimilarityMetric._EuclideanSimilarity.deserializeBinaryFromReader),e.setEuclideanSimilarity(r);break;case 2:var r=new n._SimilarityMetric._InnerProduct;t.readMessage(r,n._SimilarityMetric._InnerProduct.deserializeBinaryFromReader),e.setInnerProduct(r);break;case 3:var r=new n._SimilarityMetric._CosineSimilarity;t.readMessage(r,n._SimilarityMetric._CosineSimilarity.deserializeBinaryFromReader),e.setCosineSimilarity(r);break;default:t.skipField()}return e},n._SimilarityMetric.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._SimilarityMetric.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._SimilarityMetric.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getEuclideanSimilarity())&&t.writeMessage(1,r,n._SimilarityMetric._EuclideanSimilarity.serializeBinaryToWriter),null!=(r=e.getInnerProduct())&&t.writeMessage(2,r,n._SimilarityMetric._InnerProduct.serializeBinaryToWriter),null!=(r=e.getCosineSimilarity())&&t.writeMessage(3,r,n._SimilarityMetric._CosineSimilarity.serializeBinaryToWriter)},i.Message.GENERATE_TO_OBJECT&&(n._SimilarityMetric._EuclideanSimilarity.prototype.toObject=function(e){return n._SimilarityMetric._EuclideanSimilarity.toObject(e,this)},n._SimilarityMetric._EuclideanSimilarity.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n._SimilarityMetric._EuclideanSimilarity.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._SimilarityMetric._EuclideanSimilarity;return n._SimilarityMetric._EuclideanSimilarity.deserializeBinaryFromReader(r,t)},n._SimilarityMetric._EuclideanSimilarity.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n._SimilarityMetric._EuclideanSimilarity.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._SimilarityMetric._EuclideanSimilarity.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._SimilarityMetric._EuclideanSimilarity.serializeBinaryToWriter=function(e,t){},i.Message.GENERATE_TO_OBJECT&&(n._SimilarityMetric._InnerProduct.prototype.toObject=function(e){return n._SimilarityMetric._InnerProduct.toObject(e,this)},n._SimilarityMetric._InnerProduct.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n._SimilarityMetric._InnerProduct.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._SimilarityMetric._InnerProduct;return n._SimilarityMetric._InnerProduct.deserializeBinaryFromReader(r,t)},n._SimilarityMetric._InnerProduct.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n._SimilarityMetric._InnerProduct.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._SimilarityMetric._InnerProduct.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._SimilarityMetric._InnerProduct.serializeBinaryToWriter=function(e,t){},i.Message.GENERATE_TO_OBJECT&&(n._SimilarityMetric._CosineSimilarity.prototype.toObject=function(e){return n._SimilarityMetric._CosineSimilarity.toObject(e,this)},n._SimilarityMetric._CosineSimilarity.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n._SimilarityMetric._CosineSimilarity.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._SimilarityMetric._CosineSimilarity;return n._SimilarityMetric._CosineSimilarity.deserializeBinaryFromReader(r,t)},n._SimilarityMetric._CosineSimilarity.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n._SimilarityMetric._CosineSimilarity.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._SimilarityMetric._CosineSimilarity.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._SimilarityMetric._CosineSimilarity.serializeBinaryToWriter=function(e,t){},n._SimilarityMetric.prototype.getEuclideanSimilarity=function(){return i.Message.getWrapperField(this,n._SimilarityMetric._EuclideanSimilarity,1)},n._SimilarityMetric.prototype.setEuclideanSimilarity=function(e){return i.Message.setOneofWrapperField(this,1,n._SimilarityMetric.oneofGroups_[0],e)},n._SimilarityMetric.prototype.clearEuclideanSimilarity=function(){return this.setEuclideanSimilarity(void 0)},n._SimilarityMetric.prototype.hasEuclideanSimilarity=function(){return null!=i.Message.getField(this,1)},n._SimilarityMetric.prototype.getInnerProduct=function(){return i.Message.getWrapperField(this,n._SimilarityMetric._InnerProduct,2)},n._SimilarityMetric.prototype.setInnerProduct=function(e){return i.Message.setOneofWrapperField(this,2,n._SimilarityMetric.oneofGroups_[0],e)},n._SimilarityMetric.prototype.clearInnerProduct=function(){return this.setInnerProduct(void 0)},n._SimilarityMetric.prototype.hasInnerProduct=function(){return null!=i.Message.getField(this,2)},n._SimilarityMetric.prototype.getCosineSimilarity=function(){return i.Message.getWrapperField(this,n._SimilarityMetric._CosineSimilarity,3)},n._SimilarityMetric.prototype.setCosineSimilarity=function(e){return i.Message.setOneofWrapperField(this,3,n._SimilarityMetric.oneofGroups_[0],e)},n._SimilarityMetric.prototype.clearCosineSimilarity=function(){return this.setCosineSimilarity(void 0)},n._SimilarityMetric.prototype.hasCosineSimilarity=function(){return null!=i.Message.getField(this,3)}
1,i.Message.GENERATE_TO_OBJECT&&(n._CreateIndexRequest.prototype.toObject=function(e){return n._CreateIndexRequest.toObject(e,this)},n._CreateIndexRequest.toObject=function(e,t){var r,s={indexName:i.Message.getFieldWithDefault(t,1,""),numDimensions:i.Message.getFieldWithDefault(t,2,0),similarityMetric:(r=t.getSimilarityMetric())&&n._SimilarityMetric.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),n._CreateIndexRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._CreateIndexRequest;return n._CreateIndexRequest.deserializeBinaryFromReader(r,t)},n._CreateIndexRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setIndexName(r);break;case 2:var r=t.readUint64();e.setNumDimensions(r);break;case 3:var r=new n._SimilarityMetric;t.readMessage(r,n._SimilarityMetric.deserializeBinaryFromReader),e.setSimilarityMetric(r);break;default:t.skipField()}return e},n._CreateIndexRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._CreateIndexRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._CreateIndexRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getIndexName()).length>0&&t.writeString(1,r),0!==(r=e.getNumDimensions())&&t.writeUint64(2,r),null!=(r=e.getSimilarityMetric())&&t.writeMessage(3,r,n._SimilarityMetric.serializeBinaryToWriter)},n._CreateIndexRequest.prototype.getIndexName=function(){return i.Message.getFieldWithDefault(this,1,"")},n._CreateIndexRequest.prototype.setIndexName=function(e){return i.Message.setProto3StringField(this,1,e)},n._CreateIndexRequest.prototype.getNumDimensions=function(){return i.Message.getFieldWithDefault(this,2,0)},n._CreateIndexRequest.prototype.setNumDimensions=function(e){return i.Message.setProto3IntField(this,2,e)},n._CreateIndexRequest.prototype.getSimilarityMetric=function(){return i.Message.getWrapperField(this,n._SimilarityMetric,3)},n._CreateIndexRequest.prototype.setSimilarityMetric=function(e){return i.Message.setWrapperField(this,3,e)},n._CreateIndexRequest.prototype.clearSimilarityMetric=function(){return this.setSimilarityMetric(void 0)},n._CreateIndexRequest.prototype.hasSimilarityMetric=function(){return null!=i.Message.getField(this,3)},i.Message.GENERATE_TO_OBJECT&&(n._CreateIndexResponse.prototype.toObject=function(e){return n._CreateIndexResponse.toObject(e,this)},n._CreateIndexResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n._CreateIndexResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._CreateIndexResponse;return n._CreateIndexResponse.deserializeBinaryFromReader(r,t)},n._CreateIndexResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n._CreateIndexResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._CreateIndexResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._CreateIndexResponse.serializeBinaryToWriter=function(e,t){},i.Message.GENERATE_TO_OBJECT&&(n._DeleteIndexRequest.prototype.toObject=function(e){return n._DeleteIndexRequest.toObject(e,this)},n._DeleteIndexRequest.toObject=function(e,t){var r={indexName:i.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),n._DeleteIndexRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._DeleteIndexRequest;return n._DeleteIndexRequest.deserializeBinaryFromReader(r,t)},n._DeleteIndexRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setIndexName(r)}else t.skipField();return e},n._DeleteIndexRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._DeleteIndexRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._DeleteIndexRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getIndexName()).length>0&&t.writeString(1,r)},n._DeleteIndexRequest.prototype.getIndexName=function(){return i.Message.getFieldWithDefault(this,1,"")},n._DeleteIndexRequest.prototype.setIndexName=function(e){return i.Message.setProto3StringField(this,1,e)}
1,i.Message.GENERATE_TO_OBJECT&&(n._DeleteIndexResponse.prototype.toObject=function(e){return n._DeleteIndexResponse.toObject(e,this)},n._DeleteIndexResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n._DeleteIndexResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._DeleteIndexResponse;return n._DeleteIndexResponse.deserializeBinaryFromReader(r,t)},n._DeleteIndexResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n._DeleteIndexResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._DeleteIndexResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._DeleteIndexResponse.serializeBinaryToWriter=function(e,t){},i.Message.GENERATE_TO_OBJECT&&(n._ListIndexesRequest.prototype.toObject=function(e){return n._ListIndexesRequest.toObject(e,this)},n._ListIndexesRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n._ListIndexesRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._ListIndexesRequest;return n._ListIndexesRequest.deserializeBinaryFromReader(r,t)},n._ListIndexesRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n._ListIndexesRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._ListIndexesRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._ListIndexesRequest.serializeBinaryToWriter=function(e,t){},n._ListIndexesResponse.repeatedFields_=[1],i.Message.GENERATE_TO_OBJECT&&(n._ListIndexesResponse.prototype.toObject=function(e){return n._ListIndexesResponse.toObject(e,this)},n._ListIndexesResponse.toObject=function(e,t){var r={indexesList:i.Message.toObjectList(t.getIndexesList(),n._ListIndexesResponse._Index.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),n._ListIndexesResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._ListIndexesResponse;return n._ListIndexesResponse.deserializeBinaryFromReader(r,t)},n._ListIndexesResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new n._ListIndexesResponse._Index;t.readMessage(r,n._ListIndexesResponse._Index.deserializeBinaryFromReader),e.addIndexes(r)}else t.skipField();return e},n._ListIndexesResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._ListIndexesResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._ListIndexesResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getIndexesList()).length>0&&t.writeRepeatedMessage(1,r,n._ListIndexesResponse._Index.serializeBinaryToWriter)},i.Message.GENERATE_TO_OBJECT&&(n._ListIndexesResponse._Index.prototype.toObject=function(e){return n._ListIndexesResponse._Index.toObject(e,this)},n._ListIndexesResponse._Index.toObject=function(e,t){var r,s={indexName:i.Message.getFieldWithDefault(t,1,""),numDimensions:i.Message.getFieldWithDefault(t,2,0),similarityMetric:(r=t.getSimilarityMetric())&&n._SimilarityMetric.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),n._ListIndexesResponse._Index.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._ListIndexesResponse._Index;return n._ListIndexesResponse._Index.deserializeBinaryFromReader(r,t)},n._ListIndexesResponse._Index.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setIndexName(r);break;case 2:var r=t.readUint64();e.setNumDimensions(r);break;case 3:var r=new n._SimilarityMetric;t.readMessage(r,n._SimilarityMetric.deserializeBinaryFromReader),e.setSimilarityMetric(r);break;default:t.skipField()}return e},n._ListIndexesResponse._Index.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._ListIndexesResponse._Index.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._ListIndexesResponse._Index.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getIndexName()).length>0&&t.writeString(1,r),0!==(r=e.getNumDimensions())&&t.writeUint64(2,r),null!=(r=e.getSimilarityMetric())&&t.writeMessage(3,r,n._SimilarityMetric.serializeBinaryToWriter)},n._ListIndexesResponse._Index.prototype.getIndexName=function(){return i.Message.getFieldWithDefault(this,1,"")},n._ListIndexesResponse._Index.prototype.setIndexName=function(e){return i.Message.setProto3StringField(this,1,e)},n._ListIndexesResponse._Index.prototype.getNumDimensions=function(){return i.Message.getFieldWithDefault(this,2,0)},n._ListIndexesResponse._Index.prototype.setNumDimensions=function(e){return i.Message.setProto3IntField(this,2,e)},n._ListIndexesResponse._Index.prototype.getSimilarityMetric=function(){return i.Message.getWrapperField(this,n._SimilarityMetric,3)},n._ListIndexesResponse._Index.prototype.setSimilarityMetric=function(e){return i.Message.setWrapperField(this,3,e)},n._ListIndexesResponse._Index.prototype.clearSimilarityMetric=function(){return this.setSimilarityMetric(void 0)},n._ListIndexesResponse._Index.prototype.hasSimilarityMetric=function(){return null!=i.Message.getField(this,3)},n._ListIndexesResponse.prototype.getIndexesList=function(){return i.Message.getRepeatedWrapperField(this,n._ListIndexesResponse._Index,1)}
1,n._ListIndexesResponse.prototype.setIndexesList=function(e){return i.Message.setRepeatedWrapperField(this,1,e)},n._ListIndexesResponse.prototype.addIndexes=function(e,t){return i.Message.addToRepeatedWrapperField(this,1,e,n._ListIndexesResponse._Index,t)},n._ListIndexesResponse.prototype.clearIndexesList=function(){return this.setIndexesList([])},i.Message.GENERATE_TO_OBJECT&&(n._DeleteCacheRequest.prototype.toObject=function(e){return n._DeleteCacheRequest.toObject(e,this)},n._DeleteCacheRequest.toObject=function(e,t){var r={cacheName:i.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),n._DeleteCacheRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._DeleteCacheRequest;return n._DeleteCacheRequest.deserializeBinaryFromReader(r,t)},n._DeleteCacheRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setCacheName(r)}else t.skipField();return e},n._DeleteCacheRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;
1return n._DeleteCacheRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._DeleteCacheRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheName()).length>0&&t.writeString(1,r)},n._DeleteCacheRequest.prototype.getCacheName=function(){return i.Message.getFieldWithDefault(this,1,"")},n._DeleteCacheRequest.prototype.setCacheName=function(e){return i.Message.setProto3StringField(this,1,e)},i.Message.GENERATE_TO_OBJECT&&(n._DeleteCacheResponse.prototype.toObject=function(e){return n._DeleteCacheResponse.toObject(e,this)},n._DeleteCacheResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n._DeleteCacheResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._DeleteCacheResponse;return n._DeleteCacheResponse.deserializeBinaryFromReader(r,t)},n._DeleteCacheResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n._DeleteCacheResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;
1return n._DeleteCacheResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._DeleteCacheResponse.serializeBinaryToWriter=function(e,t){},i.Message.GENERATE_TO_OBJECT&&(n._CreateCacheRequest.prototype.toObject=function(e){return n._CreateCacheRequest.toObject(e,this)},n._CreateCacheRequest.toObject=function(e,t){var r={cacheName:i.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),n._CreateCacheRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._CreateCacheRequest;return n._CreateCacheRequest.deserializeBinaryFromReader(r,t)},n._CreateCacheRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setCacheName(r)}else t.skipField();return e},n._CreateCacheRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._CreateCacheRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._CreateCacheRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheName()).length>0&&t.writeString(1,r)},n._CreateCacheRequest.prototype.getCacheName=function(){return i.Message.getFieldWithDefault(this,1,"")},n._CreateCacheRequest.prototype.setCacheName=function(e){return i.Message.setProto3StringField(this,1,e)},i.Message.GENERATE_TO_OBJECT&&(n._CreateCacheResponse.prototype.toObject=function(e){return n._CreateCacheResponse.toObject(e,this)},n._CreateCacheResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n._CreateCacheResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._CreateCacheResponse;return n._CreateCacheResponse.deserializeBinaryFromReader(r,t)},n._CreateCacheResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n._CreateCacheResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._CreateCacheResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._CreateCacheResponse.serializeBinaryToWriter=function(e,t){},i.Message.GENERATE_TO_OBJECT&&(n._ListCachesRequest.prototype.toObject=function(e){return n._ListCachesRequest.toObject(e,this)},n._ListCachesRequest.toObject=function(e,t){var r={nextToken:i.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),n._ListCachesRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._ListCachesRequest;return n._ListCachesRequest.deserializeBinaryFromReader(r,t)},n._ListCachesRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setNextToken(r)}else t.skipField();return e},n._ListCachesRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._ListCachesRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._ListCachesRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getNextToken()).length>0&&t.writeString(1,r)},n._ListCachesRequest.prototype.getNextToken=function(){return i.Message.getFieldWithDefault(this,1,"")},n._ListCachesRequest.prototype.setNextToken=function(e){return i.Message.setProto3StringField(this,1,e)},i.Message.GENERATE_TO_OBJECT&&(n._CacheLimits.prototype.toObject=function(e){return n._CacheLimits.toObject(e,this)},n._CacheLimits.toObject=function(e,t){var r={maxTrafficRate:i.Message.getFieldWithDefault(t,1,0),maxThroughputKbps:i.Message.getFieldWithDefault(t,2,0),maxItemSizeKb:i.Message.getFieldWithDefault(t,3,0),maxTtlSeconds:i.Message.getFieldWithDefault(t,4,0)};return e&&(r.$jspbMessageInstance=t),r}),n._CacheLimits.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._CacheLimits;return n._CacheLimits.deserializeBinaryFromReader(r,t)},n._CacheLimits.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setMaxTrafficRate(r);break;case 2:var r=t.readUint32();e.setMaxThroughputKbps(r);break;case 3:var r=t.readUint32();e.setMaxItemSizeKb(r);break;case 4:var r=t.readUint64();e.setMaxTtlSeconds(r);break;default:t.skipField()}return e},n._CacheLimits.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._CacheLimits.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._CacheLimits.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getMaxTrafficRate())&&t.writeUint32(1,r),0!==(r=e.getMaxThroughputKbps())&&t.writeUint32(2,r),0!==(r=e.getMaxItemSizeKb())&&t.writeUint32(3,r),0!==(r=e.getMaxTtlSeconds())&&t.writeUint64(4,r)},n._CacheLimits.prototype.getMaxTrafficRate=function(){return i.Message.getFieldWithDefault(this,1,0)},n._CacheLimits.prototype.setMaxTrafficRate=function(e){return i.Message.setProto3IntField(this,1,e)},n._CacheLimits.prototype.getMaxThroughputKbps=function(){return i.Message.getFieldWithDefault(this,2,0)},n._CacheLimits.prototype.setMaxThroughputKbps=function(e){return i.Message.setProto3IntField(this,2,e)},n._CacheLimits.prototype.getMaxItemSizeKb=function(){return i.Message.getFieldWithDefault(this,3,0)},n._CacheLimits.prototype.setMaxItemSizeKb=function(e){return i.Message.setProto3IntField(this,3,e)},n._CacheLimits.prototype.getMaxTtlSeconds=function(){return i.Message.getFieldWithDefault(this,4,0)},n._CacheLimits.prototype.setMaxTtlSeconds=function(e){return i.Message.setProto3IntField(this,4,e)}
1,i.Message.GENERATE_TO_OBJECT&&(n._TopicLimits.prototype.toObject=function(e){return n._TopicLimits.toObject(e,this)},n._TopicLimits.toObject=function(e,t){var r={maxPublishRate:i.Message.getFieldWithDefault(t,1,0),maxSubscriptionCount:i.Message.getFieldWithDefault(t,2,0),maxPublishMessageSizeKb:i.Message.getFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),n._TopicLimits.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._TopicLimits;return n._TopicLimits.deserializeBinaryFromReader(r,t)},n._TopicLimits.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readUint32();e.setMaxPublishRate(r);break;case 2:var r=t.readUint32();e.setMaxSubscriptionCount(r);break;case 3:var r=t.readUint32();e.setMaxPublishMessageSizeKb(r);break;default:t.skipField()}return e},n._TopicLimits.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._TopicLimits.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._TopicLimits.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getMaxPublishRate())&&t.writeUint32(1,r),0!==(r=e.getMaxSubscriptionCount())&&t.writeUint32(2,r),0!==(r=e.getMaxPublishMessageSizeKb())&&t.writeUint32(3,r)},n._TopicLimits.prototype.getMaxPublishRate=function(){return i.Message.getFieldWithDefault(this,1,0)},n._TopicLimits.prototype.setMaxPublishRate=function(e){return i.Message.setProto3IntField(this,1,e)},n._TopicLimits.prototype.getMaxSubscriptionCount=function(){return i.Message.getFieldWithDefault(this,2,0)},n._TopicLimits.prototype.setMaxSubscriptionCount=function(e){return i.Message.setProto3IntField(this,2,e)},n._TopicLimits.prototype.getMaxPublishMessageSizeKb=function(){return i.Message.getFieldWithDefault(this,3,0)},n._TopicLimits.prototype.setMaxPublishMessageSizeKb=function(e){return i.Message.setProto3IntField(this,3,e)},i.Message.GENERATE_TO_OBJECT&&(n._Cache.prototype.toObject=function(e){return n._Cache.toObject(e,this)},n._Cache.toObject=function(e,t){var r,s={cacheName:i.Message.getFieldWithDefault(t,1,""),cacheLimits:(r=t.getCacheLimits())&&n._CacheLimits.toObject(e,r),topicLimits:(r=t.getTopicLimits())&&n._TopicLimits.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),n._Cache.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._Cache;return n._Cache.deserializeBinaryFromReader(r,t)},n._Cache.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setCacheName(r);break;case 2:var r=new n._CacheLimits;t.readMessage(r,n._CacheLimits.deserializeBinaryFromReader),e.setCacheLimits(r);break;case 3:var r=new n._TopicLimits;t.readMessage(r,n._TopicLimits.deserializeBinaryFromReader),e.setTopicLimits(r);break;default:t.skipField()}return e},n._Cache.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._Cache.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._Cache.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheName()).length>0&&t.writeString(1,r),null!=(r=e.getCacheLimits())&&t.writeMessage(2,r,n._CacheLimits.serializeBinaryToWriter),null!=(r=e.getTopicLimits())&&t.writeMessage(3,r,n._TopicLimits.serializeBinaryToWriter)},n._Cache.prototype.getCacheName=function(){return i.Message.getFieldWithDefault(this,1,"")},n._Cache.prototype.setCacheName=function(e){return i.Message.setProto3StringField(this,1,e)},n._Cache.prototype.getCacheLimits=function(){return i.Message.getWrapperField(this,n._CacheLimits,2)},n._Cache.prototype.setCacheLimits=function(e){return i.Message.setWrapperField(this,2,e)},n._Cache.prototype.clearCacheLimits=function(){return this.setCacheLimits(void 0)},n._Cache.prototype.hasCacheLimits=function(){return null!=i.Message.getField(this,2)},n._Cache.prototype.getTopicLimits=function(){return i.Message.getWrapperField(this,n._TopicLimits,3)},n._Cache.prototype.setTopicLimits=function(e){return i.Message.setWrapperField(this,3,e)},n._Cache.prototype.clearTopicLimits=function(){return this.setTopicLimits(void 0)},n._Cache.prototype.hasTopicLimits=function(){return null!=i.Message.getField(this,3)},n._ListCachesResponse.repeatedFields_=[1],i.Message.GENERATE_TO_OBJ
1ECT&&(n._ListCachesResponse.prototype.toObject=function(e){return n._ListCachesResponse.toObject(e,this)},n._ListCachesResponse.toObject=function(e,t){var r={cacheList:i.Message.toObjectList(t.getCacheList(),n._Cache.toObject,e),nextToken:i.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),n._ListCachesResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._ListCachesResponse;return n._ListCachesResponse.deserializeBinaryFromReader(r,t)},n._ListCachesResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new n._Cache;t.readMessage(r,n._Cache.deserializeBinaryFromReader),e.addCache(r);break;case 2:var r=t.readString();e.setNextToken(r);break;default:t.skipField()}return e},n._ListCachesResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._ListCachesResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._ListCachesResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheList()).length>0&&t.writeRepeatedMessage(1,r,n._Cache.serializeBinaryToWriter),(r=e.getNextToken()).length>0&&t.writeString(2,r)},n._ListCachesResponse.prototype.getCacheList=function(){return i.Message.getRepeatedWrapperField(this,n._Cache,1)},n._ListCachesResponse.prototype.setCacheList=function(e){return i.Message.setRepeatedWrapperField(this,1,e)},n._ListCachesResponse.prototype.addCache=function(e,t){return i.Message.addToRepeatedWrapperField(this,1,e,n._Cache,t)},n._ListCachesResponse.prototype.clearCacheList=function(){return this.setCacheList([])},n._ListCachesResponse.prototype.getNextToken=function(){return i.Message.getFieldWithDefault(this,2,"")},n._ListCachesResponse.prototype.setNextToken=function(e){return i.Message.setProto3StringField(this,2,e)},i.Message.GENERATE_TO_OBJECT&&(n._CreateSigningKeyRequest.prototype.toObject=function(e){return n._CreateSigningKeyRequest.toObject(e,this)},n._CreateSigningKeyRequest.toObject=function(e,t){var r={ttlMinutes:i.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),n._CreateSigningKeyRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._CreateSigningKeyRequest;return n._CreateSigningKeyRequest.deserializeBinaryFromReader(r,t)},n._CreateSigningKeyRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setTtlMinutes(r)}else t.skipField();return e},n._CreateSigningKeyRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._CreateSigningKeyRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._CreateSigningKeyRequest.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getTtlMinutes())&&t.writeUint32(1,r)},n._CreateSigningKeyRequest.prototype.getTtlMinutes=function(){return i.Message.getFieldWithDefault(this,1,0)},n._CreateSigningKeyRequest.prototype.setTtlMinutes=function(e){return i.Message.setProto3IntField(this,1,e)},i.Message.GENERATE_TO_OBJECT&&(n._CreateSigningKeyResponse.prototype.toObject=function(e){return n._CreateSigningKeyResponse.toObject(e,this)},n._CreateSigningKeyResponse.toObject=function(e,t){var r={key:i.Message.getFieldWithDefault(t,1,""),expiresAt:i.Message.getFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),n._CreateSigningKeyResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._CreateSigningKeyResponse;return n._CreateSigningKeyResponse.deserializeBinaryFromReader(r,t)},n._CreateSigningKeyResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setKey(r);break;case 2:var r=t.readUint64();e.setExpiresAt(r);break;default:t.skipField()}return e},n._CreateSigningKeyResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._CreateSigningKeyResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._CreateSigningKeyResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getKey()).length>0&&t.writeString(1,r),0!==(r=e.getExpiresAt())&&t.writeUint64(2,r)},n._CreateSigningKeyResponse.prototype.getKey=function(){return i.Message.getFieldWithDefault(this,1,"")},n._CreateSigningKeyResponse.prototype.setKey=function(e){return i.Message.setProto3StringField(this,1,e)},n._CreateSigningKeyResponse.prototype.getExpiresAt=function(){return i.Message.getFieldWithDefault(this,2,0)},n._CreateSigningKeyResponse.prototype.setExpiresAt=function(e){return i.Message.setProto3IntField(this,2,e)}
1,i.Message.GENERATE_TO_OBJECT&&(n._RevokeSigningKeyRequest.prototype.toObject=function(e){return n._RevokeSigningKeyRequest.toObject(e,this)},n._RevokeSigningKeyRequest.toObject=function(e,t){var r={keyId:i.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),n._RevokeSigningKeyRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._RevokeSigningKeyRequest;return n._RevokeSigningKeyRequest.deserializeBinaryFromReader(r,t)},n._RevokeSigningKeyRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setKeyId(r)}else t.skipField();return e},n._RevokeSigningKeyRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._RevokeSigningKeyRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._RevokeSigningKeyRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getKeyId()).length>0&&t.writeString(1,r)},n._RevokeSigningKeyRequest.prototype.getKeyId=function(){return i.Message.getFieldWithDefault(this,1,"")},n._RevokeSigningKeyRequest.prototype.setKeyId=function(e){return i.Message.setProto3StringField(this,1,e)},i.Message.GENERATE_TO_OBJECT&&(n._RevokeSigningKeyResponse.prototype.toObject=function(e){return n._RevokeSigningKeyResponse.toObject(e,this)},n._RevokeSigningKeyResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n._RevokeSigningKeyResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._RevokeSigningKeyResponse;return n._RevokeSigningKeyResponse.deserializeBinaryFromReader(r,t)},n._RevokeSigningKeyResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n._RevokeSigningKeyResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._RevokeSigningKeyResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._RevokeSigningKeyResponse.serializeBinaryToWriter=function(e,t){},i.Message.GENERATE_TO_OBJECT&&(n._SigningKey.prototype.toObject=function(e){return n._SigningKey.toObject(e,this)},n._SigningKey.toObject=function(e,t){var r={keyId:i.Message.getFieldWithDefault(t,1,""),expiresAt:i.Message.getFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),n._SigningKey.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._SigningKey;return n._SigningKey.deserializeBinaryFromReader(r,t)},n._SigningKey.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setKeyId(r);break;case 2:var r=t.readUint64();e.setExpiresAt(r);break;default:t.skipField()}return e},n._SigningKey.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._SigningKey.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._SigningKey.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getKeyId()).length>0&&t.writeString(1,r),0!==(r=e.getExpiresAt())&&t.writeUint64(2,r)},n._SigningKey.prototype.getKeyId=function(){return i.Message.getFieldWithDefault(this,1,"")},n._SigningKey.prototype.setKeyId=function(e){return i.Message.setProto3StringField(this,1,e)},n._SigningKey.prototype.getExpiresAt=function(){return i.Message.getFieldWithDefault(this,2,0)},n._SigningKey.prototype.setExpiresAt=function(e){return i.Message.setProto3IntField(this,2,e)},i.Message.GENERATE_TO_OBJECT&&(n._ListSigningKeysRequest.prototype.toObject=function(e){return n._ListSigningKeysRequest.toObject(e,this)},n._ListSigningKeysRequest.toObject=function(e,t){var r={nextToken:i.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),n._ListSigningKeysRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._ListSigningKeysRequest;return n._ListSigningKeysRequest.deserializeBinaryFromReader(r,t)},n._ListSigningKeysRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setNextToken(r)}else t.skipField();return e},n._ListSigningKeysRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._ListSigningKeysRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._ListSigningKeysRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getNextToken()).length>0&&t.writeString(1,r)},n._ListSigningKeysRequest.prototype.getNextToken=function(){return i.Message.getFieldWithDefault(this,1,"")},n._ListSigningKeysRequest.prototype.setNextToken=function(e){return i.Message.setProto3StringField(this,1,e)},n._ListSigningKeysResponse.repeatedFields_=[1],i.Message.GENERATE_TO_OBJ
1ECT&&(n._ListSigningKeysResponse.prototype.toObject=function(e){return n._ListSigningKeysResponse.toObject(e,this)},n._ListSigningKeysResponse.toObject=function(e,t){var r={signingKeyList:i.Message.toObjectList(t.getSigningKeyList(),n._SigningKey.toObject,e),nextToken:i.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),n._ListSigningKeysResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._ListSigningKeysResponse;return n._ListSigningKeysResponse.deserializeBinaryFromReader(r,t)},n._ListSigningKeysResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new n._SigningKey;t.readMessage(r,n._SigningKey.deserializeBinaryFromReader),e.addSigningKey(r);break;case 2:var r=t.readString();e.setNextToken(r);break;default:t.skipField()}return e},n._ListSigningKeysResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._ListSigningKeysResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._ListSigningKeysResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSigningKeyList()).length>0&&t.writeRepeatedMessage(1,r,n._SigningKey.serializeBinaryToWriter),(r=e.getNextToken()).length>0&&t.writeString(2,r)},n._ListSigningKeysResponse.prototype.getSigningKeyList=function(){return i.Message.getRepeatedWrapperField(this,n._SigningKey,1)},n._ListSigningKeysResponse.prototype.setSigningKeyList=function(e){return i.Message.setRepeatedWrapperField(this,1,e)},n._ListSigningKeysResponse.prototype.addSigningKey=function(e,t){return i.Message.addToRepeatedWrapperField(this,1,e,n._SigningKey,t)},n._ListSigningKeysResponse.prototype.clearSigningKeyList=function(){return this.setSigningKeyList([])},n._ListSigningKeysResponse.prototype.getNextToken=function(){return i.Message.getFieldWithDefault(this,2,"")},n._ListSigningKeysResponse.prototype.setNextToken=function(e){return i.Message.setProto3StringField(this,2,e)},i.Message.GENERATE_TO_OBJECT&&(n._FlushCacheRequest.prototype.toObject=function(e){return n._FlushCacheRequest.toObject(e,this)},n._FlushCacheRequest.toObject=function(e,t){var r={cacheName:i.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),n._FlushCacheRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._FlushCacheRequest;return n._FlushCacheRequest.deserializeBinaryFromReader(r,t)},n._FlushCacheRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setCacheName(r)}else t.skipField();return e},n._FlushCacheRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._FlushCacheRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._FlushCacheRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheName()).length>0&&t.writeString(1,r)},n._FlushCacheRequest.prototype.getCacheName=function(){return i.Message.getFieldWithDefault(this,1,"")},n._FlushCacheRequest.prototype.setCacheName=function(e){return i.Message.setProto3StringField(this,1,e)},i.Message.GENERATE_TO_OBJECT&&(n._FlushCacheResponse.prototype.toObject=function(e){return n._FlushCacheResponse.toObject(e,this)},n._FlushCacheResponse.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n._FlushCacheResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._FlushCacheResponse;return n._FlushCacheResponse.deserializeBinaryFromReader(r,t)},n._FlushCacheResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n._FlushCacheResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._FlushCacheResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._FlushCacheResponse.serializeBinaryToWriter=function(e,t){},i.object.extend(t,n)},71087:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TopicClient=void 0;let i=r(42378),n=r(87977),s=r(27058),o=r(11219),a=r(84055);class c extends s.AbstractTopicClient{constructor(e){var t,r;const s=null!=(t=null==e?void 0:e.configuration)?t:function(){let e=i.TopicConfigurations.Default.latest();return e.getLoggerFactory().getLogger("TopicClient").info('No configuration provided to TopicClient. Using latest "Default" configuration, suitable for development. For production use, consider specifying an explicit configuration.'),e}(),l={configuration:s,credentialProvider:null!=(r=null==e?void 0:e.credentialProvider)?r:(0,a.getDefaultCredentialProvider)()};super(s.getLoggerFactory().getLogger(c.name),[new n.PubsubClient(l)],[new n.PubsubClient(l)],new o.WebhookClient(l)),this.logger.debug("Instantiated Momento TopicClient")}}t.TopicClient=c},71220:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(52725),s=r(94452),o=new TextDecoder;class a extends i.ResponseBase{constructor(e,t){super(),this.type=s.CacheGetWithHashResponse.Hit,this._value=e,this._hash=t}value(){return o.decode(this._value)}hash(){return o.decode(this._hash)}valueString(){return o.decode(this._value)}valueUint8Array(){return this._value}hashString(){return o.decode(this._hash)}hashUint8Array(){return this._hash}toString(){let e=(0,n.truncateString)(this.valueString()),t=(0,n.truncateString)(this.hashString());return`${super.toString()}: value=${e}, hash=${t}`}}t.Hit=a;class c extends i.BaseResponseMiss{constructor(){super(),this.type=s.CacheGetWithHashResponse.Miss}value(){}hash(){}}t.Miss=c;class l extends i.BaseResponseError{constructor(e){super(e),this.type=s.CacheGetWithHashResponse.Error}value(){}hash(){}}t.Error=l},71276:(e,t,r)=>{var i=r(64555),n={},s=r(90391);i.object.extend(n,s),i.exportSymbol("_GenerateApiTokenRequest",null,n),i.exportSymbol("_GenerateApiTokenRequest.Expires",null,n),i.exportSymbol("_GenerateApiTokenRequest.ExpiryCase",null,n),i.exportSymbol("_GenerateApiTokenRequest.Never",null,n),i.exportSymbol("_GenerateApiTokenResponse",null,n),i.exportSymbol("_LoginRequest",null,n),i.exportSymbol("_LoginResponse",null,n),i.exportSymbol("_LoginResponse.DirectBrowser",null,n),i.exportSymbol("_LoginResponse.Error",null,n),i.exportSymbol("_LoginResponse.LoggedIn",
1null,n),i.exportSymbol("_LoginResponse.Message",null,n),i.exportSymbol("_LoginResponse.StateCase",null,n),i.exportSymbol("_RefreshApiTokenRequest",null,n),i.exportSymbol("_RefreshApiTokenResponse",null,n),n._LoginRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._LoginRequest,i.Message),i.DEBUG&&!COMPILED&&(n._LoginRequest.displayName="proto._LoginRequest"),n._LoginResponse=function(e){i.Message.initialize(this,e,0,-1,null,n._LoginResponse.oneofGroups_)},i.inherits(n._LoginResponse,i.Message),i.DEBUG&&!COMPILED&&(n._LoginResponse.displayName="proto._LoginResponse"),n._LoginResponse.LoggedIn=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._LoginResponse.LoggedIn,i.Message),i.DEBUG&&!COMPILED&&(n._LoginResponse.LoggedIn.displayName="proto._LoginResponse.LoggedIn"),n._LoginResponse.Error=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._LoginResponse.Error,i.Message),i.DEBUG&&!COMPILED&&(n._LoginResponse.Error.displayName="proto._LoginResponse.Error"),n._LoginResponse.DirectBrowser=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._LoginResponse.DirectBrowser,i.Message),i.DEBUG&&!COMPILED&&(n._LoginResponse.DirectBrowser.displayName="proto._LoginResponse.DirectBrowser"),n._LoginResponse.Message=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._LoginResponse.Message,i.Message),i.DEBUG&&!COMPILED&&(n._LoginResponse.Message.displayName="proto._LoginResponse.Message"),n._GenerateApiTokenRequest=function(e){i.Message.initialize(this,e,0,-1,null,n._GenerateApiTokenRequest.oneofGroups_)},i.inherits(n._GenerateApiTokenRequest,i.Message),i.DEBUG&&!COMPILED&&(n._GenerateApiTokenRequest.displayName="proto._GenerateApiTokenRequest"),n._GenerateApiTokenRequest.Never=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._GenerateApiTokenRequest.Never,i.Message),i.DEBUG&&!COMPILED&&(n._GenerateApiTokenRequest.Never.displayName="proto._GenerateApiTokenRequest.Never"),n._GenerateApiTokenRequest.Expires=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._GenerateApiTokenRequest.Expires,i.Message),i.DEBUG&&!COMPILED&&(n._GenerateApiTokenRequest.Expires.displayName="proto._GenerateApiTokenRequest.Expires"),n._GenerateApiTokenResponse=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._GenerateApiTokenResponse,i.Message),i.DEBUG&&!COMPILED&&(n._GenerateApiTokenResponse.displayName="proto._GenerateApiTokenResponse"),n._RefreshApiTokenRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._RefreshApiTokenRequest,i.Message),i.DEBUG&&!COMPILED&&(n._RefreshApiTokenRequest.displayName="proto._RefreshApiTokenRequest"),n._RefreshApiTokenResponse=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._RefreshApiTokenResponse,i.Message),i.DEBUG&&!COMPILED&&(n._RefreshApiTokenResponse.displayName="proto._RefreshApiTokenResponse"),i.Message.GENERATE_TO_OBJECT&&(n._LoginRequest.prototype.toObject=function(e){return n._LoginRequest.toObject(e,this)},n._LoginRequest.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n._LoginRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._LoginRequest;return n._LoginRequest.deserializeBinaryFromReader(r,t)},n._LoginRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n._LoginRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._LoginRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._LoginRequest.serializeBinaryToWriter=function(e,t){},n._LoginResponse.oneofGroups_=[[1,2,3,4]],n._LoginResponse.StateCase={STATE_NOT_SET:0,DIRECT_BROWSER:1,LOGGED_IN:2,MESSAGE:3,ERROR:4},n._LoginResponse.prototype.getStateCase=function(){return i.Message.computeOneofCase(this,n._LoginResponse.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(n._LoginResponse.prototype.toObject=function(e){return n._LoginResponse.toObject(e,this)},n._LoginResponse.toObject=function(e,t){var r,i={directBrowser:(r=t.getDirectBrowser())&&n._LoginResponse.DirectBrowser.toObject(e,r),loggedIn:(r=t.getLoggedIn())&&n._LoginResponse.LoggedIn.toObject(e,r),message:(r=t.getMessage())&&n._LoginResponse.Message.toObject(e,r),error:(r=t.getError())&&n._LoginResponse.Error.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),n._LoginResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._LoginResponse;return n._LoginResponse.deserializeBinaryFromReader(r,t)},n._LoginResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new n._LoginResponse.DirectBrowser;t.readMessage(r,n._LoginResponse.DirectBrowser.deserializeBinaryFromReader),e.setDirectBrowser(r);break;case 2:var r=new n._LoginResponse.LoggedIn;t.readMessage(r,n._LoginResponse.LoggedIn.deserializeBinaryFromReader),e.setLoggedIn(r);break;case 3:var r=new n._LoginResponse.Message;t.readMessage(r,n._LoginResponse.Message.deserializeBinaryFromReader),e.setMessage(r);break;case 4:var r=new n._LoginResponse.Error;t.readMessage(r,n._LoginResponse.Error.deserializeBinaryFromReader),e.setError(r);break;default:t.skipField()}return e},n._LoginResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._LoginResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._LoginResponse.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getDirectBrowser())&&t.writeMessage(1,r,n._LoginResponse.DirectBrowser.serializeBinaryToWriter),null!=(r=e.getLoggedIn())&&t.writeMessage(2,r,n._LoginResponse.LoggedIn.serializeBinaryToWriter),null!=(r=e.getMessage())&&t.writeMessage(3,r,n._LoginResponse.Message.serializeBinaryToWriter),null!=(r=e.getError())&&t.writeMessage(4,r,n._LoginResponse.Error.serializeBinaryToWriter)}
1,i.Message.GENERATE_TO_OBJECT&&(n._LoginResponse.LoggedIn.prototype.toObject=function(e){return n._LoginResponse.LoggedIn.toObject(e,this)},n._LoginResponse.LoggedIn.toObject=function(e,t){var r={sessionToken:i.Message.getFieldWithDefault(t,1,""),validForSeconds:i.Message.getFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),n._LoginResponse.LoggedIn.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._LoginResponse.LoggedIn;return n._LoginResponse.LoggedIn.deserializeBinaryFromReader(r,t)},n._LoginResponse.LoggedIn.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setSessionToken(r);break;case 2:var r=t.readUint32();e.setValidForSeconds(r);break;default:t.skipField()}return e},n._LoginResponse.LoggedIn.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._LoginResponse.LoggedIn.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._LoginResponse.LoggedIn.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getSessionToken()).length>0&&t.writeString(1,r),0!==(r=e.getValidForSeconds())&&t.writeUint32(2,r)},n._LoginResponse.LoggedIn.prototype.getSessionToken=function(){return i.Message.getFieldWithDefault(this,1,"")},n._LoginResponse.LoggedIn.prototype.setSessionToken=function(e){return i.Message.setProto3StringField(this,1,e)},n._LoginResponse.LoggedIn.prototype.getValidForSeconds=function(){return i.Message.getFieldWithDefault(this,2,0)},n._LoginResponse.LoggedIn.prototype.setValidForSeconds=function(e){return i.Message.setProto3IntField(this,2,e)},i.Message.GENERATE_TO_OBJECT&&(n._LoginResponse.Error.prototype.toObject=function(e){return n._LoginResponse.Error.toObject(e,this)},n._LoginResponse.Error.toObject=function(e,t){var r={description:i.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),n._LoginResponse.Error.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._LoginResponse.Error;return n._LoginResponse.Error.deserializeBinaryFromReader(r,t)},n._LoginResponse.Error.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setDescription(r)}else t.skipField();return e},n._LoginResponse.Error.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._LoginResponse.Error.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._LoginResponse.Error.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getDescription()).length>0&&t.writeString(1,r)},n._LoginResponse.Error.prototype.getDescription=function(){return i.Message.getFieldWithDefault(this,1,"")},n._LoginResponse.Error.prototype.setDescription=function(e){return i.Message.setProto3StringField(this,1,e)},i.Message.GENERATE_TO_OBJECT&&(n._LoginResponse.DirectBrowser.prototype.toObject=function(e){return n._LoginResponse.DirectBrowser.toObject(e,this)},n._LoginResponse.DirectBrowser.toObject=function(e,t){var r={url:i.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),n._LoginResponse.DirectBrowser.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._LoginResponse.DirectBrowser;return n._LoginResponse.DirectBrowser.deserializeBinaryFromReader(r,t)},n._LoginResponse.DirectBrowser.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setUrl(r)}else t.skipField();return e},n._LoginResponse.DirectBrowser.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._LoginResponse.DirectBrowser.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._LoginResponse.DirectBrowser.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getUrl()).length>0&&t.writeString(1,r)},n._LoginResponse.DirectBrowser.prototype.getUrl=function(){return i.Message.getFieldWithDefault(this,1,"")},n._LoginResponse.DirectBrowser.prototype.setUrl=function(e){return i.Message.setProto3StringField(this,1,e)},i.Message.GENERATE_TO_OBJECT&&(n._LoginResponse.Message.prototype.toObject=function(e){return n._LoginResponse.Message.toObject(e,this)},n._LoginResponse.Message.toObject=function(e,t){var r={text:i.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),n._LoginResponse.Message.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._LoginResponse.Message;return n._LoginResponse.Message.deserializeBinaryFromReader(r,t)},n._LoginResponse.Message.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setText(r)}else t.skipField();return e},n._LoginResponse.Message.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._LoginResponse.Message.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._LoginResponse.Message.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getText()).length>0&&t.writeString(1,r)},n._LoginResponse.Message.prototype.getText=function(){return i.Message.getFieldWithDefault(this,1,"")},n._LoginResponse.Message.prototype.setText=function(e){return i.Message.setProto3StringField(this,1,e)},n._LoginResponse.prototype.getDirectBrowser=function(){return i.Message.getWrapperField(this,n._LoginResponse.DirectBrowser,1)},n._LoginResponse.prototype.setDirectBrowser=function(e){return i.Message.setOneofWrapperField(this,1,n._LoginResponse.oneofGroups_[0],e)},n._LoginResponse.prototype.clearDirectBrowser=function(){return this.setDirectBrowser(void 0)},n._LoginResponse.prototype.hasDirectBrowser=function(){return null!=i.Message.getField(this,1)},n._LoginResponse.prototype.getLoggedIn=function(){return i.Message.getWrapperField(this,n._LoginResponse.LoggedIn,2)},n._LoginResponse.prototype.setLoggedIn=function(e){return i.Message.setOneofWrapperField(this,2,n._LoginResponse.oneofGroups_[0],e)},n._LoginResponse.prototype.clearLoggedIn=function(){return this.setLoggedIn(void 0)},n._LoginResponse.prototype.hasLoggedIn=function(){return null!=i.Message.getField(this,2)},n._LoginResponse.prototype.getMessage=function(){return i.Message.getWrapperField(this,n._LoginResponse.Message,3)},n._LoginResponse.prototype.setMessage=function(e){return i.Message.setOneofWrapperField(this,3,n._LoginResponse.oneofGroups_[0],e)},n._LoginResponse.prototype.clearMessage=function(){return this.setMessage(void 0)},n._LoginResponse.prototype.hasMessage=function(){return null!=i.Message.getField(this,3)},n._LoginResponse.prototype.getError=function(){return i.Message.getWrapperField(this,n._LoginResponse.Error,4)},n._LoginResponse.prototype.setError=function(e){return i.Message.setOneofWrapperField(this,4,n._LoginResponse.oneofGroups_[0],e)},n._LoginResponse.prototype.clearError=function(){return this.setError(void 0)},n._LoginResponse.prototype.hasError=function(){return null!=i.Message.getField(this,4)},n._GenerateApiTokenRequest.oneofGroups_=[[1,2]],n._GenerateApiTokenRequest.ExpiryCase={EXPIRY_NOT_SET:0,NEVER:1,EXPIRES:2},n._GenerateApiTokenRequest.prototype.getExpiryCase=function(){return i.Message.computeOneofCase(this,n._GenerateApiTokenRequest.oneofGroups_[0])}
1,i.Message.GENERATE_TO_OBJECT&&(n._GenerateApiTokenRequest.prototype.toObject=function(e){return n._GenerateApiTokenRequest.toObject(e,this)},n._GenerateApiTokenRequest.toObject=function(e,t){var r,o={never:(r=t.getNever())&&n._GenerateApiTokenRequest.Never.toObject(e,r),expires:(r=t.getExpires())&&n._GenerateApiTokenRequest.Expires.toObject(e,r),authToken:i.Message.getFieldWithDefault(t,3,""),permissions:(r=t.getPermissions())&&s.Permissions.toObject(e,r),tokenId:i.Message.getFieldWithDefault(t,5,""),description:i.Message.getFieldWithDefault(t,6,"")};return e&&(o.$jspbMessageInstance=t),o}),n._GenerateApiTokenRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GenerateApiTokenRequest;return n._GenerateApiTokenRequest.deserializeBinaryFromReader(r,t)},n._GenerateApiTokenRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new n._GenerateApiTokenRequest.Never;t.readMessage(r,n._GenerateApiTokenRequest.Never.deserializeBinaryFromReader),e.setNever(r);break;case 2:var r=new n._GenerateApiTokenRequest.Expires;t.readMessage(r,n._GenerateApiTokenRequest.Expires.deserializeBinaryFromReader),e.setExpires(r);break;case 3:var r=t.readString();e.setAuthToken(r);break;case 4:var r=new s.Permissions;t.readMessage(r,s.Permissions.deserializeBinaryFromReader),e.setPermissions(r);break;case 5:var r=t.readString();e.setTokenId(r);break;case 6:var r=t.readString();e.setDescription(r);break;default:t.skipField()}return e},n._GenerateApiTokenRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GenerateApiTokenRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GenerateApiTokenRequest.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getNever())&&t.writeMessage(1,r,n._GenerateApiTokenRequest.Never.serializeBinaryToWriter),null!=(r=e.getExpires())&&t.writeMessage(2,r,n._GenerateApiTokenRequest.Expires.serializeBinaryToWriter),(r=e.getAuthToken()).length>0&&t.writeString(3,r),null!=(r=e.getPermissions())&&t.writeMessage(4,r,s.Permissions.serializeBinaryToWriter),(r=e.getTokenId()).length>0&&t.writeString(5,r),(r=e.getDescription()).length>0&&t.writeString(6,r)},i.Message.GENERATE_TO_OBJECT&&(n._GenerateApiTokenRequest.Never.prototype.toObject=function(e){return n._GenerateApiTokenRequest.Never.toObject(e,this)},n._GenerateApiTokenRequest.Never.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n._GenerateApiTokenRequest.Never.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GenerateApiTokenRequest.Never;return n._GenerateApiTokenRequest.Never.deserializeBinaryFromReader(r,t)},n._GenerateApiTokenRequest.Never.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n._GenerateApiTokenRequest.Never.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GenerateApiTokenRequest.Never.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GenerateApiTokenRequest.Never.serializeBinaryToWriter=function(e,t){},i.Message.GENERATE_TO_OBJECT&&(n._GenerateApiTokenRequest.Expires.prototype.toObject=function(e){return n._GenerateApiTokenRequest.Expires.toObject(e,this)},n._GenerateApiTokenRequest.Expires.toObject=function(e,t){var r={validForSeconds:i.Message.getFieldWithDefault(t,1,0)};return e&&(r.$jspbMessageInstance=t),r}),n._GenerateApiTokenRequest.Expires.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GenerateApiTokenRequest.Expires;return n._GenerateApiTokenRequest.Expires.deserializeBinaryFromReader(r,t)},n._GenerateApiTokenRequest.Expires.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readUint32();e.setValidForSeconds(r)}else t.skipField();return e},n._GenerateApiTokenRequest.Expires.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GenerateApiTokenRequest.Expires.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GenerateApiTokenRequest.Expires.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getValidForSeconds())&&t.writeUint32(1,r)},n._GenerateApiTokenRequest.Expires.prototype.getValidForSeconds=function(){return i.Message.getFieldWithDefault(this,1,0)},n._GenerateApiTokenRequest.Expires.prototype.setValidForSeconds=function(e){return i.Message.setProto3IntField(this,1,e)},n._GenerateApiTokenRequest.prototype.getNever=function(){return i.Message.getWrapperField(this,n._GenerateApiTokenRequest.Never,1)},n._GenerateApiTokenRequest.prototype.setNever=function(e){return i.Message.setOneofWrapperField(this,1,n._GenerateApiTokenRequest.oneofGroups_[0],e)},n._GenerateApiTokenRequest.prototype.clearNever=function(){return this.setNever(void 0)},n._GenerateApiTokenRequest.prototype.hasNever=function(){return null!=i.Message.getField(this,1)},n._GenerateApiTokenRequest.prototype.getExpires=function(){return i.Message.getWrapperField(this,n._GenerateApiTokenRequest.Expires,2)},n._GenerateApiTokenRequest.prototype.setExpires=function(e){return i.Message.setOneofWrapperField(this,2,n._GenerateApiTokenRequest.oneofGroups_[0],e)},n._GenerateApiTokenRequest.prototype.clearExpires=function(){return this.setExpires(void 0)},n._GenerateApiTokenRequest.prototype.hasExpires=function(){return null!=i.Message.getField(this,2)},n._GenerateApiTokenRequest.prototype.getAuthToken=function(){return i.Message.getFieldWithDefault(this,3,"")},n._GenerateApiTokenRequest.prototype.setAuthToken=function(e){return i.Message.setProto3StringField(this,3,e)},n._GenerateApiTokenRequest.prototype.getPermissions=function(){return i.Message.getWrapperField(this,s.Permissions,4)},n._GenerateApiTokenRequest.prototype.setPermissions=function(e){return i.Message.setWrapperField(this,4,e)},n._GenerateApiTokenRequest.prototype.clearPermissions=function(){return this.setPermissions(void 0)},n._GenerateApiTokenRequest.prototype.hasPermissions=function(){return null!=i.Message.getField(this,4)},n._GenerateApiTokenRequest.prototype.getTokenId=function(){return i.Message.getFieldWithDefault(this,5,"")},n._GenerateApiTokenRequest.prototype.setTokenId=function(e){return i.Message.setProto3StringField(this,5,e)},n._GenerateApiTokenRequest.prototype.getDescription=function(){return i.Message.getFieldWithDefault(this,6,"")},n._GenerateApiTokenRequest.prototype.setDescription=function(e){return i.Message.setProto3StringField(this,6,e)}
1,i.Message.GENERATE_TO_OBJECT&&(n._GenerateApiTokenResponse.prototype.toObject=function(e){return n._GenerateApiTokenResponse.toObject(e,this)},n._GenerateApiTokenResponse.toObject=function(e,t){var r={apiKey:i.Message.getFieldWithDefault(t,1,""),refreshToken:i.Message.getFieldWithDefault(t,2,""),endpoint:i.Message.getFieldWithDefault(t,3,""),validUntil:i.Message.getFieldWithDefault(t,4,0)};return e&&(r.$jspbMessageInstance=t),r}),n._GenerateApiTokenResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._GenerateApiTokenResponse;return n._GenerateApiTokenResponse.deserializeBinaryFromReader(r,t)},n._GenerateApiTokenResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setApiKey(r);break;case 2:var r=t.readString();e.setRefreshToken(r);break;case 3:var r=t.readString();e.setEndpoint(r);break;case 4:var r=t.readUint64();e.setValidUntil(r);break;default:t.skipField()}return e},n._GenerateApiTokenResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._GenerateApiTokenResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._GenerateApiTokenResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getApiKey()).length>0&&t.writeString(1,r),(r=e.getRefreshToken()).length>0&&t.writeString(2,r),(r=e.getEndpoint()).length>0&&t.writeString(3,r),0!==(r=e.getValidUntil())&&t.writeUint64(4,r)},n._GenerateApiTokenResponse.prototype.getApiKey=function(){return i.Message.getFieldWithDefault(this,1,"")},n._GenerateApiTokenResponse.prototype.setApiKey=function(e){return i.Message.setProto3StringField(this,1,e)},n._GenerateApiTokenResponse.prototype.getRefreshToken=function(){return i.Message.getFieldWithDefault(this,2,"")},n._GenerateApiTokenResponse.prototype.setRefreshToken=function(e){return i.Message.setProto3StringField(this,2,e)},n._GenerateApiTokenResponse.prototype.getEndpoint=function(){return i.Message.getFieldWithDefault(this,3,"")},n._GenerateApiTokenResponse.prototype.setEndpoint=function(e){return i.Message.setProto3StringField(this,3,e)},n._GenerateApiTokenResponse.prototype.getValidUntil=function(){return i.Message.getFieldWithDefault(this,4,0)},n._GenerateApiTokenResponse.prototype.setValidUntil=function(e){return i.Message.setProto3IntField(this,4,e)},i.Message.GENERATE_TO_OBJECT&&(n._RefreshApiTokenRequest.prototype.toObject=function(e){return n._RefreshApiTokenRequest.toObject(e,this)},n._RefreshApiTokenRequest.toObject=function(e,t){var r={apiKey:i.Message.getFieldWithDefault(t,1,""),refreshToken:i.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),n._RefreshApiTokenRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._RefreshApiTokenRequest;return n._RefreshApiTokenRequest.deserializeBinaryFromReader(r,t)},n._RefreshApiTokenRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setApiKey(r);break;case 2:var r=t.readString();e.setRefreshToken(r);break;default:t.skipField()}return e},n._RefreshApiTokenRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._RefreshApiTokenRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._RefreshApiTokenRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getApiKey()).length>0&&t.writeString(1,r),(r=e.getRefreshToken()).length>0&&t.writeString(2,r)},n._RefreshApiTokenRequest.prototype.getApiKey=function(){return i.Message.getFieldWithDefault(this,1,"")},n._RefreshApiTokenRequest.prototype.setApiKey=function(e){return i.Message.setProto3StringField(this,1,e)},n._RefreshApiTokenRequest.prototype.getRefreshToken=function(){return i.Message.getFieldWithDefault(this,2,"")},n._RefreshApiTokenRequest.prototype.setRefreshToken=function(e){return i.Message.setProto3StringField(this,2,e)},i.Message.GENERATE_TO_OBJECT&&(n._RefreshApiTokenResponse.prototype.toObject=function(e){return n._RefreshApiTokenResponse.toObject(e,this)},n._RefreshApiTokenResponse.toObject=function(e,t){var r={apiKey:i.Message.getFieldWithDefault(t,1,""),refreshToken:i.Message.getFieldWithDefault(t,2,""),endpoint:i.Message.getFieldWithDefault(t,3,""),validUntil:i.Message.getFieldWithDefault(t,4,0)};return e&&(r.$jspbMessageInstance=t),r}),n._RefreshApiTokenResponse.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._RefreshApiTokenResponse;return n._RefreshApiTokenResponse.deserializeBinaryFromReader(r,t)},n._RefreshApiTokenResponse.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setApiKey(r);break;case 2:var r=t.readString();e.setRefreshToken(r);break;case 3:var r=t.readString();e.setEndpoint(r);break;case 4:var r=t.readUint64();e.setValidUntil(r);break;default:t.skipField()}return e},n._RefreshApiTokenResponse.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._RefreshApiTokenResponse.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._RefreshApiTokenResponse.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getApiKey()).length>0&&t.writeString(1,r),(r=e.getRefreshToken()).length>0&&t.writeString(2,r),(r=e.getEndpoint()).length>0&&t.writeString(3,r),0!==(r=e.getValidUntil())&&t.writeUint64(4,r)},n._RefreshApiTokenResponse.prototype.getApiKey=function(){return i.Message.getFieldWithDefault(this,1,"")},n._RefreshApiTokenResponse.prototype.setApiKey=function(e){return i.Message.setProto3StringField(this,1,e)},n._RefreshApiTokenResponse.prototype.getRefreshToken=function(){return i.Message.getFieldWithDefault(this,2,"")},n._RefreshApiTokenResponse.prototype.setRefreshToken=function(e){return i.Message.setProto3StringField(this,2,e)},n._RefreshApiTokenResponse.prototype.getEndpoint=function(){return i.Message.getFieldWithDefault(this,3,"")},n._RefreshApiTokenResponse.prototype.setEndpoint=function(e){return i.Message.setProto3StringField(this,3,e)},n._RefreshApiTokenResponse.prototype.getValidUntil=function(){return i.Message.getFieldWithDefault(this,4,0)},n._RefreshApiTokenResponse.prototype.setValidUntil=function(e){return i.Message.setProto3IntField(this,4,e)},i.object.extend(t,n)},71318:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(85697),s=r(94452);class o extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=s.CacheSetAddElementsResponse.Success}toSingularResponse(){return new n.Success}}t.Success=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=s.CacheSetAddElementsResponse.Error}toSingularResponse(){return new n.Error(this._innerException)}}t.Error=a},71426:(e,t,r)=>{"use strict";r.d(t,{$O:()=>s,XP:()=>o,ug:()=>n});var i=r(78138);let n="DISCARDED",s="SKIPPED";function o(){let e={};return{register:(t,r)=>(e[t]||(e[t]=[]),e[t].push(r),{unregister:()=>{e[t]=e[t].filter(e=>e!==r)}}),triggerHook(t,r){let o=e[t]||[],a=[];for(let e of o){let t=e(r);if(t===n)return n;t!==s&&a.push(t)}return(0,i.kg)(...a)}}}},71992:()=>{},72125:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__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)&&i(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.globaladmin=t.webhook=t.leaderboard=t.ping=t.token=t.auth=t.control=t.cache=void 0,t.cac
1he=s(r(96802)),t.control=s(r(63167)),t.auth=s(r(22629)),t.token=s(r(56278)),t.ping=s(r(33395)),t.leaderboard=s(r(47012)),t.webhook=s(r(79986)),t.globaladmin=s(r(86622))},73583:(e,t,r)=>{var i=r(64555),n={},s=r(9837);i.object.extend(n,s);var o=r(24384);i.object.extend(n,o),i.exportSymbol("_Discontinuity",null,n),i.exportSymbol("_Heartbeat",null,n),i.exportSymbol("_PublishRequest",null,n),i.exportSymbol("_SubscriptionItem",null,n),i.exportSymbol("_SubscriptionItem.KindCase",null,n),i.exportSymbol("_SubscriptionRequest",null,n),i.exportSymbol("_TopicItem",null,n),i.exportSymbol("_TopicValue",null,n),i.exportSymbol("_TopicValue.KindCase",null,n),n._PublishRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._PublishRequest,i.Message),i.DEBUG&&!COMPILED&&(n._PublishRequest.displayName="proto._PublishRequest"),n._SubscriptionRequest=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._SubscriptionRequest,i.Message),i.DEBUG&&!COMPILED&&(n._SubscriptionRequest.displayName="proto._SubscriptionRequest"),n._SubscriptionItem=function(e){i.Message.initialize(this,e,0,-1,null,n._SubscriptionItem.oneofGroups_)},i.inherits(n._SubscriptionItem,i.Message),i.DEBUG&&!COMPILED&&(n._SubscriptionItem.displayName="proto._SubscriptionItem"),n._TopicItem=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._TopicItem,i.Message),i.DEBUG&&!COMPILED&&(n._TopicItem.displayName="proto._TopicItem"),n._TopicValue=function(e){i.Message.initialize(this,e,0,-1,null,n._TopicValue.oneofGroups_)},i.inherits(n._TopicValue,i.Message),i.DEBUG&&!COMPILED&&(n._TopicValue.displayName="proto._TopicValue"),n._Discontinuity=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._Discontinuity,i.Message),i.DEBUG&&!COMPILED&&(n._Discontinuity.displayName="proto._Discontinuity"),n._Heartbeat=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n._Heartbeat,i.Message),i.DEBUG&&!COMPILED&&(n._Heartbeat.displayName="proto._Heartbeat"),i.Message.GENERATE_TO_OBJECT&&(n._PublishRequest.prototype.toObject=function(e){return n._PublishRequest.toObject(e,this)},n._PublishRequest.toObject=function(e,t){var r,s={cacheName:i.Message.getFieldWithDefault(t,1,""),topic:i.Message.getFieldWithDefault(t,2,""),value:(r=t.getValue())&&n._TopicValue.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),n._PublishRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._PublishRequest;return n._PublishRequest.deserializeBinaryFromReader(r,t)},n._PublishRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setCacheName(r);break;case 2:var r=t.readString();e.setTopic(r);break;case 3:var r=new n._TopicValue;t.readMessage(r,n._TopicValue.deserializeBinaryFromReader),e.setValue(r);break;default:t.skipField()}return e},n._PublishRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._PublishRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._PublishRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheName()).length>0&&t.writeString(1,r),(r=e.getTopic()).length>0&&t.writeString(2,r),null!=(r=e.getValue())&&t.writeMessage(3,r,n._TopicValue.serializeBinaryToWriter)},n._PublishRequest.prototype.getCacheName=function(){return i.Message.getFieldWithDefault(this,1,"")},n._PublishRequest.prototype.setCacheName=function(e){return i.Message.setProto3StringField(this,1,e)},n._PublishRequest.prototype.getTopic=function(){return i.Message.getFieldWithDefault(this,2,"")},n._PublishRequest.prototype.setTopic=function(e){return i.Message.setProto3StringField(this,2,e)},n._PublishRequest.prototype.getValue=function(){return i.Message.getWrapperField(this,n._TopicValue,3)},n._PublishRequest.prototype.setValue=function(e){return i.Message.setWrapperField(this,3,e)},n._PublishRequest.prototype.clearValue=function(){return this.setValue(void 0)},n._PublishRequest.prototype.hasValue=function(){return null!=i.Message.getField(this,3)},i.Message.GENERATE_TO_OBJECT&&(n._SubscriptionRequest.prototype.toObject=function(e){return n._SubscriptionRequest.toObject(e,this)},n._SubscriptionRequest.toObject=function(e,t){var r={cacheName:i.Message.getFieldWithDefault(t,1,""),topic:i.Message.getFieldWithDefault(t,2,""),resumeAtTopicSequenceNumber:i.Message.getFieldWithDefault(t,3,0),sequencePage:i.Message.getFieldWithDefault(t,4,0)};return e&&(r.$jspbMessageInstance=t),r}),n._SubscriptionRequest.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._SubscriptionRequest;return n._SubscriptionRequest.deserializeBinaryFromReader(r,t)},n._SubscriptionRequest.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();
1e.setCacheName(r);break;case 2:var r=t.readString();e.setTopic(r);break;case 3:var r=t.readUint64();e.setResumeAtTopicSequenceNumber(r);break;case 4:var r=t.readUint64();e.setSequencePage(r);break;default:t.skipField()}return e},n._SubscriptionRequest.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._SubscriptionRequest.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._SubscriptionRequest.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getCacheName()).length>0&&t.writeString(1,r),(r=e.getTopic()).length>0&&t.writeString(2,r),0!==(r=e.getResumeAtTopicSequenceNumber())&&t.writeUint64(3,r),0!==(r=e.getSequencePage())&&t.writeUint64(4,r)},n._SubscriptionRequest.prototype.getCacheName=function(){return i.Message.getFieldWithDefault(this,1,"")},n._SubscriptionRequest.prototype.setCacheName=function(e){return i.Message.setProto3StringField(this,1,e)},n._SubscriptionRequest.prototype.getTopic=function(){return i.Message.getFieldWithDefault(this,2,"")},n._SubscriptionRequest.prototype.setTopic=function(e){return i.Message.setProto3StringField(this,2,e)},n._SubscriptionRequest.prototype.getResumeAtTopicSequenceNumber=function(){return i.Message.getFieldWithDefault(this,3,0)},n._SubscriptionRequest.prototype.setResumeAtTopicSequenceNumber=function(e){return i.Message.setProto3IntField(this,3,e)},n._SubscriptionRequest.prototype.getSequencePage=function(){return i.Message.getFieldWithDefault(this,4,0)},n._SubscriptionRequest.prototype.setSequencePage=function(e){return i.Message.setProto3IntField(this,4,e)},n._SubscriptionItem.oneofGroups_=[[1,2,3]],n._SubscriptionItem.KindCase={KIND_NOT_SET:0,ITEM:1,DISCONTINUITY:2,HEARTBEAT:3},n._SubscriptionItem.prototype.getKindCase=function(){return i.Message.computeOneofCase(this,n._SubscriptionItem.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(n._SubscriptionItem.prototype.toObject=function(e){return n._SubscriptionItem.toObject(e,this)},n._SubscriptionItem.toObject=function(e,t){var r,i={item:(r=t.getItem())&&n._TopicItem.toObject(e,r),discontinuity:(r=t.getDiscontinuity())&&n._Discontinuity.toObject(e,r),heartbeat:(r=t.getHeartbeat())&&n._Heartbeat.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),n._SubscriptionItem.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._SubscriptionItem;return n._SubscriptionItem.deserializeBinaryFromReader(r,t)},n._SubscriptionItem.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new n._TopicItem;t.readMessage(r,n._TopicItem.deserializeBinaryFromReader),e.setItem(r);break;case 2:var r=new n._Discontinuity;t.readMessage(r,n._Discontinuity.deserializeBinaryFromReader),e.setDiscontinuity(r);break;case 3:var r=new n._Heartbeat;t.readMessage(r,n._Heartbeat.deserializeBinaryFromReader),e.setHeartbeat(r);break;default:t.skipField()}return e},n._SubscriptionItem.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._SubscriptionItem.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._SubscriptionItem.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getItem())&&t.writeMessage(1,r,n._TopicItem.serializeBinaryToWriter),null!=(r=e.getDiscontinuity())&&t.writeMessage(2,r,n._Discontinuity.serializeBinaryToWriter),null!=(r=e.getHeartbeat())&&t.writeMessage(3,r,n._Heartbeat.serializeBinaryToWriter)},n._SubscriptionItem.prototype.getItem=function(){return i.Message.getWrapperField(this,n._TopicItem,1)},n._SubscriptionItem.prototype.setItem=function(e){return i.Message.setOneofWrapperField(this,1,n._SubscriptionItem.oneofGroups_[0],e)},n._SubscriptionItem.prototype.clearItem=function(){return this.setItem(void 0)},n._SubscriptionItem.prototype.hasItem=function(){return null!=i.Message.getField(this,1)},n._SubscriptionItem.prototype.getDiscontinuity=function(){return i.Message.getWrapperField(this,n._Discontinuity,2)},n._SubscriptionItem.prototype.setDiscontinuity=function(e){return i.Message.setOneofWrapperField(this,2,n._SubscriptionItem.oneofGroups_[0],e)},n._SubscriptionItem.prototype.clearDiscontinuity=function(){return this.setDiscontinuity(void 0)},n._SubscriptionItem.prototype.hasDiscontinuity=function(){return null!=i.Message.getField(this,2)},n._SubscriptionItem.prototype.getHeartbeat=function(){return i.Message.getWrapperField(this,n._Heartbeat,3)},n._SubscriptionItem.prototype.setHeartbeat=function(e){return i.Message.setOneofWrapperField(this,3,n._SubscriptionItem.oneofGroups_[0],e)},n._SubscriptionItem.prototype.clearHeartbeat=function(){return this.setHeartbeat(void 0)},n._SubscriptionItem.prototype.hasHeartbeat=function(){return null!=i.Message.getField(this,3)}
1,i.Message.GENERATE_TO_OBJECT&&(n._TopicItem.prototype.toObject=function(e){return n._TopicItem.toObject(e,this)},n._TopicItem.toObject=function(e,t){var r,s={topicSequenceNumber:i.Message.getFieldWithDefault(t,1,0),value:(r=t.getValue())&&n._TopicValue.toObject(e,r),publisherId:i.Message.getFieldWithDefault(t,3,""),sequencePage:i.Message.getFieldWithDefault(t,4,0)};return e&&(s.$jspbMessageInstance=t),s}),n._TopicItem.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._TopicItem;return n._TopicItem.deserializeBinaryFromReader(r,t)},n._TopicItem.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readUint64();e.setTopicSequenceNumber(r);break;case 2:var r=new n._TopicValue;t.readMessage(r,n._TopicValue.deserializeBinaryFromReader),e.setValue(r);break;case 3:var r=t.readString();e.setPublisherId(r);break;case 4:var r=t.readUint64();e.setSequencePage(r);break;default:t.skipField()}return e},n._TopicItem.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._TopicItem.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._TopicItem.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getTopicSequenceNumber())&&t.writeUint64(1,r),null!=(r=e.getValue())&&t.writeMessage(2,r,n._TopicValue.serializeBinaryToWriter),(r=e.getPublisherId()).length>0&&t.writeString(3,r),0!==(r=e.getSequencePage())&&t.writeUint64(4,r)},n._TopicItem.prototype.getTopicSequenceNumber=function(){return i.Message.getFieldWithDefault(this,1,0)},n._TopicItem.prototype.setTopicSequenceNumber=function(e){return i.Message.setProto3IntField(this,1,e)},n._TopicItem.prototype.getValue=function(){return i.Message.getWrapperField(this,n._TopicValue,2)},n._TopicItem.prototype.setValue=function(e){return i.Message.setWrapperField(this,2,e)},n._TopicItem.prototype.clearValue=function(){return this.setValue(void 0)},n._TopicItem.prototype.hasValue=function(){return null!=i.Message.getField(this,2)},n._TopicItem.prototype.getPublisherId=function(){return i.Message.getFieldWithDefault(this,3,"")},n._TopicItem.prototype.setPublisherId=function(e){return i.Message.setProto3StringField(this,3,e)},n._TopicItem.prototype.getSequencePage=function(){return i.Message.getFieldWithDefault(this,4,0)},n._TopicItem.prototype.setSequencePage=function(e){return i.Message.setProto3IntField(this,4,e)},n._TopicValue.oneofGroups_=[[1,2]],n._TopicValue.KindCase={KIND_NOT_SET:0,TEXT:1,BINARY:2},n._TopicValue.prototype.getKindCase=function(){return i.Message.computeOneofCase(this,n._TopicValue.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(n._TopicValue.prototype.toObject=function(e){return n._TopicValue.toObject(e,this)},n._TopicValue.toObject=function(e,t){var r={text:i.Message.getFieldWithDefault(t,1,""),binary:t.getBinary_asB64()};return e&&(r.$jspbMessageInstance=t),r}),n._TopicValue.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._TopicValue;return n._TopicValue.deserializeBinaryFromReader(r,t)},n._TopicValue.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setText(r);break;case 2:var r=t.readBytes();e.setBinary(r);break;default:t.skipField()}return e},n._TopicValue.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._TopicValue.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._TopicValue.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=i.Message.getField(e,1))&&t.writeString(1,r),null!=(r=i.Message.getField(e,2))&&t.writeBytes(2,r)},n._TopicValue.prototype.getText=function(){return i.Message.getFieldWithDefault(this,1,"")},n._TopicValue.prototype.setText=function(e){return i.Message.setOneofField(this,1,n._TopicValue.oneofGroups_[0],e)},n._TopicValue.prototype.clearText=function(){return i.Message.setOneofField(this,1,n._TopicValue.oneofGroups_[0],void 0)},n._TopicValue.prototype.hasText=function(){return null!=i.Message.getField(this,1)},n._TopicValue.prototype.getBinary=function(){return i.Message.getFieldWithDefault(this,2,"")},n._TopicValue.prototype.getBinary_asB64=function(){return i.Message.bytesAsB64(this.getBinary())},n._TopicValue.prototype.getBinary_asU8=function(){return i.Message.bytesAsU8(this.getBinary())},n._TopicValue.prototype.setBinary=function(e){return i.Message.setOneofField(this,2,n._TopicValue.oneofGroups_[0],e)},n._TopicValue.prototype.clearBinary=function(){return i.Message.setOneofField(this,2,n._TopicValue.oneofGroups_[0],void 0)},n._TopicValue.prototype.hasBinary=function(){return null!=i.Message.getField(this,2)}
1,i.Message.GENERATE_TO_OBJECT&&(n._Discontinuity.prototype.toObject=function(e){return n._Discontinuity.toObject(e,this)},n._Discontinuity.toObject=function(e,t){var r={lastTopicSequence:i.Message.getFieldWithDefault(t,1,0),newTopicSequence:i.Message.getFieldWithDefault(t,2,0),newSequencePage:i.Message.getFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),n._Discontinuity.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._Discontinuity;return n._Discontinuity.deserializeBinaryFromReader(r,t)},n._Discontinuity.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readUint64();e.setLastTopicSequence(r);break;case 2:var r=t.readUint64();e.setNewTopicSequence(r);break;case 3:var r=t.readUint64();e.setNewSequencePage(r);break;default:t.skipField()}return e},n._Discontinuity.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._Discontinuity.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._Discontinuity.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getLastTopicSequence())&&t.writeUint64(1,r),0!==(r=e.getNewTopicSequence())&&t.writeUint64(2,r),0!==(r=e.getNewSequencePage())&&t.writeUint64(3,r)},n._Discontinuity.prototype.getLastTopicSequence=function(){return i.Message.getFieldWithDefault(this,1,0)},n._Discontinuity.prototype.setLastTopicSequence=function(e){return i.Message.setProto3IntField(this,1,e)},n._Discontinuity.prototype.getNewTopicSequence=function(){return i.Message.getFieldWithDefault(this,2,0)},n._Discontinuity.prototype.setNewTopicSequence=function(e){return i.Message.setProto3IntField(this,2,e)},n._Discontinuity.prototype.getNewSequencePage=function(){return i.Message.getFieldWithDefault(this,3,0)},n._Discontinuity.prototype.setNewSequencePage=function(e){return i.Message.setProto3IntField(this,3,e)},i.Message.GENERATE_TO_OBJECT&&(n._Heartbeat.prototype.toObject=function(e){return n._Heartbeat.toObject(e,this)},n._Heartbeat.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n._Heartbeat.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n._Heartbeat;return n._Heartbeat.deserializeBinaryFromReader(r,t)},n._Heartbeat.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n._Heartbeat.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n._Heartbeat.serializeBinaryToWriter(this,e),e.getResultBuffer()},n._Heartbeat.serializeBinaryToWriter=function(e,t){},i.object.extend(t,n)},73924:(e,t,r)=>{"use strict";let i;function n(e){return l(e).segments_count}function s(e){l(e).segments_count+=1}function o(e){l(e).records_count+=1}function a(e,t){l(e).segments_total_raw_size+=t}function c(e){return null==i?void 0:i.get(e)}function l(e){let t;return i||(i=new Map),i.has(e)?t=i.get(e):(t={records_count:0,segments_count:0,segments_total_raw_size:0},i.set(e,t),i.size>1e3&&function(){if(!i)return;let e=i.keys().next().value;e&&i.delete(e)}()),t}r.d(t,{$1:()=>o,H5:()=>s,K_:()=>n,L7:()=>a,lv:()=>c})},74017:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(53729),t),n(r(11102),t),n(r(3170),t),n(r(982),t),n(r(21312),t),n(r(23041),t),n(r(97596),t),n(r(78522),t),n(r(77903),t)},74691:(e,t,r)=>{"use strict";r.d(t,{g:()=>i});let i={AGENT:"agent",CONSOLE:"console",CUSTOM:"custom",LOGGER:"logger",NETWORK:"network",SOURCE:"source",REPORT:"report"}},74989:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.NotSet=t.Set=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheIncreaseTtlResponse.Set}}t.Set=s;class o extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheIncreaseTtlResponse.NotSet}}t.NotSet=o;class a extends i.BaseResponseMiss{constructor(){super(...arguments),this.type=n.CacheIncreaseTtlResponse.Miss}}t.Miss=a;class c extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheIncreaseTtlResponse.Error}}t.Error=c},75681:()=>{},76296:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.fromEntries=void 0,t.fromEntries=function(e){return e.reduce((e,[t,r])=>({...e,[t]:r}),{})}},76300:(e,t,r)=>{"use strict";function i(e){return 0!==e&&100*Math.random()<=e}function n(e,t){return+e.toFixed(t)}function s(e){return o(e)&&e>=0&&e<=100}function o(e){return"number"==typeof e}r.d(t,{Et:()=>o,LI:()=>n,fp:()=>s,ic:()=>i})},76557:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(91612),t),n(r(80866),t)},76911:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TopicClientConfiguration=void 0;class r{constructor(e){this.loggerFactory=e.loggerFactory,this.throwOnErrors=e.throwOnErrors}getLoggerFactory(){return this.loggerFactory}getThrowOnErrors(){return this.throwOnErrors}withThrowOnErrors(e){return new r({...this,throwOnErrors:e})}}t.TopicClientConfiguration=r},77112:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.TopicPublishResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.TopicPublishResponse.Error}}t.Error=o},77129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={cancelIdleCallback:function(){return s},requestIdleCallback:function(){return n}};for(var i in r)Object.defineProperty(t,i,{enumerable:!0,get:r[i]});let n="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},s="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PingClient=void 0;let i=r(72125),n=r(57758),s=r(99851);class o{constructor(e){this.logger=e.configuration.getLoggerFactory().getLogger(this),this.clientMetadataProvider=new s.ClientMetadataProvider({clientType:"ping"}),this.clientWrapper=new i.ping.PingClient(e.endpoint,null,{})}async ping(){this.logger.debug("pinging...");let e=new n._PingRequest;await this.clientWrapper.ping(e,this.clientMetadataProvider.createClientMetadata())}}t.PingClient=o},77507:()=>{},77903:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},77984:(e,t,r)=>{"use strict";r.d(t,{q:()=>n});var i=r(53476);function n(){var e;let t=i.J2.navigator;return{status:t.onLine?"connected":"not_connected",interfaces:t.connection&&t.connection.type?[t.connection.type]:void 0,effective_type:null==(e=t.connection)?void 0:e.effectiveType}}},78138:(e,t,r)=>{"use strict";r.d(t,{Go:()=>s,kg:()=>o});var i=r(64647);function n(e,t,r=function(){if("u">typeof WeakSet){let e=new WeakSet;return{hasAlreadyBeenSeen(t){let r=e.has(t);return r||e.add(t),r}}}let e=[];return{hasAlreadyBeenSeen(t){let r=e.indexOf(t)>=0;return r||e.push(t),r}}}()){if(void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){let e=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,e)}if(r.hasAlreadyBeenSeen(t))return;if(Array.isArray(t)){let i=Array.isArray(e)?e:[];for(let e=0;e<t.length;++e)i[e]=n(i[e],t[e],r);return i}let s="object"===(0,i.P)(e)?e:{};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(s[e]=n(s[e],t[e],r));return s}function s(e){return n(void 0,e)}function o(...e){let t;for(let r of e)null!=r&&(t=n(t,r));return t}},78522:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.secondsToMilliseconds=void 0,t.secondsToMilliseconds=function(e){return 1e3*e}},78797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractLeaderboard=void 0;class r{constructor(e,t,r){this.cacheName=e,this.leaderboardName=t,this.dataClient=r}async upsert(e){return await this.dataClient.upsert(this.cacheName,this.leaderboardName,e)}async fetchByScore(e){return await this.dataClient.fetchByScore(this.cacheName,this.leaderboardName,null==e?void 0:e.minScore,null==e?void 0:e.maxScore,null==e?void 0:e.order,null==e?void 0:e.offset,null==e?void 0:e.count)}async fetchByRank(e,t,r){return await this.dataClient.fetchByRank(this.cacheName,this.leaderboardName,e,t,null==r?void 0:r.order)}async getRank(e,t){return await this.dataClient.getRank(this.cacheName,this.leaderboardName,e,null==t?void 0:t.order)}async length(){return await this.dataClient.length(this.cacheName,this.leaderboardName)}async removeElements(e){return await this.dataClient.removeElements(this.cacheName,this.leaderboardName,e)}async delete(){return await this.dataClient.delete(this.cacheName,this.leaderboardName)}}t.AbstractLeaderboard=r},78893:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(52112),n=r(17214),s=r(94452);class o extends n.BaseResponseSuccess{constructor(){super(...arguments),this.type=s.CacheSetRemoveElementsResponse.Success}toSingularResponse(){return new i.Success}}t.Success=o;class a extends n.BaseResponseError{constructor(e){super(e),this.type=s.CacheSetRemoveElementsResponse.Error}toSingularResponse(){return new i.Error(this._innerException)}}t.Error=a},79324:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionState=void 0;class r{constructor(){this._unsubscribeFn=()=>{},this._isSubscribed=!1}get resumeAtTopicSequenceNumber(){var e;return(null!=(e=this.lastTopicSequenceNumber)?e:-1)+1}get resumeAtTopicSequencePage(){var e;return null!=(e=this.lastTopicSequencePage)?e:0}setSubscribed(){this._isSubscribed=!0}setUnsubscribed(){this._isSubscribed=!1}get isSubscribed(){return this._isSubscribed}set unsubscribeFn(e){this._unsubscribeFn=e}unsubscribe(){this.isSubscribed&&(this._unsubscribeFn(),this.setUnsubscribed())}toString(){return JSON.stringify({lastTopicSequenceNumber:this.lastTopicSequenceNumber,lastTopicSequencePage:this.lastTopicSequencePage,isSubscribed:this._isSubscribed},null,2)}}t.SubscriptionState=r},79450:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.CacheSetResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSetResponse.Error}}t.Error=o},79986:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__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)&&i(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.WebhookClient=void 0;let o=s(r(43092)),a=s(r(18935));class c{constructor(e,t,r){this.methodDescriptorPutWebhook=new o.MethodDescriptor("/webhook.Webhook/PutWebhook",o.MethodType.UNARY,a._PutWebhookRequest,a._PutWebhookResponse,e=>e.serializeBinary(),a._PutWebhookResponse.deserializeBinary),this.methodDescriptorDeleteWebhook=new o.MethodDescriptor("/webhook.Webhook/DeleteWebhook",o.MethodType.UNARY,a._DeleteWebhookRequest,a._DeleteWebhookResponse,e=>e.serializeBinary(),a._DeleteWebhookResponse.deserializeBinary),this.methodDescriptorListWebhooks=new o.MethodDescriptor("/webhook.Webhook/ListWebhooks",o.MethodType.UNARY,a._ListWebhookRequest,a._ListWebhooksResponse,e=>e.serializeBinary(),a._ListWebhooksResponse.deserializeBinary),this.methodDescriptorGetWebhookSecret=new o.MethodDescriptor("/webhook.Webhook/GetWebhookSecret",o.MethodType.UNARY,a._GetWebhookSecretRequest,a._GetWebhookSecretResponse,e=>e.serializeBinary(),a._GetWebhookSecretResponse.deserializeBinary),this.methodDescriptorRotateWebhookSecret=new o.MethodDescriptor("/webhook.Webhook/R
1otateWebhookSecret",o.MethodType.UNARY,a._RotateWebhookSecretRequest,a._RotateWebhookSecretResponse,e=>e.serializeBinary(),a._RotateWebhookSecretResponse.deserializeBinary),r||(r={}),t||(t={}),r.format="text",this.client_=new o.GrpcWebClientBase(r),this.hostname_=e,this.credentials_=t,this.options_=r}putWebhook(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/webhook.Webhook/PutWebhook",e,t||{},this.methodDescriptorPutWebhook,r):this.client_.unaryCall(this.hostname_+"/webhook.Webhook/PutWebhook",e,t||{},this.methodDescriptorPutWebhook)}deleteWebhook(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/webhook.Webhook/DeleteWebhook",e,t||{},this.methodDescriptorDeleteWebhook,r):this.client_.unaryCall(this.hostname_+"/webhook.Webhook/DeleteWebhook",e,t||{},this.methodDescriptorDeleteWebhook)}listWebhooks(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/webhook.Webhook/ListWebhooks",e,t||{},this.methodDescriptorListWebhooks,r):this.client_.unaryCall(this.hostname_+"/webhook.Webhook/ListWebhooks",e,t||{},this.methodDescriptorListWebhooks)}getWebhookSecret(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/webhook.Webhook/GetWebhookSecret",e,t||{},this.methodDescriptorGetWebhookSecret,r):this.client_.unaryCall(this.hostname_+"/webhook.Webhook/GetWebhookSecret",e,t||{},this.methodDescriptorGetWebhookSecret)}rotateWebhookSecret(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/webhook.Webhook/RotateWebhookSecret",e,t||{},this.methodDescriptorRotateWebhookSecret,r):this.client_.unaryCall(this.hostname_+"/webhook.Webhook/RotateWebhookSecret",e,t||{},this.methodDescriptorRotateWebhookSecret)}}t.WebhookClient=c},80168:(e,t,r)=>{"use strict";r.d(t,{BB:()=>o});var i=r(97033),n=r(36266),s=r(38020);function o(e,t){var r;let o,a;if(window.requestIdleCallback&&window.cancelIdleCallback){let r=window.requestIdleCallback((0,n.dm)(e),t);return()=>window.cancelIdleCallback(r)}return r=e,o=(0,s.x3)(),a=(0,i.wg)(()=>{r({didTimeout:!1,timeRemaining:()=>Math.max(0,50-((0,s.x3)()-o))})},0),()=>(0,i.DJ)(a)}},80196:(e,t,r)=>{"use strict";r.d(t,{m5:()=>n});var i=r(14534);function n(e){let{env:t,service:r,version:i,datacenter:n,sdkVersion:o,variant:a}=e,c=[s("sdk_version",null!=o?o:"6.25.0")];return t&&c.push(s("env",t)),r&&c.push(s("service",r)),i&&c.push(s("version",i)),n&&c.push(s("datacenter",n)),a&&c.push(s("variant",a)),c}function s(e,t){var r;let n=t?`${e}:${t}`:e;return(n.length>200||(r=n,function(){try{return RegExp("[\\p{Ll}]","u"),!0}catch(e){return!1}}()&&RegExp("[^\\p{Ll}\\p{Lo}0-9_:./-]","u").test(r)))&&i.Vy.warn(`Tag ${n} doesn't meet tag requirements and will be sanitized. ${i.xG} ${i.fH}/getting_started/tagging/#defining-tags`),n.replace(/,/g,"_")}},80408:()=>{},80674:(e,t,r)=>{"use strict";r.d(t,{PL:()=>n,RQ:()=>c,rB:()=>a});var i=r(63189);function n(e){return{onFetch:(t,r)=>{let n=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],l=t.state.data?.pageParams||[],u={pages:[],pageParams:[]},d=0,p=async()=>{let r=!1,p=(0,i.ZM)(t.options,t.fetchOptions),h=async(e,n,s)=>{let o;if(r)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);let a=(Object.defineProperty(o={client:t.client,queryKey:t.queryKey,pageParam:n,direction:s?"backward":"forward",meta:t.options.meta},"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",()=>{r=!0}),t.signal)}),o),c=await p(a),{maxPages:l}=t.options,u=s?i.ZZ:i.y9;return{pages:u(e.pages,c,l),pageParams:u(e.pageParams,n,l)}};if(a&&c.length){let e="backward"===a,t={pages:c,pageParams:l},r=(e?o:s)(n,t);u=await h(t,r,e)}else{let t=e??c.length;do{let e=0===d?l[0]??n.initialPageParam:s(n,u);if(d>0&&null==e)break;u=await h(u,e),d++}while(d<t)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=p}}}function s(e,{pages:t,pageParams:r}){let i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,r[i],r):void 0}function o(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function a(e,t){return!!t&&null!=s(e,t)}function c(e,t){return!!t&&!!e.getPreviousPageParam&&null!=o(e,t)}},80866:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0})},81269:(e,t,r)=>{"use strict";r.d(t,{default:()=>n.a});var i=r(27462),n=r.n(i)},81383:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(52725),s=r(94452),o=new TextDecoder;class a extends i.ResponseBase{constructor(e){super(),this.type=s.CacheListFetchResponse.Hit,this._values=e}valueListUint8Array(){return this._values}valueListString(){return this._values.map(e=>o.decode(e))}valueList(){return this.valueListString()}value(){return this.valueListString()}toString(){let e=(0,n.truncateStringArray)(this.valueListString());return`${super.toString()}: [${e.toString()}]`}}t.Hit=a;class c extends i.BaseResponseMiss{constructor(){super(),this.type=s.CacheListFetchResponse.Miss}value(){}}t.Miss=c;class l extends i.BaseResponseError{constructor(e){super(e),this.type=s.CacheListFetchResponse.Error}value(){}}t.Error=l},81530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Miss=t.Hit=void 0;let i=r(17214),n=r(52725),s=r(94452),o=new TextDecoder;class a extends i.ResponseBase{constructor(e,t){super(),this.type=s.CacheSetContainsElementsResponse.Hit,this._contains=e.reduce((e,r,i)=>(e[o.decode(r)]=t[i],e),{})}containsElements(){return this._contains}toString(){let e=(0,n.truncateString)(Object.entries(this._contains).map(([e,t])=>`${e}: ${t?"true":"false"}`).join(", "));return`${super.toString()}: ${e}`}}t.Hit=a;class c extends i.BaseResponseMiss{constructor(){super(),this.type=s.CacheSetContainsElementsResponse.Miss}containsElements(){}}t.Miss=c;class l extends i.BaseResponseError{constructor(e){super(e),this.type=s.CacheSetContainsElementsResponse.Error}containsElements(){}}t.Error=l},82016:()=>{},82062:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CacheControlClient=void 0;let i=r(72125),n=r(42378),s=r(70906),o=r(83145),a=r(52725),c=r(89966),l=r(99851);class u{constructor(e){this.logger=e.configuration.getLoggerFactory().getLogger(this),this.cacheServiceErrorMapper=new o.CacheServiceErrorMapper(e.configuration.getThrowOnErrors()),this.logger.debug(`Creating control client using endpoint: '${(0,c.getWebControlEndpoint)(e.credentialProvider)}`),this.clientMetadataProvider=new l.ClientMetadataProvider({authToken:e.credentialProvider.getAuthToken(),clientType:"cache"}),this.clientWrapper=new i.control.ScsControlClient((0,c.getWebControlEndpoint)(e.credentialProvider),null,{})}close(){this.logger.debug("Closing cache control client")}async createCache(e){try{(0,a.validateCacheName)(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new n.CreateCache.Error(e))}this.logger.debug(`Creating cache: ${e}`);let t=new s._CreateCacheRequest;return t.setCacheName(e),await new Promise((e,r)=>{this.clientWrapper.createCache(t,this.clientMetadataProvider.createClientMetadata(),(t,i)=>{t?this.cacheServiceErrorMapper.convertError(t).errorCode()===n.MomentoErrorCode.CACHE_ALREADY_EXISTS_ERROR?e(new n.CreateCache.AlreadyExists):this.cacheServiceErrorMapper.resolveOrRejectError({err:t,errorResponseFactoryFn:e=>new n.CreateCache.Error(e),resolveFn:e,rejectFn:r}):e(new n.CreateCache.Success)})})}async deleteCache(e){try{(0,a.validateCacheName)(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new n.DeleteCache.Error(e))}
1let t=new s._DeleteCacheRequest;return t.setCacheName(e),this.logger.debug(`Deleting cache: ${e}`),await new Promise((e,r)=>{this.clientWrapper.deleteCache(t,this.clientMetadataProvider.createClientMetadata(),(t,i)=>{t?this.cacheServiceErrorMapper.resolveOrRejectError({err:t,errorResponseFactoryFn:e=>new n.DeleteCache.Error(e),resolveFn:e,rejectFn:r}):e(new n.DeleteCache.Success)})})}async flushCache(e){try{(0,a.validateCacheName)(e)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new n.CacheFlush.Error(e))}return this.logger.trace(`Flushing cache: ${e}`),await this.sendFlushCache(e)}async sendFlushCache(e){let t=new s._FlushCacheRequest;return t.setCacheName(e),await new Promise((e,r)=>{this.clientWrapper.flushCache(t,this.clientMetadataProvider.createClientMetadata(),(t,i)=>{i?e(new n.CacheFlush.Success):this.cacheServiceErrorMapper.resolveOrRejectError({err:t,errorResponseFactoryFn:e=>new n.CacheFlush.Error(e),resolveFn:e,rejectFn:r})})})}async listCaches(){let e=new s._ListCachesRequest;return e.setNextToken(""),this.logger.debug("Issuing 'listCaches' request"),await new Promise((t,r)=>{this.clientWrapper.listCaches(e,this.clientMetadataProvider.createClientMetadata(),(e,i)=>{if(e)this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new n.ListCaches.Error(e),resolveFn:t,rejectFn:r});else{let e=i.getCacheList().map(e=>{var t,r,i,s,o,a,c;let l=e.getCacheName(),u={maxPublishMessageSizeKb:(null==(t=e.getTopicLimits())?void 0:t.getMaxPublishMessageSizeKb())||0,maxSubscriptionCount:(null==(r=e.getTopicLimits())?void 0:r.getMaxSubscriptionCount())||0,maxPublishRate:(null==(i=e.getTopicLimits())?void 0:i.getMaxPublishRate())||0},d={maxTtlSeconds:(null==(s=e.getCacheLimits())?void 0:s.getMaxTtlSeconds())||0,maxItemSizeKb:(null==(o=e.getCacheLimits())?void 0:o.getMaxItemSizeKb())||0,maxThroughputKbps:(null==(a=e.getCacheLimits())?void 0:a.getMaxThroughputKbps())||0,maxTrafficRate:(null==(c=e.getCacheLimits())?void 0:c.getMaxTrafficRate())||0};return new n.CacheInfo(l,u,d)});t(new n.ListCaches.Success(e))}})})}}t.CacheControlClient=u},82087:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},82308:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Laptop=void 0;let i=r(50631),n=r(34873),s=new(r(57435)).DefaultMomentoLoggerFactory;class o extends i.LeaderboardClientConfiguration{static latest(e=s){return o.v1(e)}static v1(e=s){let t=new n.StaticGrpcConfiguration({deadlineMillis:5e3});return new o({loggerFactory:e,transportStrategy:new n.StaticTransportStrategy({grpcConfiguration:t}),throwOnErrors:!1})}}t.Laptop=o},82493:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoopMomentoLoggerFactory=t.NoopMomentoLogger=void 0;class r{debug(e){}error(e){}info(e){}trace(e){}warn(e){}}t.NoopMomentoLogger=r;class i{getLogger(e){return new r}}t.NoopMomentoLoggerFactory=i},83145:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CacheServiceErrorMapper=void 0;let i=r(42378),n=r(43092),s=r(84055);class o{constructor(e){this.throwOnErrors=e}returnOrThrowError(e,t){var r;let n=(r=e)instanceof i.SdkError?r:new i.UnknownError(r.message);if(!this.throwOnErrors)return t(n);throw n}resolveOrRejectError(e){let t=this.convertError(e.err);this.throwOnErrors?e.rejectFn(t):e.resolveFn(e.errorResponseFactoryFn(t))}convertError(e){var t,r,o,a;let c=[(null==e?void 0:e.message)||"Unable to process request",null==e?void 0:e.code,null==e?void 0:e.metadata,null==e?void 0:e.stack];switch(null==e?void 0:e.code){case n.StatusCode.PERMISSION_DENIED:return new i.PermissionError(...c);case n.StatusCode.DATA_LOSS:case n.StatusCode.INTERNAL:case n.StatusCode.ABORTED:return new i.InternalServerError(...c);case n.StatusCode.UNKNOWN:return new i.UnknownServiceError(...c);case n.StatusCode.UNAVAILABLE:return new i.ServerUnavailableError(...c);case n.StatusCode.NOT_FOUND:{let e=(null!=(t=c[2])?t:{}).err,i=null==(r=c[0])?void 0:r.toString();switch((null==i?void 0:i.includes("Store with name:"))&&(null==i?void 0:i.includes("doesn't exist"))&&(e="store_not_found"),e){case"item_not_found":return new s.StoreItemNotFoundError(...c);case"store_not_found":return new s.StoreNotFoundError(...c);default:return new s.CacheNotFoundError(...c)}}
1case n.StatusCode.OUT_OF_RANGE:case n.StatusCode.UNIMPLEMENTED:return new i.BadRequestError(...c);case n.StatusCode.FAILED_PRECONDITION:return new i.FailedPreconditionError(...c);case n.StatusCode.INVALID_ARGUMENT:return new i.InvalidArgumentError(...c);case n.StatusCode.CANCELLED:return new i.CancelledError(...c);case n.StatusCode.DEADLINE_EXCEEDED:return new i.TimeoutError(...c);case n.StatusCode.UNAUTHENTICATED:return new i.AuthenticationError(...c);case n.StatusCode.RESOURCE_EXHAUSTED:{let e=(null!=(o=c[2])?o:{}).err;return new i.LimitExceededError(...c,e)}case n.StatusCode.ALREADY_EXISTS:{let e="",t=null==(a=c[0])?void 0:a.toString(),r=(null==t?void 0:t.includes("Store with name:"))&&(null==t?void 0:t.includes("already exists"));if(!e&&r&&(e="store_already_exists"),"store_already_exists"===e)return new s.StoreAlreadyExistsError(...c);return new s.CacheAlreadyExistsError(...c)}default:return new i.UnknownError(...c)}}}t.CacheServiceErrorMapper=o},84055:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.CacheListRemoveValue=t.CacheListPushFront=t.CacheListPushBack=t.CacheListPopFront=t.CacheListPopBack=t.CacheListLength=t.CacheListFetch=t.CacheListConcatenateFront=t.CacheListConcatenateBack=t.CacheGetWithHash=t.CacheGet=t.SortedSetAggregate=t.getDefaultCredentialProvider=t.MomentoLocalProvider=t.EnvMomentoTokenProvider=t.StringMomentoTokenProvider=t.CredentialProvider=t.LeaderboardOrder=t.SortedSetOrder=t.WebhookDestinationType=t.PostUrlWebhookDestination=t.ItemType=t.CollectionTtl=t.ExpiresAt=t.ExpiresIn=t.DEFAULT_SUBSCRIPTION_RETRY_DELAY_MILLIS=t.CompressionLevel=t.ReadConcern=t.DisposableTokenScopes=t.TokenScopes=t.PermissionScopes=t.isCacheItemKeyPrefix=t.isCacheItemKey=t.AllCacheItems=t.AllTopics=t.AllFunctions=t.AllCaches=t.isTopicName=t.isFunctionNamePrefix=t.isFunction=t.isCacheName=t.AllDataReadWrite=t.FunctionRole=t.TopicRole=t.CacheRole=t.NoopMomentoLoggerFactory=t.NoopMomentoLogger=t.utils=t.webhook=t.leaderboard=void 0,t.CacheKeysExist=t.CacheKeyExists=t.CacheItemGetTtl=t.CacheItemGetType=t.CacheSortedSetUnionStore=t.CacheSortedSetLengthByScore=t.CacheSortedSetLength=t.CacheSortedSetRemoveElements=t.CacheSortedSetRemoveElement=t.CacheSortedSetIncrementScore=t.CacheSortedSetGetScores=t.CacheSortedSetGetScore=t.CacheSortedSetGetRank=t.CacheSortedSetFetch=t.CacheSortedSetPutElements=t.CacheSortedSetPutElement=t.CacheSetLength=t.CacheSetPop=t.CacheSetSample=t.CacheSetRemoveElement=t.CacheSetRemoveElements=t.CacheSetContainsElements=t.CacheSetContainsElement=t.CacheSetAddElement=t.CacheSetAddElements=t.CacheDictionaryLength=t.CacheDictionaryIncrement=t.CacheDictionaryRemoveFields=t.CacheDictionaryRemoveField=t.CacheDictionaryGetFields=t.CacheDictionaryGetField=t.CacheDictionarySetFields=t.CacheDictionarySetField=t.CacheDictionaryFetch=t.CacheSetFetch=t.CacheIncrement=t.ListCaches=t.DeleteCache=t.CreateCache=t.CacheFlush=t.CacheDelete=t.CacheSetIfAbsentOrEqual=t.CacheSetIfPresentAndNotEqual=t.CacheSetIfNotEqual=t.CacheSetIfEqual=t.CacheSetIfAbsent=t.CacheSetIfPresent=t.CacheSetIfNotExists=t.CacheSet=t.CacheListRetain=void 0,t.UnknownError=t.StoreNotFoundError=t.StoreItemNotFoundError=t.CacheNotFoundError=t.PermissionError=t.BadRequestError=t.TimeoutError=t.ServerUnavailableError=t.UnknownServiceError=t.InvalidArgumentError=t.InternalServerError=t.LimitExceededError=t.FailedPreconditionError=t.ConnectionError=t.CancelledError=t.AuthenticationError=t.StoreAlreadyExistsError=t.CacheAlreadyExistsError=t.SdkError=t.MomentoErrorCode=t.GenerateDisposableToken=t.RefreshAuthToken=t.RefreshApiKey=t.GenerateAuthToken=t.GenerateApiKey=t.TopicHeartbeat=t.TopicDiscontinuity=t.TopicItem=t.TopicSubscribe=t.TopicPublish=t.CacheSetIfAbsentOrHashNotEqual=t.CacheSetIfAbsentOrHashEqual=t.CacheSetIfPresentAndHashNotEqual=t.CacheSetIfPresentAndHashEqual=t.CacheSetWithHash=t.CacheGetBatch=t.CacheSetBatch=t.CacheInfo=t.CacheDecreaseTtl=t.CacheIncreaseTtl=t.CacheUpdateTtl=void 0,t.CacheGet=r(2374),t.CacheGetWithHash=r(71220),t.CacheListConcatenateBack=r(37730),t.CacheListConcatenateFront=r(32820),t.CacheListFetch=r(81383),t.CacheListLength=r(45513),t.CacheListPopBack=r(16848),t.CacheListPopFront=r(19434),t.CacheListPushBack=r(61383),t.CacheListPushFront=r(13067),t.CacheListRemoveValue=r(58877),t.CacheListRetain=r(47172),t.CacheSet=r(79450),t.CacheDelete=r(99557),t.CacheFlush=r(14596),t.CreateCache=r(86448),t.DeleteCache=r(64051),t.ListCaches=r(29417),t.CacheSetFetch=r(58999),t.CacheDictionaryFetch=r(9291),t.CacheDictionarySetField=r(57218),t.CacheDictionarySetFields=r(65359),t.CacheDictionaryGetField=r(3590),t.CacheDictionaryGetFields=r(24587),t.CacheDictionaryRemoveField=r
1(40720),t.CacheDictionaryRemoveFields=r(69421),t.CacheDictionaryIncrement=r(31938),t.CacheDictionaryLength=r(70805),t.CacheSetAddElements=r(71318),t.CacheSetAddElement=r(85697),t.CacheSetContainsElement=r(45597),t.CacheSetContainsElements=r(81530),t.CacheSetRemoveElements=r(78893),t.CacheSetRemoveElement=r(52112),t.CacheSetSample=r(67323),t.CacheSetPop=r(67384),t.CacheSetLength=r(54425),t.CacheIncrement=r(22187),t.CacheSetIfNotExists=r(52205),t.CacheSetIfAbsent=r(6952),t.CacheSetIfPresent=r(66680),t.CacheSetIfEqual=r(95519),t.CacheSetIfNotEqual=r(63223),t.CacheSetIfPresentAndNotEqual=r(48981),t.CacheSetIfAbsentOrEqual=r(39423),t.CacheSortedSetPutElement=r(48776),t.CacheSortedSetPutElements=r(30880),t.CacheSortedSetFetch=r(43527),t.CacheSortedSetGetRank=r(5008),t.CacheSortedSetGetScore=r(53820),t.CacheSortedSetGetScores=r(46081),t.CacheSortedSetIncrementScore=r(46233),t.CacheSortedSetRemoveElement=r(14304),t.CacheSortedSetRemoveElements=r(7197),t.CacheSortedSetLength=r(40585),t.CacheSortedSetLengthByScore=r(8446),t.CacheSortedSetUnionStore=r(31752),t.CacheItemGetType=r(21587),t.CacheItemGetTtl=r(13861),t.CacheKeyExists=r(44364),t.CacheKeysExist=r(51088),t.CacheUpdateTtl=r(12376),t.CacheIncreaseTtl=r(74989),t.CacheDecreaseTtl=r(32949),t.CacheSetBatch=r(22627),t.CacheGetBatch=r(32087),t.CacheSetWithHash=r(92344),t.CacheSetIfPresentAndHashEqual=r(54394),t.CacheSetIfPresentAndHashNotEqual=r(59398),t.CacheSetIfAbsentOrHashEqual=r(88708),t.CacheSetIfAbsentOrHashNotEqual=r(44512),t.TopicPublish=r(77112),t.TopicSubscribe=r(33251);let s=r(86414);Object.defineProperty(t,"TopicItem",{enumerable:!0,get:function(){return s.TopicItem}});let o=r(31494);Object.defineProperty(t,"TopicDiscontinuity",{enumerable:!0,get:function(){return o.TopicDiscontinuity}});let a=r(91519);Object.defineProperty(t,"TopicHeartbeat",{enumerable:!0,get:function(){return a.TopicHeartbeat}});let c=r(96691);t.GenerateApiKey=c,t.GenerateAuthToken=c;let l=r(96725);t.RefreshApiKey=l,t.RefreshAuthToken=l,t.GenerateDisposableToken=r(61337),t.leaderboard=r(40033),n(r(40033),t),t.webhook=r(6223),n(r(6223),t);let u=r(25983);Object.defineProperty(t,"CacheInfo",{enumerable:!0,get:function(){return u.CacheInfo}});let d=r(74017);Object.defineProperty(t,"CollectionTtl",{enumerable:!0,get:function(){return d.CollectionTtl}}),Object.defineProperty(t,"SortedSetOrder",{enumerable:!0,get:function(){return d.SortedSetOrder}}),Object.defineProperty(t,"LeaderboardOrder",{enumerable:!0,get:function(){return d.LeaderboardOrder}}),Object.defineProperty(t,"ExpiresIn",{enumerable:!0,get:function(){return d.ExpiresIn}}),Object.defineProperty(t,"ExpiresAt",{enumerable:!0,get:function(){return d.ExpiresAt}}),Object.defineProperty(t,"ItemType",{enumerable:!0,get:function(){return d.ItemType}}),Object.defineProperty(t,"PostUrlWebhookDestination",{enumerable:!0,get:function(){return d.PostUrlWebhookDestination}}),Object.defineProperty(t,"WebhookDestinationType",{enumerable:!0,get:function(){return d.WebhookDestinationType}}),Object.defineProperty(t,"SortedSetAggregate",{enumerable:!0,get:function(){return d.SortedSetAggregate}}),t.utils=r(74017);let p=r(51536);Object.defineProperty(t,"CredentialProvider",{enumerable:!0,get:function(){return p.CredentialProvider}}),Object.defineProperty(t,"StringMomentoTokenProvider",{enumerable:!0,get:function(){return p.StringMomentoTokenProvider}}),Object.defineProperty(t,"EnvMomentoTokenProvider",{enumerable:!0,get:function(){return p.EnvMomentoTokenProvider}}),Object.defineProperty(t,"getDefaultCredentialProvider",{enumerable:!0,get:function(){return p.getDefaultCredentialProvider}}),Object.defineProperty(t,"MomentoLocalProvider",{enumerable:!0,get:function(){return p.MomentoLocalProvider}});let h=r(11205);Object.defineProperty(t,"MomentoErrorCode",{enumerable:!0,get:function(){return h.MomentoErrorCode}}),Object.defineProperty(t,"SdkError",{enumerable:!0,get:function(){return h.SdkError}}),Object.defineProperty(t,"CacheAlreadyExistsError",{enumerable:!0,get:function(){return h.CacheAlreadyExistsError}}),Object.defineProperty(t,"StoreAlreadyExistsError",{enumerable:!0,get:function(){return h.StoreAlreadyExistsError}}),Object.defineProperty(t,"AuthenticationError",{enumerable:!0,get:function(){return h.AuthenticationError}}),Object.defineProperty(t,"CancelledError",{enumerable:!0,get:function(){return h.CancelledError}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return h.C
1onnectionError}}),Object.defineProperty(t,"FailedPreconditionError",{enumerable:!0,get:function(){return h.FailedPreconditionError}}),Object.defineProperty(t,"LimitExceededError",{enumerable:!0,get:function(){return h.LimitExceededError}}),Object.defineProperty(t,"InternalServerError",{enumerable:!0,get:function(){return h.InternalServerError}}),Object.defineProperty(t,"InvalidArgumentError",{enumerable:!0,get:function(){return h.InvalidArgumentError}}),Object.defineProperty(t,"UnknownServiceError",{enumerable:!0,get:function(){return h.UnknownServiceError}}),Object.defineProperty(t,"ServerUnavailableError",{enumerable:!0,get:function(){return h.ServerUnavailableError}}),Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return h.TimeoutError}}),Object.defineProperty(t,"BadRequestError",{enumerable:!0,get:function(){return h.BadRequestError}}),Object.defineProperty(t,"PermissionError",{enumerable:!0,get:function(){return h.PermissionError}}),Object.defineProperty(t,"CacheNotFoundError",{enumerable:!0,get:function(){return h.CacheNotFoundError}}),Object.defineProperty(t,"StoreItemNotFoundError",{enumerable:!0,get:function(){return h.StoreItemNotFoundError}}),Object.defineProperty(t,"StoreNotFoundError",{enumerable:!0,get:function(){return h.StoreNotFoundError}}),Object.defineProperty(t,"UnknownError",{enumerable:!0,get:function(){return h.UnknownError}}),n(r(94452),t);var g=r(82493);Object.defineProperty(t,"NoopMomentoLogger",{enumerable:!0,get:function(){return g.NoopMomentoLogger}}),Object.defineProperty(t,"NoopMomentoLoggerFactory",{enumerable:!0,get:function(){return g.NoopMomentoLoggerFactory}});var f=r(12477);Object.defineProperty(t,"CacheRole",{enumerable:!0,get:function(){return f.CacheRole}}),Object.defineProperty(t,"TopicRole",{enumerable:!0,get:function(){return f.TopicRole}}),Object.defineProperty(t,"FunctionRole",{enumerable:!0,get:function(){return f.FunctionRole}}),Object.defineProperty(t,"AllDataReadWrite",{enumerable:!0,get:function(){return f.AllDataReadWrite}}),Object.defineProperty(t,"isCacheName",{enumerable:!0,get:function(){return f.isCacheName}}),Object.defineProperty(t,"isFunction",{enumerable:!0,get:function(){return f.isFunction}}),Object.defineProperty(t,"isFunctionNamePrefix",{enumerable:!0,get:function(){return f.isFunctionNamePrefix}}),Object.defineProperty(t,"isTopicName",{enumerable:!0,get:function(){return f.isTopicName}}),Object.defineProperty(t,"AllCaches",{enumerable:!0,get:function(){return f.AllCaches}}),Object.defineProperty(t,"AllFunctions",{enumerable:!0,get:function(){return f.AllFunctions}}),Object.defineProperty(t,"AllTopics",{enumerable:!0,get:function(){return f.AllTopics}}),Object.defineProperty(t,"AllCacheItems",{enumerable:!0,get:function(){return f.AllCacheItems}});var m=r(4368);Object.defineProperty(t,"isCacheItemKey",{enumerable:!0,get:function(){return m.isCacheItemKey}}),Object.defineProperty(t,"isCacheItemKeyPrefix",{enumerable:!0,get:function(){return m.isCacheItemKeyPrefix}}),t.PermissionScopes=r(85562),t.TokenScopes=r(85562),t.DisposableTokenScopes=r(99725);var y=r(64813);Object.defineProperty(t,"ReadConcern",{enumerable:!0,get:function(){return y.ReadConcern}});var _=r(32431);Object.defineProperty(t,"CompressionLevel",{enumerable:!0,get:function(){return _.CompressionLevel}});var R=r(56093);Object.defineProperty(t,"DEFAULT_SUBSCRIPTION_RETRY_DELAY_MILLIS",{enumerable:!0,get:function(){return R.DEFAULT_SUBSCRIPTION_RETRY_DELAY_MILLIS}})},84957:function(e,t,r){var i;!function(n){"use strict";var s="function",o="undefined",a="object",c="string",l="major",u="model",d="name",p="type",h="vendor",g="version",f="architecture",m="console",y="mobile",_="tablet",R="smarttv",b="wearable",S="embedded",v="Amazon",E="Apple",C="ASUS",T="BlackBerry",M="Browser",w="Chrome",k="Firefox",P="Google",O="Honor",B="Huawei",F="Microsoft",A="Motorola",D="Nvidia",I="OnePlus",x="Opera",L="OPPO",N="Samsung",W="Sharp",G="Sony",q="Xiaomi",j="Zebra",z="Facebook",U="Chromium OS",$="Mac OS",H=" Browser",K=function(e,t){var r={};for(var i in e)t[i]&&t[i].length%2==0?r[i]=t[i].concat(e[i]):r[i]=e[i];return r},V=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},J=function(e,t){return typeof e===c&&-1!==Y(t).indexOf(Y(e))},Y=function(e){return e.toLowerCase()},X=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===o?e:e.substring(0,500)},Z=function(e,t){for(var r,i,n,o,c,l,u=0;u<t.length&&!c;){var d=t[u],p=t[u+1];for(r=i=0;r<d.length&&!c&&d[r];)if(c=d[r++].exec(e))for(n=0;n<p.length;n++)l=c[++i],typeof(o=p[n])===a&&o.length>0?2===o.length?typeof o[1]==s?this[o[0]]=o[1].call(this,l):this[o[0]]=o[1]:3===o.length?typeof o[1]!==s||o[1].exec&&o[1].test?this[o[0]]=l?l.replace(o[
11],o[2]):void 0:this[o[0]]=l?o[1].call(this,l,o[2]):void 0:4===o.length&&(this[o[0]]=l?o[3].call(this,l.replace(o[1],o[2])):void 0):this[o]=l||void 0;u+=2}},Q=function(e,t){for(var r in t)if(typeof t[r]===a&&t[r].length>0){for(var i=0;i<t[r].length;i++)if(J(t[r][i],e))return"?"===r?void 0:r}else if(J(t[r],e))return"?"===r?void 0:r;return t.hasOwnProperty("*")?t["*"]:e},ee={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},et={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,g],[/opios[\/ ]+([\w\.]+)/i],[g,[d,x+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[g,[d,x+" GX"]],[/\bopr\/([\w\.]+)/i],[g,[d,x]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[d,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[g,[d,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,g],[/quark(?:pc)?\/([-\w\.]+)/i],[g,[d,"Quark"]],[/\bddg\/([\w\.]+)/i],[g,[d,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[d,"UC"+M]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[d,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[g,[d,"Smart Lenovo "+M]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+M],g],[/\bfocus\/([\w\.]+)/i],[g,[d,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[d,x+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[d,x+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[d,"MIUI"+H]],[/fxios\/([\w\.-]+)/i],[g,[d,k]],[/\bqihoobrowser\/?([\w\.]*)/i],[g,[d,"360"]],[/\b(qq)\/([\w\.]+)/i],[[d,/(.+)/,"$1Browser"],g],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1"+H],g],[/samsungbrowser\/([\w\.]+)/i],[g,[d,N+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[g,[d,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[d,"Sogou Mobile"],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[d,g],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[d],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[g,d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,z],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[d,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[d,w+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,w+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[d,"Android "+M]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[g,Q,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],g],[/(wolvic|librewolf)\/([\w\.]+)/i],[d,g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[d,k+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[d,[g,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[d,[g,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[f,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[f,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[f,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[f,/ower/,"",Y]],[/ sun4\w[;\)]/i],[[f,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;
vendor: 8,020 bytes, line 1
1|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[f,Y]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[h,N],[p,_]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[u,[h,N],[p,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[h,E],[p,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[h,E],[p,_]],[/(macintosh);/i],[u,[h,E]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[h,W],[p,y]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[u,[h,O],[p,_]],[/honor([-\w ]+)[;\)]/i],[u,[h,O],[p,y]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[u,[h,B],[p,_]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[h,B],[p,y]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[u,/_/g," "],[h,q],[p,_]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[u,/_/g," "],[h,q],[p,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[h,L],[p,y]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[u,[h,Q,{OnePlus:["304","403","203"],"*":L}],[p,_]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[h,"Vivo"],[p,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[h,"Realme"],[p,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[h,A],[p,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[h,A],[p,_]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[h,"LG"],[p,_]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[h,"LG"],[p,y]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[u,[h,"Lenovo"],[p,_]],[/(nokia) (t[12][01])/i],[h,u,[p,_]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[u,/_/g," "],[p,y],[h,"Nokia"]],[/(pixel (c|tablet))\b/i],[u,[h,P],[p,_]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[h,P],[p,y]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[h,G],[p,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[h,G],[p,_]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[h,I],[p,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[h,v],[p,_]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[h,v],[p,y]],[/(playbook);[-\w\),; ]+(rim)/i],[u,h,[p,_]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[h,T],[p,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[h,C],[p,_]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[h,C],[p,y]],[/(nexus 9)/i],[u,[h,"HTC"],[p,_]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[u,/_/g," "],[p,y]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[u,[h,"TCL"],[p,_]],[/(itel) ((\w+))/i],[[h,Y],u,[p,Q,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[h,"Acer"],[p,_]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[h,"Meizu"],[p,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[h,"Ulefone"],[p,y]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[u,[h,"Energizer"],[p,y]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[u,[h,"Cat"],[p,y]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[u,[h,"Smartfren"],[p,y]],[/droid.+; (a(?:015|06[35]|142p?))/i],[u,[h,"Nothing"],[p,y]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[u,[h,"Archos"],[p,_]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[u,[h,"Archos"],[p,y]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[h,u,[p,_]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[h,u,[p,y]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,u,[p,_]],[/(surface duo)/i],[u,[h,F],[p,_]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[h,"Fairphone"],[p,y]],[/(u304aa)/i],[u,[h,"AT&T"],[p,y]],[/\bsie-(\w*)/i],[u,[h,"Siemens"],[p,y]],[/\b(rct\w+) b/i],[u,[h,"RCA"],[p,_]],[/\b(venue[\d ]{2,7}) b/i],[u,[h,"Dell"],[p,_]],[/\b(q(?:mv|ta)\w+) b/i],[u,[h,"Verizon"],[p,_]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[h,"Barnes & Noble"],[p,_]],[/\b(tm\d{3}\w+) b/i],[u,[h,"NuVision"],[p,_]],[/\b(k88) b/i],[u,[h,"ZTE"],[p,_]],[/\b(nx\d{3}j) b/i],[u,[h,"ZTE"],[p,y]],[/\b(gen\d{3}) b.+49h/i],[u,[h,"Swiss"],[p,y]],[/\b(zur\d{3}) b/i],[u,[h,"Swiss"],[p,_]],[/\b((zeki)?tb.*\b) b/i],[u,[h,"Zeki"],[p,_]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],u,[p,_]],[/\b(ns-?\w{0,9}) b/i],[u,[h,"Insignia"],[p,_]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[h,"NextBook"],[p,_]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],u,[p,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],u,[p,y]],[/\b(ph-1) /i],[u,[h,"Essential"],[p,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[h,"Envizen"],[p,_]],[/\b(trio[-\w\. ]+) b/i],[u,[h,"MachSpeed"],[p,_]],[/\btu_(1491) b/i],[u,[h,"Rotor"],[p,_]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[u,[h,D],[p,_]],[/(sprint) (\w+)/i],[h,u,[p,y]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[h,F],[p,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[h,j],[p,_]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[h,j],[p,y]],[/smart-tv.+(samsung)/i],[h,[p,R]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[h,N],[p,R]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,"LG"],[p,R]],[/(apple) ?tv/i],[h,[u,E+" TV"],[p,R]],[/crkey/i],[[u,w+"cast"],[h,P],[p,R]],[/droid.+aft(\w+)( bui|\))/i],[u,[h,v],[p,R]],[/(shield \w+ tv)/i],[u,[h,D],[p,R]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[h,W],[p,R]],[/(bravia[\w ]+)( bui|\))/i],[u,[h,G],[p,R]],[/(mi(tv|box)-?\w+) bui/i],[u,[h,q],[p,R]],[/Hbbtv.*(technisat) (.*);/i],[h,u,[p,R]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,X],[u,X],[p,R]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[u,[p,R]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,R]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,u,[p,m]],[/droid.+; (shield)( bui|\))/i],[u,[h,D],[p,m]],[/(playstation \w+)/i],[u,[h,G],[p,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[h,F],[p,m]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[u,[h,N],[p,b]],[/((pebble))app/i,/(asu
1s|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[h,u,[p,b]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[u,[h,L],[p,b]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[h,E],[p,b]],[/(opwwe\d{3})/i],[u,[h,I],[p,b]],[/(moto 360)/i],[u,[h,A],[p,b]],[/(smartwatch 3)/i],[u,[h,G],[p,b]],[/(g watch r)/i],[u,[h,"LG"],[p,b]],[/droid.+; (wt63?0{2,3})\)/i],[u,[h,j],[p,b]],[/droid.+; (glass) \d/i],[u,[h,P],[p,b]],[/(pico) (4|neo3(?: link|pro)?)/i],[h,u,[p,b]],[/; (quest( \d| pro)?)/i],[u,[h,z],[p,b]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[p,S]],[/(aeobc)\b/i],[u,[h,v],[p,S]],[/(homepod).+mac os/i],[u,[h,E],[p,S]],[/windows iot/i],[[p,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[p,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[p,_]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,_]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,y]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[u,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[d,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[d,g],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,g],[/ladybird\//i],[[d,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,g],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[d,[g,Q,ee]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,Q,ee],[d,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,$],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,d],[/(ubuntu) ([\w\.]+) like android/i],[[d,/(.+)/,"$1 Touch"],g],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[d,g],[/\(bb(10);/i],[g,[d,T]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[g,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[d,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[d,w+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,U],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,g],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,g]]},er=function(e,t){if(typeof e===a&&(t=e,e=void 0),!(this instanceof er))return new er(e,t).getResult();var r=typeof n!==o&&n.navigator?n.navigator:void 0,i=e||(r&&r.userAgent?r.userAgent:""),m=r&&r.userAgentData?r.userAgentData:void 0,R=t?K(et,t):et,b=r&&r.userAgent==i;return this.getBrowser=function(){var e,t={};return t[d]=void 0,t[g]=void 0,Z.call(t,i,R.browser),t[l]=typeof(e=t[g])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,b&&r&&r.brave&&typeof r.brave.isBrave==s&&(t[d]="Brave"),t},this.getCPU=function(){var e={};return e[f]=void 0,Z.call(e,i,R.cpu),e},this.getDevice=function(){var e={};return e[h]=void 0,e[u]=void 0,e[p]=void 0,Z.call(e,i,R.device),b&&!e[p]&&m&&m.mobile&&(e[p]=y),b&&"Macintosh"==e[u]&&r&&typeof r.standalone!==o&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[u]="iPad",e[p]=_),e},this.getEngine=function(){var e={};return e[d]=void 0,e[g]=void 0,Z.call(e,i,R.engine),e},this.getOS=function(){var e={};return e[d]=void 0,e[g]=void 0,Z.call(e,i,R.os),b&&!e[d]&&m&&m.platform&&"Unknown"!=m.platform&&(e[d]=m.platform.replace(/chrome os/i,U).replace(/macos/i,$)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return i},this.setUA=function(e){return i=typeof e===c&&e.length>500?X(e,500):e,this},this.setUA(i),this};er.VERSION="1.0.41",er.BROWSER=V([d,g,l]),er.CPU=V([f]),er.DEVICE=V([u,h,p,m,y,R,_,b,S]),er.ENGINE=er.OS=V([d,g]),typeof t!==o?(e.exports&&(t=e.exports=er),t.UAParser=er):r.amdO?void 0===(i=(function(){return er}).call(t,r,t,e))||(e.exports=i):typeof n!==o&&(n.UAParser=er);var ei=typeof n!==o&&(n.jQuery||n.Zepto);if(ei&&!ei.ua){var en=new er;ei.ua=en.getResult(),ei.ua.get=function(){return en.getUA()},ei.ua.set=function(e){en.setUA(e);var t=en.getResult();for(var r in t)ei.ua[r]=t[r]}}}("object"==typeof window?window:this)},85444:(e,t)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0})},85562:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.topicPublishOnly=t.topicPublishSubscribe=t.topicSubscribeOnly=t.cacheWriteOnly=t.cacheReadOnly=t.cacheReadWrite=t.functionPermitNone=t.functionInvoke=void 0;let i=r(12477);t.functionInvoke=function(e,t){return{permissions:[{role:i.FunctionRole.FunctionInvoke,cache:e,func:t}]}},t.functionPermitNone=function(e,t){return{permissions:[{role:i.FunctionRole.FunctionPermitNone,cache:e,func:t}]}},t.cacheReadWrite=function(e){return{permissions:[{role:i.CacheRole.ReadWrite,cache:e}]}},t.cacheReadOnly=function(e){return{permissions:[{role:i.CacheRole.ReadOnly,cache:e}]}},t.cacheWriteOnly=function(e){return{permissions:[{role:i.CacheRole.WriteOnly,cache:e}]}},t.topicSubscribeOnly=function(e,t){return{permissions:[{role:i.TopicRole.SubscribeOnly,cache:e,topic:t}]}},t.topicPublishSubscribe=function(e,t){return{permissions:[{role:i.TopicRole.PublishSubscribe,cache:e,topic:t}]}},t.topicPublishOnly=function(e,t){return{permissions:[{role:i.TopicRole.PublishOnly,cache:e,topic:t}]}}},85697:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.CacheSetAddElementResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSetAddElementResponse.Error}}t.Error=o},86362:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__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)&&i(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PubsubClient=void 0;let o=s(r(43092)),a=s(r(73583)),c=s(r(9837));class l{constructor(e,t,r){this.methodDescriptorPublish=new o.MethodDescriptor("/cache_client.pubsub.Pubsub/Publish",o.MethodType.UNARY,a._PublishRequest,c._Empty,e=>e.serializeBinary(),c._Empty.deserializeBinary),this.methodDescriptorSubscribe=new o.MethodDescriptor("/cache_client.pubsub.Pubsub/Subscribe",o.MethodType.SERVER_STREAMING,a._SubscriptionRequest,a._SubscriptionItem,e=>e.serializeBinary(),a._SubscriptionItem.deserializeBinary),r||(r={}),t||(t={}),r.format="text",this.client_=new o.GrpcWebClientBase(r),this.hostname_=e,this.credentials_=t,this.options_=r}publish(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.pubsub.Pubsub/Publish",e,t||{},this.methodDescriptorPublish,r):this.client_.unaryCall(this.hostname_+"/cache_client.pubsub.Pubsub/Publish",e,t||{},this.methodDescriptorPublish)}subscribe(e,t){return this.client_.serverStreaming(this.hostname_+"/cache_client.pubsub.Pubsub/Subscribe",e,t||{},this.methodDescriptorSubscribe)}}t.PubsubClient=l},86414:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TopicItem=void 0;let i=r(52725);class n{constructor(e,t,r){this._value=e,this._tokenId=null==r?void 0:r.tokenId,this._sequenceNumber=t}value(){return this._value}valueString(){return this.value().toString()}valueUint8Array(){return this.value()}tokenId(){return this._tokenId}sequenceNumber(){return this._sequenceNumber}toString(){let e=(0,i.truncateString)(this.value().toString()),t=`${this.constructor.name}: ${e}`;return void 0!==this._tokenId&&(t+=`; Token Id: ${this._tokenId}`),t}}t.TopicItem=n},86448:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.AlreadyExists=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.CreateCacheResponse.Success}}t.Success=s;class o extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CreateCacheResponse.AlreadyExists}}t.AlreadyExists=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CreateCacheResponse.Error}}t.Error=a},86622:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);
1(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__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)&&i(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalAdminClient=void 0;let o=s(r(43092)),a=s(r(52147));class c{constructor(e,t,r){this.methodDescriptorGetAccounts=new o.MethodDescriptor("/global_admin.GlobalAdmin/GetAccounts",o.MethodType.UNARY,a._GetAccountsRequest,a._GetAccountsResponse,e=>e.serializeBinary(),a._GetAccountsResponse.deserializeBinary),this.methodDescriptorGetInvitationsForUser=new o.MethodDescriptor("/global_admin.GlobalAdmin/GetInvitationsForUser",o.MethodType.UNARY,a._GetInvitationsForUserRequest,a._GetInvitationsForUserResponse,e=>e.serializeBinary(),a._GetInvitationsForUserResponse.deserializeBinary),this.methodDescriptorGetAccountSessionToken=new o.MethodDescriptor("/global_admin.GlobalAdmin/GetAccountSessionToken",o.MethodType.UNARY,a._GetAccountSessionTokenRequest,a._GetAccountSessionTokenResponse,e=>e.serializeBinary(),a._GetAccountSessionTokenResponse.deserializeBinary),this.methodDescriptorRemoveMember=new o.MethodDescriptor("/global_admin.GlobalAdmin/RemoveMember",o.MethodType.UNARY,a._RemoveMemberRequest,a._RemoveMemberResponse,e=>e.serializeBinary(),a._RemoveMemberResponse.deserializeBinary),this.methodDescriptorListMembers=new o.MethodDescriptor("/global_admin.GlobalAdmin/ListMembers",o.MethodType.UNARY,a._ListMembersRequest,a._ListMembersResponse,e=>e.serializeBinary(),a._ListMembersResponse.deserializeBinary),this.methodDescriptorGetEndpointsForAccount=new o.MethodDescriptor("/global_admin.GlobalAdmin/GetEndpointsForAccount",o.MethodType.UNARY,a._GetEndpointsForAccountRequest,a._GetEndpointsForAccountResponse,e=>e.serializeBinary(),a._GetEndpointsForAccountResponse.deserializeBinary),this.methodDescriptorSetAccountName=new o.MethodDescriptor("/global_admin.GlobalAdmin/SetAccountName",o.MethodType.UNARY,a._SetAccountNameRequest,a._SetAccountNameResponse,e=>e.serializeBinary(),a._SetAccountNameResponse.deserializeBinary),this.methodDescriptorInviteMember=new o.MethodDescriptor("/global_admin.GlobalAdmin/InviteMember",o.MethodType.UNARY,a._InviteMemberRequest,a._InviteMemberResponse,e=>e.serializeBinary(),a._InviteMemberResponse.deserializeBinary),this.methodDescriptorAcceptInvitation=new o.MethodDescriptor("/global_admin.GlobalAdmin/AcceptInvitation",o.MethodType.UNARY,a._AcceptInvitationRequest,a._AcceptInvitationResponse,e=>e.serializeBinary(),a._AcceptInvitationResponse.deserializeBinary),this.methodDescriptorRejectInvitation=new o.MethodDescriptor("/global_admin.GlobalAdmin/RejectInvitation",o.MethodType.UNARY,a._RejectInvitationRequest,a._RejectInvitationResponse,e=>e.serializeBinary(),a._RejectInvitationResponse.deserializeBinary),this.methodDescriptorListInvitationsForAccount=new o.MethodDescriptor("/global_admin.GlobalAdmin/ListInvitationsForAccount",o.MethodType.UNARY,a._ListInvitationsForAccountRequest,a._ListInvitationsForAccountResponse,e=>e.serializeBinary(),a._ListInvitationsForAccountResponse.deserializeBinary),this.methodDescriptorRevokeInvitation=new o.MethodDescriptor("/global_admin.GlobalAdmin/RevokeInvitation",o.MethodType.UNARY,a._RevokeInvitationRequest,a._RevokeInvitationResponse,e=>e.serializeBinary(),a._RevokeInvitationResponse.deserializeBinary),this.methodDescriptorListRolesForAccount=new o.MethodDescriptor("/global_admin.GlobalAdmin/ListRolesForAccount",o.MethodType.UNARY,a._ListRolesForAccountRequest,a._ListRolesForAccountResponse,e=>e.serializeBinary(),a._ListRolesForAccountResponse.deserializeBinary),this.methodDescriptorSetMemberRole=new o.MethodDescriptor("/global_admin.GlobalAdmin/SetMemberRole",o.MethodType.UNARY,a._SetMemberRoleRequest,a._SetMemberRoleResponse,e=>e.serializeBinary(),a._SetMemberRoleResponse.deserializeBinary),r||(r={}),t||(t={}),r.format="text",this.client_=new o.GrpcWebClientBase(r),this.hostname_=e,this.credentials_=t,this.options_=r}getAccounts(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/GetAccounts",e,t||{},this.methodDescriptorGetAccounts,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/GetAccounts",e,t||{},this.methodDescriptorGetAccounts)}getInvitationsForUser(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/GetInvitationsForUser",e,t||{},this.methodDescriptorGetInvitationsForUser,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/GetInvitationsForUser",e,t||{},this.methodDescriptorGetInvitationsForUser)}getAccountSessionToken(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/GetAccountSessionToken",e,t||{},this.methodDescriptorGetAccountSessionToken,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/GetAccountSessionToken",e,t||{},this.methodDescriptorGetAccountSessionToken)}removeMember(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/RemoveMember",e,t||{},this.methodDescriptorRemoveMember,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/RemoveMember",e,t||{},this.methodDescriptorRemoveMember)}listMembers(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/ListMembers",e,t||{},this.methodDescriptorListMembers,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/ListMembers",e,t||{},this.methodDescriptorListMembers)}getEndpointsForAccount(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/GetEndpointsForAccount",e,t||{},this.methodDescriptorGetEndpointsForAccount,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/GetEndpointsForAccount",e,t||{},this.methodDescriptorGetEndpointsForAccount)}setAccountName(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/SetAccountName",e,t||{}
1,this.methodDescriptorSetAccountName,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/SetAccountName",e,t||{},this.methodDescriptorSetAccountName)}inviteMember(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/InviteMember",e,t||{},this.methodDescriptorInviteMember,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/InviteMember",e,t||{},this.methodDescriptorInviteMember)}acceptInvitation(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/AcceptInvitation",e,t||{},this.methodDescriptorAcceptInvitation,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/AcceptInvitation",e,t||{},this.methodDescriptorAcceptInvitation)}rejectInvitation(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/RejectInvitation",e,t||{},this.methodDescriptorRejectInvitation,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/RejectInvitation",e,t||{},this.methodDescriptorRejectInvitation)}listInvitationsForAccount(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/ListInvitationsForAccount",e,t||{},this.methodDescriptorListInvitationsForAccount,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/ListInvitationsForAccount",e,t||{},this.methodDescriptorListInvitationsForAccount)}revokeInvitation(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/RevokeInvitation",e,t||{},this.methodDescriptorRevokeInvitation,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/RevokeInvitation",e,t||{},this.methodDescriptorRevokeInvitation)}listRolesForAccount(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/ListRolesForAccount",e,t||{},this.methodDescriptorListRolesForAccount,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/ListRolesForAccount",e,t||{},this.methodDescriptorListRolesForAccount)}setMemberRole(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/global_admin.GlobalAdmin/SetMemberRole",e,t||{},this.methodDescriptorSetMemberRole,r):this.client_.unaryCall(this.hostname_+"/global_admin.GlobalAdmin/SetMemberRole",e,t||{},this.methodDescriptorSetMemberRole)}}t.GlobalAdminClient=c},86990:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LeaderboardOrder=void 0;let i=r(53729);Object.defineProperty(t,"LeaderboardOrder",{enumerable:!0,get:function(){return i.LeaderboardOrder}})},87977:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PubsubClient=void 0;let i=r(86362),n=r(73583),s=r(84055),o=r(43092),a=r(52725),c=r(42378),l=r(83145),u=r(88878),d=r(89966),p=r(99851),h=r(74017);class g extends u.AbstractPubsubClient{constructor(e){super(e.configuration.getLoggerFactory(),e.configuration.getLoggerFactory().getLogger(g.name),new l.CacheServiceErrorMapper(e.configuration.getThrowOnErrors())),this.credentialProvider=e.credentialProvider,this.requestTimeoutMs=g.DEFAULT_REQUEST_TIMEOUT_MS,this.getLogger().debug(`Creating topic client using endpoint: '${(0,d.getWebCacheEndpoint)(e.credentialProvider)}'`),this.client=new i.PubsubClient((0,d.getWebCacheEndpoint)(e.credentialProvider),null,{}),this.clientMetadataProvider=new p.ClientMetadataProvider({authToken:e.credentialProvider.getAuthToken(),clientType:"topic"})}getEndpoint(){let e=(0,d.getWebCacheEndpoint)(this.credentialProvider);return this.getLogger().debug(`Using cache endpoint: ${e}`),e}async sendPublish(e,t,r){let i=new n._TopicValue;"string"==typeof r?i.setText(r):i.setBinary((0,d.convertToB64String)(r));let s=new n._PublishRequest;return s.setCacheName(e),s.setTopic(t),s.setValue(i),await new Promise((t,r)=>{this.client.publish(s,{...this.clientMetadataProvider.createClientMetadata(),...(0,d.createCallMetadata)(e,this.requestTimeoutMs)},(e,i)=>{i?t(new c.TopicPublish.Success):this.getCacheServiceErrorMapper().resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new c.TopicPublish.Error(e),resolveFn:t,rejectFn:r})})})}sendSubscribe(e){let t=new n._SubscriptionRequest;
1t.setCacheName(e.cacheName),t.setTopic(e.topicName),t.setResumeAtTopicSequenceNumber(e.subscriptionState.resumeAtTopicSequenceNumber),t.setSequencePage(e.subscriptionState.resumeAtTopicSequencePage),this.getLogger().trace(`Subscribing to topic with resume_at_topic_sequence_number ${e.subscriptionState.resumeAtTopicSequenceNumber} and sequence_page ${e.subscriptionState.resumeAtTopicSequencePage}`);let r=this.client.subscribe(t,{...this.clientMetadataProvider.createClientMetadata()});return e.subscriptionState.setSubscribed(),e.subscriptionState.unsubscribeFn=()=>{r.cancel()},new Promise(t=>{let i={...e,restartedDueToError:!1,firstMessage:!e.subscriptionState.resumeAtTopicSequenceNumber,resolve:t};r.on("data",this.prepareDataCallback(i)),r.on("error",this.prepareErrorCallback(i)),r.on("end",this.prepareEndCallback(i))})}prepareDataCallback(e){return t=>{var r,i;e.firstMessage&&e.resolve(e.subscription),e.firstMessage=!1;let n=t.getItem(),o=t.getDiscontinuity();if(n){let t=n.getTopicSequenceNumber(),o=n.getSequencePage();e.subscriptionState.lastTopicSequenceNumber=t,e.subscriptionState.lastTopicSequencePage=o;let l=n.getPublisherId(),u=null==(r=n.getValue())?void 0:r.getText(),d=null==(i=n.getValue())?void 0:i.getBinary();this.getLogger().trace(`Received an item on subscription stream; topic: ${(0,a.truncateString)(e.topicName)}; sequence number: ${t}; sequence page: ${o}`),u?e.onItem(new s.TopicItem(u,t,{tokenId:l})):d?e.onItem(new s.TopicItem(d,t,{tokenId:l})):(this.getLogger().error(`Received subscription item with unknown type; topic: ${(0,a.truncateString)(e.topicName)}`),e.onError(new c.TopicSubscribe.Error(new s.UnknownError("Unknown item value type")),e.subscription))}else if(t.getHeartbeat())this.getLogger().trace(`Received heartbeat from subscription stream; topic: ${(0,a.truncateString)(e.topicName)}`),e.onHeartbeat(new s.TopicHeartbeat);else if(o){let t=new s.TopicDiscontinuity(o.getLastTopicSequence(),o.getNewTopicSequence(),o.getNewSequencePage());this.getLogger().trace(`Received a discontinuity; topic: ${(0,a.truncateString)(e.topicName)}; ${t.toString()}`),e.subscriptionState.lastTopicSequenceNumber=o.getNewTopicSequence(),e.subscriptionState.lastTopicSequencePage=o.getNewSequencePage(),e.onDiscontinuity(t)}else this.getLogger().error(`Received unknown subscription item; topic: ${(0,a.truncateString)(e.topicName)}`),e.onError(new c.TopicSubscribe.Error(new s.UnknownError("Unknown item type")),e.subscription)}}prepareErrorCallback(e){return t=>{if(!e.subscriptionState.isSubscribed)return;let r=t.code===o.StatusCode.UNKNOWN&&t.message===g.BROWSER_DISCONNECT,i=t.code===o.StatusCode.INTERNAL&&t.message===g.RST_STREAM_NO_ERROR_MESSAGE,n=r||i?s.DEFAULT_SUBSCRIPTION_RETRY_DELAY_MILLIS:null,a=new c.TopicSubscribe.Error(this.getCacheServiceErrorMapper().convertError(t));this.handleSubscribeError(e,a,n)}}}t.PubsubClient=g,g.DEFAULT_REQUEST_TIMEOUT_MS=(0,h.secondsToMilliseconds)(5),g.RST_STREAM_NO_ERROR_MESSAGE="Received RST_STREAM with code 0",g.BROWSER_DISCONNECT="Http response at 400 or 500 level, http status code: 0"},88422:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LeaderboardDataClient=void 0;let i=r(84055),n=r(52725),s=r(89966),o=r(72125),a=r(36597),c=r(99851),l=r(83145),u=r(91313),d=r(9837);class p{constructor(e){this.logger=e.configuration.getLoggerFactory().getLogger(this),this.cacheServiceErrorMapper=new l.CacheServiceErrorMapper(e.configuration.getThrowOnErrors()),this.logger.debug(`Creating data client using endpoint: '${(0,s.getWebCacheEndpoint)(e.credentialProvider)}`),this.clientMetadataProvider=new c.ClientMetadataProvider({authToken:e.credentialProvider.getAuthToken(),clientType:"leaderboard"}),this.deadlineMillis=e.configuration.getTransportStrategy().getGrpcConfig().getDeadlineMillis(),this.client=new o.leaderboard.LeaderboardClient((0,s.getWebCacheEndpoint)(e.credentialProvider),null,{})}close(){this.logger.debug("Closing cache control client")}convertMapOrRecordToElementsList(e){let t=[];return e instanceof Map?e.forEach((e,r)=>{let i=new a._Element;
1i.setId(r),i.setScore(e),t.push(i)}):Object.entries(e).forEach(e=>{let r=new a._Element;r.setId(Number(e[0])),r.setScore(e[1]),t.push(r)}),t}convertToRankedElementsList(e){return e.map(e=>new u._RankedElement(e.getId(),e.getScore(),e.getRank()))}async upsert(e,t,r){let s=r instanceof Map?r.size:Object.keys(r).length;try{(0,n.validateLeaderboardNumberOfElements)(s)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new i.LeaderboardUpsert.Error(e))}return this.logger.trace(`Issuing 'upsert' request; cache: ${e}, leaderboard: ${t}, number of elements: ${s}`),await this.sendUpsert(e,t,r)}async sendUpsert(e,t,r){let n=new a._UpsertElementsRequest;return n.setLeaderboard(t),n.setElementsList(this.convertMapOrRecordToElementsList(r)),await new Promise((t,r)=>{this.client.upsertElements(n,{...this.clientMetadataProvider.createClientMetadata(),...(0,s.createCallMetadata)(e,this.deadlineMillis)},(e,n)=>{n?t(new i.LeaderboardUpsert.Success):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new i.LeaderboardUpsert.Error(e),resolveFn:t,rejectFn:r})})})}async fetchByScore(e,t,r,s,o,a,c){var l;let u=void 0===a?0:a,d=void 0===c?8192:c,p=null!=o?o:i.LeaderboardOrder.Ascending;try{(0,n.validateSortedSetScores)(r,s),(0,n.validateLeaderboardOffset)(u),(0,n.validateLeaderboardCount)(d)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new i.LeaderboardFetch.Error(e))}return this.logger.trace(`Issuing 'fetchByScore' request; cache: ${e}, leaderboard: ${t}, order: ${p.toString()}, minScore: ${null!=r?r:"null"}, maxScore: ${null!=(l=null==s?void 0:s.toString())?l:"null"}, offset: ${u.toString()}, count: ${d.toString()}`),await this.sendFetchByScore(e,t,p,u,d,r,s)}async sendFetchByScore(e,t,r,n,o,c,l){let u=new a._GetByScoreRequest;u.setLeaderboard(t),u.setOffset(n),u.setLimitElements(o);let p=r===i.LeaderboardOrder.Descending?a._Order.DESCENDING:a._Order.ASCENDING;u.setOrder(p);let h=new a._ScoreRange;return void 0!==c?h.setMinInclusive(c):h.setUnboundedMin(new d._Unbounded),void 0!==l?h.setMaxExclusive(l):h.setUnboundedMax(new d._Unbounded),u.setScoreRange(h),await new Promise((t,r)=>{this.client.getByScore(u,{...this.clientMetadataProvider.createClientMetadata(),...(0,s.createCallMetadata)(e,this.deadlineMillis)},(e,n)=>{if(n){let e=n.getElementsList();t(new i.LeaderboardFetch.Success(this.convertToRankedElementsList(e)))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new i.LeaderboardFetch.Error(e),resolveFn:t,rejectFn:r})})})}async fetchByRank(e,t,r,s,o){let a=null!=o?o:i.LeaderboardOrder.Ascending;try{(0,n.validateLeaderboardRanks)(r,s)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new i.LeaderboardFetch.Error(e))}return this.logger.trace(`Issuing 'fetchByRank' request; cache: ${e}, leaderboard: ${t}, order: ${a.toString()}, startRank: ${r}, endRank: ${s}`),await this.sendFetchByRank(e,t,r,s,a)}async sendFetchByRank(e,t,r,n,o){let c=new a._GetByRankRequest;c.setLeaderboard(t);let l=o===i.LeaderboardOrder.Descending?a._Order.DESCENDING:a._Order.ASCENDING;c.setOrder(l);let u=new a._RankRange;return u.setStartInclusive(r),u.setEndExclusive(n),c.setRankRange(u),await new Promise((t,r)=>{this.client.getByRank(c,{...this.clientMetadataProvider.createClientMetadata(),...(0,s.createCallMetadata)(e,this.deadlineMillis)},(e,n)=>{if(n){let e=n.getElementsList();t(new i.LeaderboardFetch.Success(this.convertToRankedElementsList(e)))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new i.LeaderboardFetch.Error(e),resolveFn:t,rejectFn:r})})})}async getRank(e,t,r,n){let s=null!=n?n:i.LeaderboardOrder.Ascending;return this.logger.trace(`Issuing 'getRank' request; cache: ${e}, leaderboard: ${t}, order: ${s.toString()}, number of ids: ${r.length}`),await this.sendGetRank(e,t,r,s)}async sendGetRank(e,t,r,n){let o=new a._GetRankRequest;o.setLeaderboard(t),o.setIdsList(r);let c=n===i.LeaderboardOrder.Descending?a._Order.DESCENDING:a._Order.ASCENDING;return o.setOrder(c),await new Promise((t,r)=>{this.client.getRank(o,{...this.clientMetadataProvider.createClientMetadata(),...(0,s.createCallMetadata)(e,this.deadlineMillis)},(e,n)=>{if(n){let e=n.getElementsList();t(new i.LeaderboardFetch.Success(this.convertToRankedElementsList(e)))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new i.LeaderboardFetch.Error(e),resolveFn:t,rejectFn:r})})})}async length(e,t){return this.logger.trace(`Issuing 'length' request; cache: ${e}, leaderboard: ${t}`),await this.sendLength(e,t)}async sendLength(e,t){let r=new a._GetLeaderboardLengthRequest;return r.setLeaderboard(t),await new Promise((t,n)=>{this.client.getLeaderboardLength(r,{...this.clientMetadataProvider.createClientMetadata(),...(0,s.createCallMetadata)(e,this.deadlineMillis)},(e,r)=>{if(r){let e=r.getCount();t(new i.LeaderboardLength.Success(e))}else this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new i.LeaderboardLength.Error(e),resolveFn:t,rejectFn:n})})})}async removeElements(e,t,r){try{(0,n.validateLeaderboardNumberOfElements)(r.length)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new i.LeaderboardRemoveElements.Error(e))}return this.logger.trace(`Issuing 'removeElements' request; cache: ${e}, leaderboard: ${t}, number of elements: ${r.length.toString()}`),await this.sendRemoveElements(e,t,r)}async sendRemoveElements(e,t,r){let n=new a._RemoveElementsRequest;return n.setLeaderboard(t),n.setIdsList(r),await new Promise((t,r)=>{this.client.removeElements(n,{...this.clientMetadataProvider.createClientMetadata(),...(0,s.createCallMetadata)(e,this.deadlineMillis)},(e,n)=>{n?t(new i.LeaderboardRemoveElements.Success):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new i.LeaderboardRemoveElements.Error(e),resolveFn:t,rejectFn:r})})})}async delete(e,t){return this.logger.trace(`Issuing 'delete' request; cache: ${e}, leaderboard: ${t}`),await this.sendDelete(e,t)}async sendDelete(e,t){let r=new a._DeleteLeaderboardRequest;return r.setLeaderboard(t),await new Promise((t,n)=>{this.client.deleteLeaderboard(r,{...this.clientMetadataProvider.createClientMetadata(),...(0,s.createCallMetadata)(e,this.deadlineMillis)},(e,r)=>{r?t(new i.LeaderboardDelete.Success):this.cacheServiceErrorMapper.resolveOrRejectError({err:e,errorResponseFactoryFn:e=>new i.LeaderboardDelete.Error(e),resolveFn:t,rejectFn:n})})})}}t.LeaderboardDataClient=p},88708:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.NotStored=t.Stored=void 0;let i=r(17214),n=r(94452),s=new TextDecoder;class o extends i.ResponseBase{constructor(e){super(),this.type=n.CacheSetIfAbsentOrHashEqualResponse.Stored,this._hash=e}hashString(){return s.decode(this._hash)}hashUint8Array(){return this._hash}}t.Stored=o;class a extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetIfAbsentOrHashEqualResponse.NotStored}}t.NotStored=a;class c extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSetIfAbsentOrHashEqualResponse.Error}}t.Error=c},88878:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractPubsubClient=void 0;let i=r(52725),n=r(84055),s=r(79324);class o{constructor(e,t,r,i){this.loggerFactory=e,this.logger=t,this.cacheServiceErrorMapper=r,this.retryStrategy=i}getRetryStrategy(){return this.retryStrategy}getLogger(){return this.logger}getCacheServiceErrorMapper(){return this.cacheServiceErrorMapper}async publish(e,t,r){try{(0,i.validateCacheName)(e),(0,i.validateTopicName)(t)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new n.TopicPublish.Error(e))}return this.logger.trace("Issuing publish request; topic: %s, message length: %s",(0,i.truncateString)(t),r.length),await this.sendPublish(e,t,r)}async subscribe(e,t,r){var o,a,c,l,u,d;try{(0,i.validateCacheName)(e),(0,i.validateTopicName)(t)}catch(e){return this.cacheServiceErrorMapper.returnOrThrowError(e,e=>new n.TopicSubscribe.Error(e))}this.logger.trace("Issuing subscribe request; topic: %s",(0,i.truncateString)(t));let p=null!=(o=r.onItem)?o:()=>{},h=null!=(a=r.onError)?a:()=>{},g=null!=(c=r.onDiscontinuity)?c:()=>{},f=null!=(l=r.onHeartbeat)?l:()=>{},m=null!=(u=r.onConnectionLost)?u:()=>{},y=null!=(d=r.onSubscriptionEnd)?d:()=>{},_=new s.SubscriptionState,R=new n.TopicSubscribe.Subscription(this.loggerFactory,_);return await this.sendSubscribe({cacheName:e,topicName:t,onItem:p,onError:h,onDiscontinuity:g,onHeartbeat:f,onConnectionLost:m,onSubscriptionEnd:y,subscriptionState:_,subscription:R,restartedDueToError:!1,firstMessage:!0})}prepareEndCallback(e){return()=>{var t,r;if(e.restartedDueToError&&e.subscriptionState.isSubscribed){this.logger.trace("Stream ended after error but was restarted on topic: %s",e.topicName),e.restartedDueToError=!1,null==(t=e.onSubscriptionEnd)||t.call(e);return}if(!e.subscriptionState.isSubscribed){this.logger.trace("Stream ended after unsubscribe on topic: %s",e.topicName),null==(r=e.onSubscriptionEnd)||r.call(e);return}this.logger.trace("Stream ended on topic: %s; restarting.",e.topicName),this.sendSubscribe(e).then(()=>{}).catch(()=>{})}}handleSubscribeError(e,t,r){if(this.logger.trace("Handling subscribe error"),e.firstMessage){this.logger.trace("First message on subscription was an error; topic: %s, error: %s",(0,i.truncateString)(e.topicName),t.toString()),e.resolve(t),e.subscription.unsubscribe();return}this.logger.trace("Subscribe error was not the first message on the stream."),this.logger.trace("Checking to see if we should attempt to reconnect subscription."),null===r?(this.logger.trace("Error occurred on subscription, not attempting to reconnect: %s",t.toString()),e.subscription.unsubscribe(),e.onError(t,e.subscription)):(e.restartedDueToError=!0,this.logger.trace("Error occurred on subscription, possibly a network interruption. Will attempt to restart stream in %s ms.",r),(0,i.sleep)(r).then(()=>{e.subscriptionState.isSubscribed?this.sendSubscribe(e).then(()=>{}).catch(e=>{this.logger.trace("Error when calling sendSubscribe to reconnect: %s",e)}):this.logger.trace("Subscription was unsubscribed before retrying; aborting reconnect.")}).catch(e=>{this.logger.trace("Error when sleeping prior to sendSubscribe to reconnect: %s",e)}))}}t.AbstractPubsubClient=o},89966:(e,t)=>{"use strict";function r(e){let t=atob(e),r=t.length,i=new Uint8Array(r);for(let e=0;e<r;e++)i[e]=t.charCodeAt(e);return i}function i(e){return e.match(/^http(?:s)?:\/\//)?e:`https://${e}`}Object.defineProperty(t,"__esModule",{value:!0}),t.getWebTokenEndpoint=t.getWebCacheEndpoint=t.getWebControlEndpoint=t.createCallMetadata=t.convertToStringFromB64String=t.convertToBytesFromB64String=t.convertToB64String=void 0,t.convertToB64String=function(e){return"string"==typeof e?btoa(String.fromCharCode(...new TextEncoder().encode(e))):btoa(String.fromCharCode(...e))},t.convertToBytesFromB64String=r,t.convertToStringFromB64String=function(e){let t=r(e);return new TextDecoder().decode(t)},t.createCallMetadata=function(e,t){return{cache:e,deadline:(Date.now()+t).toString()}},t.getWebControlEndpoint=function(e){return e.areEndpointsOverridden()?i(e.getControlEndpoint()):i(`web.${e.getControlEndpoint()}`)},t.getWebCacheEndpoint=function(e){return e.areEndpointsOverridden()?i(e.getCacheEndpoint()):i(`web.${e.getCacheEndpoint()}`)},t.getWebTokenEndpoint=function(e){return e.areEndpointsOverridden()?i(e.getTokenEndpoint()):i(`web.${e.getTokenEndpoint()}`)}},90391:(e,t,r)=>{var i=r(64555),n={};i.exportSymbol("CacheRole",null,n),i.exportSymbol("ExplicitPermissions",null,n),i.exportSymbol("FunctionRole",null,n),i.exportSymbol("Permissions",null,n),i.exportSymbol("Permissions.KindCase",null,n),i.exportSymbol("PermissionsType",null,n),i.exportSymbol("PermissionsType.All",null,n),i.exportSymbol("PermissionsType.CacheItemSelector",null,n),i.exportSymbol("PermissionsType.CacheItemSelector.KindCase",null,n),i.exportSymbol("PermissionsType.CachePermissions",null,n),i.exportSymbol("PermissionsType.CachePermissions.CacheCase",null,n),i.exportSymbol("PermissionsType.CachePermissions.CacheItemCase",null,n),i.exportSymbol("PermissionsType.CacheSelector",null,n),i.exportSymbol("PermissionsType.CacheSelector.KindCase",null,n),i.exportSymbol("PermissionsType.FunctionPermissions",null,n),i.exportSymbol("PermissionsType.FunctionPermissions.CacheCase",null,n),i.exportSymbol("PermissionsType.FunctionPermissions.FunctionCase",null,n),i.exportSymbol("PermissionsType.FunctionSelector",null,n),i.exportSymbol("PermissionsType.FunctionSelector.KindCase",null,n),i.exportSymbol("PermissionsType.KindCase",null,n),i.exportSymbol("PermissionsType.TopicPermissions",null,n),i.exportSymbol("PermissionsType.TopicPermissions.CacheCase",null,n),i.exportSymbol("PermissionsType.TopicPermissions.TopicCase",null,n),i.exportSymbol("PermissionsType.TopicSelector",null,n),i.exportSymbol("PermissionsType.TopicSelector.KindCase",null,n),i.exportSymbol("SuperUserPermissions",null,n),i.exportSymbol("TopicRole",null,n),n.Permissions=function(e){i.Message.initialize(this,e,0,-1,null,n.Permissions.oneofGroups_)},i.inherits(n.Permissions,i.Message),i.DEBUG&&!COMPILED&&(n.Permissions.displayName="proto.Permissions"),n.E
1xplicitPermissions=function(e){i.Message.initialize(this,e,0,-1,n.ExplicitPermissions.repeatedFields_,null)},i.inherits(n.ExplicitPermissions,i.Message),i.DEBUG&&!COMPILED&&(n.ExplicitPermissions.displayName="proto.ExplicitPermissions"),n.PermissionsType=function(e){i.Message.initialize(this,e,0,-1,null,n.PermissionsType.oneofGroups_)},i.inherits(n.PermissionsType,i.Message),i.DEBUG&&!COMPILED&&(n.PermissionsType.displayName="proto.PermissionsType"),n.PermissionsType.All=function(e){i.Message.initialize(this,e,0,-1,null,null)},i.inherits(n.PermissionsType.All,i.Message),i.DEBUG&&!COMPILED&&(n.PermissionsType.All.displayName="proto.PermissionsType.All"),n.PermissionsType.CacheSelector=function(e){i.Message.initialize(this,e,0,-1,null,n.PermissionsType.CacheSelector.oneofGroups_)},i.inherits(n.PermissionsType.CacheSelector,i.Message),i.DEBUG&&!COMPILED&&(n.PermissionsType.CacheSelector.displayName="proto.PermissionsType.CacheSelector"),n.PermissionsType.CacheItemSelector=function(e){i.Message.initialize(this,e,0,-1,null,n.PermissionsType.CacheItemSelector.oneofGroups_)},i.inherits(n.PermissionsType.CacheItemSelector,i.Message),i.DEBUG&&!COMPILED&&(n.PermissionsType.CacheItemSelector.displayName="proto.PermissionsType.CacheItemSelector"),n.PermissionsType.CachePermissions=function(e){i.Message.initialize(this,e,0,-1,null,n.PermissionsType.CachePermissions.oneofGroups_)},i.inherits(n.PermissionsType.CachePermissions,i.Message),i.DEBUG&&!COMPILED&&(n.PermissionsType.CachePermissions.displayName="proto.PermissionsType.CachePermissions"),n.PermissionsType.TopicSelector=function(e){i.Message.initialize(this,e,0,-1,null,n.PermissionsType.TopicSelector.oneofGroups_)},i.inherits(n.PermissionsType.TopicSelector,i.Message),i.DEBUG&&!COMPILED&&(n.PermissionsType.TopicSelector.displayName="proto.PermissionsType.TopicSelector"),n.PermissionsType.TopicPermissions=function(e){i.Message.initialize(this,e,0,-1,null,n.PermissionsType.TopicPermissions.oneofGroups_)},i.inherits(n.PermissionsType.TopicPermissions,i.Message),i.DEBUG&&!COMPILED&&(n.PermissionsType.TopicPermissions.displayName="proto.PermissionsType.TopicPermissions"),n.PermissionsType.FunctionSelector=function(e){i.Message.initialize(this,e,0,-1,null,n.PermissionsType.FunctionSelector.oneofGroups_)},i.inherits(n.PermissionsType.FunctionSelector,i.Message),i.DEBUG&&!COMPILED&&(n.PermissionsType.FunctionSelector.displayName="proto.PermissionsType.FunctionSelector"),n.PermissionsType.FunctionPermissions=function(e){i.Message.initialize(this,e,0,-1,null,n.PermissionsType.FunctionPermissions.oneofGroups_)},i.inherits(n.PermissionsType.FunctionPermissions,i.Message),i.DEBUG&&!COMPILED&&(n.PermissionsType.FunctionPermissions.displayName="proto.PermissionsType.FunctionPermissions"),n.Permissions.oneofGroups_=[[1,2]],n.Permissions.KindCase={KIND_NOT_SET:0,SUPER_USER:1,EXPLICIT:2},n.Permissions.prototype.getKindCase=function(){return i.Message.computeOneofCase(this,n.Permissions.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(n.Permissions.prototype.toObject=function(e){return n.Permissions.toObject(e,this)},n.Permissions.toObject=function(e,t){var r,s={superUser:i.Message.getFieldWithDefault(t,1,0),explicit:(r=t.getExplicit())&&n.ExplicitPermissions.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),n.Permissions.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.Permissions;return n.Permissions.deserializeBinaryFromReader(r,t)},n.Permissions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setSuperUser(r);break;case 2:var r=new n.ExplicitPermissions;t.readMessage(r,n.ExplicitPermissions.deserializeBinaryFromReader),e.setExplicit(r);break;default:t.skipField()}return e},n.Permissions.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.Permissions.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.Permissions.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=i.Message.getField(e,1))&&t.writeEnum(1,r),null!=(r=e.getExplicit())&&t.writeMessage(2,r,n.ExplicitPermissions.serializeBinaryToWriter)},n.Permissions.prototype.getSuperUser=function(){return i.Message.getFieldWithDefault(this,1,0)},n.Permissions.prototype.setSuperUser=function(e){return i.Message.setOneofField(this,1,n.Permissions.oneofGroups_[0],e)},n.Permissions.prototype.clearSuperUser=function(){return i.Message.setOneofField(this,1,n.Permissions.oneofGroups_[0],void 0)},n.Permissions.prototype.hasSuperUser=function(){return null!=i.Message.getField(this,1)},n.Permissions.prototype.getExplicit=function(){return i.Message.getWrapperField(this,n.ExplicitPermissions,2)},n.Permissions.prototype.setExplicit=function(e){return i.Message.setOneofWrapperField(this,2,n.Permissions.oneofGroups_[0],e)},n.Permissions.prototype.clearExplicit=function(){return this.setExplicit(void 0)},n.Permissions.prototype.hasExplicit=function(){return null!=i.Message.getField(this,2)},n.ExplicitPermissions.repeatedFields_=[1],i.Message.GENERATE_TO_OBJ
1ECT&&(n.ExplicitPermissions.prototype.toObject=function(e){return n.ExplicitPermissions.toObject(e,this)},n.ExplicitPermissions.toObject=function(e,t){var r={permissionsList:i.Message.toObjectList(t.getPermissionsList(),n.PermissionsType.toObject,e)};return e&&(r.$jspbMessageInstance=t),r}),n.ExplicitPermissions.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.ExplicitPermissions;return n.ExplicitPermissions.deserializeBinaryFromReader(r,t)},n.ExplicitPermissions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=new n.PermissionsType;t.readMessage(r,n.PermissionsType.deserializeBinaryFromReader),e.addPermissions(r)}else t.skipField();return e},n.ExplicitPermissions.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.ExplicitPermissions.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.ExplicitPermissions.serializeBinaryToWriter=function(e,t){var r=void 0;(r=e.getPermissionsList()).length>0&&t.writeRepeatedMessage(1,r,n.PermissionsType.serializeBinaryToWriter)},n.ExplicitPermissions.prototype.getPermissionsList=function(){return i.Message.getRepeatedWrapperField(this,n.PermissionsType,1)},n.ExplicitPermissions.prototype.setPermissionsList=function(e){return i.Message.setRepeatedWrapperField(this,1,e)},n.ExplicitPermissions.prototype.addPermissions=function(e,t){return i.Message.addToRepeatedWrapperField(this,1,e,n.PermissionsType,t)},n.ExplicitPermissions.prototype.clearPermissionsList=function(){return this.setPermissionsList([])},n.PermissionsType.oneofGroups_=[[1,2,3]],n.PermissionsType.KindCase={KIND_NOT_SET:0,CACHE_PERMISSIONS:1,TOPIC_PERMISSIONS:2,FUNCTION_PERMISSIONS:3},n.PermissionsType.prototype.getKindCase=function(){return i.Message.computeOneofCase(this,n.PermissionsType.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(n.PermissionsType.prototype.toObject=function(e){return n.PermissionsType.toObject(e,this)},n.PermissionsType.toObject=function(e,t){var r,i={cachePermissions:(r=t.getCachePermissions())&&n.PermissionsType.CachePermissions.toObject(e,r),topicPermissions:(r=t.getTopicPermissions())&&n.PermissionsType.TopicPermissions.toObject(e,r),functionPermissions:(r=t.getFunctionPermissions())&&n.PermissionsType.FunctionPermissions.toObject(e,r)};return e&&(i.$jspbMessageInstance=t),i}),n.PermissionsType.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.PermissionsType;return n.PermissionsType.deserializeBinaryFromReader(r,t)},n.PermissionsType.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=new n.PermissionsType.CachePermissions;t.readMessage(r,n.PermissionsType.CachePermissions.deserializeBinaryFromReader),e.setCachePermissions(r);break;case 2:var r=new n.PermissionsType.TopicPermissions;t.readMessage(r,n.PermissionsType.TopicPermissions.deserializeBinaryFromReader),e.setTopicPermissions(r);break;case 3:var r=new n.PermissionsType.FunctionPermissions;t.readMessage(r,n.PermissionsType.FunctionPermissions.deserializeBinaryFromReader),e.setFunctionPermissions(r);break;default:t.skipField()}return e},n.PermissionsType.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.PermissionsType.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.PermissionsType.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=e.getCachePermissions())&&t.writeMessage(1,r,n.PermissionsType.CachePermissions.serializeBinaryToWriter),null!=(r=e.getTopicPermissions())&&t.writeMessage(2,r,n.PermissionsType.TopicPermissions.serializeBinaryToWriter),null!=(r=e.getFunctionPermissions())&&t.writeMessage(3,r,n.PermissionsType.FunctionPermissions.serializeBinaryToWriter)},i.Message.GENERATE_TO_OBJECT&&(n.PermissionsType.All.prototype.toObject=function(e){return n.PermissionsType.All.toObject(e,this)},n.PermissionsType.All.toObject=function(e,t){var r={};return e&&(r.$jspbMessageInstance=t),r}),n.PermissionsType.All.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.PermissionsType.All;return n.PermissionsType.All.deserializeBinaryFromReader(r,t)},n.PermissionsType.All.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)t.getFieldNumber(),t.skipField();return e},n.PermissionsType.All.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.PermissionsType.All.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.PermissionsType.All.serializeBinaryToWriter=function(e,t){},n.PermissionsType.CacheSelector.oneofGroups_=[[1]],n.PermissionsType.CacheSelector.KindCase={KIND_NOT_SET:0,CACHE_NAME:1},n.PermissionsType.CacheSelector.prototype.getKindCase=function(){return i.Message.computeOneofCase(this,n.PermissionsType.CacheSelector.oneofGroups_[0])}
1,i.Message.GENERATE_TO_OBJECT&&(n.PermissionsType.CacheSelector.prototype.toObject=function(e){return n.PermissionsType.CacheSelector.toObject(e,this)},n.PermissionsType.CacheSelector.toObject=function(e,t){var r={cacheName:i.Message.getFieldWithDefault(t,1,"")};return e&&(r.$jspbMessageInstance=t),r}),n.PermissionsType.CacheSelector.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.PermissionsType.CacheSelector;return n.PermissionsType.CacheSelector.deserializeBinaryFromReader(r,t)},n.PermissionsType.CacheSelector.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)if(1===t.getFieldNumber()){var r=t.readString();e.setCacheName(r)}else t.skipField();return e},n.PermissionsType.CacheSelector.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.PermissionsType.CacheSelector.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.PermissionsType.CacheSelector.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=i.Message.getField(e,1))&&t.writeString(1,r)},n.PermissionsType.CacheSelector.prototype.getCacheName=function(){return i.Message.getFieldWithDefault(this,1,"")},n.PermissionsType.CacheSelector.prototype.setCacheName=function(e){return i.Message.setOneofField(this,1,n.PermissionsType.CacheSelector.oneofGroups_[0],e)},n.PermissionsType.CacheSelector.prototype.clearCacheName=function(){return i.Message.setOneofField(this,1,n.PermissionsType.CacheSelector.oneofGroups_[0],void 0)},n.PermissionsType.CacheSelector.prototype.hasCacheName=function(){return null!=i.Message.getField(this,1)},n.PermissionsType.CacheItemSelector.oneofGroups_=[[1,2]],n.PermissionsType.CacheItemSelector.KindCase={KIND_NOT_SET:0,KEY:1,KEY_PREFIX:2},n.PermissionsType.CacheItemSelector.prototype.getKindCase=function(){return i.Message.computeOneofCase(this,n.PermissionsType.CacheItemSelector.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(n.PermissionsType.CacheItemSelector.prototype.toObject=function(e){return n.PermissionsType.CacheItemSelector.toObject(e,this)},n.PermissionsType.CacheItemSelector.toObject=function(e,t){var r={key:t.getKey_asB64(),keyPrefix:t.getKeyPrefix_asB64()};return e&&(r.$jspbMessageInstance=t),r}),n.PermissionsType.CacheItemSelector.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.PermissionsType.CacheItemSelector;return n.PermissionsType.CacheItemSelector.deserializeBinaryFromReader(r,t)},n.PermissionsType.CacheItemSelector.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readBytes();e.setKey(r);break;case 2:var r=t.readBytes();e.setKeyPrefix(r);break;default:t.skipField()}return e},n.PermissionsType.CacheItemSelector.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.PermissionsType.CacheItemSelector.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.PermissionsType.CacheItemSelector.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=i.Message.getField(e,1))&&t.writeBytes(1,r),null!=(r=i.Message.getField(e,2))&&t.writeBytes(2,r)},n.PermissionsType.CacheItemSelector.prototype.getKey=function(){return i.Message.getFieldWithDefault(this,1,"")},n.PermissionsType.CacheItemSelector.prototype.getKey_asB64=function(){return i.Message.bytesAsB64(this.getKey())},n.PermissionsType.CacheItemSelector.prototype.getKey_asU8=function(){return i.Message.bytesAsU8(this.getKey())},n.PermissionsType.CacheItemSelector.prototype.setKey=function(e){return i.Message.setOneofField(this,1,n.PermissionsType.CacheItemSelector.oneofGroups_[0],e)},n.PermissionsType.CacheItemSelector.prototype.clearKey=function(){return i.Message.setOneofField(this,1,n.PermissionsType.CacheItemSelector.oneofGroups_[0],void 0)},n.PermissionsType.CacheItemSelector.prototype.hasKey=function(){return null!=i.Message.getField(this,1)},n.PermissionsType.CacheItemSelector.prototype.getKeyPrefix=function(){return i.Message.getFieldWithDefault(this,2,"")},n.PermissionsType.CacheItemSelector.prototype.getKeyPrefix_asB64=function(){return i.Message.bytesAsB64(this.getKeyPrefix())},n.PermissionsType.CacheItemSelector.prototype.getKeyPrefix_asU8=function(){return i.Message.bytesAsU8(this.getKeyPrefix())},n.PermissionsType.CacheItemSelector.prototype.setKeyPrefix=function(e){return i.Message.setOneofField(this,2,n.PermissionsType.CacheItemSelector.oneofGroups_[0],e)},n.PermissionsType.CacheItemSelector.prototype.clearKeyPrefix=function(){return i.Message.setOneofField(this,2,n.PermissionsType.CacheItemSelector.oneofGroups_[0],void 0)},n.PermissionsType.CacheItemSelector.prototype.hasKeyPrefix=function(){return null!=i.Message.getField(this,2)},n.PermissionsType.CachePermissions.oneofGroups_=[[2,3],[4,5]],n.PermissionsType.CachePermissions.CacheCase={CACHE_NOT_SET:0,ALL_CACHES:2,CACHE_SELECTOR:3},n.PermissionsType.CachePermissions.prototype.getCacheCase=function(){return i.Message.computeOneofCase(this,n.PermissionsType.CachePermissions.oneofGroups_[0])}
1,n.PermissionsType.CachePermissions.CacheItemCase={CACHE_ITEM_NOT_SET:0,ALL_ITEMS:4,ITEM_SELECTOR:5},n.PermissionsType.CachePermissions.prototype.getCacheItemCase=function(){return i.Message.computeOneofCase(this,n.PermissionsType.CachePermissions.oneofGroups_[1])},i.Message.GENERATE_TO_OBJECT&&(n.PermissionsType.CachePermissions.prototype.toObject=function(e){return n.PermissionsType.CachePermissions.toObject(e,this)},n.PermissionsType.CachePermissions.toObject=function(e,t){var r,s={role:i.Message.getFieldWithDefault(t,1,0),allCaches:(r=t.getAllCaches())&&n.PermissionsType.All.toObject(e,r),cacheSelector:(r=t.getCacheSelector())&&n.PermissionsType.CacheSelector.toObject(e,r),allItems:(r=t.getAllItems())&&n.PermissionsType.All.toObject(e,r),itemSelector:(r=t.getItemSelector())&&n.PermissionsType.CacheItemSelector.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),n.PermissionsType.CachePermissions.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.PermissionsType.CachePermissions;return n.PermissionsType.CachePermissions.deserializeBinaryFromReader(r,t)},n.PermissionsType.CachePermissions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setRole(r);break;case 2:var r=new n.PermissionsType.All;t.readMessage(r,n.PermissionsType.All.deserializeBinaryFromReader),e.setAllCaches(r);break;case 3:var r=new n.PermissionsType.CacheSelector;t.readMessage(r,n.PermissionsType.CacheSelector.deserializeBinaryFromReader),e.setCacheSelector(r);break;case 4:var r=new n.PermissionsType.All;t.readMessage(r,n.PermissionsType.All.deserializeBinaryFromReader),e.setAllItems(r);break;case 5:var r=new n.PermissionsType.CacheItemSelector;t.readMessage(r,n.PermissionsType.CacheItemSelector.deserializeBinaryFromReader),e.setItemSelector(r);break;default:t.skipField()}return e},n.PermissionsType.CachePermissions.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.PermissionsType.CachePermissions.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.PermissionsType.CachePermissions.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getRole())&&t.writeEnum(1,r),null!=(r=e.getAllCaches())&&t.writeMessage(2,r,n.PermissionsType.All.serializeBinaryToWriter),null!=(r=e.getCacheSelector())&&t.writeMessage(3,r,n.PermissionsType.CacheSelector.serializeBinaryToWriter),null!=(r=e.getAllItems())&&t.writeMessage(4,r,n.PermissionsType.All.serializeBinaryToWriter),null!=(r=e.getItemSelector())&&t.writeMessage(5,r,n.PermissionsType.CacheItemSelector.serializeBinaryToWriter)},n.PermissionsType.CachePermissions.prototype.getRole=function(){return i.Message.getFieldWithDefault(this,1,0)},n.PermissionsType.CachePermissions.prototype.setRole=function(e){return i.Message.setProto3EnumField(this,1,e)},n.PermissionsType.CachePermissions.prototype.getAllCaches=function(){return i.Message.getWrapperField(this,n.PermissionsType.All,2)},n.PermissionsType.CachePermissions.prototype.setAllCaches=function(e){return i.Message.setOneofWrapperField(this,2,n.PermissionsType.CachePermissions.oneofGroups_[0],e)},n.PermissionsType.CachePermissions.prototype.clearAllCaches=function(){return this.setAllCaches(void 0)},n.PermissionsType.CachePermissions.prototype.hasAllCaches=function(){return null!=i.Message.getField(this,2)},n.PermissionsType.CachePermissions.prototype.getCacheSelector=function(){return i.Message.getWrapperField(this,n.PermissionsType.CacheSelector,3)},n.PermissionsType.CachePermissions.prototype.setCacheSelector=function(e){return i.Message.setOneofWrapperField(this,3,n.PermissionsType.CachePermissions.oneofGroups_[0],e)},n.PermissionsType.CachePermissions.prototype.clearCacheSelector=function(){return this.setCacheSelector(void 0)},n.PermissionsType.CachePermissions.prototype.hasCacheSelector=function(){return null!=i.Message.getField(this,3)},n.PermissionsType.CachePermissions.prototype.getAllItems=function(){return i.Message.getWrapperField(this,n.PermissionsType.All,4)},n.PermissionsType.CachePermissions.prototype.setAllItems=function(e){return i.Message.setOneofWrapperField(this,4,n.PermissionsType.CachePermissions.oneofGroups_[1],e)},n.PermissionsType.CachePermissions.prototype.clearAllItems=function(){return this.setAllItems(void 0)},n.PermissionsType.CachePermissions.prototype.hasAllItems=function(){return null!=i.Message.getField(this,4)},n.PermissionsType.CachePermissions.prototype.getItemSelector=function(){return i.Message.getWrapperField(this,n.PermissionsType.CacheItemSelector,5)},n.PermissionsType.CachePermissions.prototype.setItemSelector=function(e){return i.Message.setOneofWrapperField(this,5,n.PermissionsType.CachePermissions.oneofGroups_[1],e)},n.PermissionsType.CachePermissions.prototype.clearItemSelector=function(){return this.setItemSelector(void 0)},n.PermissionsType.CachePermissions.prototype.hasItemSelector=function(){return null!=i.Message.getField(this,5)},n.PermissionsType.TopicSelector.oneofGroups_=[[1,2]],n.PermissionsType.TopicSelector.KindCase={KIND_NOT_SET:0,TOPIC_NAME:1,TOPIC_NAME_PREFIX:2},n.PermissionsType.TopicSelector.prototype.getKindCase=function(){return i.Message.computeOneofCase(this,n.PermissionsType.TopicSelector.oneofGroups_[0])}
1,i.Message.GENERATE_TO_OBJECT&&(n.PermissionsType.TopicSelector.prototype.toObject=function(e){return n.PermissionsType.TopicSelector.toObject(e,this)},n.PermissionsType.TopicSelector.toObject=function(e,t){var r={topicName:i.Message.getFieldWithDefault(t,1,""),topicNamePrefix:i.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),n.PermissionsType.TopicSelector.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.PermissionsType.TopicSelector;return n.PermissionsType.TopicSelector.deserializeBinaryFromReader(r,t)},n.PermissionsType.TopicSelector.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setTopicName(r);break;case 2:var r=t.readString();e.setTopicNamePrefix(r);break;default:t.skipField()}return e},n.PermissionsType.TopicSelector.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.PermissionsType.TopicSelector.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.PermissionsType.TopicSelector.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=i.Message.getField(e,1))&&t.writeString(1,r),null!=(r=i.Message.getField(e,2))&&t.writeString(2,r)},n.PermissionsType.TopicSelector.prototype.getTopicName=function(){return i.Message.getFieldWithDefault(this,1,"")},n.PermissionsType.TopicSelector.prototype.setTopicName=function(e){return i.Message.setOneofField(this,1,n.PermissionsType.TopicSelector.oneofGroups_[0],e)},n.PermissionsType.TopicSelector.prototype.clearTopicName=function(){return i.Message.setOneofField(this,1,n.PermissionsType.TopicSelector.oneofGroups_[0],void 0)},n.PermissionsType.TopicSelector.prototype.hasTopicName=function(){return null!=i.Message.getField(this,1)},n.PermissionsType.TopicSelector.prototype.getTopicNamePrefix=function(){return i.Message.getFieldWithDefault(this,2,"")},n.PermissionsType.TopicSelector.prototype.setTopicNamePrefix=function(e){return i.Message.setOneofField(this,2,n.PermissionsType.TopicSelector.oneofGroups_[0],e)},n.PermissionsType.TopicSelector.prototype.clearTopicNamePrefix=function(){return i.Message.setOneofField(this,2,n.PermissionsType.TopicSelector.oneofGroups_[0],void 0)},n.PermissionsType.TopicSelector.prototype.hasTopicNamePrefix=function(){return null!=i.Message.getField(this,2)},n.PermissionsType.TopicPermissions.oneofGroups_=[[2,3],[4,5]],n.PermissionsType.TopicPermissions.CacheCase={CACHE_NOT_SET:0,ALL_CACHES:2,CACHE_SELECTOR:3},n.PermissionsType.TopicPermissions.prototype.getCacheCase=function(){return i.Message.computeOneofCase(this,n.PermissionsType.TopicPermissions.oneofGroups_[0])},n.PermissionsType.TopicPermissions.TopicCase={TOPIC_NOT_SET:0,ALL_TOPICS:4,TOPIC_SELECTOR:5},n.PermissionsType.TopicPermissions.prototype.getTopicCase=function(){return i.Message.computeOneofCase(this,n.PermissionsType.TopicPermissions.oneofGroups_[1])},i.Message.GENERATE_TO_OBJECT&&(n.PermissionsType.TopicPermissions.prototype.toObject=function(e){return n.PermissionsType.TopicPermissions.toObject(e,this)},n.PermissionsType.TopicPermissions.toObject=function(e,t){var r,s={role:i.Message.getFieldWithDefault(t,1,0),allCaches:(r=t.getAllCaches())&&n.PermissionsType.All.toObject(e,r),cacheSelector:(r=t.getCacheSelector())&&n.PermissionsType.CacheSelector.toObject(e,r),allTopics:(r=t.getAllTopics())&&n.PermissionsType.All.toObject(e,r),topicSelector:(r=t.getTopicSelector())&&n.PermissionsType.TopicSelector.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),n.PermissionsType.TopicPermissions.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.PermissionsType.TopicPermissions;return n.PermissionsType.TopicPermissions.deserializeBinaryFromReader(r,t)},n.PermissionsType.TopicPermissions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setRole(r);break;case 2:var r=new n.PermissionsType.All;t.readMessage(r,n.PermissionsType.All.deserializeBinaryFromReader),e.setAllCaches(r);break;case 3:var r=new n.PermissionsType.CacheSelector;t.readMessage(r,n.PermissionsType.CacheSelector.deserializeBinaryFromReader),e.setCac
1heSelector(r);break;case 4:var r=new n.PermissionsType.All;t.readMessage(r,n.PermissionsType.All.deserializeBinaryFromReader),e.setAllTopics(r);break;case 5:var r=new n.PermissionsType.TopicSelector;t.readMessage(r,n.PermissionsType.TopicSelector.deserializeBinaryFromReader),e.setTopicSelector(r);break;default:t.skipField()}return e},n.PermissionsType.TopicPermissions.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.PermissionsType.TopicPermissions.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.PermissionsType.TopicPermissions.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getRole())&&t.writeEnum(1,r),null!=(r=e.getAllCaches())&&t.writeMessage(2,r,n.PermissionsType.All.serializeBinaryToWriter),null!=(r=e.getCacheSelector())&&t.writeMessage(3,r,n.PermissionsType.CacheSelector.serializeBinaryToWriter),null!=(r=e.getAllTopics())&&t.writeMessage(4,r,n.PermissionsType.All.serializeBinaryToWriter),null!=(r=e.getTopicSelector())&&t.writeMessage(5,r,n.PermissionsType.TopicSelector.serializeBinaryToWriter)},n.PermissionsType.TopicPermissions.prototype.getRole=function(){return i.Message.getFieldWithDefault(this,1,0)},n.PermissionsType.TopicPermissions.prototype.setRole=function(e){return i.Message.setProto3EnumField(this,1,e)},n.PermissionsType.TopicPermissions.prototype.getAllCaches=function(){return i.Message.getWrapperField(this,n.PermissionsType.All,2)},n.PermissionsType.TopicPermissions.prototype.setAllCaches=function(e){return i.Message.setOneofWrapperField(this,2,n.PermissionsType.TopicPermissions.oneofGroups_[0],e)},n.PermissionsType.TopicPermissions.prototype.clearAllCaches=function(){return this.setAllCaches(void 0)},n.PermissionsType.TopicPermissions.prototype.hasAllCaches=function(){return null!=i.Message.getField(this,2)},n.PermissionsType.TopicPermissions.prototype.getCacheSelector=function(){return i.Message.getWrapperField(this,n.PermissionsType.CacheSelector,3)},n.PermissionsType.TopicPermissions.prototype.setCacheSelector=function(e){return i.Message.setOneofWrapperField(this,3,n.PermissionsType.TopicPermissions.oneofGroups_[0],e)},n.PermissionsType.TopicPermissions.prototype.clearCacheSelector=function(){return this.setCacheSelector(void 0)},n.PermissionsType.TopicPermissions.prototype.hasCacheSelector=function(){return null!=i.Message.getField(this,3)},n.PermissionsType.TopicPermissions.prototype.getAllTopics=function(){return i.Message.getWrapperField(this,n.PermissionsType.All,4)},n.PermissionsType.TopicPermissions.prototype.setAllTopics=function(e){return i.Message.setOneofWrapperField(this,4,n.PermissionsType.TopicPermissions.oneofGroups_[1],e)},n.PermissionsType.TopicPermissions.prototype.clearAllTopics=function(){return this.setAllTopics(void 0)},n.PermissionsType.TopicPermissions.prototype.hasAllTopics=function(){return null!=i.Message.getField(this,4)},n.PermissionsType.TopicPermissions.prototype.getTopicSelector=function(){return i.Message.getWrapperField(this,n.PermissionsType.TopicSelector,5)},n.PermissionsType.TopicPermissions.prototype.setTopicSelector=function(e){return i.Message.setOneofWrapperField(this,5,n.PermissionsType.TopicPermissions.oneofGroups_[1],e)},n.PermissionsType.TopicPermissions.prototype.clearTopicSelector=function(){return this.setTopicSelector(void 0)},n.PermissionsType.TopicPermissions.prototype.hasTopicSelector=function(){return null!=i.Message.getField(this,5)},n.PermissionsType.FunctionSelector.oneofGroups_=[[1,2]],n.PermissionsType.FunctionSelector.KindCase={KIND_NOT_SET:0,FUNCTION_NAME:1,FUNCTION_NAME_PREFIX:2},n.PermissionsType.FunctionSelector.prototype.getKindCase=function(){return i.Message.computeOneofCase(this,n.PermissionsType.FunctionSelector.oneofGroups_[0])},i.Message.GENERATE_TO_OBJECT&&(n.PermissionsType.FunctionSelector.prototype.toObject=function(e){return n.PermissionsType.FunctionSelector.toObject(e,this)},n.PermissionsType.FunctionSelector.toObject=function(e,t){var r={functionName:i.Message.getFieldWithDefault(t,1,""),functionNamePrefix:i.Message.getFieldWithDefault(t,2,"")};return e&&(r.$jspbMessageInstance=t),r}),n.PermissionsType.FunctionSelector.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.PermissionsType.FunctionSelector;return n.PermissionsType.FunctionSelector.deserializeBinaryFromReader(r,t)},n.PermissionsType.FunctionSelector.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readString();e.setFunctionName(r);break;case 2:var r=t.readString();e.setFunctionNamePrefix(r);break;default:t.skipField()}return e},n.PermissionsType.FunctionSelector.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.PermissionsType.FunctionSelector.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.PermissionsType.FunctionSelector.serializeBinaryToWriter=function(e,t){var r=void 0;null!=(r=i.Message.getField(e,1))&&t.writeString(1,r),null!=(r=i.Message.getField(e,2))&&t.writeString(2,r)},n.PermissionsType.FunctionSelector.prototype.getFunctionName=function(){return i.Message.getFieldWithDefault(this,1,"")},n.PermissionsType.FunctionSelector.prototype.setFunctionName=function(e){return i.Message.setOneofField(this,1,n.PermissionsType.FunctionSelector.oneofGroups_[0],e)},n.PermissionsType.FunctionSelector.prototype.clearFunctionName=function(){return i.Message.setOneofField(this,1,n.PermissionsType.FunctionSelector.oneofGroups_[0],void 0)},n.PermissionsType.FunctionSelector.prototype.hasFunctionName=function(){return null!=i.Message.getField(this,1)},n.PermissionsType.FunctionSelector.prototype.getFunctionNamePrefix=function(){return i.Message.getFieldWithDefault(this,2,"")},n.PermissionsType.FunctionSelector.prototype.setFunctionNamePrefix=function(e){return i.Message.setOneofField(this,2,n.PermissionsType.FunctionSelector.oneofGroups_[0],e)},n.PermissionsType.FunctionSelector.prototype.clearFunctionNamePrefix=function(){return i.Message.setOneofField(this,2,n.PermissionsType.FunctionSelector.oneofGroups_[0],void 0)},n.PermissionsType.FunctionSelector.prototype.hasFunctionNamePrefix=function(){return null!=i.Message.getField(this,2)},n.PermissionsType.FunctionPermissions.oneofGroups_=[[2,3],[4,5]],n.PermissionsType.FunctionPermissions.CacheCase={CACHE_NOT_SET:0,ALL_CACHES:2,CACHE_SELECTOR:3},n.PermissionsType.FunctionPermissions.prototype.getCacheCase=function(){return i.Message.computeOneofCase(this,n.PermissionsType.FunctionPermissions.oneofGroups_[0])},n.PermissionsType.FunctionPermissions.FunctionCase={FUNCTION_NOT_SET:0,ALL_FUNCTIONS:4,FUNCTION_SELECTOR:5},n.PermissionsType.FunctionPermissions.prototype.getFunctionCase=function(){return i.Message.computeOneofCase(this,n.PermissionsType.FunctionPermissions.oneofGroups_[1])}
1,i.Message.GENERATE_TO_OBJECT&&(n.PermissionsType.FunctionPermissions.prototype.toObject=function(e){return n.PermissionsType.FunctionPermissions.toObject(e,this)},n.PermissionsType.FunctionPermissions.toObject=function(e,t){var r,s={role:i.Message.getFieldWithDefault(t,1,0),allCaches:(r=t.getAllCaches())&&n.PermissionsType.All.toObject(e,r),cacheSelector:(r=t.getCacheSelector())&&n.PermissionsType.CacheSelector.toObject(e,r),allFunctions:(r=t.getAllFunctions())&&n.PermissionsType.All.toObject(e,r),functionSelector:(r=t.getFunctionSelector())&&n.PermissionsType.FunctionSelector.toObject(e,r)};return e&&(s.$jspbMessageInstance=t),s}),n.PermissionsType.FunctionPermissions.deserializeBinary=function(e){var t=new i.BinaryReader(e),r=new n.PermissionsType.FunctionPermissions;return n.PermissionsType.FunctionPermissions.deserializeBinaryFromReader(r,t)},n.PermissionsType.FunctionPermissions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();)switch(t.getFieldNumber()){case 1:var r=t.readEnum();e.setRole(r);break;case 2:var r=new n.PermissionsType.All;t.readMessage(r,n.PermissionsType.All.deserializeBinaryFromReader),e.setAllCaches(r);break;case 3:var r=new n.PermissionsType.CacheSelector;t.readMessage(r,n.PermissionsType.CacheSelector.deserializeBinaryFromReader),e.setCacheSelector(r);break;case 4:var r=new n.PermissionsType.All;t.readMessage(r,n.PermissionsType.All.deserializeBinaryFromReader),e.setAllFunctions(r);break;case 5:var r=new n.PermissionsType.FunctionSelector;t.readMessage(r,n.PermissionsType.FunctionSelector.deserializeBinaryFromReader),e.setFunctionSelector(r);break;default:t.skipField()}return e},n.PermissionsType.FunctionPermissions.prototype.serializeBinary=function(){var e=new i.BinaryWriter;return n.PermissionsType.FunctionPermissions.serializeBinaryToWriter(this,e),e.getResultBuffer()},n.PermissionsType.FunctionPermissions.serializeBinaryToWriter=function(e,t){var r=void 0;0!==(r=e.getRole())&&t.writeEnum(1,r),null!=(r=e.getAllCaches())&&t.writeMessage(2,r,n.PermissionsType.All.serializeBinaryToWriter),null!=(r=e.getCacheSelector())&&t.writeMessage(3,r,n.PermissionsType.CacheSelector.serializeBinaryToWriter),null!=(r=e.getAllFunctions())&&t.writeMessage(4,r,n.PermissionsType.All.serializeBinaryToWriter),null!=(r=e.getFunctionSelector())&&t.writeMessage(5,r,n.PermissionsType.FunctionSelector.serializeBinaryToWriter)},n.PermissionsType.FunctionPermissions.prototype.getRole=function(){return i.Message.getFieldWithDefault(this,1,0)},n.PermissionsType.FunctionPermissions.prototype.setRole=function(e){return i.Message.setProto3EnumField(this,1,e)},n.PermissionsType.FunctionPermissions.prototype.getAllCaches=function(){return i.Message.getWrapperField(this,n.PermissionsType.All,2)},n.PermissionsType.FunctionPermissions.prototype.setAllCaches=function(e){return i.Message.setOneofWrapperField(this,2,n.PermissionsType.FunctionPermissions.oneofGroups_[0],e)},n.PermissionsType.FunctionPermissions.prototype.clearAllCaches=function(){return this.setAllCaches(void 0)},n.PermissionsType.FunctionPermissions.prototype.hasAllCaches=function(){return null!=i.Message.getField(this,2)},n.PermissionsType.FunctionPermissions.prototype.getCacheSelector=function(){return i.Message.getWrapperField(this,n.PermissionsType.CacheSelector,3)},n.PermissionsType.FunctionPermissions.prototype.setCacheSelector=function(e){return i.Message.setOneofWrapperField(this,3,n.PermissionsType.FunctionPermissions.oneofGroups_[0],e)},n.PermissionsType.FunctionPermissions.prototype.clearCacheSelector=function(){return this.setCacheSelector(void 0)},n.PermissionsType.FunctionPermissions.prototype.hasCacheSelector=function(){return null!=i.Message.getField(this,3)},n.PermissionsType.FunctionPermissions.prototype.getAllFunctions=function(){return i.Message.getWrapperField(this,n.PermissionsType.All,4)},n.PermissionsType.FunctionPermissions.prototype.setAllFunctions=function(e){return i.Message.setOneofWrapperField(this,4,n.PermissionsType.FunctionPermissions.oneofGroups_[1],e)},n.PermissionsType.FunctionPermissions.prototype.clearAllFunctions=function(){return this.setAllFunctions(void 0)},n.PermissionsType.FunctionPermissions.prototype.hasAllFunctions=function(){return null!=i.Message.getField(this,4)},n.PermissionsType.FunctionPermissions.prototype.getFunctionSelector=function(){return i.Message.getWrapperField(this,n.PermissionsType.FunctionSelector,5)},n.PermissionsType.FunctionPermissions.prototype.setFunctionSelector=function(e){return i.Message.setOneofWrapperField(this,5,n.PermissionsType.FunctionPermissions.oneofGroups_[1],e)},n.PermissionsType.FunctionPermissions.prototype.clearFunctionSelector=function(){return this.setFunctionSelector(void 0)},n.PermissionsType.FunctionPermissions.prototype.hasFunctionSelector=function(){return null!=i.Message.getField(this,5)},n.PermissionsType.prototype.getCachePermissions=function(){return i.Message.getWrapperField(this,n.PermissionsType.CachePermissions,1)},n.PermissionsType.prototype.setCachePermissions=function(e){return i.Message.setOneofWrapperField(this,1,n.PermissionsType.oneofGroups_[0],e)},n.PermissionsType.prototype.clearCachePermissions=function(){return this.setCachePermissions(void 0)},n.PermissionsType.prototype.hasCachePermissions=function(){return null!=i.Message.getField(this,1)},n.PermissionsType.prototype.getTopicPermissions=function(){return i.Message.getWrapperField(this,n.PermissionsType.TopicPermissions,2)},n.PermissionsType.prototype.setTopicPermissions=function(e){return i.Message.setOneofWrapperField(this,2,n.PermissionsType.oneofGroups_[0],e)},n.PermissionsType.prototype.clearTopicPermissions=function(){return this.setTopicPermissions(void 0)},n.PermissionsType.prototype.hasTopicPermissions=function(){return null!=i.Message.getField(this,2)},n.PermissionsType.prototype.getFunctionPermissions=function(){return i.Message.getWrapperField(this,n.PermissionsType.FunctionPermissions,3)},n.PermissionsType.prototype.setFunctionPermissions=function(e){return i.Message.setOneofWrapperField(this,3,n.PermissionsType.oneofGroups_[0],e)},n.PermissionsType.prototype.clearFunctionPermissions=function(){return this.setFunctionPermissions(void 0)},n.PermissionsType.prototype.hasFunctionPermissions=function(){return null!=i.Message.getField(this,3)},n.CacheRole={CACHEPERMITNONE:0,CACHEREADWRITE:1,CACHEREADONLY:2,CACHEWRITEONLY:3},n.TopicRole={TOPICPERMITNONE:0,TOPICREADWRITE:1,TOPICREADONLY:2,TOPICWRITEONLY:3},n.FunctionRole={FUNCTIONPERMITNONE:0,FUNCTIONINVOKE:1},n.SuperUserPermissions={SUPERUSER:0},i.object.extend(t,n)},90662:(e,t,r)=>{"use strict";let i;function n(e){var t,r;let n=[],s=h(e,"stack"),o=String(e);if(s&&s.startsWith(o)&&(s=s.slice(o.length)),s&&s.split("\n").forEach(e
1=>{let t=function(e){let t=a.exec(e);if(!t)return;let r=t[2]&&0===t[2].indexOf("native"),i=t[2]&&0===t[2].indexOf("eval"),n=c.exec(t[2]);return i&&n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3]),{args:r?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:t[3]?+t[3]:void 0,url:r?void 0:t[2]}}(e)||function(e){let t=l.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:"?",line:t[2]?+t[2]:void 0,url:t[1]}}(e)||function(e){let t=u.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||"?",line:+t[3],url:t[2]}}(e)||function(e){let t=d.exec(e);if(!t)return;let r=t[3]&&t[3].indexOf(" > eval")>-1,i=p.exec(t[3]);return r&&i&&(t[3]=i[1],t[4]=i[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||"?",line:t[4]?+t[4]:void 0,url:t[3]}}(e);t&&(!t.func&&t.line&&(t.func="?"),n.push(t))}),n.length>0&&function(){if(void 0!==i)return i;class e extends Error{constructor(){super(),this.name="Error"}}let[t,r]=[e,Error].map(e=>new e);return i=m(Object.getPrototypeOf(t))&&r.stack!==t.stack}()&&e instanceof Error){let i=[],s=e;for(;(s=Object.getPrototypeOf(s))&&m(s);){let e=(null==(t=s.constructor)?void 0:t.name)||"?";i.push(e)}for(let e=i.length-1;e>=0&&(null==(r=n[0])?void 0:r.func)===i[e];e--)n.shift()}return{message:h(e,"message"),name:h(e,"name"),stack:n}}r.d(t,{T:()=>n,h:()=>g});let s="((?:file|https?|blob|chrome-extension|electron|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",o="(?::(\\d+))",a=RegExp(`^\\s*at (.*?) ?\\(${s}${o}?${o}?\\)?\\s*$`,"i"),c=RegExp(`\\((\\S*)${o}${o}\\)`),l=RegExp(`^\\s*at ?${s}${o}?${o}??\\s*$`,"i"),u=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,d=/^\s*(.*?)(?:\((.*?)\))?(?:(?:(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle|\[wasm code\])(?::(\d+))?(?::(\d+))?)|@)\s*$/i,p=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function h(e,t){if("object"!=typeof e||!e||!(t in e))return;let r=e[t];return"string"==typeof r?r:void 0}function g(e,t,r,i){var n;let s,o;if(void 0===t)return;let{name:a,message:c}=(n=e,"[object String]"===({}).toString.call(n)&&([,s,o]=f.exec(n)),{name:s,message:o});return{name:a,message:c,stack:[{url:t,column:i,line:r}]}}let f=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/;function m(e){return String(e.constructor).startsWith("class ")}},91243:()=>{},91313:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t._RankedElement=t._SortedSetElement=t._SigningKey=t._SortedSetGetScoreResponsePart=t._DictionaryGetResponsePart=t._DictionaryFieldValuePair=t._ECacheResult=void 0,(r=t._ECacheResult||(t._ECacheResult={}))[r.Invalid=0]="Invalid",r[r.Ok=1]="Ok",r[r.Hit=2]="Hit",r[r.Miss=3]="Miss";class i{constructor({field:e,value:t}){this.field=e,this.value=t}}t._DictionaryFieldValuePair=i;class n{constructor(e,t){this.result=e,this.cacheBody=t}}t._DictionaryGetResponsePart=n;class s{constructor(e,t){this.result=e,this.score=t}}t._SortedSetGetScoreResponsePart=s;class o{constructor(e,t){this.key=null!=e?e:"",this.expiresAt=null!=t?t:0}}t._SigningKey=o;class a{constructor(e,t){this.value=e,this.score=t}}t._SortedSetElement=a;class c{constructor(e,t,r){this.id=e,this.score=t,this.rank=r}}t._RankedElement=c},91519:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TopicHeartbeat=void 0;class r{toString(){return`${this.constructor.name}`}}t.TopicHeartbeat=r},91612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractAuthClient=void 0;class r{constructor(e){this.authClient=e.createAuthClient()}async generateApiKey(e,t){return await this.authClient.generateApiKey(e,t)}async generateAuthToken(e,t){return await this.generateApiKey(e,t)}async refreshApiKey(e){return await this.authClient.refreshApiKey(e)}async refreshAuthToken(e){return await this.refreshApiKey(e)}async generateDisposableToken(e,t,r){return await this.authClient.generateDisposableToken(e,t,r)}}t.AbstractAuthClient=r},92344:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.NotStored=t.Stored=void 0;let i=r(17214),n=r(94452),s=new TextDecoder;class o extends i.ResponseBase{constructor(e){super(),this.type=n.CacheSetWithHashResponse.Stored,this._hash=e}hashString(){return s.decode(this._hash)}hashUint8Array(){return this._hash}}t.Stored=o;class a extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetWithHashResponse.NotStored}}t.NotStored=a;class c extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSetWithHashResponse.Error}}t.Error=c},93765:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},93977:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var i=r(26914);let n=(0,r(19914).A)(function(e,t,r){(0,i.A)(e,t,r)})},93992:e=>{"use strict";e.exports=JSON.parse('{"name":"@gomomento/sdk-web","version":"1.117.3","description":"Client SDK for Momento services","main":"dist/src/index.js","files":["dist/src","dist/package.json"],"types":"dist/src/index.d.ts","repository":{"type":"git","url":"https://github.com/momentohq/client-sdk-javascript"},"scripts":{"prebuild":"eslint . --ext .ts","test":"jest --testPathIgnorePatterns=\\"auth-client\\\\.test\\\\.ts|http-apis\\\\.test\\\\.ts\\" --maxWorkers 1","unit-test":"jest unit","integration-test-auth":"jest --env=jsdom auth/ --maxWorkers 1 -- useConsistentReads","integration-test-http":"jest --env=jsdom http/ --maxWorkers 1 -- useConsistentReads","integration-test-cache":"jest --env=jsdom cache/ --maxWorkers 1 -- useConsistentReads","integration-test-control-cache-topics":"npm run integration-test-cache && npm run integration-test-topics","integration-test-leaderboard":"jest --env=jsdom leaderboard/ --maxWorkers 1 -- useConsistentReads","integration-test-topics":"jest --env=jsdom topics/ --maxWorkers 1 -- useConsistentReads","integration-test-jsdom":"jest integration --env=jsdom --testMatch \\"**/dictionary.test.ts|**/ping.test.ts|*/topic-client.test.ts|leaderboard.test.ts\\" --maxWorkers 1","integration-test-jsdom-consistent-reads":"jest integration --env=jsdom --testMatch \\"**/dictionary.test.ts|**/ping.test.ts|*/topic-client.test.ts|leaderboard.test.ts\\" --maxWorkers 1 -- useConsistentReads","integration-test-happy-dom":"jest integration --env=./test/integration/CustomHappyDomEnv.js --testPathIgnorePatterns \\"dictionary.test.ts|ping.test.ts|topic-client.test.ts|auth-client.test.ts|leaderboard.test.ts\\" --maxWorkers 1","integration-test-happy-dom-consistent-reads":"jest integration --env=./test/integration/CustomHappyDomEnv.js --testPathIgnorePatterns \\"dictionary.test.ts|ping.test.ts|topic-client.test.ts|auth-client.test.ts|leaderboard.test.ts\\" --maxWorkers 1 -- useConsistentReads","integration-test":"npm run integration-test-happy-dom && npm run integration-test-jsdom","integration-test-consistent-reads":"npm run integration-test-happy-dom-consistent-reads && npm run integration-test-jsdom-consistent-reads","build-deps":"cd ../core && npm run build && cd - && cd ../common-integration-tests && npm run build && cd -","build-and-run-tests":"npm run build-deps && jest --testPathIgnorePatterns=\\"auth-client\\\\.test\\\\.ts|http-apis\\\\.test\\\\.ts\\" --maxWorkers 1","lint":"eslint . --ext .ts","format":"eslint . --ext .ts --fix","watch":"tsc -w","build":"cd ../core && npm run build && cd - && rm -rf dist && tsc"},"author":"","license":"Apache-2.0","devDependencies":{"@gomomento/common-integration-tests":"file:../common-integration-tests/gomomento-common-integration-tests-1.117.3.tgz","@happy-dom/jest-environment":"16.8.1","@types/jest":"27.5.2","@types/node":"16.18.97","@types/ua-parser-js":"0.7.39","@types/uuid":"9.0.7","@typescript-eslint/eslint-plugin":"5.62.0","@typescript-eslint/parser":"5.62.0","eslint":"7.32.0","eslint-config-prettier":"8.10.0","eslint-plugin-import":"2.29.0","eslint-plugin-node":"11.1.0","eslint-plugin-prettier":"4.2.1","jest":"29.7.0","jest-environment-jsdom":"29.7.0","jest-extended":"4.0.2","jest-spec-reporter":"1.0.19","prettier":"2.8.8","ts-jest":"29.1.1","ts-node":"10.9.1","typescript":"4.9.5","uuid":"9.0.1","xhr2":"0.2.1"}
1,"dependencies":{"@gomomento/generated-types-webtext":"0.126.0","@gomomento/sdk-core":"1.117.3","@types/google-protobuf":"3.15.6","google-protobuf":"3.21.2","grpc-web":"1.4.2","jwt-decode":"3.1.2","ua-parser-js":"1.0.41"},"engines":{"node":">= 16"}}')},94452:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(r(15346),t),n(r(58989),t),n(r(30467),t),n(r(46704),t),n(r(40386),t),n(r(65898),t)},94874:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(e){super(),this.type=n.PutWebhookResponse.Success,this._secretString=e}secretString(){return this._secretString}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.PutWebhookResponse.Error}}t.Error=o},95505:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(e){super(),this.type=n.LeaderboardLengthResponse.Success,this._length=e}length(){return this._length}toString(){return`${super.toString()}: length ${this._length}`}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.LeaderboardLengthResponse.Error}}t.Error=o},95519:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.NotStored=t.Stored=void 0;let i=r(17214),n=r(94452);class s extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetIfEqualResponse.Stored}}t.Stored=s;class o extends i.ResponseBase{constructor(){super(...arguments),this.type=n.CacheSetIfEqualResponse.NotStored}}t.NotStored=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheSetIfEqualResponse.Error}}t.Error=a},95787:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a,m:()=>o});var i=r(14279),n=r(36266),s=r(14534);function o(e){let t={version:"6.25.0",onReady(e){e()},...e};return Object.defineProperty(t,"_setDebug",{get:()=>n.pM,enumerable:!1}),t}function a(e,t,r){let n=e[t];n&&!n.q&&n.version&&s.Vy.warn("SDK is loaded more than once. This is unsupported and might have unexpected behavior."),e[t]=r,n&&n.q&&n.q.forEach(e=>(0,i.y)(e,"onReady callback threw an error:")())}},96101:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={ESCAPE_REGEX:function(){return s},htmlEscapeAttributeString:function(){return l},htmlEscapeJsonString:function(){return c}};for(var i in r)Object.defineProperty(t,i,{enumerable:!0,get:r[i]});let n={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},s=/[&><\u2028\u2029]/g,o={"&":"&",'"':""","'":"'","<":"<",">":">"},a=/[&"'<>]/g;function c(e){return e.replace(s,e=>n[e])}function l(e){return e.replace(a,e=>o[e])}},96241:(e,t,r)=>{"use strict";r.d(t,{AK:()=>R,sA:()=>b});var i=r(36266),n=r(565),s=r(60403),o=r(27621),a=r(97033),c=r(38020),l=r(62710),u=r(74691);let d=80*o._m,p=20*o.iH,h=c.iW,g=c.OY;function f(e,t,r,i,n,s){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?m(e,t,r,s,{onSuccess:()=>y(0,t,r,i,n,s),onFailure:()=>{t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e}),function e(t,r,i,n,s){2===t.transportStatus&&(0,a.wg)(()=>{m(t.queuedPayloads.first(),t,r,s,{onSuccess:()=>{t.queuedPayloads.dequeue(),t.currentBackoffTime=g,y(1,t,r,i,n,s)},onFailure:()=>{t.currentBackoffTime=Math.min(h,2*t.currentBackoffTime),e(t,r,i,n,s)}})},t.currentBackoffTime)}(t,r,i,n,s)}}):t.queuedPayloads.enqueue(e)||s.notify({type:"queue-full",bandwidth:t.bandwidthMonitor.stats(),payload:e})}function m(e,t,r,i,{onSuccess:n,onFailure:s}){t.bandwidthMonitor.add(e),r(e,r=>{var o;t.bandwidthMonitor.remove(e),"opaque"!==(o=r).type&&(0===o.status&&!navigator.onLine||408===o.status||429===o.status||(0,l.G)(o.status))?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:r.status},i.notify({type:"failure",bandwidth:t.bandwidthMonitor.stats(),payload:e}),s()):(t.transportStatus=0,i.notify({type:"success",bandwidth:t.bandwidthMonitor.stats(),payload:e}),n())})}function y(e,t,r,i,n,s){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(n({message:`Reached max ${i} events size queued for upload: ${p/o.iH}MiB`,source:u.g.AGENT,startClocks:(0,c.M8)()}),t.queueFullReported=!0);let a=t.queuedPayloads;for(t.queuedPayloads=_();a.size()>0;)f(a.dequeue(),t,r,i,n,s)}function _(){let e=[];return{bytesCount:0,enqueue(t){return!this.isFull()&&(e.push(t),this.bytesCount+=t.bytesCount,!0)},first:()=>e[0],dequeue(){let t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:()=>e.length,isFull(){return this.bytesCount>=p}}}let R=16*o._m;function b(e,t,r=R){let o=new s.cP,a={transportStatus:0,currentBackoffTime:g,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=d&&this.ongoingRequestCount<32},add(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount},stats(){return{ongoingByteCount:this.ongoingByteCount,ongoingRequestCount:this.ongoingRequestCount}}},queuedPayloads:_(),queueFullReported:!1};return{observable:o,send:s=>{for(let c of e)f(s,a,(e,t)=>{(0,n.sr)(n.R9.AVOID_FETCH_KEEPALIVE)?v(c,e,t):function(e,t,r,n){(function(){try{return window.Request&&"keepalive"in new Request
1("http://a")}catch(e){return!1}})()&&r.bytesCount<t?fetch(e.build("fetch-keepalive",r),{method:"POST",body:r.data,keepalive:!0,mode:"cors"}).then((0,i.dm)(e=>null==n?void 0:n({status:e.status,type:e.type}))).catch((0,i.dm)(()=>v(e,r,n))):v(e,r,n)}(c,r,e,t)},c.trackType,t,o)},sendOnExit:t=>{for(let n of e)!function(e,t,r){if(navigator.sendBeacon&&r.bytesCount<t)try{let t=e.build("beacon",r);if(navigator.sendBeacon(t,r.data))return}catch(e){var n;n=e,S||(S=!0,(0,i.Dx)(n))}v(e,r)}(n,r,t)}}}let S=!1;function v(e,t,r){fetch(e.build("fetch",t),{method:"POST",body:t.data,mode:"cors"}).then((0,i.dm)(e=>null==r?void 0:r({status:e.status,type:e.type}))).catch((0,i.dm)(()=>null==r?void 0:r({status:0})))}},96691:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452),s=r(52725);class o extends i.BaseResponseSuccess{get authToken(){return this.apiKey}constructor(e,t,r,i){super(),this.type=n.GenerateApiKeyResponse.Success,this.apiKey=(0,s.encodeToBase64)(JSON.stringify({endpoint:r,api_key:e})),this.refreshToken=t,this.endpoint=r,this.expiresAt=i}}t.Success=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.GenerateApiKeyResponse.Error}}t.Error=a},96725:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452),s=r(52725);class o extends i.BaseResponseSuccess{get authToken(){return this.apiKey}
1constructor(e,t,r,i){super(),this.type=n.RefreshApiKeyResponse.Success,this.apiKey=(0,s.encodeToBase64)(JSON.stringify({endpoint:r,api_key:e})),this.refreshToken=t,this.endpoint=r,this.expiresAt=i}}t.Success=o;class a extends i.BaseResponseError{constructor(e){super(e),this.type=n.RefreshApiKeyResponse.Error}}t.Error=a},96802:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__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)&&i(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ScsClient=void 0;let o=s(r(43092)),a=s(r(1543));class c{constructor(e,t,r){this.methodDescriptorGet=new o.MethodDescriptor("/cache_client.Scs/Get",o.MethodType.UNARY,a._GetRequest,a._GetResponse,e=>e.serializeBinary(),a._GetResponse.deserializeBinary),this.methodDescriptorGetWithHash=new o.MethodDescriptor("/cache_client.Scs/GetWithHash",o.MethodType.UNARY,a._GetWithHashRequest,a._GetWithHashResponse,e=>e.serializeBinary(),a._GetWithHashResponse.deserializeBinary),this.methodDescriptorGetBatch=new o.MethodDescriptor("/cache_client.Scs/GetBatch",o.MethodType.SERVER_STREAMING,a._GetBatchRequest,a._GetResponse,e=>e.serializeBinary(),a._GetResponse.deserializeBinary),this.methodDescriptorSet=new o.MethodDescriptor("/cache_client.Scs/Set",o.MethodType.UNARY,a._SetRequest,a._SetResponse,e=>e.serializeBinary(),a._SetResponse.deserializeBinary),this.methodDescriptorSetBatch=new o.MethodDescriptor("/cache_client.Scs/SetBatch",o.MethodType.SERVER_STREAMING,a._SetBatchRequest,a._SetResponse,e=>e.serializeBinary(),a._SetResponse.deserializeBinary),this.methodDescriptorSetIf=new o.MethodDescriptor("/cache_client.Scs/SetIf",o.MethodType.UNARY,a._SetIfRequest,a._SetIfResponse,e=>e.serializeBinary(),a._SetIfResponse.deserializeBinary),this.methodDescriptorSetIfHash=new o.MethodDescriptor("/cache_client.Scs/SetIfHash",o.MethodType.UNARY,a._SetIfHashRequest,a._SetIfHashResponse,e=>e.serializeBinary(),a._SetIfHashResponse.deserializeBinary),this.methodDescriptorSetIfNotExists=new o.MethodDescriptor("/cache_client.Scs/SetIfNotExists",o.MethodType.UNARY,a._SetIfNotExistsRequest,a._SetIfNotExistsResponse,e=>e.serializeBinary(),a._SetIfNotExistsResponse.deserializeBinary),this.methodDescriptorDelete=new o.MethodDescriptor("/cache_client.Scs/Delete",o.MethodType.UNARY,a._DeleteRequest,a._DeleteResponse,e=>e.serializeBinary(),a._DeleteResponse.deserializeBinary),this.methodDescriptorKeysExist=new o.MethodDescriptor("/cache_client.Scs/KeysExist",o.MethodType.UNARY,a._KeysExistRequest,a._KeysExistResponse,e=>e.serializeBinary(),a._KeysExistResponse.deserializeBinary),this.methodDescriptorIncrement=new o.MethodDescriptor("/cache_client.Scs/Increment",o.MethodType.UNARY,a._IncrementRequest,a._IncrementResponse,e=>e.serializeBinary(),a._IncrementResponse.deserializeBinary),this.methodDescriptorUpdateTtl=new o.MethodDescriptor("/cache_client.Scs/UpdateTtl",o.MethodType.UNARY,a._UpdateTtlRequest,a._UpdateTtlResponse,e=>e.serializeBinary(),a._UpdateTtlResponse.deserializeBinary),this.methodDescriptorItemGetTtl=new o.MethodDescriptor("/cache_client.Scs/ItemGetTtl",o.MethodType.UNARY,a._ItemGetTtlRequest,a._ItemGetTtlResponse,e=>e.serializeBinary(),a._ItemGetTtlResponse.deserializeBinary),this.methodDescriptorItemGetType=new o.MethodDescriptor("/cache_client.Scs/ItemGetType",o.MethodType.UNARY,a._ItemGetTypeRequest,a._ItemGetTypeResponse,e=>e.serializeBinary(),a._ItemGetTypeResponse.deserializeBinary),this.methodDescriptorDictionaryGet=new o.MethodDescriptor("/cache_client.Scs/DictionaryGet",o.MethodType.UNARY,a._DictionaryGetRequest,a._DictionaryGetResponse,e=>e.serializeBinary(),a._DictionaryGetResponse.deserializeBinary),this.methodDescriptorDictionaryFetch=new o.MethodDescriptor("/cache_client.Scs/DictionaryFetch",o.MethodType.UNARY,a._DictionaryFetchRequest,a._DictionaryFetchResponse,e=>e.serializeBinary(),a._DictionaryFetchResponse.deserializeBinary),this.methodDescriptorDictionarySet=new o.MethodDescriptor("/cache_client.Scs/DictionarySet",o.MethodType.UNARY,a._DictionarySetRequest,a._DictionarySetResponse,e=>e.serializeBinary(),a._DictionarySetResponse.deserializeBinary),this.methodDescriptorDictionaryIncrement=new o.MethodDescriptor("/cache_client.Scs/DictionaryIncrement",o.MethodType.UNARY,a._DictionaryIncrementRequest,a._DictionaryIncrementResponse,e=>e.serializeBinary(),a._DictionaryIncrementResponse.deserializeBinary),this.methodDescriptorDictionaryDelete=new o.MethodDescriptor("/cache_client.Scs/DictionaryDelete",o.MethodType.UNARY,a._DictionaryDeleteRequest,a._DictionaryDeleteResponse,e=>e.serializeBinary(),a._DictionaryDeleteResponse.deserializeBinary),this.methodDescriptorDictionaryLength=new o.MethodDescriptor("/cache_client.Scs/DictionaryLength",o.MethodType.UNARY,a._DictionaryLengthRequest,a._DictionaryLengthResponse,e=>e.serializeBinary(),a._DictionaryLengthResponse.deserializeBinary),this.methodDescriptorSetFetch=new o.MethodDescriptor("/cache_client.Scs/SetFetch",o.MethodType.UNARY,a._SetFetchRequest,a._SetFetchResponse,e=>e.serializeBinary(),a._SetFetchResponse.deserializeBinary),this.methodDescriptorSetSample=ne
1w o.MethodDescriptor("/cache_client.Scs/SetSample",o.MethodType.UNARY,a._SetSampleRequest,a._SetSampleResponse,e=>e.serializeBinary(),a._SetSampleResponse.deserializeBinary),this.methodDescriptorSetUnion=new o.MethodDescriptor("/cache_client.Scs/SetUnion",o.MethodType.UNARY,a._SetUnionRequest,a._SetUnionResponse,e=>e.serializeBinary(),a._SetUnionResponse.deserializeBinary),this.methodDescriptorSetDifference=new o.MethodDescriptor("/cache_client.Scs/SetDifference",o.MethodType.UNARY,a._SetDifferenceRequest,a._SetDifferenceResponse,e=>e.serializeBinary(),a._SetDifferenceResponse.deserializeBinary),this.methodDescriptorSetContains=new o.MethodDescriptor("/cache_client.Scs/SetContains",o.MethodType.UNARY,a._SetContainsRequest,a._SetContainsResponse,e=>e.serializeBinary(),a._SetContainsResponse.deserializeBinary),this.methodDescriptorSetLength=new o.MethodDescriptor("/cache_client.Scs/SetLength",o.MethodType.UNARY,a._SetLengthRequest,a._SetLengthResponse,e=>e.serializeBinary(),a._SetLengthResponse.deserializeBinary),this.methodDescriptorSetPop=new o.MethodDescriptor("/cache_client.Scs/SetPop",o.MethodType.UNARY,a._SetPopRequest,a._SetPopResponse,e=>e.serializeBinary(),a._SetPopResponse.deserializeBinary),this.methodDescriptorListPushFront=new o.MethodDescriptor("/cache_client.Scs/ListPushFront",o.MethodType.UNARY,a._ListPushFrontRequest,a._ListPushFrontResponse,e=>e.serializeBinary(),a._ListPushFrontResponse.deserializeBinary),this.methodDescriptorListPushBack=new o.MethodDescriptor("/cache_client.Scs/ListPushBack",o.MethodType.UNARY,a._ListPushBackRequest,a._ListPushBackResponse,e=>e.serializeBinary(),a._ListPushBackResponse.deserializeBinary),this.methodDescriptorListPopFront=new o.MethodDescriptor("/cache_client.Scs/ListPopFront",o.MethodType.UNARY,a._ListPopFrontRequest,a._ListPopFrontResponse,e=>e.serializeBinary(),a._ListPopFrontResponse.deserializeBinary),this.methodDescriptorListPopBack=new o.MethodDescriptor("/cache_client.Scs/ListPopBack",o.MethodType.UNARY,a._ListPopBackRequest,a._ListPopBackResponse,e=>e.serializeBinary(),a._ListPopBackResponse.deserializeBinary),this.methodDescriptorListErase=new o.MethodDescriptor("/cache_client.Scs/ListErase",o.MethodType.UNARY,a._ListEraseRequest,a._ListEraseResponse,e=>e.serializeBinary(),a._ListEraseResponse.deserializeBinary),this.methodDescriptorListRemove=new o.MethodDescriptor("/cache_client.Scs/ListRemove",o.MethodType.UNARY,a._ListRemoveRequest,a._ListRemoveResponse,e=>e.serializeBinary(),a._ListRemoveResponse.deserializeBinary),this.methodDescriptorListFetch=new o.MethodDescriptor("/cache_client.Scs/ListFetch",o.MethodType.UNARY,a._ListFetchRequest,a._ListFetchResponse,e=>e.serializeBinary(),a._ListFetchResponse.deserializeBinary),this.methodDescriptorListLength=new o.MethodDescriptor("/cache_client.Scs/ListLength",o.MethodType.UNARY,a._ListLengthRequest,a._ListLengthResponse,e=>e.serializeBinary(),a._ListLengthResponse.deserializeBinary),this.methodDescriptorListConcatenateFront=new o.MethodDescriptor("/cache_client.Scs/ListConcatenateFront",o.MethodType.UNARY,a._ListConcatenateFrontRequest,a._ListConcatenateFrontResponse,e=>e.serializeBinary(),a._ListConcatenateFrontResponse.deserializeBinary),this.methodDescriptorListConcatenateBack=new o.MethodDescriptor("/cache_client.Scs/ListConcatenateBack",o.MethodType.UNARY,a._ListConcatenateBackRequest,a._ListConcatenateBackResponse,e=>e.serializeBinary(),a._ListConcatenateBackResponse.deserializeBinary),this.methodDescriptorListRetain=new o.MethodDescriptor("/cache_client.Scs/ListRetain",o.MethodType.UNARY,a._ListRetainRequest,a._ListRetainResponse,e=>e.serializeBinary(),a._ListRetainResponse.deserializeBinary),this.methodDescriptorSortedSetPut=new o.MethodDescriptor("/cache_client.Scs/SortedSetPut",o.MethodType.UNARY,a._SortedSetPutRequest,a._SortedSetPutResponse,e=>e.serializeBinary(),a._SortedSetPutResponse.deserializeBinary),this.methodDescriptorSortedSetFetch=new o.MethodDescriptor("/cache_client.Scs/SortedSetFetch",o.MethodType.UNARY,a._SortedSetFetchRequest,a._SortedSetFetchResponse,e=>e.serializeBinary(),a._SortedSetFetchResponse.deserializeBinary),this.methodDescriptorSortedSetGetScore=new o.MethodDescriptor("/cache_client.Scs/SortedSetGetScore",o.MethodType.UNARY,a._SortedSetGetScoreRequest,a._SortedSetGetScoreResponse,e=>e.serializeBinary(),a._SortedSetGetScoreResponse.deserializeBinary),this.methodDescriptorSortedSetRemove=new o.MethodDescriptor("/cache_client.Scs/SortedSetRemove",o.MethodType.UNARY,a._SortedSetRemoveRequest,a._SortedSetRemoveResponse,e=>e.serializeBinary(),a._SortedSetRemoveResponse.deserializeBinary),this.methodDescriptorSortedSetIncrement=new o.MethodDescriptor("/cache_client.Scs/SortedSetIncrement",o.MethodType.UNARY,a._SortedSetIncrementRequest,a._SortedSetIncrementResponse,e=>e.serializeBinary(),a._SortedSetIncrementResponse.deserializeBinary),this.methodDescriptorSortedSetGetRank=new o.MethodDescriptor("/cache_client.Scs/SortedSetGetRank",o.MethodType.UNARY,a._SortedSetGetRankRequest,a._SortedSetGetRankResponse,e=>e.serializeBinary(),a._SortedSetGetRankResponse.deserializeBinary),this.methodDescriptorSortedSetLength=new o.MethodDescriptor("/cache_client.Scs/SortedSetLength",o.MethodType.UNARY,a._SortedSetLengthRequest,a._SortedSetLengthResponse,e=>e.serializeBinary(),a._SortedSetLengthResponse.deserializeBinary),this.methodDescriptorSortedSetLengthByScore=new o.MethodDescriptor("/cache_client.Scs/SortedSetLengthByScore",o.MethodType.UNARY,a._SortedSetLengthByScoreRequest,a._SortedSetLengthByScoreResponse,e=>e.serializeBinary(),a._SortedSetLengthByScoreResponse.deserializeBinary),this.methodDescriptorSortedSetUnionStore=new o.MethodDescriptor("/cache_client.Scs/SortedSetUnionStore",o.MethodType.UNARY,a._SortedSetUnionStoreRequest,a._SortedSetUnionStoreResponse,e=>e.serializeBinary(),a._SortedSetUnionStoreResponse.deserializeBinary),r||(r={}),t||(t={}),r.format="text",this.client_=new o.GrpcWebClientBase(r),this.hostname_=e,this.credentials_=t,this.options_=r}get(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/Get",e,t||{},this.methodDescriptorGet,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/Get",e,t||{},this.methodDescriptorGet)}getWithHash(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/GetWithHash",e,t||{},this.methodDescriptorGetWithHash,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/GetWithHash",e,t||{},this.methodDescriptorGetWithHash)}getBatch(e,t){return this.client_.serverStreaming(this.hostname_+"/cache_client.Scs/GetBatch",e,t||{},this.methodDescriptorGetBatch)}set(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/Set",e,t||{},this.methodDescriptorSet,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/Set",e,t||{},this.methodDescriptorSet)}setBatch(e,t){return this.client_.serverStreaming(this.hostname_+"/cache_client.Scs/SetBatch",e,t||{},this.methodDescriptorSetBatch)}setIf(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetIf",e,t||{},this.methodDescriptorSetIf,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetIf",e,t||{},this.methodDescriptorSetIf)}setIfHash(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetIfHash",e,t||{},this.methodDescriptorSetIfHash,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetIfHash",e,t||{},this.methodDescriptorSetIfHash)}setIfNotExists(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetIfNotExists",e,t||{},this.methodDescriptorSetIfNotExists,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetIfNotExists",e,t||{},this.methodDescriptorSetIfNotExists)}delete(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/Delete",e,t||{},this.methodDescriptorDelete,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/Delete",e,t||{},this.methodDescriptorDelete)}keysExist(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/KeysExist",e,t||{},this.methodDescriptorKeysExist,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/KeysExist",e,t||{},this.methodDescriptorKeysExist)}increment(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/Increment",e,t||{},this.methodDescriptorIncrement,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/Increment",e,t||{},this.methodDescriptorIncrement)}updateTtl(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/UpdateTtl",e,t||{},this.methodDescriptorUpdateTtl,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/UpdateTtl",e,t||{},this.methodDescriptorUpdateTtl)}itemGetTtl(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ItemGetTtl",e,t||{},this.methodDescriptorItemGetTtl,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ItemGetTtl",e,t||{},this.methodDescriptorItemGetTtl)}itemGetType(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ItemGetType",e,t||{},this.methodDescriptorItemGetType,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ItemGetType",e,t||{},this.methodDescriptorItemGetType)}dictionaryGet(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/DictionaryGet",e,t||{},this.methodDescriptorDictionaryGet,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/DictionaryGet",e,t||{},this.methodDescriptorDictionaryGet)}dictionaryFetch(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/DictionaryFetch",e,t||{},this.methodDescriptorDictionaryFetch,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/DictionaryFetch",e,t||{},this.methodDescriptorDictionaryFetch)}dictionarySet(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/DictionarySet",e,t||{},this.methodDescriptorDictionarySet,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/DictionarySet",e,t||{},this.methodDescriptorDictionarySet)}dictionaryIncrement(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/DictionaryIncrement",e,t||{},this.methodDescriptorDictionaryIncrement,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/DictionaryIncrement",e,t||{},this.methodDescriptorDictionaryIncrement)}dictionaryDelete(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/DictionaryDelete",e,t||{},this.methodDescriptorDictionaryDelete,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/DictionaryDelete",e,t||{},this.methodDescriptorDictionaryDelete)}dictionaryLength(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/DictionaryLength",e,t||{},this.methodDescriptorDictionaryLength,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/DictionaryLength",e,t||{},this.methodDescriptorDictionaryLength)}setFetch(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetFetch",e,t||{},this.methodDescriptorSetFetch,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetFetch",e,t||{},this.methodDescriptorSetFetch)}setSample(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetSample",e,t||{},this.methodDescriptorSetSample,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetSample",e,t||{},this.methodDescriptorSetSample)}setUnion(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetUnion",e,t||{},this.methodDescriptorSetUnion,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetUnion",e,t||{},this.methodDescriptorSetUnion)}setDifference(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetDifference",e,t||{},this.methodDescriptorSetDifference,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetDifference",e,t||{},this.methodDescriptorSetDifference)}setContains(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetContains",e,t||{},this.methodDescriptorSetContains,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetContains",e,t||{},this.methodDescriptorSetContains)}setLength(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetLength",e,t||{},this.methodDescriptorSetLength,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetLength",e,t||{},this.methodDescriptorSetLength)}setPop(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SetPop",e,t||{},this.methodDescriptorSetPop,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SetPop",e,t||{},this.methodDescriptorSetPop)}listPushFront(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListPushFront",e,t||{},this.methodDescriptorListPushFront,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListPushFront",e,t||{},this.methodDescriptorListPushFront)}listPushBack(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListPushBack",e,t||{},this.methodDescriptorListPushBack,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListPushBack",e,t||{},this.methodDescriptorListPushBack)}listPopFront(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListPopFront",e,t||{},this.methodDescriptorListPopFront,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListPopFront",e,t||{},this.methodDescriptorListPopFront)}listPopBack(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListPopBack",e,t||{},this.methodDescriptorListPopBack,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListPopBack",e,t||{},this.methodDescriptorListPopBack)}listErase(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListErase",e,t||{},this.methodDescriptorListErase,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListErase",e,t||{},this.methodDescriptorListErase)}listRemove(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListRemove",e,t||{},this.methodDescriptorListRemove,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListRemove",e,t||{},this.methodDescriptorListRemove)}listFetch(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListFetch",e,t||{},this.methodDescriptorListFetch,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListFetch",e,t||{},this.methodDescriptorListFetch)}listLength(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListLength",e,t||{},this.methodDescriptorListLength,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListLength",e,t||{},this.methodDescriptorListLength)}listConcatenateFront(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListConcatenateFront",e,t||{},this.methodDescriptorListConcatenateFront,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListConcatenateFront",e,t||{},this.methodDescriptorListConcatenateFront)}listConcatenateBack(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListConcatenateBack",e,t||{},this.methodDescriptorListConcatenateBack,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListConcatenateBack",e,t||{},this.methodDescriptorListConcatenateBack)}listRetain(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/ListRetain",e,t||{},this.methodDescriptorListRetain,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/ListRetain",e,t||{},this.methodDescriptorListRetain)}sortedSetPut(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SortedSetPut",e,t||{},this.methodDescriptorSortedSetPut,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SortedSetPut",e,t||{},this.methodDescriptorSortedSetPut)}sortedSetFetch(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SortedSetFetch",e,t||{},this.methodDescriptorSortedSetFetch,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SortedSetFetch",e,t||{},this.methodDescriptorSortedSetFetch)}sortedSetGetScore(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SortedSetGetScore",e,t||{},this.methodDescriptorSortedSetGetScore,r):this.client_.unaryCall(this.hostname_+"/
1cache_client.Scs/SortedSetGetScore",e,t||{},this.methodDescriptorSortedSetGetScore)}sortedSetRemove(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SortedSetRemove",e,t||{},this.methodDescriptorSortedSetRemove,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SortedSetRemove",e,t||{},this.methodDescriptorSortedSetRemove)}sortedSetIncrement(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SortedSetIncrement",e,t||{},this.methodDescriptorSortedSetIncrement,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SortedSetIncrement",e,t||{},this.methodDescriptorSortedSetIncrement)}sortedSetGetRank(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SortedSetGetRank",e,t||{},this.methodDescriptorSortedSetGetRank,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SortedSetGetRank",e,t||{},this.methodDescriptorSortedSetGetRank)}sortedSetLength(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SortedSetLength",e,t||{},this.methodDescriptorSortedSetLength,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SortedSetLength",e,t||{},this.methodDescriptorSortedSetLength)}sortedSetLengthByScore(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SortedSetLengthByScore",e,t||{},this.methodDescriptorSortedSetLengthByScore,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SortedSetLengthByScore",e,t||{},this.methodDescriptorSortedSetLengthByScore)}sortedSetUnionStore(e,t,r){return void 0!==r?this.client_.rpcCall(this.hostname_+"/cache_client.Scs/SortedSetUnionStore",e,t||{},this.methodDescriptorSortedSetUnionStore,r):this.client_.unaryCall(this.hostname_+"/cache_client.Scs/SortedSetUnionStore",e,t||{},this.methodDescriptorSortedSetUnionStore)}}t.ScsClient=c},97033:(e,t,r)=>{"use strict";r.d(t,{DJ:()=>a,vG:()=>l,wg:()=>o,yb:()=>c});var i=r(33095),n=r(36266),s=r(53476);function o(e,t){return(0,i.W)((0,s.VZ)(),"setTimeout")((0,n.dm)(e),t)}function a(e){(0,i.W)((0,s.VZ)(),"clearTimeout")(e)}function c(e,t){return(0,i.W)((0,s.VZ)(),"setInterval")((0,n.dm)(e),t)}function l(e){(0,i.W)((0,s.VZ)(),"clearInterval")(e)}},97547:()=>{},97596:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},97754:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MiddlewareRequest=t.MiddlewareMessage=t.MiddlewareStatus=t.MiddlewareMetadata=void 0;class r{constructor(e){this._grpcMetadata=e}toJsonString(){return JSON.stringify(this._grpcMetadata)}}t.MiddlewareMetadata=r;class i{constructor(e){this._grpcStatus=e}code(){return this._grpcStatus.code}}t.MiddlewareStatus=i;class n{constructor(e){this._grpcMessage=e}responseType(){return this._grpcMessage.constructor.name}messageLength(){return null!==this._grpcMessage&&void 0!==this._grpcMessage?this._grpcMessage.serializeBinary().length:0}}t.MiddlewareMessage=n;class s{constructor(e){this._grpcRequest=e}getMetadata(){return this._grpcRequest.getMetadata()}getRequestType(){return this._grpcRequest.constructor.name}getBodySize(){return this._grpcRequest.getRequestMessage().serializeBinary().length}}t.MiddlewareRequest=s},98099:(e,t,r)=>{"use strict";r.d(t,{q:()=>a});var i=r(37112),n=r(43971),s=r(63189),o=r(99177),a=class extends o.Q{constructor(e={}){super(),this.config=e,this.#l=new Set,this.#u=new Map,this.#d=0}#l;#u;#d;build(e,t,r){let i=new n.s({client:e,mutationCache:this,mutationId:++this.#d,options:e.defaultMutationOptions(t),state:r});return this.add(i),i}add(e){this.#l.add(e);let t=c(e);if("string"==typeof t){let r=this.#u.get(t);r?r.push(e):this.#u.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#l.delete(e)){let t=c(e);if("string"==typeof t){let r=this.#u.get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#u.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=c(e);if("string"!=typeof t)return!0;{let r=this.#u.get(t),i=r?.find(e=>"pending"===e.state.status);return!i||i===e}}runNext(e){let t=c(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#u.get(t)?.find(t=>
1t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){i.jG.batch(()=>{this.#l.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#l.clear(),this.#u.clear()})}getAll(){return Array.from(this.#l)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,s.nJ)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,s.nJ)(e,t))}notify(e){i.jG.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return i.jG.batch(()=>Promise.all(e.map(e=>e.continue().catch(s.lQ))))}};function c(e){return e.options.scope?.id}},99247:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MomentoCache=void 0;class r{constructor(e,t){this.cacheClient=e,this.cacheName=t}get(e){return this.cacheClient.get(this.cacheName,e)}getWithHash(e){return this.cacheClient.getWithHash(this.cacheName,e)}set(e,t,r){return this.cacheClient.set(this.cacheName,e,t,r)}setWithHash(e,t,r){return this.cacheClient.setWithHash(this.cacheName,e,t,r)}delete(e){return this.cacheClient.delete(this.cacheName,e)}increment(e,t,r){return this.cacheClient.increment(this.cacheName,e,t,r)}setIfNotExists(e,t,r){return this.cacheClient.setIfNotExists(this.cacheName,e,t,r)}setIfAbsent(e,t,r){return this.cacheClient.setIfAbsent(this.cacheName,e,t,r)}setIfPresent(e,t,r){return this.cacheClient.setIfPresent(this.cacheName,e,t,r)}setIfEqual(e,t,r,i){return this.cacheClient.setIfEqual(this.cacheName,e,t,r,i)}setIfNotEqual(e,t,r,i){return this.cacheClient.setIfNotEqual(this.cacheName,e,t,r,i)}setIfPresentAndNotEqual(e,t,r,i){return this.cacheClient.setIfPresentAndNotEqual(this.cacheName,e,t,r,i)}setIfAbsentOrEqual(e,t,r,i){return this.cacheClient.setIfAbsentOrEqual(this.cacheName,e,t,r,i)}setIfPresentAndHashEqual(e,t,r,i){return this.cacheClient.setIfPresentAndHashEqual(this.cacheName,e,t,r,i)}setIfPresentAndHashNotEqual(e,t,r,i){return this.cacheClient.setIfPresentAndHashNotEqual(this.cacheName,e,t,r,i)}setIfAbsentOrHashEqual(e,t,r,i){return this.cacheClient.setIfAbsentOrHashEqual(this.cacheName,e,t,r,i)}setIfAbsentOrHashNotEqual(e,t,r,i){return this.cacheClient.setIfAbsentOrHashNotEqual(this.cacheName,e,t,r,i)}getBatch(e){return this.cacheClient.getBatch(this.cacheName,e)}setBatch(e,t){return this.cacheClient.setBatch(this.cacheName,e,t)}setFetch(e){return this.cacheClient.setFetch(this.cacheName,e)}setAddElement(e,t,r){return this.cacheClient.setAddElement(this.cacheName,e,t,r)}setAddElements(e,t,r){return this.cacheClient.setAddElements(this.cacheName,e,t,r)}setContainsElement(e,t){return this.cacheClient.setContainsElement(this.cacheName,e,t)}setContainsElements(e,t){return this.cacheClient.setContainsElements(this.cacheName,e,t)}setRemoveElement(e,t){return this.cacheClient.setRemoveElement(this.cacheName,e,t)}setRemoveElements(e,t){return this.cacheClient.setRemoveElements(this.cacheName,e,t)}setSample(e,t){return this.cacheClient.setSample(this.cacheName,e,t)}setPop(e,t){return this.cacheClient.setPop(this.cacheName,e,t)}setLength(e){return this.cacheClient.setLength(this.cacheName,e)}listFetch(e,t){return this.cacheClient.listFetch(this.cacheName,e,t)}listLength(e){return this.cacheClient.listLength(this.cacheName,e)}listPushFront(e,t,r){return this.cacheClient.listPushFront(this.cacheName,e,t,r)}listPushBack(e,t,r){return this.cacheClient.listPushBack(this.cacheName,e,t,r)}listConcatenateBack(e,t,r){return this.cacheClient.listConcatenateBack(this.cacheName,e,t,r)}listConcatenateFront(e,t,r){return this.cacheClient.listConcatenateFront(this.cacheName,e,t,r)}listPopBack(e){return this.cacheClient.listPopBack(this.cacheName,e)}listPopFront(e){return this.cacheClient.listPopFront(this.cacheName,e)}listRemoveValue(e,t){return this.cacheClient.listRemoveValue(this.cacheName,e,t)}listRetain(e,t){return this.cacheClient.listRetain(this.cacheName,e,t)}dictionarySetField(e,t,r,i){return this.cacheClient.dictionarySetField(this.cacheName,e,t,r,i)}dictionarySetFields(e,t,r){return this.cacheClient.dictionarySetFields(this.cacheName,e,t,r)}dictionaryGetField(e,t){return this.cacheClient.dictionaryGetField(this.cacheName,e,t)}dictionaryGetFields(e,t){return this.cacheClient.dictionaryGetFields(this.cacheName,e,t)}dictionaryFetch(e){return this.cacheClient.dictionaryFetch(this.cacheName,e)}
1dictionaryIncrement(e,t,r,i){return this.cacheClient.dictionaryIncrement(this.cacheName,e,t,r,i)}dictionaryRemoveField(e,t){return this.cacheClient.dictionaryRemoveField(this.cacheName,e,t)}dictionaryRemoveFields(e,t){return this.cacheClient.dictionaryRemoveFields(this.cacheName,e,t)}dictionaryLength(e){return this.cacheClient.dictionaryLength(this.cacheName,e)}sortedSetFetchByRank(e,t){return this.cacheClient.sortedSetFetchByRank(this.cacheName,e,t)}sortedSetFetchByScore(e,t){return this.cacheClient.sortedSetFetchByScore(this.cacheName,e,t)}sortedSetPutElement(e,t,r,i){return this.cacheClient.sortedSetPutElement(this.cacheName,e,t,r,i)}sortedSetPutElements(e,t,r){return this.cacheClient.sortedSetPutElements(this.cacheName,e,t,r)}sortedSetGetRank(e,t){return this.cacheClient.sortedSetGetRank(this.cacheName,e,t)}sortedSetGetScore(e,t){return this.cacheClient.sortedSetGetScore(this.cacheName,e,t)}sortedSetGetScores(e,t){return this.cacheClient.sortedSetGetScores(this.cacheName,e,t)}sortedSetIncrementScore(e,t,r,i){return this.cacheClient.sortedSetIncrementScore(this.cacheName,e,t,r,i)}sortedSetRemoveElement(e,t){return this.cacheClient.sortedSetRemoveElement(this.cacheName,e,t)}sortedSetRemoveElements(e,t){return this.cacheClient.sortedSetRemoveElements(this.cacheName,e,t)}sortedSetLength(e){return this.cacheClient.sortedSetLength(this.cacheName,e)}sortedSetLengthByScore(e,t){return this.cacheClient.sortedSetLengthByScore(this.cacheName,e,t)}sortedSetUnionStore(e,t,r){return this.cacheClient.sortedSetUnionStore(this.cacheName,e,t,r)}itemGetType(e){return this.cacheClient.itemGetType(this.cacheName,e)}itemGetTtl(e){return this.cacheClient.itemGetTtl(this.cacheName,e)}keyExists(e){return this.cacheClient.keyExists(this.cacheName,e)}keysExist(e){return this.cacheClient.keysExist(this.cacheName,e)}updateTtl(e,t){return this.cacheClient.updateTtl(this.cacheName,e,t)}increaseTtl(e,t){return this.cacheClient.increaseTtl(this.cacheName,e,t)}decreaseTtl(e,t){return this.cacheClient.decreaseTtl(this.cacheName,e,t)}close(){this.cacheClient.close()}}t.MomentoCache=r},99466:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StaticTransportStrategy=t.StaticGrpcConfiguration=void 0;class r{constructor(e){this.deadlineMillis=e.deadlineMillis}getDeadlineMillis(){return this.deadlineMillis}withDeadlineMillis(e){return new r({...this,deadlineMillis:e})}}t.StaticGrpcConfiguration=r;class i{constructor(e){this.grpcConfiguration=e.grpcConfiguration}getGrpcConfig(){return this.grpcConfiguration}withGrpcConfig(e){return new i({...this,grpcConfiguration:e})}withClientTimeoutMillis(e){return new i({...this,grpcConfiguration:this.grpcConfiguration.withDeadlineMillis(e)})}}t.StaticTransportStrategy=i},99557:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Error=t.Success=void 0;let i=r(17214),n=r(94452);class s extends i.BaseResponseSuccess{constructor(){super(...arguments),this.type=n.CacheDeleteResponse.Success}}t.Success=s;class o extends i.BaseResponseError{constructor(e){super(e),this.type=n.CacheDeleteResponse.Error}}t.Error=o},99634:(e,t,r)=>{"use strict";r.d(t,{X:()=>l});var i=r(14534),n=r(54110),s=r(15638),o=r(70493),a=r(27621);let c=256*a._m;function l({encoder:e,request:t,flushController:r}){let d={},p=r.flushObservable.subscribe(r=>(function(r){let i=(0,n.KQ)(d).join("\n");d={};let o=(0,s.Kp)(r.reason),c=o?t.sendOnExit:t.send;if(o&&e.isAsync){let t=e.finishSync();t.outputBytesCount&&c(u(t));let r=[t.pendingData,i].filter(Boolean).join("\n");r&&c({data:r,bytesCount:(0,a.WW)(r)})}else i&&e.write(e.isEmpty?i:` 2${i}`),e.finish(e=>{c(u(e))})})(r));function h(t,n){let s,l,u=(0,o.s)(t),p=e.estimateEncodedBytesCount(u);p>=c?i.Vy.warn(`Discarded a message whose size was bigger than the maximum allowed size ${c/a._m}KiB. ${i.xG} ${i.Xs}/#technical-limitations`):(void 0!==n&&void 0!==d[n]&&(s=d[n],delete d[n],l=e.estimateEncodedBytesCount(s),r.n
2otifyAfterRemoveMessage(l)),r.notifyBeforeAddMessage(p),void 0!==n?(d[n]=u,r.notifyAfterAddMessage()):e.write(e.isEmpty?u:` 3${u}`,e=>{r.notifyAfterAddMessage(e-p)}))}return{flushController:r,add:h,upsert:h,stop:p.unsubscribe}}function u(e){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding}}},99725:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.cacheKeyPrefixWriteOnly=t.cacheKeyWriteOnly=t.cacheKeyPrefixReadOnly=t.cacheKeyReadOnly=t.cacheKeyPrefixReadWrite=t.cacheKeyReadWrite=void 0;let s=r(12477);n(r(85562),t),t.cacheKeyReadWrite=function(e,t){return{permissions:[{role:s.CacheRole.ReadWrite,cache:e,item:t}]}},t.cacheKeyPrefixReadWrite=function(e,t){return{permissions:[{role:s.CacheRole.ReadWrite,cache:e,item:{keyPrefix:t}}]}},t.cacheKeyReadOnly=function(e,t){return{permissions:[{role:s.CacheRole.ReadOnly,cache:e,item:t}]}},t.cacheKeyPrefixReadOnly=function(e,t){return{permissions:[{role:s.CacheRole.ReadOnly,cache:e,item:{keyPrefix:t}}]}},t.cacheKeyWriteOnly=function(e,t){return{permissions:[{role:s.CacheRole.WriteOnly,cache:e,item:t}]}},t.cacheKeyPrefixWriteOnly=function(e,t){return{permissions:[{role:s.CacheRole.WriteOnly,cache:e,item:{keyPrefix:t}}]}}},99758:(e,t,r)=>{"use strict";r.d(t,{a:()=>a});var i=r(14534),n=r(27621),s=r(70493);let o=220*n._m;function a(e,t=o){let r=(0,s.M)(Object.prototype),i=(0,s.M)(Array.prototype),n=[],u=new WeakMap,d=c(e,"$",void 0,n,u),p=JSON.stringify(d),h=p?p.length:0;if(h>t)return void l(t,"discarded",e);for(;n.length>0&&h<t;){let r=n.shift(),i=0;if(Array.isArray(r.source))for(let s=0;s<r.source.length;s++){let o=c(r.source[s],r.path,s,n,u);if(void 0!==o?h+=JSON.stringify(o).length:h+=4,h+=i,i=1,h>t){l(t,"truncated",e);break}r.target[s]=o}else for(let s in r.source)if(Object.prototype.hasOwnProperty.call(r.source,s)){let o=c(r.source[s],r.path,s,n,u);if(void 0!==o&&(h+=JSON.stringify(o).length+i+s.length+3,i=1),h>t){l(t,"truncated",e);break}r.target[s]=o}}return r(),i(),d}function c(e,t,r,i,n){let s=function(e){if(e&&"function"==typeof e.toJSON)try{return e.toJSON()}catch(e){}return e}(e);if(!s||"object"!=typeof s){var o;return"bigint"==typeof(o=s)?`[BigInt] ${o.toString()}`:"function"==typeof o?`[Function] ${o.name||"unknown"}`:"symbol"==typeof o?`[Symbol] ${o.description||o.toString()}`:o}let a=function e(t){try{if(t instanceof Event){var r;return{type:(r=t).type,isTrusted:r.isTrusted,currentTarget:r.currentTarget?e(r.currentTarget):null,target:r.target?e(r.target):null}}if(t instanceof RegExp)return`[RegExp] ${t.toString()}`;let i=Object.prototype.toString.call(t).match(/\[object (.*)\]/);if(i&&i[1])return`[${i[1]}]`}catch(e){}return"[Unserializable]"}(s);if("[Object]"!==a&&"[Array]"!==a&&"[Error]"!==a)return a;if(n.has(e))return`[Reference seen at ${n.get(e)}]`;let c=void 0!==r?`${t}.${r}`:t,l=Array.isArray(s)?[]:{};return n.set(e,c),i.push({source:s,target:l,path:c}),l}function l(e,t,r){i.Vy.warn(`The data provided has been ${t} as it is over the limit of ${e} characters:`,r)}},99851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientMetadataProvider=void 0;let i=r(84055),n=r(93992),s=r(84957);class o{constructor(e){var t;this.areFirstTimeHeadersSent=!1,this.authToken=e.authToken,this.readConcern=e.readConcern,this.clientType=null!=(t=e.clientType)?t:"unknown"}createClientMetadata(){var e,t,r;let a={},{browser:c,device:l,os:u}=(0,s.UAParser)(navigator.userAgent);return this.authToken&&(a.authorization=this.authToken),this.areFirstTimeHeadersSent||(this.areFirstTimeHeadersSent=!0,a.agent=`${o.agentName}:${this.clientType}:${n.version}`,a["runtime-version"]=[`${o.agentName}`,null!=(e=c.name)?e:"unknown-browser",null!=(t=u.name)?t:"unknown-os",null!=(r=l.model)?r:"unknown-device"].join(":")),this.readConcern&&this.readConcern!==i.ReadConcern.BALANCED&&(a["read-concern"]=this.readConcern),a}}t.ClientMetadataProvider=o,o.agentName="js-web"},99857:(e,t,r)=>{"use strict";r.d(t,{NR:()=>a,Yn:()=>o,uC:()=>s});var i=r(36266),n=r(90662);function s(e){let t,r=Error(e);return r.name="HandlingStack",(0,i.um)(()=>{let e=(0,n.T)(r);e.stack=e.stack.slice(2),t=o(e)}),t}function o(e){let t=a(e);
3return e.stack.forEach(e=>{let r="?"===e.func?"<anonymous>":e.func,i=e.args&&e.args.length>0?`(${e.args.join(", ")})`:"",n=e.line?`:${e.line}`:"",s=e.line&&e.column?`:${e.column}`:"";t+=` 4 at ${r}${i} @ ${e.url}${n}${s}`}),t}function a(e){return`${e.name||"Error"}: ${e.message}`}},99929:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CacheConfiguration=void 0;class r{constructor(e){this.middlewares=[],this.loggerFactory=e.loggerFactory,this.transportStrategy=e.transportStrategy,this.middlewares=e.middlewares,this.throwOnErrors=e.throwOnErrors,this.readConcern=e.readConcern}getLoggerFactory(){return this.loggerFactory}getTransportStrategy(){return this.transportStrategy}withTransportStrategy(e){return new r({...this,transportStrategy:e})}getMiddlewares(){return this.middlewares}withMiddlewares(e){return new r({...this,middlewares:e})}withClientTimeoutMillis(e){return new r({...this,transportStrategy:this.transportStrategy.withClientTimeoutMillis(e)})}getThrowOnErrors(){return this.throwOnErrors}withThrowOnErrors(e){return new r({...this,throwOnErrors:e})}getReadConcern(){return this.readConcern}withReadConcern(e){return new r({...this,readConcern:e})}}t.CacheConfiguration=r}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.