@atlassian/aui 9.13.4 → 9.13.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
1
  /*!!
2
2
  * @atlassian/aui - Atlassian User Interface library
3
- * @version v9.13.4
3
+ * @version v9.13.6
4
4
  * @link https://aui.atlassian.com
5
5
  * @license Apache-2.0
6
6
  * @author Atlassian Pty Ltd.
7
7
  */
8
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@atlassian/aui",[],t):"object"==typeof exports?exports["@atlassian/aui"]=t():(e.AJS=e.AJS||{},e.AJS.DesignTokens=t())}(window,(()=>(()=>{var e,t,r={853:(e,t,r)=>{var n;
8
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@atlassian/aui",[],t):"object"==typeof exports?exports["@atlassian/aui"]=t():(e.AJS=e.AJS||{},e.AJS.DesignTokens=t())}(window,(()=>(()=>{var e,t,r={572:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.bindAll=void 0;var o=r(634);function a(e){if(void 0!==e)return"boolean"==typeof e?{capture:e}:e}t.bindAll=function(e,t,r){var i=t.map((function(t){var i=function(e,t){return null==t?e:n(n({},e),{options:n(n({},a(t)),a(e.options))})}(t,r);return(0,o.bind)(e,i)}));return function(){i.forEach((function(e){return e()}))}}},634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bind=void 0,t.bind=function(e,t){var r=t.type,n=t.listener,o=t.options;return e.addEventListener(r,n,o),function(){e.removeEventListener(r,n,o)}}},833:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindAll=t.bind=void 0;var n=r(634);Object.defineProperty(t,"bind",{enumerable:!0,get:function(){return n.bind}});var o=r(572);Object.defineProperty(t,"bindAll",{enumerable:!0,get:function(){return o.bindAll}})},553:(e,t,r)=>{var n;
9
9
  /*!
10
10
  * EventEmitter2
11
11
  * https://github.com/hij1nx/EventEmitter2
12
12
  *
13
13
  * Copyright (c) 2013 hij1nx
14
14
  * Licensed under the MIT license.
15
- */!function(o){var a=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(){this._events={},this._conf&&s.call(this,this._conf)}function s(e){e?(this._conf=e,e.delimiter&&(this.delimiter=e.delimiter),this._maxListeners=e.maxListeners!==o?e.maxListeners:10,e.wildcard&&(this.wildcard=e.wildcard),e.newListener&&(this.newListener=e.newListener),e.verboseMemoryLeak&&(this.verboseMemoryLeak=e.verboseMemoryLeak),this.wildcard&&(this.listenerTree={})):this._maxListeners=10}function c(e,t){var r="(node) warning: possible EventEmitter memory leak detected. "+e+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(r+=" Event name: "+t+"."),"undefined"!=typeof process&&process.emitWarning){var n=new Error(r);n.name="MaxListenersExceededWarning",n.emitter=this,n.count=e,process.emitWarning(n)}else console.error(r),console.trace&&console.trace()}function l(e){this._events={},this.newListener=!1,this.verboseMemoryLeak=!1,s.call(this,e)}function u(e,t,r,n){if(!r)return[];var o,a,i,s,c,l,d,h=[],p=t.length,f=t[n],g=t[n+1];if(n===p&&r._listeners){if("function"==typeof r._listeners)return e&&e.push(r._listeners),[r];for(o=0,a=r._listeners.length;o<a;o++)e&&e.push(r._listeners[o]);return[r]}if("*"===f||"**"===f||r[f]){if("*"===f){for(i in r)"_listeners"!==i&&r.hasOwnProperty(i)&&(h=h.concat(u(e,t,r[i],n+1)));return h}if("**"===f){for(i in(d=n+1===p||n+2===p&&"*"===g)&&r._listeners&&(h=h.concat(u(e,t,r,p))),r)"_listeners"!==i&&r.hasOwnProperty(i)&&("*"===i||"**"===i?(r[i]._listeners&&!d&&(h=h.concat(u(e,t,r[i],p))),h=h.concat(u(e,t,r[i],n))):h=i===g?h.concat(u(e,t,r[i],n+2)):h.concat(u(e,t,r[i],n)));return h}h=h.concat(u(e,t,r[f],n+1))}if((s=r["*"])&&u(e,t,s,n+1),c=r["**"])if(n<p)for(i in c._listeners&&u(e,t,c,p),c)"_listeners"!==i&&c.hasOwnProperty(i)&&(i===g?u(e,t,c[i],n+2):i===f?u(e,t,c[i],n+1):((l={})[i]=c[i],u(e,t,{"**":l},n+1)));else c._listeners?u(e,t,c,p):c["*"]&&c["*"]._listeners&&u(e,t,c["*"],p);return h}function d(e,t){for(var r=0,n=(e="string"==typeof e?e.split(this.delimiter):e.slice()).length;r+1<n;r++)if("**"===e[r]&&"**"===e[r+1])return;for(var a=this.listenerTree,i=e.shift();i!==o;){if(a[i]||(a[i]={}),a=a[i],0===e.length)return a._listeners?("function"==typeof a._listeners&&(a._listeners=[a._listeners]),a._listeners.push(t),!a._listeners.warned&&this._maxListeners>0&&a._listeners.length>this._maxListeners&&(a._listeners.warned=!0,c.call(this,a._listeners.length,i))):a._listeners=t,!0;i=e.shift()}return!0}l.EventEmitter2=l,l.prototype.delimiter=".",l.prototype.setMaxListeners=function(e){e!==o&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},l.prototype.event="",l.prototype.once=function(e,t){return this._once(e,t,!1)},l.prototype.prependOnceListener=function(e,t){return this._once(e,t,!0)},l.prototype._once=function(e,t,r){return this._many(e,1,t,r),this},l.prototype.many=function(e,t,r){return this._many(e,t,r,!1)},l.prototype.prependMany=function(e,t,r){return this._many(e,t,r,!0)},l.prototype._many=function(e,t,r,n){var o=this;if("function"!=typeof r)throw new Error("many only accepts instances of Function");function a(){return 0==--t&&o.off(e,a),r.apply(this,arguments)}return a._origin=r,this._on(e,a,n),o},l.prototype.emit=function(){this._events||i.call(this);var e=arguments[0];if("newListener"===e&&!this.newListener&&!this._events.newListener)return!1;var t,r,n,o,a,s=arguments.length;if(this._all&&this._all.length){if(a=this._all.slice(),s>3)for(t=new Array(s),o=0;o<s;o++)t[o]=arguments[o];for(n=0,r=a.length;n<r;n++)switch(this.event=e,s){case 1:a[n].call(this,e);break;case 2:a[n].call(this,e,arguments[1]);break;case 3:a[n].call(this,e,arguments[1],arguments[2]);break;default:a[n].apply(this,t)}}if(this.wildcard){a=[];var c="string"==typeof e?e.split(this.delimiter):e.slice();u.call(this,a,c,this.listenerTree,0)}else{if("function"==typeof(a=this._events[e])){switch(this.event=e,s){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:for(t=new Array(s-1),o=1;o<s;o++)t[o-1]=arguments[o];a.apply(this,t)}return!0}a&&(a=a.slice())}if(a&&a.length){if(s>3)for(t=new Array(s-1),o=1;o<s;o++)t[o-1]=arguments[o];for(n=0,r=a.length;n<r;n++)switch(this.event=e,s){case 1:a[n].call(this);break;case 2:a[n].call(this,arguments[1]);break;case 3:a[n].call(this,arguments[1],arguments[2]);break;default:a[n].apply(this,t)}return!0}if(!this._all&&"error"===e)throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},l.prototype.emitAsync=function(){this._events||i.call(this);var e=arguments[0];if("newListener"===e&&!this.newListener&&!this._events.newListener)return Promise.resolve([!1]);var t,r,n,o,a,s=[],c=arguments.length;if(this._all){if(c>3)for(t=new Array(c),o=1;o<c;o++)t[o]=arguments[o];for(n=0,r=this._all.length;n<r;n++)switch(this.event=e,c){case 1:s.push(this._all[n].call(this,e));break;case 2:s.push(this._all[n].call(this,e,arguments[1]));break;case 3:s.push(this._all[n].call(this,e,arguments[1],arguments[2]));break;default:s.push(this._all[n].apply(this,t))}}if(this.wildcard){a=[];var l="string"==typeof e?e.split(this.delimiter):e.slice();u.call(this,a,l,this.listenerTree,0)}else a=this._events[e];if("function"==typeof a)switch(this.event=e,c){case 1:s.push(a.call(this));break;case 2:s.push(a.call(this,arguments[1]));break;case 3:s.push(a.call(this,arguments[1],arguments[2]));break;default:for(t=new Array(c-1),o=1;o<c;o++)t[o-1]=arguments[o];s.push(a.apply(this,t))}else if(a&&a.length){if(a=a.slice(),c>3)for(t=new Array(c-1),o=1;o<c;o++)t[o-1]=arguments[o];for(n=0,r=a.length;n<r;n++)switch(this.event=e,c){case 1:s.push(a[n].call(this));break;case 2:s.push(a[n].call(this,arguments[1]));break;case 3:s.push(a[n].call(this,arguments[1],arguments[2]));break;default:s.push(a[n].apply(this,t))}}else if(!this._all&&"error"===e)return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(s)},l.prototype.on=function(e,t){return this._on(e,t,!1)},l.prototype.prependListener=function(e,t){return this._on(e,t,!0)},l.prototype.onAny=function(e){return this._onAny(e,!1)},l.prototype.prependAny=function(e){return this._onAny(e,!0)},l.prototype.addListener=l.prototype.on,l.prototype._onAny=function(e,t){if("function"!=typeof e)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),t?this._all.unshift(e):this._all.push(e),this},l.prototype._on=function(e,t,r){if("function"==typeof e)return this._onAny(e,t),this;if("function"!=typeof t)throw new Error("on only accepts instances of Function");return this._events||i.call(this),this.emit("newListener",e,t),this.wildcard?(d.call(this,e,t),this):(this._events[e]?("function"==typeof this._events[e]&&(this._events[e]=[this._events[e]]),r?this._events[e].unshift(t):this._events[e].push(t),!this._events[e].warned&&this._maxListeners>0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,c.call(this,this._events[e].length,e))):this._events[e]=t,this)},l.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var r,n=[];if(this.wildcard){var i="string"==typeof e?e.split(this.delimiter):e.slice();n=u.call(this,null,i,this.listenerTree,0)}else{if(!this._events[e])return this;r=this._events[e],n.push({_listeners:r})}for(var s=0;s<n.length;s++){var c=n[s];if(r=c._listeners,a(r)){for(var l=-1,d=0,h=r.length;d<h;d++)if(r[d]===t||r[d].listener&&r[d].listener===t||r[d]._origin&&r[d]._origin===t){l=d;break}if(l<0)continue;return this.wildcard?c._listeners.splice(l,1):this._events[e].splice(l,1),0===r.length&&(this.wildcard?delete c._listeners:delete this._events[e]),this.emit("removeListener",e,t),this}(r===t||r.listener&&r.listener===t||r._origin&&r._origin===t)&&(this.wildcard?delete c._listeners:delete this._events[e],this.emit("removeListener",e,t))}return function e(t){if(t!==o){var r=Object.keys(t);for(var n in r){var a=r[n],i=t[a];i instanceof Function||"object"!=typeof i||null===i||(Object.keys(i).length>0&&e(t[a]),0===Object.keys(i).length&&delete t[a])}}}(this.listenerTree),this},l.prototype.offAny=function(e){var t,r=0,n=0;if(e&&this._all&&this._all.length>0){for(r=0,n=(t=this._all).length;r<n;r++)if(e===t[r])return t.splice(r,1),this.emit("removeListenerAny",e),this}else{for(r=0,n=(t=this._all).length;r<n;r++)this.emit("removeListenerAny",t[r]);this._all=[]}return this},l.prototype.removeListener=l.prototype.off,l.prototype.removeAllListeners=function(e){if(0===arguments.length)return!this._events||i.call(this),this;if(this.wildcard)for(var t="string"==typeof e?e.split(this.delimiter):e.slice(),r=u.call(this,null,t,this.listenerTree,0),n=0;n<r.length;n++){r[n]._listeners=null}else this._events&&(this._events[e]=null);return this},l.prototype.listeners=function(e){if(this.wildcard){var t=[],r="string"==typeof e?e.split(this.delimiter):e.slice();return u.call(this,t,r,this.listenerTree,0),t}return this._events||i.call(this),this._events[e]||(this._events[e]=[]),a(this._events[e])||(this._events[e]=[this._events[e]]),this._events[e]},l.prototype.eventNames=function(){return Object.keys(this._events)},l.prototype.listenerCount=function(e){return this.listeners(e).length},l.prototype.listenersAny=function(){return this._all?this._all:[]},(n=function(){return l}.call(t,r,t,e))===o||(e.exports=n)}()},572:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.bindAll=void 0;var o=r(634);function a(e){if(void 0!==e)return"boolean"==typeof e?{capture:e}:e}t.bindAll=function(e,t,r){var i=t.map((function(t){var i=function(e,t){return null==t?e:n(n({},e),{options:n(n({},a(t)),a(e.options))})}(t,r);return(0,o.bind)(e,i)}));return function(){i.forEach((function(e){return e()}))}}},634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bind=void 0,t.bind=function(e,t){var r=t.type,n=t.listener,o=t.options;return e.addEventListener(r,n,o),function(){e.removeEventListener(r,n,o)}}},833:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindAll=t.bind=void 0;var n=r(634);Object.defineProperty(t,"bind",{enumerable:!0,get:function(){return n.bind}});var o=r(572);Object.defineProperty(t,"bindAll",{enumerable:!0,get:function(){return o.bindAll}})},913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,r,n,o,a,i){void 0===o&&(o=[]),void 0===a&&(a=""),void 0===i&&(i=null),this._onDefaultValueFallback=null,this.value=JSON.parse(JSON.stringify(null!=t?t:{})),this._name=e,this._ruleID=null!=r?r:"",this._secondaryExposures=o,this._allocatedExperimentName=a,this._evaluationDetails=n,this._onDefaultValueFallback=i}return e.prototype.get=function(e,t,r){var n,o,a=this.getValue(e,t);if(null==a)return t;var i=Array.isArray(t)?"array":typeof t,s=Array.isArray(a)?"array":typeof a;return r?r(a)?a:(null===(n=this._onDefaultValueFallback)||void 0===n||n.call(this,this,e,i,s),t):null==t||i===s?a:(null===(o=this._onDefaultValueFallback)||void 0===o||o.call(this,this,e,i,s),t)},e.prototype.getValue=function(e,t){return null==e?this.value:(null==t&&(t=null),null==this.value[e]?t:this.value[e])},e}();t.default=r},718:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExceptionEndpoint=void 0;var a=r(95);t.ExceptionEndpoint="https://statsigapi.net/v1/sdk_exception";var i=function(){function e(e,t){this._seen=new Set,this._sdkKey=e,this._options=t}return e.prototype._setStatsigMetadata=function(e){this._statsigMetadata=e},e.prototype._swallow=function(e,t){this._capture(e,t,(function(){}))},e.prototype._capture=function(e,t,r,n){var o=this;try{var a=t();return a instanceof Promise?a.catch((function(t){return o._onCaught(e,t,r,n)})):a}catch(t){return this._onCaught(e,t,r,n)}},e.prototype._logError=function(e,r,a){var i=this;if(!this._options.disableAllLogging)try{n(i,void 0,void 0,(function(){var n,i,s,c,l,u,d,h,p;return o(this,(function(o){switch(o.label){case 0:return"function"!=typeof a?[3,2]:[4,a()];case 1:return i=o.sent(),[3,3];case 2:i=null,o.label=3;case 3:return n=i,s=null!=r?r:Error("[Statsig] Error was empty"),c=s instanceof Error,l=c?s.name:"No Name",this._seen.has(l)?[2]:(this._seen.add(l),u=c?s.stack:this._getDescription(s),d=null!==(p=this._statsigMetadata)&&void 0!==p?p:{},h=JSON.stringify({tag:e,exception:l,info:u,statsigMetadata:d,extra:null!=n?n:{}}),[2,fetch(t.ExceptionEndpoint,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String(d.sdkType),"STATSIG-SDK-VERSION":String(d.sdkVersion),"Content-Type":"application/json","Content-Length":"".concat(h.length)},body:h})])}}))})).then((function(){})).catch((function(){}))}catch(e){}},e.prototype._onCaught=function(e,t,r,n){if(t instanceof a.StatsigUninitializedError||t instanceof a.StatsigInvalidArgumentError)throw t;return console.error("[Statsig] An unexpected exception occurred.",t),this._logError(e,t,n),r()},e.prototype._getDescription=function(e){try{return JSON.stringify(e)}catch(e){return"[Statsig] Failed to get string for error."}},e}();t.default=i},95:function(e,t){"use strict";var r,n,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigSDKKeyMismatchError=t.StatsigInvalidArgumentError=t.StatsigUninitializedError=t.StatsigErrorMessage=void 0,function(e){e.REQUIRE_ASYNC_INITIALIZE="Call initialize() first.",e.REQUIRE_SYNC_INITIALIZE="Call and wait for initialize() to finish first.",e.REQUIRE_INITIALIZE_FOR_LOG_EVENT="Must initialize() before logging events."}(n=t.StatsigErrorMessage||(t.StatsigErrorMessage={}));var a=function(e){function t(r){var o=e.call(this,null!=r?r:n.REQUIRE_SYNC_INITIALIZE)||this;return Object.setPrototypeOf(o,t.prototype),o}return o(t,e),t}(Error);t.StatsigUninitializedError=a;var i=function(e){function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return o(t,e),t}(Error);t.StatsigInvalidArgumentError=i;var s=function(e){function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return o(t,e),t}(Error);t.StatsigSDKKeyMismatchError=s},755:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,r,n,o,a,i,s,c){void 0===o&&(o=null),void 0===a&&(a=[]),void 0===i&&(i=[]),void 0===s&&(s=""),void 0===c&&(c=[]),this._logParameterFunction=o,this._name=e,this._value=JSON.parse(JSON.stringify(null!=t?t:{})),this._ruleID=null!=r?r:"",this._evaluationDetails=n,this._secondaryExposures=a,this._undelegatedSecondaryExposures=i,this._allocatedExperimentName=s,this._explicitParameters=c}return e._create=function(t,r,n,o,a,i,s,c,l){return void 0===a&&(a=null),void 0===i&&(i=[]),void 0===s&&(s=[]),void 0===c&&(c=""),void 0===l&&(l=[]),new e(t,r,n,o,a,i,s,c,l)},e.prototype.get=function(e,t,r){var n=this,o=this._value[e];if(null==o)return t;var a=function(){return n._logLayerParameterExposure(e),o};return r?r(o)?a():t:null==t||typeof o==typeof t&&Array.isArray(t)===Array.isArray(o)?a():t},e.prototype.getValue=function(e,t){null==t&&(t=null);var r=this._value[e];return null!=r&&this._logLayerParameterExposure(e),null!=r?r:t},e.prototype._logLayerParameterExposure=function(e){var t;null===(t=this._logParameterFunction)||void 0===t||t.call(this,this,e)},e}();t.default=r},424:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.saveOverridesToLocalStorage=t.loadOverridesFromLocalStorage=t.makeEmptyOverrides=t.STORAGE_KEY=void 0;var o=n(r(139));function a(){return{gates:{},configs:{},layers:{}}}t.STORAGE_KEY="STATSIG_JS_LITE_LOCAL_OVERRIDES",t.makeEmptyOverrides=a,t.loadOverridesFromLocalStorage=function(){var e=o.default.getItem(t.STORAGE_KEY);if(e)try{return JSON.parse(e)}catch(e){}return{gates:{},configs:{},layers:{}}},t.saveOverridesToLocalStorage=function(e){o.default.setItem(t.STORAGE_KEY,JSON.stringify(e))}},226:function(e,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o,a,i){void 0===o&&(o=null),void 0===a&&(a=null);var s=t;return(null==s?void 0:s.privateAttributes)&&delete(s=r({},t)).privateAttributes,{time:Date.now(),eventName:e,statsigMetadata:n,user:s,value:o,metadata:a,secondaryExposures:i}}},628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="1.6.0"},966:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return a(t,e),t},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))},c=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=l(r(913)),d=l(r(718)),h=r(95),p=l(r(755)),f=l(r(27)),g=l(r(261)),b=l(r(763)),v=l(r(951)),y=i(r(812)),m=r(182),_=l(r(139)),k=r(944),w=l(r(226)),E=r(424),x=function(){function e(e,t,r){var n=this;if(this._initCalled=!1,this._pendingInitPromise=null,this._sdkKey=null,this._logLayerParameterExposureForLayer=function(e,t,r){void 0===r&&(r=!1);var o="",a=e._undelegatedSecondaryExposures,i=e._explicitParameters.includes(t);i&&(o=e._allocatedExperimentName,a=e._secondaryExposures),n._logger.logLayerExposure(n._identity._user,e._name,e._ruleID,a,o,t,i,e._evaluationDetails,r,n._store.getBootstrapMetadata())},!0!==(null==r?void 0:r.localMode)&&("string"!=typeof e||!e.startsWith("client-")))throw new h.StatsigInvalidArgumentError("Invalid key provided. You must use a Client SDK Key from the Statsig console to initialize the sdk");this._sdkKey=e,this._startTime=(0,k.now)(),this._options=new v.default(r),this._errorBoundary=new d.default(e,this._options),this._ready=!1,_.default.disabled=this._options.disableLocalStorage,this._overrides=(0,E.loadOverridesFromLocalStorage)(),this._identity=new f.default(e,this._normalizeUser(null!=t?t:null),this._options.overrideStableID),this._network=new b.default(this._options,this._identity,this._errorBoundary),this._logger=new g.default(this._options,this._identity,this._network,this._errorBoundary),this._store=new y.default(this._identity,this._logger.logConfigDefaultValueFallback,this._options.initializeValues),this._errorBoundary._setStatsigMetadata(this._identity._statsigMetadata),null!=this._options.initializeValues&&(this._ready=!0,this._initCalled=!0,setTimeout((function(){return n._delayedSetup()}),20))}return e.prototype.setInitializeValues=function(e){var t=this;this._errorBoundary._capture("setInitializeValues",(function(){t._store.bootstrap(e),t._ready||(t._ready=!0,t._initCalled=!0),t._logger.sendSavedRequests()}),(function(){t._ready=!0,t._initCalled=!0}))},e.prototype.initializeAsync=function(){return s(this,void 0,void 0,(function(){var e=this;return c(this,(function(t){return[2,this._errorBoundary._capture("initializeAsync",(function(){return s(e,void 0,void 0,(function(){var e,t=this;return c(this,(function(r){return null!=this._pendingInitPromise?[2,this._pendingInitPromise]:this._ready?[2,Promise.resolve()]:(this._initCalled=!0,this._options.localMode?[2,Promise.resolve()]:(e=this._identity._user,this._pendingInitPromise=this._fetchAndSaveValues(e,this._options.initTimeoutMs).then((function(){})).catch((function(e){return t._errorBoundary._logError("initializeAsync:fetchAndSaveValues",e),{success:!1,message:e.message}})).then((function(){})).finally((function(){return s(t,void 0,void 0,(function(){return c(this,(function(e){return this._pendingInitPromise=null,this._ready=!0,this._delayedSetup(),[2]}))}))})),[2,this._pendingInitPromise]))}))}))}),(function(){return e._ready=!0,e._initCalled=!0,Promise.resolve()}))]}))}))},e.prototype.getEvaluationDetails=function(){var e=this;return this._errorBoundary._capture("getEvaluationDetails",(function(){return e._store.getGlobalEvaluationDetails()}),(function(){return{time:Date.now(),reason:y.EvaluationReason.Error}}))},e.prototype.checkGate=function(e){return this._checkGateImpl(e,"checkGate")},e.prototype.checkGateWithExposureLoggingDisabled=function(e){return this._checkGateImpl(e,"checkGateWithExposureLoggingDisabled")},e.prototype.logGateExposure=function(e){var t=this;this._errorBoundary._swallow("logGateExposure",(function(){t._logGateExposureImpl(e)}))},e.prototype.getConfig=function(e){return this._getConfigImpl(e,"getConfig")},e.prototype.getConfigWithExposureLoggingDisabled=function(e){return this._getConfigImpl(e,"getConfigWithExposureLoggingDisabled")},e.prototype.logConfigExposure=function(e){var t=this;this._errorBoundary._swallow("logConfigExposure",(function(){t._logConfigExposureImpl(e)}))},e.prototype.getExperiment=function(e){return this.getConfig(e)},e.prototype.getExperimentWithExposureLoggingDisabled=function(e){return this.getConfigWithExposureLoggingDisabled(e)},e.prototype.logExperimentExposure=function(e){this.logConfigExposure(e)},e.prototype.getLayer=function(e){return this._getLayerImpl(e,"getLayer")},e.prototype.getLayerWithExposureLoggingDisabled=function(e){return this._getLayerImpl(e,"getLayerWithExposureLoggingDisabled")},e.prototype.logLayerParameterExposure=function(e,t){var r=this;this._errorBoundary._swallow("logLayerParameterExposure",(function(){var n=r._getLayerFromStore(null,e);r._logLayerParameterExposureForLayer(n,t,!0)}))},e.prototype.logEvent=function(e,t,r){var n=this;void 0===t&&(t=null),void 0===r&&(r=null),this._errorBoundary._swallow("logEvent",(function(){if(!n._logger||!n._identity._sdkKey)throw new h.StatsigUninitializedError(h.StatsigErrorMessage.REQUIRE_INITIALIZE_FOR_LOG_EVENT);if("string"==typeof e&&0!==e.length){var o=(0,w.default)(e,n._identity._user,n._identity._statsigMetadata,t,r);n._logger.log(o)}}))},e.prototype.updateUserWithValues=function(e,t){var r,n=this,o=Date.now();return this._errorBoundary._capture("updateUserWithValues",(function(){if(!n.initializeCalled())throw new h.StatsigUninitializedError(h.StatsigErrorMessage.REQUIRE_ASYNC_INITIALIZE);return r=function(e,t){var r=n._options.updateUserCompletionCallback;null==r||r(Date.now()-o,e,t)},n._identity._user=n._normalizeUser(e),n._store.bootstrap(t),n._logger.resetDedupeKeys(),r(!0,null),!0}),(function(){return null==r||r(!1,"Failed to update user. An unexpected error occured."),!1}))},e.prototype.updateUser=function(e){return s(this,void 0,void 0,(function(){var t,r,n=this;return c(this,(function(o){return t=Date.now(),[2,this._errorBoundary._capture("updateUser",(function(){return s(n,void 0,void 0,(function(){var n,o=this;return c(this,(function(a){switch(a.label){case 0:if(!this.initializeCalled())throw new h.StatsigUninitializedError(h.StatsigErrorMessage.REQUIRE_ASYNC_INITIALIZE);return r=function(e,r){var n=o._options.updateUserCompletionCallback;null==n||n(Date.now()-t,e,r)},this._identity._user=this._normalizeUser(e),this._store.updateUser(),this._logger.resetDedupeKeys(),null==this._pendingInitPromise?[3,2]:[4,this._pendingInitPromise];case 1:a.sent(),a.label=2;case 2:return this._options.localMode?(r(!0,null),[2,Promise.resolve(!0)]):(n=this._identity._user,this._pendingInitPromise=this._fetchAndSaveValues(n).finally((function(){o._pendingInitPromise=null})),[2,this._pendingInitPromise.then((function(){return r(!0,null),Promise.resolve(!0)})).catch((function(e){return r(!1,"Failed to update user: ".concat(e)),Promise.resolve(!1)}))])}}))}))}),(function(){return r(!1,"Failed to update user. An unexpected error occured."),Promise.resolve(!1)}))]}))}))},e.prototype.shutdown=function(){var e=this;this._errorBoundary._swallow("shutdown",(function(){e._logger.shutdown()}))},e.prototype.getStableID=function(){var e=this;return this._errorBoundary._capture("getStableID",(function(){return e._identity._statsigMetadata.stableID}),(function(){return""}))},e.prototype.initializeCalled=function(){return this._initCalled},e.prototype.overrideGate=function(e,t){this._setOverride("gates",e,t)},e.prototype.overrideConfig=function(e,t){this._setOverride("configs",e,t)},e.prototype.overrideLayer=function(e,t){this._setOverride("layers",e,t)},e.prototype.setOverrides=function(e){var t=this;this._errorBoundary._swallow("setOverrides",(function(){t._overrides=null!=e?e:(0,E.makeEmptyOverrides)(),(0,E.saveOverridesToLocalStorage)(t._overrides)}))},e.prototype.getOverrides=function(){var e=this;return this._errorBoundary._capture("getOverrides",(function(){return e._overrides}),(function(){return(0,E.makeEmptyOverrides)()}))},e.prototype._delayedSetup=function(){var e=this;this._errorBoundary._swallow("delayedSetup",(function(){e._identity.saveStableID(),e._logger.sendSavedRequests().then((function(){}))}))},e.prototype._normalizeUser=function(e){var t={};try{t=JSON.parse(JSON.stringify(e))}catch(e){throw new h.StatsigInvalidArgumentError("User object must be convertable to JSON string.")}return null!=this._options.environment&&(t=n(n({},t),{statsigEnvironment:this._options.environment})),t},e.prototype._ensureStoreLoaded=function(){if(!this._store.isLoaded())throw new h.StatsigUninitializedError},e.prototype._getEvaluationDetailsForError=function(){return{time:Date.now(),reason:y.EvaluationReason.Error}},e.prototype._fetchAndSaveValues=function(e,t){return void 0===t&&(t=this._options.initTimeoutMs),s(this,void 0,void 0,(function(){var r,n,o=this;return c(this,(function(a){return null,r=this._store.getLastUpdateTime(e),n=this._store.getPreviousDerivedFields(e),[2,this._network.fetchValues(e,r,t,n).eventually((function(t){var r;(0,m.verifySDKKeyUsed)(t,null!==(r=o._sdkKey)&&void 0!==r?r:"",o._errorBoundary)&&(null==t?void 0:t.has_updates)&&o._store.save(e,t,!1)})).then((function(t){return s(o,void 0,void 0,(function(){var r=this;return c(this,(function(n){return[2,this._errorBoundary._swallow("fetchAndSaveValues",(function(){return s(r,void 0,void 0,(function(){var r;return c(this,(function(n){switch(n.label){case 0:return(0,m.verifySDKKeyUsed)(t,null!==(r=this._sdkKey)&&void 0!==r?r:"",this._errorBoundary)?(null==t?void 0:t.has_updates)?[4,this._store.save(e,t)]:[3,2]:[2];case 1:return n.sent(),[3,3];case 2:(null==t?void 0:t.is_no_content)&&this._store.setEvaluationReason(y.EvaluationReason.NetworkNotModified),n.label=3;case 3:return[2]}}))}))}))]}))}))}))]}))}))},e.prototype._checkGateImpl=function(e,t){var r=this;return this._errorBoundary._capture(t,(function(){if("boolean"==typeof r._overrides.gates[e])return r._overrides.gates[e];var n=r._getGateFromStore(e);return"checkGate"===t&&r._logGateExposureImpl(e,n),!0===n.gate.value}),(function(){return!1}))},e.prototype._getGateFromStore=function(e){if(this._ensureStoreLoaded(),"string"!=typeof e||0===e.length)throw new h.StatsigInvalidArgumentError("Must pass a valid string as the gateName.");return this._store.checkGate(e)},e.prototype._logGateExposureImpl=function(e,t){var r,n=!t,o=null!=t?t:this._getGateFromStore(e),a=o.gate;this._logger.logGateExposure(this._identity._user,e,a.value,a.rule_id,this._store.mapExposures(null!==(r=a.secondary_exposures)&&void 0!==r?r:[]),o.evaluationDetails,n,this._store.getBootstrapMetadata())},e.prototype._getConfigImpl=function(e,t){var r=this;return this._errorBoundary._capture(t,(function(){if(r._overrides.configs[e])return new u.default(e,r._overrides.configs[e],"local_override",{reason:y.EvaluationReason.LocalOverride,time:Date.now()});var n=r._getConfigFromStore(e);return"getConfig"===t&&r._logConfigExposureImpl(e,n),n}),(function(){return r._getEmptyConfig(e)}))},e.prototype._getConfigFromStore=function(e){if(this._ensureStoreLoaded(),"string"!=typeof e||0===e.length)throw new h.StatsigInvalidArgumentError("Must pass a valid string as the configName.");return this._store.getConfig(e)},e.prototype._logConfigExposureImpl=function(e,t){var r=!t,n=null!=t?t:this._getConfigFromStore(e);this._logger.logConfigExposure(this._identity._user,e,n._ruleID,n._secondaryExposures,n._evaluationDetails,r,this._store.getBootstrapMetadata())},e.prototype._getLayerImpl=function(e,t){var r=this;return this._errorBoundary._capture(t,(function(){if(r._overrides.layers[e])return p.default._create(e,r._overrides.layers[e],"local_override",{reason:y.EvaluationReason.LocalOverride,time:Date.now()});var n="getLayer"===t?r._logLayerParameterExposureForLayer:null;return r._getLayerFromStore(n,e)}),(function(){return p.default._create(e,{},"",r._getEvaluationDetailsForError())}))},e.prototype._getLayerFromStore=function(e,t){if(this._ensureStoreLoaded(),"string"!=typeof t||0===t.length)throw new h.StatsigInvalidArgumentError("Must pass a valid string as the layerName.");return this._store.getLayer(e,t)},e.prototype._getEmptyConfig=function(e){return new u.default(e,{},"",this._getEvaluationDetailsForError())},e.prototype._setOverride=function(e,t,r){null==r?delete this._overrides[e][t]:this._overrides[e][t]=r,this.setOverrides(this._overrides)},e}();t.default=x},27:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(193),a=r(816),i=n(r(139)),s=r(628),c=function(){function e(e,t,r){var n;this._sdkType="js-lite",this._sdkKey=e,this._user=t,this._sdkVersion=s.version;var a=r;a=null!==(n=null!=a?a:i.default.getItem(o.STATSIG_STABLE_ID_KEY))&&void 0!==n?n:this._getUUID(),this._statsigMetadata={stableID:a,sdkType:this._sdkType,sdkVersion:this._sdkVersion}}return e.prototype.saveStableID=function(){null!=this._statsigMetadata.stableID&&i.default.setItem(o.STATSIG_STABLE_ID_KEY,this._statsigMetadata.stableID)},e.prototype.getUserCacheKey=function(){return(0,a.getUserCacheKey)(this._user)},e.prototype._getUUID=function(){for(var e="",t=0;t<32;t++){8!==t&&12!==t&&16!==t&&20!==t||(e+="-");var r=16*Math.random()|0;e+=12===t?"4":16===t?(3&r|8).toString(16):r.toString(16)}return e},e}();t.default=c},261:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=a(r(226)),s=r(763),c=r(193),l=a(r(139)),u="statsig::",d=u+"config_exposure",h=u+"layer_exposure",p=u+"gate_exposure",f=u+"log_event_failed",g=u+"default_value_type_mismatch",b=1024e3,v=function(){function e(e,t,r,n){var o=this;this._failedLogEventCount=0,this.logConfigDefaultValueFallback=function(e,t,r){var n=(0,i.default)(g,e,o._identity._statsigMetadata,t,r);o.log(n),o._loggedErrors.add(t)},this._options=e,this._identity=t,this._network=r,this._errorBoundary=n,this._queue=[],this._flushInterval=null,this._loggedErrors=new Set,this._failedLogEvents=[],this._exposureDedupeKeys={},this._failedLogEventCount=0,this._init()}return e.prototype.log=function(e){if(!this._options.disableAllLogging){try{if(!this._options.disableCurrentPageLogging&&"undefined"!=typeof window&&null!=window&&"object"==typeof window.location&&"string"==typeof window.location.href){var t=window.location.href.split(/[?#]/);(null==t?void 0:t.length)>0&&(e.statsigMetadata.currentPage=t[0])}}catch(e){}this._queue.push(e),this._queue.length>=this._options.loggingBufferMaxSize&&this.flush()}},e.prototype.resetDedupeKeys=function(){this._exposureDedupeKeys={}},e.prototype.logGateExposure=function(e,t,r,n,o,a,s,c){var l=t+String(r)+n+a.reason;if(this._shouldLogExposure(l)){var u={gate:t,gateValue:String(r),ruleID:n,reason:a.reason,time:a.time};s&&(u.isManualExposure="true"),null!=c&&(u.bootstrapMetadata=c);var d=(0,i.default)(p,e,this._identity._statsigMetadata,null,u,o);this.log(d)}},e.prototype.logConfigExposure=function(e,t,r,n,o,a,s){var c=t+r+o.reason;if(this._shouldLogExposure(c)){var l={config:t,ruleID:r,reason:o.reason,time:o.time};a&&(l.isManualExposure="true"),null!=s&&(l.bootstrapMetadata=s);var u=(0,i.default)(d,e,this._identity._statsigMetadata,null,l,n);this.log(u)}},e.prototype.logLayerExposure=function(e,t,r,n,o,a,s,c,l,u){var d=[t,r,o,a,String(s),c.reason].join("|");if(this._shouldLogExposure(d)){var p={config:t,ruleID:r,allocatedExperiment:o,parameterName:a,isExplicitParameter:String(s),reason:c.reason,time:c.time};l&&(p.isManualExposure="true"),null!=u&&(p.bootstrapMetadata=u);var f=(0,i.default)(h,e,this._identity._statsigMetadata,null,p,n);this.log(f)}},e.prototype.shutdown=function(){this._flushInterval&&(clearInterval(this._flushInterval),this._flushInterval=null),this.flush(!0)},e.prototype.flush=function(e){var t=this;if(void 0===e&&(e=!1),0!==this._queue.length){var r=this._identity._statsigMetadata,a=this._queue;if(this._queue=[],e&&!this._network.supportsKeepalive()&&"undefined"!=typeof navigator&&null!=navigator&&navigator.sendBeacon){this._network.sendLogBeacon({events:a,statsigMetadata:r})||(this._queue=a.concat(this._queue),this._queue.length>0&&(this._addFailedRequest({events:this._queue,statsigMetadata:r,time:Date.now()}),this._queue=[]),this._saveFailedRequests())}else{var i=this;this._network.postToEndpoint(s.StatsigEndpoint.Rgstr,{events:a,statsigMetadata:r},3,1e3,0,e).then((function(e){if(!e.ok)throw e})).catch((function(e){"function"==typeof e.text?e.text().then((function(r){t._errorBoundary._logError(f,e,(function(){return n(t,void 0,void 0,(function(){return o(this,(function(e){return[2,{eventCount:a.length,error:r}]}))}))}))})):t._errorBoundary._logError(f,e,(function(){return n(t,void 0,void 0,(function(){return o(this,(function(t){return[2,{eventCount:a.length,error:e.message}]}))}))})),i._newFailedRequest(f,a)})).finally((function(){return n(t,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return e?(this._queue.length>0&&(this._addFailedRequest({events:this._queue,statsigMetadata:r,time:Date.now()}),this._queue=[]),[4,i._saveFailedRequests()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}))}}},e.prototype.sendSavedRequests=function(){return n(this,void 0,void 0,(function(){var e,t,r,n,a,i,u,d,h=this;return o(this,(function(o){if(t=!1,null==(e=l.default.getItem(c.STATSIG_LOCAL_STORAGE_LOGGING_REQUEST_KEY)))return this._clearLocalStorageRequests(),[2];e.length>b&&(t=!0),r=[];try{for(r=JSON.parse(e),n=function(e){null!=e&&e.events&&Array.isArray(e.events)&&a._network.postToEndpoint(s.StatsigEndpoint.Rgstr,e).then((function(e){if(!e.ok)throw Error(e.status+"")})).catch((function(r){t||h._addFailedRequest(e)}))},a=this,i=0,u=r;i<u.length;i++)d=u[i],n(d)}catch(e){}finally{this._clearLocalStorageRequests()}return[2]}))}))},e.prototype._init=function(){var e=this;if("undefined"!=typeof window&&"function"==typeof window.addEventListener&&(window.addEventListener("blur",(function(){return e.flush(!0)})),window.addEventListener("beforeunload",(function(){return e.flush(!0)})),window.addEventListener("load",(function(){setTimeout((function(){return e.flush()}),100),setTimeout((function(){return e.flush()}),1e3)}))),"undefined"!=typeof document&&"function"==typeof document.addEventListener&&document.addEventListener("visibilitychange",(function(){e.flush("visible"!==document.visibilityState)})),(this._options.ignoreWindowUndefined||"undefined"!=typeof window&&null!=window)&&!this._options.localMode){var t=this;this._flushInterval=setInterval((function(){t.flush()}),this._options.loggingIntervalMillis),setTimeout((function(){return e.flush()}),100),setTimeout((function(){return e.flush()}),1e3)}},e.prototype._shouldLogExposure=function(e){var t=this._exposureDedupeKeys[e],r=Date.now();return!(null!=t&&t>=r-6e5||(this._exposureDedupeKeys[e]=r,0))},e.prototype._saveFailedRequests=function(){return n(this,void 0,void 0,(function(){var e;return o(this,(function(t){if(this._failedLogEvents.length>0){if((e=JSON.stringify(this._failedLogEvents)).length>b)return this._clearLocalStorageRequests(),[2];l.default.setItem(c.STATSIG_LOCAL_STORAGE_LOGGING_REQUEST_KEY,e)}return[2]}))}))},e.prototype._addFailedRequest=function(e){if(!(e.time<Date.now()-432e6||this._failedLogEvents.length>100)){var t=e.events.length;this._failedLogEventCount+t>1e3||(this._failedLogEvents.push(e),this._failedLogEventCount+=t)}},e.prototype._clearLocalStorageRequests=function(){l.default.removeItem(c.STATSIG_LOCAL_STORAGE_LOGGING_REQUEST_KEY)},e.prototype._newFailedRequest=function(e,t){this._loggedErrors.has(e)||(this._loggedErrors.add(e),this._failedLogEvents.push({events:t,statsigMetadata:this._identity._statsigMetadata,time:Date.now()}),this._saveFailedRequests().then((function(){})))},e}();t.default=v},763:function(e,t){"use strict";var r,n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigEndpoint=void 0,function(e){e.Initialize="initialize",e.Rgstr="rgstr",e.LogEventBeacon="log_event_beacon"}(r=t.StatsigEndpoint||(t.StatsigEndpoint={}));var a=function(){function e(e,t,r){this.retryCodes={408:!0,500:!0,502:!0,503:!0,504:!0,522:!0,524:!0,599:!0},this.canUseKeepalive=!1,this._options=e,this._identity=t,this._errorBoundary=r,this.leakyBucket={},this._init()}return e.prototype.fetchValues=function(e,t,n,o){var a={user:e,statsigMetadata:this._identity._statsigMetadata,sinceTime:null!=t?t:void 0,hash:"djb2",previousDerivedFields:o};return this._postWithTimeout(r.Initialize,a,n,3)},e.prototype.sendLogBeacon=function(e){if(this._options.localMode)return!0;var t=new URL(this._options.eventLoggingApi+r.LogEventBeacon);t.searchParams.append("k",this._identity._sdkKey),e.clientTime=Date.now()+"";var n=null;try{n=JSON.stringify(e)}catch(e){return!1}return navigator.sendBeacon(t.toString(),n)},e.prototype.postToEndpoint=function(e,t,a,i,s,c){return void 0===a&&(a=0),void 0===i&&(i=1e3),void 0===s&&(s=0),void 0===c&&(c=!1),n(this,void 0,void 0,(function(){var l,u,d,h,p,f,g=this;return o(this,(function(b){return this._options.localMode?[2,Promise.reject("no network requests in localMode")]:"function"!=typeof fetch?[2,Promise.reject("fetch is not defined")]:"undefined"!=typeof window||this._options.ignoreWindowUndefined?(l=[r.Initialize].includes(e)?this._options.api:s>0?this._options.eventLoggingApiForRetries:this._options.eventLoggingApi,u=l+e,null!=(d=this.leakyBucket[u])&&d>=30?[2,Promise.reject(new Error("Request failed because you are making the same request too frequently."))]:(this.leakyBucket[u]=null==d?1:d+1,h=JSON.stringify(t),p=this._identity._statsigMetadata,f={method:"POST",body:h,headers:{"Content-type":"application/json; charset=UTF-8","STATSIG-API-KEY":this._identity._sdkKey,"STATSIG-CLIENT-TIME":Date.now()+"","STATSIG-SDK-TYPE":p.sdkType,"STATSIG-SDK-VERSION":p.sdkVersion}},this.canUseKeepalive&&c&&(f.keepalive=!0),[2,fetch(u,f).then((function(e){return n(g,void 0,void 0,(function(){var t,r,n;return o(this,(function(o){switch(o.label){case 0:return e.ok?(t=e,204!==e.status?[3,1]:(t.data={has_updates:!1,is_no_content:!0},[3,3])):[3,4];case 1:return[4,e.text()];case 2:r=o.sent(),t.data=JSON.parse(r),o.label=3;case 3:return[2,Promise.resolve(t)];case 4:return this.retryCodes[e.status]||(a=0),[4,e.text()];case 5:return n=o.sent(),[2,Promise.reject(new Error("".concat(e.status,": ").concat(n)))]}}))}))})).catch((function(r){return a>0?new Promise((function(r,n){setTimeout((function(){g.leakyBucket[u]=Math.max(g.leakyBucket[u]-1,0),g.postToEndpoint(e,t,a-1,2*i,s+1,c).then(r).catch(n)}),i)})):Promise.reject(r)})).finally((function(){g.leakyBucket[u]=Math.max(g.leakyBucket[u]-1,0)}))])):[2,Promise.reject("window is not defined")]}))}))},e.prototype.supportsKeepalive=function(){return this.canUseKeepalive},e.prototype._init=function(){if(!this._options.disableNetworkKeepalive)try{this.canUseKeepalive="keepalive"in new Request("")}catch(e){}},e.prototype._postWithTimeout=function(e,t,r,a,i){var s=this;void 0===r&&(r=0),void 0===a&&(a=0),void 0===i&&(i=1e3);var c=!1,l=null,u=null,d=[];0!=r&&(l=new Promise((function(e,t){setTimeout((function(){c=!0,t(new Error("The initialization timeout of ".concat(r,"ms has been hit before the network request has completed.")))}),r)})));var h,p=this.postToEndpoint(e,t,a,i).then((function(r){if(!r.ok)return Promise.reject(new Error("Request to ".concat(e," failed with status ").concat(r.status)));if("object"!=typeof r.data){var l=new Error("Request to ".concat(e," received invalid response type. Expected 'object' but got '").concat(typeof r.data,"'"));return s._errorBoundary._logError("postWithTimeoutInvalidRes",l,(function(){return n(s,void 0,void 0,(function(){return o(this,(function(n){return[2,this._getErrorData(e,t,a,i,r)]}))}))})),Promise.reject(l)}var h=r.data;return s._errorBoundary._capture("postWithTimeout",(function(){return n(s,void 0,void 0,(function(){return o(this,(function(e){return u=h,c&&(d.forEach((function(e){return e(h)})),d=[]),[2,Promise.resolve(h)]}))}))}),(function(){return Promise.resolve({})}),(function(){return n(s,void 0,void 0,(function(){return o(this,(function(n){return[2,this._getErrorData(e,t,a,i,r)]}))}))}))})).catch((function(e){return Promise.reject(e)})),f=l?Promise.race([p,l]):p;return f.eventually=(h=f,function(e){return c&&u?e(u):d.push(e),h}),f},e.prototype._getErrorData=function(e,t,r,a,i){var s;return n(this,void 0,void 0,(function(){var n;return o(this,(function(o){try{return n={},(null!==(s=i.headers)&&void 0!==s?s:[]).forEach((function(e,t){n[t]=e})),[2,{responseInfo:{headers:n,status:i.status,statusText:i.statusText,type:i.type,url:i.url,redirected:i.redirected,bodySnippet:i.data?JSON.stringify(i.data).slice(0,500):null},requestInfo:{endpointName:e,bodySnippet:JSON.stringify(t).slice(0,500),retries:r,backoff:a}}]}catch(e){return[2,{statusText:"statsig::failed to extract extra data"}]}return[2]}))}))},e}();t.default=a},951:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INIT_TIMEOUT_DEFAULT_MS=void 0;t.INIT_TIMEOUT_DEFAULT_MS=3e3;var r=function(){function e(e){var r,n,o,a,i,s,c,l,u,d,h,p,f,g,b,v;null==e&&(e={});var y=null!==(r=e.api)&&void 0!==r?r:"https://featuregates.org/v1/";this.api=y.endsWith("/")?y:y+"/",this.disableCurrentPageLogging=null!==(n=e.disableCurrentPageLogging)&&void 0!==n&&n,this.environment=null!==(o=e.environment)&&void 0!==o?o:null,this.loggingIntervalMillis=this.normalizeNumberInput(e.loggingIntervalMillis,{default:1e4,min:1e3,max:6e4}),this.loggingBufferMaxSize=this.normalizeNumberInput(e.loggingBufferMaxSize,{default:100,min:2,max:500}),this.disableNetworkKeepalive=null!==(a=e.disableNetworkKeepalive)&&void 0!==a&&a,this.overrideStableID=null!==(i=e.overrideStableID)&&void 0!==i?i:null,this.localMode=null!==(s=e.localMode)&&void 0!==s&&s,this.initTimeoutMs=e.initTimeoutMs&&e.initTimeoutMs>=0?e.initTimeoutMs:t.INIT_TIMEOUT_DEFAULT_MS,this.disableErrorLogging=null!==(c=e.disableErrorLogging)&&void 0!==c&&c,this.disableAutoMetricsLogging=null!==(l=e.disableAutoMetricsLogging)&&void 0!==l&&l,this.initializeValues=null!==(u=e.initializeValues)&&void 0!==u?u:null;var m=null!==(h=null!==(d=e.eventLoggingApi)&&void 0!==d?d:e.api)&&void 0!==h?h:"https://events.statsigapi.net/v1/";this.eventLoggingApi=m.endsWith("/")?m:m+"/";var _=null!==(p=e.eventLoggingApiForRetries)&&void 0!==p?p:m;this.eventLoggingApiForRetries=_.endsWith("/")?_:_+"/",this.disableLocalStorage=null!==(f=e.disableLocalStorage)&&void 0!==f&&f,this.ignoreWindowUndefined=null!==(g=null==e?void 0:e.ignoreWindowUndefined)&&void 0!==g&&g,this.updateUserCompletionCallback=null!==(b=null==e?void 0:e.updateUserCompletionCallback)&&void 0!==b?b:null,this.disableAllLogging=null!==(v=null==e?void 0:e.disableAllLogging)&&void 0!==v&&v}return e.prototype.normalizeNumberInput=function(e,t){return null==e?t.default:Math.max(Math.min(e,t.max),t.min)},e}();t.default=r},812:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EvaluationReason=void 0;var i,s=a(r(913)),c=a(r(755)),l=a(r(866)),u=r(193),d=r(816),h=a(r(139));!function(e){e.Network="Network",e.Bootstrap="Bootstrap",e.InvalidBootstrap="InvalidBootstrap",e.Cache="Cache",e.Unrecognized="Unrecognized",e.Uninitialized="Uninitialized",e.Error="Error",e.NetworkNotModified="NetworkNotModified",e.LocalOverride="LocalOverride"}(i=t.EvaluationReason||(t.EvaluationReason={}));var p=function(){function e(e,t,r){this._identity=e,this._onDefaultValueFallback=t,this._userCacheKey=this._identity.getUserCacheKey(),this._values={},this._userValues=this._getDefaultUserCacheValues(),this._loaded=!1,this._reason=i.Uninitialized,r?this.bootstrap(r):this._loadFromLocalStorage()}return e.prototype.updateUser=function(){return this._userCacheKey=this._identity.getUserCacheKey(),this._setUserValueFromCache()},e.prototype.bootstrap=function(e){var t,r,n,o,a,s,c,u=this._identity.getUserCacheKey(),d=this._identity._user,h=l.default.isValid(d,e)?i.Bootstrap:i.InvalidBootstrap;this._loaded=!0;try{this._userValues.feature_gates=null!==(t=e.feature_gates)&&void 0!==t?t:{},this._userValues.dynamic_configs=null!==(r=e.dynamic_configs)&&void 0!==r?r:{},this._userValues.layer_configs=null!==(n=e.layer_configs)&&void 0!==n?n:{},this._userValues.evaluation_time=Date.now(),this._userValues.time=null!==(o=e.time)&&void 0!==o?o:Date.now(),this._userValues.exposures=null!==(a=e.exposures)&&void 0!==a?a:[],this._userValues.hash_used=null!==(s=e.hash_used)&&void 0!==s?s:"djb2",this._values[u]=this._userValues,this._reason=h;var p=null!==(c=e.sdkInfo)&&void 0!==c?c:e.sdk_info;this._userValues.bootstrapMetadata={},null!=p&&(this._userValues.bootstrapMetadata.generatorSDKInfo=p),null!=e.user&&(this._userValues.bootstrapMetadata.user=e.user),null!=e.time&&(this._userValues.bootstrapMetadata.lcut=e.time)}catch(e){return}},e.prototype.getBootstrapMetadata=function(){var e;return null!==(e=this._userValues.bootstrapMetadata)&&void 0!==e?e:null},e.prototype.isLoaded=function(){return this._loaded},e.prototype.getLastUpdateTime=function(e){var t=(0,d.djb2HashForObject)(e);return this._userValues.user_hash==t?this._userValues.time:null},e.prototype.getPreviousDerivedFields=function(e){var t=(0,d.djb2HashForObject)(e);if(this._userValues.user_hash==t)return this._userValues.derived_fields},e.prototype.setEvaluationReason=function(e){this._reason=e},e.prototype.save=function(e,t,r){return void 0===r&&(r=!0),n(this,void 0,void 0,(function(){var n,a,s,c;return o(this,(function(o){switch(o.label){case 0:return n=(0,d.getUserCacheKey)(e),a=t,this._mergeInitializeResponseIntoUserMap(a,this._values,n,e,(function(e){return e})),r&&(s=this._values[n])&&n&&n==this._userCacheKey&&(this._userValues=s,this._reason=i.Network),c=this,[4,this._writeValuesToStorage(this._values)];case 1:return c._values=o.sent(),[2]}}))}))},e.prototype.checkGate=function(e){var t,r,n=(0,d.getHashValue)(e,this._userValues.hash_used),o={name:e,value:!1,rule_id:"",secondary_exposures:[]},a=null===(t=this._userValues)||void 0===t?void 0:t.feature_gates[n];return a&&(o=a),o.secondary_exposures=this.mapExposures(null!==(r=o.secondary_exposures)&&void 0!==r?r:[]),{evaluationDetails:this._getEvaluationDetails(null!=a),gate:o}},e.prototype.mapExposures=function(e){var t=this;return e.map((function(e){var r;return"string"==typeof e?(null!==(r=t._userValues.exposures)&&void 0!==r?r:{})[e]:e}))},e.prototype.getConfig=function(e){var t,r,n,o,a=(0,d.getHashValue)(e,this._userValues.hash_used);if(null!=(null===(t=this._userValues)||void 0===t?void 0:t.dynamic_configs[a])){var i=null===(r=this._userValues)||void 0===r?void 0:r.dynamic_configs[a];o=this._getEvaluationDetails(!0),n=this._createDynamicConfig(e,i,o)}else o=this._getEvaluationDetails(!1),n=new s.default(e,{},"",o);return n},e.prototype.getLayer=function(e,t){var r,n,o,a,i,s=this._getLatestValue(t,"layer_configs"),l=this._getEvaluationDetails(null!=s);return c.default._create(t,null!==(r=null==s?void 0:s.value)&&void 0!==r?r:{},null!==(n=null==s?void 0:s.rule_id)&&void 0!==n?n:"",l,e,this.mapExposures(null!==(o=null==s?void 0:s.secondary_exposures)&&void 0!==o?o:[]),this.mapExposures(null!==(a=null==s?void 0:s.undelegated_secondary_exposures)&&void 0!==a?a:[]),null!==(i=null==s?void 0:s.allocated_experiment_name)&&void 0!==i?i:"",null==s?void 0:s.explicit_parameters)},e.prototype.getGlobalEvaluationDetails=function(){var e,t;return{reason:null!==(e=this._reason)&&void 0!==e?e:i.Uninitialized,time:null!==(t=this._userValues.evaluation_time)&&void 0!==t?t:0}},e.prototype._loadFromLocalStorage=function(){this._parseCachedValues(h.default.getItem(u.INTERNAL_STORE_KEY)),this._loaded=!0},e.prototype._parseCachedValues=function(e){try{this._values=e?JSON.parse(e):this._values,this._setUserValueFromCache()}catch(e){this._removeFromStorage(u.INTERNAL_STORE_KEY)}},e.prototype._setUserValueFromCache=function(){var e,t=this._values[this._userCacheKey];return null==t?(this._resetUserValues(),this._reason=i.Uninitialized,null):(this._userValues=t,this._reason=i.Cache,null!==(e=t.evaluation_time)&&void 0!==e?e:0)},e.prototype._removeFromStorage=function(e){h.default.removeItem(e)},e.prototype._mergeInitializeResponseIntoUserMap=function(e,t,r,n,o){if(r){var a=this._convertAPIDataToCacheValues(e,r);if(e.has_updates&&e.time){var i=(0,d.djb2HashForObject)(n);a.user_hash=i}t[r]=o(a,r)}},e.prototype._getDefaultUserCacheValues=function(){return{feature_gates:{},layer_configs:{},dynamic_configs:{},time:0,evaluation_time:0,has_updates:!1}},e.prototype._writeValuesToStorage=function(e){return n(this,void 0,void 0,(function(){var t;return o(this,(function(r){return t=Object.entries(e).sort((function(e,t){var r,n,o=e[1],a=t[1];return null==o?1:null==a?-1:(null!==(r=null==a?void 0:a.evaluation_time)&&void 0!==r?r:null==a?void 0:a.time)-(null!==(n=null==o?void 0:o.evaluation_time)&&void 0!==n?n:null==o?void 0:o.time)})).slice(0,10),e=Object.fromEntries(t),h.default.setItem(u.INTERNAL_STORE_KEY,JSON.stringify(e)),[2,e]}))}))},e.prototype._getLatestValue=function(e,t){var r,n,o,a,i,s=(0,d.getHashValue)(e,this._userValues.hash_used);return null!==(o=null===(n=null===(r=this._userValues)||void 0===r?void 0:r[t])||void 0===n?void 0:n[s])&&void 0!==o?o:null===(i=null===(a=this._userValues)||void 0===a?void 0:a[t])||void 0===i?void 0:i[e]},e.prototype._createDynamicConfig=function(e,t,r){var n,o,a,i;return new s.default(e,null!==(n=null==t?void 0:t.value)&&void 0!==n?n:{},null!==(o=null==t?void 0:t.rule_id)&&void 0!==o?o:"",r,this.mapExposures(null!==(a=null==t?void 0:t.secondary_exposures)&&void 0!==a?a:[]),null!==(i=null==t?void 0:t.allocated_experiment_name)&&void 0!==i?i:"",this._makeOnConfigDefaultValueFallback(this._identity._user))},e.prototype._getEvaluationDetails=function(e,t){var r;return e?{reason:this._reason,time:null!==(r=this._userValues.evaluation_time)&&void 0!==r?r:Date.now()}:{reason:null!=t?t:this._reason==i.Uninitialized?i.Uninitialized:i.Unrecognized,time:Date.now()}},e.prototype._resetUserValues=function(){this._userValues=this._getDefaultUserCacheValues()},e.prototype._convertAPIDataToCacheValues=function(e,t){return{feature_gates:e.feature_gates,layer_configs:e.layer_configs,dynamic_configs:e.dynamic_configs,time:null==e.time||isNaN(e.time)?0:e.time,evaluation_time:Date.now(),derived_fields:e.derived_fields,hash_used:e.hash_used}},e.prototype._makeOnConfigDefaultValueFallback=function(e){var t=this;return function(r,n,o,a){t.isLoaded()&&t._onDefaultValueFallback(e,"Parameter ".concat(n," is a value of type ").concat(a,".\n Returning requested defaultValue type ").concat(o),{name:r._name,ruleID:r._ruleID,parameter:n,defaultValueType:o,valueType:a})}},e}();t.default=p},730:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EvaluationReason=t.Layer=t.DynamicConfig=void 0;var i=r(95),s=a(r(966)),c=r(812),l=r(913);Object.defineProperty(t,"DynamicConfig",{enumerable:!0,get:function(){return a(l).default}});var u=r(755);Object.defineProperty(t,"Layer",{enumerable:!0,get:function(){return a(u).default}});var d=r(812);Object.defineProperty(t,"EvaluationReason",{enumerable:!0,get:function(){return d.EvaluationReason}});var h=function(){function e(){}return e.initialize=function(t,r,a){var i;return n(this,void 0,void 0,(function(){var n;return o(this,(function(o){return n=null!==(i=e.instance)&&void 0!==i?i:new s.default(t,r,a),e.instance||(e.instance=n),[2,n.initializeAsync()]}))}))},e.setInitializeValues=function(t){e._getClientX().setInitializeValues(t)},e.checkGate=function(t){return e._getClientX().checkGate(t)},e.checkGateWithExposureLoggingDisabled=function(t){return e._getClientX().checkGateWithExposureLoggingDisabled(t)},e.manuallyLogGateExposure=function(t){e._getClientX().logGateExposure(t)},e.getConfig=function(t){return e._getClientX().getConfig(t)},e.getConfigWithExposureLoggingDisabled=function(t){return e._getClientX().getConfigWithExposureLoggingDisabled(t)},e.manuallyLogConfigExposure=function(t){e._getClientX().logConfigExposure(t)},e.getExperiment=function(t){return e._getClientX().getExperiment(t)},e.getExperimentWithExposureLoggingDisabled=function(t){return e._getClientX().getExperimentWithExposureLoggingDisabled(t)},e.manuallyLogExperimentExposure=function(t){e._getClientX().logExperimentExposure(t)},e.getLayer=function(t){return e._getClientX().getLayer(t)},e.getLayerWithExposureLoggingDisabled=function(t){return e._getClientX().getLayerWithExposureLoggingDisabled(t)},e.manuallyLogLayerParameterExposure=function(t,r){e._getClientX().logLayerParameterExposure(t,r)},e.logEvent=function(t,r,n){return void 0===r&&(r=null),void 0===n&&(n=null),e._getClientX().logEvent(t,r,n)},e.updateUser=function(t){return e._getClientX().updateUser(t)},e.updateUserWithValues=function(t,r){return e._getClientX().updateUserWithValues(t,r)},e.shutdown=function(){e._getClientX().shutdown(),e.instance=null},e.overrideGate=function(t,r){e._getClientX().overrideGate(t,r)},e.overrideConfig=function(t,r){e._getClientX().overrideConfig(t,r)},e.overrideLayer=function(t,r){e._getClientX().overrideLayer(t,r)},e.setOverrides=function(t){e._getClientX().setOverrides(t)},e.getOverrides=function(){return e._getClientX().getOverrides()},e.getStableID=function(){return e._getClientX().getStableID()},e.getEvaluationDetails=function(){var t,r;return null!==(r=null===(t=e.instance)||void 0===t?void 0:t.getEvaluationDetails())&&void 0!==r?r:{reason:c.EvaluationReason.Uninitialized,time:0}},e.initializeCalled=function(){return null!=e.instance&&e.instance.initializeCalled()},e._getClientX=function(){if(!e.instance)throw new i.StatsigUninitializedError;return e.instance},e.instance=null,e}();t.default=h},866:function(e,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.isValid=function(t,r){try{var n=r.evaluated_keys;if(!n){var o=r.user;o&&((n={}).userID=o.userID,o.customIDs&&(n.customIDs=o.customIDs))}if(!n||"object"!=typeof n)return!0;var a=this.copyObject(n),i=null==t?null:this.copyObject(t);return e.validate(a,i)&&e.validate(i,a)}catch(e){}return!0},e.validate=function(e,t){if(null==e)return null==t;if(null==t)return!1;for(var r=0,n=Object.entries(e);r<n.length;r++){var o=n[r],a=o[0],i=o[1];if("stableID"!==a){if(typeof i!=typeof t[a])return!1;if("string"!=typeof i)return"object"==typeof i&&this.validate(i,t[a]);if(i!==t[a])return!1}}return!0},e.copyObject=function(e){if(null==e)return null;var t={};if((null==e?void 0:e.userID)&&(t.userID=null==e?void 0:e.userID),null==e?void 0:e.customIDs){var n=r({},e.customIDs);delete n.stableID,0!==Object.keys(n).length&&(t.customIDs=n)}return t},e}();t.default=n},193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOCAL_STORAGE_KEYS=t.STATSIG_LOCAL_STORAGE_LOGGING_REQUEST_KEY=t.STATSIG_STABLE_ID_KEY=t.INTERNAL_STORE_KEY=void 0,t.INTERNAL_STORE_KEY="STATSIG_STORE",t.STATSIG_STABLE_ID_KEY="STATSIG_STABLE_ID",t.STATSIG_LOCAL_STORAGE_LOGGING_REQUEST_KEY="STATSIG_LOGS",t.LOCAL_STORAGE_KEYS={INTERNAL_STORE_KEY:!0,STATSIG_STABLE_ID_KEY:!0,STATSIG_LOCAL_STORAGE_LOGGING_REQUEST_KEY:!0}},816:(e,t)=>{"use strict";function r(e){for(var t=0,r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t|=0}return String(t>>>0)}function n(e){if(null==e)return null;var t=Object.keys(e).sort(),r={};return t.forEach((function(t){var o=e[t];o instanceof Object&&(o=n(o)),r[t]=o})),r}Object.defineProperty(t,"__esModule",{value:!0}),t.getUserCacheKey=t.getSortedObject=t.djb2HashForObject=t.getHashValue=t.SimpleHash=void 0,t.SimpleHash=r,t.getHashValue=function(e,t){return"none"===t?e:r(e)},t.djb2HashForObject=function(e){return r(JSON.stringify(n(e)))},t.getSortedObject=n,t.getUserCacheKey=function(e){var t,n="userID:".concat(String(null!==(t=null==e?void 0:e.userID)&&void 0!==t?t:"")),o=null==e?void 0:e.customIDs;if(null!=o)for(var a=0,i=Object.entries(o);a<i.length;a++){var s=i[a],c=s[0],l=s[1];n+=";".concat(c,":").concat(l)}return r(n)}},182:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifySDKKeyUsed=void 0;var n=r(95),o=r(816);t.verifySDKKeyUsed=function(e,t,r){var a=null==e?void 0:e.hashed_sdk_key_used;return null==a||a===(0,o.SimpleHash)(null!=t?t:"")||(r._logError("fetchAndSaveValues",new n.StatsigSDKKeyMismatchError("The SDK key provided does not match the one used to generate values.")),!1)}},139:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.getItem=function(e){var t;try{if(this.isStorageAccessible())return window.localStorage.getItem(e)}catch(e){}return null!==(t=this.fallbackSessionCache[e])&&void 0!==t?t:null},e.setItem=function(e,t){try{if(this.isStorageAccessible())return void window.localStorage.setItem(e,t)}catch(e){}this.fallbackSessionCache[e]=t},e.removeItem=function(e){try{if(this.isStorageAccessible())return void window.localStorage.removeItem(e)}catch(e){}delete this.fallbackSessionCache[e]},e.isStorageAccessible=function(e){void 0===e&&(e=!1),null==this.canAccessStorageAccessible&&(this.canAccessStorageAccessible="undefined"!=typeof Storage&&"undefined"!=typeof window&&null!=window&&null!=window.localStorage);var t=this.canAccessStorageAccessible;return(e||!this.disabled)&&t},e.disabled=!1,e.fallbackSessionCache={},e.canAccessStorageAccessible=null,e}();t.default=r},944:(e,t)=>{"use strict";function r(){return"undefined"!=typeof performance&&performance?0|performance.now():Date.now()}Object.defineProperty(t,"__esModule",{value:!0}),t.difference=t.now=void 0,t.now=r,t.difference=function(e){return r()-e}},39:()=>{},541:(e,t,r)=>{var n=r(998).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},a=Object.prototype,i=a.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",d=c.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(t){h=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof _?t:_,a=Object.create(o.prototype),i=new M(n||[]);return s(a,"_invoke",{value:C(e,r,i)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var g="suspendedStart",b="suspendedYield",v="executing",y="completed",m={};function _(){}function k(){}function w(){}var E={};h(E,l,(function(){return this}));var x=Object.getPrototypeOf,O=x&&x(x(D([])));O&&O!==a&&i.call(O,l)&&(E=O);var S=w.prototype=_.prototype=Object.create(E);function L(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function r(o,a,s,c){var l=f(e[o],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==n(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,c)}))}c(l.arg)}var o;s(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}})}function C(e,r,n){var o=g;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var s=n.delegate;if(s){var c=T(s,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===g)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:b,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function T(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function D(e){if(e||""===e){var r=e[l];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return k.prototype=w,s(S,"constructor",{value:w,configurable:!0}),s(w,"constructor",{value:k,configurable:!0}),k.displayName=h(w,d,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===k||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,h(e,d,"GeneratorFunction")),e.prototype=Object.create(S),e},r.awrap=function(e){return{__await:e}},L(A.prototype),h(A.prototype,u,(function(){return this})),r.AsyncIterator=A,r.async=function(e,t,n,o,a){void 0===a&&(a=Promise);var i=new A(p(e,t,n,o),a);return r.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},L(S),h(S,d,"Generator"),h(S,l,(function(){return this})),h(S,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=D,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},998:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},192:(e,t,r)=>{var n=r(541)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return r[e].call(a.exports,a,a.exports,o),a.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>({138:"./themes/shape",177:"./themes/legacy-light",186:"./themes/typography-modernized",213:"./themes/typography-refreshed",381:"./themes/light",479:"./themes/dark",498:"./themes/spacing",567:"./themes/light-future",592:"./themes/typography-adg3",915:"./themes/legacy-dark",917:"./themes/dark-future"}[e]+".js"),o.miniCssF=e=>{},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="__auiPrototyping:",o.l=(r,n,a,i)=>{if(e[r])e[r].push(n);else{var s,c;if(void 0!==a)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+a){s=d;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+a),s.src=r),e[r]=[n];var h=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),c&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="/",(()=>{var e={635:0};o.f.j=(t,r)=>{var n=o.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var a=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=a);var i=o.p+o.u(t),s=new Error;o.l(i,(r=>{if(o.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,a,[i,s,c]=r,l=0;if(i.some((t=>0!==e[t]))){for(n in s)o.o(s,n)&&(o.m[n]=s[n]);if(c)c(o)}for(t&&t(r);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=window.webpackChunk_auiPrototyping=window.webpackChunk_auiPrototyping||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a={};return(()=>{"use strict";o.r(a),o.d(a,{setGlobalTheme:()=>yt});var e={};function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function i(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n(o.key),o)}}function s(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t,r,n,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){h(a,n,o,i,s,"next",e)}function s(e){h(a,n,o,i,s,"throw",e)}i(void 0)}))}}o.r(e),o.d(e,{CURRENT_SURFACE_CSS_VAR:()=>xe,ThemeMutationObserver:()=>gt,enableGlobalTheme:()=>st,getGlobalTheme:()=>ft,getSSRAutoScript:()=>lt,getThemeHtmlAttrs:()=>Ge,getThemeStyles:()=>ct,getTokenValue:()=>Le,setGlobalTheme:()=>it,themeConfig:()=>ve,themeObjectToString:()=>je,themeStringToObject:()=>De,token:()=>Se,useThemeObserver:()=>dt()});var f=o(192),g=o.n(f),b=o(730),v=o.n(b),y=o(853);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var k="@all-features",w=function(){return s((function e(){t(this,e),c(this,"eventToValue",new Map),this.emitter=new y.EventEmitter2}),[{key:"onGateUpdated",value:function(e,t,r,n){var o=this,a=r(e,_(_({},n),{},{fireGateExposure:!1}));void 0===this.eventToValue.get(t)&&this.eventToValue.set(t,a);var i=function(){var a=r(e,_(_({},n),{},{fireGateExposure:!1}));o.eventToValue.get(t)!==a&&(o.eventToValue.set(t,a),t(a))};return this.emitter.on(e,i),function(){o.emitter.off(e,i)}}},{key:"onExperimentValueUpdated",value:function(e,t,r,n,o,a){var i=this,s="".concat(e,".").concat(t),c=o(e,t,r,_(_({},a),{},{fireExperimentExposure:!1}));void 0===this.eventToValue.get(n)&&this.eventToValue.set(n,c);var l=function(){var s=o(e,t,r,_(_({},a),{},{fireExperimentExposure:!1}));i.eventToValue.get(n)!==s&&(i.eventToValue.set(n,s),n(s))};return this.emitter.on(s,l),function(){i.emitter.off(s,l)}}},{key:"onAnyUpdated",value:function(e){var t=this;return this.emitter.on(k,e),function(){t.emitter.off(k,e)}}},{key:"anyUpdated",value:function(){var e=this;this.emitter.emit(k),this.emitter.eventNames().filter((function(e){return e!==k})).forEach((function(t){e.emitter.emit(t)}))}}])}(),E=function(e){return e.Development="development",e.Staging="staging",e.Production="production",e}({}),x=function(e){return e.COMMERCIAL="commercial",e.FEDRAMP_MODERATE="fedramp-moderate",e}({}),O="4.23.4";function S(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function T(e){var t="function"==typeof Map?new Map:void 0;return T=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(C())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&A(o,r.prototype),o}(e,arguments,L(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),A(r,e)},T(e)}function P(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(P=function(){return!!e})()}var I=function(e){function r(e){return t(this,r),n=this,a=[e],o=L(o=r),S(n,P()?Reflect.construct(o,a||[],L(n).constructor):o.apply(n,a));var n,o,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}(r,e),s(r)}(T(Error));function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var j=function(){function e(){t(this,e)}return s(e,null,[{key:"fetchClientSdk",value:(i=p(g().mark((function e(t){var r,n;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.targetApp,n="/api/v2/frontend/clientSdkKey/".concat(r),e.prev=2,e.next=5,this.fetchRequest(n,"GET",t);case 5:return e.abrupt("return",e.sent);case 8:if(e.prev=8,e.t0=e.catch(2),!(e.t0 instanceof Error)){e.next=12;break}throw e.t0;case 12:throw Error("Failed to retrieve client sdk key");case 13:case"end":return e.stop()}}),e,this,[[2,8]])}))),function(e){return i.apply(this,arguments)})},{key:"fetchExperimentValues",value:(a=p(g().mark((function e(t,r,n){var o;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={identifiers:r,customAttributes:n,targetApp:t.targetApp},e.prev=1,e.next=4,this.fetchRequest("/api/v2/frontend/experimentValues","POST",t,o);case 4:return e.abrupt("return",e.sent);case 7:if(e.prev=7,e.t0=e.catch(1),!(e.t0 instanceof Error)){e.next=11;break}throw e.t0;case 11:throw Error("Failed to retrieve experiment values");case 12:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(e,t,r){return a.apply(this,arguments)})},{key:"handleResponseError",value:(o=p(g().mark((function e(t){var r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ok){e.next=5;break}return e.next=3,t.text();case 3:throw r=e.sent,new I("Non 2xx response status received, status: ".concat(t.status,", body: ").concat(JSON.stringify(r)));case 5:if(204!==t.status){e.next=7;break}throw new I("Unexpected 204 response");case 7:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"extractResponseBody",value:(n=p(g().mark((function e(t){var r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.text();case 2:return r=e.sent,e.abrupt("return",JSON.parse(r));case 4:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"getBaseUrl",value:function(e){var t=arguments.length>2?arguments[2]:void 0;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return"/gateway/api/flags";if(t===x.FEDRAMP_MODERATE)switch(e){case E.Production:return"https://api.atlassian-us-gov-mod.com/flags";case E.Staging:return"https://api.stg.atlassian-us-gov-mod.com/flags";default:throw new Error('Invalid environment "'.concat(e,'" for "').concat(t,'" perimeter'))}else{if(t!==x.COMMERCIAL)throw new Error('Invalid perimeter "'.concat(t,'"'));switch(e){case E.Development:return"https://api.dev.atlassian.com/flags";case E.Staging:return"https://api.stg.atlassian.com/flags";default:return"https://api.atlassian.com/flags"}}}},{key:"fetchRequest",value:(r=p(g().mark((function t(r,n,o,a){var i,s,c,l,u;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.getBaseUrl(o.environment,o.useGatewayURL,o.perimeter),s=o.fetchTimeoutMs||5e3,AbortSignal.timeout?c=AbortSignal.timeout(s):AbortController&&(l=new AbortController,c=l.signal,setTimeout((function(){return l.abort()}),s)),t.next=5,fetch("".concat(i).concat(r),D({method:n,headers:{"Content-Type":"application/json","X-Client-Name":"feature-gate-js-client","X-Client-Version":O,"X-API-KEY":o.apiKey},signal:c},a&&{body:JSON.stringify(a)}));case 5:return u=t.sent,t.next=8,this.handleResponseError(u);case 8:return t.next=10,this.extractResponseBody(u);case 10:return t.abrupt("return",t.sent);case 11:case"end":return t.stop()}}),t,this)}))),function(e,t,n,o){return r.apply(this,arguments)})}]);var r,n,o,a,i}();function U(){var e,t=globalThis,r=t.MICROS_PERIMETER||t.UNSAFE_ATL_CONTEXT_BOUNDARY;if(r)return"fedramp-moderate"===r;var n=null===(e=t.location)||void 0===e||null===(e=e.hostname)||void 0===e?void 0:e.match(/atlassian-us-gov-mod\.(com|net)|atlassian-us-gov\.(com|net)|atlassian-fex\.(com|net)|atlassian-stg-fedm\.(com|net)/);return!!n&&n.length>0}var V=["sdkKey","updateUserCompletionCallback","perimeter"];function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var R=function(e){return G({perimeter:U()?x.FEDRAMP_MODERATE:x.COMMERCIAL},e)},F=function(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;var r=Object.entries(e),n=Object.entries(t);if(r.length!==n.length)return!1;var o=function(e,t){var r=d(e,1)[0],n=d(t,1)[0];return r.localeCompare(n)};r.sort(o),n.sort(o);for(var a=0;a<r.length;a++){if(d(r[a],2)[1]!==d(n[a],2)[1])return!1}return!0},K=function(e,t){var r={customIDs:e,custom:t};return e.atlassianAccountId&&(r.userID=e.atlassianAccountId),r},z=function(e,t){e.sdkKey,e.updateUserCompletionCallback,e.perimeter;return G(G({},function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,V)),{},{initializeValues:t,environment:{tier:e.environment},disableCurrentPageLogging:!0},e.updateUserCompletionCallback&&{updateUserCompletionCallback:B(e.updateUserCompletionCallback)})},B=function(e){return function(t,r,n){e(r,n)}};function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var J,Y="client-default-key",X=function(){return s((function e(){t(this,e),c(this,"initPromise",null),c(this,"initCompleted",!1),c(this,"initWithDefaults",!1),c(this,"hasCheckGateErrorOccurred",!1),c(this,"hasGetExperimentErrorOccurred",!1),c(this,"hasGetExperimentValueErrorOccurred",!1),c(this,"hasGetLayerErrorOccurred",!1),c(this,"hasGetLayerValueErrorOccurred",!1),c(this,"subscriptions",new w)}),[{key:"initialize",value:(y=p(g().mark((function e(t,r,n){var o,a,i=this;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=R(t),!this.initPromise){e.next=4;break}return F(o,this.initOptions)||console.warn("Feature Gates client already initialized with different options. New options were not applied."),e.abrupt("return",this.initPromise);case 4:return a=performance.now(),this.initOptions=o,this.initPromise=this.init(o,r,n).then((function(){i.initCompleted=!0,i.initWithDefaults=!0})).finally((function(){var e=performance.now()-a;i.fireClientEvent(a,e,"initialize",i.initCompleted,o.apiKey)})),e.abrupt("return",this.initPromise);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return y.apply(this,arguments)})},{key:"initializeWithProvider",value:(f=p(g().mark((function e(t,r,n,o){var a,i,s=this;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=R(t),!this.initPromise){e.next=4;break}return F(a,this.initOptions)||console.warn("Feature Gates client already initialized with different options. New options were not applied."),e.abrupt("return",this.initPromise);case 4:return i=performance.now(),this.initOptions=a,this.provider=r,this.provider.setClientVersion(O),this.provider.setApplyUpdateCallback&&this.provider.setApplyUpdateCallback(this.applyUpdateCallback),this.initPromise=this.initWithProvider(a,r,n,o).then((function(){s.initCompleted=!0,s.initWithDefaults=!0})).finally((function(){var e=performance.now()-i;s.fireClientEvent(i,e,"initializeWithProvider",s.initCompleted,r.getApiKey?r.getApiKey():void 0)})),e.abrupt("return",this.initPromise);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return f.apply(this,arguments)})},{key:"applyUpdateCallback",value:function(e){try{(this.initCompleted||this.initWithDefaults)&&(v().setInitializeValues(e.experimentValues),this.subscriptions.anyUpdated())}catch(e){console.warn("Error when attempting to apply update",e)}}},{key:"fireClientEvent",value:function(e,t,r,n){var o,a=this,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;null===(o=this.initOptions.analyticsWebClient)||void 0===o||o.then((function(o){var s=q({targetApp:a.initOptions.targetApp,clientVersion:O,success:n,startTime:e,totalTime:t},i&&{apiKey:i});o.sendOperationalEvent({action:r,actionSubject:"featureGatesClient",attributes:s,tags:["measurement"],source:"@atlaskit/feature-gate-js-client"})})).catch((function(e){a.initOptions.environment!==E.Production&&console.error("Analytics web client promise did not resolve",e)}))}},{key:"initializeFromValues",value:(h=p(g().mark((function e(t,r,n){var o,a,i,s=this,c=arguments;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=c.length>3&&void 0!==c[3]?c[3]:{},a=R(t),!this.initPromise){e.next=5;break}return F(a,this.initOptions)||console.warn("Feature Gates client already initialized with different options. New options were not applied."),e.abrupt("return",this.initPromise);case 5:return i=performance.now(),this.initOptions=a,this.initPromise=this.initFromValues(a,r,n,o).then((function(){s.initCompleted=!0,s.initWithDefaults=!0})).finally((function(){var e=performance.now()-i;s.fireClientEvent(i,e,"initializeFromValues",s.initCompleted)})),e.abrupt("return",this.initPromise);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return h.apply(this,arguments)})},{key:"updateUser",value:(u=p(g().mark((function e(t,r,n){var o,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=R(t),a=function(){return j.fetchExperimentValues(o,r,n).then((function(e){return{experimentValues:e.experimentValues,customAttributesFromFetch:e.customAttributes}}))},e.next=4,this.updateUserUsingInitializeValuesProducer(a,r,n);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return u.apply(this,arguments)})},{key:"updateUserWithProvider",value:(l=p(g().mark((function e(t,r){var n=this;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.provider){e.next=2;break}throw new Error("Cannot update user using provider as the client was not initialised with a provider");case 2:return e.next=4,this.provider.setProfile(this.initOptions,t,r);case 4:return e.next=6,this.updateUserUsingInitializeValuesProducer((function(){return n.provider.getExperimentValues()}),t,r);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"updateUserWithValues",value:(i=p(g().mark((function e(t,r){var n,o,a=arguments;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>2&&void 0!==a[2]?a[2]:{},o=function(){return Promise.resolve({experimentValues:n,customAttributesFromFetch:r})},e.next=4,this.updateUserUsingInitializeValuesProducer(o,t,r);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"initializeCalled",value:function(){return null!=this.initPromise}},{key:"initializeCompleted",value:function(){return this.initCompleted}},{key:"checkGate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r=t.fireGateExposure;return(void 0===r||r?v().checkGate.bind(v()):v().checkGateWithExposureLoggingDisabled.bind(v()))(e)}catch(t){return this.hasCheckGateErrorOccurred||(console.warn({msg:"An error has occurred checking the feature gate. Only the first occurrence of this error is logged.",gateName:e,error:t}),this.hasCheckGateErrorOccurred=!0),!1}}},{key:"isGateExist",value:function(e){try{return v()._getClientX()._getGateFromStore(e).evaluationDetails.reason!==b.EvaluationReason.Unrecognized}catch(e){return console.error("Error occurred when trying to check FeatureGate: ".concat(e)),!0}}},{key:"isExperimentExist",value:function(e){try{return v().getExperimentWithExposureLoggingDisabled(e)._evaluationDetails.reason!==b.EvaluationReason.Unrecognized}catch(e){return console.error("Error occurred when trying to check Experiment: ".concat(e)),!0}}},{key:"manuallyLogGateExposure",value:function(e){v().manuallyLogGateExposure(e)}},{key:"getExperiment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r=t.fireExperimentExposure;return(void 0===r||r?v().getExperiment.bind(v()):v().getExperimentWithExposureLoggingDisabled.bind(v()))(e)}catch(t){return this.hasGetExperimentErrorOccurred||(console.warn({msg:"An error has occurred getting the experiment. Only the first occurrence of this error is logged.",experimentName:e,error:t}),this.hasGetExperimentErrorOccurred=!0),new b.DynamicConfig(e,{},"",{time:Date.now(),reason:b.EvaluationReason.Error})}}},{key:"getExperimentValue",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=this.getExperiment(e,n);try{var a=n.typeGuard;return o.get(t,r,a)}catch(t){return this.hasGetExperimentValueErrorOccurred||(console.warn({msg:"An error has occurred getting the experiment value. Only the first occurrence of this error is logged.",experimentName:e,defaultValue:r,options:n,error:t}),this.hasGetExperimentValueErrorOccurred=!0),r}}},{key:"manuallyLogExperimentExposure",value:function(e){v().manuallyLogExperimentExposure(e)}},{key:"manuallyLogLayerExposure",value:function(e,t){v().manuallyLogLayerParameterExposure(e,t)}},{key:"shutdownStatsig",value:function(){v().shutdown()}},{key:"overrideGate",value:function(e,t){v().overrideGate(e,t),this.subscriptions.anyUpdated()}},{key:"clearGateOverride",value:function(e){v().overrideGate(e,null),this.subscriptions.anyUpdated()}},{key:"overrideConfig",value:function(e,t){v().overrideConfig(e,t),this.subscriptions.anyUpdated()}},{key:"clearConfigOverride",value:function(e){v().overrideConfig(e,null),this.subscriptions.anyUpdated()}},{key:"setOverrides",value:function(e){v().setOverrides(q({gates:{},configs:{},layers:{}},e)),this.subscriptions.anyUpdated()}},{key:"getOverrides",value:function(){return v().getOverrides()}},{key:"clearAllOverrides",value:function(){v().setOverrides(null),this.subscriptions.anyUpdated()}},{key:"isCurrentUser",value:function(e,t){return F(this.currentIdentifiers,e)&&F(this.currentAttributes,t)}},{key:"onGateUpdated",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.subscriptions.onGateUpdated(e,(function(o){var a=n.fireGateExposure;(void 0===a||a)&&r.manuallyLogGateExposure(e);try{t(o)}catch(t){console.warn("Error calling callback for gate ".concat(e," with value ").concat(o),t)}}),this.checkGate.bind(this),n)}},{key:"onExperimentValueUpdated",value:function(e,t,r,n){var o=this,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return this.subscriptions.onExperimentValueUpdated(e,t,r,(function(t){var r=a.fireExperimentExposure;(void 0===r||r)&&o.manuallyLogExperimentExposure(e);try{n(t)}catch(r){console.warn("Error calling callback for experiment ".concat(e," with value ").concat(t),r)}}),this.getExperimentValue,a)}},{key:"onAnyUpdated",value:function(e){return this.subscriptions.onAnyUpdated(e)}},{key:"init",value:(a=p(g().mark((function e(t,r,n){var o,a,i,s,c,l,u,h;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=q({},t),e.prev=1,s=j.fetchClientSdk(t).then((function(e){return o.sdkKey=e.clientSdkKey})),c=j.fetchExperimentValues(t,r,n),e.next=6,Promise.all([s,c]);case 6:l=e.sent,u=d(l,2),h=u[1],a=h.experimentValues,i=h.customAttributes,e.next=20;break;case 13:return e.prev=13,e.t0=e.catch(1),e.t0 instanceof Error&&console.error("Error occurred when trying to fetch the Feature Gates client values, error: ".concat(null===e.t0||void 0===e.t0?void 0:e.t0.message)),console.warn("Initialising Statsig client without values"),e.next=19,this.initFromValues(o,r,n);case 19:throw e.t0;case 20:return e.abrupt("return",this.initFromValues(o,r,i,a));case 21:case"end":return e.stop()}}),e,this,[[1,13]])}))),function(e,t,r){return a.apply(this,arguments)})},{key:"initWithProvider",value:(o=p(g().mark((function e(t,r,n,o){var a,i,s,c,l,u,h,p;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=q(q({},t),{},{disableCurrentPageLogging:!0}),e.prev=1,e.next=4,r.setProfile(t,n,o);case 4:return c=r.getClientSdkKey().then((function(e){return a.sdkKey=e})),l=r.getExperimentValues(),e.next=8,Promise.all([c,l]);case 8:u=e.sent,h=d(u,2),p=h[1],i=p.experimentValues,s=p.customAttributesFromFetch,e.next=22;break;case 15:return e.prev=15,e.t0=e.catch(1),e.t0 instanceof Error&&console.error("Error occurred when trying to fetch the Feature Gates client values, error: ".concat(null===e.t0||void 0===e.t0?void 0:e.t0.message)),console.warn("Initialising Statsig client without values"),e.next=21,this.initFromValues(a,n,o);case 21:throw e.t0;case 22:return e.abrupt("return",this.initFromValues(a,n,s,i));case 23:case"end":return e.stop()}}),e,this,[[1,15]])}))),function(e,t,r,n){return o.apply(this,arguments)})},{key:"initFromValues",value:(n=p(g().mark((function e(t,r,n){var o,a,i,s,c=arguments;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=c.length>3&&void 0!==c[3]?c[3]:{},a=K(r,n),this.currentIdentifiers=r,this.currentAttributes=n,t.sdkKey||(t.sdkKey=Y),t.eventLoggingApi||(t.eventLoggingApi="https://xp.atlassian.com/v1/"),t.perimeter===x.FEDRAMP_MODERATE&&(t.disableAllLogging=!0),i=t.sdkKey,s=z(t,o),e.prev=9,e.next=12,v().initialize(i,a,s);case 12:e.next=22;break;case 14:return e.prev=14,e.t0=e.catch(9),e.t0 instanceof Error&&console.error("Error occurred when trying to initialise the Statsig client, error: ".concat(null===e.t0||void 0===e.t0?void 0:e.t0.message)),console.warn("Initialising Statsig client with default sdk key and without values"),e.next=20,v().initialize(Y,a,q(q({},s),{},{initializeValues:{}}));case 20:throw this.initWithDefaults=!0,e.t0;case 22:case"end":return e.stop()}}),e,this,[[9,14]])}))),function(e,t,r){return n.apply(this,arguments)})},{key:"updateUserUsingInitializeValuesProducer",value:(r=p(g().mark((function e(t,r,n){var o,a,i,s=this;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.initPromise){e.next=2;break}throw new Error("The client must be initialized before you can update the user.");case 2:if(!this.isCurrentUser(r,n)){e.next=4;break}return e.abrupt("return",this.initPromise);case 4:return o=this.initPromise,e.prev=5,e.next=8,this.initPromise;case 8:e.next=12;break;case 10:e.prev=10,e.t0=e.catch(5);case 12:return a=t(),i=this.updateStatsigClientUser(a,r,n),this.initPromise=i.catch(p(g().mark((function e(){return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s.initPromise=o,!s.provider){e.next=4;break}return e.next=4,s.provider.setProfile(s.initOptions,s.currentIdentifiers,s.currentAttributes);case 4:case"end":return e.stop()}}),e)})))),e.abrupt("return",i);case 16:case"end":return e.stop()}}),e,this,[[5,10]])}))),function(e,t,n){return r.apply(this,arguments)})},{key:"updateStatsigClientUser",value:(e=p(g().mark((function e(t,r,n){var o,a,i,s,c;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:o=e.sent,a=K(r,o.customAttributesFromFetch),e.next=12;break;case 7:throw e.prev=7,e.t0=e.catch(0),c=e.t0 instanceof Error?e.t0.message:JSON.stringify(e.t0),null===(i=(s=this.initOptions).updateUserCompletionCallback)||void 0===i||i.call(s,!1,c),e.t0;case 12:if(!v().updateUserWithValues(a,o.experimentValues)){e.next=19;break}this.currentIdentifiers=r,this.currentAttributes=n,this.subscriptions.anyUpdated(),e.next=20;break;case 19:throw new Error("Failed to update user. An unexpected error occured.");case 20:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(t,r,n){return e.apply(this,arguments)})},{key:"getPackageVersion",value:function(){return O}},{key:"getLayer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r=t.fireLayerExposure;return(void 0===r||r?v().getLayer.bind(v()):v().getLayerWithExposureLoggingDisabled.bind(v()))(e)}catch(t){return this.hasGetLayerErrorOccurred||(console.warn({msg:"An error has occurred getting the layer. Only the first occurrence of this error is logged.",layerName:e,error:t}),this.hasGetLayerErrorOccurred=!0),b.Layer._create(e,{},"",{time:Date.now(),reason:b.EvaluationReason.Error})}}},{key:"getLayerValue",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=this.getLayer(e,n);try{var a=n.typeGuard;return o.get(t,r,a)}catch(t){return this.hasGetLayerValueErrorOccurred||(console.warn({msg:"An error has occurred getting the layer value. Only the first occurrence of this error is logged.",layerName:e,defaultValue:r,options:n,error:t}),this.hasGetLayerValueErrorOccurred=!0),r}}}]);var e,r,n,o,a,i,l,u,h,f,y}(),H=function(){return s((function e(){t(this,e)}),null,[{key:"isGateExists",value:function(e){return this.client.isGateExist(e)}},{key:"isExperimentExists",value:function(e){return this.client.isExperimentExist(e)}}])}();J=H,c(H,"client",new X),c(H,"hasCheckGateErrorOccurred",!1),c(H,"hasGetExperimentValueErrorOccurred",!1),c(H,"checkGate",(function(e,t){try{if(window&&window.__CRITERION__&&"function"==typeof window.__CRITERION__.getFeatureFlagOverride){var r=window.__CRITERION__.getFeatureFlagOverride(e);if(void 0!==r)return r}}catch(t){J.hasCheckGateErrorOccurred||(console.warn({msg:"An error has occurred checking the feature gate from criterion override. Only the first occurrence of this error is logged.",gateName:e,error:t}),J.hasCheckGateErrorOccurred=!0)}return J.client.checkGate(e,t)})),c(H,"getExperimentValue",(function(e,t,r,n){try{if("undefined"!=typeof window&&window.__CRITERION__&&"function"==typeof window.__CRITERION__.getExperimentValueOverride){var o=window.__CRITERION__.getExperimentValueOverride(e,t);if(null!=o)return o}}catch(t){if(!J.hasCheckGateErrorOccurred)return J.hasGetExperimentValueErrorOccurred||(console.warn({msg:"An error has occurred getting the experiment value from criterion override. Only the first occurrence of this error is logged.",experimentName:e,defaultValue:r,options:n,error:t}),J.hasGetExperimentValueErrorOccurred=!0),r}return J.client.getExperimentValue(e,t,r,n)})),c(H,"initializeCalled",J.client.initializeCalled.bind(J.client)),c(H,"initializeCompleted",J.client.initializeCompleted.bind(J.client)),c(H,"initialize",J.client.initialize.bind(J.client)),c(H,"initializeWithProvider",J.client.initializeWithProvider.bind(J.client)),c(H,"initializeFromValues",J.client.initializeFromValues.bind(J.client)),c(H,"manuallyLogGateExposure",J.client.manuallyLogGateExposure.bind(J.client)),c(H,"getExperiment",J.client.getExperiment.bind(J.client)),c(H,"manuallyLogExperimentExposure",J.client.manuallyLogExperimentExposure.bind(J.client)),c(H,"manuallyLogLayerExposure",J.client.manuallyLogLayerExposure.bind(J.client)),c(H,"shutdownStatsig",J.client.shutdownStatsig.bind(J.client)),c(H,"overrideGate",J.client.overrideGate.bind(J.client)),c(H,"clearGateOverride",J.client.clearGateOverride.bind(J.client)),c(H,"overrideConfig",J.client.overrideConfig.bind(J.client)),c(H,"clearConfigOverride",J.client.clearConfigOverride.bind(J.client)),c(H,"setOverrides",J.client.setOverrides.bind(J.client)),c(H,"getOverrides",J.client.getOverrides.bind(J.client)),c(H,"clearAllOverrides",J.client.clearAllOverrides.bind(J.client)),c(H,"isCurrentUser",J.client.isCurrentUser.bind(J.client)),c(H,"onGateUpdated",J.client.onGateUpdated.bind(J.client)),c(H,"onExperimentValueUpdated",J.client.onExperimentValueUpdated.bind(J.client)),c(H,"onAnyUpdated",J.client.onAnyUpdated.bind(J.client)),c(H,"updateUser",J.client.updateUser.bind(J.client)),c(H,"updateUserWithProvider",J.client.updateUserWithProvider.bind(J.client)),c(H,"updateUserWithValues",J.client.updateUserWithValues.bind(J.client)),c(H,"getPackageVersion",J.client.getPackageVersion.bind(J.client)),c(H,"getLayer",J.client.getLayer.bind(J.client)),c(H,"getLayerValue",J.client.getLayerValue.bind(J.client));var Q=H;if("undefined"!=typeof window)if(void 0===window.__FEATUREGATES_JS__)window.__FEATUREGATES_JS__=H;else{var Z,$,ee=(null===(Z=Q=window.__FEATUREGATES_JS__)||void 0===Z||null===($=Z.getPackageVersion)||void 0===$?void 0:$.call(Z))||"4.10.0 or earlier";if(ee!==O){var te="Multiple versions of FeatureGateClients found on the current page.\n The currently bound version is ".concat(ee," when module version ").concat(O," was loading.");console.warn(te)}}const re=Q;var ne,oe,ae=!(void 0!==(null===globalThis||void 0===globalThis||null===(ne=globalThis.process)||void 0===ne||null===(ne=ne.env)||void 0===ne?void 0:ne.JEST_WORKER_ID))&&"production"!==(null===globalThis||void 0===globalThis||null===(oe=globalThis.process)||void 0===oe||null===(oe=oe.env)||void 0===oe?void 0:oe.NODE_ENV),ie="__PLATFORM_FEATURE_FLAGS__",se="undefined"!=typeof process&&!0,ce=!!se&&"true"==={NODE_ENV:"production"}.ENABLE_PLATFORM_FF||!!se&&"true"==={NODE_ENV:"production"}.STORYBOOK_ENABLE_PLATFORM_FF,le={earlyResolvedFlags:new Map,booleanResolver:function(e){return!1}},ue="undefined"!=typeof window?window:globalThis;function de(e){if(ce)return function(){var e;ae&&(e=console).debug.apply(e,arguments)}('[%s]: The feature flags were enabled while running tests. The flag "%s" will be always enabled.',"@atlaskit/platform-feature-flags",e),!0;try{var t,r,n;if(void 0===(null===(t=ue[ie])||void 0===t?void 0:t.booleanResolver)||null===(null===(r=ue[ie])||void 0===r?void 0:r.booleanResolver))return re.checkGate(e);var o=null===(n=ue[ie])||void 0===n?void 0:n.booleanResolver(e);return"boolean"!=typeof o?(console.warn("".concat(e," resolved to a non-boolean value, returning false for safety")),!1):o}catch(e){return!1}}function he(e){return de(e)}ue[ie]=ue[ie]||le;var pe=["light","dark","auto"],fe=["light-increased-contrast","light","light-future","light-brand-refresh","dark","dark-future","dark-increased-contrast","dark-brand-refresh","legacy-light","legacy-dark","spacing","shape","typography-adg3","typography-modernized","typography-refreshed"],ge=[].concat(fe,[]),be={colorMode:"auto",contrastMode:"auto",dark:"dark",light:"light",shape:void 0,spacing:"spacing",typography:function(){if(he("platform-default-typography-modernized"))return"typography-modernized"},UNSAFE_themeOptions:void 0};const ve={"atlassian-light":{id:"light",displayName:"Light Theme",palette:"defaultPalette",attributes:{type:"color",mode:"light"}},"atlassian-light-future":{id:"light-future",displayName:"Future Light Theme",palette:"defaultPalette",attributes:{type:"color",mode:"light"},override:"light"},"atlassian-light-increased-contrast":{id:"light-increased-contrast",displayName:"Light Theme (increased contrast)",palette:"defaultPalette",attributes:{type:"color",mode:"light"},extends:"light",increasesContrastFor:"light"},"atlassian-dark":{id:"dark",displayName:"Dark Theme",palette:"defaultPalette",attributes:{type:"color",mode:"dark"}},"atlassian-dark-future":{id:"dark-future",displayName:"Future Dark Theme",palette:"defaultPalette",attributes:{type:"color",mode:"dark"},override:"light"},"atlassian-dark-increased-contrast":{id:"dark-increased-contrast",displayName:"Dark Theme (increased contrast)",palette:"defaultPalette",attributes:{type:"color",mode:"dark"},extends:"dark",increasesContrastFor:"dark"},"atlassian-legacy-light":{id:"legacy-light",displayName:"Light Theme (legacy)",palette:"legacyPalette",attributes:{type:"color",mode:"light"}},"atlassian-legacy-dark":{id:"legacy-dark",displayName:"Dark Theme (legacy)",palette:"legacyPalette",attributes:{type:"color",mode:"dark"}},"atlassian-spacing":{id:"spacing",displayName:"Atlassian Spacing",palette:"spacingScale",attributes:{type:"spacing"}},"atlassian-typography-adg3":{id:"typography-adg3",displayName:"ADG3 Typography",palette:"typographyPalette",attributes:{type:"typography"}},"atlassian-shape":{id:"shape",displayName:"Atlassian Shape",palette:"shapePalette",attributes:{type:"shape"}},"atlassian-typography-modernized":{id:"typography-modernized",displayName:"Atlassian Typography (Modernized)",palette:"typographyPalette",attributes:{type:"typography"}},"atlassian-typography-refreshed":{id:"typography-refreshed",displayName:"Atlassian Typography (Refreshed)",palette:"typographyPalette",attributes:{type:"typography"}},"atlassian-light-brand-refresh":{id:"light-brand-refresh",displayName:"Light theme (Brand refresh)",palette:"brandRefreshPalette",attributes:{type:"color",mode:"light"}},"atlassian-dark-brand-refresh":{id:"dark-brand-refresh",displayName:"Dark theme (Brand refresh)",palette:"brandRefreshPalette",attributes:{type:"color",mode:"dark"}}};const ye={"color.text":"--ds-text","color.text.accent.lime":"--ds-text-accent-lime","color.text.accent.lime.bolder":"--ds-text-accent-lime-bolder","color.text.accent.red":"--ds-text-accent-red","color.text.accent.red.bolder":"--ds-text-accent-red-bolder","color.text.accent.orange":"--ds-text-accent-orange","color.text.accent.orange.bolder":"--ds-text-accent-orange-bolder","color.text.accent.yellow":"--ds-text-accent-yellow","color.text.accent.yellow.bolder":"--ds-text-accent-yellow-bolder","color.text.accent.green":"--ds-text-accent-green","color.text.accent.green.bolder":"--ds-text-accent-green-bolder","color.text.accent.teal":"--ds-text-accent-teal","color.text.accent.teal.bolder":"--ds-text-accent-teal-bolder","color.text.accent.blue":"--ds-text-accent-blue","color.text.accent.blue.bolder":"--ds-text-accent-blue-bolder","color.text.accent.purple":"--ds-text-accent-purple","color.text.accent.purple.bolder":"--ds-text-accent-purple-bolder","color.text.accent.magenta":"--ds-text-accent-magenta","color.text.accent.magenta.bolder":"--ds-text-accent-magenta-bolder","color.text.accent.gray":"--ds-text-accent-gray","color.text.accent.gray.bolder":"--ds-text-accent-gray-bolder","color.text.disabled":"--ds-text-disabled","color.text.inverse":"--ds-text-inverse","color.text.selected":"--ds-text-selected","color.text.brand":"--ds-text-brand","color.text.danger":"--ds-text-danger","color.text.warning":"--ds-text-warning","color.text.warning.inverse":"--ds-text-warning-inverse","color.text.success":"--ds-text-success","color.text.discovery":"--ds-text-discovery","color.text.information":"--ds-text-information","color.text.subtlest":"--ds-text-subtlest","color.text.subtle":"--ds-text-subtle","color.link":"--ds-link","color.link.pressed":"--ds-link-pressed","color.link.visited":"--ds-link-visited","color.link.visited.pressed":"--ds-link-visited-pressed","color.icon":"--ds-icon","color.icon.accent.lime":"--ds-icon-accent-lime","color.icon.accent.red":"--ds-icon-accent-red","color.icon.accent.orange":"--ds-icon-accent-orange","color.icon.accent.yellow":"--ds-icon-accent-yellow","color.icon.accent.green":"--ds-icon-accent-green","color.icon.accent.teal":"--ds-icon-accent-teal","color.icon.accent.blue":"--ds-icon-accent-blue","color.icon.accent.purple":"--ds-icon-accent-purple","color.icon.accent.magenta":"--ds-icon-accent-magenta","color.icon.accent.gray":"--ds-icon-accent-gray","color.icon.disabled":"--ds-icon-disabled","color.icon.inverse":"--ds-icon-inverse","color.icon.selected":"--ds-icon-selected","color.icon.brand":"--ds-icon-brand","color.icon.danger":"--ds-icon-danger","color.icon.warning":"--ds-icon-warning","color.icon.warning.inverse":"--ds-icon-warning-inverse","color.icon.success":"--ds-icon-success","color.icon.discovery":"--ds-icon-discovery","color.icon.information":"--ds-icon-information","color.icon.subtlest":"--ds-icon-subtlest","color.icon.subtle":"--ds-icon-subtle","color.border":"--ds-border","color.border.accent.lime":"--ds-border-accent-lime","color.border.accent.red":"--ds-border-accent-red","color.border.accent.orange":"--ds-border-accent-orange","color.border.accent.yellow":"--ds-border-accent-yellow","color.border.accent.green":"--ds-border-accent-green","color.border.accent.teal":"--ds-border-accent-teal","color.border.accent.blue":"--ds-border-accent-blue","color.border.accent.purple":"--ds-border-accent-purple","color.border.accent.magenta":"--ds-border-accent-magenta","color.border.accent.gray":"--ds-border-accent-gray","color.border.disabled":"--ds-border-disabled","color.border.focused":"--ds-border-focused","color.border.input":"--ds-border-input","color.border.inverse":"--ds-border-inverse","color.border.selected":"--ds-border-selected","color.border.brand":"--ds-border-brand","color.border.danger":"--ds-border-danger","color.border.warning":"--ds-border-warning","color.border.success":"--ds-border-success","color.border.discovery":"--ds-border-discovery","color.border.information":"--ds-border-information","color.border.bold":"--ds-border-bold","color.background.accent.lime.subtlest":"--ds-background-accent-lime-subtlest","color.background.accent.lime.subtlest.hovered":"--ds-background-accent-lime-subtlest-hovered","color.background.accent.lime.subtlest.pressed":"--ds-background-accent-lime-subtlest-pressed","color.background.accent.lime.subtler":"--ds-background-accent-lime-subtler","color.background.accent.lime.subtler.hovered":"--ds-background-accent-lime-subtler-hovered","color.background.accent.lime.subtler.pressed":"--ds-background-accent-lime-subtler-pressed","color.background.accent.lime.subtle":"--ds-background-accent-lime-subtle","color.background.accent.lime.subtle.hovered":"--ds-background-accent-lime-subtle-hovered","color.background.accent.lime.subtle.pressed":"--ds-background-accent-lime-subtle-pressed","color.background.accent.lime.bolder":"--ds-background-accent-lime-bolder","color.background.accent.lime.bolder.hovered":"--ds-background-accent-lime-bolder-hovered","color.background.accent.lime.bolder.pressed":"--ds-background-accent-lime-bolder-pressed","color.background.accent.red.subtlest":"--ds-background-accent-red-subtlest","color.background.accent.red.subtlest.hovered":"--ds-background-accent-red-subtlest-hovered","color.background.accent.red.subtlest.pressed":"--ds-background-accent-red-subtlest-pressed","color.background.accent.red.subtler":"--ds-background-accent-red-subtler","color.background.accent.red.subtler.hovered":"--ds-background-accent-red-subtler-hovered","color.background.accent.red.subtler.pressed":"--ds-background-accent-red-subtler-pressed","color.background.accent.red.subtle":"--ds-background-accent-red-subtle","color.background.accent.red.subtle.hovered":"--ds-background-accent-red-subtle-hovered","color.background.accent.red.subtle.pressed":"--ds-background-accent-red-subtle-pressed","color.background.accent.red.bolder":"--ds-background-accent-red-bolder","color.background.accent.red.bolder.hovered":"--ds-background-accent-red-bolder-hovered","color.background.accent.red.bolder.pressed":"--ds-background-accent-red-bolder-pressed","color.background.accent.orange.subtlest":"--ds-background-accent-orange-subtlest","color.background.accent.orange.subtlest.hovered":"--ds-background-accent-orange-subtlest-hovered","color.background.accent.orange.subtlest.pressed":"--ds-background-accent-orange-subtlest-pressed","color.background.accent.orange.subtler":"--ds-background-accent-orange-subtler","color.background.accent.orange.subtler.hovered":"--ds-background-accent-orange-subtler-hovered","color.background.accent.orange.subtler.pressed":"--ds-background-accent-orange-subtler-pressed","color.background.accent.orange.subtle":"--ds-background-accent-orange-subtle","color.background.accent.orange.subtle.hovered":"--ds-background-accent-orange-subtle-hovered","color.background.accent.orange.subtle.pressed":"--ds-background-accent-orange-subtle-pressed","color.background.accent.orange.bolder":"--ds-background-accent-orange-bolder","color.background.accent.orange.bolder.hovered":"--ds-background-accent-orange-bolder-hovered","color.background.accent.orange.bolder.pressed":"--ds-background-accent-orange-bolder-pressed","color.background.accent.yellow.subtlest":"--ds-background-accent-yellow-subtlest","color.background.accent.yellow.subtlest.hovered":"--ds-background-accent-yellow-subtlest-hovered","color.background.accent.yellow.subtlest.pressed":"--ds-background-accent-yellow-subtlest-pressed","color.background.accent.yellow.subtler":"--ds-background-accent-yellow-subtler","color.background.accent.yellow.subtler.hovered":"--ds-background-accent-yellow-subtler-hovered","color.background.accent.yellow.subtler.pressed":"--ds-background-accent-yellow-subtler-pressed","color.background.accent.yellow.subtle":"--ds-background-accent-yellow-subtle","color.background.accent.yellow.subtle.hovered":"--ds-background-accent-yellow-subtle-hovered","color.background.accent.yellow.subtle.pressed":"--ds-background-accent-yellow-subtle-pressed","color.background.accent.yellow.bolder":"--ds-background-accent-yellow-bolder","color.background.accent.yellow.bolder.hovered":"--ds-background-accent-yellow-bolder-hovered","color.background.accent.yellow.bolder.pressed":"--ds-background-accent-yellow-bolder-pressed","color.background.accent.green.subtlest":"--ds-background-accent-green-subtlest","color.background.accent.green.subtlest.hovered":"--ds-background-accent-green-subtlest-hovered","color.background.accent.green.subtlest.pressed":"--ds-background-accent-green-subtlest-pressed","color.background.accent.green.subtler":"--ds-background-accent-green-subtler","color.background.accent.green.subtler.hovered":"--ds-background-accent-green-subtler-hovered","color.background.accent.green.subtler.pressed":"--ds-background-accent-green-subtler-pressed","color.background.accent.green.subtle":"--ds-background-accent-green-subtle","color.background.accent.green.subtle.hovered":"--ds-background-accent-green-subtle-hovered","color.background.accent.green.subtle.pressed":"--ds-background-accent-green-subtle-pressed","color.background.accent.green.bolder":"--ds-background-accent-green-bolder","color.background.accent.green.bolder.hovered":"--ds-background-accent-green-bolder-hovered","color.background.accent.green.bolder.pressed":"--ds-background-accent-green-bolder-pressed","color.background.accent.teal.subtlest":"--ds-background-accent-teal-subtlest","color.background.accent.teal.subtlest.hovered":"--ds-background-accent-teal-subtlest-hovered","color.background.accent.teal.subtlest.pressed":"--ds-background-accent-teal-subtlest-pressed","color.background.accent.teal.subtler":"--ds-background-accent-teal-subtler","color.background.accent.teal.subtler.hovered":"--ds-background-accent-teal-subtler-hovered","color.background.accent.teal.subtler.pressed":"--ds-background-accent-teal-subtler-pressed","color.background.accent.teal.subtle":"--ds-background-accent-teal-subtle","color.background.accent.teal.subtle.hovered":"--ds-background-accent-teal-subtle-hovered","color.background.accent.teal.subtle.pressed":"--ds-background-accent-teal-subtle-pressed","color.background.accent.teal.bolder":"--ds-background-accent-teal-bolder","color.background.accent.teal.bolder.hovered":"--ds-background-accent-teal-bolder-hovered","color.background.accent.teal.bolder.pressed":"--ds-background-accent-teal-bolder-pressed","color.background.accent.blue.subtlest":"--ds-background-accent-blue-subtlest","color.background.accent.blue.subtlest.hovered":"--ds-background-accent-blue-subtlest-hovered","color.background.accent.blue.subtlest.pressed":"--ds-background-accent-blue-subtlest-pressed","color.background.accent.blue.subtler":"--ds-background-accent-blue-subtler","color.background.accent.blue.subtler.hovered":"--ds-background-accent-blue-subtler-hovered","color.background.accent.blue.subtler.pressed":"--ds-background-accent-blue-subtler-pressed","color.background.accent.blue.subtle":"--ds-background-accent-blue-subtle","color.background.accent.blue.subtle.hovered":"--ds-background-accent-blue-subtle-hovered","color.background.accent.blue.subtle.pressed":"--ds-background-accent-blue-subtle-pressed","color.background.accent.blue.bolder":"--ds-background-accent-blue-bolder","color.background.accent.blue.bolder.hovered":"--ds-background-accent-blue-bolder-hovered","color.background.accent.blue.bolder.pressed":"--ds-background-accent-blue-bolder-pressed","color.background.accent.purple.subtlest":"--ds-background-accent-purple-subtlest","color.background.accent.purple.subtlest.hovered":"--ds-background-accent-purple-subtlest-hovered","color.background.accent.purple.subtlest.pressed":"--ds-background-accent-purple-subtlest-pressed","color.background.accent.purple.subtler":"--ds-background-accent-purple-subtler","color.background.accent.purple.subtler.hovered":"--ds-background-accent-purple-subtler-hovered","color.background.accent.purple.subtler.pressed":"--ds-background-accent-purple-subtler-pressed","color.background.accent.purple.subtle":"--ds-background-accent-purple-subtle","color.background.accent.purple.subtle.hovered":"--ds-background-accent-purple-subtle-hovered","color.background.accent.purple.subtle.pressed":"--ds-background-accent-purple-subtle-pressed","color.background.accent.purple.bolder":"--ds-background-accent-purple-bolder","color.background.accent.purple.bolder.hovered":"--ds-background-accent-purple-bolder-hovered","color.background.accent.purple.bolder.pressed":"--ds-background-accent-purple-bolder-pressed","color.background.accent.magenta.subtlest":"--ds-background-accent-magenta-subtlest","color.background.accent.magenta.subtlest.hovered":"--ds-background-accent-magenta-subtlest-hovered","color.background.accent.magenta.subtlest.pressed":"--ds-background-accent-magenta-subtlest-pressed","color.background.accent.magenta.subtler":"--ds-background-accent-magenta-subtler","color.background.accent.magenta.subtler.hovered":"--ds-background-accent-magenta-subtler-hovered","color.background.accent.magenta.subtler.pressed":"--ds-background-accent-magenta-subtler-pressed","color.background.accent.magenta.subtle":"--ds-background-accent-magenta-subtle","color.background.accent.magenta.subtle.hovered":"--ds-background-accent-magenta-subtle-hovered","color.background.accent.magenta.subtle.pressed":"--ds-background-accent-magenta-subtle-pressed","color.background.accent.magenta.bolder":"--ds-background-accent-magenta-bolder","color.background.accent.magenta.bolder.hovered":"--ds-background-accent-magenta-bolder-hovered","color.background.accent.magenta.bolder.pressed":"--ds-background-accent-magenta-bolder-pressed","color.background.accent.gray.subtlest":"--ds-background-accent-gray-subtlest","color.background.accent.gray.subtlest.hovered":"--ds-background-accent-gray-subtlest-hovered","color.background.accent.gray.subtlest.pressed":"--ds-background-accent-gray-subtlest-pressed","color.background.accent.gray.subtler":"--ds-background-accent-gray-subtler","color.background.accent.gray.subtler.hovered":"--ds-background-accent-gray-subtler-hovered","color.background.accent.gray.subtler.pressed":"--ds-background-accent-gray-subtler-pressed","color.background.accent.gray.subtle":"--ds-background-accent-gray-subtle","color.background.accent.gray.subtle.hovered":"--ds-background-accent-gray-subtle-hovered","color.background.accent.gray.subtle.pressed":"--ds-background-accent-gray-subtle-pressed","color.background.accent.gray.bolder":"--ds-background-accent-gray-bolder","color.background.accent.gray.bolder.hovered":"--ds-background-accent-gray-bolder-hovered","color.background.accent.gray.bolder.pressed":"--ds-background-accent-gray-bolder-pressed","color.background.disabled":"--ds-background-disabled","color.background.input":"--ds-background-input","color.background.input.hovered":"--ds-background-input-hovered","color.background.input.pressed":"--ds-background-input-pressed","color.background.inverse.subtle":"--ds-background-inverse-subtle","color.background.inverse.subtle.hovered":"--ds-background-inverse-subtle-hovered","color.background.inverse.subtle.pressed":"--ds-background-inverse-subtle-pressed","color.background.neutral":"--ds-background-neutral","color.background.neutral.hovered":"--ds-background-neutral-hovered","color.background.neutral.pressed":"--ds-background-neutral-pressed","color.background.neutral.subtle":"--ds-background-neutral-subtle","color.background.neutral.subtle.hovered":"--ds-background-neutral-subtle-hovered","color.background.neutral.subtle.pressed":"--ds-background-neutral-subtle-pressed","color.background.neutral.bold":"--ds-background-neutral-bold","color.background.neutral.bold.hovered":"--ds-background-neutral-bold-hovered","color.background.neutral.bold.pressed":"--ds-background-neutral-bold-pressed","color.background.selected":"--ds-background-selected","color.background.selected.hovered":"--ds-background-selected-hovered","color.background.selected.pressed":"--ds-background-selected-pressed","color.background.selected.bold":"--ds-background-selected-bold","color.background.selected.bold.hovered":"--ds-background-selected-bold-hovered","color.background.selected.bold.pressed":"--ds-background-selected-bold-pressed","color.background.brand.subtlest":"--ds-background-brand-subtlest","color.background.brand.subtlest.hovered":"--ds-background-brand-subtlest-hovered","color.background.brand.subtlest.pressed":"--ds-background-brand-subtlest-pressed","color.background.brand.bold":"--ds-background-brand-bold","color.background.brand.bold.hovered":"--ds-background-brand-bold-hovered","color.background.brand.bold.pressed":"--ds-background-brand-bold-pressed","color.background.brand.boldest":"--ds-background-brand-boldest","color.background.brand.boldest.hovered":"--ds-background-brand-boldest-hovered","color.background.brand.boldest.pressed":"--ds-background-brand-boldest-pressed","color.background.danger":"--ds-background-danger","color.background.danger.hovered":"--ds-background-danger-hovered","color.background.danger.pressed":"--ds-background-danger-pressed","color.background.danger.bold":"--ds-background-danger-bold","color.background.danger.bold.hovered":"--ds-background-danger-bold-hovered","color.background.danger.bold.pressed":"--ds-background-danger-bold-pressed","color.background.warning":"--ds-background-warning","color.background.warning.hovered":"--ds-background-warning-hovered","color.background.warning.pressed":"--ds-background-warning-pressed","color.background.warning.bold":"--ds-background-warning-bold","color.background.warning.bold.hovered":"--ds-background-warning-bold-hovered","color.background.warning.bold.pressed":"--ds-background-warning-bold-pressed","color.background.success":"--ds-background-success","color.background.success.hovered":"--ds-background-success-hovered","color.background.success.pressed":"--ds-background-success-pressed","color.background.success.bold":"--ds-background-success-bold","color.background.success.bold.hovered":"--ds-background-success-bold-hovered","color.background.success.bold.pressed":"--ds-background-success-bold-pressed","color.background.discovery":"--ds-background-discovery","color.background.discovery.hovered":"--ds-background-discovery-hovered","color.background.discovery.pressed":"--ds-background-discovery-pressed","color.background.discovery.bold":"--ds-background-discovery-bold","color.background.discovery.bold.hovered":"--ds-background-discovery-bold-hovered","color.background.discovery.bold.pressed":"--ds-background-discovery-bold-pressed","color.background.information":"--ds-background-information","color.background.information.hovered":"--ds-background-information-hovered","color.background.information.pressed":"--ds-background-information-pressed","color.background.information.bold":"--ds-background-information-bold","color.background.information.bold.hovered":"--ds-background-information-bold-hovered","color.background.information.bold.pressed":"--ds-background-information-bold-pressed","color.blanket":"--ds-blanket","color.blanket.selected":"--ds-blanket-selected","color.blanket.danger":"--ds-blanket-danger","color.interaction.hovered":"--ds-interaction-hovered","color.interaction.pressed":"--ds-interaction-pressed","color.skeleton":"--ds-skeleton","color.skeleton.subtle":"--ds-skeleton-subtle","color.chart.categorical.1":"--ds-chart-categorical-1","color.chart.categorical.1.hovered":"--ds-chart-categorical-1-hovered","color.chart.categorical.2":"--ds-chart-categorical-2","color.chart.categorical.2.hovered":"--ds-chart-categorical-2-hovered","color.chart.categorical.3":"--ds-chart-categorical-3","color.chart.categorical.3.hovered":"--ds-chart-categorical-3-hovered","color.chart.categorical.4":"--ds-chart-categorical-4","color.chart.categorical.4.hovered":"--ds-chart-categorical-4-hovered","color.chart.categorical.5":"--ds-chart-categorical-5","color.chart.categorical.5.hovered":"--ds-chart-categorical-5-hovered","color.chart.categorical.6":"--ds-chart-categorical-6","color.chart.categorical.6.hovered":"--ds-chart-categorical-6-hovered","color.chart.categorical.7":"--ds-chart-categorical-7","color.chart.categorical.7.hovered":"--ds-chart-categorical-7-hovered","color.chart.categorical.8":"--ds-chart-categorical-8","color.chart.categorical.8.hovered":"--ds-chart-categorical-8-hovered","color.chart.lime.bold":"--ds-chart-lime-bold","color.chart.lime.bold.hovered":"--ds-chart-lime-bold-hovered","color.chart.lime.bolder":"--ds-chart-lime-bolder","color.chart.lime.bolder.hovered":"--ds-chart-lime-bolder-hovered","color.chart.lime.boldest":"--ds-chart-lime-boldest","color.chart.lime.boldest.hovered":"--ds-chart-lime-boldest-hovered","color.chart.neutral":"--ds-chart-neutral","color.chart.neutral.hovered":"--ds-chart-neutral-hovered","color.chart.red.bold":"--ds-chart-red-bold","color.chart.red.bold.hovered":"--ds-chart-red-bold-hovered","color.chart.red.bolder":"--ds-chart-red-bolder","color.chart.red.bolder.hovered":"--ds-chart-red-bolder-hovered","color.chart.red.boldest":"--ds-chart-red-boldest","color.chart.red.boldest.hovered":"--ds-chart-red-boldest-hovered","color.chart.orange.bold":"--ds-chart-orange-bold","color.chart.orange.bold.hovered":"--ds-chart-orange-bold-hovered","color.chart.orange.bolder":"--ds-chart-orange-bolder","color.chart.orange.bolder.hovered":"--ds-chart-orange-bolder-hovered","color.chart.orange.boldest":"--ds-chart-orange-boldest","color.chart.orange.boldest.hovered":"--ds-chart-orange-boldest-hovered","color.chart.yellow.bold":"--ds-chart-yellow-bold","color.chart.yellow.bold.hovered":"--ds-chart-yellow-bold-hovered","color.chart.yellow.bolder":"--ds-chart-yellow-bolder","color.chart.yellow.bolder.hovered":"--ds-chart-yellow-bolder-hovered","color.chart.yellow.boldest":"--ds-chart-yellow-boldest","color.chart.yellow.boldest.hovered":"--ds-chart-yellow-boldest-hovered","color.chart.green.bold":"--ds-chart-green-bold","color.chart.green.bold.hovered":"--ds-chart-green-bold-hovered","color.chart.green.bolder":"--ds-chart-green-bolder","color.chart.green.bolder.hovered":"--ds-chart-green-bolder-hovered","color.chart.green.boldest":"--ds-chart-green-boldest","color.chart.green.boldest.hovered":"--ds-chart-green-boldest-hovered","color.chart.teal.bold":"--ds-chart-teal-bold","color.chart.teal.bold.hovered":"--ds-chart-teal-bold-hovered","color.chart.teal.bolder":"--ds-chart-teal-bolder","color.chart.teal.bolder.hovered":"--ds-chart-teal-bolder-hovered","color.chart.teal.boldest":"--ds-chart-teal-boldest","color.chart.teal.boldest.hovered":"--ds-chart-teal-boldest-hovered","color.chart.blue.bold":"--ds-chart-blue-bold","color.chart.blue.bold.hovered":"--ds-chart-blue-bold-hovered","color.chart.blue.bolder":"--ds-chart-blue-bolder","color.chart.blue.bolder.hovered":"--ds-chart-blue-bolder-hovered","color.chart.blue.boldest":"--ds-chart-blue-boldest","color.chart.blue.boldest.hovered":"--ds-chart-blue-boldest-hovered","color.chart.purple.bold":"--ds-chart-purple-bold","color.chart.purple.bold.hovered":"--ds-chart-purple-bold-hovered","color.chart.purple.bolder":"--ds-chart-purple-bolder","color.chart.purple.bolder.hovered":"--ds-chart-purple-bolder-hovered","color.chart.purple.boldest":"--ds-chart-purple-boldest","color.chart.purple.boldest.hovered":"--ds-chart-purple-boldest-hovered","color.chart.magenta.bold":"--ds-chart-magenta-bold","color.chart.magenta.bold.hovered":"--ds-chart-magenta-bold-hovered","color.chart.magenta.bolder":"--ds-chart-magenta-bolder","color.chart.magenta.bolder.hovered":"--ds-chart-magenta-bolder-hovered","color.chart.magenta.boldest":"--ds-chart-magenta-boldest","color.chart.magenta.boldest.hovered":"--ds-chart-magenta-boldest-hovered","color.chart.gray.bold":"--ds-chart-gray-bold","color.chart.gray.bold.hovered":"--ds-chart-gray-bold-hovered","color.chart.gray.bolder":"--ds-chart-gray-bolder","color.chart.gray.bolder.hovered":"--ds-chart-gray-bolder-hovered","color.chart.gray.boldest":"--ds-chart-gray-boldest","color.chart.gray.boldest.hovered":"--ds-chart-gray-boldest-hovered","color.chart.brand":"--ds-chart-brand","color.chart.brand.hovered":"--ds-chart-brand-hovered","color.chart.danger":"--ds-chart-danger","color.chart.danger.hovered":"--ds-chart-danger-hovered","color.chart.danger.bold":"--ds-chart-danger-bold","color.chart.danger.bold.hovered":"--ds-chart-danger-bold-hovered","color.chart.warning":"--ds-chart-warning","color.chart.warning.hovered":"--ds-chart-warning-hovered","color.chart.warning.bold":"--ds-chart-warning-bold","color.chart.warning.bold.hovered":"--ds-chart-warning-bold-hovered","color.chart.success":"--ds-chart-success","color.chart.success.hovered":"--ds-chart-success-hovered","color.chart.success.bold":"--ds-chart-success-bold","color.chart.success.bold.hovered":"--ds-chart-success-bold-hovered","color.chart.discovery":"--ds-chart-discovery","color.chart.discovery.hovered":"--ds-chart-discovery-hovered","color.chart.discovery.bold":"--ds-chart-discovery-bold","color.chart.discovery.bold.hovered":"--ds-chart-discovery-bold-hovered","color.chart.information":"--ds-chart-information","color.chart.information.hovered":"--ds-chart-information-hovered","color.chart.information.bold":"--ds-chart-information-bold","color.chart.information.bold.hovered":"--ds-chart-information-bold-hovered","elevation.surface":"--ds-surface","elevation.surface.hovered":"--ds-surface-hovered","elevation.surface.pressed":"--ds-surface-pressed","elevation.surface.overlay":"--ds-surface-overlay","elevation.surface.overlay.hovered":"--ds-surface-overlay-hovered","elevation.surface.overlay.pressed":"--ds-surface-overlay-pressed","elevation.surface.raised":"--ds-surface-raised","elevation.surface.raised.hovered":"--ds-surface-raised-hovered","elevation.surface.raised.pressed":"--ds-surface-raised-pressed","elevation.surface.sunken":"--ds-surface-sunken","elevation.shadow.overflow":"--ds-shadow-overflow","elevation.shadow.overflow.perimeter":"--ds-shadow-overflow-perimeter","elevation.shadow.overflow.spread":"--ds-shadow-overflow-spread","elevation.shadow.overlay":"--ds-shadow-overlay","elevation.shadow.raised":"--ds-shadow-raised","opacity.disabled":"--ds-opacity-disabled","opacity.loading":"--ds-opacity-loading","utility.UNSAFE.textTransformUppercase":"--ds-UNSAFE-textTransformUppercase","utility.UNSAFE.transparent":"--ds-UNSAFE-transparent","utility.elevation.surface.current":"--ds-elevation-surface-current","border.radius.050":"--ds-border-radius-050","border.radius":"--ds-border-radius","border.radius.100":"--ds-border-radius-100","border.radius.200":"--ds-border-radius-200","border.radius.300":"--ds-border-radius-300","border.radius.400":"--ds-border-radius-400","border.radius.circle":"--ds-border-radius-circle","border.width":"--ds-border-width","border.width.0":"--ds-border-width-0","border.width.indicator":"--ds-border-width-indicator","border.width.outline":"--ds-border-width-outline","space.0":"--ds-space-0","space.025":"--ds-space-025","space.050":"--ds-space-050","space.075":"--ds-space-075","space.100":"--ds-space-100","space.150":"--ds-space-150","space.200":"--ds-space-200","space.250":"--ds-space-250","space.300":"--ds-space-300","space.400":"--ds-space-400","space.500":"--ds-space-500","space.600":"--ds-space-600","space.800":"--ds-space-800","space.1000":"--ds-space-1000","space.negative.025":"--ds-space-negative-025","space.negative.050":"--ds-space-negative-050","space.negative.075":"--ds-space-negative-075","space.negative.100":"--ds-space-negative-100","space.negative.150":"--ds-space-negative-150","space.negative.200":"--ds-space-negative-200","space.negative.250":"--ds-space-negative-250","space.negative.300":"--ds-space-negative-300","space.negative.400":"--ds-space-negative-400","font.heading.xxlarge":"--ds-font-heading-xxlarge","font.heading.xlarge":"--ds-font-heading-xlarge","font.heading.large":"--ds-font-heading-large","font.heading.medium":"--ds-font-heading-medium","font.heading.small":"--ds-font-heading-small","font.heading.xsmall":"--ds-font-heading-xsmall","font.heading.xxsmall":"--ds-font-heading-xxsmall","font.body.large":"--ds-font-body-large","font.body":"--ds-font-body","font.body.small":"--ds-font-body-small","font.body.UNSAFE_small":"--ds-font-body-UNSAFE_small","font.code":"--ds-font-code","font.weight.regular":"--ds-font-weight-regular","font.weight.medium":"--ds-font-weight-medium","font.weight.semibold":"--ds-font-weight-semibold","font.weight.bold":"--ds-font-weight-bold","font.family.heading":"--ds-font-family-heading","font.family.body":"--ds-font-family-body","font.family.code":"--ds-font-family-code","font.family.brand.heading":"--ds-font-family-brand-heading","font.family.brand.body":"--ds-font-family-brand-body"};var me="data-theme",_e="data-color-mode",ke="data-contrast-mode",we="data-custom-theme",Ee="--".concat("ds","-token-not-found"),xe="--".concat("ds","-elevation-surface-current"),Oe=function(){var e=p(g().mark((function e(t,r){var n,o,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(o=null===(n=window)||void 0===n?void 0:n.analyticsWebClient)&&(a=!!document.querySelector("style[data-theme]"),o.sendEvent({type:"TRACK",payload:{action:"called_at_runtime",actionSubject:"token",source:"design-system",attributes:{url:window.location.href,token:t,fallback:r,isThemeEnabled:a}}}))}catch(e){console.error(e)}case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();const Se=function(e,t){he("platform-token-runtime-call-tracking")&&Oe(e,t);var r=ye[e];return r||(r=Ee),t?"var(".concat(r,", ").concat(t,")"):"var(".concat(r,")")};const Le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=ye[e],n=t;return"undefined"==typeof window?n:n=(n=window.getComputedStyle(document.documentElement).getPropertyValue(r).trim())||t};var Ae=function(e){return/^#[0-9A-F]{6}$/i.test(e)};var Ce=["light","dark","spacing","typography","shape"],Te="UNSAFE_themeOptions",Pe=function(e){return void 0!==Ce.find((function(t){return t===e}))},Ie=function(e){return void 0!==fe.find((function(t){return t===e}))},Me=function(e){return["light","dark","auto"].includes(e)},De=function(e){return e.split(" ").map((function(e){return e.split(/:([^]*)/)})).reduce((function(e,t){var r=d(t,2),n=r[0],o=r[1];if("colorMode"===n&&Me(o)&&(e[n]=o),Pe(n)&&Ie(o)&&(e[n]=o),n===Te)try{e[Te]=JSON.parse(o)}catch(e){new Error("Invalid custom theme string")}return e}),{})},je=function(e){return Object.entries(e).reduce((function(e,t){var n=d(t,2),o=n[0],a=n[1];return"colorMode"===o&&"string"==typeof a&&Me(a)||o===Te&&"object"===r(a)||Pe(o)&&"string"==typeof a&&Ie(a)?e+"".concat(e?" ":"")+"".concat(o,":").concat("object"===r(a)?JSON.stringify(a):a):e}),"")},Ue=function(e){for(var t=0,r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t&=t}return new Uint32Array([t])[0].toString(36)};function Ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.colorMode,r=void 0===t?be.colorMode:t,n=e.dark,o=void 0===n?be.dark:n,a=e.light,i=void 0===a?be.light:a,s=e.contrastMode,l=void 0===s?be.contrastMode:s,u=e.shape,d=void 0===u?be.shape:u,h=e.spacing,p=void 0===h?be.spacing:h,f=e.typography,g=void 0===f?be.typography():f,b=e.UNSAFE_themeOptions,v=void 0===b?be.UNSAFE_themeOptions:b,y=je({dark:o,light:i,shape:d,spacing:p,typography:g}),m=c(c({},me,y),_e,"auto"===r?"light":r);if(he("platform_increased-contrast-themes")&&(m=Ne(Ne({},m),{},c({},ke,"auto"===l?"no-preference":l))),v&&Ae(v.brandColor)){var _=JSON.stringify(v),k=Ue(_);m[we]=k}return m};var Re=o(833);const Fe={light:()=>o.e(381).then(o.bind(o,301)),"light-future":()=>o.e(567).then(o.bind(o,201)),dark:()=>o.e(479).then(o.bind(o,333)),"dark-future":()=>o.e(917).then(o.bind(o,294)),"legacy-light":()=>o.e(177).then(o.bind(o,19)),"legacy-dark":()=>o.e(915).then(o.bind(o,451)),spacing:()=>o.e(498).then(o.bind(o,520)),shape:()=>o.e(138).then(o.bind(o,416)),"typography-adg3":()=>o.e(592).then(o.bind(o,838)),"typography-modernized":()=>o.e(186).then(o.bind(o,956)),"typography-refreshed":()=>o.e(213).then(o.bind(o,203)),original:()=>Promise.resolve("")};var Ke=function(){var e=p(g().mark((function e(t){var r,n;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!document.head.querySelector("style[".concat(me,'="').concat(t,'"]:not([').concat(we,"])"))){e.next=2;break}return e.abrupt("return");case 2:if(t){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,ze(t);case 6:r=e.sent,(n=document.createElement("style")).textContent=r,n.dataset.theme=t,document.head.appendChild(n);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ze=function(){var e=p(g().mark((function e(t){var r,n;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"light"!==t&&"dark"!==t||!he("platform-component-visual-refresh")||(t+="-brand-refresh"),e.next=3,Fe[t]();case 3:return r=e.sent,n=r.default,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Be="(prefers-color-scheme: dark)",We="(prefers-contrast: more)";function qe(e){document.documentElement.setAttribute(_e,e.matches?"dark":"light")}var Je="undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia(Be);const Ye=new(function(){return s((function e(){t(this,e),c(this,"unbindThemeChangeListener",null)}),[{key:"getColorMode",value:function(){return Je&&null!=Je&&Je.matches?"dark":"light"}},{key:"bind",value:function(){Je&&null===this.unbindThemeChangeListener&&(this.unbindThemeChangeListener=(0,Re.bind)(Je,{type:"change",listener:qe}))}},{key:"unbind",value:function(){this.unbindThemeChangeListener&&(this.unbindThemeChangeListener(),this.unbindThemeChangeListener=null)}}])}());function Xe(e){document.documentElement.setAttribute(ke,e.matches?"more":"no-preference")}var He="undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia(We);const Qe=new(function(){return s((function e(){t(this,e),c(this,"unbindContrastChangeListener",null)}),[{key:"getContrastMode",value:function(){return He&&null!=He&&He.matches?"more":"no-preference"}},{key:"bind",value:function(){He&&null===this.unbindContrastChangeListener&&(this.unbindContrastChangeListener=(0,Re.bind)(He,{type:"change",listener:Xe}))}},{key:"unbind",value:function(){this.unbindContrastChangeListener&&(this.unbindContrastChangeListener(),this.unbindContrastChangeListener=null)}}])}());function Ze(e){"auto"===e.colorMode?(e.colorMode=Ye.getColorMode(),Ye.bind()):Ye.unbind(),he("platform_increased-contrast-themes")&&("auto"===e.contrastMode?(e.contrastMode=Qe.getContrastMode(),Qe.bind()):Qe.unbind());var t=Ge(e);return Object.entries(t).forEach((function(e){var t=d(e,2),r=t[0],n=t[1];document.documentElement.setAttribute(r,n)})),function(){Ye.unbind(),he("platform_increased-contrast-themes")&&Qe.unbind()}}function $e(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){var r=JSON.stringify(e),n=Ue(r),o=[];return("auto"===t?["light","dark"]:[t]).forEach((function(e){var t=document.head.querySelector("style[".concat(we,'="').concat(n,'"][').concat(me,'="').concat(e,'"]'));t?document.head.appendChild(t):o.push(e)})),o}function tt(e){var t;return null===(t=Object.entries(ve).find((function(t){return d(t,2)[1].increasesContrastFor===e})))||void 0===t?void 0:t[1].id}var rt=function(e){var t=e.colorMode,r=e.contrastMode,n=e.dark,o=e.light,a=e.shape,i=e.spacing,s=e.typography,c=[o,n],l=[];if("auto"===t)"no-preference"!==r&&he("platform_increased-contrast-themes")&&c.forEach((function(e){var t=tt(e);t&&c.push(t)})),l.push.apply(l,c);else if(l.push(e[t]),"no-preference"!==r&&he("platform_increased-contrast-themes")){var u=tt(e[t]);u&&l.push(u)}return[a,i,s].forEach((function(e){e&&l.push(e)})),$e(new Set(l))},nt=function(e){return $e(new Set([]))};function ot(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return at(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?at(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const it=function(){var e=p(g().mark((function e(){var t,r,n,o,a,i,s,c,l,u,d,h,f,b,v,y,m,_,k,w,E,x,O,S,L,A,C,T,P=arguments;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(t=P.length>0&&void 0!==P[0]?P[0]:{}).colorMode,n=void 0===r?be.colorMode:r,o=t.contrastMode,a=void 0===o?be.contrastMode:o,i=t.dark,s=void 0===i?be.dark:i,c=t.light,l=void 0===c?be.light:c,u=t.shape,d=void 0===u?be.shape:u,h=t.spacing,f=void 0===h?be.spacing:h,b=t.typography,v=void 0===b?be.typography():b,y=t.UNSAFE_themeOptions,m=void 0===y?be.UNSAFE_themeOptions:y,_=P.length>1?P[1]:void 0,he("platform_increased-contrast-themes")||("light-increased-contrast"===l&&(l="light"),"dark-increased-contrast"===s&&(s="dark")),w=rt(k={colorMode:n,contrastMode:a,dark:s,light:l,shape:d,spacing:f,typography:v,UNSAFE_themeOptions:_?void 0:m}),E=_||Ke,x=w.map(function(){var e=p(g().mark((function e(t){return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),!_&&m&&Ae(null==m?void 0:m.brandColor)&&(O=et(m,n||be.colorMode)).length>0&&x.push(p(g().mark((function e(){var t;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then((function(){var e=new Error("Cannot find module './custom-theme'");throw e.code="MODULE_NOT_FOUND",e}));case 2:t=e.sent,(0,t.loadAndAppendCustomThemeCss)({colorMode:2===O.length?"auto":O[0],UNSAFE_themeOptions:m});case 5:case"end":return e.stop()}}),e)})))()),e.next=10,Promise.all(x);case 10:S=nt(),L=ot(S),e.prev=12,L.s();case 14:if((A=L.n()).done){e.next=20;break}return C=A.value,e.next=18,E(C);case 18:e.next=14;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(12),L.e(e.t0);case 25:return e.prev=25,L.f(),e.finish(25);case 28:return T=Ze(k),e.abrupt("return",T);case 30:case"end":return e.stop()}}),e,null,[[12,22,25,28]])})));return function(){return e.apply(this,arguments)}}();const st=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.colorMode,r=void 0===t?be.colorMode:t,n=e.contrastMode,o=void 0===n?be.contrastMode:n,a=e.dark,i=void 0===a?be.dark:a,s=e.light,c=void 0===s?be.light:s,l=e.shape,u=void 0===l?be.shape:l,d=e.spacing,h=void 0===d?be.spacing:d,p=e.typography,f=void 0===p?be.typography():p,g=e.UNSAFE_themeOptions,b=arguments.length>1?arguments[1]:void 0,v={colorMode:r,contrastMode:o,dark:i,light:c,shape:u,spacing:h,typography:f,UNSAFE_themeOptions:b?void 0:void 0===g?be.UNSAFE_themeOptions:g},y=rt(v);return b&&y.map((function(e){return b(e)})),Ze(v)};const ct=function(){var e=p(g().mark((function e(t){var r,n,o,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],"all"===t?(r=ge,he("platform_increased-contrast-themes")||(r=r.filter((function(e){return"light-increased-contrast"!==e&&"dark-increased-contrast"!==e}))),r=r.filter((function(e){return"light-brand-refresh"!==e&&"dark-brand-refresh"!==e}))):(o={colorMode:(null==t?void 0:t.colorMode)||be.colorMode,contrastMode:(null==t?void 0:t.contrastMode)||be.contrastMode,dark:(null==t?void 0:t.dark)||be.dark,light:(null==t?void 0:t.light)||be.light,shape:(null==t?void 0:t.shape)||be.shape,spacing:(null==t?void 0:t.spacing)||be.spacing,typography:(null==t?void 0:t.typography)||be.typography()},r=rt(o),n=nt()),e.next=4,Promise.all([].concat($e([].concat($e(r),$e(n)).map(function(){var e=p(g().mark((function e(t){var r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ze(t);case 3:return r=e.sent,e.abrupt("return",{id:t,attrs:{"data-theme":t},css:r});case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",void 0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}())),[p(g().mark((function e(){var r,n,o,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("all"===t||null==t||!t.UNSAFE_themeOptions||!Ae(null==t||null===(r=t.UNSAFE_themeOptions)||void 0===r?void 0:r.brandColor)){e.next=15;break}return e.prev=1,e.next=4,Promise.resolve().then((function(){var e=new Error("Cannot find module './custom-theme'");throw e.code="MODULE_NOT_FOUND",e}));case 4:return n=e.sent,o=n.getCustomThemeStyles,e.next=8,o({colorMode:(null==t?void 0:t.colorMode)||be.colorMode,UNSAFE_themeOptions:null==t?void 0:t.UNSAFE_themeOptions});case 8:return a=e.sent,e.abrupt("return",a);case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",void 0);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})))()]));case 4:return a=e.sent,e.abrupt("return",a.flat().filter((function(e){return void 0!==e})));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();const lt=function(e,t){if("auto"===e||"auto"===t){var r="auto"===e?"\n try {\n const darkModeMql = window.matchMedia('".concat(Be,"');\n const colorMode = darkModeMql.matches ? 'dark' : 'light';\n document.documentElement.setAttribute('").concat(_e,"', colorMode);\n } catch (e) {}"):"",n="auto"===t&&he("platform_increased-contrast-themes")?"\n try {\n const contrastModeMql = window.matchMedia('".concat(We,"');\n const contrastMode = contrastModeMql.matches ? 'more' : 'no-preference';\n document.documentElement.setAttribute('").concat(ke,"', contrastMode);\n } catch (e) {}"):"";return"(() => {".concat(r).concat(n,"})()")}};var ut=o(39),dt=o.n(ut);function ht(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ht(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ft=function(){if("undefined"==typeof document)return{};var e=document.documentElement,t=e.getAttribute(_e)||"",r=e.getAttribute(me)||"";return pt(pt({},De(r)),function(e){return void 0!==pe.find((function(t){return t===e}))}(t)&&{colorMode:t})};var gt=function(){function e(r){t(this,e),c(this,"legacyObserver",null),this.callback=r,e.callbacks.add(r)}return s(e,[{key:"observe",value:function(){e.observer||(e.observer=new MutationObserver((function(){var t=ft();e.callbacks.forEach((function(e){return e(t)}))})),e.observer.observe(document.documentElement,{attributeFilter:[me,_e]}))}},{key:"disconnect",value:function(){this.callback&&e.callbacks.delete(this.callback),0===e.callbacks.size&&e.observer&&(e.observer.disconnect(),e.observer=null)}}])}();c(gt,"observer",null),c(gt,"callbacks",new Set);const bt="AJS";function vt(){"object"!=typeof window[bt]&&(window[bt]={})}document.documentElement.hasAttribute("data-color-mode-auto")&&it({colorMode:"auto"});const{setGlobalTheme:yt}=e;var mt,_t;mt="DesignTokens",_t={setGlobalTheme:yt},vt(),window[bt][mt]=_t})(),a})()));
15
+ */!function(o){var a=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(){this._events={},this._conf&&s.call(this,this._conf)}function s(e){e?(this._conf=e,e.delimiter&&(this.delimiter=e.delimiter),this._maxListeners=e.maxListeners!==o?e.maxListeners:10,e.wildcard&&(this.wildcard=e.wildcard),e.newListener&&(this.newListener=e.newListener),e.verboseMemoryLeak&&(this.verboseMemoryLeak=e.verboseMemoryLeak),this.wildcard&&(this.listenerTree={})):this._maxListeners=10}function c(e,t){var r="(node) warning: possible EventEmitter memory leak detected. "+e+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(r+=" Event name: "+t+"."),"undefined"!=typeof process&&process.emitWarning){var n=new Error(r);n.name="MaxListenersExceededWarning",n.emitter=this,n.count=e,process.emitWarning(n)}else console.error(r),console.trace&&console.trace()}function l(e){this._events={},this.newListener=!1,this.verboseMemoryLeak=!1,s.call(this,e)}function u(e,t,r,n){if(!r)return[];var o,a,i,s,c,l,d,h=[],p=t.length,f=t[n],g=t[n+1];if(n===p&&r._listeners){if("function"==typeof r._listeners)return e&&e.push(r._listeners),[r];for(o=0,a=r._listeners.length;o<a;o++)e&&e.push(r._listeners[o]);return[r]}if("*"===f||"**"===f||r[f]){if("*"===f){for(i in r)"_listeners"!==i&&r.hasOwnProperty(i)&&(h=h.concat(u(e,t,r[i],n+1)));return h}if("**"===f){for(i in(d=n+1===p||n+2===p&&"*"===g)&&r._listeners&&(h=h.concat(u(e,t,r,p))),r)"_listeners"!==i&&r.hasOwnProperty(i)&&("*"===i||"**"===i?(r[i]._listeners&&!d&&(h=h.concat(u(e,t,r[i],p))),h=h.concat(u(e,t,r[i],n))):h=i===g?h.concat(u(e,t,r[i],n+2)):h.concat(u(e,t,r[i],n)));return h}h=h.concat(u(e,t,r[f],n+1))}if((s=r["*"])&&u(e,t,s,n+1),c=r["**"])if(n<p)for(i in c._listeners&&u(e,t,c,p),c)"_listeners"!==i&&c.hasOwnProperty(i)&&(i===g?u(e,t,c[i],n+2):i===f?u(e,t,c[i],n+1):((l={})[i]=c[i],u(e,t,{"**":l},n+1)));else c._listeners?u(e,t,c,p):c["*"]&&c["*"]._listeners&&u(e,t,c["*"],p);return h}function d(e,t){for(var r=0,n=(e="string"==typeof e?e.split(this.delimiter):e.slice()).length;r+1<n;r++)if("**"===e[r]&&"**"===e[r+1])return;for(var a=this.listenerTree,i=e.shift();i!==o;){if(a[i]||(a[i]={}),a=a[i],0===e.length)return a._listeners?("function"==typeof a._listeners&&(a._listeners=[a._listeners]),a._listeners.push(t),!a._listeners.warned&&this._maxListeners>0&&a._listeners.length>this._maxListeners&&(a._listeners.warned=!0,c.call(this,a._listeners.length,i))):a._listeners=t,!0;i=e.shift()}return!0}l.EventEmitter2=l,l.prototype.delimiter=".",l.prototype.setMaxListeners=function(e){e!==o&&(this._maxListeners=e,this._conf||(this._conf={}),this._conf.maxListeners=e)},l.prototype.event="",l.prototype.once=function(e,t){return this._once(e,t,!1)},l.prototype.prependOnceListener=function(e,t){return this._once(e,t,!0)},l.prototype._once=function(e,t,r){return this._many(e,1,t,r),this},l.prototype.many=function(e,t,r){return this._many(e,t,r,!1)},l.prototype.prependMany=function(e,t,r){return this._many(e,t,r,!0)},l.prototype._many=function(e,t,r,n){var o=this;if("function"!=typeof r)throw new Error("many only accepts instances of Function");function a(){return 0==--t&&o.off(e,a),r.apply(this,arguments)}return a._origin=r,this._on(e,a,n),o},l.prototype.emit=function(){this._events||i.call(this);var e=arguments[0];if("newListener"===e&&!this.newListener&&!this._events.newListener)return!1;var t,r,n,o,a,s=arguments.length;if(this._all&&this._all.length){if(a=this._all.slice(),s>3)for(t=new Array(s),o=0;o<s;o++)t[o]=arguments[o];for(n=0,r=a.length;n<r;n++)switch(this.event=e,s){case 1:a[n].call(this,e);break;case 2:a[n].call(this,e,arguments[1]);break;case 3:a[n].call(this,e,arguments[1],arguments[2]);break;default:a[n].apply(this,t)}}if(this.wildcard){a=[];var c="string"==typeof e?e.split(this.delimiter):e.slice();u.call(this,a,c,this.listenerTree,0)}else{if("function"==typeof(a=this._events[e])){switch(this.event=e,s){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:for(t=new Array(s-1),o=1;o<s;o++)t[o-1]=arguments[o];a.apply(this,t)}return!0}a&&(a=a.slice())}if(a&&a.length){if(s>3)for(t=new Array(s-1),o=1;o<s;o++)t[o-1]=arguments[o];for(n=0,r=a.length;n<r;n++)switch(this.event=e,s){case 1:a[n].call(this);break;case 2:a[n].call(this,arguments[1]);break;case 3:a[n].call(this,arguments[1],arguments[2]);break;default:a[n].apply(this,t)}return!0}if(!this._all&&"error"===e)throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");return!!this._all},l.prototype.emitAsync=function(){this._events||i.call(this);var e=arguments[0];if("newListener"===e&&!this.newListener&&!this._events.newListener)return Promise.resolve([!1]);var t,r,n,o,a,s=[],c=arguments.length;if(this._all){if(c>3)for(t=new Array(c),o=1;o<c;o++)t[o]=arguments[o];for(n=0,r=this._all.length;n<r;n++)switch(this.event=e,c){case 1:s.push(this._all[n].call(this,e));break;case 2:s.push(this._all[n].call(this,e,arguments[1]));break;case 3:s.push(this._all[n].call(this,e,arguments[1],arguments[2]));break;default:s.push(this._all[n].apply(this,t))}}if(this.wildcard){a=[];var l="string"==typeof e?e.split(this.delimiter):e.slice();u.call(this,a,l,this.listenerTree,0)}else a=this._events[e];if("function"==typeof a)switch(this.event=e,c){case 1:s.push(a.call(this));break;case 2:s.push(a.call(this,arguments[1]));break;case 3:s.push(a.call(this,arguments[1],arguments[2]));break;default:for(t=new Array(c-1),o=1;o<c;o++)t[o-1]=arguments[o];s.push(a.apply(this,t))}else if(a&&a.length){if(a=a.slice(),c>3)for(t=new Array(c-1),o=1;o<c;o++)t[o-1]=arguments[o];for(n=0,r=a.length;n<r;n++)switch(this.event=e,c){case 1:s.push(a[n].call(this));break;case 2:s.push(a[n].call(this,arguments[1]));break;case 3:s.push(a[n].call(this,arguments[1],arguments[2]));break;default:s.push(a[n].apply(this,t))}}else if(!this._all&&"error"===e)return arguments[1]instanceof Error?Promise.reject(arguments[1]):Promise.reject("Uncaught, unspecified 'error' event.");return Promise.all(s)},l.prototype.on=function(e,t){return this._on(e,t,!1)},l.prototype.prependListener=function(e,t){return this._on(e,t,!0)},l.prototype.onAny=function(e){return this._onAny(e,!1)},l.prototype.prependAny=function(e){return this._onAny(e,!0)},l.prototype.addListener=l.prototype.on,l.prototype._onAny=function(e,t){if("function"!=typeof e)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),t?this._all.unshift(e):this._all.push(e),this},l.prototype._on=function(e,t,r){if("function"==typeof e)return this._onAny(e,t),this;if("function"!=typeof t)throw new Error("on only accepts instances of Function");return this._events||i.call(this),this.emit("newListener",e,t),this.wildcard?(d.call(this,e,t),this):(this._events[e]?("function"==typeof this._events[e]&&(this._events[e]=[this._events[e]]),r?this._events[e].unshift(t):this._events[e].push(t),!this._events[e].warned&&this._maxListeners>0&&this._events[e].length>this._maxListeners&&(this._events[e].warned=!0,c.call(this,this._events[e].length,e))):this._events[e]=t,this)},l.prototype.off=function(e,t){if("function"!=typeof t)throw new Error("removeListener only takes instances of Function");var r,n=[];if(this.wildcard){var i="string"==typeof e?e.split(this.delimiter):e.slice();n=u.call(this,null,i,this.listenerTree,0)}else{if(!this._events[e])return this;r=this._events[e],n.push({_listeners:r})}for(var s=0;s<n.length;s++){var c=n[s];if(r=c._listeners,a(r)){for(var l=-1,d=0,h=r.length;d<h;d++)if(r[d]===t||r[d].listener&&r[d].listener===t||r[d]._origin&&r[d]._origin===t){l=d;break}if(l<0)continue;return this.wildcard?c._listeners.splice(l,1):this._events[e].splice(l,1),0===r.length&&(this.wildcard?delete c._listeners:delete this._events[e]),this.emit("removeListener",e,t),this}(r===t||r.listener&&r.listener===t||r._origin&&r._origin===t)&&(this.wildcard?delete c._listeners:delete this._events[e],this.emit("removeListener",e,t))}return function e(t){if(t!==o){var r=Object.keys(t);for(var n in r){var a=r[n],i=t[a];i instanceof Function||"object"!=typeof i||null===i||(Object.keys(i).length>0&&e(t[a]),0===Object.keys(i).length&&delete t[a])}}}(this.listenerTree),this},l.prototype.offAny=function(e){var t,r=0,n=0;if(e&&this._all&&this._all.length>0){for(r=0,n=(t=this._all).length;r<n;r++)if(e===t[r])return t.splice(r,1),this.emit("removeListenerAny",e),this}else{for(r=0,n=(t=this._all).length;r<n;r++)this.emit("removeListenerAny",t[r]);this._all=[]}return this},l.prototype.removeListener=l.prototype.off,l.prototype.removeAllListeners=function(e){if(0===arguments.length)return!this._events||i.call(this),this;if(this.wildcard)for(var t="string"==typeof e?e.split(this.delimiter):e.slice(),r=u.call(this,null,t,this.listenerTree,0),n=0;n<r.length;n++){r[n]._listeners=null}else this._events&&(this._events[e]=null);return this},l.prototype.listeners=function(e){if(this.wildcard){var t=[],r="string"==typeof e?e.split(this.delimiter):e.slice();return u.call(this,t,r,this.listenerTree,0),t}return this._events||i.call(this),this._events[e]||(this._events[e]=[]),a(this._events[e])||(this._events[e]=[this._events[e]]),this._events[e]},l.prototype.eventNames=function(){return Object.keys(this._events)},l.prototype.listenerCount=function(e){return this.listeners(e).length},l.prototype.listenersAny=function(){return this._all?this._all:[]},(n=function(){return l}.call(t,r,t,e))===o||(e.exports=n)}()},913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,r,n,o,a,i){void 0===o&&(o=[]),void 0===a&&(a=""),void 0===i&&(i=null),this._onDefaultValueFallback=null,this.value=JSON.parse(JSON.stringify(null!=t?t:{})),this._name=e,this._ruleID=null!=r?r:"",this._secondaryExposures=o,this._allocatedExperimentName=a,this._evaluationDetails=n,this._onDefaultValueFallback=i}return e.prototype.get=function(e,t,r){var n,o,a=this.getValue(e,t);if(null==a)return t;var i=Array.isArray(t)?"array":typeof t,s=Array.isArray(a)?"array":typeof a;return r?r(a)?a:(null===(n=this._onDefaultValueFallback)||void 0===n||n.call(this,this,e,i,s),t):null==t||i===s?a:(null===(o=this._onDefaultValueFallback)||void 0===o||o.call(this,this,e,i,s),t)},e.prototype.getValue=function(e,t){return null==e?this.value:(null==t&&(t=null),null==this.value[e]?t:this.value[e])},e}();t.default=r},718:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExceptionEndpoint=void 0;var a=r(95);t.ExceptionEndpoint="https://statsigapi.net/v1/sdk_exception";var i=function(){function e(e,t){this._seen=new Set,this._sdkKey=e,this._options=t}return e.prototype._setStatsigMetadata=function(e){this._statsigMetadata=e},e.prototype._swallow=function(e,t){this._capture(e,t,(function(){}))},e.prototype._capture=function(e,t,r,n){var o=this;try{var a=t();return a instanceof Promise?a.catch((function(t){return o._onCaught(e,t,r,n)})):a}catch(t){return this._onCaught(e,t,r,n)}},e.prototype._logError=function(e,r,a){var i=this;if(!this._options.disableAllLogging)try{n(i,void 0,void 0,(function(){var n,i,s,c,l,u,d,h,p;return o(this,(function(o){switch(o.label){case 0:return"function"!=typeof a?[3,2]:[4,a()];case 1:return i=o.sent(),[3,3];case 2:i=null,o.label=3;case 3:return n=i,s=null!=r?r:Error("[Statsig] Error was empty"),c=s instanceof Error,l=c?s.name:"No Name",this._seen.has(l)?[2]:(this._seen.add(l),u=c?s.stack:this._getDescription(s),d=null!==(p=this._statsigMetadata)&&void 0!==p?p:{},h=JSON.stringify({tag:e,exception:l,info:u,statsigMetadata:d,extra:null!=n?n:{}}),[2,fetch(t.ExceptionEndpoint,{method:"POST",headers:{"STATSIG-API-KEY":this._sdkKey,"STATSIG-SDK-TYPE":String(d.sdkType),"STATSIG-SDK-VERSION":String(d.sdkVersion),"Content-Type":"application/json","Content-Length":"".concat(h.length)},body:h})])}}))})).then((function(){})).catch((function(){}))}catch(e){}},e.prototype._onCaught=function(e,t,r,n){if(t instanceof a.StatsigUninitializedError||t instanceof a.StatsigInvalidArgumentError)throw t;return console.error("[Statsig] An unexpected exception occurred.",t),this._logError(e,t,n),r()},e.prototype._getDescription=function(e){try{return JSON.stringify(e)}catch(e){return"[Statsig] Failed to get string for error."}},e}();t.default=i},95:function(e,t){"use strict";var r,n,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigSDKKeyMismatchError=t.StatsigInvalidArgumentError=t.StatsigUninitializedError=t.StatsigErrorMessage=void 0,function(e){e.REQUIRE_ASYNC_INITIALIZE="Call initialize() first.",e.REQUIRE_SYNC_INITIALIZE="Call and wait for initialize() to finish first.",e.REQUIRE_INITIALIZE_FOR_LOG_EVENT="Must initialize() before logging events."}(n=t.StatsigErrorMessage||(t.StatsigErrorMessage={}));var a=function(e){function t(r){var o=e.call(this,null!=r?r:n.REQUIRE_SYNC_INITIALIZE)||this;return Object.setPrototypeOf(o,t.prototype),o}return o(t,e),t}(Error);t.StatsigUninitializedError=a;var i=function(e){function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return o(t,e),t}(Error);t.StatsigInvalidArgumentError=i;var s=function(e){function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return o(t,e),t}(Error);t.StatsigSDKKeyMismatchError=s},755:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,r,n,o,a,i,s,c){void 0===o&&(o=null),void 0===a&&(a=[]),void 0===i&&(i=[]),void 0===s&&(s=""),void 0===c&&(c=[]),this._logParameterFunction=o,this._name=e,this._value=JSON.parse(JSON.stringify(null!=t?t:{})),this._ruleID=null!=r?r:"",this._evaluationDetails=n,this._secondaryExposures=a,this._undelegatedSecondaryExposures=i,this._allocatedExperimentName=s,this._explicitParameters=c}return e._create=function(t,r,n,o,a,i,s,c,l){return void 0===a&&(a=null),void 0===i&&(i=[]),void 0===s&&(s=[]),void 0===c&&(c=""),void 0===l&&(l=[]),new e(t,r,n,o,a,i,s,c,l)},e.prototype.get=function(e,t,r){var n=this,o=this._value[e];if(null==o)return t;var a=function(){return n._logLayerParameterExposure(e),o};return r?r(o)?a():t:null==t||typeof o==typeof t&&Array.isArray(t)===Array.isArray(o)?a():t},e.prototype.getValue=function(e,t){null==t&&(t=null);var r=this._value[e];return null!=r&&this._logLayerParameterExposure(e),null!=r?r:t},e.prototype._logLayerParameterExposure=function(e){var t;null===(t=this._logParameterFunction)||void 0===t||t.call(this,this,e)},e}();t.default=r},424:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.saveOverridesToLocalStorage=t.loadOverridesFromLocalStorage=t.makeEmptyOverrides=t.STORAGE_KEY=void 0;var o=n(r(139));function a(){return{gates:{},configs:{},layers:{}}}t.STORAGE_KEY="STATSIG_JS_LITE_LOCAL_OVERRIDES",t.makeEmptyOverrides=a,t.loadOverridesFromLocalStorage=function(){var e=o.default.getItem(t.STORAGE_KEY);if(e)try{return JSON.parse(e)}catch(e){}return{gates:{},configs:{},layers:{}}},t.saveOverridesToLocalStorage=function(e){o.default.setItem(t.STORAGE_KEY,JSON.stringify(e))}},226:function(e,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,o,a,i){void 0===o&&(o=null),void 0===a&&(a=null);var s=t;return(null==s?void 0:s.privateAttributes)&&delete(s=r({},t)).privateAttributes,{time:Date.now(),eventName:e,statsigMetadata:n,user:s,value:o,metadata:a,secondaryExposures:i}}},628:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="1.6.0"},966:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return a(t,e),t},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))},c=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=l(r(913)),d=l(r(718)),h=r(95),p=l(r(755)),f=l(r(27)),g=l(r(261)),b=l(r(763)),v=l(r(951)),y=i(r(812)),m=r(182),_=l(r(139)),k=r(944),w=l(r(226)),E=r(424),x=function(){function e(e,t,r){var n=this;if(this._initCalled=!1,this._pendingInitPromise=null,this._sdkKey=null,this._logLayerParameterExposureForLayer=function(e,t,r){void 0===r&&(r=!1);var o="",a=e._undelegatedSecondaryExposures,i=e._explicitParameters.includes(t);i&&(o=e._allocatedExperimentName,a=e._secondaryExposures),n._logger.logLayerExposure(n._identity._user,e._name,e._ruleID,a,o,t,i,e._evaluationDetails,r,n._store.getBootstrapMetadata())},!0!==(null==r?void 0:r.localMode)&&("string"!=typeof e||!e.startsWith("client-")))throw new h.StatsigInvalidArgumentError("Invalid key provided. You must use a Client SDK Key from the Statsig console to initialize the sdk");this._sdkKey=e,this._startTime=(0,k.now)(),this._options=new v.default(r),this._errorBoundary=new d.default(e,this._options),this._ready=!1,_.default.disabled=this._options.disableLocalStorage,this._overrides=(0,E.loadOverridesFromLocalStorage)(),this._identity=new f.default(e,this._normalizeUser(null!=t?t:null),this._options.overrideStableID),this._network=new b.default(this._options,this._identity,this._errorBoundary),this._logger=new g.default(this._options,this._identity,this._network,this._errorBoundary),this._store=new y.default(this._identity,this._logger.logConfigDefaultValueFallback,this._options.initializeValues),this._errorBoundary._setStatsigMetadata(this._identity._statsigMetadata),null!=this._options.initializeValues&&(this._ready=!0,this._initCalled=!0,setTimeout((function(){return n._delayedSetup()}),20))}return e.prototype.setInitializeValues=function(e){var t=this;this._errorBoundary._capture("setInitializeValues",(function(){t._store.bootstrap(e),t._ready||(t._ready=!0,t._initCalled=!0),t._logger.sendSavedRequests()}),(function(){t._ready=!0,t._initCalled=!0}))},e.prototype.initializeAsync=function(){return s(this,void 0,void 0,(function(){var e=this;return c(this,(function(t){return[2,this._errorBoundary._capture("initializeAsync",(function(){return s(e,void 0,void 0,(function(){var e,t=this;return c(this,(function(r){return null!=this._pendingInitPromise?[2,this._pendingInitPromise]:this._ready?[2,Promise.resolve()]:(this._initCalled=!0,this._options.localMode?[2,Promise.resolve()]:(e=this._identity._user,this._pendingInitPromise=this._fetchAndSaveValues(e,this._options.initTimeoutMs).then((function(){})).catch((function(e){return t._errorBoundary._logError("initializeAsync:fetchAndSaveValues",e),{success:!1,message:e.message}})).then((function(){})).finally((function(){return s(t,void 0,void 0,(function(){return c(this,(function(e){return this._pendingInitPromise=null,this._ready=!0,this._delayedSetup(),[2]}))}))})),[2,this._pendingInitPromise]))}))}))}),(function(){return e._ready=!0,e._initCalled=!0,Promise.resolve()}))]}))}))},e.prototype.getEvaluationDetails=function(){var e=this;return this._errorBoundary._capture("getEvaluationDetails",(function(){return e._store.getGlobalEvaluationDetails()}),(function(){return{time:Date.now(),reason:y.EvaluationReason.Error}}))},e.prototype.checkGate=function(e){return this._checkGateImpl(e,"checkGate")},e.prototype.checkGateWithExposureLoggingDisabled=function(e){return this._checkGateImpl(e,"checkGateWithExposureLoggingDisabled")},e.prototype.logGateExposure=function(e){var t=this;this._errorBoundary._swallow("logGateExposure",(function(){t._logGateExposureImpl(e)}))},e.prototype.getConfig=function(e){return this._getConfigImpl(e,"getConfig")},e.prototype.getConfigWithExposureLoggingDisabled=function(e){return this._getConfigImpl(e,"getConfigWithExposureLoggingDisabled")},e.prototype.logConfigExposure=function(e){var t=this;this._errorBoundary._swallow("logConfigExposure",(function(){t._logConfigExposureImpl(e)}))},e.prototype.getExperiment=function(e){return this.getConfig(e)},e.prototype.getExperimentWithExposureLoggingDisabled=function(e){return this.getConfigWithExposureLoggingDisabled(e)},e.prototype.logExperimentExposure=function(e){this.logConfigExposure(e)},e.prototype.getLayer=function(e){return this._getLayerImpl(e,"getLayer")},e.prototype.getLayerWithExposureLoggingDisabled=function(e){return this._getLayerImpl(e,"getLayerWithExposureLoggingDisabled")},e.prototype.logLayerParameterExposure=function(e,t){var r=this;this._errorBoundary._swallow("logLayerParameterExposure",(function(){var n=r._getLayerFromStore(null,e);r._logLayerParameterExposureForLayer(n,t,!0)}))},e.prototype.logEvent=function(e,t,r){var n=this;void 0===t&&(t=null),void 0===r&&(r=null),this._errorBoundary._swallow("logEvent",(function(){if(!n._logger||!n._identity._sdkKey)throw new h.StatsigUninitializedError(h.StatsigErrorMessage.REQUIRE_INITIALIZE_FOR_LOG_EVENT);if("string"==typeof e&&0!==e.length){var o=(0,w.default)(e,n._identity._user,n._identity._statsigMetadata,t,r);n._logger.log(o)}}))},e.prototype.updateUserWithValues=function(e,t){var r,n=this,o=Date.now();return this._errorBoundary._capture("updateUserWithValues",(function(){if(!n.initializeCalled())throw new h.StatsigUninitializedError(h.StatsigErrorMessage.REQUIRE_ASYNC_INITIALIZE);return r=function(e,t){var r=n._options.updateUserCompletionCallback;null==r||r(Date.now()-o,e,t)},n._identity._user=n._normalizeUser(e),n._store.bootstrap(t),n._logger.resetDedupeKeys(),r(!0,null),!0}),(function(){return null==r||r(!1,"Failed to update user. An unexpected error occured."),!1}))},e.prototype.updateUser=function(e){return s(this,void 0,void 0,(function(){var t,r,n=this;return c(this,(function(o){return t=Date.now(),[2,this._errorBoundary._capture("updateUser",(function(){return s(n,void 0,void 0,(function(){var n,o=this;return c(this,(function(a){switch(a.label){case 0:if(!this.initializeCalled())throw new h.StatsigUninitializedError(h.StatsigErrorMessage.REQUIRE_ASYNC_INITIALIZE);return r=function(e,r){var n=o._options.updateUserCompletionCallback;null==n||n(Date.now()-t,e,r)},this._identity._user=this._normalizeUser(e),this._store.updateUser(),this._logger.resetDedupeKeys(),null==this._pendingInitPromise?[3,2]:[4,this._pendingInitPromise];case 1:a.sent(),a.label=2;case 2:return this._options.localMode?(r(!0,null),[2,Promise.resolve(!0)]):(n=this._identity._user,this._pendingInitPromise=this._fetchAndSaveValues(n).finally((function(){o._pendingInitPromise=null})),[2,this._pendingInitPromise.then((function(){return r(!0,null),Promise.resolve(!0)})).catch((function(e){return r(!1,"Failed to update user: ".concat(e)),Promise.resolve(!1)}))])}}))}))}),(function(){return r(!1,"Failed to update user. An unexpected error occured."),Promise.resolve(!1)}))]}))}))},e.prototype.shutdown=function(){var e=this;this._errorBoundary._swallow("shutdown",(function(){e._logger.shutdown()}))},e.prototype.getStableID=function(){var e=this;return this._errorBoundary._capture("getStableID",(function(){return e._identity._statsigMetadata.stableID}),(function(){return""}))},e.prototype.initializeCalled=function(){return this._initCalled},e.prototype.overrideGate=function(e,t){this._setOverride("gates",e,t)},e.prototype.overrideConfig=function(e,t){this._setOverride("configs",e,t)},e.prototype.overrideLayer=function(e,t){this._setOverride("layers",e,t)},e.prototype.setOverrides=function(e){var t=this;this._errorBoundary._swallow("setOverrides",(function(){t._overrides=null!=e?e:(0,E.makeEmptyOverrides)(),(0,E.saveOverridesToLocalStorage)(t._overrides)}))},e.prototype.getOverrides=function(){var e=this;return this._errorBoundary._capture("getOverrides",(function(){return e._overrides}),(function(){return(0,E.makeEmptyOverrides)()}))},e.prototype._delayedSetup=function(){var e=this;this._errorBoundary._swallow("delayedSetup",(function(){e._identity.saveStableID(),e._logger.sendSavedRequests().then((function(){}))}))},e.prototype._normalizeUser=function(e){var t={};try{t=JSON.parse(JSON.stringify(e))}catch(e){throw new h.StatsigInvalidArgumentError("User object must be convertable to JSON string.")}return null!=this._options.environment&&(t=n(n({},t),{statsigEnvironment:this._options.environment})),t},e.prototype._ensureStoreLoaded=function(){if(!this._store.isLoaded())throw new h.StatsigUninitializedError},e.prototype._getEvaluationDetailsForError=function(){return{time:Date.now(),reason:y.EvaluationReason.Error}},e.prototype._fetchAndSaveValues=function(e,t){return void 0===t&&(t=this._options.initTimeoutMs),s(this,void 0,void 0,(function(){var r,n,o=this;return c(this,(function(a){return null,r=this._store.getLastUpdateTime(e),n=this._store.getPreviousDerivedFields(e),[2,this._network.fetchValues(e,r,t,n).eventually((function(t){var r;(0,m.verifySDKKeyUsed)(t,null!==(r=o._sdkKey)&&void 0!==r?r:"",o._errorBoundary)&&(null==t?void 0:t.has_updates)&&o._store.save(e,t,!1)})).then((function(t){return s(o,void 0,void 0,(function(){var r=this;return c(this,(function(n){return[2,this._errorBoundary._swallow("fetchAndSaveValues",(function(){return s(r,void 0,void 0,(function(){var r;return c(this,(function(n){switch(n.label){case 0:return(0,m.verifySDKKeyUsed)(t,null!==(r=this._sdkKey)&&void 0!==r?r:"",this._errorBoundary)?(null==t?void 0:t.has_updates)?[4,this._store.save(e,t)]:[3,2]:[2];case 1:return n.sent(),[3,3];case 2:(null==t?void 0:t.is_no_content)&&this._store.setEvaluationReason(y.EvaluationReason.NetworkNotModified),n.label=3;case 3:return[2]}}))}))}))]}))}))}))]}))}))},e.prototype._checkGateImpl=function(e,t){var r=this;return this._errorBoundary._capture(t,(function(){if("boolean"==typeof r._overrides.gates[e])return r._overrides.gates[e];var n=r._getGateFromStore(e);return"checkGate"===t&&r._logGateExposureImpl(e,n),!0===n.gate.value}),(function(){return!1}))},e.prototype._getGateFromStore=function(e){if(this._ensureStoreLoaded(),"string"!=typeof e||0===e.length)throw new h.StatsigInvalidArgumentError("Must pass a valid string as the gateName.");return this._store.checkGate(e)},e.prototype._logGateExposureImpl=function(e,t){var r,n=!t,o=null!=t?t:this._getGateFromStore(e),a=o.gate;this._logger.logGateExposure(this._identity._user,e,a.value,a.rule_id,this._store.mapExposures(null!==(r=a.secondary_exposures)&&void 0!==r?r:[]),o.evaluationDetails,n,this._store.getBootstrapMetadata())},e.prototype._getConfigImpl=function(e,t){var r=this;return this._errorBoundary._capture(t,(function(){if(r._overrides.configs[e])return new u.default(e,r._overrides.configs[e],"local_override",{reason:y.EvaluationReason.LocalOverride,time:Date.now()});var n=r._getConfigFromStore(e);return"getConfig"===t&&r._logConfigExposureImpl(e,n),n}),(function(){return r._getEmptyConfig(e)}))},e.prototype._getConfigFromStore=function(e){if(this._ensureStoreLoaded(),"string"!=typeof e||0===e.length)throw new h.StatsigInvalidArgumentError("Must pass a valid string as the configName.");return this._store.getConfig(e)},e.prototype._logConfigExposureImpl=function(e,t){var r=!t,n=null!=t?t:this._getConfigFromStore(e);this._logger.logConfigExposure(this._identity._user,e,n._ruleID,n._secondaryExposures,n._evaluationDetails,r,this._store.getBootstrapMetadata())},e.prototype._getLayerImpl=function(e,t){var r=this;return this._errorBoundary._capture(t,(function(){if(r._overrides.layers[e])return p.default._create(e,r._overrides.layers[e],"local_override",{reason:y.EvaluationReason.LocalOverride,time:Date.now()});var n="getLayer"===t?r._logLayerParameterExposureForLayer:null;return r._getLayerFromStore(n,e)}),(function(){return p.default._create(e,{},"",r._getEvaluationDetailsForError())}))},e.prototype._getLayerFromStore=function(e,t){if(this._ensureStoreLoaded(),"string"!=typeof t||0===t.length)throw new h.StatsigInvalidArgumentError("Must pass a valid string as the layerName.");return this._store.getLayer(e,t)},e.prototype._getEmptyConfig=function(e){return new u.default(e,{},"",this._getEvaluationDetailsForError())},e.prototype._setOverride=function(e,t,r){null==r?delete this._overrides[e][t]:this._overrides[e][t]=r,this.setOverrides(this._overrides)},e}();t.default=x},27:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(193),a=r(816),i=n(r(139)),s=r(628),c=function(){function e(e,t,r){var n;this._sdkType="js-lite",this._sdkKey=e,this._user=t,this._sdkVersion=s.version;var a=r;a=null!==(n=null!=a?a:i.default.getItem(o.STATSIG_STABLE_ID_KEY))&&void 0!==n?n:this._getUUID(),this._statsigMetadata={stableID:a,sdkType:this._sdkType,sdkVersion:this._sdkVersion}}return e.prototype.saveStableID=function(){null!=this._statsigMetadata.stableID&&i.default.setItem(o.STATSIG_STABLE_ID_KEY,this._statsigMetadata.stableID)},e.prototype.getUserCacheKey=function(){return(0,a.getUserCacheKey)(this._user)},e.prototype._getUUID=function(){for(var e="",t=0;t<32;t++){8!==t&&12!==t&&16!==t&&20!==t||(e+="-");var r=16*Math.random()|0;e+=12===t?"4":16===t?(3&r|8).toString(16):r.toString(16)}return e},e}();t.default=c},261:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=a(r(226)),s=r(763),c=r(193),l=a(r(139)),u="statsig::",d=u+"config_exposure",h=u+"layer_exposure",p=u+"gate_exposure",f=u+"log_event_failed",g=u+"default_value_type_mismatch",b=1024e3,v=function(){function e(e,t,r,n){var o=this;this._failedLogEventCount=0,this.logConfigDefaultValueFallback=function(e,t,r){var n=(0,i.default)(g,e,o._identity._statsigMetadata,t,r);o.log(n),o._loggedErrors.add(t)},this._options=e,this._identity=t,this._network=r,this._errorBoundary=n,this._queue=[],this._flushInterval=null,this._loggedErrors=new Set,this._failedLogEvents=[],this._exposureDedupeKeys={},this._failedLogEventCount=0,this._init()}return e.prototype.log=function(e){if(!this._options.disableAllLogging){try{if(!this._options.disableCurrentPageLogging&&"undefined"!=typeof window&&null!=window&&"object"==typeof window.location&&"string"==typeof window.location.href){var t=window.location.href.split(/[?#]/);(null==t?void 0:t.length)>0&&(e.statsigMetadata.currentPage=t[0])}}catch(e){}this._queue.push(e),this._queue.length>=this._options.loggingBufferMaxSize&&this.flush()}},e.prototype.resetDedupeKeys=function(){this._exposureDedupeKeys={}},e.prototype.logGateExposure=function(e,t,r,n,o,a,s,c){var l=t+String(r)+n+a.reason;if(this._shouldLogExposure(l)){var u={gate:t,gateValue:String(r),ruleID:n,reason:a.reason,time:a.time};s&&(u.isManualExposure="true"),null!=c&&(u.bootstrapMetadata=c);var d=(0,i.default)(p,e,this._identity._statsigMetadata,null,u,o);this.log(d)}},e.prototype.logConfigExposure=function(e,t,r,n,o,a,s){var c=t+r+o.reason;if(this._shouldLogExposure(c)){var l={config:t,ruleID:r,reason:o.reason,time:o.time};a&&(l.isManualExposure="true"),null!=s&&(l.bootstrapMetadata=s);var u=(0,i.default)(d,e,this._identity._statsigMetadata,null,l,n);this.log(u)}},e.prototype.logLayerExposure=function(e,t,r,n,o,a,s,c,l,u){var d=[t,r,o,a,String(s),c.reason].join("|");if(this._shouldLogExposure(d)){var p={config:t,ruleID:r,allocatedExperiment:o,parameterName:a,isExplicitParameter:String(s),reason:c.reason,time:c.time};l&&(p.isManualExposure="true"),null!=u&&(p.bootstrapMetadata=u);var f=(0,i.default)(h,e,this._identity._statsigMetadata,null,p,n);this.log(f)}},e.prototype.shutdown=function(){this._flushInterval&&(clearInterval(this._flushInterval),this._flushInterval=null),this.flush(!0)},e.prototype.flush=function(e){var t=this;if(void 0===e&&(e=!1),0!==this._queue.length){var r=this._identity._statsigMetadata,a=this._queue;if(this._queue=[],e&&!this._network.supportsKeepalive()&&"undefined"!=typeof navigator&&null!=navigator&&navigator.sendBeacon){this._network.sendLogBeacon({events:a,statsigMetadata:r})||(this._queue=a.concat(this._queue),this._queue.length>0&&(this._addFailedRequest({events:this._queue,statsigMetadata:r,time:Date.now()}),this._queue=[]),this._saveFailedRequests())}else{var i=this;this._network.postToEndpoint(s.StatsigEndpoint.Rgstr,{events:a,statsigMetadata:r},3,1e3,0,e).then((function(e){if(!e.ok)throw e})).catch((function(e){"function"==typeof e.text?e.text().then((function(r){t._errorBoundary._logError(f,e,(function(){return n(t,void 0,void 0,(function(){return o(this,(function(e){return[2,{eventCount:a.length,error:r}]}))}))}))})):t._errorBoundary._logError(f,e,(function(){return n(t,void 0,void 0,(function(){return o(this,(function(t){return[2,{eventCount:a.length,error:e.message}]}))}))})),i._newFailedRequest(f,a)})).finally((function(){return n(t,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return e?(this._queue.length>0&&(this._addFailedRequest({events:this._queue,statsigMetadata:r,time:Date.now()}),this._queue=[]),[4,i._saveFailedRequests()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}))}}},e.prototype.sendSavedRequests=function(){return n(this,void 0,void 0,(function(){var e,t,r,n,a,i,u,d,h=this;return o(this,(function(o){if(t=!1,null==(e=l.default.getItem(c.STATSIG_LOCAL_STORAGE_LOGGING_REQUEST_KEY)))return this._clearLocalStorageRequests(),[2];e.length>b&&(t=!0),r=[];try{for(r=JSON.parse(e),n=function(e){null!=e&&e.events&&Array.isArray(e.events)&&a._network.postToEndpoint(s.StatsigEndpoint.Rgstr,e).then((function(e){if(!e.ok)throw Error(e.status+"")})).catch((function(r){t||h._addFailedRequest(e)}))},a=this,i=0,u=r;i<u.length;i++)d=u[i],n(d)}catch(e){}finally{this._clearLocalStorageRequests()}return[2]}))}))},e.prototype._init=function(){var e=this;if("undefined"!=typeof window&&"function"==typeof window.addEventListener&&(window.addEventListener("blur",(function(){return e.flush(!0)})),window.addEventListener("beforeunload",(function(){return e.flush(!0)})),window.addEventListener("load",(function(){setTimeout((function(){return e.flush()}),100),setTimeout((function(){return e.flush()}),1e3)}))),"undefined"!=typeof document&&"function"==typeof document.addEventListener&&document.addEventListener("visibilitychange",(function(){e.flush("visible"!==document.visibilityState)})),(this._options.ignoreWindowUndefined||"undefined"!=typeof window&&null!=window)&&!this._options.localMode){var t=this;this._flushInterval=setInterval((function(){t.flush()}),this._options.loggingIntervalMillis),setTimeout((function(){return e.flush()}),100),setTimeout((function(){return e.flush()}),1e3)}},e.prototype._shouldLogExposure=function(e){var t=this._exposureDedupeKeys[e],r=Date.now();return!(null!=t&&t>=r-6e5||(this._exposureDedupeKeys[e]=r,0))},e.prototype._saveFailedRequests=function(){return n(this,void 0,void 0,(function(){var e;return o(this,(function(t){if(this._failedLogEvents.length>0){if((e=JSON.stringify(this._failedLogEvents)).length>b)return this._clearLocalStorageRequests(),[2];l.default.setItem(c.STATSIG_LOCAL_STORAGE_LOGGING_REQUEST_KEY,e)}return[2]}))}))},e.prototype._addFailedRequest=function(e){if(!(e.time<Date.now()-432e6||this._failedLogEvents.length>100)){var t=e.events.length;this._failedLogEventCount+t>1e3||(this._failedLogEvents.push(e),this._failedLogEventCount+=t)}},e.prototype._clearLocalStorageRequests=function(){l.default.removeItem(c.STATSIG_LOCAL_STORAGE_LOGGING_REQUEST_KEY)},e.prototype._newFailedRequest=function(e,t){this._loggedErrors.has(e)||(this._loggedErrors.add(e),this._failedLogEvents.push({events:t,statsigMetadata:this._identity._statsigMetadata,time:Date.now()}),this._saveFailedRequests().then((function(){})))},e}();t.default=v},763:function(e,t){"use strict";var r,n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.StatsigEndpoint=void 0,function(e){e.Initialize="initialize",e.Rgstr="rgstr",e.LogEventBeacon="log_event_beacon"}(r=t.StatsigEndpoint||(t.StatsigEndpoint={}));var a=function(){function e(e,t,r){this.retryCodes={408:!0,500:!0,502:!0,503:!0,504:!0,522:!0,524:!0,599:!0},this.canUseKeepalive=!1,this._options=e,this._identity=t,this._errorBoundary=r,this.leakyBucket={},this._init()}return e.prototype.fetchValues=function(e,t,n,o){var a={user:e,statsigMetadata:this._identity._statsigMetadata,sinceTime:null!=t?t:void 0,hash:"djb2",previousDerivedFields:o};return this._postWithTimeout(r.Initialize,a,n,3)},e.prototype.sendLogBeacon=function(e){if(this._options.localMode)return!0;var t=new URL(this._options.eventLoggingApi+r.LogEventBeacon);t.searchParams.append("k",this._identity._sdkKey),e.clientTime=Date.now()+"";var n=null;try{n=JSON.stringify(e)}catch(e){return!1}return navigator.sendBeacon(t.toString(),n)},e.prototype.postToEndpoint=function(e,t,a,i,s,c){return void 0===a&&(a=0),void 0===i&&(i=1e3),void 0===s&&(s=0),void 0===c&&(c=!1),n(this,void 0,void 0,(function(){var l,u,d,h,p,f,g=this;return o(this,(function(b){return this._options.localMode?[2,Promise.reject("no network requests in localMode")]:"function"!=typeof fetch?[2,Promise.reject("fetch is not defined")]:"undefined"!=typeof window||this._options.ignoreWindowUndefined?(l=[r.Initialize].includes(e)?this._options.api:s>0?this._options.eventLoggingApiForRetries:this._options.eventLoggingApi,u=l+e,null!=(d=this.leakyBucket[u])&&d>=30?[2,Promise.reject(new Error("Request failed because you are making the same request too frequently."))]:(this.leakyBucket[u]=null==d?1:d+1,h=JSON.stringify(t),p=this._identity._statsigMetadata,f={method:"POST",body:h,headers:{"Content-type":"application/json; charset=UTF-8","STATSIG-API-KEY":this._identity._sdkKey,"STATSIG-CLIENT-TIME":Date.now()+"","STATSIG-SDK-TYPE":p.sdkType,"STATSIG-SDK-VERSION":p.sdkVersion}},this.canUseKeepalive&&c&&(f.keepalive=!0),[2,fetch(u,f).then((function(e){return n(g,void 0,void 0,(function(){var t,r,n;return o(this,(function(o){switch(o.label){case 0:return e.ok?(t=e,204!==e.status?[3,1]:(t.data={has_updates:!1,is_no_content:!0},[3,3])):[3,4];case 1:return[4,e.text()];case 2:r=o.sent(),t.data=JSON.parse(r),o.label=3;case 3:return[2,Promise.resolve(t)];case 4:return this.retryCodes[e.status]||(a=0),[4,e.text()];case 5:return n=o.sent(),[2,Promise.reject(new Error("".concat(e.status,": ").concat(n)))]}}))}))})).catch((function(r){return a>0?new Promise((function(r,n){setTimeout((function(){g.leakyBucket[u]=Math.max(g.leakyBucket[u]-1,0),g.postToEndpoint(e,t,a-1,2*i,s+1,c).then(r).catch(n)}),i)})):Promise.reject(r)})).finally((function(){g.leakyBucket[u]=Math.max(g.leakyBucket[u]-1,0)}))])):[2,Promise.reject("window is not defined")]}))}))},e.prototype.supportsKeepalive=function(){return this.canUseKeepalive},e.prototype._init=function(){if(!this._options.disableNetworkKeepalive)try{this.canUseKeepalive="keepalive"in new Request("")}catch(e){}},e.prototype._postWithTimeout=function(e,t,r,a,i){var s=this;void 0===r&&(r=0),void 0===a&&(a=0),void 0===i&&(i=1e3);var c=!1,l=null,u=null,d=[];0!=r&&(l=new Promise((function(e,t){setTimeout((function(){c=!0,t(new Error("The initialization timeout of ".concat(r,"ms has been hit before the network request has completed.")))}),r)})));var h,p=this.postToEndpoint(e,t,a,i).then((function(r){if(!r.ok)return Promise.reject(new Error("Request to ".concat(e," failed with status ").concat(r.status)));if("object"!=typeof r.data){var l=new Error("Request to ".concat(e," received invalid response type. Expected 'object' but got '").concat(typeof r.data,"'"));return s._errorBoundary._logError("postWithTimeoutInvalidRes",l,(function(){return n(s,void 0,void 0,(function(){return o(this,(function(n){return[2,this._getErrorData(e,t,a,i,r)]}))}))})),Promise.reject(l)}var h=r.data;return s._errorBoundary._capture("postWithTimeout",(function(){return n(s,void 0,void 0,(function(){return o(this,(function(e){return u=h,c&&(d.forEach((function(e){return e(h)})),d=[]),[2,Promise.resolve(h)]}))}))}),(function(){return Promise.resolve({})}),(function(){return n(s,void 0,void 0,(function(){return o(this,(function(n){return[2,this._getErrorData(e,t,a,i,r)]}))}))}))})).catch((function(e){return Promise.reject(e)})),f=l?Promise.race([p,l]):p;return f.eventually=(h=f,function(e){return c&&u?e(u):d.push(e),h}),f},e.prototype._getErrorData=function(e,t,r,a,i){var s;return n(this,void 0,void 0,(function(){var n;return o(this,(function(o){try{return n={},(null!==(s=i.headers)&&void 0!==s?s:[]).forEach((function(e,t){n[t]=e})),[2,{responseInfo:{headers:n,status:i.status,statusText:i.statusText,type:i.type,url:i.url,redirected:i.redirected,bodySnippet:i.data?JSON.stringify(i.data).slice(0,500):null},requestInfo:{endpointName:e,bodySnippet:JSON.stringify(t).slice(0,500),retries:r,backoff:a}}]}catch(e){return[2,{statusText:"statsig::failed to extract extra data"}]}return[2]}))}))},e}();t.default=a},951:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INIT_TIMEOUT_DEFAULT_MS=void 0;t.INIT_TIMEOUT_DEFAULT_MS=3e3;var r=function(){function e(e){var r,n,o,a,i,s,c,l,u,d,h,p,f,g,b,v;null==e&&(e={});var y=null!==(r=e.api)&&void 0!==r?r:"https://featuregates.org/v1/";this.api=y.endsWith("/")?y:y+"/",this.disableCurrentPageLogging=null!==(n=e.disableCurrentPageLogging)&&void 0!==n&&n,this.environment=null!==(o=e.environment)&&void 0!==o?o:null,this.loggingIntervalMillis=this.normalizeNumberInput(e.loggingIntervalMillis,{default:1e4,min:1e3,max:6e4}),this.loggingBufferMaxSize=this.normalizeNumberInput(e.loggingBufferMaxSize,{default:100,min:2,max:500}),this.disableNetworkKeepalive=null!==(a=e.disableNetworkKeepalive)&&void 0!==a&&a,this.overrideStableID=null!==(i=e.overrideStableID)&&void 0!==i?i:null,this.localMode=null!==(s=e.localMode)&&void 0!==s&&s,this.initTimeoutMs=e.initTimeoutMs&&e.initTimeoutMs>=0?e.initTimeoutMs:t.INIT_TIMEOUT_DEFAULT_MS,this.disableErrorLogging=null!==(c=e.disableErrorLogging)&&void 0!==c&&c,this.disableAutoMetricsLogging=null!==(l=e.disableAutoMetricsLogging)&&void 0!==l&&l,this.initializeValues=null!==(u=e.initializeValues)&&void 0!==u?u:null;var m=null!==(h=null!==(d=e.eventLoggingApi)&&void 0!==d?d:e.api)&&void 0!==h?h:"https://events.statsigapi.net/v1/";this.eventLoggingApi=m.endsWith("/")?m:m+"/";var _=null!==(p=e.eventLoggingApiForRetries)&&void 0!==p?p:m;this.eventLoggingApiForRetries=_.endsWith("/")?_:_+"/",this.disableLocalStorage=null!==(f=e.disableLocalStorage)&&void 0!==f&&f,this.ignoreWindowUndefined=null!==(g=null==e?void 0:e.ignoreWindowUndefined)&&void 0!==g&&g,this.updateUserCompletionCallback=null!==(b=null==e?void 0:e.updateUserCompletionCallback)&&void 0!==b?b:null,this.disableAllLogging=null!==(v=null==e?void 0:e.disableAllLogging)&&void 0!==v&&v}return e.prototype.normalizeNumberInput=function(e,t){return null==e?t.default:Math.max(Math.min(e,t.max),t.min)},e}();t.default=r},812:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EvaluationReason=void 0;var i,s=a(r(913)),c=a(r(755)),l=a(r(866)),u=r(193),d=r(816),h=a(r(139));!function(e){e.Network="Network",e.Bootstrap="Bootstrap",e.InvalidBootstrap="InvalidBootstrap",e.Cache="Cache",e.Unrecognized="Unrecognized",e.Uninitialized="Uninitialized",e.Error="Error",e.NetworkNotModified="NetworkNotModified",e.LocalOverride="LocalOverride"}(i=t.EvaluationReason||(t.EvaluationReason={}));var p=function(){function e(e,t,r){this._identity=e,this._onDefaultValueFallback=t,this._userCacheKey=this._identity.getUserCacheKey(),this._values={},this._userValues=this._getDefaultUserCacheValues(),this._loaded=!1,this._reason=i.Uninitialized,r?this.bootstrap(r):this._loadFromLocalStorage()}return e.prototype.updateUser=function(){return this._userCacheKey=this._identity.getUserCacheKey(),this._setUserValueFromCache()},e.prototype.bootstrap=function(e){var t,r,n,o,a,s,c,u=this._identity.getUserCacheKey(),d=this._identity._user,h=l.default.isValid(d,e)?i.Bootstrap:i.InvalidBootstrap;this._loaded=!0;try{this._userValues.feature_gates=null!==(t=e.feature_gates)&&void 0!==t?t:{},this._userValues.dynamic_configs=null!==(r=e.dynamic_configs)&&void 0!==r?r:{},this._userValues.layer_configs=null!==(n=e.layer_configs)&&void 0!==n?n:{},this._userValues.evaluation_time=Date.now(),this._userValues.time=null!==(o=e.time)&&void 0!==o?o:Date.now(),this._userValues.exposures=null!==(a=e.exposures)&&void 0!==a?a:[],this._userValues.hash_used=null!==(s=e.hash_used)&&void 0!==s?s:"djb2",this._values[u]=this._userValues,this._reason=h;var p=null!==(c=e.sdkInfo)&&void 0!==c?c:e.sdk_info;this._userValues.bootstrapMetadata={},null!=p&&(this._userValues.bootstrapMetadata.generatorSDKInfo=p),null!=e.user&&(this._userValues.bootstrapMetadata.user=e.user),null!=e.time&&(this._userValues.bootstrapMetadata.lcut=e.time)}catch(e){return}},e.prototype.getBootstrapMetadata=function(){var e;return null!==(e=this._userValues.bootstrapMetadata)&&void 0!==e?e:null},e.prototype.isLoaded=function(){return this._loaded},e.prototype.getLastUpdateTime=function(e){var t=(0,d.djb2HashForObject)(e);return this._userValues.user_hash==t?this._userValues.time:null},e.prototype.getPreviousDerivedFields=function(e){var t=(0,d.djb2HashForObject)(e);if(this._userValues.user_hash==t)return this._userValues.derived_fields},e.prototype.setEvaluationReason=function(e){this._reason=e},e.prototype.save=function(e,t,r){return void 0===r&&(r=!0),n(this,void 0,void 0,(function(){var n,a,s,c;return o(this,(function(o){switch(o.label){case 0:return n=(0,d.getUserCacheKey)(e),a=t,this._mergeInitializeResponseIntoUserMap(a,this._values,n,e,(function(e){return e})),r&&(s=this._values[n])&&n&&n==this._userCacheKey&&(this._userValues=s,this._reason=i.Network),c=this,[4,this._writeValuesToStorage(this._values)];case 1:return c._values=o.sent(),[2]}}))}))},e.prototype.checkGate=function(e){var t,r,n=(0,d.getHashValue)(e,this._userValues.hash_used),o={name:e,value:!1,rule_id:"",secondary_exposures:[]},a=null===(t=this._userValues)||void 0===t?void 0:t.feature_gates[n];return a&&(o=a),o.secondary_exposures=this.mapExposures(null!==(r=o.secondary_exposures)&&void 0!==r?r:[]),{evaluationDetails:this._getEvaluationDetails(null!=a),gate:o}},e.prototype.mapExposures=function(e){var t=this;return e.map((function(e){var r;return"string"==typeof e?(null!==(r=t._userValues.exposures)&&void 0!==r?r:{})[e]:e}))},e.prototype.getConfig=function(e){var t,r,n,o,a=(0,d.getHashValue)(e,this._userValues.hash_used);if(null!=(null===(t=this._userValues)||void 0===t?void 0:t.dynamic_configs[a])){var i=null===(r=this._userValues)||void 0===r?void 0:r.dynamic_configs[a];o=this._getEvaluationDetails(!0),n=this._createDynamicConfig(e,i,o)}else o=this._getEvaluationDetails(!1),n=new s.default(e,{},"",o);return n},e.prototype.getLayer=function(e,t){var r,n,o,a,i,s=this._getLatestValue(t,"layer_configs"),l=this._getEvaluationDetails(null!=s);return c.default._create(t,null!==(r=null==s?void 0:s.value)&&void 0!==r?r:{},null!==(n=null==s?void 0:s.rule_id)&&void 0!==n?n:"",l,e,this.mapExposures(null!==(o=null==s?void 0:s.secondary_exposures)&&void 0!==o?o:[]),this.mapExposures(null!==(a=null==s?void 0:s.undelegated_secondary_exposures)&&void 0!==a?a:[]),null!==(i=null==s?void 0:s.allocated_experiment_name)&&void 0!==i?i:"",null==s?void 0:s.explicit_parameters)},e.prototype.getGlobalEvaluationDetails=function(){var e,t;return{reason:null!==(e=this._reason)&&void 0!==e?e:i.Uninitialized,time:null!==(t=this._userValues.evaluation_time)&&void 0!==t?t:0}},e.prototype._loadFromLocalStorage=function(){this._parseCachedValues(h.default.getItem(u.INTERNAL_STORE_KEY)),this._loaded=!0},e.prototype._parseCachedValues=function(e){try{this._values=e?JSON.parse(e):this._values,this._setUserValueFromCache()}catch(e){this._removeFromStorage(u.INTERNAL_STORE_KEY)}},e.prototype._setUserValueFromCache=function(){var e,t=this._values[this._userCacheKey];return null==t?(this._resetUserValues(),this._reason=i.Uninitialized,null):(this._userValues=t,this._reason=i.Cache,null!==(e=t.evaluation_time)&&void 0!==e?e:0)},e.prototype._removeFromStorage=function(e){h.default.removeItem(e)},e.prototype._mergeInitializeResponseIntoUserMap=function(e,t,r,n,o){if(r){var a=this._convertAPIDataToCacheValues(e,r);if(e.has_updates&&e.time){var i=(0,d.djb2HashForObject)(n);a.user_hash=i}t[r]=o(a,r)}},e.prototype._getDefaultUserCacheValues=function(){return{feature_gates:{},layer_configs:{},dynamic_configs:{},time:0,evaluation_time:0,has_updates:!1}},e.prototype._writeValuesToStorage=function(e){return n(this,void 0,void 0,(function(){var t;return o(this,(function(r){return t=Object.entries(e).sort((function(e,t){var r,n,o=e[1],a=t[1];return null==o?1:null==a?-1:(null!==(r=null==a?void 0:a.evaluation_time)&&void 0!==r?r:null==a?void 0:a.time)-(null!==(n=null==o?void 0:o.evaluation_time)&&void 0!==n?n:null==o?void 0:o.time)})).slice(0,10),e=Object.fromEntries(t),h.default.setItem(u.INTERNAL_STORE_KEY,JSON.stringify(e)),[2,e]}))}))},e.prototype._getLatestValue=function(e,t){var r,n,o,a,i,s=(0,d.getHashValue)(e,this._userValues.hash_used);return null!==(o=null===(n=null===(r=this._userValues)||void 0===r?void 0:r[t])||void 0===n?void 0:n[s])&&void 0!==o?o:null===(i=null===(a=this._userValues)||void 0===a?void 0:a[t])||void 0===i?void 0:i[e]},e.prototype._createDynamicConfig=function(e,t,r){var n,o,a,i;return new s.default(e,null!==(n=null==t?void 0:t.value)&&void 0!==n?n:{},null!==(o=null==t?void 0:t.rule_id)&&void 0!==o?o:"",r,this.mapExposures(null!==(a=null==t?void 0:t.secondary_exposures)&&void 0!==a?a:[]),null!==(i=null==t?void 0:t.allocated_experiment_name)&&void 0!==i?i:"",this._makeOnConfigDefaultValueFallback(this._identity._user))},e.prototype._getEvaluationDetails=function(e,t){var r;return e?{reason:this._reason,time:null!==(r=this._userValues.evaluation_time)&&void 0!==r?r:Date.now()}:{reason:null!=t?t:this._reason==i.Uninitialized?i.Uninitialized:i.Unrecognized,time:Date.now()}},e.prototype._resetUserValues=function(){this._userValues=this._getDefaultUserCacheValues()},e.prototype._convertAPIDataToCacheValues=function(e,t){return{feature_gates:e.feature_gates,layer_configs:e.layer_configs,dynamic_configs:e.dynamic_configs,time:null==e.time||isNaN(e.time)?0:e.time,evaluation_time:Date.now(),derived_fields:e.derived_fields,hash_used:e.hash_used}},e.prototype._makeOnConfigDefaultValueFallback=function(e){var t=this;return function(r,n,o,a){t.isLoaded()&&t._onDefaultValueFallback(e,"Parameter ".concat(n," is a value of type ").concat(a,".\n Returning requested defaultValue type ").concat(o),{name:r._name,ruleID:r._ruleID,parameter:n,defaultValueType:o,valueType:a})}},e}();t.default=p},730:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EvaluationReason=t.Layer=t.DynamicConfig=void 0;var i=r(95),s=a(r(966)),c=r(812),l=r(913);Object.defineProperty(t,"DynamicConfig",{enumerable:!0,get:function(){return a(l).default}});var u=r(755);Object.defineProperty(t,"Layer",{enumerable:!0,get:function(){return a(u).default}});var d=r(812);Object.defineProperty(t,"EvaluationReason",{enumerable:!0,get:function(){return d.EvaluationReason}});var h=function(){function e(){}return e.initialize=function(t,r,a){var i;return n(this,void 0,void 0,(function(){var n;return o(this,(function(o){return n=null!==(i=e.instance)&&void 0!==i?i:new s.default(t,r,a),e.instance||(e.instance=n),[2,n.initializeAsync()]}))}))},e.setInitializeValues=function(t){e._getClientX().setInitializeValues(t)},e.checkGate=function(t){return e._getClientX().checkGate(t)},e.checkGateWithExposureLoggingDisabled=function(t){return e._getClientX().checkGateWithExposureLoggingDisabled(t)},e.manuallyLogGateExposure=function(t){e._getClientX().logGateExposure(t)},e.getConfig=function(t){return e._getClientX().getConfig(t)},e.getConfigWithExposureLoggingDisabled=function(t){return e._getClientX().getConfigWithExposureLoggingDisabled(t)},e.manuallyLogConfigExposure=function(t){e._getClientX().logConfigExposure(t)},e.getExperiment=function(t){return e._getClientX().getExperiment(t)},e.getExperimentWithExposureLoggingDisabled=function(t){return e._getClientX().getExperimentWithExposureLoggingDisabled(t)},e.manuallyLogExperimentExposure=function(t){e._getClientX().logExperimentExposure(t)},e.getLayer=function(t){return e._getClientX().getLayer(t)},e.getLayerWithExposureLoggingDisabled=function(t){return e._getClientX().getLayerWithExposureLoggingDisabled(t)},e.manuallyLogLayerParameterExposure=function(t,r){e._getClientX().logLayerParameterExposure(t,r)},e.logEvent=function(t,r,n){return void 0===r&&(r=null),void 0===n&&(n=null),e._getClientX().logEvent(t,r,n)},e.updateUser=function(t){return e._getClientX().updateUser(t)},e.updateUserWithValues=function(t,r){return e._getClientX().updateUserWithValues(t,r)},e.shutdown=function(){e._getClientX().shutdown(),e.instance=null},e.overrideGate=function(t,r){e._getClientX().overrideGate(t,r)},e.overrideConfig=function(t,r){e._getClientX().overrideConfig(t,r)},e.overrideLayer=function(t,r){e._getClientX().overrideLayer(t,r)},e.setOverrides=function(t){e._getClientX().setOverrides(t)},e.getOverrides=function(){return e._getClientX().getOverrides()},e.getStableID=function(){return e._getClientX().getStableID()},e.getEvaluationDetails=function(){var t,r;return null!==(r=null===(t=e.instance)||void 0===t?void 0:t.getEvaluationDetails())&&void 0!==r?r:{reason:c.EvaluationReason.Uninitialized,time:0}},e.initializeCalled=function(){return null!=e.instance&&e.instance.initializeCalled()},e._getClientX=function(){if(!e.instance)throw new i.StatsigUninitializedError;return e.instance},e.instance=null,e}();t.default=h},866:function(e,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.isValid=function(t,r){try{var n=r.evaluated_keys;if(!n){var o=r.user;o&&((n={}).userID=o.userID,o.customIDs&&(n.customIDs=o.customIDs))}if(!n||"object"!=typeof n)return!0;var a=this.copyObject(n),i=null==t?null:this.copyObject(t);return e.validate(a,i)&&e.validate(i,a)}catch(e){}return!0},e.validate=function(e,t){if(null==e)return null==t;if(null==t)return!1;for(var r=0,n=Object.entries(e);r<n.length;r++){var o=n[r],a=o[0],i=o[1];if("stableID"!==a){if(typeof i!=typeof t[a])return!1;if("string"!=typeof i)return"object"==typeof i&&this.validate(i,t[a]);if(i!==t[a])return!1}}return!0},e.copyObject=function(e){if(null==e)return null;var t={};if((null==e?void 0:e.userID)&&(t.userID=null==e?void 0:e.userID),null==e?void 0:e.customIDs){var n=r({},e.customIDs);delete n.stableID,0!==Object.keys(n).length&&(t.customIDs=n)}return t},e}();t.default=n},193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOCAL_STORAGE_KEYS=t.STATSIG_LOCAL_STORAGE_LOGGING_REQUEST_KEY=t.STATSIG_STABLE_ID_KEY=t.INTERNAL_STORE_KEY=void 0,t.INTERNAL_STORE_KEY="STATSIG_STORE",t.STATSIG_STABLE_ID_KEY="STATSIG_STABLE_ID",t.STATSIG_LOCAL_STORAGE_LOGGING_REQUEST_KEY="STATSIG_LOGS",t.LOCAL_STORAGE_KEYS={INTERNAL_STORE_KEY:!0,STATSIG_STABLE_ID_KEY:!0,STATSIG_LOCAL_STORAGE_LOGGING_REQUEST_KEY:!0}},816:(e,t)=>{"use strict";function r(e){for(var t=0,r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t|=0}return String(t>>>0)}function n(e){if(null==e)return null;var t=Object.keys(e).sort(),r={};return t.forEach((function(t){var o=e[t];o instanceof Object&&(o=n(o)),r[t]=o})),r}Object.defineProperty(t,"__esModule",{value:!0}),t.getUserCacheKey=t.getSortedObject=t.djb2HashForObject=t.getHashValue=t.SimpleHash=void 0,t.SimpleHash=r,t.getHashValue=function(e,t){return"none"===t?e:r(e)},t.djb2HashForObject=function(e){return r(JSON.stringify(n(e)))},t.getSortedObject=n,t.getUserCacheKey=function(e){var t,n="userID:".concat(String(null!==(t=null==e?void 0:e.userID)&&void 0!==t?t:"")),o=null==e?void 0:e.customIDs;if(null!=o)for(var a=0,i=Object.entries(o);a<i.length;a++){var s=i[a],c=s[0],l=s[1];n+=";".concat(c,":").concat(l)}return r(n)}},182:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifySDKKeyUsed=void 0;var n=r(95),o=r(816);t.verifySDKKeyUsed=function(e,t,r){var a=null==e?void 0:e.hashed_sdk_key_used;return null==a||a===(0,o.SimpleHash)(null!=t?t:"")||(r._logError("fetchAndSaveValues",new n.StatsigSDKKeyMismatchError("The SDK key provided does not match the one used to generate values.")),!1)}},139:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.getItem=function(e){var t;try{if(this.isStorageAccessible())return window.localStorage.getItem(e)}catch(e){}return null!==(t=this.fallbackSessionCache[e])&&void 0!==t?t:null},e.setItem=function(e,t){try{if(this.isStorageAccessible())return void window.localStorage.setItem(e,t)}catch(e){}this.fallbackSessionCache[e]=t},e.removeItem=function(e){try{if(this.isStorageAccessible())return void window.localStorage.removeItem(e)}catch(e){}delete this.fallbackSessionCache[e]},e.isStorageAccessible=function(e){void 0===e&&(e=!1),null==this.canAccessStorageAccessible&&(this.canAccessStorageAccessible="undefined"!=typeof Storage&&"undefined"!=typeof window&&null!=window&&null!=window.localStorage);var t=this.canAccessStorageAccessible;return(e||!this.disabled)&&t},e.disabled=!1,e.fallbackSessionCache={},e.canAccessStorageAccessible=null,e}();t.default=r},944:(e,t)=>{"use strict";function r(){return"undefined"!=typeof performance&&performance?0|performance.now():Date.now()}Object.defineProperty(t,"__esModule",{value:!0}),t.difference=t.now=void 0,t.now=r,t.difference=function(e){return r()-e}},39:()=>{},541:(e,t,r)=>{var n=r(998).default;function o(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},a=Object.prototype,i=a.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",d=c.toStringTag||"@@toStringTag";function h(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(t){h=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof _?t:_,a=Object.create(o.prototype),i=new M(n||[]);return s(a,"_invoke",{value:C(e,r,i)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=p;var g="suspendedStart",b="suspendedYield",v="executing",y="completed",m={};function _(){}function k(){}function w(){}var E={};h(E,l,(function(){return this}));var x=Object.getPrototypeOf,O=x&&x(x(D([])));O&&O!==a&&i.call(O,l)&&(E=O);var S=w.prototype=_.prototype=Object.create(E);function L(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function r(o,a,s,c){var l=f(e[o],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==n(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,c)}))}c(l.arg)}var o;s(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(a,a):a()}})}function C(e,r,n){var o=g;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var s=n.delegate;if(s){var c=T(s,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===g)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=f(e,r,n);if("normal"===l.type){if(o=n.done?y:b,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function T(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function D(e){if(e||""===e){var r=e[l];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(i.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(n(e)+" is not iterable")}return k.prototype=w,s(S,"constructor",{value:w,configurable:!0}),s(w,"constructor",{value:k,configurable:!0}),k.displayName=h(w,d,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===k||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,h(e,d,"GeneratorFunction")),e.prototype=Object.create(S),e},r.awrap=function(e){return{__await:e}},L(A.prototype),h(A.prototype,u,(function(){return this})),r.AsyncIterator=A,r.async=function(e,t,n,o,a){void 0===a&&(a=Promise);var i=new A(p(e,t,n,o),a);return r.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},L(S),h(S,d,"Generator"),h(S,l,(function(){return this})),h(S,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=D,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},998:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},192:(e,t,r)=>{var n=r(541)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return r[e].call(a.exports,a,a.exports,o),a.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>({138:"./themes/shape",177:"./themes/legacy-light",186:"./themes/typography-modernized",213:"./themes/typography-refreshed",381:"./themes/light",479:"./themes/dark",498:"./themes/spacing",567:"./themes/light-future",592:"./themes/typography-adg3",915:"./themes/legacy-dark",917:"./themes/dark-future"}[e]+".js"),o.miniCssF=e=>{},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="__auiPrototyping:",o.l=(r,n,a,i)=>{if(e[r])e[r].push(n);else{var s,c;if(void 0!==a)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+a){s=d;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.setAttribute("data-webpack",t+a),s.src=r),e[r]=[n];var h=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),c&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="/",(()=>{var e={635:0};o.f.j=(t,r)=>{var n=o.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var a=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=a);var i=o.p+o.u(t),s=new Error;o.l(i,(r=>{if(o.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var a=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,a,[i,s,c]=r,l=0;if(i.some((t=>0!==e[t]))){for(n in s)o.o(s,n)&&(o.m[n]=s[n]);if(c)c(o)}for(t&&t(r);l<i.length;l++)a=i[l],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=window.webpackChunk_auiPrototyping=window.webpackChunk_auiPrototyping||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a={};return(()=>{"use strict";o.r(a),o.d(a,{setGlobalTheme:()=>yt});var e={};function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function i(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n(o.key),o)}}function s(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],c=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return s}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t,r,n,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){h(a,n,o,i,s,"next",e)}function s(e){h(a,n,o,i,s,"throw",e)}i(void 0)}))}}o.r(e),o.d(e,{CURRENT_SURFACE_CSS_VAR:()=>xe,ThemeMutationObserver:()=>gt,enableGlobalTheme:()=>st,getGlobalTheme:()=>ft,getSSRAutoScript:()=>lt,getThemeHtmlAttrs:()=>Ge,getThemeStyles:()=>ct,getTokenValue:()=>Le,setGlobalTheme:()=>it,themeConfig:()=>ve,themeObjectToString:()=>je,themeStringToObject:()=>De,token:()=>Se,useThemeObserver:()=>dt()});var f=o(192),g=o.n(f),b=o(730),v=o.n(b),y=o(553);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var k="@all-features",w=function(){return s((function e(){t(this,e),c(this,"eventToValue",new Map),this.emitter=new y.EventEmitter2}),[{key:"onGateUpdated",value:function(e,t,r,n){var o=this,a=r(e,_(_({},n),{},{fireGateExposure:!1}));void 0===this.eventToValue.get(t)&&this.eventToValue.set(t,a);var i=function(){var a=r(e,_(_({},n),{},{fireGateExposure:!1}));o.eventToValue.get(t)!==a&&(o.eventToValue.set(t,a),t(a))};return this.emitter.on(e,i),function(){o.emitter.off(e,i)}}},{key:"onExperimentValueUpdated",value:function(e,t,r,n,o,a){var i=this,s="".concat(e,".").concat(t),c=o(e,t,r,_(_({},a),{},{fireExperimentExposure:!1}));void 0===this.eventToValue.get(n)&&this.eventToValue.set(n,c);var l=function(){var s=o(e,t,r,_(_({},a),{},{fireExperimentExposure:!1}));i.eventToValue.get(n)!==s&&(i.eventToValue.set(n,s),n(s))};return this.emitter.on(s,l),function(){i.emitter.off(s,l)}}},{key:"onAnyUpdated",value:function(e){var t=this;return this.emitter.on(k,e),function(){t.emitter.off(k,e)}}},{key:"anyUpdated",value:function(){var e=this;this.emitter.emit(k),this.emitter.eventNames().filter((function(e){return e!==k})).forEach((function(t){e.emitter.emit(t)}))}}])}(),E=function(e){return e.Development="development",e.Staging="staging",e.Production="production",e}({}),x=function(e){return e.COMMERCIAL="commercial",e.FEDRAMP_MODERATE="fedramp-moderate",e}({}),O="4.23.4";function S(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}function A(e,t){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},A(e,t)}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function T(e){var t="function"==typeof Map?new Map:void 0;return T=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(C())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&A(o,r.prototype),o}(e,arguments,L(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),A(r,e)},T(e)}function P(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(P=function(){return!!e})()}var I=function(e){function r(e){return t(this,r),n=this,a=[e],o=L(o=r),S(n,P()?Reflect.construct(o,a||[],L(n).constructor):o.apply(n,a));var n,o,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&A(e,t)}(r,e),s(r)}(T(Error));function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var j=function(){function e(){t(this,e)}return s(e,null,[{key:"fetchClientSdk",value:(i=p(g().mark((function e(t){var r,n;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.targetApp,n="/api/v2/frontend/clientSdkKey/".concat(r),e.prev=2,e.next=5,this.fetchRequest(n,"GET",t);case 5:return e.abrupt("return",e.sent);case 8:if(e.prev=8,e.t0=e.catch(2),!(e.t0 instanceof Error)){e.next=12;break}throw e.t0;case 12:throw Error("Failed to retrieve client sdk key");case 13:case"end":return e.stop()}}),e,this,[[2,8]])}))),function(e){return i.apply(this,arguments)})},{key:"fetchExperimentValues",value:(a=p(g().mark((function e(t,r,n){var o;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={identifiers:r,customAttributes:n,targetApp:t.targetApp},e.prev=1,e.next=4,this.fetchRequest("/api/v2/frontend/experimentValues","POST",t,o);case 4:return e.abrupt("return",e.sent);case 7:if(e.prev=7,e.t0=e.catch(1),!(e.t0 instanceof Error)){e.next=11;break}throw e.t0;case 11:throw Error("Failed to retrieve experiment values");case 12:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(e,t,r){return a.apply(this,arguments)})},{key:"handleResponseError",value:(o=p(g().mark((function e(t){var r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.ok){e.next=5;break}return e.next=3,t.text();case 3:throw r=e.sent,new I("Non 2xx response status received, status: ".concat(t.status,", body: ").concat(JSON.stringify(r)));case 5:if(204!==t.status){e.next=7;break}throw new I("Unexpected 204 response");case 7:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"extractResponseBody",value:(n=p(g().mark((function e(t){var r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.text();case 2:return r=e.sent,e.abrupt("return",JSON.parse(r));case 4:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"getBaseUrl",value:function(e){var t=arguments.length>2?arguments[2]:void 0;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return"/gateway/api/flags";if(t===x.FEDRAMP_MODERATE)switch(e){case E.Production:return"https://api.atlassian-us-gov-mod.com/flags";case E.Staging:return"https://api.stg.atlassian-us-gov-mod.com/flags";default:throw new Error('Invalid environment "'.concat(e,'" for "').concat(t,'" perimeter'))}else{if(t!==x.COMMERCIAL)throw new Error('Invalid perimeter "'.concat(t,'"'));switch(e){case E.Development:return"https://api.dev.atlassian.com/flags";case E.Staging:return"https://api.stg.atlassian.com/flags";default:return"https://api.atlassian.com/flags"}}}},{key:"fetchRequest",value:(r=p(g().mark((function t(r,n,o,a){var i,s,c,l,u;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.getBaseUrl(o.environment,o.useGatewayURL,o.perimeter),s=o.fetchTimeoutMs||5e3,AbortSignal.timeout?c=AbortSignal.timeout(s):AbortController&&(l=new AbortController,c=l.signal,setTimeout((function(){return l.abort()}),s)),t.next=5,fetch("".concat(i).concat(r),D({method:n,headers:{"Content-Type":"application/json","X-Client-Name":"feature-gate-js-client","X-Client-Version":O,"X-API-KEY":o.apiKey},signal:c},a&&{body:JSON.stringify(a)}));case 5:return u=t.sent,t.next=8,this.handleResponseError(u);case 8:return t.next=10,this.extractResponseBody(u);case 10:return t.abrupt("return",t.sent);case 11:case"end":return t.stop()}}),t,this)}))),function(e,t,n,o){return r.apply(this,arguments)})}]);var r,n,o,a,i}();function U(){var e,t=globalThis,r=t.MICROS_PERIMETER||t.UNSAFE_ATL_CONTEXT_BOUNDARY;if(r)return"fedramp-moderate"===r;var n=null===(e=t.location)||void 0===e||null===(e=e.hostname)||void 0===e?void 0:e.match(/atlassian-us-gov-mod\.(com|net)|atlassian-us-gov\.(com|net)|atlassian-fex\.(com|net)|atlassian-stg-fedm\.(com|net)/);return!!n&&n.length>0}var V=["sdkKey","updateUserCompletionCallback","perimeter"];function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var R=function(e){return G({perimeter:U()?x.FEDRAMP_MODERATE:x.COMMERCIAL},e)},F=function(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;var r=Object.entries(e),n=Object.entries(t);if(r.length!==n.length)return!1;var o=function(e,t){var r=d(e,1)[0],n=d(t,1)[0];return r.localeCompare(n)};r.sort(o),n.sort(o);for(var a=0;a<r.length;a++){if(d(r[a],2)[1]!==d(n[a],2)[1])return!1}return!0},K=function(e,t){var r={customIDs:e,custom:t};return e.atlassianAccountId&&(r.userID=e.atlassianAccountId),r},z=function(e,t){e.sdkKey,e.updateUserCompletionCallback,e.perimeter;return G(G({},function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,V)),{},{initializeValues:t,environment:{tier:e.environment},disableCurrentPageLogging:!0},e.updateUserCompletionCallback&&{updateUserCompletionCallback:B(e.updateUserCompletionCallback)})},B=function(e){return function(t,r,n){e(r,n)}};function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var J,Y="client-default-key",X=function(){return s((function e(){t(this,e),c(this,"initPromise",null),c(this,"initCompleted",!1),c(this,"initWithDefaults",!1),c(this,"hasCheckGateErrorOccurred",!1),c(this,"hasGetExperimentErrorOccurred",!1),c(this,"hasGetExperimentValueErrorOccurred",!1),c(this,"hasGetLayerErrorOccurred",!1),c(this,"hasGetLayerValueErrorOccurred",!1),c(this,"subscriptions",new w)}),[{key:"initialize",value:(y=p(g().mark((function e(t,r,n){var o,a,i=this;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=R(t),!this.initPromise){e.next=4;break}return F(o,this.initOptions)||console.warn("Feature Gates client already initialized with different options. New options were not applied."),e.abrupt("return",this.initPromise);case 4:return a=performance.now(),this.initOptions=o,this.initPromise=this.init(o,r,n).then((function(){i.initCompleted=!0,i.initWithDefaults=!0})).finally((function(){var e=performance.now()-a;i.fireClientEvent(a,e,"initialize",i.initCompleted,o.apiKey)})),e.abrupt("return",this.initPromise);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return y.apply(this,arguments)})},{key:"initializeWithProvider",value:(f=p(g().mark((function e(t,r,n,o){var a,i,s=this;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=R(t),!this.initPromise){e.next=4;break}return F(a,this.initOptions)||console.warn("Feature Gates client already initialized with different options. New options were not applied."),e.abrupt("return",this.initPromise);case 4:return i=performance.now(),this.initOptions=a,this.provider=r,this.provider.setClientVersion(O),this.provider.setApplyUpdateCallback&&this.provider.setApplyUpdateCallback(this.applyUpdateCallback),this.initPromise=this.initWithProvider(a,r,n,o).then((function(){s.initCompleted=!0,s.initWithDefaults=!0})).finally((function(){var e=performance.now()-i;s.fireClientEvent(i,e,"initializeWithProvider",s.initCompleted,r.getApiKey?r.getApiKey():void 0)})),e.abrupt("return",this.initPromise);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return f.apply(this,arguments)})},{key:"applyUpdateCallback",value:function(e){try{(this.initCompleted||this.initWithDefaults)&&(v().setInitializeValues(e.experimentValues),this.subscriptions.anyUpdated())}catch(e){console.warn("Error when attempting to apply update",e)}}},{key:"fireClientEvent",value:function(e,t,r,n){var o,a=this,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;null===(o=this.initOptions.analyticsWebClient)||void 0===o||o.then((function(o){var s=q({targetApp:a.initOptions.targetApp,clientVersion:O,success:n,startTime:e,totalTime:t},i&&{apiKey:i});o.sendOperationalEvent({action:r,actionSubject:"featureGatesClient",attributes:s,tags:["measurement"],source:"@atlaskit/feature-gate-js-client"})})).catch((function(e){a.initOptions.environment!==E.Production&&console.error("Analytics web client promise did not resolve",e)}))}},{key:"initializeFromValues",value:(h=p(g().mark((function e(t,r,n){var o,a,i,s=this,c=arguments;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=c.length>3&&void 0!==c[3]?c[3]:{},a=R(t),!this.initPromise){e.next=5;break}return F(a,this.initOptions)||console.warn("Feature Gates client already initialized with different options. New options were not applied."),e.abrupt("return",this.initPromise);case 5:return i=performance.now(),this.initOptions=a,this.initPromise=this.initFromValues(a,r,n,o).then((function(){s.initCompleted=!0,s.initWithDefaults=!0})).finally((function(){var e=performance.now()-i;s.fireClientEvent(i,e,"initializeFromValues",s.initCompleted)})),e.abrupt("return",this.initPromise);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return h.apply(this,arguments)})},{key:"updateUser",value:(u=p(g().mark((function e(t,r,n){var o,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=R(t),a=function(){return j.fetchExperimentValues(o,r,n).then((function(e){return{experimentValues:e.experimentValues,customAttributesFromFetch:e.customAttributes}}))},e.next=4,this.updateUserUsingInitializeValuesProducer(a,r,n);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return u.apply(this,arguments)})},{key:"updateUserWithProvider",value:(l=p(g().mark((function e(t,r){var n=this;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.provider){e.next=2;break}throw new Error("Cannot update user using provider as the client was not initialised with a provider");case 2:return e.next=4,this.provider.setProfile(this.initOptions,t,r);case 4:return e.next=6,this.updateUserUsingInitializeValuesProducer((function(){return n.provider.getExperimentValues()}),t,r);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"updateUserWithValues",value:(i=p(g().mark((function e(t,r){var n,o,a=arguments;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>2&&void 0!==a[2]?a[2]:{},o=function(){return Promise.resolve({experimentValues:n,customAttributesFromFetch:r})},e.next=4,this.updateUserUsingInitializeValuesProducer(o,t,r);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"initializeCalled",value:function(){return null!=this.initPromise}},{key:"initializeCompleted",value:function(){return this.initCompleted}},{key:"checkGate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r=t.fireGateExposure;return(void 0===r||r?v().checkGate.bind(v()):v().checkGateWithExposureLoggingDisabled.bind(v()))(e)}catch(t){return this.hasCheckGateErrorOccurred||(console.warn({msg:"An error has occurred checking the feature gate. Only the first occurrence of this error is logged.",gateName:e,error:t}),this.hasCheckGateErrorOccurred=!0),!1}}},{key:"isGateExist",value:function(e){try{return v()._getClientX()._getGateFromStore(e).evaluationDetails.reason!==b.EvaluationReason.Unrecognized}catch(e){return console.error("Error occurred when trying to check FeatureGate: ".concat(e)),!0}}},{key:"isExperimentExist",value:function(e){try{return v().getExperimentWithExposureLoggingDisabled(e)._evaluationDetails.reason!==b.EvaluationReason.Unrecognized}catch(e){return console.error("Error occurred when trying to check Experiment: ".concat(e)),!0}}},{key:"manuallyLogGateExposure",value:function(e){v().manuallyLogGateExposure(e)}},{key:"getExperiment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r=t.fireExperimentExposure;return(void 0===r||r?v().getExperiment.bind(v()):v().getExperimentWithExposureLoggingDisabled.bind(v()))(e)}catch(t){return this.hasGetExperimentErrorOccurred||(console.warn({msg:"An error has occurred getting the experiment. Only the first occurrence of this error is logged.",experimentName:e,error:t}),this.hasGetExperimentErrorOccurred=!0),new b.DynamicConfig(e,{},"",{time:Date.now(),reason:b.EvaluationReason.Error})}}},{key:"getExperimentValue",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=this.getExperiment(e,n);try{var a=n.typeGuard;return o.get(t,r,a)}catch(t){return this.hasGetExperimentValueErrorOccurred||(console.warn({msg:"An error has occurred getting the experiment value. Only the first occurrence of this error is logged.",experimentName:e,defaultValue:r,options:n,error:t}),this.hasGetExperimentValueErrorOccurred=!0),r}}},{key:"manuallyLogExperimentExposure",value:function(e){v().manuallyLogExperimentExposure(e)}},{key:"manuallyLogLayerExposure",value:function(e,t){v().manuallyLogLayerParameterExposure(e,t)}},{key:"shutdownStatsig",value:function(){v().shutdown()}},{key:"overrideGate",value:function(e,t){v().overrideGate(e,t),this.subscriptions.anyUpdated()}},{key:"clearGateOverride",value:function(e){v().overrideGate(e,null),this.subscriptions.anyUpdated()}},{key:"overrideConfig",value:function(e,t){v().overrideConfig(e,t),this.subscriptions.anyUpdated()}},{key:"clearConfigOverride",value:function(e){v().overrideConfig(e,null),this.subscriptions.anyUpdated()}},{key:"setOverrides",value:function(e){v().setOverrides(q({gates:{},configs:{},layers:{}},e)),this.subscriptions.anyUpdated()}},{key:"getOverrides",value:function(){return v().getOverrides()}},{key:"clearAllOverrides",value:function(){v().setOverrides(null),this.subscriptions.anyUpdated()}},{key:"isCurrentUser",value:function(e,t){return F(this.currentIdentifiers,e)&&F(this.currentAttributes,t)}},{key:"onGateUpdated",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.subscriptions.onGateUpdated(e,(function(o){var a=n.fireGateExposure;(void 0===a||a)&&r.manuallyLogGateExposure(e);try{t(o)}catch(t){console.warn("Error calling callback for gate ".concat(e," with value ").concat(o),t)}}),this.checkGate.bind(this),n)}},{key:"onExperimentValueUpdated",value:function(e,t,r,n){var o=this,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return this.subscriptions.onExperimentValueUpdated(e,t,r,(function(t){var r=a.fireExperimentExposure;(void 0===r||r)&&o.manuallyLogExperimentExposure(e);try{n(t)}catch(r){console.warn("Error calling callback for experiment ".concat(e," with value ").concat(t),r)}}),this.getExperimentValue,a)}},{key:"onAnyUpdated",value:function(e){return this.subscriptions.onAnyUpdated(e)}},{key:"init",value:(a=p(g().mark((function e(t,r,n){var o,a,i,s,c,l,u,h;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=q({},t),e.prev=1,s=j.fetchClientSdk(t).then((function(e){return o.sdkKey=e.clientSdkKey})),c=j.fetchExperimentValues(t,r,n),e.next=6,Promise.all([s,c]);case 6:l=e.sent,u=d(l,2),h=u[1],a=h.experimentValues,i=h.customAttributes,e.next=20;break;case 13:return e.prev=13,e.t0=e.catch(1),e.t0 instanceof Error&&console.error("Error occurred when trying to fetch the Feature Gates client values, error: ".concat(null===e.t0||void 0===e.t0?void 0:e.t0.message)),console.warn("Initialising Statsig client without values"),e.next=19,this.initFromValues(o,r,n);case 19:throw e.t0;case 20:return e.abrupt("return",this.initFromValues(o,r,i,a));case 21:case"end":return e.stop()}}),e,this,[[1,13]])}))),function(e,t,r){return a.apply(this,arguments)})},{key:"initWithProvider",value:(o=p(g().mark((function e(t,r,n,o){var a,i,s,c,l,u,h,p;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=q(q({},t),{},{disableCurrentPageLogging:!0}),e.prev=1,e.next=4,r.setProfile(t,n,o);case 4:return c=r.getClientSdkKey().then((function(e){return a.sdkKey=e})),l=r.getExperimentValues(),e.next=8,Promise.all([c,l]);case 8:u=e.sent,h=d(u,2),p=h[1],i=p.experimentValues,s=p.customAttributesFromFetch,e.next=22;break;case 15:return e.prev=15,e.t0=e.catch(1),e.t0 instanceof Error&&console.error("Error occurred when trying to fetch the Feature Gates client values, error: ".concat(null===e.t0||void 0===e.t0?void 0:e.t0.message)),console.warn("Initialising Statsig client without values"),e.next=21,this.initFromValues(a,n,o);case 21:throw e.t0;case 22:return e.abrupt("return",this.initFromValues(a,n,s,i));case 23:case"end":return e.stop()}}),e,this,[[1,15]])}))),function(e,t,r,n){return o.apply(this,arguments)})},{key:"initFromValues",value:(n=p(g().mark((function e(t,r,n){var o,a,i,s,c=arguments;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=c.length>3&&void 0!==c[3]?c[3]:{},a=K(r,n),this.currentIdentifiers=r,this.currentAttributes=n,t.sdkKey||(t.sdkKey=Y),t.eventLoggingApi||(t.eventLoggingApi="https://xp.atlassian.com/v1/"),t.perimeter===x.FEDRAMP_MODERATE&&(t.disableAllLogging=!0),i=t.sdkKey,s=z(t,o),e.prev=9,e.next=12,v().initialize(i,a,s);case 12:e.next=22;break;case 14:return e.prev=14,e.t0=e.catch(9),e.t0 instanceof Error&&console.error("Error occurred when trying to initialise the Statsig client, error: ".concat(null===e.t0||void 0===e.t0?void 0:e.t0.message)),console.warn("Initialising Statsig client with default sdk key and without values"),e.next=20,v().initialize(Y,a,q(q({},s),{},{initializeValues:{}}));case 20:throw this.initWithDefaults=!0,e.t0;case 22:case"end":return e.stop()}}),e,this,[[9,14]])}))),function(e,t,r){return n.apply(this,arguments)})},{key:"updateUserUsingInitializeValuesProducer",value:(r=p(g().mark((function e(t,r,n){var o,a,i,s=this;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.initPromise){e.next=2;break}throw new Error("The client must be initialized before you can update the user.");case 2:if(!this.isCurrentUser(r,n)){e.next=4;break}return e.abrupt("return",this.initPromise);case 4:return o=this.initPromise,e.prev=5,e.next=8,this.initPromise;case 8:e.next=12;break;case 10:e.prev=10,e.t0=e.catch(5);case 12:return a=t(),i=this.updateStatsigClientUser(a,r,n),this.initPromise=i.catch(p(g().mark((function e(){return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s.initPromise=o,!s.provider){e.next=4;break}return e.next=4,s.provider.setProfile(s.initOptions,s.currentIdentifiers,s.currentAttributes);case 4:case"end":return e.stop()}}),e)})))),e.abrupt("return",i);case 16:case"end":return e.stop()}}),e,this,[[5,10]])}))),function(e,t,n){return r.apply(this,arguments)})},{key:"updateStatsigClientUser",value:(e=p(g().mark((function e(t,r,n){var o,a,i,s,c;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:o=e.sent,a=K(r,o.customAttributesFromFetch),e.next=12;break;case 7:throw e.prev=7,e.t0=e.catch(0),c=e.t0 instanceof Error?e.t0.message:JSON.stringify(e.t0),null===(i=(s=this.initOptions).updateUserCompletionCallback)||void 0===i||i.call(s,!1,c),e.t0;case 12:if(!v().updateUserWithValues(a,o.experimentValues)){e.next=19;break}this.currentIdentifiers=r,this.currentAttributes=n,this.subscriptions.anyUpdated(),e.next=20;break;case 19:throw new Error("Failed to update user. An unexpected error occured.");case 20:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(t,r,n){return e.apply(this,arguments)})},{key:"getPackageVersion",value:function(){return O}},{key:"getLayer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r=t.fireLayerExposure;return(void 0===r||r?v().getLayer.bind(v()):v().getLayerWithExposureLoggingDisabled.bind(v()))(e)}catch(t){return this.hasGetLayerErrorOccurred||(console.warn({msg:"An error has occurred getting the layer. Only the first occurrence of this error is logged.",layerName:e,error:t}),this.hasGetLayerErrorOccurred=!0),b.Layer._create(e,{},"",{time:Date.now(),reason:b.EvaluationReason.Error})}}},{key:"getLayerValue",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=this.getLayer(e,n);try{var a=n.typeGuard;return o.get(t,r,a)}catch(t){return this.hasGetLayerValueErrorOccurred||(console.warn({msg:"An error has occurred getting the layer value. Only the first occurrence of this error is logged.",layerName:e,defaultValue:r,options:n,error:t}),this.hasGetLayerValueErrorOccurred=!0),r}}}]);var e,r,n,o,a,i,l,u,h,f,y}(),H=function(){return s((function e(){t(this,e)}),null,[{key:"isGateExists",value:function(e){return this.client.isGateExist(e)}},{key:"isExperimentExists",value:function(e){return this.client.isExperimentExist(e)}}])}();J=H,c(H,"client",new X),c(H,"hasCheckGateErrorOccurred",!1),c(H,"hasGetExperimentValueErrorOccurred",!1),c(H,"checkGate",(function(e,t){try{if(window&&window.__CRITERION__&&"function"==typeof window.__CRITERION__.getFeatureFlagOverride){var r=window.__CRITERION__.getFeatureFlagOverride(e);if(void 0!==r)return r}}catch(t){J.hasCheckGateErrorOccurred||(console.warn({msg:"An error has occurred checking the feature gate from criterion override. Only the first occurrence of this error is logged.",gateName:e,error:t}),J.hasCheckGateErrorOccurred=!0)}return J.client.checkGate(e,t)})),c(H,"getExperimentValue",(function(e,t,r,n){try{if("undefined"!=typeof window&&window.__CRITERION__&&"function"==typeof window.__CRITERION__.getExperimentValueOverride){var o=window.__CRITERION__.getExperimentValueOverride(e,t);if(null!=o)return o}}catch(t){if(!J.hasCheckGateErrorOccurred)return J.hasGetExperimentValueErrorOccurred||(console.warn({msg:"An error has occurred getting the experiment value from criterion override. Only the first occurrence of this error is logged.",experimentName:e,defaultValue:r,options:n,error:t}),J.hasGetExperimentValueErrorOccurred=!0),r}return J.client.getExperimentValue(e,t,r,n)})),c(H,"initializeCalled",J.client.initializeCalled.bind(J.client)),c(H,"initializeCompleted",J.client.initializeCompleted.bind(J.client)),c(H,"initialize",J.client.initialize.bind(J.client)),c(H,"initializeWithProvider",J.client.initializeWithProvider.bind(J.client)),c(H,"initializeFromValues",J.client.initializeFromValues.bind(J.client)),c(H,"manuallyLogGateExposure",J.client.manuallyLogGateExposure.bind(J.client)),c(H,"getExperiment",J.client.getExperiment.bind(J.client)),c(H,"manuallyLogExperimentExposure",J.client.manuallyLogExperimentExposure.bind(J.client)),c(H,"manuallyLogLayerExposure",J.client.manuallyLogLayerExposure.bind(J.client)),c(H,"shutdownStatsig",J.client.shutdownStatsig.bind(J.client)),c(H,"overrideGate",J.client.overrideGate.bind(J.client)),c(H,"clearGateOverride",J.client.clearGateOverride.bind(J.client)),c(H,"overrideConfig",J.client.overrideConfig.bind(J.client)),c(H,"clearConfigOverride",J.client.clearConfigOverride.bind(J.client)),c(H,"setOverrides",J.client.setOverrides.bind(J.client)),c(H,"getOverrides",J.client.getOverrides.bind(J.client)),c(H,"clearAllOverrides",J.client.clearAllOverrides.bind(J.client)),c(H,"isCurrentUser",J.client.isCurrentUser.bind(J.client)),c(H,"onGateUpdated",J.client.onGateUpdated.bind(J.client)),c(H,"onExperimentValueUpdated",J.client.onExperimentValueUpdated.bind(J.client)),c(H,"onAnyUpdated",J.client.onAnyUpdated.bind(J.client)),c(H,"updateUser",J.client.updateUser.bind(J.client)),c(H,"updateUserWithProvider",J.client.updateUserWithProvider.bind(J.client)),c(H,"updateUserWithValues",J.client.updateUserWithValues.bind(J.client)),c(H,"getPackageVersion",J.client.getPackageVersion.bind(J.client)),c(H,"getLayer",J.client.getLayer.bind(J.client)),c(H,"getLayerValue",J.client.getLayerValue.bind(J.client));var Q=H;if("undefined"!=typeof window)if(void 0===window.__FEATUREGATES_JS__)window.__FEATUREGATES_JS__=H;else{var Z,$,ee=(null===(Z=Q=window.__FEATUREGATES_JS__)||void 0===Z||null===($=Z.getPackageVersion)||void 0===$?void 0:$.call(Z))||"4.10.0 or earlier";if(ee!==O){var te="Multiple versions of FeatureGateClients found on the current page.\n The currently bound version is ".concat(ee," when module version ").concat(O," was loading.");console.warn(te)}}const re=Q;var ne,oe,ae=!(void 0!==(null===globalThis||void 0===globalThis||null===(ne=globalThis.process)||void 0===ne||null===(ne=ne.env)||void 0===ne?void 0:ne.JEST_WORKER_ID))&&"production"!==(null===globalThis||void 0===globalThis||null===(oe=globalThis.process)||void 0===oe||null===(oe=oe.env)||void 0===oe?void 0:oe.NODE_ENV),ie="__PLATFORM_FEATURE_FLAGS__",se="undefined"!=typeof process&&!0,ce=!!se&&"true"==={NODE_ENV:"production"}.ENABLE_PLATFORM_FF||!!se&&"true"==={NODE_ENV:"production"}.STORYBOOK_ENABLE_PLATFORM_FF,le={earlyResolvedFlags:new Map,booleanResolver:function(e){return!1}},ue="undefined"!=typeof window?window:globalThis;function de(e){if(ce)return function(){var e;ae&&(e=console).debug.apply(e,arguments)}('[%s]: The feature flags were enabled while running tests. The flag "%s" will be always enabled.',"@atlaskit/platform-feature-flags",e),!0;try{var t,r,n;if(void 0===(null===(t=ue[ie])||void 0===t?void 0:t.booleanResolver)||null===(null===(r=ue[ie])||void 0===r?void 0:r.booleanResolver))return re.checkGate(e);var o=null===(n=ue[ie])||void 0===n?void 0:n.booleanResolver(e);return"boolean"!=typeof o?(console.warn("".concat(e," resolved to a non-boolean value, returning false for safety")),!1):o}catch(e){return!1}}function he(e){return de(e)}ue[ie]=ue[ie]||le;var pe=["light","dark","auto"],fe=["light-increased-contrast","light","light-future","light-brand-refresh","dark","dark-future","dark-increased-contrast","dark-brand-refresh","legacy-light","legacy-dark","spacing","shape","typography-adg3","typography-modernized","typography-refreshed"],ge=[].concat(fe,[]),be={colorMode:"auto",contrastMode:"auto",dark:"dark",light:"light",shape:void 0,spacing:"spacing",typography:function(){if(he("platform-default-typography-modernized"))return"typography-modernized"},UNSAFE_themeOptions:void 0};const ve={"atlassian-light":{id:"light",displayName:"Light Theme",palette:"defaultPalette",attributes:{type:"color",mode:"light"}},"atlassian-light-future":{id:"light-future",displayName:"Future Light Theme",palette:"defaultPalette",attributes:{type:"color",mode:"light"},override:"light"},"atlassian-light-increased-contrast":{id:"light-increased-contrast",displayName:"Light Theme (increased contrast)",palette:"defaultPalette",attributes:{type:"color",mode:"light"},extends:"light",increasesContrastFor:"light"},"atlassian-dark":{id:"dark",displayName:"Dark Theme",palette:"defaultPalette",attributes:{type:"color",mode:"dark"}},"atlassian-dark-future":{id:"dark-future",displayName:"Future Dark Theme",palette:"defaultPalette",attributes:{type:"color",mode:"dark"},override:"light"},"atlassian-dark-increased-contrast":{id:"dark-increased-contrast",displayName:"Dark Theme (increased contrast)",palette:"defaultPalette",attributes:{type:"color",mode:"dark"},extends:"dark",increasesContrastFor:"dark"},"atlassian-legacy-light":{id:"legacy-light",displayName:"Light Theme (legacy)",palette:"legacyPalette",attributes:{type:"color",mode:"light"}},"atlassian-legacy-dark":{id:"legacy-dark",displayName:"Dark Theme (legacy)",palette:"legacyPalette",attributes:{type:"color",mode:"dark"}},"atlassian-spacing":{id:"spacing",displayName:"Atlassian Spacing",palette:"spacingScale",attributes:{type:"spacing"}},"atlassian-typography-adg3":{id:"typography-adg3",displayName:"ADG3 Typography",palette:"typographyPalette",attributes:{type:"typography"}},"atlassian-shape":{id:"shape",displayName:"Atlassian Shape",palette:"shapePalette",attributes:{type:"shape"}},"atlassian-typography-modernized":{id:"typography-modernized",displayName:"Atlassian Typography (Modernized)",palette:"typographyPalette",attributes:{type:"typography"}},"atlassian-typography-refreshed":{id:"typography-refreshed",displayName:"Atlassian Typography (Refreshed)",palette:"typographyPalette",attributes:{type:"typography"}},"atlassian-light-brand-refresh":{id:"light-brand-refresh",displayName:"Light theme (Brand refresh)",palette:"brandRefreshPalette",attributes:{type:"color",mode:"light"}},"atlassian-dark-brand-refresh":{id:"dark-brand-refresh",displayName:"Dark theme (Brand refresh)",palette:"brandRefreshPalette",attributes:{type:"color",mode:"dark"}}};const ye={"color.text":"--ds-text","color.text.accent.lime":"--ds-text-accent-lime","color.text.accent.lime.bolder":"--ds-text-accent-lime-bolder","color.text.accent.red":"--ds-text-accent-red","color.text.accent.red.bolder":"--ds-text-accent-red-bolder","color.text.accent.orange":"--ds-text-accent-orange","color.text.accent.orange.bolder":"--ds-text-accent-orange-bolder","color.text.accent.yellow":"--ds-text-accent-yellow","color.text.accent.yellow.bolder":"--ds-text-accent-yellow-bolder","color.text.accent.green":"--ds-text-accent-green","color.text.accent.green.bolder":"--ds-text-accent-green-bolder","color.text.accent.teal":"--ds-text-accent-teal","color.text.accent.teal.bolder":"--ds-text-accent-teal-bolder","color.text.accent.blue":"--ds-text-accent-blue","color.text.accent.blue.bolder":"--ds-text-accent-blue-bolder","color.text.accent.purple":"--ds-text-accent-purple","color.text.accent.purple.bolder":"--ds-text-accent-purple-bolder","color.text.accent.magenta":"--ds-text-accent-magenta","color.text.accent.magenta.bolder":"--ds-text-accent-magenta-bolder","color.text.accent.gray":"--ds-text-accent-gray","color.text.accent.gray.bolder":"--ds-text-accent-gray-bolder","color.text.disabled":"--ds-text-disabled","color.text.inverse":"--ds-text-inverse","color.text.selected":"--ds-text-selected","color.text.brand":"--ds-text-brand","color.text.danger":"--ds-text-danger","color.text.warning":"--ds-text-warning","color.text.warning.inverse":"--ds-text-warning-inverse","color.text.success":"--ds-text-success","color.text.discovery":"--ds-text-discovery","color.text.information":"--ds-text-information","color.text.subtlest":"--ds-text-subtlest","color.text.subtle":"--ds-text-subtle","color.link":"--ds-link","color.link.pressed":"--ds-link-pressed","color.link.visited":"--ds-link-visited","color.link.visited.pressed":"--ds-link-visited-pressed","color.icon":"--ds-icon","color.icon.accent.lime":"--ds-icon-accent-lime","color.icon.accent.red":"--ds-icon-accent-red","color.icon.accent.orange":"--ds-icon-accent-orange","color.icon.accent.yellow":"--ds-icon-accent-yellow","color.icon.accent.green":"--ds-icon-accent-green","color.icon.accent.teal":"--ds-icon-accent-teal","color.icon.accent.blue":"--ds-icon-accent-blue","color.icon.accent.purple":"--ds-icon-accent-purple","color.icon.accent.magenta":"--ds-icon-accent-magenta","color.icon.accent.gray":"--ds-icon-accent-gray","color.icon.disabled":"--ds-icon-disabled","color.icon.inverse":"--ds-icon-inverse","color.icon.selected":"--ds-icon-selected","color.icon.brand":"--ds-icon-brand","color.icon.danger":"--ds-icon-danger","color.icon.warning":"--ds-icon-warning","color.icon.warning.inverse":"--ds-icon-warning-inverse","color.icon.success":"--ds-icon-success","color.icon.discovery":"--ds-icon-discovery","color.icon.information":"--ds-icon-information","color.icon.subtlest":"--ds-icon-subtlest","color.icon.subtle":"--ds-icon-subtle","color.border":"--ds-border","color.border.accent.lime":"--ds-border-accent-lime","color.border.accent.red":"--ds-border-accent-red","color.border.accent.orange":"--ds-border-accent-orange","color.border.accent.yellow":"--ds-border-accent-yellow","color.border.accent.green":"--ds-border-accent-green","color.border.accent.teal":"--ds-border-accent-teal","color.border.accent.blue":"--ds-border-accent-blue","color.border.accent.purple":"--ds-border-accent-purple","color.border.accent.magenta":"--ds-border-accent-magenta","color.border.accent.gray":"--ds-border-accent-gray","color.border.disabled":"--ds-border-disabled","color.border.focused":"--ds-border-focused","color.border.input":"--ds-border-input","color.border.inverse":"--ds-border-inverse","color.border.selected":"--ds-border-selected","color.border.brand":"--ds-border-brand","color.border.danger":"--ds-border-danger","color.border.warning":"--ds-border-warning","color.border.success":"--ds-border-success","color.border.discovery":"--ds-border-discovery","color.border.information":"--ds-border-information","color.border.bold":"--ds-border-bold","color.background.accent.lime.subtlest":"--ds-background-accent-lime-subtlest","color.background.accent.lime.subtlest.hovered":"--ds-background-accent-lime-subtlest-hovered","color.background.accent.lime.subtlest.pressed":"--ds-background-accent-lime-subtlest-pressed","color.background.accent.lime.subtler":"--ds-background-accent-lime-subtler","color.background.accent.lime.subtler.hovered":"--ds-background-accent-lime-subtler-hovered","color.background.accent.lime.subtler.pressed":"--ds-background-accent-lime-subtler-pressed","color.background.accent.lime.subtle":"--ds-background-accent-lime-subtle","color.background.accent.lime.subtle.hovered":"--ds-background-accent-lime-subtle-hovered","color.background.accent.lime.subtle.pressed":"--ds-background-accent-lime-subtle-pressed","color.background.accent.lime.bolder":"--ds-background-accent-lime-bolder","color.background.accent.lime.bolder.hovered":"--ds-background-accent-lime-bolder-hovered","color.background.accent.lime.bolder.pressed":"--ds-background-accent-lime-bolder-pressed","color.background.accent.red.subtlest":"--ds-background-accent-red-subtlest","color.background.accent.red.subtlest.hovered":"--ds-background-accent-red-subtlest-hovered","color.background.accent.red.subtlest.pressed":"--ds-background-accent-red-subtlest-pressed","color.background.accent.red.subtler":"--ds-background-accent-red-subtler","color.background.accent.red.subtler.hovered":"--ds-background-accent-red-subtler-hovered","color.background.accent.red.subtler.pressed":"--ds-background-accent-red-subtler-pressed","color.background.accent.red.subtle":"--ds-background-accent-red-subtle","color.background.accent.red.subtle.hovered":"--ds-background-accent-red-subtle-hovered","color.background.accent.red.subtle.pressed":"--ds-background-accent-red-subtle-pressed","color.background.accent.red.bolder":"--ds-background-accent-red-bolder","color.background.accent.red.bolder.hovered":"--ds-background-accent-red-bolder-hovered","color.background.accent.red.bolder.pressed":"--ds-background-accent-red-bolder-pressed","color.background.accent.orange.subtlest":"--ds-background-accent-orange-subtlest","color.background.accent.orange.subtlest.hovered":"--ds-background-accent-orange-subtlest-hovered","color.background.accent.orange.subtlest.pressed":"--ds-background-accent-orange-subtlest-pressed","color.background.accent.orange.subtler":"--ds-background-accent-orange-subtler","color.background.accent.orange.subtler.hovered":"--ds-background-accent-orange-subtler-hovered","color.background.accent.orange.subtler.pressed":"--ds-background-accent-orange-subtler-pressed","color.background.accent.orange.subtle":"--ds-background-accent-orange-subtle","color.background.accent.orange.subtle.hovered":"--ds-background-accent-orange-subtle-hovered","color.background.accent.orange.subtle.pressed":"--ds-background-accent-orange-subtle-pressed","color.background.accent.orange.bolder":"--ds-background-accent-orange-bolder","color.background.accent.orange.bolder.hovered":"--ds-background-accent-orange-bolder-hovered","color.background.accent.orange.bolder.pressed":"--ds-background-accent-orange-bolder-pressed","color.background.accent.yellow.subtlest":"--ds-background-accent-yellow-subtlest","color.background.accent.yellow.subtlest.hovered":"--ds-background-accent-yellow-subtlest-hovered","color.background.accent.yellow.subtlest.pressed":"--ds-background-accent-yellow-subtlest-pressed","color.background.accent.yellow.subtler":"--ds-background-accent-yellow-subtler","color.background.accent.yellow.subtler.hovered":"--ds-background-accent-yellow-subtler-hovered","color.background.accent.yellow.subtler.pressed":"--ds-background-accent-yellow-subtler-pressed","color.background.accent.yellow.subtle":"--ds-background-accent-yellow-subtle","color.background.accent.yellow.subtle.hovered":"--ds-background-accent-yellow-subtle-hovered","color.background.accent.yellow.subtle.pressed":"--ds-background-accent-yellow-subtle-pressed","color.background.accent.yellow.bolder":"--ds-background-accent-yellow-bolder","color.background.accent.yellow.bolder.hovered":"--ds-background-accent-yellow-bolder-hovered","color.background.accent.yellow.bolder.pressed":"--ds-background-accent-yellow-bolder-pressed","color.background.accent.green.subtlest":"--ds-background-accent-green-subtlest","color.background.accent.green.subtlest.hovered":"--ds-background-accent-green-subtlest-hovered","color.background.accent.green.subtlest.pressed":"--ds-background-accent-green-subtlest-pressed","color.background.accent.green.subtler":"--ds-background-accent-green-subtler","color.background.accent.green.subtler.hovered":"--ds-background-accent-green-subtler-hovered","color.background.accent.green.subtler.pressed":"--ds-background-accent-green-subtler-pressed","color.background.accent.green.subtle":"--ds-background-accent-green-subtle","color.background.accent.green.subtle.hovered":"--ds-background-accent-green-subtle-hovered","color.background.accent.green.subtle.pressed":"--ds-background-accent-green-subtle-pressed","color.background.accent.green.bolder":"--ds-background-accent-green-bolder","color.background.accent.green.bolder.hovered":"--ds-background-accent-green-bolder-hovered","color.background.accent.green.bolder.pressed":"--ds-background-accent-green-bolder-pressed","color.background.accent.teal.subtlest":"--ds-background-accent-teal-subtlest","color.background.accent.teal.subtlest.hovered":"--ds-background-accent-teal-subtlest-hovered","color.background.accent.teal.subtlest.pressed":"--ds-background-accent-teal-subtlest-pressed","color.background.accent.teal.subtler":"--ds-background-accent-teal-subtler","color.background.accent.teal.subtler.hovered":"--ds-background-accent-teal-subtler-hovered","color.background.accent.teal.subtler.pressed":"--ds-background-accent-teal-subtler-pressed","color.background.accent.teal.subtle":"--ds-background-accent-teal-subtle","color.background.accent.teal.subtle.hovered":"--ds-background-accent-teal-subtle-hovered","color.background.accent.teal.subtle.pressed":"--ds-background-accent-teal-subtle-pressed","color.background.accent.teal.bolder":"--ds-background-accent-teal-bolder","color.background.accent.teal.bolder.hovered":"--ds-background-accent-teal-bolder-hovered","color.background.accent.teal.bolder.pressed":"--ds-background-accent-teal-bolder-pressed","color.background.accent.blue.subtlest":"--ds-background-accent-blue-subtlest","color.background.accent.blue.subtlest.hovered":"--ds-background-accent-blue-subtlest-hovered","color.background.accent.blue.subtlest.pressed":"--ds-background-accent-blue-subtlest-pressed","color.background.accent.blue.subtler":"--ds-background-accent-blue-subtler","color.background.accent.blue.subtler.hovered":"--ds-background-accent-blue-subtler-hovered","color.background.accent.blue.subtler.pressed":"--ds-background-accent-blue-subtler-pressed","color.background.accent.blue.subtle":"--ds-background-accent-blue-subtle","color.background.accent.blue.subtle.hovered":"--ds-background-accent-blue-subtle-hovered","color.background.accent.blue.subtle.pressed":"--ds-background-accent-blue-subtle-pressed","color.background.accent.blue.bolder":"--ds-background-accent-blue-bolder","color.background.accent.blue.bolder.hovered":"--ds-background-accent-blue-bolder-hovered","color.background.accent.blue.bolder.pressed":"--ds-background-accent-blue-bolder-pressed","color.background.accent.purple.subtlest":"--ds-background-accent-purple-subtlest","color.background.accent.purple.subtlest.hovered":"--ds-background-accent-purple-subtlest-hovered","color.background.accent.purple.subtlest.pressed":"--ds-background-accent-purple-subtlest-pressed","color.background.accent.purple.subtler":"--ds-background-accent-purple-subtler","color.background.accent.purple.subtler.hovered":"--ds-background-accent-purple-subtler-hovered","color.background.accent.purple.subtler.pressed":"--ds-background-accent-purple-subtler-pressed","color.background.accent.purple.subtle":"--ds-background-accent-purple-subtle","color.background.accent.purple.subtle.hovered":"--ds-background-accent-purple-subtle-hovered","color.background.accent.purple.subtle.pressed":"--ds-background-accent-purple-subtle-pressed","color.background.accent.purple.bolder":"--ds-background-accent-purple-bolder","color.background.accent.purple.bolder.hovered":"--ds-background-accent-purple-bolder-hovered","color.background.accent.purple.bolder.pressed":"--ds-background-accent-purple-bolder-pressed","color.background.accent.magenta.subtlest":"--ds-background-accent-magenta-subtlest","color.background.accent.magenta.subtlest.hovered":"--ds-background-accent-magenta-subtlest-hovered","color.background.accent.magenta.subtlest.pressed":"--ds-background-accent-magenta-subtlest-pressed","color.background.accent.magenta.subtler":"--ds-background-accent-magenta-subtler","color.background.accent.magenta.subtler.hovered":"--ds-background-accent-magenta-subtler-hovered","color.background.accent.magenta.subtler.pressed":"--ds-background-accent-magenta-subtler-pressed","color.background.accent.magenta.subtle":"--ds-background-accent-magenta-subtle","color.background.accent.magenta.subtle.hovered":"--ds-background-accent-magenta-subtle-hovered","color.background.accent.magenta.subtle.pressed":"--ds-background-accent-magenta-subtle-pressed","color.background.accent.magenta.bolder":"--ds-background-accent-magenta-bolder","color.background.accent.magenta.bolder.hovered":"--ds-background-accent-magenta-bolder-hovered","color.background.accent.magenta.bolder.pressed":"--ds-background-accent-magenta-bolder-pressed","color.background.accent.gray.subtlest":"--ds-background-accent-gray-subtlest","color.background.accent.gray.subtlest.hovered":"--ds-background-accent-gray-subtlest-hovered","color.background.accent.gray.subtlest.pressed":"--ds-background-accent-gray-subtlest-pressed","color.background.accent.gray.subtler":"--ds-background-accent-gray-subtler","color.background.accent.gray.subtler.hovered":"--ds-background-accent-gray-subtler-hovered","color.background.accent.gray.subtler.pressed":"--ds-background-accent-gray-subtler-pressed","color.background.accent.gray.subtle":"--ds-background-accent-gray-subtle","color.background.accent.gray.subtle.hovered":"--ds-background-accent-gray-subtle-hovered","color.background.accent.gray.subtle.pressed":"--ds-background-accent-gray-subtle-pressed","color.background.accent.gray.bolder":"--ds-background-accent-gray-bolder","color.background.accent.gray.bolder.hovered":"--ds-background-accent-gray-bolder-hovered","color.background.accent.gray.bolder.pressed":"--ds-background-accent-gray-bolder-pressed","color.background.disabled":"--ds-background-disabled","color.background.input":"--ds-background-input","color.background.input.hovered":"--ds-background-input-hovered","color.background.input.pressed":"--ds-background-input-pressed","color.background.inverse.subtle":"--ds-background-inverse-subtle","color.background.inverse.subtle.hovered":"--ds-background-inverse-subtle-hovered","color.background.inverse.subtle.pressed":"--ds-background-inverse-subtle-pressed","color.background.neutral":"--ds-background-neutral","color.background.neutral.hovered":"--ds-background-neutral-hovered","color.background.neutral.pressed":"--ds-background-neutral-pressed","color.background.neutral.subtle":"--ds-background-neutral-subtle","color.background.neutral.subtle.hovered":"--ds-background-neutral-subtle-hovered","color.background.neutral.subtle.pressed":"--ds-background-neutral-subtle-pressed","color.background.neutral.bold":"--ds-background-neutral-bold","color.background.neutral.bold.hovered":"--ds-background-neutral-bold-hovered","color.background.neutral.bold.pressed":"--ds-background-neutral-bold-pressed","color.background.selected":"--ds-background-selected","color.background.selected.hovered":"--ds-background-selected-hovered","color.background.selected.pressed":"--ds-background-selected-pressed","color.background.selected.bold":"--ds-background-selected-bold","color.background.selected.bold.hovered":"--ds-background-selected-bold-hovered","color.background.selected.bold.pressed":"--ds-background-selected-bold-pressed","color.background.brand.subtlest":"--ds-background-brand-subtlest","color.background.brand.subtlest.hovered":"--ds-background-brand-subtlest-hovered","color.background.brand.subtlest.pressed":"--ds-background-brand-subtlest-pressed","color.background.brand.bold":"--ds-background-brand-bold","color.background.brand.bold.hovered":"--ds-background-brand-bold-hovered","color.background.brand.bold.pressed":"--ds-background-brand-bold-pressed","color.background.brand.boldest":"--ds-background-brand-boldest","color.background.brand.boldest.hovered":"--ds-background-brand-boldest-hovered","color.background.brand.boldest.pressed":"--ds-background-brand-boldest-pressed","color.background.danger":"--ds-background-danger","color.background.danger.hovered":"--ds-background-danger-hovered","color.background.danger.pressed":"--ds-background-danger-pressed","color.background.danger.bold":"--ds-background-danger-bold","color.background.danger.bold.hovered":"--ds-background-danger-bold-hovered","color.background.danger.bold.pressed":"--ds-background-danger-bold-pressed","color.background.warning":"--ds-background-warning","color.background.warning.hovered":"--ds-background-warning-hovered","color.background.warning.pressed":"--ds-background-warning-pressed","color.background.warning.bold":"--ds-background-warning-bold","color.background.warning.bold.hovered":"--ds-background-warning-bold-hovered","color.background.warning.bold.pressed":"--ds-background-warning-bold-pressed","color.background.success":"--ds-background-success","color.background.success.hovered":"--ds-background-success-hovered","color.background.success.pressed":"--ds-background-success-pressed","color.background.success.bold":"--ds-background-success-bold","color.background.success.bold.hovered":"--ds-background-success-bold-hovered","color.background.success.bold.pressed":"--ds-background-success-bold-pressed","color.background.discovery":"--ds-background-discovery","color.background.discovery.hovered":"--ds-background-discovery-hovered","color.background.discovery.pressed":"--ds-background-discovery-pressed","color.background.discovery.bold":"--ds-background-discovery-bold","color.background.discovery.bold.hovered":"--ds-background-discovery-bold-hovered","color.background.discovery.bold.pressed":"--ds-background-discovery-bold-pressed","color.background.information":"--ds-background-information","color.background.information.hovered":"--ds-background-information-hovered","color.background.information.pressed":"--ds-background-information-pressed","color.background.information.bold":"--ds-background-information-bold","color.background.information.bold.hovered":"--ds-background-information-bold-hovered","color.background.information.bold.pressed":"--ds-background-information-bold-pressed","color.blanket":"--ds-blanket","color.blanket.selected":"--ds-blanket-selected","color.blanket.danger":"--ds-blanket-danger","color.interaction.hovered":"--ds-interaction-hovered","color.interaction.pressed":"--ds-interaction-pressed","color.skeleton":"--ds-skeleton","color.skeleton.subtle":"--ds-skeleton-subtle","color.chart.categorical.1":"--ds-chart-categorical-1","color.chart.categorical.1.hovered":"--ds-chart-categorical-1-hovered","color.chart.categorical.2":"--ds-chart-categorical-2","color.chart.categorical.2.hovered":"--ds-chart-categorical-2-hovered","color.chart.categorical.3":"--ds-chart-categorical-3","color.chart.categorical.3.hovered":"--ds-chart-categorical-3-hovered","color.chart.categorical.4":"--ds-chart-categorical-4","color.chart.categorical.4.hovered":"--ds-chart-categorical-4-hovered","color.chart.categorical.5":"--ds-chart-categorical-5","color.chart.categorical.5.hovered":"--ds-chart-categorical-5-hovered","color.chart.categorical.6":"--ds-chart-categorical-6","color.chart.categorical.6.hovered":"--ds-chart-categorical-6-hovered","color.chart.categorical.7":"--ds-chart-categorical-7","color.chart.categorical.7.hovered":"--ds-chart-categorical-7-hovered","color.chart.categorical.8":"--ds-chart-categorical-8","color.chart.categorical.8.hovered":"--ds-chart-categorical-8-hovered","color.chart.lime.bold":"--ds-chart-lime-bold","color.chart.lime.bold.hovered":"--ds-chart-lime-bold-hovered","color.chart.lime.bolder":"--ds-chart-lime-bolder","color.chart.lime.bolder.hovered":"--ds-chart-lime-bolder-hovered","color.chart.lime.boldest":"--ds-chart-lime-boldest","color.chart.lime.boldest.hovered":"--ds-chart-lime-boldest-hovered","color.chart.neutral":"--ds-chart-neutral","color.chart.neutral.hovered":"--ds-chart-neutral-hovered","color.chart.red.bold":"--ds-chart-red-bold","color.chart.red.bold.hovered":"--ds-chart-red-bold-hovered","color.chart.red.bolder":"--ds-chart-red-bolder","color.chart.red.bolder.hovered":"--ds-chart-red-bolder-hovered","color.chart.red.boldest":"--ds-chart-red-boldest","color.chart.red.boldest.hovered":"--ds-chart-red-boldest-hovered","color.chart.orange.bold":"--ds-chart-orange-bold","color.chart.orange.bold.hovered":"--ds-chart-orange-bold-hovered","color.chart.orange.bolder":"--ds-chart-orange-bolder","color.chart.orange.bolder.hovered":"--ds-chart-orange-bolder-hovered","color.chart.orange.boldest":"--ds-chart-orange-boldest","color.chart.orange.boldest.hovered":"--ds-chart-orange-boldest-hovered","color.chart.yellow.bold":"--ds-chart-yellow-bold","color.chart.yellow.bold.hovered":"--ds-chart-yellow-bold-hovered","color.chart.yellow.bolder":"--ds-chart-yellow-bolder","color.chart.yellow.bolder.hovered":"--ds-chart-yellow-bolder-hovered","color.chart.yellow.boldest":"--ds-chart-yellow-boldest","color.chart.yellow.boldest.hovered":"--ds-chart-yellow-boldest-hovered","color.chart.green.bold":"--ds-chart-green-bold","color.chart.green.bold.hovered":"--ds-chart-green-bold-hovered","color.chart.green.bolder":"--ds-chart-green-bolder","color.chart.green.bolder.hovered":"--ds-chart-green-bolder-hovered","color.chart.green.boldest":"--ds-chart-green-boldest","color.chart.green.boldest.hovered":"--ds-chart-green-boldest-hovered","color.chart.teal.bold":"--ds-chart-teal-bold","color.chart.teal.bold.hovered":"--ds-chart-teal-bold-hovered","color.chart.teal.bolder":"--ds-chart-teal-bolder","color.chart.teal.bolder.hovered":"--ds-chart-teal-bolder-hovered","color.chart.teal.boldest":"--ds-chart-teal-boldest","color.chart.teal.boldest.hovered":"--ds-chart-teal-boldest-hovered","color.chart.blue.bold":"--ds-chart-blue-bold","color.chart.blue.bold.hovered":"--ds-chart-blue-bold-hovered","color.chart.blue.bolder":"--ds-chart-blue-bolder","color.chart.blue.bolder.hovered":"--ds-chart-blue-bolder-hovered","color.chart.blue.boldest":"--ds-chart-blue-boldest","color.chart.blue.boldest.hovered":"--ds-chart-blue-boldest-hovered","color.chart.purple.bold":"--ds-chart-purple-bold","color.chart.purple.bold.hovered":"--ds-chart-purple-bold-hovered","color.chart.purple.bolder":"--ds-chart-purple-bolder","color.chart.purple.bolder.hovered":"--ds-chart-purple-bolder-hovered","color.chart.purple.boldest":"--ds-chart-purple-boldest","color.chart.purple.boldest.hovered":"--ds-chart-purple-boldest-hovered","color.chart.magenta.bold":"--ds-chart-magenta-bold","color.chart.magenta.bold.hovered":"--ds-chart-magenta-bold-hovered","color.chart.magenta.bolder":"--ds-chart-magenta-bolder","color.chart.magenta.bolder.hovered":"--ds-chart-magenta-bolder-hovered","color.chart.magenta.boldest":"--ds-chart-magenta-boldest","color.chart.magenta.boldest.hovered":"--ds-chart-magenta-boldest-hovered","color.chart.gray.bold":"--ds-chart-gray-bold","color.chart.gray.bold.hovered":"--ds-chart-gray-bold-hovered","color.chart.gray.bolder":"--ds-chart-gray-bolder","color.chart.gray.bolder.hovered":"--ds-chart-gray-bolder-hovered","color.chart.gray.boldest":"--ds-chart-gray-boldest","color.chart.gray.boldest.hovered":"--ds-chart-gray-boldest-hovered","color.chart.brand":"--ds-chart-brand","color.chart.brand.hovered":"--ds-chart-brand-hovered","color.chart.danger":"--ds-chart-danger","color.chart.danger.hovered":"--ds-chart-danger-hovered","color.chart.danger.bold":"--ds-chart-danger-bold","color.chart.danger.bold.hovered":"--ds-chart-danger-bold-hovered","color.chart.warning":"--ds-chart-warning","color.chart.warning.hovered":"--ds-chart-warning-hovered","color.chart.warning.bold":"--ds-chart-warning-bold","color.chart.warning.bold.hovered":"--ds-chart-warning-bold-hovered","color.chart.success":"--ds-chart-success","color.chart.success.hovered":"--ds-chart-success-hovered","color.chart.success.bold":"--ds-chart-success-bold","color.chart.success.bold.hovered":"--ds-chart-success-bold-hovered","color.chart.discovery":"--ds-chart-discovery","color.chart.discovery.hovered":"--ds-chart-discovery-hovered","color.chart.discovery.bold":"--ds-chart-discovery-bold","color.chart.discovery.bold.hovered":"--ds-chart-discovery-bold-hovered","color.chart.information":"--ds-chart-information","color.chart.information.hovered":"--ds-chart-information-hovered","color.chart.information.bold":"--ds-chart-information-bold","color.chart.information.bold.hovered":"--ds-chart-information-bold-hovered","elevation.surface":"--ds-surface","elevation.surface.hovered":"--ds-surface-hovered","elevation.surface.pressed":"--ds-surface-pressed","elevation.surface.overlay":"--ds-surface-overlay","elevation.surface.overlay.hovered":"--ds-surface-overlay-hovered","elevation.surface.overlay.pressed":"--ds-surface-overlay-pressed","elevation.surface.raised":"--ds-surface-raised","elevation.surface.raised.hovered":"--ds-surface-raised-hovered","elevation.surface.raised.pressed":"--ds-surface-raised-pressed","elevation.surface.sunken":"--ds-surface-sunken","elevation.shadow.overflow":"--ds-shadow-overflow","elevation.shadow.overflow.perimeter":"--ds-shadow-overflow-perimeter","elevation.shadow.overflow.spread":"--ds-shadow-overflow-spread","elevation.shadow.overlay":"--ds-shadow-overlay","elevation.shadow.raised":"--ds-shadow-raised","opacity.disabled":"--ds-opacity-disabled","opacity.loading":"--ds-opacity-loading","utility.UNSAFE.textTransformUppercase":"--ds-UNSAFE-textTransformUppercase","utility.UNSAFE.transparent":"--ds-UNSAFE-transparent","utility.elevation.surface.current":"--ds-elevation-surface-current","border.radius.050":"--ds-border-radius-050","border.radius":"--ds-border-radius","border.radius.100":"--ds-border-radius-100","border.radius.200":"--ds-border-radius-200","border.radius.300":"--ds-border-radius-300","border.radius.400":"--ds-border-radius-400","border.radius.circle":"--ds-border-radius-circle","border.width":"--ds-border-width","border.width.0":"--ds-border-width-0","border.width.indicator":"--ds-border-width-indicator","border.width.outline":"--ds-border-width-outline","space.0":"--ds-space-0","space.025":"--ds-space-025","space.050":"--ds-space-050","space.075":"--ds-space-075","space.100":"--ds-space-100","space.150":"--ds-space-150","space.200":"--ds-space-200","space.250":"--ds-space-250","space.300":"--ds-space-300","space.400":"--ds-space-400","space.500":"--ds-space-500","space.600":"--ds-space-600","space.800":"--ds-space-800","space.1000":"--ds-space-1000","space.negative.025":"--ds-space-negative-025","space.negative.050":"--ds-space-negative-050","space.negative.075":"--ds-space-negative-075","space.negative.100":"--ds-space-negative-100","space.negative.150":"--ds-space-negative-150","space.negative.200":"--ds-space-negative-200","space.negative.250":"--ds-space-negative-250","space.negative.300":"--ds-space-negative-300","space.negative.400":"--ds-space-negative-400","font.heading.xxlarge":"--ds-font-heading-xxlarge","font.heading.xlarge":"--ds-font-heading-xlarge","font.heading.large":"--ds-font-heading-large","font.heading.medium":"--ds-font-heading-medium","font.heading.small":"--ds-font-heading-small","font.heading.xsmall":"--ds-font-heading-xsmall","font.heading.xxsmall":"--ds-font-heading-xxsmall","font.body.large":"--ds-font-body-large","font.body":"--ds-font-body","font.body.small":"--ds-font-body-small","font.body.UNSAFE_small":"--ds-font-body-UNSAFE_small","font.code":"--ds-font-code","font.weight.regular":"--ds-font-weight-regular","font.weight.medium":"--ds-font-weight-medium","font.weight.semibold":"--ds-font-weight-semibold","font.weight.bold":"--ds-font-weight-bold","font.family.heading":"--ds-font-family-heading","font.family.body":"--ds-font-family-body","font.family.code":"--ds-font-family-code","font.family.brand.heading":"--ds-font-family-brand-heading","font.family.brand.body":"--ds-font-family-brand-body"};var me="data-theme",_e="data-color-mode",ke="data-contrast-mode",we="data-custom-theme",Ee="--".concat("ds","-token-not-found"),xe="--".concat("ds","-elevation-surface-current"),Oe=function(){var e=p(g().mark((function e(t,r){var n,o,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(o=null===(n=window)||void 0===n?void 0:n.analyticsWebClient)&&(a=!!document.querySelector("style[data-theme]"),o.sendEvent({type:"TRACK",payload:{action:"called_at_runtime",actionSubject:"token",source:"design-system",attributes:{url:window.location.href,token:t,fallback:r,isThemeEnabled:a}}}))}catch(e){console.error(e)}case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();const Se=function(e,t){he("platform-token-runtime-call-tracking")&&Oe(e,t);var r=ye[e];return r||(r=Ee),t?"var(".concat(r,", ").concat(t,")"):"var(".concat(r,")")};const Le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=ye[e],n=t;return"undefined"==typeof window?n:n=(n=window.getComputedStyle(document.documentElement).getPropertyValue(r).trim())||t};var Ae=function(e){return/^#[0-9A-F]{6}$/i.test(e)};var Ce=["light","dark","spacing","typography","shape"],Te="UNSAFE_themeOptions",Pe=function(e){return void 0!==Ce.find((function(t){return t===e}))},Ie=function(e){return void 0!==fe.find((function(t){return t===e}))},Me=function(e){return["light","dark","auto"].includes(e)},De=function(e){return e.split(" ").map((function(e){return e.split(/:([^]*)/)})).reduce((function(e,t){var r=d(t,2),n=r[0],o=r[1];if("colorMode"===n&&Me(o)&&(e[n]=o),Pe(n)&&Ie(o)&&(e[n]=o),n===Te)try{e[Te]=JSON.parse(o)}catch(e){new Error("Invalid custom theme string")}return e}),{})},je=function(e){return Object.entries(e).reduce((function(e,t){var n=d(t,2),o=n[0],a=n[1];return"colorMode"===o&&"string"==typeof a&&Me(a)||o===Te&&"object"===r(a)||Pe(o)&&"string"==typeof a&&Ie(a)?e+"".concat(e?" ":"")+"".concat(o,":").concat("object"===r(a)?JSON.stringify(a):a):e}),"")},Ue=function(e){for(var t=0,r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t&=t}return new Uint32Array([t])[0].toString(36)};function Ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ve(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.colorMode,r=void 0===t?be.colorMode:t,n=e.dark,o=void 0===n?be.dark:n,a=e.light,i=void 0===a?be.light:a,s=e.contrastMode,l=void 0===s?be.contrastMode:s,u=e.shape,d=void 0===u?be.shape:u,h=e.spacing,p=void 0===h?be.spacing:h,f=e.typography,g=void 0===f?be.typography():f,b=e.UNSAFE_themeOptions,v=void 0===b?be.UNSAFE_themeOptions:b,y=je({dark:o,light:i,shape:d,spacing:p,typography:g}),m=c(c({},me,y),_e,"auto"===r?"light":r);if(he("platform_increased-contrast-themes")&&(m=Ne(Ne({},m),{},c({},ke,"auto"===l?"no-preference":l))),v&&Ae(v.brandColor)){var _=JSON.stringify(v),k=Ue(_);m[we]=k}return m};var Re=o(833);const Fe={light:()=>o.e(381).then(o.bind(o,301)),"light-future":()=>o.e(567).then(o.bind(o,201)),dark:()=>o.e(479).then(o.bind(o,333)),"dark-future":()=>o.e(917).then(o.bind(o,294)),"legacy-light":()=>o.e(177).then(o.bind(o,19)),"legacy-dark":()=>o.e(915).then(o.bind(o,451)),spacing:()=>o.e(498).then(o.bind(o,520)),shape:()=>o.e(138).then(o.bind(o,416)),"typography-adg3":()=>o.e(592).then(o.bind(o,838)),"typography-modernized":()=>o.e(186).then(o.bind(o,956)),"typography-refreshed":()=>o.e(213).then(o.bind(o,203)),original:()=>Promise.resolve("")};var Ke=function(){var e=p(g().mark((function e(t){var r,n;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!document.head.querySelector("style[".concat(me,'="').concat(t,'"]:not([').concat(we,"])"))){e.next=2;break}return e.abrupt("return");case 2:if(t){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,ze(t);case 6:r=e.sent,(n=document.createElement("style")).textContent=r,n.dataset.theme=t,document.head.appendChild(n);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ze=function(){var e=p(g().mark((function e(t){var r,n;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"light"!==t&&"dark"!==t||!he("platform-component-visual-refresh")||(t+="-brand-refresh"),e.next=3,Fe[t]();case 3:return r=e.sent,n=r.default,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Be="(prefers-color-scheme: dark)",We="(prefers-contrast: more)";function qe(e){document.documentElement.setAttribute(_e,e.matches?"dark":"light")}var Je="undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia(Be);const Ye=new(function(){return s((function e(){t(this,e),c(this,"unbindThemeChangeListener",null)}),[{key:"getColorMode",value:function(){return Je&&null!=Je&&Je.matches?"dark":"light"}},{key:"bind",value:function(){Je&&null===this.unbindThemeChangeListener&&(this.unbindThemeChangeListener=(0,Re.bind)(Je,{type:"change",listener:qe}))}},{key:"unbind",value:function(){this.unbindThemeChangeListener&&(this.unbindThemeChangeListener(),this.unbindThemeChangeListener=null)}}])}());function Xe(e){document.documentElement.setAttribute(ke,e.matches?"more":"no-preference")}var He="undefined"!=typeof window&&"matchMedia"in window&&window.matchMedia(We);const Qe=new(function(){return s((function e(){t(this,e),c(this,"unbindContrastChangeListener",null)}),[{key:"getContrastMode",value:function(){return He&&null!=He&&He.matches?"more":"no-preference"}},{key:"bind",value:function(){He&&null===this.unbindContrastChangeListener&&(this.unbindContrastChangeListener=(0,Re.bind)(He,{type:"change",listener:Xe}))}},{key:"unbind",value:function(){this.unbindContrastChangeListener&&(this.unbindContrastChangeListener(),this.unbindContrastChangeListener=null)}}])}());function Ze(e){"auto"===e.colorMode?(e.colorMode=Ye.getColorMode(),Ye.bind()):Ye.unbind(),he("platform_increased-contrast-themes")&&("auto"===e.contrastMode?(e.contrastMode=Qe.getContrastMode(),Qe.bind()):Qe.unbind());var t=Ge(e);return Object.entries(t).forEach((function(e){var t=d(e,2),r=t[0],n=t[1];document.documentElement.setAttribute(r,n)})),function(){Ye.unbind(),he("platform_increased-contrast-themes")&&Qe.unbind()}}function $e(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){var r=JSON.stringify(e),n=Ue(r),o=[];return("auto"===t?["light","dark"]:[t]).forEach((function(e){var t=document.head.querySelector("style[".concat(we,'="').concat(n,'"][').concat(me,'="').concat(e,'"]'));t?document.head.appendChild(t):o.push(e)})),o}function tt(e){var t;return null===(t=Object.entries(ve).find((function(t){return d(t,2)[1].increasesContrastFor===e})))||void 0===t?void 0:t[1].id}var rt=function(e){var t=e.colorMode,r=e.contrastMode,n=e.dark,o=e.light,a=e.shape,i=e.spacing,s=e.typography,c=[o,n],l=[];if("auto"===t)"no-preference"!==r&&he("platform_increased-contrast-themes")&&c.forEach((function(e){var t=tt(e);t&&c.push(t)})),l.push.apply(l,c);else if(l.push(e[t]),"no-preference"!==r&&he("platform_increased-contrast-themes")){var u=tt(e[t]);u&&l.push(u)}return[a,i,s].forEach((function(e){e&&l.push(e)})),$e(new Set(l))},nt=function(e){return $e(new Set([]))};function ot(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return at(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?at(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const it=function(){var e=p(g().mark((function e(){var t,r,n,o,a,i,s,c,l,u,d,h,f,b,v,y,m,_,k,w,E,x,O,S,L,A,C,T,P=arguments;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(t=P.length>0&&void 0!==P[0]?P[0]:{}).colorMode,n=void 0===r?be.colorMode:r,o=t.contrastMode,a=void 0===o?be.contrastMode:o,i=t.dark,s=void 0===i?be.dark:i,c=t.light,l=void 0===c?be.light:c,u=t.shape,d=void 0===u?be.shape:u,h=t.spacing,f=void 0===h?be.spacing:h,b=t.typography,v=void 0===b?be.typography():b,y=t.UNSAFE_themeOptions,m=void 0===y?be.UNSAFE_themeOptions:y,_=P.length>1?P[1]:void 0,he("platform_increased-contrast-themes")||("light-increased-contrast"===l&&(l="light"),"dark-increased-contrast"===s&&(s="dark")),w=rt(k={colorMode:n,contrastMode:a,dark:s,light:l,shape:d,spacing:f,typography:v,UNSAFE_themeOptions:_?void 0:m}),E=_||Ke,x=w.map(function(){var e=p(g().mark((function e(t){return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),!_&&m&&Ae(null==m?void 0:m.brandColor)&&(O=et(m,n||be.colorMode)).length>0&&x.push(p(g().mark((function e(){var t;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then((function(){var e=new Error("Cannot find module './custom-theme'");throw e.code="MODULE_NOT_FOUND",e}));case 2:t=e.sent,(0,t.loadAndAppendCustomThemeCss)({colorMode:2===O.length?"auto":O[0],UNSAFE_themeOptions:m});case 5:case"end":return e.stop()}}),e)})))()),e.next=10,Promise.all(x);case 10:S=nt(),L=ot(S),e.prev=12,L.s();case 14:if((A=L.n()).done){e.next=20;break}return C=A.value,e.next=18,E(C);case 18:e.next=14;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(12),L.e(e.t0);case 25:return e.prev=25,L.f(),e.finish(25);case 28:return T=Ze(k),e.abrupt("return",T);case 30:case"end":return e.stop()}}),e,null,[[12,22,25,28]])})));return function(){return e.apply(this,arguments)}}();const st=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.colorMode,r=void 0===t?be.colorMode:t,n=e.contrastMode,o=void 0===n?be.contrastMode:n,a=e.dark,i=void 0===a?be.dark:a,s=e.light,c=void 0===s?be.light:s,l=e.shape,u=void 0===l?be.shape:l,d=e.spacing,h=void 0===d?be.spacing:d,p=e.typography,f=void 0===p?be.typography():p,g=e.UNSAFE_themeOptions,b=arguments.length>1?arguments[1]:void 0,v={colorMode:r,contrastMode:o,dark:i,light:c,shape:u,spacing:h,typography:f,UNSAFE_themeOptions:b?void 0:void 0===g?be.UNSAFE_themeOptions:g},y=rt(v);return b&&y.map((function(e){return b(e)})),Ze(v)};const ct=function(){var e=p(g().mark((function e(t){var r,n,o,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],"all"===t?(r=ge,he("platform_increased-contrast-themes")||(r=r.filter((function(e){return"light-increased-contrast"!==e&&"dark-increased-contrast"!==e}))),r=r.filter((function(e){return"light-brand-refresh"!==e&&"dark-brand-refresh"!==e}))):(o={colorMode:(null==t?void 0:t.colorMode)||be.colorMode,contrastMode:(null==t?void 0:t.contrastMode)||be.contrastMode,dark:(null==t?void 0:t.dark)||be.dark,light:(null==t?void 0:t.light)||be.light,shape:(null==t?void 0:t.shape)||be.shape,spacing:(null==t?void 0:t.spacing)||be.spacing,typography:(null==t?void 0:t.typography)||be.typography()},r=rt(o),n=nt()),e.next=4,Promise.all([].concat($e([].concat($e(r),$e(n)).map(function(){var e=p(g().mark((function e(t){var r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ze(t);case 3:return r=e.sent,e.abrupt("return",{id:t,attrs:{"data-theme":t},css:r});case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",void 0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}())),[p(g().mark((function e(){var r,n,o,a;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("all"===t||null==t||!t.UNSAFE_themeOptions||!Ae(null==t||null===(r=t.UNSAFE_themeOptions)||void 0===r?void 0:r.brandColor)){e.next=15;break}return e.prev=1,e.next=4,Promise.resolve().then((function(){var e=new Error("Cannot find module './custom-theme'");throw e.code="MODULE_NOT_FOUND",e}));case 4:return n=e.sent,o=n.getCustomThemeStyles,e.next=8,o({colorMode:(null==t?void 0:t.colorMode)||be.colorMode,UNSAFE_themeOptions:null==t?void 0:t.UNSAFE_themeOptions});case 8:return a=e.sent,e.abrupt("return",a);case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",void 0);case 15:case"end":return e.stop()}}),e,null,[[1,12]])})))()]));case 4:return a=e.sent,e.abrupt("return",a.flat().filter((function(e){return void 0!==e})));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();const lt=function(e,t){if("auto"===e||"auto"===t){var r="auto"===e?"\n try {\n const darkModeMql = window.matchMedia('".concat(Be,"');\n const colorMode = darkModeMql.matches ? 'dark' : 'light';\n document.documentElement.setAttribute('").concat(_e,"', colorMode);\n } catch (e) {}"):"",n="auto"===t&&he("platform_increased-contrast-themes")?"\n try {\n const contrastModeMql = window.matchMedia('".concat(We,"');\n const contrastMode = contrastModeMql.matches ? 'more' : 'no-preference';\n document.documentElement.setAttribute('").concat(ke,"', contrastMode);\n } catch (e) {}"):"";return"(() => {".concat(r).concat(n,"})()")}};var ut=o(39),dt=o.n(ut);function ht(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ht(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ft=function(){if("undefined"==typeof document)return{};var e=document.documentElement,t=e.getAttribute(_e)||"",r=e.getAttribute(me)||"";return pt(pt({},De(r)),function(e){return void 0!==pe.find((function(t){return t===e}))}(t)&&{colorMode:t})};var gt=function(){function e(r){t(this,e),c(this,"legacyObserver",null),this.callback=r,e.callbacks.add(r)}return s(e,[{key:"observe",value:function(){e.observer||(e.observer=new MutationObserver((function(){var t=ft();e.callbacks.forEach((function(e){return e(t)}))})),e.observer.observe(document.documentElement,{attributeFilter:[me,_e]}))}},{key:"disconnect",value:function(){this.callback&&e.callbacks.delete(this.callback),0===e.callbacks.size&&e.observer&&(e.observer.disconnect(),e.observer=null)}}])}();c(gt,"observer",null),c(gt,"callbacks",new Set);const bt="AJS";function vt(){"object"!=typeof window[bt]&&(window[bt]={})}document.documentElement.hasAttribute("data-color-mode-auto")&&it({colorMode:"auto"});const{setGlobalTheme:yt}=e;var mt,_t;mt="DesignTokens",_t={setGlobalTheme:yt},vt(),window[bt][mt]=_t})(),a})()));
16
16
  //# sourceMappingURL=aui-prototyping-design-tokens-api.js.map