normalizeUser)
(e,this._options),n=this._getCacheKey(t),i=this._inMemoryCache.get(n,t);if(i&&th
is._getIsCacheValueValid(i))return i;const r=this._loadFromCache(n);return
r&&this._getIsCacheValueValid(r)?
(this._inMemoryCache.add(n,r,this._cacheLimit),this._inMemoryCache.get(n,t)):nul
l}setData(e,t){const n=t&&(0,o._normalizeUser)
(t,this._options),i=this._getCacheKey(n);this._inMemoryCache.add(i,u("Bootstrap"
,e,null,n),this._cacheLimit)}_getIsCacheValueValid(e){return null==[Link]||
[Link]===[Link](this._getSdkKey())}_getDataAsyncImpl(e,t,n){return
i(this,void 0,void 0,(function*(){[Link]()||(yield
[Link]());const i=null!=e?
e:[Link](t),s=[this._fetchAndPrepFromNetwork(i,t,n)];return(null==n?
void 0:[Link])&&[Link](new
Promise((e=>setTimeout(e,[Link]))).then((()=>([Link]("Fetching latest
value timed out"),null)))),yield [Link](s)}))}_prefetchDataImpl(e,t)
{return i(this,void 0,void 0,(function*(){const n=e&&(0,o._normalizeUser)
(e,this._options),i=this._getCacheKey(n),r=yield
this._getDataAsyncImpl(null,n,t);r&&this._inMemoryCache.add(i,[Link](Obje
[Link]({},r),
{source:"Prefetch"}),this._cacheLimit)}))}_fetchAndPrepFromNetwork(e,t,n){return
i(this,void 0,void 0,(function*(){var i;const o=null!==(i=null==e?void
0:[Link])&&void 0!==i?i:null,a=null!
=e&&this._isCachedResultValidFor204(e,t),c=yield
this._fetchFromNetwork(o,t,n,a);if(!c)return [Link]("No response returned
for latest value"),null;const d=(0,l._typedJsonParse)
(c,"has_updates","Response"),g=this._getSdkKey(),_=[Link](g);let
h=null;if(!0===(null==d?void 0:d.has_updates))h=u("Network",c,_,t);else{if(!o||!
1!==(null==d?void 0:d.has_updates))return
null;h=u("NetworkNotModified",o,_,t)}const f=this._getCacheKey(t);return
this._inMemoryCache.add(f,h,this._cacheLimit),this._writeToCache(f,h),h}))}_getS
dkKey(){return null!=this._sdkKey?this._sdkKey:([Link](`$
{this._adapterName} is not attached to a Client`),"")}_loadFromCache(e){var
t;const n=null===(t=[Link])||void 0===t?void
0:[Link]([Link],e);if(null==n)return null;const i=(0,l._typedJsonParse)
(n,"source","Cached Result");return i?[Link]([Link]({},i),
{source:"Cache"}):null}_writeToCache(e,t){const n=[Link](t);for(let
t=0;t<8;t++)try{[Link](e,n);break}catch(t){if(!(t instanceof
Error)||"QuotaExceededError"!==[Link]||this._cacheLimit<=1)throw
t;this._cacheLimit=[Link](this._cacheLimit/2),this._runLocalStorageCacheEvict
ion(e,this._cacheLimit-
1)}this._runLocalStorageCacheEviction(e)}_runLocalStorageCacheEviction(e,t=this.
_cacheLimit){var n;const i=null!==(n=(0,a._getObjectFromStorage)
(this._lastModifiedStoreKey))&&void 0!==n?n:{};i[e]=[Link]();const
r=d(i,t);for(const e of r)delete i[e],[Link](e);
(0,a._setObjectInStorage)
(this._lastModifiedStoreKey,i)}},t._makeDataAdapterResult=u;class
c{constructor(){this._data={}}get(e,t){var n;const i=this._data[e],s=null==i?
void 0:[Link],o=null===(n=null==t?void 0:[Link])||void 0===n?void
0:[Link];return o&&s&&o!==s?([Link]("'[Link]'
mismatch"),null):i}add(e,t,n){const i=d(this._data,n-1);for(const e of i)delete
this._data[e];this._data[e]=t}merge(e)
{this._data=[Link]([Link]({},this._data),e)}}function d(e,t){const
n=[Link](e);return [Link]<=t?[]:0===t?n:[Link](((t,n)=>{const
i=e[t],r=e[n];return"object"==typeof i&&"object"==typeof r?[Link]-
[Link]:i-r})).slice(0,[Link]-t)}},882:(e,t)=>{"use
strict";[Link](t,"__esModule",{value:!0}),[Link]=void
0;const n=new Map,i="start",r="end";function s(e,t,n,i){return
[Link]({key:n,action:t,step:i,timestamp:[Link]()},e)}function o(e,t)
{var i;const r=null!==(i=[Link](e))&&void 0!==i?i:
[];[Link](t),[Link](e,r)}function a(e,t){if(t in e)return
e[t]}[Link]={_getMarkers:e=>[Link](e),_markInitOverallStart:e=>{o(e,s({},i
,"overall"))},_markInitOverallEnd:(e,t,n)=>{o(e,s({success:t,error:t?void 0:
{name:"InitializeError",message:"Failed to
initialize"},evaluationDetails:n},r,"overall"))},_markInitNetworkReqStart:
(e,t)=>{o(e,s(t,i,"initialize","network_request"))},_markInitNetworkReqEnd:
(e,t)=>{o(e,s(t,r,"initialize","network_request"))},_markInitProcessStart:e=>{o(
e,s({},i,"initialize","process"))},_markInitProcessEnd:
(e,t)=>{o(e,s(t,r,"initialize","process"))},_clearMarkers:e=>{[Link](e)},_form
atError(e){if(e&&"object"==typeof
e)return{code:a(e,"code"),name:a(e,"name"),message:a(e,"message")}},_getDiagnost
icsData(e,n,i,r){var s;return{success:!0===(null==e?void
0:[Link]),statusCode:null==e?void 0:[Link],sdkRegion:null===(s=null==e?void
0:[Link])||void 0===s?void 0:[Link]("x-statsig-region"),isDelta:!
0===[Link]('"is_delta":true')||void
0,attempt:n,error:[Link]._formatError(r)}},_enqueueDiagnosticsEvent(e,n,i
,r){const s=[Link]._getMarkers(i);if(null==s||[Link]<=0)return-1;const
o=s[[Link]-1].timestamp-s[0].timestamp;[Link]._clearMarkers(i);const
a=function(e,t)
{return{eventName:"statsig::diagnostics",user:e,value:null,metadata:t,time:Date.
now()}}(e,{context:"initialize",markers:[Link](),statsigOptions:r});return
[Link](a),o}}},457:function(e,t){"use strict";var n=this&&this.__awaiter||
function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e)
{try{l([Link](e))}catch(e){s(e)}}function a(e){try{l([Link](e))}catch(e)
{s(e)}}function l(e){var t;[Link]?r([Link]):(t=[Link],t instanceof n?t:new
n((function(e){e(t)}))).then(o,a)}l((i=[Link](e,t||
[])).next())}))};[Link](t,"__esModule",{value:!
0}),t._fetchTxtRecords=void 0;const i=new
Uint8Array([0,0,1,0,0,1,0,0,0,0,0,0,13,102,101,97,116,117,114,101,97,115,115,101
,116,115,3,111,114,103,0,0,16,0,1]),r=["i","e","d"];t._fetchTxtRecords=function(
e){return n(this,void 0,void 0,(function*(){const t=yield e("[Link]
[Link]/dns-query",{method:"POST",headers:{"Content-Type":"application/dns-
message",Accept:"application/dns-message"},body:i});if(![Link]){const e=new
Error("Failed to fetch TXT records from DNS");throw
[Link]="DnsTxtFetchError",e}const n=yield [Link]();return function(e)
{const
t=[Link](((t,n)=>n<200&&"="===[Link](t)&&[Link]([Link]
mCharCode(e[n-1]))));if(-1===t){const e=new Error("Failed to parse TXT records
from DNS");throw [Link]="DnsTxtParseError",e}let n="";for(let i=t-
1;i<[Link];i++)n+=[Link](e[i]);return [Link](",")}(new
Uint8Array(n))}))}},4387:(e,t)=>{"use
strict";[Link](t,"__esModule",{value:!0})},4358:function(e,t,n)
{"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||
(n=Promise))((function(r,s){function o(e){try{l([Link](e))}catch(e)
{s(e)}}function a(e){try{l([Link](e))}catch(e){s(e)}}function l(e){var
t;[Link]?r([Link]):(t=[Link],t instanceof n?t:new n((function(e)
{e(t)}))).then(o,a)}l((i=[Link](e,t||
[])).next())}))};[Link](t,"__esModule",{value:!
0}),[Link]=t.EXCEPTION_ENDPOINT=void 0;const
r=n(8024),s=n(686),o=n(6512);t.EXCEPTION_ENDPOINT="[Link]
sdk_exception";const a="[Statsig] UnknownError";function l(e){return e
instanceof Error?e:"string"==typeof e?new Error(e):new Error("An unknown error
occurred.")}function u(e){if(!e)return{};const t={};return
[Link](e).forEach((n=>{const i=n,r=e[i];switch(typeof r)
{case"number":case"bigint":case"boolean":t[String(i)]=r;break;case"string":[Link]
gth<50?t[String(i)]=r:t[String(i)]="set";break;case"object":"environment"===i?
[Link]=r:"networkConfig"===i?[Link]=r:t[String(i)]=null!
=r?"set":"unset"}})),t}[Link]=class{constructor(e,t,n,i)
{this._sdkKey=e,this._options=t,this._emitter=n,this._lastSeenError=i,this._seen
=new Set}wrap(e,t){try{const n=e;(function(e){const t=new Set;let
n=[Link](e);for(;n&&n!
==[Link];)[Link](n).filter((e=>"function"==typeof(
null==n?void 0:n[e]))).forEach((e=>[Link](e))),n=[Link](n);return
[Link](t)})(n).forEach((i=>{const r=n[i];"$EB"in r||
(n[i]=(...n)=>this._capture(t?`${t}:${i}`:i,(()=>[Link](e,n))),n[i].$EB=!
0)}))}catch(e){this._onError("eb:wrap",e)}}logError(e,t)
{this._onError(e,t)}getLastSeenErrorAndReset(){const
e=this._lastSeenError;return this._lastSeenError=void 0,null!=e?
e:null}attachErrorIfNoneExists(e){this._lastSeenError||
(this._lastSeenError=l(e))}_capture(e,t){try{const n=t();return n&&n instanceof
Promise?[Link]((t=>this._onError(e,t))):n}catch(t){return
this._onError(e,t),null}}_onError(e,n){try{[Link](`Caught error in ${e}`,
{error:n}),(()=>i(this,void 0,void 0,(function*(){var i,r,c,d,g,_,h;const f=n||
Error(a),v=f instanceof Error,p=v?[Link]:"No
Name",m=l(f);if(this._lastSeenError=m,this._seen.has(p))return;if(this._seen.add
(p),null===(r=null===(i=this._options)||void 0===i?void 0:[Link])||void
0===r?void 0:[Link])return void(null===(c=this._emitter)||
void 0===c||[Link](this,{name:"error",error:n,tag:e}));const
y=[Link]._get(this._sdkKey),b=[Link](),S=v?
[Link]:function(e){try{return [Link](e)}catch(e){return a}}
(f),E=[Link]({tag:e,exception:p,info:S,statsigOptions:u(this._options)},O
[Link]([Link]({},b),{sdkType:y})),w=null!
==(_=null===(g=null===(d=this._options)||void 0===d?void 0:[Link])||
void 0===g?void 0:[Link])&&void 0!==_?_:fetch;yield
w(t.EXCEPTION_ENDPOINT,{method:"POST",headers:{"STATSIG-API-
KEY":this._sdkKey,"STATSIG-SDK-TYPE":String(y),"STATSIG-SDK-
VERSION":String([Link]),"Content-Type":"application/
json"},body:[Link](E)}),null===(h=this._emitter)||void 0===h||
[Link](this,{name:"error",error:n,tag:e})})))
().then((()=>{})).catch((()=>{}))}catch(e){}}}},3194:(e,t)=>{"use
strict";[Link](t,"__esModule",{value:!0})},6913:(e,t)=>{"use
strict";[Link](t,"__esModule",{value:!0})},5434:function(e,t,n)
{"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||
(n=Promise))((function(r,s){function o(e){try{l([Link](e))}catch(e)
{s(e)}}function a(e){try{l([Link](e))}catch(e){s(e)}}function l(e){var
t;[Link]?r([Link]):(t=[Link],t instanceof n?t:new n((function(e)
{e(t)}))).then(o,a)}l((i=[Link](e,t||
[])).next())}))};[Link](t,"__esModule",{value:!
0}),[Link]=void 0;const
r=n(4681),s=n(3918),o=n(8024),a=n(2610),l=n(414),u=n(7253),c=n(7754),d=n(1638),g
=n(8873),_=n(2701),h={},f="startup",v="gained_focus";class p{static
_safeFlushAndForget(e){var t;null===(t=h[e])||void 0===t||
[Link]().catch((()=>{}))}static _safeRetryFailedLogs(e){var t;null===(t=h[e])||
void 0===t||t._retryFailedLogs(v)}constructor(e,t,n,i){var
r,s;this._sdkKey=e,this._emitter=t,this._network=n,this._options=i,this._queue=[
],this._lastExposureTimeMap={},this._nonExposedChecks={},this._hasRunQuickFlush=
!1,this._creationTime=[Link](),this._loggingEnabled=null!==(r=null==i?void
0:[Link])&&void 0!==r?r:!0===(null==i?void 0:[Link])?
[Link]:[Link],(null==i?void
0:[Link])&&void 0!==[Link]&&[Link]("Detected both
loggingEnabled and disableLogging options. loggingEnabled takes precedence -
please remove disableLogging."),this._maxQueueSize=null!==(s=null==i?void
0:[Link])&&void 0!==s?s:100;const l=null==i?void
0:[Link];this._logEventUrlConfig=new
[Link]([Link]._rgstr,null==l?void 0:[Link],null==l?void
0:[Link],null==l?void 0:[Link])}setLogEventCompressionMode(e)
{this._network.setLogEventCompressionMode(e)}setLoggingEnabled(e)
{if("disabled"===this._loggingEnabled&&"disabled"!==e){const
e=this._getStorageKey(),t=(0,d._getObjectFromStorage)
(e);t&&this._queue.push(...t),[Link](e)}this._loggingEnabled=e}enq
ueue(e)
{this._shouldLogEvent(e)&&(this._normalizeAndAppendEvent(e),this._quickFlushIfNe
eded(),this._queue.length>this._maxQueueSize&&p._safeFlushAndForget(this._sdkKey
))}incrementNonExposureCount(e){var t;const n=null!
==(t=this._nonExposedChecks[e])&&void 0!==t?
t:0;this._nonExposedChecks[e]=n+1}reset()
{[Link]().catch((()=>{})),this._lastExposureTimeMap={}}start(){var e;const
t=(0,l._isServerEnv)();t&&"always"!==(null===(e=this._options)||void 0===e?void
0:[Link])||(h[this._sdkKey]=this,t||(0,_._subscribeToVisiblityChanged)
((e=>{"background"===e?
p._safeFlushAndForget(this._sdkKey):"foreground"===e&&p._safeRetryFailedLogs(thi
s._sdkKey)})),this._retryFailedLogs(f),this._startBackgroundFlushInterval())}sto
p(){return i(this,void 0,void 0,(function*()
{this._flushIntervalId&&(clearInterval(this._flushIntervalId),this._flushInterva
lId=null),delete h[this._sdkKey],yield [Link]()}))}flush(){return
i(this,void 0,void 0,(function*()
{if(this._appendAndResetNonExposedChecks(),0===this._queue.length)return;const
e=this._queue;this._queue=[],yield this._sendEvents(e)}))}_quickFlushIfNeeded()
{this._hasRunQuickFlush||(this._hasRunQuickFlush=!0,[Link]()-
this._creationTime>200||
setTimeout((()=>p._safeFlushAndForget(this._sdkKey)),200))}_shouldLogEvent(e)
{var t;if("always"!==(null===(t=this._options)||void 0===t?void
0:[Link])&&(0,l._isServerEnv)())return!1;if(!(0,u._isExposureEvent)
(e))return!0;const n=[Link]?[Link]:{statsigEnvironment:void
0},i=(0,r._getUserStorageKey)(this._sdkKey,n),s=[Link]?[Link]:
{},o=[[Link],i,[Link],[Link],[Link],[Link],[Link]
me,String([Link]),[Link]].join("|"),a=this._lastExposureTimeMap
[o],c=[Link]();return!(a&&c-a<6e5||
([Link](this._lastExposureTimeMap).length>1e3&&(this._lastExposureTimeMap={
}),this._lastExposureTimeMap[o]=c,0))}_sendEvents(e){return i(this,void 0,void
0,(function*(){var t,n;if("disabled"===this._loggingEnabled)return
this._saveFailedLogsToStorage(e),!1;try{const i=(0,_._isUnloading)
()&&this._network.isBeaconSupported()&&null==(null===(n=null===(t=this._options)
||void 0===t?void 0:[Link])||void 0===n?void
0:[Link]);return
this._emitter({name:"pre_logs_flushed",events:e}),(i?
this._sendEventsViaBeacon(e):yield this._sendEventsViaPost(e)).success?
(this._emitter({name:"logs_flushed",events:e}),!0):([Link]("Failed to flush
events."),this._saveFailedLogsToStorage(e),!1)}catch(e){return
[Link]("Failed to flush events."),!1}}))}_sendEventsViaPost(e){return
i(this,void 0,void 0,(function*(){var t;const n=yield
this._network.post(this._getRequestData(e)),i=null!==(t=null==n?void
0:[Link])&&void 0!==t?t:-
1;return{success:i>=200&&i<300}}))}_sendEventsViaBeacon(e)
{return{success:this._network.beacon(this._getRequestData(e))}}_getRequestData(e
){return{sdkKey:this._sdkKey,data:
{events:e},urlConfig:this._logEventUrlConfig,retries:3,isCompressable:!0,params:
{[[Link]]:String([Link])},credentials:"same-
origin"}}_saveFailedLogsToStorage(e){for(;[Link]>500;)[Link]();const
t=this._getStorageKey();try{const n=this._getFailedLogsFromStorage(t);
(0,d._setObjectInStorage)(t,[...n,...e])}catch(e){[Link]("Unable to save
failed logs to storage")}}_getFailedLogsFromStorage(e){let t=[];try{const
n=(0,d._getObjectFromStorage)(e);return [Link](n)&&(t=n),t}catch(e)
{return[]}}_retryFailedLogs(e){const t=this._getStorageKey();(()=>i(this,void
0,void 0,(function*(){[Link]()||(yield
[Link]());const n=(0,d._getObjectFromStorage)
(t);n&&(e===f&&[Link](t),(yield
this._sendEvents(n))&&e===v&&[Link](t))})))
().catch((()=>{[Link]("Failed to flush stored logs")}))}_getStorageKey()
{return`statsig.failed_logs.${(0,s._DJB2)
(this._sdkKey)}`}_normalizeAndAppendEvent(e)
{[Link]&&([Link]=[Link]({},[Link]),delete [Link]);const
t={},n=this._getCurrentPageUrl();n&&([Link]={currentPage:n});const
i=[Link]([Link]({},e),t);[Link]("Enqueued
Event:",i),this._queue.push(i)}_appendAndResetNonExposedChecks(){0!
==[Link](this._nonExposedChecks).length&&(this._normalizeAndAppendEvent({ev
entName:"statsig::non_exposed_checks",user:null,time:[Link](),metadata:
{checks:[Link]({},this._nonExposedChecks)}}),this._nonExposedChecks={})}_
getCurrentPageUrl(){var e;if(!1!==(null===(e=this._options)||void 0===e?void
0:[Link]))return(0,l._getCurrentPageUrlSafe)
()}_startBackgroundFlushInterval(){var e,t;const n=null!
==(t=null===(e=this._options)||void 0===e?void 0:[Link])&&void 0!
==t?t:1e4,i=setInterval((()=>{const e=h[this._sdkKey];e&&e._flushIntervalId===i?
p._safeFlushAndForget(this._sdkKey):clearInterval(i)}),n);this._flushIntervalId=
i}}[Link]=p},3918:(e,t,n)=>{"use
strict";[Link](t,"__esModule",{value:!
0}),t._getSortedObject=t._DJB2Object=t._DJB2=void 0;const
i=n(10);t._DJB2=e=>{let t=0;for(let n=0;n<[Link];n++)t=(t<<5)-
t+[Link](n),t|=0;return String(t>>>0)},t._DJB2Object=(e,n)=>(0,t._DJB2)
([Link]((0,t._getSortedObject)
(e,n))),t._getSortedObject=(e,n)=>{if(null==e)return null;const
r=[Link](e).sort(),s={};return [Link]((r=>{const o=e[r];0!
==n&&"object"===(0,i._typeOf)(o)?s[r]=(0,t._getSortedObject)(o,null!=n?n-
1:n):s[r]=o})),s}},7061:(e,t)=>{"use
strict";[Link](t,"__esModule",{value:!0})},8024:(e,t)=>{"use
strict";function n(e){return
[Link]("[Statsig]"),e}[Link](t,"__esModule",{value:!
0}),[Link]=[Link]=void
0,[Link]={None:0,Error:1,Warn:2,Info:3,Debug:4};class i{static info(...e)
{[Link]>=[Link]&&[Link](" INFO ",...n(e))}static debug(...e)
{[Link]>=[Link]&&[Link](" DEBUG ",...n(e))}static warn(...e)
{[Link]>=[Link]&&[Link](" WARN ",...n(e))}static error(...e)
{[Link]>=[Link]&&[Link](" ERROR
",...n(e))}}[Link]=i,[Link]=[Link]},843:(e,t)=>{"use
strict";[Link](t,"__esModule",{value:!
0}),[Link]=[Link]=void
0,[Link]={_gate:"g",_dynamicConfig:"c",_experiment:"e",_configList:"cl",_l
ayer:"l",_paramStore:"p"};const n=new Set([]),i=new
Set(["userPersistedValues"]);[Link]=function(e,t,r){let s=`${e}|$
{t}`;if(!r)return s;for(const e of [Link](r)){if([Link](e))return;[Link](e)?
s+=`|${e}=true`:s+=`|${e}=${r[e]}`}return s}},2610:(e,t)=>{"use
strict";[Link](t,"__esModule",{value:!
0}),[Link]=[Link]=[Link]=void
0,[Link]={_initialize:"initialize",_rgstr:"rgstr",_download_config_specs:"do
wnload_config_specs"},[Link]={[[Link]._rgstr]:"https://
[Link]/v1",[[Link]._initialize]:"[Link]
[[Link]._download_config_specs]:"[Link]
v1"},[Link]={EventCount:"ec",SdkKey:"k",SdkType:"st",SdkVersion:"sv",Tim
e:"t",SessionID:"sid",StatsigEncoded:"se",IsGzipped:"gz"}},4703:function(e,t,n)
{"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||
(n=Promise))((function(r,s){function o(e){try{l([Link](e))}catch(e)
{s(e)}}function a(e){try{l([Link](e))}catch(e){s(e)}}function l(e){var
t;[Link]?r([Link]):(t=[Link],t instanceof n?t:new n((function(e)
{e(t)}))).then(o,a)}l((i=[Link](e,t||
[])).next())}))};[Link](t,"__esModule",{value:!
0}),[Link]=void 0,n(3509);const
r=n(3509),s=n(882),o=n(8024),a=n(2610),l=n(52),u=n(5747),c=n(686),d=n(414),g=n(9
839),_=n(2626),h=n(1180),f=n(6512),v=n(7754),p=n(2701),m=new
Set([408,500,502,503,504,522,524,599]);[Link]=class{constructor(e,t)
{this._emitter=t,this._errorBoundary=null,this._timeout=1e4,this._netConfig={},t
his._options={},this._leakyBucket={},this._lastUsedInitUrl=null,e&&(this._option
s=e),this._options.networkConfig&&(this._netConfig=this._options.networkConfig),
this._netConfig.networkTimeoutMs&&(this._timeout=this._netConfig.networkTimeoutM
s),this._fallbackResolver=new
[Link](this._options),[Link](this._g
etLogEventCompressionMode(e))}setLogEventCompressionMode(e)
{this._options.logEventCompressionMode=e}setErrorBoundary(e)
{this._errorBoundary=e,this._errorBoundary.wrap(this),this._errorBoundary.wrap(t
his._fallbackResolver),this._fallbackResolver.setErrorBoundary(e)}isBeaconSuppor
ted(){return"undefined"!=typeof navigator&&"function"==typeof
[Link]}getLastUsedInitUrlAndReset(){const
e=this._lastUsedInitUrl;return this._lastUsedInitUrl=null,e}beacon(e){if(!
y(e))return!1;const
t=this._getInternalRequestArgs("POST",e),n=this._getPopulatedURL(t),i=navigator;
return [Link](i)(n,[Link])}post(e){return i(this,void 0,void 0,
(function*(){const t=this._getInternalRequestArgs("POST",e);return
this._tryEncodeBody(t),yield
this._tryToCompressBody(t),this._sendRequest(t)}))}get(e){const
t=this._getInternalRequestArgs("GET",e);return
this._sendRequest(t)}_sendRequest(e){return i(this,void 0,void 0,(function*()
{var t,n,r,l;if(!y(e))return
null;if(this._netConfig.preventAllNetworkTraffic)return
null;const{method:u,body:c,retries:d,attempt:g}=e,_=[Link];if(this
._isRateLimited(_))return [Link](`Request to ${_} was blocked because you
are making requests too frequently.`),null;const f=null!=g?g:1,v="undefined"!
=typeof AbortController?new AbortController:null,b=setTimeout((()=>{null==v||
[Link](`Timeout of ${this._timeout}ms
expired.`)}),this._timeout),E=this._getPopulatedURL(e);let w=null;const
k=(0,p._isUnloading)();try{const
n={method:u,body:c,headers:[Link]({},[Link]),signal:null==v?void
0:[Link],priority:[Link],keepalive:k};!function(e,t)
{[Link]===[Link]._initialize&&[Link]._markInitNetworkRe
qStart([Link],{attempt:t})}(e,f);const
i=this._leakyBucket[_];i&&([Link]=[Link](),this._leakyBucket[_]=i);
const r=null!==(t=this._netConfig.networkOverrideFunc)&&void 0!==t?
t:fetch;if(w=yield r(E,n),clearTimeout(b),![Link]){const e=yield
[Link]().catch((()=>"No Text")),t=new Error(`NetworkError: ${E} ${e}`);throw
[Link]="NetworkError",t}const o=yield [Link]();return
S(e,w,f,o),this._fallbackResolver.tryBumpExpiryTime([Link],[Link]),
{body:o,code:[Link]}}catch(t){const s=function(e,t){return(null==e?void
0:[Link])&&"string"==typeof [Link]?
[Link]:"string"==typeof t?t:t instanceof Error?`${[Link]}: $
{[Link]}`:"Unknown Error"}(v,t),a=(null==(C=v)?void
0:[Link])&&"string"==typeof
[Link]&&[Link]("Timeout")||!1;if(S(e,w,f,"",t),(yield
this._fallbackResolver.tryFetchUpdatedFallbackInfo([Link],[Link],s,a))&&(
[Link]=this._fallbackResolver.getActiveFallbackUrl([Link],[Link]))
,!d||f>d||&&void 0!==n?n:500))
{null===(r=this._emitter)||void 0===r||[Link](this,
{name:"error",error:t,tag:[Link],requestArgs:e});const n=`A
networking error occurred during ${u} request to ${E}.`;return
[Link](n,s,t),null===(l=this._errorBoundary)||void 0===l||
[Link](n),null}return yield function(e){return i(this,void
0,void 0,(function*(){yield new
Promise((t=>setTimeout(t,[Link](e*e*500,3e4))))}))}
(f),this._sendRequest([Link]([Link]({},e),
{retries:d,attempt:f+1}))}var C}))}_getLogEventCompressionMode(e){let t=null==e?
void 0:[Link];return t||!0!==(null==e?void
0:[Link])||(t=[Link]),t||
(t=[Link]),t}_isRateLimited(e){var t;const
n=[Link](),i=null!==(t=this._leakyBucket[e])&&void 0!==t?t:
{count:0,lastRequestTime:n},r=[Link],s=[Link](.05*r);return
[Link]=[Link](0,[Link]-s),[Link]>=50||
([Link]+=1,[Link]=n,this._leakyBucket[e]=i,!1)}_getPopulatedURL(e)
{var t;const n=null!==(t=[Link])&&void 0!==t?
t:[Link]();[Link]!
==[Link]._initialize&&[Link]!
==[Link]._download_config_specs||(this._lastUsedInitUrl=n);const
i=[Link]({[[Link]]:[Link],
[[Link]]:[Link]._get([Link]),
[[Link]]:f.SDK_VERSION,
[[Link]]:String([Link]()),
[[Link]]:[Link]([Link])},[Link]),r=[Link](i)
.map((e=>`${encodeURIComponent(e)}=$
{encodeURIComponent(i[e])}`)).join("&");return`${n}${r?`?$
{r}`:""}`}_tryEncodeBody(e){var t;const n=(0,d._getWindowSafe)
(),i=[Link];if([Link]&&!
this._options.disableStatsigEncoding&&"string"==typeof
i&&null==(0,r._getStatsigGlobalFlag)("no-encode")&&(null==n?void
0:[Link]))try{[Link]=[Link](i).split("").reverse().join(""),[Link]=[Link]
gn([Link]({},null!==(t=[Link])&&void 0!==t?t:{}),
{[[Link]]:"1"})}catch(t){[Link](`Request encoding
failed for ${[Link]()}`,t)}}_tryToCompressBody(e){return i(this,void
0,void 0,(function*(){var t;const n=[Link];if("string"==typeof n&&function(e,t)
{if(![Link])return!1;if(null!=(0,r._getStatsigGlobalFlag)("no-
compress")||"undefined"==typeof CompressionStream||"undefined"==typeof
TextEncoder)return!1;const n=null!=[Link]||null!
=[Link],i=!
0===[Link]([Link],"enable_log_event_compression");switch([Link]
pressionMode){case [Link]:return!1;case
[Link]:return!(n&&!i);case
[Link]:return!0;default:return!1}}
(e,this._options))try{const i=(new TextEncoder).encode(n),r=new
CompressionStream("gzip"),s=[Link]();[Link](i).catch([Link])
,[Link]().catch([Link]);const l=[Link](),u=[];let c;for(;!
(c=yield [Link]()).done;)[Link]([Link]);const
d=[Link](((e,t)=>e+[Link]),0),g=new Uint8Array(d);let _=0;for(const e of
u)[Link](e,_),_+=[Link];[Link]=g,[Link]=[Link]([Link]({},null!
==(t=[Link])&&void 0!==t?t:{}),{[[Link]]:"1"})}catch(t)
{[Link](`Request compression failed for $
{[Link]()}`,t)}}))}_getInternalRequestArgs(e,t){const
n=this._fallbackResolver.getActiveFallbackUrl([Link],[Link]),i=[Link]
ign([Link]({},t),{method:e,fallbackUrl:n});return"data"in
t&&b(i,[Link]),i}};const y=e=>!![Link]||([Link]("Unable to make request
without an SDK key"),!
1),b=(e,t)=>{const{sdkKey:n,fallbackUrl:i}=e,r=_.[Link](n),s=[Link].g
et(n),o=[Link]._get(n);[Link]=[Link]([Link]([Link]({},t
),
{statsigMetadata:[Link]([Link]({},[Link]())
,{stableID:r,sessionID:s,sdkType:o,fallbackUrl:i})}))};function S(e,t,n,i,r)
{[Link]===[Link]._initialize&&[Link]._markInitNetworkRe
qEnd([Link],[Link]._getDiagnosticsData(t,n,i,r))}},52:function(e,t,n)
{"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||
(n=Promis