1try{!function(){var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="9a34894a-1475-4bac-9125-dda9ef65343f",t._sentryDebugIdIdentifier="sentry-dbid-9a34894a-1475-4bac-9125-dda9ef65343f")}()}catch(t){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3459],{556:function(t,e){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});e.__esModule=!0,e.StatsigSDKKeyMismatchError=e.StatsigInvalidConfigSpecsResponseError=e.StatsigInvalidIDListsResponseError=e.StatsigInvalidDataAdapterValuesError=e.StatsigInvalidBootstrapValuesError=e.StatsigInitializeIDListsError=e.StatsigInitializeFromNetworkError=e.StatsigLocalModeNetworkError=e.StatsigTooManyRequestsError=e.StatsigInvalidArgumentError=e.StatsigUninitializedError=void 0,e.StatsigUninitializedError=function(t){function e(){var n=t.call(this,"Call and wait for initialize() to finish first.")||this;return Object.setPrototypeOf(n,e.prototype),n}return r(e,t),e}(Error),e.StatsigInvalidArgumentError=function(t){function e(n){var r=t.call(this,n)||this;return Object.setPrototypeOf(r,e.prototype),r}return r(e,t),e}(Error),e.StatsigTooManyRequestsError=function(t){function e(n){var r=t.call(this,n)||this;return Object.setPrototypeOf(r,e.prototype),r}return r(e,t),e}(Error),e.StatsigLocalModeNetworkError=function(t){function e(){var n=t.call(this,"No network requests in localMode")||this;return Object.setPrototypeOf(n,e.prototype),n}return r(e,t),e}(Error);var i=function(t){function e(n){var r=t.call(this,"statsigSDK::initialize> Failed to initialize from the network".concat(n?": ".concat(n.message):"",". See https://docs.statsig.com/messages/serverSDKConnection for more information"))||this;return Object.setPrototypeOf(r,e.prototype),r}return r(e,t),e}(Error);e.StatsigInitializeFromNetworkError=i,e.StatsigInitializeIDListsError=function(t){function e(e){var n=t.call(this,"statsigSDK::initialize> Failed to initialize id lists".concat(e?": ".concat(e.message):"","."))||this;return Object.setPrototypeOf(n,i.prototype),n}return r(e,t),e}(Error),e.StatsigInvalidBootstrapValuesError=function(t){function e(){var n=t.call(this,"statsigSDK::initialize> the provided bootstrapValues is not a valid JSON string.")||this;return Object.setPrototypeOf(n,e.prototype),n}return r(e,t),e}(Error),e.StatsigInvalidDataAdapterValuesError=function(t){function e(n){var r=t.call(this,"statsigSDK::dataAdapter> Failed to retrieve valid values for ".concat(n,") from the provided data adapter"))||this;return Object.setPrototypeOf(r,e.prototype),r}return r(e,t),e}(Error),e.StatsigInvalidIDListsResponseError=function(t){function e(){var n=t.call(this,"statsigSDK::dataAdapter> Failed to retrieve a valid ID lists response from network")||this;return Object.setPrototypeOf(n,e.prototype),n}return r(e,t),e}(Error),e.StatsigInvalidConfigSpecsResponseError=function(t){function e(){var n=t.call(this,"statsigSDK::dataAdapter> Failed to retrieve a valid config specs response from network")||this;return Object.setPrototypeOf(n,e.prototype),n}return r(e,t),e}(Error),e.StatsigSDKKeyMismatchError=function(t){function e(){var n=t.call(this,"statsigSDK::initialize> SDK key provided in initialize() does not match the one used to generate initialize reponse.")||this;return Object.setPrototypeOf(n,e.prototype),n}return r(e,t),e}(Error)},2562:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});let r=(0,n(11572).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},4977:t=>{"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise(function(n,r){var i,o,s;function a(n){t.removeListener(e,u),r(n)}function u(){"function"==typeof t.removeListener&&t.removeListener("error",a),n([].slice.call(arguments))}g(t,e,u,{once:!0}),"error"!==e&&(i=t,o=a,s={once:!0},"function"==typeof i.on&&g(i,"error",o,s))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function l(t,e,n,r){if(a(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),void 0===s)s=o[e]=n,++t._eventsCount;else if("function"==typeof s?s=o[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=u(t))>0&&s.length>i&&!s.warned){s.warned=!0;var i,o,s,l=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,console&&console.warn&&console.warn(l)}return t}function c(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function p(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):d(i,i.length)}function h(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(t,e){for(var n=Array(e),r=0;r<e;++r)n[r]=t[r];return n}function g(t,e,n,r){if("function"==typeof t.on)r.once?t.once(e,n):t.on(e,n);else if("function"==typeof t.addEventListener)t.addEventListener(e,function i(o){r.once&&t.removeEventListener(e,i),n(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||i(t))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var s,a=Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];
1if(void 0===u)return!1;if("function"==typeof u)r(u,this,e);else for(var l=u.length,c=d(u,l),n=0;n<l;++n)r(c[n],this,e);return!0},o.prototype.addListener=function(t,e){return l(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return l(this,t,e,!0)},o.prototype.once=function(t,e){return a(e),this.on(t,f(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return a(e),this.prependListener(t,f(this,t,e)),this},o.prototype.removeListener=function(t,e){var n,r,i,o,s;if(a(e),void 0===(r=this._events)||void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0==arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},o.prototype.listeners=function(t){return p(this,t,!0)},o.prototype.rawListeners=function(t){return p(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):h.call(t,e)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},5428:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};e.__esModule=!0,e.OptionsLoggingCopy=e.OptionsWithDefaults=void 0;var i=n(93667);function o(t,e,n){var r=t[e];return null==r||"boolean"!=typeof r?n:r}function s(t,e,n){var r=t[e];return null==r||"string"!=typeof r?n:r}function a(t,e,n){var r=t[e];return null==r||"number"!=typeof r?n:r}function u(t){return t&&t.endsWith("/")?t.slice(0,-1):t}e.OptionsWithDefaults=function(t){var e,n,l,c,f,p,h,d,g,v,y,m,_,b,S,x,w,E,D,k;return{api:u(null!=(e=s(t,"api",i.STATSIG_API))?e:i.STATSIG_API),apiForDownloadConfigSpecs:null!=(l=u(s(t,"apiForDownloadConfigSpecs",null!=(n=t.api)?n:null)))?l:i.STATSIG_CDN,apiForGetIdLists:null!=(f=u(s(t,"apiForGetIdLists",null!=(c=t.api)?c:null)))?f:i.STATSIG_API,fallbackToStatsigAPI:o(t,"fallbackToStatsigAPI",!1),networkOverrideFunc:null!=(p=t.networkOverrideFunc)?p:null,bootstrapValues:s(t,"bootstrapValues",null),environment:t.environment?(E={},null==(D=t.environment)||"object"!=typeof D?E:D):null,rulesUpdatedCallback:t.rulesUpdatedCallback?null==(k=t.rulesUpdatedCallback)||"function"!=typeof k?null:k:null,localMode:o(t,"localMode",!1),initTimeoutMs:a(t,"initTimeoutMs",0),logger:null!=(h=t.logger)?h:r(r({},console),{logLevel:"warn"}),dataAdapter:null!=(d=t.dataAdapter)?d:null,rulesetsSyncIntervalMs:Math.max(a(t,"rulesetsSyncIntervalMs",1e4),5e3),idListsSyncIntervalMs:Math.max(a(t,"idListsSyncIntervalMs",6e4),3e4),loggingIntervalMs:a(t,"loggingIntervalMs",6e4),loggingMaxBufferSize:Math.min(a(t,"loggingMaxBufferSize",1e3),1e3),disableDiagnostics:o(t,"disableDiagnostics",!1),initStrategyForIP3Country:null!=(g=s(t,"initStrategyForIP3Country","await"))?g:"await",initStrategyForIDLists:null!=(v=s(t,"initStrategyForIDLists","await"))?v:"await",postLogsRetryLimit:a(t,"postLogsRetryLimit",5),postLogsRetryBackoff:null!=(y=t.postLogsRetryBackoff)?y:1e3,disableRulesetsSync:null!=(m=t.disableRulesetsSync)&&m,disableIdListsSync:null!=(_=t.disableIdListsSync)&&_,disableAllLogging:null!=(b=t.disableAllLogging)&&b,userPersistentStorage:null!=(S=t.userPersistentStorage)?S:null,evaluationCallback:null!=(x=t.evaluationCallback)?x:void 0,evaluationCallbacks:null!=(w=t.evaluationCallbacks)?w:{}}},e.OptionsLoggingCopy=function(t){var e={};return Object.entries(t).forEach(function(t){var n=t[0],r=t[1];switch(typeof r){case"number":case"bigint":case"boolean":e[String(n)]=r;break;case"string":r.length<50?e[String(n)]=r:e[String(n)]="set";break;case"object":"environment"===n?e.environment=r:e[String(n)]=null!=r?"set":"unset";break;case"function":"dataAdapter"===n&&(e[String(n)]="set")}}),e}},9756:(t,e)=>{"use strict";
1e.__esModule=!0,e.SDKConfigs=void 0,e.SDKConfigs=function(){function t(){}return t.setFlags=function(e){t._flags=e&&"object"==typeof e?e:{}},t.setConfigs=function(e){t._configs=e&&"object"==typeof e?e:{}},t.on=function(e){return!0===t._flags[e]},t.getConfigNumValue=function(e){var n=t._configs[e];return"number"==typeof n?n:null},t.getConfigIntValue=function(e){var n=t._configs[e];return"number"==typeof n?Math.floor(n):null},t.getConfigStrValue=function(e){var n=t._configs[e];return"string"==typeof n?n:null},t._flags={},t._configs={},t}()},11711:(t,e,n)=>{"use strict";var r=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw Error("unable to locate global object")}();t.exports=e=r.fetch,r.fetch&&(e.default=r.fetch.bind(r)),e.Headers=r.Headers,e.Request=r.Request,e.Response=r.Response},14035:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};e.__esModule=!0,e.arrayHasAllValues=e.arrayHasValue=e.arrayAny=e.dateCompare=e.stringCompare=e.removeVersionExtension=e.versionCompare=e.versionCompareHelper=e.numberCompare=e.getParameterCaseInsensitive=e.getFromEnvironment=e.getFromUserAgent=e.getFromUser=e.computeUserHash=e.getUnitID=void 0;var i=n(88264),o=r(n(96488));e.getUnitID=function(t,e){var n;if("string"==typeof e&&"userid"!==e.toLowerCase()){var r=null==(n=null==t?void 0:t.customIDs)?void 0:n[e];return void 0!==r?r:u(null==t?void 0:t.customIDs,e)}return null==t?void 0:t.userID};var s=new Map;function a(t,e){var n,r,i,o,s,a,u,l,c;return"object"!=typeof t||null==e?null:null!=(l=null!=(a=null!=(o=null!=(r=null!=(n=t[e])?n:t[e.toLowerCase()])?r:null==(i=null==t?void 0:t.custom)?void 0:i[e])?o:null==(s=null==t?void 0:t.custom)?void 0:s[e.toLowerCase()])?a:null==(u=null==t?void 0:t.privateAttributes)?void 0:u[e])?l:null==(c=null==t?void 0:t.privateAttributes)?void 0:c[e.toLowerCase()]}function u(t,e){if(null!=t){var n=e.toLowerCase(),r=Object.keys(t).find(function(t){return t.toLowerCase()===n});if(void 0!==r)return t[r]}}function l(t,e){if("string"!=typeof t||"string"!=typeof e)return null;var n=c(t),r=c(e);if(0===n.length||0===r.length)return null;for(var i=n.split("."),o=r.split("."),s=0;s<Math.max(i.length,o.length);s++){void 0===i[s]&&(i[s]="0"),void 0===o[s]&&(o[s]="0");var a=Number(i[s]),u=Number(o[s]);if("number"!=typeof a||"number"!=typeof u||isNaN(a)||isNaN(u))return null;if(a<u)return -1;if(a>u)return 1}return 0}function c(t){var e=t.indexOf("-");return e>=0?t.substr(0,e):t}function f(t){var e=Number(t);return isNaN(e)?NaN:(e<1e10&&(e*=1e3),e)}e.computeUserHash=function(t){var e=s.get(t);if(e)return e;var n=(0,i.sha256Hash)(t).getBigUint64(0,!1);return s.size>1e5&&s.clear(),s.set(t,n),n},e.getFromUser=a,e.getFromUserAgent=function(t,e){if(null==e)return null;var n,r,i,s,u=a(t,"userAgent");if(null==u||"string"!=typeof u||u.length>1e3)return null;var l=(0,o.default)(u);switch(e.toLowerCase()){case"os_name":case"osname":return null!=(n=l.os.name)?n:null;case"os_version":case"osversion":return null!=(r=l.os.version)?r:null;case"browser_name":case"browsername":return null!=(i=l.browser.name)?i:null;case"browser_version":case"browserversion":return null!=(s=l.browser.version)?s:null;default:return null}},e.getFromEnvironment=function(t,e){return null==e?null:u(null==t?void 0:t.statsigEnvironment,e)},e.getParameterCaseInsensitive=u,e.numberCompare=function(t){return function(e,n){if(null==e||null==n)return!1;var r=Number(e),i=Number(n);return!(isNaN(r)||isNaN(i))&&t(r,i)}},e.versionCompareHelper=function(t){return function(e,n){var r=l(e,n);return null!=r&&t(r)}},e.versionCompare=l,e.removeVersionExtension=c,e.stringCompare=function(t,e){return function(n,r){return null!=n&&null!=r&&(t?e(String(n).toLowerCase(),String(r).toLowerCase()):e(String(n),String(r)))}},e.dateCompare=function(t){return function(e,n){if(null==e||null==n)return!1;try{var r=new Date(e);"string"==typeof e?isNaN(r.getTime())&&(r=new Date(f(e))):r=new Date(f(e));var i=new Date(n);return"string"==typeof n?isNaN(i.getTime())&&(i=new Date(f(n))):i=new Date(f(n)),!isNaN(r.getTime())&&!isNaN(i.getTime())&&t(r,i)}catch(t){return!1}}},e.arrayAny=function(t,e,n){if(!Array.isArray(e))return!1;for(var r=0;r<e.length;r++)if(n(t,e[r]))return!0;return!1},e.arrayHasValue=function(t,e){for(var n=new Set(t),r=0;r<e.length;r++)if(n.has(e[r])||n.has(parseInt(e[r])))return!0;return!1},e.arrayHasAllValues=function(t,e){for(var n=new Set(t),r=0;r<e.length;r++)if(!n.has(e[r])&&!n.has(parseInt(e[r])))return!1;return!0}},14337:t=>{"use strict";
1t.exports=JSON.parse('{"name":"statsig-node","version":"6.5.1","description":"Statsig Node.js SDK for usage in multi-user server environments.","main":"dist/index.js","scripts":{"prepare":"rm -rf dist/ && tsc","test":"npm run prepare && jest","docs":"jsdoc2md src/index.js src/typedefs.js src/DynamicConfig.js > docs/generated.md","lint":"eslint \'*/**/*.{ts,tsx}\' --fix --max-warnings 0 --cache --cache-strategy content && git status","lint:github":"eslint \'*/**/*.{ts,tsx}\' --max-warnings 100 --cache --cache-strategy content"},"keywords":["feature gate","feature flag","continuous deployment","ci","ab test"],"repository":{"type":"git","url":"git+https://github.com/statsig-io/node-js-server-sdk.git"},"author":"Statsig, Inc.","license":"ISC","bugs":{"url":"https://github.com/statsig-io/node-js-server-sdk/issues"},"homepage":"https://www.statsig.com","dependencies":{"ip3country":"^5.0.0","node-fetch":"^2.7.0","ua-parser-js":"^1.0.2","uuid":"^8.3.2"},"devDependencies":{"@babel/core":"^7.23.2","@babel/preset-env":"^7.18.10","@babel/preset-typescript":"^7.18.6","@types/jest":"^26.0.24","@types/node":"^14.18.26","@types/node-fetch":"^2.6.12","@types/sha.js":"^2.4.0","@types/ua-parser-js":"^0.7.36","@types/useragent":"^2.3.1","@types/uuid":"^8.3.4","@types/whatwg-fetch":"^0.0.33","@typescript-eslint/eslint-plugin":"^5.59.7","@typescript-eslint/parser":"^5.59.7","eslint":"^8.50.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.2","eslint-plugin-simple-import-sort":"^10.0.0","babel-jest":"^29.7.0","form-data":"4.0.4","jest":"^29.7.0","jest-environment-jsdom":"^29.7.0","jsdoc-to-markdown":"^7.1.1","prettier":"^3.1.1","sha.js":"^2.4.12","typescript":"^4.7.4"},"importSort":{".js, .jsx, .ts, .tsx":{"style":"module","parser":"typescript"}},"engines":{"pnpm":"never"}}')},20932:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(21266);e.default=function(){function t(t,e,n,i,o,s,a,u){var l;void 0===e&&(e={}),void 0===n&&(n=""),void 0===i&&(i=null),void 0===o&&(o=null),void 0===s&&(s=null),void 0===a&&(a=null),void 0===u&&(u=null),("string"!=typeof t||0===t.length)&&(t=""),(null==e||"object"!=typeof e)&&(e={}),this.name=t,this._value=null!=(l=(0,r.clone)(e))?l:{},this._ruleID=n,this._groupName=i,this._allocatedExperimentName=o,this._logExposure=s,this._evaluationDetails=a,this._idType=u}return t.prototype.get=function(t,e,n){var r=this;void 0===n&&(n=null),e=null!=e?e:null;var i=this._value[t];if(null==i)return e;var o=function(){var e;return null==(e=r._logExposure)||e.call(r,r,t),i};return n?n(i)?o():e:null==e||typeof i==typeof e&&Array.isArray(e)===Array.isArray(i)?o():e},t.prototype.getValue=function(t,e){var n,r;return(void 0===e&&(e=null),null==t)?e:(null!=this._value[t]&&(null==(n=this._logExposure)||n.call(this,this,t)),null!=(r=this._value[t])?r:e)},t.prototype.getRuleID=function(){return this._ruleID},t.prototype.getIDType=function(){return this._idType},t.prototype.getGroupName=function(){return this._groupName},t.prototype.getAllocatedExperimentName=function(){return this._allocatedExperimentName},t.prototype.getEvaluationDetails=function(){return this._evaluationDetails},t}()},21266:function(t,e,n){"use strict";var r,i=n(43710),o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=this&&this.__assign||function(){return(s=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(){var t,e;try{return null!=(e=null==(t=n(14337))?void 0:t.version)?e:""}catch(t){return""}}function u(){var t,e;try{return null!=(e=null==(t=n(14337))?void 0:t.name)?e:"statsig-node"}catch(t){return"statsig-node"}}e.__esModule=!0,e.ExhaustSwitchError=e.getTypeOf=e.poll=e.notEmptyObject=e.notEmpty=e.isUserIdentifiable=e.getStatsigMetadata=e.getSDKType=e.getSDKVersion=e.getNumericValue=e.getBoolValue=e.cloneEnforce=e.clone=void 0,e.getSDKVersion=a,e.getSDKType=u,e.notEmpty=function(t){return null!=t},e.notEmptyObject=function(t){return null!=t&&"object"==typeof t&&Object.keys(t).length>0},e.clone=function(t){return null==t?null:JSON.parse(JSON.stringify(t))},e.cloneEnforce=function(t){return JSON.parse(JSON.stringify(t))},e.getNumericValue=function(t){if(null==t)return null;var e=Number(t);return"number"==typeof e&&!isNaN(e)&&isFinite(e)&&null!=t?e:null},e.getBoolValue=function(t){if(null==t);else if("true"===String(t).toLowerCase())return!0;else if("false"===String(t).toLowerCase())return!1;return null},e.getStatsigMetadata=function(t){return void 0===t&&(t={}),s({sdkType:u(),sdkVersion:a(),languageVersion:void 0!==i&&i&&i.version&&i.version.length>1&&i.version.substring(1)||""},t)},e.isUserIdentifiable=function(t){if(null==t||"object"!=typeof t)return!1;var e=t.userID,n=t.customIDs;return"number"==typeof e||"string"==typeof e||null!=n&&"object"==typeof n&&0!==Object.keys(n).length},e.poll=function(t,e){var n=setInterval(t,e);return n.unref&&n.unref(),n},e.getTypeOf=function(t){return Array.isArray(t)?"array":typeof t},e.ExhaustSwitchError=function(t){function e(e){return t.call(this,"Unreachable case: ".concat(JSON.stringify(e)))||this}return o(e,t),e}(Error)},27009:(t,e)=>{"use strict";
1e.__esModule=!0,e.EvaluationDetails=void 0,e.EvaluationDetails=function(){function t(t,e,n){this.configSyncTime=t,this.initTime=e,this.reason=n,this.serverTime=Date.now()}return t.uninitialized=function(){return new t(0,0,"Uninitialized")},t.unsupported=function(e,n){return new t(e,n,"Unsupported")},t.persisted=function(e,n){return new t(e,n,"Persisted")},t.make=function(e,n,r){return new t(e,n,r)},t}()},34932:function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(s,a)}u((r=r.apply(t,e||[])).next())})},i=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){var l=[a,u];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,r=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){s=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){s.label=l[1];break}if(6===l[0]&&s.label<i[1]){s.label=i[1],i=l;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(l);break}i[2]&&s.ops.pop(),s.trys.pop();continue}l=e.call(t,s)}catch(t){l=[6,t],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}};e.__esModule=!0;var o=n(98170);e.default=function(){function t(){}return t.parseLookupResponse=function(t){return"object"!=typeof(null!=t?t:void 0)?null:t},t.parseBootstrapLookup=function(t){try{var e="string"==typeof t?JSON.parse(t):t;if(Array.isArray(e))return e;if("object"==typeof e)return Object.keys(e)}catch(t){}return null},t.updateIdList=function(t,e,n){var r=n.split(/\r?\n/);if("+"!==n.charAt(0)&&"-"!==n.charAt(0))throw delete t[e],Error("Seek range invalid.");for(var i=0;i<r.length;i++){var o=r[i];if(!(o.length<=1)){var s=o.slice(1).trim();"+"===o.charAt(0)?t[e].ids[s]=!0:"-"===o.charAt(0)&&delete t[e].ids[s]}}},t.removeOldIdLists=function(t,e){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&!Object.prototype.hasOwnProperty.call(e,r)&&n.push(r);for(var i in n)delete t[i]},t.saveToDataAdapter=function(t,e,n,s){return r(this,void 0,void 0,function(){var r,a,u,l,c,f,p,h;return i(this,function(i){switch(i.label){case 0:for(a=0,r=[],u=Object.entries(n);a<u.length;a++){for(h in c=(l=u[a])[0],f=l[1],p="",f.ids)Object.prototype.hasOwnProperty.call(f.ids,h)&&(p+="+".concat(h,"\n"));r.push(e.set((0,o.getDataAdapterKey)(t,o.DataAdapterKeyPath.IDList,o.CompressFormat.PlainText,c),p))}return[4,Promise.all(r)];case 1:return i.sent(),[4,e.set((0,o.getDataAdapterKey)(t,o.DataAdapterKeyPath.V1IDLists),JSON.stringify(s))];case 2:return i.sent(),[2]}})})},t}()},37744:(t,e)=>{"use strict";e.__esModule=!0,e.makeEmptyFeatureGate=e.makeFeatureGate=void 0,e.makeFeatureGate=function(t,e,n,r,i,o){return{name:t,ruleID:e,value:n,groupName:r,idType:i,evaluationDetails:o}},e.makeEmptyFeatureGate=function(t){return{name:t,ruleID:"",value:!1,groupName:null,idType:null,evaluationDetails:null}}},38479:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Prom
1ise))(function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(s,a)}u((r=r.apply(t,e||[])).next())})},a=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){var l=[a,u];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,r=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){s=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){s.label=l[1];break}if(6===l[0]&&s.label<i[1]){s.label=i[1],i=l;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(l);break}i[2]&&s.ops.pop(),s.trys.pop();continue}l=e.call(t,s)}catch(t){l=[6,t],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}};e.__esModule=!0,e.getEncodedBody=void 0;var u=n(83111);e.getEncodedBody=function(t,e,r){return s(this,void 0,void 0,function(){var i,s,l;return a(this,function(a){switch(a.label){case 0:if(i=t?JSON.stringify(t):void 0,!e||!i)return[2,{contents:i}];a.label=1;case 1:if(a.trys.push([1,5,,6]),"gzip"!==e)return[3,4];return[4,Promise.resolve().then(function(){return o(n(92102))})];case 2:return s=a.sent().gzip,[4,new Promise(function(t,e){s(i,function(n,r){if(n)return e(n);t(r)})})];case 3:return[2,{contents:a.sent(),contentEncoding:"gzip"}];case 4:return[3,6];case 5:return l=a.sent(),r.logError(l,u.StatsigContext.new({caller:"getEncodedBodyAsync"})),[2,{contents:i}];case 6:return[2,{contents:i}]}})})}},39418:function(t,e){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},r=this&&this.__spreadArray||function(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};e.__esModule=!0;var i=n(n({},console),{logLevel:"warn"}),o=null;e.default=function(){function t(){}return t.getLogger=function(){return i},t.debug=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if("debug"===i.logLevel){var o=this.sanitizeError(t);i.debug&&i.debug.apply(i,r([o],e,!1))}},t.info=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if("debug"===i.logLevel||"info"===i.logLevel){var o=this.sanitizeError(t);i.info&&i.info.apply(i,r([o],e,!1))}},t.warn=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if("debug"===i.logLevel||"info"===i.logLevel||"warn"===i.logLevel){var o=this.sanitizeError(t);i.warn.apply(i,r([o],e,!1))}},t.error=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if("debug"===i.logLevel||"info"===i.logLevel||"warn"===i.logLevel||"error"===i.logLevel){var o=this.sanitizeError(t);i.error.apply(i,r([o],e,!1))}},t.setLogger=function(t,e){i=t,o=e},t.resetLogger=function(){i=n(n({},console),{logLevel:"warn"})},t.sanitizeError=function(t){if(null===o)return t;try{if("string"==typeof t)return t.replace(RegExp(o,"g"),"******");if(t instanceof Error)return t.toString().replace(RegExp(o,"g"),"******")}catch(t){}return t},t}()},49483:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1e.__esModule=!0,e.MAX_OBJ_SIZE=void 0;var i=r(n(39418));e.MAX_OBJ_SIZE=4096;var o=function(){function t(){}return t.validateEventName=function(t){return null==t||0===t.length||"string"!=typeof t?(i.default.error("statsigSDK> EventName needs to be a string of non-zero length."),null):(this.shouldTrimParam(t,128)&&i.default.warn("statsigSDK> Event name is too large (max ".concat(128,"). It may be trimmed.")),t)},t.validateUserObject=function(t){return null==t?(i.default.warn("statsigSDK> User cannot be null."),null):null!=t&&"object"!=typeof t?(i.default.warn("statsigSDK> User is not set because it needs to be an object."),null):(null!=t.userID&&this.shouldTrimParam(t.userID,128)&&i.default.warn("statsigSDK> User ID is too large (max ".concat(128,"). It may be trimmed.")),this.shouldTrimParam(t,4096)&&i.default.warn("statsigSDK> User object is too large (max ".concat(4096,"). Some attributes may be stripped.")),t)},t.validateEventValue=function(t){return null==t?null:("string"==typeof t&&this.shouldTrimParam(t,128)&&i.default.warn("statsigSDK> Event value is too large (max ".concat(128,"). It may be trimmed.")),"object"==typeof t)?JSON.stringify(t):"number"==typeof t?t:t.toString()},t.validateEventMetadata=function(t){return null!=t&&"object"!=typeof t?(i.default.warn("statsigSDK> Metadata is not set because it needs to be an object."),null):(this.shouldTrimParam(t,e.MAX_OBJ_SIZE)&&i.default.warn("statsigSDK> Event metadata is too large (max ".concat(e.MAX_OBJ_SIZE,"). Some attributes may be stripped.")),t)},t.validateEventTime=function(t){return null!=t&&"number"!=typeof t?(i.default.warn("statsigSDK> Timestamp is not set because it needs to be a number."),null):t},t.shouldTrimParam=function(t,e){return null!=t&&("string"==typeof t?t.length>e:"object"==typeof t?this.approximateObjectSize(t)>e:"number"==typeof t&&t.toString().length>e)},t.approximateObjectSize=function(t){for(var e=0,n=Object.entries(t),r=0;r<n.length;r++){var i=n[r][0],o=n[r][1];"object"==typeof o&&null!==o?e+=this.approximateObjectSize(o):e+=String(o).length,e+=i.length}return e},t}();e.default=o},52370:(t,e)=>{"use strict";e.__esModule=!0,e.ConfigCondition=e.ConfigRule=e.ConfigSpec=void 0,e.ConfigSpec=function(){function t(t){this.name=t.name,this.type=t.type,this.salt=t.salt,this.defaultValue=t.defaultValue,this.enabled=t.enabled,this.idType=t.idType,this.rules=this.parseRules(t.rules),this.entity=t.entity,this.explicitParameters=t.explicitParameters,null!=t.version&&(this.version=t.version),null!==t.isActive&&(this.isActive=!0===t.isActive),this.hasSharedParams=null!=t.hasSharedParams&&!0===t.hasSharedParams,null!=t.targetAppIDs&&(this.targetAppIDs=t.targetAppIDs),null!==t.forwardAllExposures&&(this.forwardAllExposures=t.forwardAllExposures)}return t.prototype.parseRules=function(t){for(var e=[],r=0;r<t.length;r++){var i=new n(t[r]);e.push(i)}return e},t}();var n=function(){function t(t){var e,n;this.name=t.name,this.passPercentage=t.passPercentage,this.conditions=this.parseConditions(t.conditions),this.returnValue=t.returnValue,this.id=t.id,this.salt=t.salt,this.idType=t.idType,this.configDelegate=null!=(e=t.configDelegate)?e:null,this.groupName=null!=(n=t.groupName)?n:null,null!==t.isExperimentGroup&&(this.isExperimentGroup=t.isExperimentGroup),null!==t.samplingRate&&(this.sampleRate=t.samplingRate)}return t.prototype.parseConditions=function(t){var e=[];return null==t||t.forEach(function(t){var n=new r(t);e.push(n)}),e},t.prototype.isTargetingRule=function(){return"inlineTargetingRules"===this.id||"targetingGate"===this.id},t}();e.ConfigRule=n;var r=function(t){var e;if(this.type=t.type,this.targetValue=t.targetValue,this.operator=t.operator,this.field=t.field,this.additionalValues=null!=(e=t.additionalValues)?e:{},this.idType=t.idType,("any"===this.operator||"none"===this.operator)&&Array.isArray(this.targetValue)){this.targetValueSet=new Set;for(var n=this.targetValue,r=0;r<n.length;r++)this.targetValueSet.add(String(n[r])),this.targetValueSet.add(String(n[r]).toLowerCase())}if(("any_case_sensitive"===this.operator||"none_case_sensitive"===this.operator)&&Array.isArray(this.targetValue)){this.targetValueSet=new Set;for(var n=this.targetValue,r=0;r<n.length;r++)this.targetValueSet.add(String(n[r]))}};e.ConfigCondition=r},56658:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1e.__esModule=!0;var i=r(n(39418)),o=n(14035);e.default=function(){function t(t){this.storage=t}return t.prototype.load=function(e,n){if(null==this.storage)return null;var r=t.getStorageKey(e,n);if(!r)return null;try{return this.storage.load(r)}catch(t){return i.default.error("statsigSDK> Failed to load persisted values for key ".concat(r," (").concat(t.message,")")),null}},t.prototype.save=function(e,n,r,o){if(null!=this.storage){var s=t.getStorageKey(e,n);if(s)try{this.storage.save(s,r,o.toStickyValues())}catch(t){i.default.error("statsigSDK> Failed to save persisted values for key ".concat(s," (").concat(t.message,")"))}}},t.prototype.delete=function(e,n,r){if(null!=this.storage){var o=t.getStorageKey(e,n);if(o)try{this.storage.delete(o,r)}catch(t){i.default.error("statsigSDK> Failed to delete persisted values for key ".concat(o," (").concat(t.message,")"))}}},t.getStorageKey=function(t,e){var n=(0,o.getUnitID)(t,e);return n||i.default.warn("statsigSDK> No unit ID found for ID type ".concat(e)),"".concat(null!=n?n:"",":").concat(e)},t}()},63920:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(83111),i=null;if(!r.GlobalContext.isEdgeEnvironment)try{var o=(i=n(11711)).default;o&&"function"==typeof o&&(i=o)}catch(t){}e.default=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i?i.apply(void 0,t):fetch.apply(void 0,t)}},64619:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(27009);e.default=function(){function t(t,e,n,r,i,o,s,a,u,l,c,f,p){void 0===e&&(e=""),void 0===n&&(n=null),void 0===r&&(r=null),void 0===i&&(i=[]),void 0===o&&(o={}),void 0===s&&(s=null),void 0===a&&(a=null),void 0===l&&(l=!1),this.value=t,this.rule_id=e,"boolean"==typeof o?this.json_value={}:this.json_value=o,this.secondary_exposures=i,this.undelegated_secondary_exposures=i,this.config_delegate=a,this.unsupported=l,this.explicit_parameters=s,this.is_experiment_group=!1,this.group_name=n,this.id_type=r,this.configVersion=u,this.forward_all_exposures=null!=c&&c,this.sample_rate=f,this.seen_analytical_gates=null!=p&&p}return t.prototype.withEvaluationDetails=function(t){return this.evaluation_details=t,this},t.prototype.setIsExperimentGroup=function(t){void 0===t&&(t=!1),this.is_experiment_group=t},t.unsupported=function(e,n,i,o,s){return new t(!1,"",null,null,[],{},void 0,void 0,i,!0,o,s).withEvaluationDetails(r.EvaluationDetails.unsupported(e,n))},t.prototype.toStickyValues=function(){var t,e;return{value:this.value,json_value:this.json_value,rule_id:this.rule_id,group_name:this.group_name,secondary_exposures:this.secondary_exposures,undelegated_secondary_exposures:this.undelegated_secondary_exposures,config_delegate:this.config_delegate,explicit_parameters:this.explicit_parameters,time:null!=(e=null==(t=this.evaluation_details)?void 0:t.configSyncTime)?e:Date.now(),configVersion:this.configVersion}},t.fromStickyValues=function(e,n){var i=new t(e.value,e.rule_id,e.group_name,null,e.secondary_exposures,e.json_value,e.explicit_parameters,e.config_delegate,e.configVersion);return i.evaluation_details=r.EvaluationDetails.persisted(e.time,n),i.undelegated_secondary_exposures=e.undelegated_secondary_exposures,i.is_experiment_group=!0,i},t}()},68150:(t,e)=>{"use strict";e.__esModule=!0,e.SHA256=void 0,e.SHA256=function(t){return new o().update(t)};var n=[-0x80000000,8388608,32768,128],r=[24,16,8,0],i=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],o=function(){function t(){this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=0x6a09e66
17,this.h1=0xbb67ae85,this.h2=0x3c6ef372,this.h3=0xa54ff53a,this.h4=0x510e527f,this.h5=0x9b05688c,this.h6=0x1f83d9ab,this.h7=0x5be0cd19,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.lastByteIndex=-1}return t.prototype.update=function(t){if(this.finalized)return this;if("string"!=typeof t)throw Error('Must be of type "string"');for(var e,n,i=0,o=t.length,s=this.blocks;i<o;){for(this.hashed&&(this.hashed=!1,s[0]=this.block,s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),n=this.start;i<o&&n<64;++i)(e=t.charCodeAt(i))<128?s[n>>2]|=e<<r[3&n++]:(e<2048?s[n>>2]|=(192|e>>6)<<r[3&n++]:(e<55296||e>=57344?s[n>>2]|=(224|e>>12)<<r[3&n++]:(e=65536+((1023&e)<<10|1023&t.charCodeAt(++i)),s[n>>2]|=(240|e>>18)<<r[3&n++],s[n>>2]|=(128|e>>12&63)<<r[3&n++]),s[n>>2]|=(128|e>>6&63)<<r[3&n++]),s[n>>2]|=(128|63&e)<<r[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,n>=64?(this.block=s[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>0xffffffff&&(this.hBytes+=this.bytes/0x100000000|0,this.bytes=this.bytes%0x100000000),this},t.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=n[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},t.prototype.hash=function(){var t,e,n,r,o,s,a,u,l,c,f=this.blocks,p=this.h0,h=this.h1,d=this.h2,g=this.h3,v=this.h4,y=this.h5,m=this.h6,_=this.h7;for(t=16;t<64;++t)e=((o=f[t-15])>>>7|o<<25)^(o>>>18|o<<14)^o>>>3,n=((o=f[t-2])>>>17|o<<15)^(o>>>19|o<<13)^o>>>10,f[t]=f[t-16]+e+f[t-7]+n|0;for(t=0,c=h&d;t<64;t+=4)this.first?(a=0x2a01a605,_=(o=f[0]-0xc881298)-0x5ab00ac6|0,g=o+0x8909ae5|0,this.first=!1):(e=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),n=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),r=(a=p&h)^p&d^c,o=_+n+(v&y^~v&m)+i[t]+f[t],s=e+r,_=g+o|0,g=o+s|0),e=(g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10),n=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),r=(u=g&p)^g&h^a,o=m+n+(_&v^~_&y)+i[t+1]+f[t+1],s=e+r,m=d+o|0,e=((d=o+s|0)>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),n=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7),r=(l=d&g)^d&p^u,o=y+n+(m&_^~m&v)+i[t+2]+f[t+2],s=e+r,y=h+o|0,e=((h=o+s|0)>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),n=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7),r=(c=h&d)^h&g^l,o=v+n+(y&m^~y&_)+i[t+3]+f[t+3],s=e+r,v=p+o|0,p=o+s|0;this.h0=this.h0+p|0,this.h1=this.h1+h|0,this.h2=this.h2+d|0,this.h3=this.h3+g|0,this.h4=this.h4+v|0,this.h5=this.h5+y|0,this.h6=this.h6+m|0,this.h7=this.h7+_|0},t.prototype.arrayBuffer=function(){return this._getOutputs().buffer},t.prototype.dataView=function(){return this._getOutputs().dataView},t.prototype._getOutputs=function(){this.finalize();var t=new ArrayBuffer(32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),e.setUint32(28,this.h7),{dataView:e,buffer:t}},t}()},69272:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(){function t(t){void 0===t&&(t=200),this.queue=[],this.drainInterval=t,this.drainTimer=this._scheduleDrain()}return t.prototype.enqueue=function(t,e){var n={expiry:Date.now()+e,promise:t,taskCompleted:!1,resolver:null,rejector:null},r=new Promise(function(t,e){n.resolver=t,n.rejector=e});this.queue.push(n);var i=(function(t){t.taskCompleted=!0}).bind(this);return t.then(function(t){return i(n),null!=n.resolver&&n.resolver(t),t},function(t){return i(n),null!=n.rejector&&n.rejector(),t}),r},t.prototype._scheduleDrain=function(){var t=setTimeout(this._drainQueue.bind(this),this.drainInterval);return t.unref&&t.unref(),t},t.prototype._drainQueue=function(){var t=this,e=this.queue;this.queue=[];var n=Date.now();e.forEach(function(e){e.taskCompleted||(e.expiry>n?t.queue.push(e):null!=e.rejector&&e.rejector("time_out"))},this),this.drainTimer=this._scheduleDrain()},t.prototype.shutdown=function(){null!=this.drainTimer&&clearTimeout(this.drainTimer)},t}()},74797:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1e.__esModule=!0,e.ExceptionEndpoint=void 0;var o=i(n(99313)),s=n(556),a=i(n(39418)),u=n(21266),l=i(n(63920));e.ExceptionEndpoint="https://statsigapi.net/v1/sdk_exception";var c=function(){function t(t,e,n){var r;this.statsigMetadata=(0,u.getStatsigMetadata)(),this.seen=new Set,this.sdkKey=t,this.optionsLoggingCopy=e,this.statsigMetadata.sessionID=n,this.networkOverrideFunc=null!=(r=e.networkOverrideFunc)?r:null}return t.prototype.swallow=function(t,e){this.capture(t,function(){},e)},t.prototype.capture=function(t,e,n){var r=this,i=null;try{i=this.beginMarker(n.caller,n.configName);var o=t(n);if(o instanceof Promise)return o.catch(function(t){return r.onCaught(t,e,n)});return this.endMarker(n.caller,!0,i,n.configName),o}catch(t){return this.endMarker(n.caller,!1,i,n.configName),this.onCaught(t,e,n)}},t.prototype.setup=function(t){this.sdkKey=t},t.prototype.onCaught=function(t,e,n){if(t instanceof s.StatsigUninitializedError||t instanceof s.StatsigInvalidArgumentError||t instanceof s.StatsigTooManyRequestsError)throw t;return t instanceof s.StatsigLocalModeNetworkError||(a.default.error("[Statsig] An unexpected exception occurred.",t),this.logError(t,n)),e(n,t)},t.prototype.logError=function(t,n){var i,o;try{if(!this.sdkKey||this.optionsLoggingCopy.disableAllLogging)return;var s=null!=t?t:Error("[Statsig] Error was empty"),a=s instanceof Error,c=a&&s.name?s.name:"No Name",f=this.seen.has(c);if(!0!==n.bypassDedupe&&f)return;this.seen.add(c);var p=a?s.stack:this.getDescription(s),h=JSON.stringify(r({exception:c,info:p,statsigMetadata:null!=(i=this.statsigMetadata)?i:{},statsigOptions:this.optionsLoggingCopy},n.getContextForLogging()));(null!=(o=this.networkOverrideFunc)?o:l.default)(e.ExceptionEndpoint,{method:"POST",headers:{"STATSIG-API-KEY":this.sdkKey,"STATSIG-SDK-TYPE":(0,u.getSDKType)(),"STATSIG-SDK-VERSION":(0,u.getSDKVersion)(),"Content-Type":"application/json"},body:h}).catch(function(){})}catch(t){}},t.prototype.getDescription=function(t){try{return JSON.stringify(t)}catch(t){return"[Statsig] Failed to get string for error."}},t.prototype.beginMarker=function(t,e){if(null==t)return null;var n=o.default.mark.api_call(t);if(!n)return null;var r=o.default.getMarkerCount("api_call"),i="".concat(t,"_").concat(r);return n.start({markerID:i,configName:e},"api_call"),i},t.prototype.endMarker=function(t,e,n,r){if(null!=t){var i=o.default.mark.api_call(t);n&&i&&i.end({markerID:n,success:e,configName:r},"api_call")}},t}();e.default=c},81922:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(21266);e.default=function(){function t(t,e,n,i,o,s,a,u){var l;void 0===e&&(e={}),void 0===n&&(n=""),void 0===i&&(i=null),void 0===o&&(o=null),void 0===s&&(s=[]),void 0===a&&(a=null),void 0===u&&(u=null),this._onDefaultValueFallback=null,("string"!=typeof t||0===t.length)&&(t=""),(null==e||"object"!=typeof e)&&(e={}),this.name=t,this.value=null!=(l=(0,r.clone)(e))?l:{},this._ruleID=n,this._groupName=i,this._idType=o,this._secondaryExposures=Array.isArray(s)?s:[],this._onDefaultValueFallback=a,this._evaluationDetails=u}return t.prototype.get=function(t,e,n){void 0===n&&(n=null),e=null!=e?e:null;var i,o,s=this.getValue(t,e);if(null==s)return e;var a=(0,r.getTypeOf)(e),u=(0,r.getTypeOf)(s);return null!=n?n(s)?s:(null==(i=this._onDefaultValueFallback)||i.call(this,this,t,a,u),e):null==e||a===u?s:(null==(o=this._onDefaultValueFallback)||o.call(this,this,t,a,u),e)},t.prototype.getValue=function(t,e){var n;return null==t?this.value:(void 0===e&&(e=null),null!=(n=this.value[t])?n:e)},t.prototype.getRuleID=function(){return this._ruleID},t.prototype.getGroupName=function(){return this._groupName},t.prototype.getIDType=function(){return this._idType},t.prototype.getEvaluationDetails=function(){return this._evaluationDetails},t.prototype._getSecondaryExposures=function(){return this._secondaryExposures},t}()},82141:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e};
1e.__esModule=!0;var s=n(21266),a=o(n(49483));e.default=function(){function t(t){var e;this.user=null,this.value=null,this.metadata=null,this.secondaryExposures=[],this.statsigMetadata={},this.time=Date.now(),this.eventName=null!=(e=a.default.validateEventName(t))?e:"invalid_event"}return t.prototype.setUser=function(t){var e=a.default.validateUserObject(t);null!=e&&(this.user=(0,s.clone)(e),null!=this.user&&(this.user.privateAttributes=null))},t.prototype.setValue=function(t){var e=a.default.validateEventValue(t);null!=e&&(this.value=e)},t.prototype.setMetadata=function(t){var e=a.default.validateEventMetadata(t);null!=e&&(this.metadata=(0,s.clone)(e))},t.prototype.setSamplingDecision=function(t){t.samplingRate&&(this.statsigMetadata.samplingRate=t.samplingRate),t.shadowLogged&&(this.statsigMetadata.shadowLogged=t.shadowLogged),t.samplingMode&&(this.statsigMetadata.samplingMode=t.samplingMode)},t.prototype.setDiagnosticsMetadata=function(t){var e=a.default.approximateObjectSize(t),n=0,r=(0,s.clone)(t);e>a.MAX_OBJ_SIZE&&(t.statsigOptions&&(n=a.default.approximateObjectSize(t.statsigOptions),r.statsigOptions="dropped"),e-n>a.MAX_OBJ_SIZE&&("initialize"===t.context?r.markers=t.markers.filter(function(t){return"overall"===t.key}):r.markers="dropped")),this.metadata=r},t.prototype.setTime=function(t){var e=a.default.validateEventTime(t);null!=e&&(this.time=e)},t.prototype.setSecondaryExposures=function(t){this.secondaryExposures=Array.isArray(t)?t:[]},t.prototype.validate=function(){return"string"==typeof this.eventName&&this.eventName.length>0},t.prototype.toObject=function(){return{eventName:this.eventName,metadata:this.metadata,time:this.time,user:this.user,value:this.value,secondaryExposures:this.secondaryExposures,statsigMetadata:this.statsigMetadata}},t}()},83111:function(t,e){"use strict";var n,r=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};e.__esModule=!0,e.GlobalContext=e.InitializeContext=e.EvaluationContext=e.StatsigContext=void 0;var o=function(){function t(t){this.ctx=t,this.startTime=Date.now(),this.caller=t.caller,this.eventCount=t.eventCount,this.configName=t.configName,this.clientKey=t.clientKey,this.hash=t.clientKey,this.bypassDedupe=t.bypassDedupe,this.userPersistedValues=t.userPersistedValues,this.persistentAssignmentOptions=t.persistentAssignmentOptions}return t.new=function(t){return new this(t)},t.prototype.getContextForLogging=function(){return{tag:this.caller,eventCount:this.eventCount,configName:this.configName,clientKey:this.clientKey,hash:this.clientKey}},t.prototype.getRequestContext=function(){return this.ctx},t}();e.StatsigContext=o,e.EvaluationContext=function(t){function e(e,n,r,i,o,s,a){var u=t.call(this,e)||this;return u.seenAnalyticalGates=!1,u.user=n,u.spec=r,u.targetAppID=i,u.onlyEvaluateTargeting=o,u.samplingRate=s,u.seenAnalyticalGates=null!=a&&a,u}return r(e,t),e.new=function(t){var e=t.user,n=t.spec;return new this(i(t,["user","spec"]),e,n)},e.get=function(t,n){return new e(t,n.user,n.spec,n.targetAppID,n.onlyEvaluateTargeting,n.samplingRate,n.seenAnalyticalGates)},e}(o),e.InitializeContext=function(t){function e(e,n){var r=t.call(this,e)||this;return r.sdkKey=n,r.success=!0,r}return r(e,t),e.new=function(t){return new this(t,t.sdkKey)},e.prototype.setSuccess=function(t){this.success=!0,this.source=t},e.prototype.setFailed=function(t){this.success=!1,this.error=t},e.prototype.getInitDetails=function(){return{duration:Date.now()-this.startTime,success:this.success,error:this.error,source:this.source}},e}(o),e.GlobalContext=function(){function t(){}return t.isEdgeEnvironment="string"==typeof EdgeRuntime,t}()},83355:(t,e,n)=>{"use strict";n.r(e),n.d(e,{NIL:()=>L,parse:()=>v,stringify:()=>p,v1:()=>g,v3:()=>D,v4:()=>k,v5:()=>A,validate:()=>l,version:()=>O});var r,i,o,s=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(s)}let u=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,l=function(t){return"string"==typeof t&&u.test(t)};for(var c=[],f=0;f<256;++f)c.push((f+256).toString(16).substr(1));let p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[t[e+0]]+c[t[e+1]]+c[t[e+2]]+c[t[e+3]]+"-"+c[t[e+4]]+c[t[e+5]]+"-"+c[t[e+6]]+c[t[e+7]]+"-"+c[t[e+8]]+c[t[e+9]]+"-"+c[t[e+10]]+c[t[e+11]]+c[t[e+12]]+c[t[e+13]]+c[t[e+14]]+c[t[e+15]]).toLowerCase();
1if(!l(n))throw TypeError("Stringified UUID is invalid");return n};var h=0,d=0;let g=function(t,e,n){var r=e&&n||0,s=e||Array(16),u=(t=t||{}).node||i,l=void 0!==t.clockseq?t.clockseq:o;if(null==u||null==l){var c=t.random||(t.rng||a)();null==u&&(u=i=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==l&&(l=o=(c[6]<<8|c[7])&16383)}var f=void 0!==t.msecs?t.msecs:Date.now(),g=void 0!==t.nsecs?t.nsecs:d+1,v=f-h+(g-d)/1e4;if(v<0&&void 0===t.clockseq&&(l=l+1&16383),(v<0||f>h)&&void 0===t.nsecs&&(g=0),g>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");h=f,d=g,o=l;var y=((0xfffffff&(f+=122192928e5))*1e4+g)%0x100000000;s[r++]=y>>>24&255,s[r++]=y>>>16&255,s[r++]=y>>>8&255,s[r++]=255&y;var m=f/0x100000000*1e4&0xfffffff;s[r++]=m>>>8&255,s[r++]=255&m,s[r++]=m>>>24&15|16,s[r++]=m>>>16&255,s[r++]=l>>>8|128,s[r++]=255&l;for(var _=0;_<6;++_)s[r+_]=u[_];return e||p(s)},v=function(t){if(!l(t))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/0x10000000000&255,n[11]=e/0x100000000&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n};function y(t,e,n){function r(t,r,i,o){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],n=0;n<t.length;++n)e.push(t.charCodeAt(n));return e}(t)),"string"==typeof r&&(r=v(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+t.length);if(s.set(r),s.set(t,r.length),(s=n(s))[6]=15&s[6]|e,s[8]=63&s[8]|128,i){o=o||0;for(var a=0;a<16;++a)i[o+a]=s[a];return i}return p(s)}try{r.name=t}catch(t){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function m(t){return(t+64>>>9<<4)+14+1}function _(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function b(t,e,n,r,i,o){var s;return _((s=_(_(e,t),_(r,o)))<<i|s>>>32-i,n)}function S(t,e,n,r,i,o,s){return b(e&n|~e&r,t,e,i,o,s)}function x(t,e,n,r,i,o,s){return b(e&r|n&~r,t,e,i,o,s)}function w(t,e,n,r,i,o,s){return b(e^n^r,t,e,i,o,s)}function E(t,e,n,r,i,o,s){return b(n^(e|~r),t,e,i,o,s)}let D=y("v3",48,function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var n=0;n<e.length;++n)t[n]=e.charCodeAt(n)}return function(t){for(var e=[],n=32*t.length,r="0123456789abcdef",i=0;i<n;i+=8){var o=t[i>>5]>>>i%32&255,s=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);e.push(s)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[m(e)-1]=e;for(var n=0x67452301,r=-0x10325477,i=-0x67452302,o=0x10325476,s=0;s<t.length;s+=16){var a=n,u=r,l=i,c=o;n=S(n,r,i,o,t[s],7,-0x28955b88),o=S(o,n,r,i,t[s+1],12,-0x173848aa),i=S(i,o,n,r,t[s+2],17,0x242070db),r=S(r,i,o,n,t[s+3],22,-0x3e423112),n=S(n,r,i,o,t[s+4],7,-0xa83f051),o=S(o,n,r,i,t[s+5],12,0x4787c62a),i=S(i,o,n,r,t[s+6],17,-0x57cfb9ed),r=S(r,i,o,n,t[s+7],22,-0x2b96aff),n=S(n,r,i,o,t[s+8],7,0x698098d8),o=S(o,n,r,i,t[s+9],12,-0x74bb0851),i=S(i,o,n,r,t[s+10],17,-42063),r=S(r,i,o,n,t[s+11],22,-0x76a32842),n=S(n,r,i,o,t[s+12],7,0x6b901122),o=S(o,n,r,i,t[s+13],12,-0x2678e6d),i=S(i,o,n,r,t[s+14],17,-0x5986bc72),r=S(r,i,o,n,t[s+15],22,0x49b40821),n=x(n,r,i,o,t[s+1],5,-0x9e1da9e),o=x(o,n,r,i,t[s+6],9,-0x3fbf4cc0),i=x(i,o,n,r,t[s+11],14,0x265e5a51),r=x(r,i,o,n,t[s],20,-0x16493856),n=x(n,r,i,o,t[s+5],5,-0x29d0efa3),o=x(o,n,r,i,t[s+10],9,0x2441453),i=x(i,o,n,r,t[s+15],14,-0x275e197f),r=x(r,i,o,n,t[s+4],20,-0x182c0438),n=x(n,r,i,o,t[s+9],5,0x21e1cde6),o=x(o,n,r,i,t[s+14],9,-0x3cc8f82a),i=x(i,o,n,r,t[s+3],14,-0xb2af279),r=x(r,i,o,n,t[s+8],20,0x455a14ed),n=x(n,r,i,o,t[s+13],5,-0x561c16fb),o=x(o,n,r,i,t[s+2],9,-0x3105c08),i=x(i,o,n,r,t[s+7],14,0x676f02d9),r=x(r,i,o,n,t[s+12],20,-0x72d5b376),n=w(n,r,i,o,t[s+5],4,-378558),o=w(o,n,r,i,t[s+8],11,-0x788e097f),i=w(i,o,n,r,t[s+11],16,0x6d9d6122),r=w(r,i,o,n,t[s+14],23,-0x21ac7f4),n=w(n,r,i,o,t[s+1],4,-0x5b4115bc),o=w(o,n,r,i,t[s+4],11,0x4bdecfa9),i=w(i,o,n,r,t[s+7],16,-0x944b4a0),r=w(r,i,o,n,t[s+10],23,-0x41404390),n=w(n,r,i,o,t[s+13],4,0x289b7ec6),o=w(o,n,r,i,t[s],11,-0x155ed806),i=w(i,o,n,r,t[s+3],16,-0x2b10cf7b),r=w(r,i,o,n,t[s+6],23,0x4881d05
1),n=w(n,r,i,o,t[s+9],4,-0x262b2fc7),o=w(o,n,r,i,t[s+12],11,-0x1924661b),i=w(i,o,n,r,t[s+15],16,0x1fa27cf8),r=w(r,i,o,n,t[s+2],23,-0x3b53a99b),n=E(n,r,i,o,t[s],6,-0xbd6ddbc),o=E(o,n,r,i,t[s+7],10,0x432aff97),i=E(i,o,n,r,t[s+14],15,-0x546bdc59),r=E(r,i,o,n,t[s+5],21,-0x36c5fc7),n=E(n,r,i,o,t[s+12],6,0x655b59c3),o=E(o,n,r,i,t[s+3],10,-0x70f3336e),i=E(i,o,n,r,t[s+10],15,-1051523),r=E(r,i,o,n,t[s+1],21,-0x7a7ba22f),n=E(n,r,i,o,t[s+8],6,0x6fa87e4f),o=E(o,n,r,i,t[s+15],10,-0x1d31920),i=E(i,o,n,r,t[s+6],15,-0x5cfebcec),r=E(r,i,o,n,t[s+13],21,0x4e0811a1),n=E(n,r,i,o,t[s+4],6,-0x8ac817e),o=E(o,n,r,i,t[s+11],10,-0x42c50dcb),i=E(i,o,n,r,t[s+2],15,0x2ad7d2bb),r=E(r,i,o,n,t[s+9],21,-0x14792c6f),n=_(n,a),r=_(r,u),i=_(i,l),o=_(o,c)}return[n,r,i,o]}(function(t){if(0===t.length)return[];for(var e=8*t.length,n=new Uint32Array(m(e)),r=0;r<e;r+=8)n[r>>5]|=(255&t[r/8])<<r%32;return n}(t),8*t.length))}),k=function(t,e,n){var r=(t=t||{}).random||(t.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return p(r)};function I(t,e){return t<<e|t>>>32-e}let A=y("v5",80,function(t){var e=[0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xca62c1d6],n=[0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0];if("string"==typeof t){var r=unescape(encodeURIComponent(t));t=[];for(var i=0;i<r.length;++i)t.push(r.charCodeAt(i))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var o=Math.ceil((t.length/4+2)/16),s=Array(o),a=0;a<o;++a){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=t[64*a+4*l]<<24|t[64*a+4*l+1]<<16|t[64*a+4*l+2]<<8|t[64*a+4*l+3];s[a]=u}s[o-1][14]=(t.length-1)*8/0x100000000,s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=(t.length-1)*8|0;for(var c=0;c<o;++c){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=s[c][p];for(var h=16;h<80;++h)f[h]=I(f[h-3]^f[h-8]^f[h-14]^f[h-16],1);for(var d=n[0],g=n[1],v=n[2],y=n[3],m=n[4],_=0;_<80;++_){var b=Math.floor(_/20),S=I(d,5)+function(t,e,n,r){switch(t){case 0:return e&n^~e&r;case 1:case 3:return e^n^r;case 2:return e&n^e&r^n&r}}(b,g,v,y)+m+e[b]+f[_]>>>0;m=y,y=v,v=I(g,30)>>>0,g=d,d=S}n[0]=n[0]+d>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+v>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+m>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>
1>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}),L="00000000-0000-0000-0000-000000000000",O=function(t){if(!l(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}},83469:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(s,a)}u((r=r.apply(t,e||[])).next())})},a=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){var l=[a,u];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,r=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){s=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){s.label=l[1];break}if(6===l[0]&&s.label<i[1]){s.label=i[1],i=l;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(l);break}i[2]&&s.ops.pop(),s.trys.pop();continue}l=e.call(t,s)}catch(t){l=[6,t],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1e.__esModule=!0,e.Statsig=e.StatsigServer=e.Layer=e.DataAdapterKeyPath=e.DynamicConfig=void 0;var l=u(n(81922));e.DynamicConfig=l.default;var c=n(556),f=n(98170);e.DataAdapterKeyPath=f.DataAdapterKeyPath;var p=u(n(20932));e.Layer=p.default;var h=u(n(39418)),d=u(n(86926)),g=u(n(85997));e.StatsigServer=g.default,o(n(5428),e);var v={StatsigServer:g.default,DataAdapterKeyPath:f.DataAdapterKeyPath,DynamicConfig:l.default,Layer:p.default,StatsigInvalidArgumentError:c.StatsigInvalidArgumentError,StatsigLocalModeNetworkError:c.StatsigLocalModeNetworkError,StatsigTooManyRequestsError:c.StatsigTooManyRequestsError,StatsigUninitializedError:c.StatsigUninitializedError};e.Statsig=r(r({},v),{initialize:function(t,e){var n;return void 0===e&&(e={}),s(this,void 0,void 0,function(){var r,i;return a(this,function(o){switch(o.label){case 0:e.logger&&h.default.setLogger(e.logger,t),r=null!=(n=d.default.getInstance())?n:new g.default(t,e),null==d.default.getInstance()&&d.default.setInstance(r),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,r.initializeAsync()];case 2:return[2,o.sent()];case 3:return i=o.sent(),d.default.setInstance(null),[2,Promise.reject(i)];case 4:return[2]}})})},checkGate:function(t,e,n){return this._enforceServer().checkGate(t,e,n)},getFeatureGate:function(t,e,n){return this._enforceServer().getFeatureGate(t,e,n)},manuallyLogGateExposure:function(t,e){return this._enforceServer().logGateExposure(t,e)},getConfig:function(t,e,n){return this._enforceServer().getConfig(t,e,n)},manuallyLogConfigExposure:function(t,e){return this._enforceServer().logConfigExposure(t,e)},getExperiment:function(t,e,n){return this._enforceServer().getExperiment(t,e,n)},getExperimentLayer:function(t){return this._enforceServer().getExperimentLayer(t)},manuallyLogExperimentExposure:function(t,e){return this._enforceServer().logExperimentExposure(t,e)},getLayer:function(t,e,n){return this._enforceServer().getLayer(t,e,n)},manuallyLogLayerParameterExposure:function(t,e,n){this._enforceServer().logLayerParameterExposure(t,e,n)},getUserPersistedValues:function(t,e){return this._enforceServer().getUserPersistedValues(t,e)},getPromptSet:function(t){return this._enforceServer().getPromptSet(t)},logEvent:function(t,e,n,r){void 0===n&&(n=null),void 0===r&&(r=null),this._enforceServer().logEvent(t,e,n,r)},logEventObject:function(t){this._enforceServer().logEventObject(t)},shutdown:function(t){this._enforceServer().shutdown(t),h.default.resetLogger()},shutdownAsync:function(t){return s(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return[4,this._enforceServer().shutdownAsync(t)];case 1:return e.sent(),h.default.resetLogger(),[2]}})})},getClientInitializeResponse:function(t,e,n){return this._enforceServer().getClientInitializeResponse(t,e,n)},overrideGate:function(t,e,n){void 0===n&&(n=""),this._enforceServer().overrideGate(t,e,n)},overrideConfig:function(t,e,n){void 0===n&&(n=""),this._enforceServer().overrideConfig(t,e,n)},overrideLayer:function(t,e,n){void 0===n&&(n=""),this._enforceServer().overrideLayer(t,e,n)},flush:function(t){var e=d.default.getInstance();return null==e?Promise.resolve():e.flush(t)},clearAllGateOverrides:function(){this._enforceServer().clearAllGateOverrides()},clearAllConfigOverrides:function(){this._enforceServer().clearAllConfigOverrides()},clearAllLayerOverrides:function(){this._enforceServer().clearAllLayerOverrides()},getFeatureGateList:function(){return this._enforceServer().getFeatureGateList()},getDynamicConfigList:function(){return this._enforceServer().getDynamicConfigList()},getExperimentList:function(){return this._enforceServer().getExperimentList()},getAutotuneList:function(){return this._enforceServer().getAutotuneList()},getLayerList:function(){return this._enforceServer().getLayerList()},syncConfigSpecs:function(){return this._enforceServer().syncStoreSpecs()},syncIdLists:function(){return this._enforceServer().syncStoreIdLists()},checkGateSync:function(t,e){return this._enforceServer().checkGateSync(t,e)},getFeatureGateSync:function(t,e){return this._enforceServer().getFeatureGateSync(t,e)},checkGateWithExposureLoggingDisabledSync:function(t,e){return this._enforceServer().checkGateWithExposureLoggingDisabledSync(t,e)},getConfigSync:function(t,e){return this._enforceServer().getConfigSync(t,e)},getConfigWithExposureLoggingDisabledSync:function(t,e){return this._enforceServer().getConfigWithExposureLoggingDisabledSync(t,e)},getExperimentSync:function(t,e,n){return this._enforceServer().getExperimentSync(t,e,n)},getExperimentWithExposureLoggingDisabledSync:function(t,e,n){return this._enforceServer().getExperimentWithExposureLoggingDisabledSync(t,e,n)},getLayerSync:function(t,e,n){return this._enforceServer().getLayerSync(t,e,n)},getLayerWithExposureLoggingDisabledSync:function(t,e,n){return this._enforceServer().getLayerWithExposureLoggingDisabledSync(t,e,n)},checkGateWithExposureLoggingDisabled:function(t,e){return this._enforceServer().checkGateWithExposureLoggingDisabled(t,e)},getFeatureGateWithExposureLoggingDisabled:function(t,e){return this._enforceServer().getFeatureGateWithExposureLoggingDisabled(t,e)},getExperimentWithExposureLoggingDisabled:function(t,e,n){return this._enforceServer().getExperimentWithExposureLoggingDisabled(t,e,n)},getConfigWithExposureLoggingDisabled:function(t,e){return this._enforceServer().getConfigWithExposureLoggingDisabled(t,e)},getLayerWithExposureLoggingDisabled:function(t,e,n){return this._enforceServer().getLayerWithExposureLoggingDisabled(t,e,n)},_enforceServer:function(){var t=d.default.getInstance();if(null==t)throw new c.StatsigUninitializedError;return t}}),e.default=e.Statsig,t.exports=r({default:e.Statsig},e.Statsig)},85496:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});let r=(0,n(11572).A)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},86926:(t,e)=>{"use strict";
1e.__esModule=!0;var n=null;e.default=function(){function t(){}return t.getInstance=function(){return n},t.setInstance=function(t){n=t},t}()},88264:(t,e,n)=>{"use strict";e.__esModule=!0,e.hashUnitIDForIDList=e.hashString=e.sha256Hash=e.bigqueryHash=e.sha256HashBase64=e.djb2HashForObject=e.djb2Hash=void 0;var r=n(94734),i=n(68150);function o(t){return String(function(t){for(var e=0,n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n),e&=e;return e}(t)>>>0)}function s(t){var e=(0,i.SHA256)(t);return r.Base64.encodeArrayBuffer(e.arrayBuffer())}function a(t,e){switch(void 0===e&&(e="djb2"),e){case"sha256":return s(t);case"djb2":return o(t);default:return t}}e.djb2Hash=o,e.djb2HashForObject=function(t){return o(JSON.stringify(function t(e){if(null==e)return null;var n=Object.keys(e).sort(),r={};return n.forEach(function(n){var i=e[n];i instanceof Object&&(i=t(i)),r[n]=i}),r}(t)))},e.sha256HashBase64=s,e.bigqueryHash=function(t){var e=new DataView((0,i.SHA256)(t).arrayBuffer()).getBigUint64(0,!1),n=BigInt("9223372036854775808"),r=BigInt("18446744073709551616");return e>=n&&(e-=r),e},e.sha256Hash=function(t){return(0,i.SHA256)(t).dataView()},e.hashString=a,e.hashUnitIDForIDList=function(t,e){return(void 0===e&&(e="sha256"),"string"!=typeof t||null==t)?"":a(t,e).substr(0,8)}},89678:(t,e,n)=>{t.exports={countryCodes:[],ipRanges:[],countryTable:[],init:function(){if(this._initCalled)return;this._initCalled=!0;let t=n(93455),e=0;for(;e<t.length;){let n=t[e++],r=t[e++];if(this.countryTable.push(""+String.fromCharCode(n)+String.fromCharCode(r)),"*"===String.fromCharCode(n))break}let r=0;for(;e<t.length;){let n=0,i=t[e++];if(i<240)n=i;else if(242==i)n=t[e++]|t[e++]<<8;else if(243==i){let r=t[e++];n=r|t[e++]<<8|t[e++]<<16}r+=256*n;let o=t[e++];this.ipRanges.push(r),this.countryCodes.push(this.countryTable[o])}delete n.c[93455]},lookupStr:function(t){let e=t.split(".");if(4!==e.length)return null;let n=0x1000000*parseInt(e[0])+(parseInt(e[1])<<16)+(parseInt(e[2])<<8)+parseInt(e[3]);return this.lookupNumeric(n)},lookupNumeric:function(t){if(!this.countryCodes)throw Error("ip3country::lookupNumeric> Please call init first");let e=this.binarySearch(t),n=this.countryCodes[e];return"--"===n?null:n},binarySearch:function(t){let e=0,n=this.ipRanges.length-1;for(;e<n;){let r=e+n>>>1;this.ipRanges[r]<=t?e=r+1:n=r}return e}}},91312:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});let r=(0,n(11572).A)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},93361:(t,e,n)=>{"use strict";e.__esModule=!0,e.is_hash_in_sampling_rate=e.compute_dedupe_key_for_layer=e.compute_dedupe_key_for_config=e.compute_dedupe_key_for_gate=e.compute_user_key=void 0;var r=n(88264);function i(t,e){var n="u:".concat(t||"",";");if(e)for(var r=0,i=Object.entries(e);r<i.length;r++){var o=i[r],s=o[0],a=o[1];n+="".concat(s,":").concat(a,";")}return n}e.compute_user_key=i,e.compute_dedupe_key_for_gate=function(t,e,n,r,o){var s=i(r,o);return"n:".concat(t,";").concat(s,"r:").concat(e,";v:").concat(String(n))},e.compute_dedupe_key_for_config=function(t,e,n,r){var o=i(n,r);return"n:".concat(t,";").concat(o,"r:").concat(e)},e.compute_dedupe_key_for_layer=function(t,e,n,r,o,s){var a=i(o,s);return"n:".concat(t,";e:").concat(e,";p:").concat(n,";").concat(a,"r:").concat(r)},e.is_hash_in_sampling_rate=function(t,e){return(0,r.bigqueryHash)(t)%BigInt(e)===BigInt(0)}},93667:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(s,a)}u((r=r.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){var l=[a,u];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,r=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){s=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){s.label=l[1];break}if(6===l[0]&&s.label<i[1]){s.label=i[1],i=l;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(l);break}i[2]&&s.ops.pop(),s.trys.pop();continue}l=e.call(t,s)}catch(t){l=[6,t],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1e.__esModule=!0,e.STATSIG_CDN=e.STATSIG_API=void 0;var a=s(n(99313)),u=n(556),l=n(21266),c=s(n(69272)),f=n(38479),p=n(88264),h=s(n(63920)),d=n(83111),g=[0,408,500,502,503,504,522,524,599];e.STATSIG_API="https://statsigapi.net/v1",e.STATSIG_CDN="https://api.statsigcdn.com/v1";var v=function(){function t(t,e,n,r){var i;this.outputLogger=null,this.apiForDownloadConfigSpecs=e.apiForDownloadConfigSpecs,this.apiForGetIdLists=e.apiForGetIdLists,this.fallbackToStatsigAPI=e.fallbackToStatsigAPI,this.sessionID=r,this.leakyBucket={},this.pendingTimers=[],this.dispatcher=new c.default(200),this.localMode=e.localMode,this.sdkKey=t,this.errorBoundry=n,this.networkOverrideFunc=e.networkOverrideFunc,this.outputLogger=null!=(i=e.logger)?i:null}return t.prototype.validateSDKKeyUsed=function(t){var e=t===(0,p.djb2Hash)(this.sdkKey);return e||this.errorBoundry.logError(new u.StatsigSDKKeyMismatchError,d.StatsigContext.new({caller:"validateSDKKeyUsed"})),e},t.prototype.downloadConfigSpecs=function(t){var n,r;return i(this,void 0,void 0,function(){var i,s,a,u,l,c;return o(this,function(o){switch(o.label){case 0:if(i="/download_config_specs"+"/".concat(this.sdkKey,".json")+(0===t?"":"?sinceTime=".concat(t)),s=this.apiForDownloadConfigSpecs+i,!this.fallbackToStatsigAPI)return[3,6];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.get(s,a)];case 2:if((u=o.sent()).ok)return[2,u];return null==(n=this.outputLogger)||n.warn("Failed to download config specs from ".concat(this.apiForDownloadConfigSpecs,", status code: ").concat(u.status,". Falling back to Statsig API.")),[3,4];case 3:return c=(l=o.sent())instanceof Error?l.message:String(l),null==(r=this.outputLogger)||r.warn("Error downloading config specs from: ".concat(c,". Falling back to Statsig API.")),[3,4];case 4:return[4,this.get(e.STATSIG_CDN+i)];case 5:case 7:return[2,o.sent()];case 6:return[4,this.get(s,a)]}})})},t.prototype.getIDLists=function(){var t,n;return i(this,void 0,void 0,function(){var r,i,s,a,u,l;return o(this,function(o){switch(o.label){case 0:if(r="/get_id_lists",i=this.apiForGetIdLists+r,!this.fallbackToStatsigAPI)return[3,6];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.post(i,{},s)];case 2:if((a=o.sent()).ok)return[2,a];return null==(t=this.outputLogger)||t.warn("Failed to download ID lists from ".concat(this.apiForGetIdLists,", status code: ").concat(a.status,". Falling back to Statsig API.")),[3,4];case 3:return l=(u=o.sent())instanceof Error?u.message:String(u),null==(n=this.outputLogger)||n.warn("Error getting id lists from: ".concat(l)),[3,4];case 4:return[4,this.post(e.STATSIG_API+r,{})];case 5:case 7:return[2,o.sent()];case 6:return[4,this.post(i,{},s)]}})})},t.prototype.dispatch=function(t,e,n){return this.dispatcher.enqueue(this.post(t,e),n)},t.prototype.post=function(t,e,n){return i(this,void 0,void 0,function(){return o(this,function(r){switch(r.label){case 0:return[4,this.request("POST",t,e,n)];case 1:return[2,r.sent()]}})})},t.prototype.get=function(t,e){return i(this,void 0,void 0,function(){return o(this,function(n){switch(n.label){case 0:return[4,this.request("GET",t,void 0,e)];case 1:return[2,n.sent()]}})})},t.prototype.request=function(t,e,n,s){var c;return i(this,void 0,void 0,function(){var i,p,d,v,y,m,_,b,S,x,w,E,D,k,I,A,L,O,C,M,T,j=this;return o(this,function(o){switch(o.label){case 0:if(d=void 0===(p=(i=null!=s?s:{}).retryURL)?e:p,y=void 0===(v=i.retries)?0:v,_=void 0===(m=i.backoff)?1e3:m,S=void 0!==(b=i.isRetrying)&&b,x=i.signal,E=void 0!==(w=i.compress)&&w,D=this.getDiagnosticFromURL(e),this.localMode)return[2,Promise.reject(new u.StatsigLocalModeNetworkError)];if(null!=(k=this.leakyBucket[e])&&k>=1e3)return[2,Promise.reject(new u.StatsigTooManyRequestsError("Request to ".concat(e," failed because you are making the same request too frequently (").concat(k,").")))];return null==k?this.leakyBucket[e]=1:this.leakyBucket[e]=k+1,I="number"==typeof _?S?10*_:_:_(y),A=r(r({},null==s?void 0:s.additionalHeaders),{"Content-type":"application/json; charset=UTF-8","STATSIG-API-KEY":this.sdkKey,"STATSIG-CLIENT-TIME":"".concat(Date.now()),"STATSIG-SERVER-SESSION-ID":this.sessionID,"STATSIG-SDK-TYPE":(0,l.getSDKType)(),"STATSIG-SDK-VERSION":(0,l.getSDKVersion)()}),[4,(0,f.getEncodedBody)(n,E?"gzip":"none",this.errorBoundry)];case 1:return O=(L=o.sent()).contents,(C=L.contentEncoding)&&(A["Content-Encoding"]=C),S||null==D||D.start({}),[2,(null!=(c=this.networkOverrideFunc)?c:h.default)(e,{method:t,body:O,headers:A,signal:x}).then(function(r){return(!(M=r).ok||g.includes(M.status))&&y>0?j._retry(t,d,n,y-1,I):M.ok?Promise.resolve(M):Promise.reject(Error("Request to "+e+" failed with status "+M.status))}).catch(function(r){return(T=r,y>0)?j._retry(t,e,n,y-1,I):Promise.reject(T)}).finally(function(){var t;null==D||D.end({statusCode:null==M?void 0:M.status,success:(null==M?void 0:M.ok)===!0,sdkRegion:null==(t=null==M?void 0:M.headers)?void 0:t.get("x-statsig-region"),error:a.default.formatNetworkError(T)}),j.leakyBucket[e]=Math.max(j.leakyBucket[e]-1,0),j.leakyBucket[e]<=0&&delete j.leakyBucket[e]})]}})})},t.prototype.shutdown=function(){null!=this.pendingTimers&&this.pendingTimers.forEac
1h(function(t){null!=t&&clearTimeout(t)}),null!=this.dispatcher&&this.dispatcher.shutdown()},t.prototype._retry=function(t,e,n,r,i){var o=this;return new Promise(function(s,a){var u=setTimeout(function(){o.leakyBucket[e]=Math.max(o.leakyBucket[e]-1,0),o.leakyBucket[e]<=0&&delete o.leakyBucket[e],o.pendingTimers=o.pendingTimers.filter(function(t){return t!==u}),o.request(t,e,n,{retries:r,backoff:i,isRetrying:!0}).then(s).catch(a)},i);u.unref&&u.unref(),o.pendingTimers.push(u)})},t.prototype.getDiagnosticFromURL=function(t){return t.includes("/download_config_specs")?a.default.mark.downloadConfigSpecs.networkRequest:t.includes("/get_id_lists")?a.default.mark.getIDListSources.networkRequest:null},t}();e.default=v},94734:(t,e)=>{"use strict";e.__esModule=!0,e.Base64=void 0;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.Base64=function(){function t(){}return t.encodeArrayBuffer=function(t){for(var e="",n=new Uint8Array(t),r=n.byteLength,i=0;i<r;i++)e+=String.fromCharCode(n[i]);return this._encodeBinary(e)},t._encodeBinary=function(t){for(var e,r,i,o,s,a,u,l="",c=0;c<t.length;)e=t.charCodeAt(c++),r=t.charCodeAt(c++),i=t.charCodeAt(c++),o=e>>2,s=(3&e)<<4|r>>4,a=(15&r)<<2|i>>6,u=63&i,isNaN(r)?a=u=64:isNaN(i)&&(u=64),l=l+n.charAt(o)+n.charAt(s)+n.charAt(a)+n.charAt(u);return l},t}()},96488:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1e.__esModule=!0;var i=r(n(63091)),o={uaString:void 0,res:void 0};e.default=function(t){if(o.uaString===t)return o.res;var e=(0,i.default)(t);return"Mac OS"===e.os.name&&(e.os.name="Mac OS X"),("Chrome"===e.browser.name||"Firefox"===e.browser.name)&&("mobile"===e.device.type||"tablet"===e.device.type)&&(e.browser.name+=" Mobile"),o.uaString=t,o.res=e,e}},98123:function(t,e,n){"use strict";var r,i,o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(s,a)}u((r=r.apply(t,e||[])).next())})},a=this&&this.__generator||function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(u){var l=[a,u];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,r=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){s=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){s.label=l[1];break}if(6===l[0]&&s.label<i[1]){s.label=i[1],i=l;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(l);break}i[2]&&s.ops.pop(),s.trys.pop();continue}l=e.call(t,s)}catch(t){l=[6,t],r=0}finally{n=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1e.__esModule=!0,e.SamplingDecision=void 0;var l=u(n(99313)),c=u(n(82141)),f=u(n(39418)),p=n(9756),h=n(21266),d=n(93361),g=n(83111),v="config_exposure",y="layer_exposure",m="gate_exposure",_="statsig::",b=new Set(["serverTime","configSyncTime","initTime","reason"]);(r=i||(i={})).Gate="gate",r.Config="config",r.Layer="layer";var S=function(){function t(t,e,n,r){this.shouldLog=t,this.samplingRate=e,this.shadowLogged=n,this.samplingMode=r}return t.createForceLog=function(e){return new t(!0,void 0,void 0,null!=e?e:void 0)},t}();e.SamplingDecision=S,e.default=function(){function t(t,e,n,r,i){var o=this;this.explicitOptions=n,this.optionsLoggiingCopy=r,this.fetcher=t,this.sessionID=i,this.errorBoundary=e,this._sampling_key_set=new Set,this.queue=[],this.deduper=new Set,this.loggedErrors=new Set,this.flushTimer=(0,h.poll)(function(){o.flush()},n.loggingIntervalMs),this.deduperTimer=(0,h.poll)(function(){o.deduper.clear()},6e4),this.samplingKeyTimer=(0,h.poll)(function(){o._sampling_key_set.clear()},6e4)}return t.prototype.log=function(t,e){if((void 0===e&&(e=null),!this.explicitOptions.localMode&&!this.explicitOptions.disableAllLogging&&t instanceof c.default)&&t.validate()){if(null!=e){if(this.loggedErrors.has(e))return;this.loggedErrors.add(e)}this.queue.push(t.toObject()),this.queue.length>=this.explicitOptions.loggingMaxBufferSize&&this.flush()}},t.prototype.flush=function(t,e){return void 0===t&&(t=!1),s(this,void 0,void 0,function(){var n,r,i=this;return a(this,function(s){return(this.addDiagnosticsMarkers("api_call"),this.addDiagnosticsMarkers("get_client_initialize_response"),0===this.queue.length)?[2,Promise.resolve()]:(n=this.queue,this.queue=[],r={statsigMetadata:o(o({},(0,h.getStatsigMetadata)()),{sessionID:this.sessionID}),events:n},[2,this.fetcher.post(this.explicitOptions.api+"/log_event",r,{retries:t?0:this.explicitOptions.postLogsRetryLimit,backoff:this.explicitOptions.postLogsRetryBackoff,signal:e,compress:!g.GlobalContext.isEdgeEnvironment&&!1===p.SDKConfigs.on("stop_log_event_compression"),additionalHeaders:{"STATSIG-EVENT-COUNT":String(n.length)}}).then(function(){return Promise.resolve()}).catch(function(t){return i.errorBoundary.logError(Error("Log event failed"),g.StatsigContext.new({caller:"statsig::log_event_failed",eventCount:n.length,bypassDedupe:!0})),(null==t?void 0:t.name)==="AbortError"&&f.default.debug("Request to log_event aborted"),Promise.resolve()})])})})},t.prototype.shutdown=function(t){return s(this,void 0,void 0,function(){var e,n;return a(this,function(r){switch(r.label){case 0:if(null!=this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null),null!=this.deduperTimer&&(clearInterval(this.deduperTimer),this.deduperTimer=null),null!=this.samplingKeyTimer&&(clearInterval(this.samplingKeyTimer),this.samplingKeyTimer=null),null==t)return[3,2];return e=new AbortController,n=setTimeout(function(){return e.abort()},t),[4,this.flush(!0,e.signal)];case 1:return r.sent(),clearTimeout(n),[3,4];case 2:return[4,this.flush(!0)];case 3:r.sent(),r.label=4;case 4:return[2]}})})},t.prototype.logStatsigInternal=function(t,e,n,r,i,o){if(void 0===r&&(r=null),void 0===i&&(i=null),this.isUniqueExposure(t,e,n)){var s=new c.default(_+e);null!=t&&s.setUser(t),null!=n&&s.setMetadata(n),null!=r&&s.setSecondaryExposures(r),null!=i&&s.setValue(i),o&&s.setSamplingDecision(o),(null==n?void 0:n.error)!=null?this.log(s,e+n.error):this.log(s)}},t.prototype.logGateExposure=function(t,e,n,r){var o=this.determineSamplingDecision(i.Gate,e,n,t);if(o.shouldLog){var s=this.getGateExposureMetadata(e,n,r);this.logStatsigInternal(t,m,s,n.secondary_exposures,null,o)}},t.prototype.getGateExposureMetadata=function(t,e,n){var r={gate:t,gateValue:String(e.value),ruleID:e.rule_id};return null!=e.configVersion&&(r.configVersion=String(e.configVersion)),this.maybeAddManualExposureFlagToMetadata(r,n),this.safeAddEvaulationDetailsToEvent(r,e.evaluation_details),r},t.prototype.getGateExposure=function(t,e,n,r){var i=this.getGateExposureMetadata(e,n,r),o=new c.default(_+m);return o.setUser(t),o.setMetadata(i),o.setSecondaryExposures(n.secondary_exposures),o},t.prototype.logConfigExposure=function(t,e,n,r){var o=this.determineSamplingDecision(i.Config,e,n,t);if(o.shouldLog){var s=this.getConfigExposureMetadata(e,n,r);this.logStatsigInternal(t,v,s,n.secondary_exposures,null,o)}},t.prototype.getConfigExposure=function(t,e,n,r){var i=new c.default(_+v);return i.setUser(t),i.setMetadata(this.getConfigExposureMetadata(e,n,r)),i.setSecondaryExposures(n.secondary_exposures),i},t.prototype.getConfigExposureMetadata=function(t,e,n){var r={config:t,ruleID:e.rule_id,rulePassed:String(e.value)};return null!=e.configVersion&&(r.configVersion=String(e.configVersion)),this.maybeAddManualExposureFlagToMetadata(r,n),this.safeAddEvaulationDetail
1sToEvent(r,e.evaluation_details),r},t.prototype.logLayerExposure=function(t,e,n,r,o){var s,a,u,l,c=r.undelegated_secondary_exposures;null!=(a=null==(s=r.explicit_parameters)?void 0:s.includes(n))&&a&&(c=r.secondary_exposures);var f=this.getLayerExposureMetadata(e,n,r,o),p=this.determineSamplingDecision(i.Layer,e,r,t,null!=(l=null==(u=f.allocatedExperiment)?void 0:u.toString())?l:void 0,n);p.shouldLog&&this.logStatsigInternal(t,y,f,c,null,p)},t.prototype.getLayerExposureMetadata=function(t,e,n,r){var i,o,s,a="",u=null!=(o=null==(i=n.explicit_parameters)?void 0:i.includes(e))&&o;u&&(a=null!=(s=n.config_delegate)?s:"");var l={config:t,ruleID:n.rule_id,allocatedExperiment:a,parameterName:e,isExplicitParameter:String(u)};return null!=n.configVersion&&(l.configVersion=String(n.configVersion)),this.maybeAddManualExposureFlagToMetadata(l,r),this.safeAddEvaulationDetailsToEvent(l,n.evaluation_details),l},t.prototype.getLayerExposure=function(t,e,n,r,i){var o,s,a=r.undelegated_secondary_exposures;null!=(s=null==(o=r.explicit_parameters)?void 0:o.includes(n))&&s&&(a=r.secondary_exposures);var u=new c.default(_+y);return u.setMetadata(this.getLayerExposureMetadata(e,n,r,i)),u.setSecondaryExposures(a),u.setUser(t),u},t.prototype.logConfigDefaultValueFallback=function(t,e,n){this.logStatsigInternal(t,"default_value_type_mismatch",n,null,e)},t.prototype.maybeAddManualExposureFlagToMetadata=function(t,e){e&&(t.isManualExposure="true")},t.prototype.safeAddEvaulationDetailsToEvent=function(t,e){e&&(t.reason=e.reason,t.configSyncTime=e.configSyncTime,t.initTime=e.initTime,t.serverTime=e.serverTime)},t.prototype.isUniqueExposure=function(t,e,n){if(null==t)return!0;var r="";t.customIDs&&"object"==typeof t.customIDs&&(r=Object.values(t.customIDs).join());var i="";n&&"object"==typeof n&&(i=Object.entries(n).filter(function(t){var e=t[0];return t[1],!b.has(e)}).map(function(t){return t[0],t[1]}).join());var o=[t.userID,r,e,i].join();return!this.deduper.has(o)&&(this.deduper.add(o),this.deduper.size>1e5&&this.deduper.clear(),!0)},t.prototype.logDiagnosticsEvent=function(t,e){if(void 0===e&&(e=null),0!==t.markers.length&&!this.explicitOptions.localMode){var n=o(o({},t),{statsigOptions:"initialize"===t.context?this.optionsLoggiingCopy:void 0}),r=new c.default(_+"diagnostics");r.setDiagnosticsMetadata(n),null!=e&&r.setUser(e),this.queue.push(r.toObject())}},t.prototype.addDiagnosticsMarkers=function(t){if(l.default.instance.getShouldLogDiagnostics(t)){var e=l.default.instance.getMarker(t);this.logDiagnosticsEvent({context:t,markers:e})}l.default.instance.clearMarker(t)},t.prototype.determineSamplingDecision=function(t,e,n,r,o,s){var a,u,l;try{var c=!0,f=void 0,h=this.get_sdk_environment_tier(),v=p.SDKConfigs.getConfigStrValue("sampling_mode"),y=p.SDKConfigs.getConfigIntValue("special_case_sampling_rate"),m=["disabled","default",""];if(null===v||"none"===v||"production"!==h||n.forward_all_exposures)return S.createForceLog(v);var _="".concat(e,"_").concat(n.rule_id);if(!this._sampling_key_set.has(_))return this._sampling_key_set.add(_),S.createForceLog(v);
1if(n.seen_analytical_gates||!(null!==n.sample_rate||m.includes(n.rule_id)))return S.createForceLog(v);var b="";t===i.Gate?b=(0,d.compute_dedupe_key_for_gate)(e,n.rule_id,n.value,null!=(a=r.userID)?a:"",r.customIDs||{}):t===i.Config?b=(0,d.compute_dedupe_key_for_config)(e,n.rule_id,null!=(u=r.userID)?u:"",r.customIDs||{}):t===i.Layer&&(b=(0,d.compute_dedupe_key_for_layer)(e,null!=o?o:"",null!=s?s:"",n.rule_id,null!=(l=r.userID)?l:"",r.customIDs||{})),void 0!==n.sample_rate?(c=(0,d.is_hash_in_sampling_rate)(b,n.sample_rate),f=n.sample_rate):m.includes(n.rule_id)&&null!==y&&(c=(0,d.is_hash_in_sampling_rate)(b,y),f=y);var x=f?c?"logged":"dropped":void 0;if("on"===v)return new S(c,f,x,v);if("shadow"===v)return new S(!0,f,x,v);return S.createForceLog(v)}catch(t){return this.errorBoundary.logError(Error("determineSamplingDecision failed"),g.StatsigContext.new({caller:"determineSamplingDecision"})),S.createForceLog(null)}},t.prototype.get_sdk_environment_tier=function(){var t,e;return null!=(e=null==(t=this.explicitOptions.environment)?void 0:t.tier)?e:"production"},t}()},98170:(t,e)=>{"use strict";e.__esModule=!0,e.getDataAdapterKey=e.CompressFormat=e.DataAdapterKeyPath=void 0;var n,r,i="statsig";!function(t){t.V1Rulesets="/v1/download_config_specs",t.V2Rulesets="/v2/download_config_specs",t.V1IDLists="/v1/get_id_lists",t.IDList="id_list"}(n=e.DataAdapterKeyPath||(e.DataAdapterKeyPath={})),function(t){t.PlainText="plain_text",t.Gzip="gzip"}(r=e.CompressFormat||(e.CompressFormat={})),e.getDataAdapterKey=function(t,e,o,s){return(void 0===o&&(o=r.PlainText),void 0===s&&(s=void 0),e==n.IDList)?"".concat(i,"|").concat(e,"::").concat(String(s),"|").concat(o,"|").concat(t):"".concat(i,"|").concat(e,"|").concat(o,"|").concat(t)}},99313:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};e.__esModule=!0,e.DiagnosticsImpl=e.MAX_MARKER_COUNT=e.MAX_SAMPLING_RATE=void 0;var i=n(21266);e.MAX_SAMPLING_RATE=1e4,e.MAX_MARKER_COUNT=26;var o=function(){function t(t){var n,r,i,o=this;this.mark={overall:this.selectAction("overall"),downloadConfigSpecs:this.selectStep("download_config_specs"),bootstrap:this.selectStep("bootstrap"),getIDList:this.selectStep("get_id_list"),getIDListSources:this.selectStep("get_id_list_sources"),getClientInitializeResponse:this.selectAction("get_client_initialize_response","process"),api_call:function(t){switch(t){case"getConfig":return o.selectAction("get_config");case"getExperiment":return o.selectAction("get_experiment");case"checkGate":return o.selectAction("check_gate");case"getLayer":return o.selectAction("get_layer")}return null}},this.markers={initialize:[],config_sync:[],event_logging:[],api_call:[],get_client_initialize_response:[]},this.context="initialize",this.samplingRates={dcs:0,log:0,idlist:0,initialize:e.MAX_SAMPLING_RATE,api_call:0,gcir:0},this.markers=null!=(n=t.markers)?n:{initialize:[],config_sync:[],event_logging:[],api_call:[],get_client_initialize_response:[]},this.logger=t.logger,this.disabledCoreAPI=null!=(i=null==(r=t.options)?void 0:r.disableDiagnostics)&&i}return t.prototype.setContext=function(t){this.context=t},t.prototype.setSamplingRate=function(t){this.updateSamplingRates(t)},t.prototype.selectAction=function(t,e){var n=this;return{start:function(i,o){n.addMarker(r({key:t,step:e,action:"start",timestamp:Date.now()},null!=i?i:{}),o)},end:function(i,o){n.addMarker(r({key:t,step:e,action:"end",timestamp:Date.now()},null!=i?i:{}),o)}}},t.prototype.selectStep=function(t){return{process:this.selectAction(t,"process"),networkRequest:this.selectAction(t,"network_request")}},t.prototype.addMarker=function(t,n){var r=null!=n?n:this.context;(!this.disabledCoreAPI||"api_call"!=r)&&(this.getMarkerCount(r)>=e.MAX_MARKER_COUNT||this.markers[r].push(t))},t.prototype.getMarker=function(t){return this.markers[t]},t.prototype.clearMarker=function(t){this.markers[t]=[]},t.prototype.getMarkerCount=function(t){return this.markers[t].length},t.prototype.logDiagnostics=function(t,e){this.disabledCoreAPI&&"api_call"==t||((!e||this.get
1ShouldLogDiagnostics(e.type))&&this.logger.logDiagnosticsEvent({context:t,markers:this.markers[t]}),this.markers[t]=[])},t.prototype.updateSamplingRates=function(t){t&&"object"==typeof t&&(this.safeSet(this.samplingRates,"dcs",t.dcs),this.safeSet(this.samplingRates,"idlist",t.idlist),this.safeSet(this.samplingRates,"initialize",t.initialize),this.safeSet(this.samplingRates,"log",t.log),this.safeSet(this.samplingRates,"api_call",t.api_call),this.safeSet(this.samplingRates,"gcir",t.gcir))},t.prototype.safeSet=function(t,n,r){"number"==typeof r&&(r<0?t[n]=0:r>e.MAX_SAMPLING_RATE?t[n]=e.MAX_SAMPLING_RATE:t[n]=r)},t.prototype.getShouldLogDiagnostics=function(t){var n=Math.random()*e.MAX_SAMPLING_RATE;switch(t){case"id_list":return n<this.samplingRates.idlist;case"config_spec":return n<this.samplingRates.dcs;case"initialize":return n<this.samplingRates.initialize;case"api_call":return n<this.samplingRates.api_call;case"get_client_initialize_response":return n<this.samplingRates.gcir;default:throw new i.ExhaustSwitchError(t)}},t}();function s(t,e){if(e in t)return t[e]}e.DiagnosticsImpl=o,e.default=function(){function t(){}return t.initialize=function(t){this.instance=new o(t),this.mark=this.instance.mark},t.logDiagnostics=function(t,e){this.instance.logDiagnostics(t,e)},t.setContext=function(t){this.instance.setContext(t)},t.formatNetworkError=function(t){if(t&&"object"==typeof t)return{code:s(t,"code"),name:s(t,"name"),message:s(t,"message")}},t.getMarkerCount=function(t){return this.instance.getMarkerCount(t)},t}()},99859:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});let r=(0,n(11572).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]);
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.