@hackler/react-sdk 11.14.1 → 11.14.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.es.js CHANGED
@@ -64,7 +64,7 @@ function __read(o, n) {
64
64
  }
65
65
 
66
66
  var SDK_NAME_HEADER = "react-sdk";
67
- var SDK_VERSION_HEADER = "11.14.1" ;
67
+ var SDK_VERSION_HEADER = "11.14.3" ;
68
68
 
69
69
  var Emitter = /** @class */ (function () {
70
70
  function Emitter() {
@@ -127,7 +127,7 @@ var HackleReactSDKClient = /** @class */ (function (_super) {
127
127
  var _this = _super.call(this) || this;
128
128
  _this._currentUser = null;
129
129
  _this.client = Hackle.createInstance(sdkKey, __assign(__assign({}, config), { SDK_NAME_HEADER: SDK_NAME_HEADER, SDK_VERSION_HEADER: SDK_VERSION_HEADER }));
130
- if ((config === null || config === void 0 ? void 0 : config.devTool) && (config === null || config === void 0 ? void 0 : config.autoOpenDevTool)) {
130
+ if ((config === null || config === void 0 ? void 0 : config.devTool) && (config === null || config === void 0 ? void 0 : config.autoOpenDevTool) && typeof window !== "undefined") {
131
131
  _this.showUserExplorer();
132
132
  }
133
133
  return _this;
package/lib/index.js CHANGED
@@ -89,7 +89,7 @@ function __read(o, n) {
89
89
  }
90
90
 
91
91
  var SDK_NAME_HEADER = "react-sdk";
92
- var SDK_VERSION_HEADER = "11.14.1" ;
92
+ var SDK_VERSION_HEADER = "11.14.3" ;
93
93
 
94
94
  var Emitter = /** @class */ (function () {
95
95
  function Emitter() {
@@ -152,7 +152,7 @@ var HackleReactSDKClient = /** @class */ (function (_super) {
152
152
  var _this = _super.call(this) || this;
153
153
  _this._currentUser = null;
154
154
  _this.client = Hackle__namespace.createInstance(sdkKey, __assign(__assign({}, config), { SDK_NAME_HEADER: SDK_NAME_HEADER, SDK_VERSION_HEADER: SDK_VERSION_HEADER }));
155
- if ((config === null || config === void 0 ? void 0 : config.devTool) && (config === null || config === void 0 ? void 0 : config.autoOpenDevTool)) {
155
+ if ((config === null || config === void 0 ? void 0 : config.devTool) && (config === null || config === void 0 ? void 0 : config.autoOpenDevTool) && typeof window !== "undefined") {
156
156
  _this.showUserExplorer();
157
157
  }
158
158
  return _this;
package/lib/index.umd.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).hackleReactSDK={})}(this,function(l){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function D(r){var n;return r.__esModule?r:(n=Object.defineProperty({},"__esModule",{value:!0}),Object.keys(r).forEach(function(e){var t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:function(){return r[e]}})}),n)}var L,t={},F=new Uint8Array(16);function j(){if(L=L||"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))return L(F);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}var V=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function H(e){return"string"==typeof e&&V.test(e)}for(var K,z,B=[],G=0;G<256;++G)B.push((G+256).toString(16).substr(1));function q(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=(B[e[t+0]]+B[e[t+1]]+B[e[t+2]]+B[e[t+3]]+"-"+B[e[t+4]]+B[e[t+5]]+"-"+B[e[t+6]]+B[e[t+7]]+"-"+B[e[t+8]]+B[e[t+9]]+"-"+B[e[t+10]]+B[e[t+11]]+B[e[t+12]]+B[e[t+13]]+B[e[t+14]]+B[e[t+15]]).toLowerCase();if(H(e))return e;throw TypeError("Stringified UUID is invalid")}var Y=0,$=0;function X(e){var t,r;if(H(e))return(r=new Uint8Array(16))[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r;throw TypeError("Invalid UUID")}function W(e,s,a){function t(e,t,r,n){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),16!==(t="string"==typeof t?X(t):t).length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(t),i.set(e,t.length),(i=a(i))[6]=15&i[6]|s,i[8]=63&i[8]|128,r){n=n||0;for(var o=0;o<16;++o)r[n+o]=i[o];return r}return q(i)}try{t.name=e}catch(e){}return t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t}function J(e){return 14+(e+64>>>9<<4)+1}function Q(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function Z(e,t,r,n,i,o){return Q((t=Q(Q(t,e),Q(n,o)))<<i|t>>>32-i,r)}function ee(e,t,r,n,i,o,s){return Z(t&r|~t&n,e,t,i,o,s)}function te(e,t,r,n,i,o,s){return Z(t&n|r&~n,e,t,i,o,s)}function re(e,t,r,n,i,o,s){return Z(t^r^n,e,t,i,o,s)}function ne(e,t,r,n,i,o,s){return Z(r^(t|~n),e,t,i,o,s)}var r=W("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}for(var n=function(e,t){e[t>>5]|=128<<t%32,e[J(t)-1]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=r,u=n,c=i,l=o;r=ee(r,n,i,o,e[s],7,-680876936),o=ee(o,r,n,i,e[s+1],12,-389564586),i=ee(i,o,r,n,e[s+2],17,606105819),n=ee(n,i,o,r,e[s+3],22,-1044525330),r=ee(r,n,i,o,e[s+4],7,-176418897),o=ee(o,r,n,i,e[s+5],12,1200080426),i=ee(i,o,r,n,e[s+6],17,-1473231341),n=ee(n,i,o,r,e[s+7],22,-45705983),r=ee(r,n,i,o,e[s+8],7,1770035416),o=ee(o,r,n,i,e[s+9],12,-1958414417),i=ee(i,o,r,n,e[s+10],17,-42063),n=ee(n,i,o,r,e[s+11],22,-1990404162),r=ee(r,n,i,o,e[s+12],7,1804603682),o=ee(o,r,n,i,e[s+13],12,-40341101),i=ee(i,o,r,n,e[s+14],17,-1502002290),n=ee(n,i,o,r,e[s+15],22,1236535329),r=te(r,n,i,o,e[s+1],5,-165796510),o=te(o,r,n,i,e[s+6],9,-1069501632),i=te(i,o,r,n,e[s+11],14,643717713),n=te(n,i,o,r,e[s],20,-373897302),r=te(r,n,i,o,e[s+5],5,-701558691),o=te(o,r,n,i,e[s+10],9,38016083),i=te(i,o,r,n,e[s+15],14,-660478335),n=te(n,i,o,r,e[s+4],20,-405537848),r=te(r,n,i,o,e[s+9],5,568446438),o=te(o,r,n,i,e[s+14],9,-1019803690),i=te(i,o,r,n,e[s+3],14,-187363961),n=te(n,i,o,r,e[s+8],20,1163531501),r=te(r,n,i,o,e[s+13],5,-1444681467),o=te(o,r,n,i,e[s+2],9,-51403784),i=te(i,o,r,n,e[s+7],14,1735328473),n=te(n,i,o,r,e[s+12],20,-1926607734),r=re(r,n,i,o,e[s+5],4,-378558),o=re(o,r,n,i,e[s+8],11,-2022574463),i=re(i,o,r,n,e[s+11],16,1839030562),n=re(n,i,o,r,e[s+14],23,-35309556),r=re(r,n,i,o,e[s+1],4,-1530992060),o=re(o,r,n,i,e[s+4],11,1272893353),i=re(i,o,r,n,e[s+7],16,-155497632),n=re(n,i,o,r,e[s+10],23,-1094730640),r=re(r,n,i,o,e[s+13],4,681279174),o=re(o,r,n,i,e[s],11,-358537222),i=re(i,o,r,n,e[s+3],16,-722521979),n=re(n,i,o,r,e[s+6],23,76029189),r=re(r,n,i,o,e[s+9],4,-640364487),o=re(o,r,n,i,e[s+12],11,-421815835),i=re(i,o,r,n,e[s+15],16,530742520),n=re(n,i,o,r,e[s+2],23,-995338651),r=ne(r,n,i,o,e[s],6,-198630844),o=ne(o,r,n,i,e[s+7],10,1126891415),i=ne(i,o,r,n,e[s+14],15,-1416354905),n=ne(n,i,o,r,e[s+5],21,-57434055),r=ne(r,n,i,o,e[s+12],6,1700485571),o=ne(o,r,n,i,e[s+3],10,-1894986606),i=ne(i,o,r,n,e[s+10],15,-1051523),n=ne(n,i,o,r,e[s+1],21,-2054922799),r=ne(r,n,i,o,e[s+8],6,1873313359),o=ne(o,r,n,i,e[s+15],10,-30611744),i=ne(i,o,r,n,e[s+6],15,-1560198380),n=ne(n,i,o,r,e[s+13],21,1309151649),r=ne(r,n,i,o,e[s+4],6,-145523070),o=ne(o,r,n,i,e[s+11],10,-1120210379),i=ne(i,o,r,n,e[s+2],15,718787259),n=ne(n,i,o,r,e[s+9],21,-343485551),r=Q(r,a),n=Q(n,u),i=Q(i,c),o=Q(o,l)}return[r,n,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(J(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length),i=[],o=32*n.length,s="0123456789abcdef",a=0;a<o;a+=8){var u=n[a>>5]>>>a%32&255,u=parseInt(s.charAt(u>>>4&15)+s.charAt(15&u),16);i.push(u)}return i});function ie(e,t){return e<<t|e>>>32-t}var oe=W("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i<n.length;++i)e.push(n.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s),u=0;u<s;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*u+4*l]<<24|e[64*u+4*l+1]<<16|e[64*u+4*l+2]<<8|e[64*u+4*l+3];a[u]=c}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<s;++f){for(var p=new Uint32Array(80),d=0;d<16;++d)p[d]=a[f][d];for(var h=16;h<80;++h)p[h]=ie(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);for(var y=r[0],v=r[1],m=r[2],g=r[3],E=r[4],w=0;w<80;++w)var T=Math.floor(w/20),T=ie(y,5)+function(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}(T,v,m,g)+E+t[T]+p[w]>>>0,E=g,g=m,m=ie(v,30)>>>0,v=y,y=T;r[0]=r[0]+y>>>0,r[1]=r[1]+v>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+E>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]});var se,r=D(Object.freeze({__proto__:null,v1:function(e,t,r){var n=t&&r||0,i=t||new Array(16),o=(e=e||{}).node||K,r=void 0!==e.clockseq?e.clockseq:z,s=(null!=o&&null!=r||(s=e.random||(e.rng||j)(),null==o&&(o=K=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==r&&(r=z=16383&(s[6]<<8|s[7]))),void 0!==e.msecs?e.msecs:Date.now()),a=void 0!==e.nsecs?e.nsecs:$+1,u=s-Y+(a-$)/1e4;if(u<0&&void 0===e.clockseq&&(r=r+1&16383),1e4<=(a=(u<0||Y<s)&&void 0===e.nsecs?0:a))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Y=s,z=r,u=(1e4*(268435455&(s+=122192928e5))+($=a))%4294967296,i[n++]=u>>>24&255,i[n++]=u>>>16&255,i[n++]=u>>>8&255,i[n++]=255&u,e=s/4294967296*1e4&268435455,i[n++]=e>>>8&255,i[n++]=255&e,i[n++]=e>>>24&15|16,i[n++]=e>>>16&255,i[n++]=r>>>8|128,i[n++]=255&r;for(var c=0;c<6;++c)i[n+c]=o[c];return t||q(i)},v3:r,v4:function(e,t,r){var n=(e=e||{}).random||(e.rng||j)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return q(n)},v5:oe,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(H(e))return parseInt(e.substr(14,1),16);throw TypeError("Invalid UUID")},validate:H,stringify:q,parse:X})),ae=(l.setUserId=void 0,l.sanitizeUser=void 0,l.removeUserId=void 0,l.getUserId=void 0,l.Version=void 0,l.Variation=void 0,l.TargetingType=void 0,l.TargetRule=void 0,l.TargetMatch=void 0,l.TargetKey=void 0,l.TargetCondition=void 0,l.TargetAction=void 0,l.Target=void 0,l.TARGET_KEY_TYPES=void 0,l.TARGET_ACTION_TYPES=void 0,l.Slot=void 0,l.Segment=void 0,l.SEGMENT_TYPES=void 0,l.RemoteConfigTargetRule=void 0,l.RemoteConfigParameterValue=void 0,l.RemoteConfigParameter=void 0,l.RemoteConfigDecision=void 0,l.ParameterConfiguration=void 0,l.MetaVersion=void 0,l.MATCH_VALUE_TYPES=void 0,l.MATCH_TYPES=void 0,l.MATCH_OPERATORS=void 0,l.Logger=void 0,l.IdentifiersBuilder=void 0,l.IdentifierType=void 0,l.FeatureFlagDecision=void 0,l.Experiment=void 0,l.EventType=void 0,l.EmptyParameterConfig=void 0,l.EmptyHackleRemoteConfig=void 0,l.DecisionReason=void 0,l.Decision=void 0,l.CoreVersion=void 0,l.ContainerGroup=void 0,l.Container=void 0,l.Bucket=void 0,Object.defineProperty(t,"__esModule",{value:!0}),r),ue=function(e,t){return(ue=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])}))(e,t)};function ce(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ue(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var h=function(){return(h=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function le(e,s,a,u){return new(a=a||Promise)(function(r,t){function n(e){try{o(u.next(e))}catch(e){t(e)}}function i(e){try{o(u.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,i)}o((u=u.apply(e,s||[])).next())})}function fe(n,i){var o,s,a,u={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,s&&(a=2&t[0]?s.return:t[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,t[1])).done)return a;switch(s=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,s=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!((a=0<(a=u.trys).length&&a[a.length-1])||6!==t[0]&&2!==t[0])){u=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3]))u.label=t[1];else if(6===t[0]&&u.label<a[1])u.label=a[1],a=t;else{if(!(a&&u.label<a[2])){a[2]&&u.ops.pop(),u.trys.pop();continue}u.label=a[2],u.ops.push(t)}}t=i.call(n,u)}catch(e){t=[6,e],s=0}finally{o=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}Te.isNotNullOrUndefined=function(e){return null!=e},Te.isNullOrUndefined=function(e){return null==e},Te.requiredNotNullOrUndefined=function(e,t){if(void 0===t&&(t=function(){return"Required value is null or undefined"}),this.isNullOrUndefined(e))throw new Error(t());return e};var a=Te,f=(we.mapNotNullOrUndefined=function(e,t){for(var r=Array(),n=0,i=e;n<i.length;n++){var o=t(i[n]);a.isNotNullOrUndefined(o)&&r.push(o)}return r},we.associateTo=function(e,t,r){for(var n=0,i=e;n<i.length;n++){var o=r(i[n]);t.set(o[0],o[1])}return t},we.associate=function(e,t){return this.associateTo(e,new Map,t)},we.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},we.chunked=function(e,t){for(var r=[],n=e.slice();n.length;)r.push(n.splice(0,t));return r},we),pe={DISABLE:0,ERROR:1,WARN:2,INFO:3,DEBUG:4},de=(Ee.setLogLevel=function(e){this.logLevel=e=void 0===e?pe.INFO:e},Ee.initCounter=function(t){this.counters=f.associate(Object.keys(pe),function(e){return[e,t(e)]})},Ee._log=function(e,t){var r;switch(e){case"WARN":r="orange";break;case"ERROR":r="red";break;default:r="#AAAAAA"}if(t instanceof Error)he.log(e,r,t.message,t);else try{he.log(e,r,t)}catch(e){}},Ee.increment=function(e){var t;null!=(t=null==(t=Ee.counters)?void 0:t.get(e))&&t.increment()},Ee.logLevel=pe.INFO,Ee.log={error:function(e){pe.ERROR<=Ee.logLevel&&(Ee._log("ERROR",e),Ee.increment("ERROR"))},warn:function(e){pe.WARN<=Ee.logLevel&&(Ee._log("WARN",e),Ee.increment("WARN"))},info:function(e){pe.INFO<=Ee.logLevel&&(Ee._log("INFO",e),Ee.increment("INFO"))},debug:function(e){pe.DEBUG<=Ee.logLevel&&(Ee._log("DEBUG",e),Ee.increment("DEBUG"))}},Ee),he=(ge.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},ge),ye="X-HACKLE-SDK-NAME",ve=[0,8,16,32,64,128,256,512],me=de.log;function ge(){}function Ee(){}function we(){}function Te(){}function be(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function _e(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n}function Oe(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function Re(e,t){this.id=e,this.key=t}function Ie(e){var t,r={};return r.id=null!=(t=Ve.sanitizeValue(e.id))?t:void 0,r.userId=null!=(t=Ve.sanitizeValue(e.userId))?t:void 0,r.deviceId=null!=(t=Ve.sanitizeValue(e.deviceId))?t:void 0,"object"==typeof e.properties&&(r.properties=Ke.sanitize(e.properties)),"object"==typeof e.identifiers&&(r.identifiers=Ve.sanitize(e.identifiers)),Boolean(r.id||r.userId||r.deviceId||r.identifiers&&0<Object.keys(r.identifiers).length)?r:null}function Se(e){this.conditions=e}function Ne(e,t){this.key=e,this.match=t}function Ae(e,t){this.type=e,this.name=t}function Ce(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function xe(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function ke(e,t){this.target=e,this.action=t}function Pe(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function Ue(e,t){this.id=e,this.experiments=t}function Me(e,t,r,n,i,o){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.targetRules=i,this.defaultValue=o}function De(e,t,r,n,i){this.key=e,this.name=t,this.target=r,this.bucketId=n,this.value=i}function Le(e,t){this.id=e,this.rawValue=t}var Fe={getRequest:function(n,i){return{abort:function(){},responsePromise:new Promise(function(e,t){var r=new XMLHttpRequest;r.open("GET",n),r.onreadystatechange=function(){r.readyState===r.DONE&&(0===r.status?t(new Error("Request error")):e({statusCode:r.status,body:r.responseText}))},r.onerror=function(){t()},r.setRequestHeader("content-type","application/json"),be(r,i),r.send()})}},postRequest:function(e,t,r,n,i){var t=JSON.stringify(t),o=new XMLHttpRequest;o.open("POST",e),o.onreadystatechange=function(){o.readyState===o.DONE&&(200<=o.status&&o.status<400?n({statusCode:o.status}):i&&i({statusCode:o.status}))},o.setRequestHeader("content-type","application/json"),be(o,r),o.send(t)},sendBeacon:function(e,t,r,n,i){var o=!1;((o="undefined"!=typeof window?window&&window.navigator&&window.navigator.sendBeacon&&!0:o)?(o=JSON.stringify(t),(t=new URLSearchParams).append("sdkName",r[ye]),t.append("sdkVersion",r["X-HACKLE-SDK-VERSION"]),t.append("sdkKey",r["X-HACKLE-SDK-KEY"]),t.append("data",o),window.navigator.sendBeacon(e,t)?n:(me.error("sendBeacon failed to queue request."),i)):(me.error("Does not support sendBeacon"),i))()}},je=de.log,Ve=(pt.isEquals=function(t,r){var e;return null!=r&&(e=Object.keys(t)).length===Object.keys(r).length&&e.every(function(e){return t[e]===r[e]})},pt.sanitize=function(e){var t={};if(!a.isNullOrUndefined(e))for(var r=0,n=Object.entries(e);r<n.length;r++){var i=n[r],o=i[0],i=i[1];this.isValidType(o)?(i=this.sanitizeValue(i),a.isNullOrUndefined(i)?je.debug("Invalid identifier value. The identifier type value be a string of 512 characters or less. [".concat(o,"]")):t[o]=i):je.debug("Invalid identifier type. The identifier type must be a string of 128 characters or less. [".concat(o,"]"))}return t},pt.isValidType=function(e){return!a.isNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_TYPE_LENGTH},pt.sanitizeValue=function(e){return"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_VALUE_LENGTH?e:"number"==typeof e?e.toString():null},pt.MAX_IDENTIFIER_TYPE_LENGTH=128,pt.MAX_IDENTIFIER_VALUE_LENGTH=512,pt),He=de.log,Ke=(ft.sanitize=function(e){var t={};if(!a.isNullOrUndefined(e))for(var r=0,n=Object.entries(e);r<n.length;r++){var i,o=n[r],s=o[0],o=o[1];if(Object.keys(t).length>=this.MAX_PROPERTIES_COUNT){He.debug("The number of properties cannot exceed 128. Drops excess properties. [".concat(s,", ").concat(o,"]"));break}this.isValidKey(s)?(i=this.sanitizeValue(s,o),a.isNullOrUndefined(i)?He.debug("Invalid property value. The property value mus be 'string(..1024)', 'number', 'boolean', or 'array' type. [".concat(o,"]")):t[s]=i):He.debug("Invalid property key. The property key must be a string of 128 characters or less. [".concat(s,"]"))}return t},ft.isValidProperty=function(e,t){return this.isValidKey(e)&&this.isValidValue(t)},ft.isValidKey=function(e){return a.isNotNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_PROPERTY_KEY_LENGTH},ft.sanitizeValue=function(e,t){var r=this;return e.startsWith(this.SYSTEM_PROPERTY_KEY_PREFIX)?t:this.isValidValue(t)?Array.isArray(t)?t.filter(function(e){return r.isValidElement(e)}):t:null},ft.isValidValue=function(e){return!a.isNullOrUndefined(e)&&("string"==typeof e?e.length<=this.MAX_PROPERTY_VALUE_LENGTH:"number"==typeof e?!isNaN(e)&&isFinite(e):"boolean"==typeof e||Array.isArray(e))},ft.isValidElement=function(e){return!a.isNullOrUndefined(e)&&("string"==typeof e?0<e.length&&e.length<=this.MAX_PROPERTY_VALUE_LENGTH:"number"==typeof e)},ft.SYSTEM_PROPERTY_KEY_PREFIX="$",ft.MAX_PROPERTIES_COUNT=128,ft.MAX_PROPERTY_KEY_LENGTH=128,ft.MAX_PROPERTY_VALUE_LENGTH=1024,ft),ze=de.log,Be=(lt.of=function(e,t){return new lt(e,t)},lt),Ge=(ct.of=function(e,t,r){return new ct(e,t,r=void 0===r?new Ye:r)},ct.prototype.get=function(e,t){return this.config.get(e,t)},ct),qe=(ut.on=function(e,t){return new ut(!0,e,t=void 0===t?new Ye:t)},ut.off=function(e,t){return new ut(!1,e,t=void 0===t?new Ye:t)},ut.prototype.get=function(e,t){return this.config.get(e,t)},ut),oe=(at.prototype.get=function(e,t){return t},at),Ye=(st.prototype.get=function(e,t){return t},st),s=(n.SDK_NOT_READY="SDK_NOT_READY",n.EXCEPTION="EXCEPTION",n.INVALID_INPUT="INVALID_INPUT",n.EXPERIMENT_NOT_FOUND="EXPERIMENT_NOT_FOUND",n.EXPERIMENT_DRAFT="EXPERIMENT_DRAFT",n.EXPERIMENT_PAUSED="EXPERIMENT_PAUSED",n.EXPERIMENT_COMPLETED="EXPERIMENT_COMPLETED",n.OVERRIDDEN="OVERRIDDEN",n.TRAFFIC_NOT_ALLOCATED="TRAFFIC_NOT_ALLOCATED",n.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT="NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT",n.IDENTIFIER_NOT_FOUND="IDENTIFIER_NOT_FOUND",n.VARIATION_DROPPED="VARIATION_DROPPED",n.TRAFFIC_ALLOCATED="TRAFFIC_ALLOCATED",n.TRAFFIC_ALLOCATED_BY_TARGETING="TRAFFIC_ALLOCATED_BY_TARGETING",n.NOT_IN_EXPERIMENT_TARGET="NOT_IN_EXPERIMENT_TARGET",n.FEATURE_FLAG_NOT_FOUND="FEATURE_FLAG_NOT_FOUND",n.FEATURE_FLAG_INACTIVE="FEATURE_FLAG_INACTIVE",n.INDIVIDUAL_TARGET_MATCH="INDIVIDUAL_TARGET_MATCH",n.TARGET_RULE_MATCH="TARGET_RULE_MATCH",n.DEFAULT_RULE="DEFAULT_RULE",n.REMOTE_CONFIG_PARAMETER_NOT_FOUND="REMOTE_CONFIG_PARAMETER_NOT_FOUND",n.TYPE_MISMATCH="TYPE_MISMATCH",n),$e=(ot.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},ot.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},ot.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},ot),Xe=(it.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},it),We=(nt.ID="$id",nt.USER="$userId",nt.DEVICE="$deviceId",nt.SESSION="$sessionId",nt.HACKLE_DEVICE="$hackleDeviceId",nt),Je=(rt.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},rt.prototype.add=function(e,t){var r=Ve.sanitizeValue(t);return Ve.isValidType(e)&&r?this.identifiers[e]=t:ze.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},rt.prototype.build=function(){return this.identifiers},rt),Qe=(tt.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},tt),Ze=(et.prototype.get=function(e,t){e=this.parameters.get(e);return!a.isNullOrUndefined(e)&&(a.isNullOrUndefined(t)||typeof e==typeof t)?e:t},et);function et(e,t){this.id=e,this.parameters=t}function tt(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function rt(){this.identifiers={}}function nt(){}function it(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function ot(e,t,r,n,i,o,s,a,u,c,l,f,p,d){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.status=i,this.version=o,this.variations=s,this.userOverrides=a,this.segmentOverrides=u,this.targetAudiences=c,this.targetRules=l,this.defaultRule=f,this.containerId=p,this._winnerVariationId=d}function n(){}function st(){}function at(){}function ut(e,t,r){this.isOn=e,this.reason=t,this.config=r}function ct(e,t,r){this.variation=e,this.reason=t,this.config=r}function lt(e,t){this.value=e,this.reason=t}function ft(){}function pt(){}Pt.tryParse=function(e){var t,r,n,i,e=Pt.regExp.exec(e);if(e)return e[0],t=e[1],r=void 0===(r=e[2])?"0":r,n=void 0===(n=e[3])?"0":n,i=e[4],e=e[5],new Pt(new ht(parseInt(t,10),parseInt(r,10),parseInt(n,10)),yt.parse(i),yt.parse(e))},Pt.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},Pt.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},Pt.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},Pt.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},Pt.prototype.isLessThan=function(e){return this.compareTo(e)<0},Pt.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},Pt.regExp=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*))?(?:\.(0|[1-9]\d*))?(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;var dt=Pt,ht=(kt.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},kt),yt=(xt.parse=function(e){return e?new xt(e.split(".")):xt.EMPTY},xt.prototype.isEmpty=function(){return 0===this.identifiers.length},xt.prototype.isNotEmpty=function(){return!this.isEmpty()},xt.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},xt.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=xt.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},xt.compareIdentifiers=function(e,t){return xt.numericIdentifierRegExp.test(e)&&xt.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},xt.EMPTY=new xt([]),xt.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,xt),vt=["MATCH","NOT_MATCH"],mt=["STRING","NUMBER","BOOLEAN","VERSION","JSON","NULL","UNKNOWN"],gt=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],Et=["VARIATION","BUCKET"],wt=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT","AB_TEST","FEATURE_FLAG"],Tt=["USER_ID","USER_PROPERTY"],bt=(Ct.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},Ct.IDENTIFIER=new Ct("SEGMENT"),Ct.PROPERTY=new Ct("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY","AB_TEST","FEATURE_FLAG"),Ct.SEGMENT=new Ct("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),Ct),_t=(i.nanosToUnit=function(e,t){switch(t){case"microseconds":return e/(i.C1/i.C0);case"milliseconds":return e/(i.C2/i.C0);case"seconds":return e/(i.C3/i.C0);default:return e}},i.microsToUnit=function(e,t){switch(t){case"nanoseconds":return e*(i.C1/i.C0);case"milliseconds":return e/(i.C2/i.C1);case"seconds":return e/(i.C3/i.C1);default:return e}},i.millisToUnit=function(e,t){switch(t){case"nanoseconds":return e*(i.C2/i.C0);case"microseconds":return e*(i.C2/i.C1);case"seconds":return e/(i.C3/i.C2);default:return e}},i.secondsToUnit=function(e,t){switch(t){case"nanoseconds":return e*(i.C3/i.C0);case"microseconds":return e*(i.C3/i.C1);case"milliseconds":return e*(i.C3/i.C2);default:return e}},i.C3=1e3*(i.C2=1e3*(i.C1=1e3*(i.C0=1))),i.converter={nanoseconds:i.nanosToUnit,microseconds:i.microsToUnit,milliseconds:i.millisToUnit,seconds:i.secondsToUnit},i),Ot=(At.prototype.tick=function(){var e;return"undefined"!=typeof performance?1e3*performance.now():"undefined"!=typeof process&&process.hrtime?(1e9*(e=process.hrtime())[0]+e[1])/1e3:1e3*Date.now()},At.prototype.currentMillis=function(){return Date.now()},At.instance=new At,At),Rt=(Nt.prototype.tags=function(e){var r=this;return Object.entries(e).forEach(function(e){var t=e[0],e=e[1];r._tags[t]=e}),this},Nt.prototype.tag=function(e,t){return this._tags[e]=t,this},Nt.prototype.register=function(e){return e.registerTimer({name:this.name,tags:this._tags,type:"TIMER"})},Nt),It=(St.start=function(e){return new St(e=void 0===e?St.defaultClock:e)},St.prototype.stop=function(e){var t=this._clock.tick()-this.startTime;e.record(t,"microseconds")},St.defaultClock=new Ot,St);function St(e){this._clock=e,this.startTime=this._clock.tick()}function Nt(e){this.name=e,this._tags={},this.name=e}function At(){}function i(){}function Ct(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function xt(e){this.identifiers=e}function kt(e,t,r){this.major=e,this.minor=t,this.patch=r}function Pt(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}Mt.prototype.tags=function(e){var r=this;return Object.entries(e).forEach(function(e){var t=e[0],e=e[1];r._tags[t]=e}),this},Mt.prototype.tag=function(e,t){return this._tags[e]=t,this},Mt.prototype.register=function(e){return e.registerCounter({name:this.name,tags:this._tags,type:"COUNTER"})};var Ut=Mt;function Mt(e){this.name=e,this._tags={}}Object.defineProperty(Lt.prototype,"value",{get:function(){return this.valueSupplier()},enumerable:!1,configurable:!0});var Dt=Lt;function Lt(e,t){this.valueSupplier=t,this.field=e}function Ft(e,t){return e.name===t.name&&Ve.isEquals(e.tags,t.tags)}Yt.prototype.count=function(){return this.counterValue},Yt.prototype.increment=function(e){this.counterValue+=null!=e?e:1},Yt.prototype.measure=function(){return[new Dt("count",this.count.bind(this))]};var jt,Vt=Yt,Ht=(qt.prototype.flush=function(){var e=this.currentCounter;return this.currentCounter=new Vt(this.id),e},qt.prototype.count=function(){return this.currentCounter.count()},qt.prototype.increment=function(e){this.currentCounter.increment(e)},qt.prototype.measure=function(){return[new Dt("count",this.count.bind(this))]},qt),Kt=(Gt.prototype.values=function(){return Array.from(this.data.values())},Gt.prototype.keys=function(){return Array.from(this.data.keys())},Gt.prototype.get=function(t){var r=this,e=this.keys().find(function(e){return r.compareFn(e,t)});return e?this.data.get(e):void 0},Gt.prototype.has=function(e){return void 0!==this.get(e)},Gt.prototype.add=function(e,t){t=(t=t)||e;return this.data.set(e,t),this},Gt.prototype.delete=function(e){var t;if(this.has(e))return t=this.get(e),this.data.delete(e),t},Gt.prototype.forEach=function(e){this.data.forEach(e)},Gt.prototype.entries=function(){return Array.from(this.data.entries())},Gt),r=(Object.defineProperty(Bt.prototype,"metrics",{get:function(){return Array.from(this._metrics.values())},enumerable:!1,configurable:!0}),Bt.prototype.registerCounter=function(e){return this.registerMetricIfNecessary(e,this.createCounter.bind(this))},Bt.prototype.registerTimer=function(e){return this.registerMetricIfNecessary(e,this.createTimer.bind(this))},Bt.prototype.counter=function(e,t){return void 0===t&&(t={}),new Ut(e).tags(t).register(this)},Bt.prototype.timer=function(e,t){return void 0===t&&(t={}),new Rt(e).tags(t).register(this)},Bt.prototype.registerMetricIfNecessary=function(e,t){return this.getOrCreateMetric(e,t)},Bt.prototype.getOrCreateMetric=function(e,t){var r,n=this._metrics.get(e);return n?r=n:(r=t(e),this._metrics.add(e,r)),r},Bt.prototype.close=function(){},Bt),o=(ce(zt,jt=r),zt.prototype.start=function(){var e=this;void 0===this.currentIntervalId&&(this.currentIntervalId=setInterval(function(){e.publish()},this.pushIntervalMillis),de.log.debug("PushMetricRegistry started. Publish metrics every ".concat(this.pushIntervalMillis,"ms.")))},zt.prototype.stop=function(){void 0!==this.currentIntervalId&&(clearInterval(this.currentIntervalId),this.currentIntervalId=void 0,this.publish(),de.log.debug("PushMetricRegistry stopped."))},zt.prototype.close=function(){this.stop()},zt);function zt(e){var t=jt.call(this)||this;return t.pushIntervalMillis=e,t.currentIntervalId=void 0,t.pushIntervalMillis=e,t}function Bt(){this.id=ae.v4(),this.name="MetricRegistry",this._metrics=new Kt(Ft)}function Gt(e){this.compareFn=e,this.data=new Map,this.compareFn=e,this.data=new Map}function qt(e){this.id=e,this.currentCounter=new Vt(e)}function Yt(e){this.counterValue=0,this.id=e}nr.prototype.count=function(){return this._count},nr.prototype.totalTime=function(e){return _t.nanosToUnit(this._total,e)},nr.prototype.max=function(e){return _t.nanosToUnit(this._max,e)},nr.prototype.mean=function(e){return 0===this.count()?0:this.totalTime(e)/this.count()},nr.prototype.record=function(e,t){e<0||(t=_t.converter[t](e,"nanoseconds"),this._count=this.count()+1,this._total+=t,this._max=Math.max(t,this._max))},nr.prototype.measure=function(){var e=this;return[new Dt("count",this.count.bind(this)),new Dt("total",function(){return e.totalTime("milliseconds")}),new Dt("max",function(){return e.max("milliseconds")}),new Dt("mean",function(){return e.mean("milliseconds")})]};var $t,Xt=nr,Wt=(rr.prototype.flush=function(){var e=this.currentTimer;return this.currentTimer=new Xt(this.id),e},rr.prototype.count=function(){return this.currentTimer.count()},rr.prototype.totalTime=function(e){return this.currentTimer.totalTime(e)},rr.prototype.max=function(e){return this.currentTimer.max(e)},rr.prototype.record=function(e,t){this.currentTimer.record(e,t)},rr.prototype.mean=function(e){return 0===this.count()?0:this.totalTime(e)/this.count()},rr.prototype.measure=function(){var e=this;return[new Dt("count",this.count.bind(this)),new Dt("total",function(){return e.totalTime("milliseconds")}),new Dt("max",function(){return e.max("milliseconds")}),new Dt("mean",function(){return e.mean("milliseconds")})]},rr),o=(ce(tr,$t=o),tr.prototype.createCounter=function(e){return new Ht(e)},tr.prototype.createTimer=function(e){return new Wt(e)},tr.prototype.publish=function(){var e=this.metrics.reduce(function(e,t){return void 0!==t.flush&&"function"==typeof t.flush?e.concat(t.flush()):e},[]);this.flushMetrics(e)},tr.prototype.close=function(){$t.prototype.close.call(this)},tr),Jt=(er.prototype.count=function(){return 0},er.prototype.increment=function(e){},er.prototype.measure=function(){return[new Dt("count",this.count.bind(this))]},er),Qt=(Object.defineProperty(Zt.prototype,"counters",{get:function(){return Array.from(this._counters.values())},enumerable:!1,configurable:!0}),Zt.prototype.add=function(e){this._counters.add(e,e.registerCounter(this.id))},Zt.prototype.count=function(){return(this.counters[0]||this.noopCounter).count()},Zt.prototype.increment=function(t){this.counters.forEach(function(e){e.increment(t)})},Zt.prototype.measure=function(){return[new Dt("count",this.count.bind(this))]},Zt);function Zt(e){this._counters=new Kt(function(e,t){return e.id===t.id}),this.id=e,this.noopCounter=new Jt(e)}function er(e){this.id=e}function tr(e){return $t.call(this,e)||this}function rr(e){this.id=e,this.currentTimer=new Xt(e)}function nr(e){this._count=0,this._total=0,this._max=0,this.id=e}Dr.prototype.measure=function(){var e=this;return[new Dt("count",this.count.bind(this)),new Dt("total",function(){return e.totalTime("milliseconds")}),new Dt("max",function(){return e.max("milliseconds")}),new Dt("mean",function(){return e.mean("milliseconds")})]},Dr.prototype.count=function(){return 0},Dr.prototype.totalTime=function(e){return 0},Dr.prototype.max=function(e){return 0},Dr.prototype.mean=function(e){return 0},Dr.prototype.record=function(e,t){};var ir,or,sr,ar,ur,cr=Dr,lr=(Object.defineProperty(Mr.prototype,"firstTimer",{get:function(){return this.timers[0]||this.noopTimer},enumerable:!1,configurable:!0}),Mr.prototype.totalTime=function(e){return this.firstTimer.totalTime(e)},Mr.prototype.max=function(e){return this.firstTimer.max(e)},Mr.prototype.mean=function(e){return this.firstTimer.mean(e)},Mr.prototype.record=function(t,r){this.timers.forEach(function(e){e.record(t,r)})},Object.defineProperty(Mr.prototype,"timers",{get:function(){return Array.from(this._timers.values())},enumerable:!1,configurable:!0}),Mr.prototype.add=function(e){this._timers.add(e,e.registerTimer(this.id))},Mr.prototype.count=function(){return this.firstTimer.count()},Mr.prototype.measure=function(){var e=this;return[new Dt("count",this.count.bind(this)),new Dt("total",function(){return e.totalTime("milliseconds")}),new Dt("max",function(){return e.max("milliseconds")}),new Dt("mean",function(){return e.mean("milliseconds")})]},Mr),r=(ce(Ur,ur=r),Ur.prototype.createCounter=function(e){e=new Qt(e);return this.addRegistry(e),e},Ur.prototype.createTimer=function(e){e=new lr(e);return this.addRegistry(e),e},Ur.prototype.addRegistry=function(t){this.registries.forEach(function(e){return t.add(e)})},Ur.prototype.add=function(t){t instanceof Ur||this.registries.has(t)||(this.registries.add(t),this.metrics.forEach(function(e){void 0!==e.add&&"function"==typeof e.add&&e.add(t)}))},Ur.prototype.close=function(){this.registries.forEach(function(e){e.close()})},Ur),fr=(Pr.counter=function(e,t){return Pr.globalRegistry.counter(e,t)},Pr.timer=function(e,t){return Pr.globalRegistry.timer(e,t)},Pr.addRegistry=function(e){Pr.globalRegistry.add(e),de.log.debug("MetricRegistry added ".concat(e.name))},Pr.globalRegistry=new r,Pr),pr=(ce(kr,ar=o),kr.prototype.flushMetrics=function(e){var t=this;f.chunked(e.filter(this.isDispatchTarget.bind(this)),100).forEach(function(e){t.dispatch(e)})},kr.prototype.isDispatchTarget=function(e){return!("COUNTER"!==e.id.type&&"TIMER"!==e.id.type)&&0<e.count()},kr.prototype.dispatch=function(e){this.useBeacon&&this.shouldUseBeacon?this.httpClient.sendBeacon(this.monitoringEndPoint,this.batch(e),this.httpHeader,function(){de.log.debug("Beacon called.")}):this.httpClient.postRequest(this.monitoringEndPoint,this.batch(e),this.httpHeader,function(){},function(){de.log.debug("Failed to flushing metrics.")})},kr.prototype.batch=function(e){return{metrics:e.map(function(e){return{name:e.id.name,type:e.id.type,tags:e.id.tags,measurements:Object.fromEntries(f.associate(e.measure(),function(e){return[e.field,e.value]}))}})}},kr.prototype.createCounter=function(e){return new Ht(e)},kr.prototype.createTimer=function(e){return new Wt(e)},kr.prototype.close=function(){this.shouldUseBeacon=!0,ar.prototype.close.call(this)},kr),dr=(xr.experiment=function(e,t,r){t=fr.timer("experiment.decision",{key:String(t),variation:r.variation,reason:String(r.reason)});e.stop(t)},xr.featureFlag=function(e,t,r){t=fr.timer("feature.flag.decision",{key:String(t),on:String(r.isOn),reason:String(r.reason)});e.stop(t)},xr.remoteConfig=function(e,t,r){t=fr.timer("remote.config.decision",{key:String(t),reason:String(r.reason)});e.stop(t)},xr),hr=(Cr.record=function(e,t,r){e=fr.timer("api.call",{operation:e,success:String(r)});t.stop(e)},Cr),yr=(Ar.decide=function(e,t,r,n){if(a.isNullOrUndefined(r))return this.decision(e,t,"NULL",r,n);switch(typeof r){case"string":return this.decision(e,t,"STRING",r,n);case"number":return this.decision(e,t,"NUMBER",r,n);case"boolean":return this.decision(e,t,"BOOLEAN",r,n);default:return this.decision(e,t,"UNKNOWN",r,n)}},Ar.decision=function(e,t,r,n,i){return a.isNullOrUndefined(t)?Be.of(n,s.INVALID_INPUT):e.remoteConfig(t,i,r,n)},Ar),vr=de.log,mr=(Nr.prototype.get=function(e,t){var r,n=It.start();try{r=this.decide(e,t)}catch(n){vr.error("Unexpected exception while deciding remote config parameter[".concat(e,"]. Returning default value. : ").concat(n)),r=Be.of(t,s.EXCEPTION)}return dr.remoteConfig(n,e,r),r.value},Nr.prototype.decide=function(e,t){var r=this.userManager.resolveCurrentOrNull(this.user);return r?(r=this.hackleUserResolver.resolve(r),yr.decide(this.core,e,t,r)):(vr.warn("invalid user"),Be.of(t,s.INVALID_INPUT))},Nr),u=de.log,gr=(Sr.prototype.getSessionId=function(){return this.sessionManager.sessionId},Sr.prototype.getUser=function(){return this.userManager.currentUser},Sr.prototype.setUser=function(e){try{var t=Ie(e);t?this.userManager.setUser(t):u.warn("invalid user")}catch(e){u.error("Unexpected exception while set user: ".concat(e))}},Sr.prototype.setUserId=function(e){try{void 0===e&&this.userManager.setUserId(void 0);var t=Ve.sanitizeValue(e);t?this.userManager.setUserId(t):u.warn("Invalid userId. [userId=".concat(e,"]"))}catch(e){u.error("Unexpected exception while set userId: ".concat(e))}},Sr.prototype.setDeviceId=function(e){try{Ve.sanitizeValue(e)?this.userManager.setDeviceId(e):u.warn("Invalid deviceId. [deviceId=".concat(e,"]"))}catch(e){u.error("Unexpected exception while set deviceId: ".concat(e))}},Sr.prototype.setUserProperty=function(e,t){try{Ke.isValidKey(e)?Ke.isValidValue(t)?this.userManager.setUserProperty(e,t):u.warn("Invalid property value. [key=".concat(t,"]")):u.warn("Invalid property key. [key=".concat(e,"]"))}catch(e){u.error("Unexpected exception while set userProperty: ".concat(e))}},Sr.prototype.setUserProperties=function(e){try{var t=Ke.sanitize(e);this.userManager.setUserProperties(t)}catch(e){u.error("Unexpected exception while set userProperties: ".concat(e))}},Sr.prototype.resetUser=function(){try{this.userManager.resetUser()}catch(e){u.error("Unexpected exception while reset user: ".concat(e))}},Sr.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},Sr.prototype.variationDetail=function(n,i,e){var o=e||"A",e=It.start(),t=function(e){try{var t,r=e.userManager.resolveCurrentOrNull(i);return r?(t=e.hackleUserResolver.resolve(r),e.core.experiment(n,t,o)):(u.warn("invalid user"),Ge.of(o,s.INVALID_INPUT))}catch(e){return u.error("Unexpected exception while deciding variation for experiment[".concat(n,"]. Returning default variation[").concat(o,"] : ").concat(e)),Ge.of(o,s.EXCEPTION)}}(this);return dr.experiment(e,n,t),t},Sr.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},Sr.prototype.featureFlagDetail=function(n,i){var e=It.start(),t=function(e){try{var t,r=e.userManager.resolveCurrentOrNull(i);return r?(t=e.hackleUserResolver.resolve(r),e.core.featureFlag(n,t)):(u.warn("invalid user"),qe.off(s.INVALID_INPUT))}catch(e){return u.error("Unexpected exception while deciding feature flag[".concat(n,"]. Returning default value[false] : ").concat(e)),qe.off(s.EXCEPTION)}}(this);return dr.featureFlag(e,n,t),t},Sr.prototype.track=function(e,t){try{u.debug("track event : ".concat(JSON.stringify(e)));var r,n=this._convertEvent(e),i=this.userManager.resolveCurrentOrNull(t);i?(r=this.hackleUserResolver.resolve(i),this.core.track(n,r)):u.warn("invalid user")}catch(e){u.error("Unexpected exception while tracking event: $t")}},Sr.prototype.trackPageView=function(e){u.debug("tracking page view");var t=this.hackleUserResolver.resolve(this.userManager.currentUser);this.core.track({key:"$page_view"},t)},Sr.prototype.remoteConfig=function(e){return new mr(this.core,this.userManager,this.hackleUserResolver,e)},Sr.prototype.onReady=function(e,t){this.core.onReady(e,t=void 0===t?3e3:t)},Sr.prototype.onInitialized=function(e){return this.core.onInitialized({timeout:null==e?void 0:e.timeout})},Sr.prototype.close=function(){u.debug("Hackle Client is closing"),this.core.close()},Sr.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},Sr.prototype.showUserExplorer=function(){var e;null!=(e=this.devTools)&&e.userExplorer?(u.debug("UserExplorer opened."),fr.counter("user.explorer.show",{}).increment(),this.devTools.manager.userExplorer(this.devTools.userExplorer)):u.error("UserExplorer is not provided")},Sr.prototype.hideUserExplorer=function(){this.devTools?this.devTools.manager.close():u.warn("There is no active HackleDevtools.")},Sr),Er=(Ir.exposure=function(e,t,r,n){return new wr(n,e,t.experiment,t.variationId,t.variationKey,t.reason,r)},Ir.track=function(e,t,r,n){return new Tr(n,r,e,t)},Ir.remoteConfig=function(e,t,r,n){return new br(n,e,t.parameter,t.valueId,t.reason,r)},Ir.isExposure=function(e){return void 0!==e.experiment},Ir.isTrack=function(e){return void 0!==e.eventType},Ir.isRemoteConfig=function(e){return void 0!==e.parameter},Ir.isExposureDto=function(e){return"experimentId"in e&&void 0!==e.experimentId},Ir.isTrackDto=function(e){return"eventTypeId"in e&&void 0!==e.eventTypeId},Ir.isRemoteConfigDto=function(e){return"parameterId"in e&&void 0!==e.parameterId},Ir.prototype.toDto=function(){return{insertId:this.insertId,timestamp:this.timestamp,userId:this.user.identifiers[We.ID],identifiers:this.user.identifiers,userProperties:Ke.sanitize(this.user.properties),hackleProperties:Ke.sanitize(this.user.hackleProperties)}},Ir),wr=(ce(Rr,sr=Er),Rr.prototype.copyWithUser=function(e){return new Rr(this.timestamp,e,this.experiment,this.variationId,this.variationKey,this.decisionReason,this.properties,this.insertId)},Rr.prototype.toDto=function(){return h(h({},sr.prototype.toDto.call(this)),{experimentId:this.experiment.id,experimentKey:this.experiment.key,experimentType:this.experiment.type,experimentVersion:this.experiment.version,variationId:this.variationId,variationKey:this.variationKey,decisionReason:this.decisionReason.toString(),properties:this.properties})},Rr),Tr=(ce(Or,or=Er),Or.prototype.copyWithUser=function(e){return new Or(this.timestamp,e,this.eventType,this.event,this.insertId)},Or.prototype.toDto=function(){return h(h({},or.prototype.toDto.call(this)),{eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:Ke.sanitize(this.event.properties)})},Or),br=(ce(_r,ir=Er),_r.prototype.copyWithUser=function(e){return new _r(this.timestamp,e,this.parameter,this.valueId,this.decisionReason,this.properties,this.insertId)},_r.prototype.toDto=function(){return h(h({},ir.prototype.toDto.call(this)),{parameterId:this.parameter.id,parameterKey:this.parameter.key,parameterType:this.parameter.type,valueId:this.valueId,decisionReason:this.decisionReason.toString(),properties:Ke.sanitize(this.properties)})},_r);function _r(e,t,r,n,i,o,s){e=ir.call(this,e,t,s)||this;return e.parameter=r,e.valueId=n,e.decisionReason=i,e.properties=o,e}function Or(e,t,r,n,i){e=or.call(this,e,t,i)||this;return e.eventType=r,e.event=n,e}function Rr(e,t,r,n,i,o,s,a){e=sr.call(this,e,t,a)||this;return e.experiment=r,e.variationId=n,e.variationKey=i,e.decisionReason=o,e.properties=s,e}function Ir(e,t,r){void 0===r&&(r=ae.v4()),this.timestamp=e,this.user=t,this.insertId=r}function Sr(e,t,r,n,i){this.core=e,this.hackleUserResolver=t,this.sessionManager=r,this.userManager=n,this.devTools=i}function Nr(e,t,r,n){this.core=e,this.userManager=t,this.hackleUserResolver=r,this.user=n}function Ar(){}function Cr(){}function xr(){}function kr(e,t,r,n,i){t=ar.call(this,t)||this;return t.monitoringBaseUrl=e,t.httpClient=r,t.httpHeader=n,t.useBeacon=i,t.monitoringEndPoint="".concat(t.monitoringBaseUrl,"/metrics"),t.shouldUseBeacon=!1,t.start(),t.monitoringBaseUrl=e,t}function Pr(){}function Ur(){var e=null!==ur&&ur.apply(this,arguments)||this;return e.registries=new Kt(function(e,t){return e.id===t.id}),e}function Mr(e){this._timers=new Kt(function(e,t){return e.id===t.id}),this.id=e,this.noopTimer=new cr(e)}function Dr(e){this.id=e}function Lr(e){var t=new Array,r=new Array,n=new Array;return e.forEach(function(e){e instanceof Er?Er.isExposure(e)?t.push(e.toDto()):Er.isTrack(e)?r.push(e.toDto()):Er.isRemoteConfig(e)&&n.push(e.toDto()):Er.isExposureDto(e)?t.push(e):Er.isTrackDto(e)?r.push(e):Er.isRemoteConfigDto(e)&&n.push(e)}),{exposureEvents:t,trackEvents:r,remoteConfigEvents:n}}rn.prototype.dispatch=function(e,t,r){var n={},e=(n["X-HACKLE-SDK-KEY"]=this.sdkKey,n[ye]=this.headers[ye],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),Lr(e)),i=It.start();this.httpRequest.postRequest(this.dispatchUrl,e,n,function(e){t(e),hr.record("post.events",i,!0)},function(e){null!=r&&r(e),hr.record("post.events",i,!1)})},rn.prototype.dispatchXhrOrBeacon=function(e,t,r){var n,i,o;this.useBeacon?((n={})["X-HACKLE-SDK-KEY"]=this.sdkKey,n[ye]=this.headers[ye],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),i=Lr(e),o=It.start(),this.httpRequest.sendBeacon(this.beaconDispatchUrl,i,n,function(e){t(e),hr.record("post.events",o,!0)},function(e){null!=r&&r(e),hr.record("post.events",o,!1)})):this.dispatch(e,t,r)};var Fr=rn,jr=de.log,Vr=(g.prototype.getExperiments=function(){return Array.from(this.experiments.values())},g.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},g.prototype.getFeatureFlags=function(){return Array.from(this.featureFlags.values())},g.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},g.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},g.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},g.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},g.prototype.getContainerOrNull=function(e){return this.containers.get(e)},g.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},g.prototype.getRemoteConfigParameterOrNull=function(e){return this.remoteConfigParameters.get(e)},g.from=function(e){var t=this,r=f.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]});return new g(f.associateBy(f.mapNotNullOrUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),f.associateBy(f.mapNotNullOrUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),r,f.associate(e.events,function(e){return[e.key,new Re(e.id,e.key)]}),f.associateBy(f.mapNotNullOrUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),f.associate(e.containers,function(e){return[e.id,t.toContainer(e)]}),f.associate(e.parameterConfigurations,function(e){return[e.id,t.toParameterConfiguration(e)]}),f.associateBy(f.mapNotNullOrUndefined(e.remoteConfigParameters,function(e){return t.toRemoteConfigParameterOrNull(e)}),function(e){return e.key}))},g.toBucket=function(e){return new Oe(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new Xe(t,r,e)}))},g.toExperimentOrNull=function(e,t){var r=this,n=this.experimentStatusOrNull(t.execution.status),i=t.variations.map(function(e){return new _e(e.id,e.key,"DROPPED"===e.status,e.parameterConfigurationId)}),o=f.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),s=f.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,bt.IDENTIFIER)}),a=f.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,bt.PROPERTY)}),u=f.mapNotNullOrUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,bt.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new $e(t.id,t.key,e,t.identifierType,n,t.version,i,o,s,a,u,c,t.containerId,t.winnerVariationId)},g.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void jr.debug("Unsupported status [".concat(e,"]"))}},g.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new ke(t,e)},g.toTargetActionOrNull=function(e){var t=this.parseOrNull(Et,e.type);return t&&new xe(t,e.variationId,e.bucketId)},g.toTargetOrNull=function(e,t){var r=this,e=f.mapNotNullOrUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new Se(e)},g.toConditionOrNull=function(e,t){var r=this.toTargetKeyOrNull(e.key);if(r&&t.supports(r.type))return(t=this.toTargetMatchOrNull(e.match))&&new Ne(r,t)},g.toTargetKeyOrNull=function(e){var t=this.parseOrNull(wt,e.type);return t&&new Ae(t,e.name)},g.toTargetMatchOrNull=function(e){var t=this.parseOrNull(vt,e.type),r=this.parseOrNull(gt,e.operator),n=this.parseOrNull(mt,e.valueType);return t&&r&&n&&new Ce(t,r,n,e.values)},g.toSegmentOrNull=function(e){var t=this,r=this.parseOrNull(Tt,e.type);return r&&new Pe(e.id,e.key,r,f.mapNotNullOrUndefined(e.targets,function(e){return t.toTargetOrNull(e,bt.SEGMENT)}))},g.toContainer=function(e){var t=this;return new Qe(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},g.toContainerGroup=function(e){return new Ue(e.id,e.experiments)},g.toParameterConfiguration=function(e){return new Ze(e.id,f.associate(e.parameters,function(e){return[e.key,e.value]}))},g.toRemoteConfigParameterOrNull=function(e){var t=this,r=this.parseOrNull(mt,e.type),n=f.mapNotNullOrUndefined(e.targetRules,function(e){return t.toRemoteConfigTargetRuleOrNull(e,bt.PROPERTY)}),i=this.toRemoteConfigParameterValueOrNull(e.defaultValue);return r&&new Me(e.id,e.key,r,e.identifierType,n,i)},g.toRemoteConfigTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t);return t&&new De(e.key,e.name,t,e.bucketId,this.toRemoteConfigParameterValueOrNull(e.value))},g.toRemoteConfigParameterValueOrNull=function(e){return new Le(e.id,e.value)},g.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||jr.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},g),Hr=(tn.prototype.onReady=function(){return this.readyPromise},tn.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},tn.prototype.stop=function(){return this.isStarted=!1,this.currentTimeout&&(clearTimeout(this.currentTimeout),this.currentTimeout=null),this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null),Promise.resolve()},tn.prototype.get=function(){return this.workspace},tn.prototype.scheduleNextUpdate=function(){var e=this,t=this.errorRetryController.getDelay(),t=Math.max(t,this.updateInterval);this.currentTimeout=setTimeout(function(){e.currentRequest?e.syncOnCurrentRequestComplete=!0:e.fetch()},t)},tn.prototype.fetch=function(){function t(e){e=e.isSuccess,hr.record("get.workspace",i,e)}function e(){n.onRequestComplete()}var r,n=this,i=((r={})["X-HACKLE-SDK-KEY"]=this.sdkKey,r["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),r[ye]=this.headers[ye],r["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],It.start());this.currentRequest=this.httpRequest.getRequest(this.fetchUrl,r);null!=(r=this.currentRequest)&&r.responsePromise.then(function(e){n.onRequestResolved(e,t)},function(e){n.onRequestRejected(e,t)}).then(e,e),0<this.updateInterval&&this.scheduleNextUpdate()},tn.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},tn.prototype.onRequestResolved=function(e,t){if(this.isStarted){if(void 0!==e.statusCode&&200<=e.statusCode&&e.statusCode<400)this.errorRetryController.reset(),t({isSuccess:!0});else{if(t({isSuccess:!1}),401===e.statusCode||403===e.statusCode)return void this.readyPromiseRejecter(new Error("Invalid key provided."));this.errorRetryController.countError()}e.body&&(t=JSON.parse(e.body),this.workspace=Vr.from(t),this.readyPromiseResolver())}},tn.prototype.onRequestRejected=function(e,t){this.isStarted&&(t({isSuccess:!1}),this.errorRetryController.countError(),console.error("Error fetching data",e))},tn.prototype.close=function(){this.stop()},tn),Kr=(en.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*ve[Math.min(ve.length-1,this.errorCount)]+Math.round(1e3*Math.random())},en.prototype.countError=function(){this.errorCount<ve.length-1&&this.errorCount++},en.prototype.reset=function(){this.errorCount=0},en),r="model",o="name",c="type",p="vendor",d="version",y="mobile",v="tablet",zr=(m.parse=function(e){return{browser:m.getBrowser(e),cpu:m.getCPU(e),device:m.getDevice(e),engine:m.getEngine(e),os:m.getOS(e)}},m.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return m.mapper.rgx.call(t,e,m.regexes.browser),t.major=m.util.major(t.version),t},m.getCPU=function(e){var t={architecture:void 0};return m.mapper.rgx.call(t,e,m.regexes.cpu),t},m.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return m.mapper.rgx.call(t,e,m.regexes.device),t},m.getEngine=function(e){var t={name:void 0,version:void 0};return m.mapper.rgx.call(t,e,m.regexes.os),t},m.getOS=function(e){var t={name:void 0,version:void 0};return m.mapper.rgx.call(t,e,m.regexes.os),t},m.util={extend:function(e,t){var r,n={};for(r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},m.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o,d],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],d],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],d],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[o,d],[/(konqueror)\/([\w\.]+)/i],[[o,"Konqueror"],d],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],d],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],d],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],d],[/(Avast)\/([\w\.]+)/i],[[o,"Avast Secure Browser"],d],[/(AVG)\/([\w\.]+)/i],[[o,"AVG Secure Browser"],d],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],d],[/(focus)\/([\w\.]+)/i],[[o,"Firefox Focus"],d],[/(opt)\/([\w\.]+)/i],[[o,"Opera Touch"],d],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],d],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],d],[/(windowswechat qbcore)\/([\w\.]+)/i],[[o,"WeChat(Win) Desktop"],d],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],d],[/(brave)\/([\w\.]+)/i],[[o,"Brave"],d],[/(whale)\/([\w\.]+)/i],[[o,"Whale"],d],[/(qqbrowserlite)\/([\w\.]+)/i],[o,d],[/(QQ)\/([\d\.]+)/i],[o,d],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,d],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[o,d],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,d],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[d,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[d,[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[o,d],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[d,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],d],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],d],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[o,"Chrome Mobile"],d],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[d,[o,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[o,"Sailfish Browser"],d],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,d],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],d],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],d],[/fxios\/([\w\.-]+)/i],[d,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[d,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[d,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],d],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[d,(m.mapper={rgx:function(e,t){for(var r,n,i,o,s,a=0;a<t.length&&!o;){for(var u=t[a],c=t[a+1],l=r=0;l<u.length&&!o;)if(o=u[l++].exec(e))for(n=0;n<c.length;n++)s=o[++r],"object"==typeof(i=c[n])&&0<i.length?2==i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,s):this[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=s?s.replace(i[1],i[2]):void 0:this[i[0]]=s?i[1].call(this,s,i[2]):void 0:4==i.length&&(this[i[0]]=s?i[3].call(this,s.replace(i[1],i[2])):void 0):this[i]=s||void 0;a+=2}},str:function(e,t){for(var r in t)if("object"==typeof t[r]&&0<t[r].length){for(var n=0;n<t[r].length;n++)if(m.util.has(t[r][n],e))return"?"===r?void 0:r}else if(m.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(m.maps={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}}).browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[o,d],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],d],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[o,d]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",m.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",m.util.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",m.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[r,p,[c,v]],[/applecoremedia\/[\w\.]+ \((ipad)/],[r,[p,"Apple"],[c,v]],[/(apple\s{0,1}tv)/i],[[r,"Apple TV"],[p,"Apple"],[c,"smarttv"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[p,r,[c,v]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[r,[p,"Amazon"],[c,v]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[r,m.mapper.str,m.maps.device.amazon.model],[p,"Amazon"],[c,y]],[/android.+aft([bms])\sbuild/i],[r,[p,"Amazon"],[c,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[r,p,[c,y]],[/\((ip[honed|\s\w*]+);/i],[r,[p,"Apple"],[c,y]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[p,r,[c,y]],[/\(bb10;\s(\w+)/i],[r,[p,"BlackBerry"],[c,y]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[r,[p,"Asus"],[c,v]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[p,"Sony"],[r,"Xperia Tablet"],[c,v]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[p,"Sony"],[c,y]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[p,r,[c,"console"]],[/android.+;\s(shield)\sbuild/i],[r,[p,"Nvidia"],[c,"console"]],[/(playstation\s[34portablevi]+)/i],[r,[p,"Sony"],[c,"console"]],[/(sprint\s(\w+))/i],[[p,m.mapper.str,m.maps.device.sprint.vendor],[r,m.mapper.str,m.maps.device.sprint.model],[c,y]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[p,[r,/_/g," "],[c,y]],[/(nexus\s9)/i],[r,[p,"HTC"],[c,v]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[r,[p,"Huawei"],[c,y]],[/android.+(bah2?-a?[lw]\d{2})/i],[r,[p,"Huawei"],[c,v]],[/(microsoft);\s(lumia[\s\w]+)/i],[p,r,[c,y]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[r,[p,"Microsoft"],[c,"console"]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[p,"Microsoft"],[c,y]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[r,[p,"Motorola"],[c,y]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[p,"Motorola"],[c,v]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[p,m.util.trim],[r,m.util.trim],[c,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[p,"Samsung"],[c,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[r,[p,"Sharp"],[c,"smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[p,"Samsung"],r,[c,v]],[/smart-tv.+(samsung)/i],[p,[c,"smarttv"],r],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[p,"Samsung"],r,[c,y]],[/sie-(\w*)/i],[r,[p,"Siemens"],[c,y]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[p,"Nokia"],r,[c,y]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[p,"Acer"],[c,v]],[/android.+([vl]k\-?\d{3})\s+build/i],[r,[p,"LG"],[c,v]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[p,"LG"],r,[c,v]],[/(lg) netcast\.tv/i],[p,r,[c,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[r,[p,"LG"],[c,y]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[p,r,[c,v]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[r,[p,"Lenovo"],[c,v]],[/(lenovo)[_\s-]?([\w-]+)/i],[p,r,[c,y]],[/linux;.+((jolla));/i],[p,r,[c,y]],[/((pebble))app\/[\d\.]+\s/i],[p,r,[c,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[p,r,[c,y]],[/crkey/i],[[r,"Chromecast"],[p,"Google"],[c,"smarttv"]],[/android.+;\s(glass)\s\d/i],[r,[p,"Google"],[c,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[r,[p,"Google"],[c,v]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[r,[p,"Google"],[c,y]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[p,"Xiaomi"],[c,y]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[p,"Xiaomi"],[c,v]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[r,[p,"Meizu"],[c,y]],[/(mz)-([\w-]{2,})/i],[[p,"Meizu"],r,[c,y]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[r,[p,"OnePlus"],[c,y]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[r,[p,"RCA"],[c,v]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[r,[p,"Dell"],[c,v]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[r,[p,"Verizon"],[c,v]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[p,"Barnes & Noble"],r,[c,v]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[r,[p,"NuVision"],[c,v]],[/android.+;\s(k88)\sbuild/i],[r,[p,"ZTE"],[c,v]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[r,[p,"Swiss"],[c,y]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[r,[p,"Swiss"],[c,v]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[r,[p,"Zeki"],[c,v]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[p,"Dragon Touch"],r,[c,v]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[r,[p,"Insignia"],[c,v]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[r,[p,"NextBook"],[c,v]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[p,"Voice"],r,[c,y]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[p,"LvTel"],r,[c,y]],[/android.+;\s(PH-1)\s/i],[r,[p,"Essential"],[c,y]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[r,[p,"Envizen"],[c,v]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[p,r,[c,v]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[r,[p,"MachSpeed"],[c,v]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[p,r,[c,v]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[r,[p,"Rotor"],[c,v]],[/android.+(KS(.+))\s+build/i],[r,[p,"Amazon"],[c,v]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[p,r,[c,v]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[c,m.util.lowerize],p,r],[/[\s\/\(](smart-?tv)[;\)]/i],[[c,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[r,[p,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[d,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[o,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[o,d],[/rv\:([\w\.]{1,9}).+(gecko)/i],[d,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,d],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[[o,m.mapper.str,m.maps.os.windows],[d,m.mapper.str,m.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[d,m.mapper.str,m.maps.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],d],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[o,d],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],d],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],d],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[[o,"Linux"],d],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],d],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],d],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[o,"Linux"],d],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPhone"],[d,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPad"],[d,/_/g,"."]],[/(haiku)\s(\w+)/i],[o,d],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[d,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac"],[d,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[o,d]]},m),Br=(Zr.generate=function(e){t=void 0===e?{navigator:{userAgent:"",vendor:"",languages:[]},document:{location:t={hostname:"",pathname:"",host:"",search:"",protocol:""},title:""},location:t,screen:{width:"",height:""}}:e;var t,r=zr.parse(t.navigator.userAgent),n=r.browser,i=r.os,r=r.device,o=r.type?"mobile"===r.type?"Mobile":"ETC":"Web",s=(t.location.protocol||"").replace(":",""),a=t.screen,u="";try{u=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return{platform:o||"",browserName:n.name||"",browserMajorVersion:n.major||"",browserVersion:n.version||"",osName:i.name||"",osVersion:i.version||"",deviceModel:r.model||"",deviceType:r.type||"",deviceVendor:r.vendor||"",language:(null==(o=t.navigator.languages)?void 0:o[0])||"",userAgent:t.navigator.userAgent||"",pagePath:t.location.pathname||"",pageTitle:t.document.title||"",host:t.location.host||"",protocol:s,referrer:t.document.referrer||"",queryParameter:t.location.search||"",screenWidth:a.width||"",screenHeight:a.height||"",timeZone:u||""}},Zr),Gr=(Qr.extractDomain=function(e){var t=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,r=e.split("."),r=r[r.length-1],r=((4<r.length||"com"===r||"org"===r)&&(t=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i),e.match(t));return r?r[0]:""},Qr.prototype.getItem=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},Qr.prototype.getAllItem=function(e){var t=document.cookie.split("; ").map(function(e){return e.split("=")}),r=null==e?void 0:e.keyPrefix;return r?t.filter(function(e){var t=e[0];return e[1],t.startsWith(r)}):t},Qr.prototype.setItem=function(e,t,r){var r=h(h({},this.options),r),n=r.isSecure,i="",o="",s="",a=(r.isCrossSubdomain&&(i=(a=Qr.extractDomain(document.location.hostname))?"; domain=."+a:""),r.days&&((a=new Date).setTime(a.getTime()+24*r.days*60*60*1e3),o="; expires="+a.toUTCString()),r.isCrossSite&&(n=!0,s="; SameSite=None"),n&&(s+="; secure"),e+"="+encodeURIComponent(t)+o+"; path=/"+i+s);return document.cookie=a},Qr.prototype.removeItem=function(e,t){this.setItem(e,"",h(h({},t),{days:-1}))},new Qr({days:3650,isCrossSubdomain:!0})),qr=(Jr.prototype.getQueryParam=function(e){return this.getQueryParams(function(){return!0})[e]||""},Jr.prototype.getQueryParams=function(e){for(var t={},r=0,n=this.search.substring(1).split("&");r<n.length;r++){var i=n[r].split("="),o=i[0],i=i[1];e(o,i)&&(t[o]=decodeURIComponent(i))}return t},Jr),Yr=(Wr.prototype.resolve=function(e){var t=nn(),t=(new Je).addIdentifiers(e.identifiers||{}).add(We.ID,e.id||t).add(We.DEVICE,e.deviceId||t).add(We.HACKLE_DEVICE,t);return a.isNotNullOrUndefined(e.userId)&&t.add(We.USER,e.userId),{identifiers:t.build(),properties:this._userProperties(e.properties),hackleProperties:this._getHackleProperties()}},Wr.prototype.resolveCurrentUser=function(){return this.resolve(this.userManager.currentUser)},Wr.prototype._userProperties=function(e){void 0===e&&(e={});var t,r={};return"undefined"!=typeof window&&(t=new qr(window.location.search),r=h(h({},t.getQueryParams(function(e){return e.startsWith("utm_")})),t.getQueryParams(function(e){return["gclid","fbclid"].includes(e)}))),h(h({},r),e)},Wr.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?Br.generate(window):e)||{}},Wr),$r=(Xr.initialize=function(){Gr.getItem("_hackle_hid")||an()},Xr.reInitialize=function(){an()},Xr);function Xr(){}function Wr(e){this.userManager=e,$r.initialize()}function Jr(e){this.search=e}function Qr(e){this.options=e=void 0===e?{days:0,isCrossSubdomain:!1,isSecure:!1,isCrossSite:!1}:e}function Zr(){}function m(){}function en(){this.errorCount=0}function tn(e,t,r){var n=this;this.workspace=null,this.sdkKey=e,this.httpRequest=t,this.isStarted=!1,this.updateInterval=r.updateInterval,this.fetchUrl=r.fetchUrl,this.headers=r.headers,this.readyPromiseResolver=function(){},this.readyPromiseRejecter=function(){},this.readyPromise=new Promise(function(e,t){n.readyPromiseResolver=e,n.readyPromiseRejecter=t}),this.currentTimeout=null,this.errorRetryController=new Kr,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function g(e,t,r,n,i,o,s,a){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n,this.segments=i,this.containers=o,this.parameterConfigurations=s,this.remoteConfigParameters=a}function rn(e,t,r){this.sdkKey=e,this.httpRequest=t,this.headers=r.headers,this.dispatchUrl=r.dispatchUrl,this.beaconDispatchUrl=r.beaconDispatchUrl||"",this.useBeacon=r.useBeacon||!1}function nn(){var e=Gr.getItem("_hackle_id");return e||Gr.getItem("_hackle_hid")||an()}function on(e){Gr.setItem("_hackle_id",e)}function sn(){Gr.removeItem("_hackle_id")}function an(){var e=ae.v4();return Gr.setItem("_hackle_hid",e),e}function un(e){return e&&e.Math==Math&&e}function E(e){try{return!!e()}catch(e){return!0}}var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},v=un("object"==typeof globalThis&&globalThis)||un("object"==typeof window&&window)||un("object"==typeof self&&self)||un("object"==typeof y&&y)||function(){return this}()||Function("return this")(),c={},r=!E(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),p=!E(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),cn=Function.prototype.call,o=p?cn.bind(cn):function(){return cn.apply(cn,arguments)},d={},e={}.propertyIsEnumerable,ln=Object.getOwnPropertyDescriptor,y=ln&&!e.call({1:2},1);d.f=y?function(e){e=ln(this,e);return!!e&&e.enumerable}:e;function fn(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function pn(e){return xn(Cn(e),8,-1)}function dn(e){if(null==e)throw Mn("Can't call method on "+e);return e}function hn(e){return Dn(Ln(e))}function w(e){return"function"==typeof e}function yn(e){return"object"==typeof e?null!==e:Fn(e)}function vn(e,t){return arguments.length<2?(r=jn[e],Vn(r)?r:void 0):jn[e]&&jn[e][t];var r}function mn(e){try{return Wn(e)}catch(e){return"Object"}}function gn(e){if(Jn(e))return e;throw Zn(Qn(e)+" is not a function")}function En(e,t){return null==(e=e[t])?void 0:ei(e)}function wn(t,r){try{si(oi,t,{value:r,configurable:!0,writable:!0})}catch(e){oi[t]=r}return r}function Tn(e){return li(ci(e))}function bn(e){return"Symbol("+(void 0===e?"":e)+")_"+vi(++hi+yi,36)}function _n(e){var t;return mi(Ti,e)&&(Ei||"string"==typeof Ti[e])||(t="Symbol."+e,Ei&&mi(bi,e)?Ti[e]=bi[e]:Ti[e]=(wi&&_i?_i:Oi)(t)),Ti[e]}function On(e){return e=function(e,t){if(!Ii(e)||Si(e))return e;var r=Ni(e,xi);if(r){if(r=Ri(r,e,t=void 0===t?"default":t),!Ii(r)||Si(r))return r;throw Ci("Can't convert object to primitive value")}return Ai(e,t=void 0===t?"number":t)}(e,"string"),ki(e)?e:e+""}function Rn(e){return Ui?Pi.createElement(e):{}}function In(e){if(Bi(e))return e;throw qi(Gi(e)+" is not an object")}var y=p,e=Function.prototype,Sn=e.bind,Nn=e.call,An=y&&Sn.bind(Nn,Nn),e=y?function(e){return e&&An(e)}:function(e){return e&&function(){return Nn.apply(e,arguments)}},Sn=e,Cn=Sn({}.toString),xn=Sn("".slice),y=E,kn=pn,Pn=Object,Un=e("".split),Sn=y(function(){return!Pn("z").propertyIsEnumerable(0)})?function(e){return"String"==kn(e)?Un(e,""):Pn(e)}:Pn,Mn=TypeError,Dn=Sn,Ln=dn,Fn=w,jn=v,Vn=w,y=e({}.isPrototypeOf),Hn=vn("navigator","userAgent")||"",Kn=Hn,zn=v.process,Bn=v.Deno,zn=zn&&zn.versions||Bn&&Bn.version,Bn=zn&&zn.v8,zn=b=!(b=Bn?0<(T=Bn.split("."))[0]&&T[0]<4?1:+(T[0]+T[1]):b)&&Kn&&(!(T=Kn.match(/Edge\/(\d+)/))||74<=T[1])&&(T=Kn.match(/Chrome\/(\d+)/))?+T[1]:b,Gn=zn,Bn=E,Kn=!!Object.getOwnPropertySymbols&&!Bn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Gn&&Gn<41}),T=Kn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,qn=vn,Yn=w,$n=y,Xn=Object,b=T?function(e){return"symbol"==typeof e}:function(e){var t=qn("Symbol");return Yn(t)&&$n(t.prototype,Xn(e))},Wn=String,Jn=w,Qn=mn,Zn=TypeError,ei=gn,ti=o,ri=w,ni=yn,ii=TypeError,Bn={exports:{}},oi=v,si=Object.defineProperty,ai=wn,ai=v["__core-js_shared__"]||ai("__core-js_shared__",{}),ui=ai,ci=((Bn.exports=function(e,t){return ui[e]||(ui[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),dn),li=Object,fi=Tn,pi=e({}.hasOwnProperty),_=Object.hasOwn||function(e,t){return pi(fi(e),t)},di=e,hi=0,yi=Math.random(),vi=di(1..toString),di=v,mi=_,gi=bn,Ei=Kn,wi=T,Ti=(0,Bn.exports)("wks"),bi=di.Symbol,_i=bi&&bi.for,Oi=wi?bi:bi&&bi.withoutSetter||gi,Ri=o,Ii=yn,Si=b,Ni=En,Ai=function(e,t){var r,n;if("string"===t&&ri(r=e.toString)&&!ni(n=ti(r,e)))return n;if(ri(r=e.valueOf)&&!ni(n=ti(r,e)))return n;if("string"!==t&&ri(r=e.toString)&&!ni(n=ti(r,e)))return n;throw ii("Can't convert object to primitive value")},Ci=TypeError,xi=_n("toPrimitive"),ki=b,Kn=yn,Pi=v.document,Ui=Kn(Pi)&&Kn(Pi.createElement),Mi=Rn,T=!r&&!E(function(){return 7!=Object.defineProperty(Mi("div"),"a",{get:function(){return 7}}).a}),Di=o,Li=d,Fi=fn,ji=hn,Vi=On,Hi=_,Ki=T,zi=Object.getOwnPropertyDescriptor,di=(c.f=r?zi:function(e,t){if(e=ji(e),t=Vi(t),Ki)try{return zi(e,t)}catch(e){}if(Hi(e,t))return Fi(!Di(Li.f,e,t),e[t])},{}),gi=r&&E(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Bi=yn,Gi=String,qi=TypeError,Yi=T,$i=In,Xi=On,Wi=TypeError,Ji=Object.defineProperty,Qi=Object.getOwnPropertyDescriptor,Zi=(di.f=r?gi?function(e,t,r){var n;return $i(e),t=Xi(t),$i(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=Qi(e,t))&&n.writable&&(e[t]=r.value,r={configurable:("configurable"in r?r:n).configurable,enumerable:("enumerable"in r?r:n).enumerable,writable:!1}),Ji(e,t,r)}:Ji:function(e,t,r){if($i(e),t=Xi(t),$i(r),Yi)try{return Ji(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Wi("Accessors not supported");return"value"in r&&(e[t]=r.value),e},di),eo=fn,b=r?function(e,t,r){return Zi.f(e,t,eo(1,r))}:function(e,t,r){return e[t]=r,e},Kn={exports:{}},d=r,T=_,O=Function.prototype,to=d&&Object.getOwnPropertyDescriptor,T=T(O,"name"),T={EXISTS:T,PROPER:T&&"something"===function(){}.name,CONFIGURABLE:T&&(!d||to(O,"name").configurable)},d=w,to=ai,ro=e(Function.toString);d(to.inspectSource)||(to.inspectSource=function(e){return ro(e)});function no(e){return bo[e]||(bo[e]=To(e))}function io(e,t,r,n){var i=(n=n||{}).enumerable,o=void 0!==n.name?n.name:t;if(Fo(r)&&Vo(r,o,n),n.global)i?e[t]=r:Ho(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=r:jo.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function oo(e){return(e=+e)!=e||0==e?0:Bo(e)}function so(e,t){return(e=Go(e))<0?qo(e+t,0):Yo(e,t)}function R(e){return 0<(e=e.length)?Xo($o(e),9007199254740991):0}function ao(a){return function(e,t,r){var n,i=Wo(e),o=Qo(i),s=Jo(r,o);if(a&&t!=t){for(;s<o;)if((n=i[s++])!=n)return!0}else for(;s<o;s++)if((a||s in i)&&i[s]===t)return a||s||0;return!a&&-1}}function uo(e,t){var r,n=es(e),i=0,o=[];for(r in n)!Zo(rs,r)&&Zo(n,r)&&ns(o,r);for(;t.length>i;)!Zo(n,r=t[i++])||~ts(o,r)||ns(o,r);return o}function co(e,t,r){for(var n=fs(t),i=ds.f,o=ps.f,s=0;s<n.length;s++){var a=n[s];ls(e,a)||r&&ls(r,a)||i(e,a,o(t,a))}}function lo(e,t){return(e=gs[ms(e)])==ws||e!=Es&&(ys(t)?hs(t):!!t)}function I(e,t){var r,n,i,o,s=e.target,a=e.global,u=e.stat;if(r=a?Ts:u?Ts[s]||Rs(s,{}):(Ts[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(o=bs(r,n))&&o.value:r[n],!Ss(a?n:s+(u?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Is(i,o)}(e.sham||o&&o.sham)&&_s(i,"sham",!0),Os(r,n,i,e)}}var fo,po,ho,yo,vo,mo,go,Eo,O=to.inspectSource,d=w,to=O,wo=v.WeakMap,d=d(wo)&&/native code/.test(to(wo)),To=bn,bo=(0,Bn.exports)("keys"),to={},wo=e,_o=yn,Oo=b,Ro=_,Bn=ai,S=no,N=to,Io=v.TypeError,So=v.WeakMap,d=(go=d||Bn.state?(fo=Bn.state||(Bn.state=new So),po=wo(fo.get),ho=wo(fo.has),yo=wo(fo.set),vo=function(e,t){if(ho(fo,e))throw new Io("Object already initialized");return t.facade=e,yo(fo,e,t),t},mo=function(e){return po(fo,e)||{}},function(e){return ho(fo,e)}):(N[Eo=S("state")]=!0,vo=function(e,t){if(Ro(e,Eo))throw new Io("Object already initialized");return t.facade=e,Oo(e,Eo,t),t},mo=function(e){return Ro(e,Eo)?e[Eo]:{}},function(e){return Ro(e,Eo)}),{set:vo,get:mo,has:go,enforce:function(e){return go(e)?mo(e):vo(e,{})},getterFor:function(t){return function(e){if(_o(e)&&(e=mo(e)).type===t)return e;throw Io("Incompatible receiver, "+t+" required")}}}),Bn=E,No=w,Ao=_,Co=r,xo=T.CONFIGURABLE,ko=O,Po=d.enforce,Uo=d.get,Mo=Object.defineProperty,Do=Co&&!Bn(function(){return 8!==Mo(function(){},"length",{value:8}).length}),Lo=String(String).split("String"),So=Kn.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Ao(e,"name")||xo&&e.name!==t)&&(Co?Mo(e,"name",{value:t,configurable:!0}):e.name=t),Do&&r&&Ao(r,"arity")&&e.length!==r.arity&&Mo(e,"length",{value:r.arity});try{r&&Ao(r,"constructor")&&r.constructor?Co&&Mo(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=Po(e);return Ao(r,"source")||(r.source=Lo.join("string"==typeof t?t:"")),e},Fo=(Function.prototype.toString=So(function(){return No(this)&&Uo(this).source||ko(this)},"toString"),w),jo=di,Vo=Kn.exports,Ho=wn,wo={},Ko=Math.ceil,zo=Math.floor,Bo=Math.trunc||function(e){e=+e;return(0<e?zo:Ko)(e)},Go=oo,qo=Math.max,Yo=Math.min,$o=oo,Xo=Math.min,Wo=hn,Jo=so,Qo=R,N={includes:ao(!0),indexOf:ao(!1)},Zo=_,es=hn,ts=N.indexOf,rs=to,ns=e([].push),S=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],is=uo,os=S.concat("length","prototype"),Bn=(wo.f=Object.getOwnPropertyNames||function(e){return is(e,os)},{}),So=(Bn.f=Object.getOwnPropertySymbols,vn),ss=wo,as=Bn,us=In,cs=e([].concat),Bn=So("Reflect","ownKeys")||function(e){var t=ss.f(us(e)),r=as.f;return r?cs(t,r(e)):t},ls=_,fs=Bn,ps=c,ds=di,hs=E,ys=w,vs=/#|\.prototype\./,ms=lo.normalize=function(e){return String(e).replace(vs,".").toLowerCase()},gs=lo.data={},Es=lo.NATIVE="N",ws=lo.POLYFILL="P",So=lo,Ts=v,bs=c.f,_s=b,Os=io,Rs=wn,Is=co,Ss=So,Bn=!E(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Ns=_,As=w,Cs=Tn,xs=no("IE_PROTO"),ks=Object,Ps=ks.prototype,Bn=Bn?ks.getPrototypeOf:function(e){var t,e=Cs(e);return Ns(e,xs)?e[xs]:(t=e.constructor,As(t)&&e instanceof t?t.prototype:e instanceof ks?Ps:null)},Us=w,Ms=String,Ds=TypeError,Ls=e,Fs=In,js=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=Ls(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return Fs(e),function(e){if("object"==typeof e||Us(e))return;throw Ds("Can't set "+Ms(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),Vs={},Hs=uo,Ks=S,A=Object.keys||function(e){return Hs(e,Ks)},zs=di,Bs=In,Gs=hn,qs=A;Vs.f=r&&!gi?Object.defineProperties:function(e,t){Bs(e);for(var r,n=Gs(t),i=qs(t),o=i.length,s=0;s<o;)zs.f(e,r=i[s++],n[r]);return e};function Ys(){}function $s(e){e.write(fa("")),e.close();var t=e.parentWindow.Object;return e=null,t}function Xs(e,t){return Ea(e),void 0===t?e:wa?Ta(e,t):function(){return e.apply(t,arguments)}}function Ws(e){return void 0!==e&&(ba.Array===e||Oa[_a]===e)}function Js(e){if(null!=e)return xa(e,Pa)||xa(e,"@@iterator")||ka[Ca(e)]}function Qs(e,t){if(t=arguments.length<2?Fa(e):t,Ma(t))return Da(Ua(t,e));throw ja(La(e)+" is not iterable")}function Zs(e,t,r){var n,i;Ha(e);try{if(!(n=Ka(e,"return"))){if("throw"===t)throw r;return r}n=Va(n,e)}catch(e){i=!0,n=e}if("throw"===t)throw r;if(i)throw n;return Ha(n),r}function ea(e,t){this.stopped=e,this.result=t}function ta(e,t,r){function n(e){return o&&Qa(o,"normal",e),new ea(!0,e)}function i(e){return p?(Ga(e),y?v(e[0],e[1],n):v(e[0],e[1])):y?v(e,n):v(e)}var o,s,a,u,c,l,f=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),v=za(t,f);if(d)o=e.iterator;else if(h)o=e;else{if(!(r=Ja(e)))throw Za(qa(e)+" is not iterable");if(Ya(r)){for(s=0,a=$a(e);s<a;s++)if((u=i(e[s]))&&Xa(eu,u))return u;return new ea(!1)}o=Wa(e,r)}for(c=(d?e:o).next;!(l=Ba(c,o)).done;){try{u=i(l.value)}catch(e){Qa(o,"throw",e)}if("object"==typeof u&&u&&Xa(eu,u))return u}return new ea(!1)}function ra(e){if("Symbol"===tu(e))throw TypeError("Cannot convert a Symbol value to a string");return ru(e)}function na(e,t){var r,n=2<arguments.length?arguments[2]:void 0,i=su(gu,this);return uu?r=uu(new vu,i?au(this):gu):(r=i?this:lu(gu),fu(r,yu,"Error")),void 0!==t&&fu(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:nu(e)}(t)),hu&&fu(r,"stack",function(e,t){if(va&&"string"==typeof e&&!da.prepareStackTrace)for(;t--;)e=ha(e,ya,"");return e}(r.stack,1)),i=r,ma(t=n)&&"cause"in t&&ga(i,"cause",t.cause),du(e,mu,{that:n=[]}),fu(r,"errors",n),r}var ia,A=vn("document","documentElement"),oa=In,sa=Vs,aa=S,gi=to,ua=A,ca=Rn,la=no("IE_PROTO"),fa=function(e){return"<script>"+e+"<\/script>"},pa=function(){try{ia=new ActiveXObject("htmlfile")}catch(e){}var e,t;pa="undefined"==typeof document||document.domain&&ia?$s(ia):((t=ca("iframe")).style.display="none",ua.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(fa("document.F=Object")),e.close(),e.F);for(var r=aa.length;r--;)delete pa.prototype[aa[r]];return pa()},Vs=(gi[la]=!0,Object.create||function(e,t){var r;return null!==e?(Ys.prototype=oa(e),r=new Ys,Ys.prototype=null,r[la]=e):r=pa(),void 0===t?r:sa.f(r,t)}),da=Error,ha=e("".replace),S=String(da("zxcasd").stack),ya=/\n\s*at [^:]*:[^\n]*/,va=ya.test(S),ma=yn,ga=b,Ea=gn,wa=p,Ta=e(e.bind),gi={},ba=gi,_a=_n("iterator"),Oa=Array.prototype,S={},S=(S[_n("toStringTag")]="z","[object z]"===String(S)),C=S,Ra=w,Ia=pn,Sa=_n("toStringTag"),Na=Object,Aa="Arguments"==Ia(function(){return arguments}()),C=C?Ia:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=Na(e),Sa))?t:Aa?Ia(e):"Object"==(t=Ia(e))&&Ra(e.callee)?"Arguments":t},Ca=C,xa=En,ka=gi,Pa=_n("iterator"),Ua=o,Ma=gn,Da=In,La=mn,Fa=Js,ja=TypeError,Va=o,Ha=In,Ka=En,za=Xs,Ba=o,Ga=In,qa=mn,Ya=Ws,$a=R,Xa=y,Wa=Qs,Ja=Js,Qa=Zs,Za=TypeError,eu=ea.prototype,tu=C,ru=String,nu=ra,iu=fn,x=!E(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",iu(1,7)),7!==e.stack)}),ou=I,su=y,au=Bn,uu=js,cu=co,lu=Vs,fu=b,pu=fn,du=ta,hu=x,yu=_n("toStringTag"),vu=Error,mu=[].push,gu=(uu?uu(na,vu):cu(na,vu,{name:!0}),na.prototype=lu(vu.prototype,{constructor:pu(1,na),message:pu(1,""),name:pu(1,"AggregateError")})),x=(ou({global:!0,constructor:!0,arity:2},{AggregateError:na}),_n),cu=Vs,pu=di.f,Eu=x("unscopables"),wu=Array.prototype;null==wu[Eu]&&pu(wu,Eu,{configurable:!0,value:cu(null)});function Tu(e){wu[Eu][e]=!0}var bu,ou=E,x=w,pu=Bn,cu=io,_u=_n("iterator"),k=!1;[].keys&&("next"in(P=[].keys())?(pu=pu(pu(P)))!==Object.prototype&&(bu=pu):k=!0);function Ou(e,t,r){(e=e&&!r?e.prototype:e)&&!Nu(e,Au)&&Su(e,Au,{configurable:!0,value:t})}function Ru(){return this}function Iu(e,t,r,n,i,o,s){var a=r,u=t,c=void 0;function l(e){if(e===i&&v)return v;if(!$u&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}}u+=" Iterator",a.prototype=xu(Cu,{next:ku(+!c,n)}),Pu(a,u,!1),Uu[u]=Mu;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[Xu]||h["@@iterator"]||i&&h[i],v=!$u&&y||l(i);if((n="Array"==t&&h.entries||y)&&(a=ju(n.call(new e)))!==Object.prototype&&a.next&&(ju(a)!==Yu&&(Vu?Vu(a,Yu):Fu(a[Xu])||zu(a,Xu,Ru)),Hu(a,c,!0)),Gu&&"values"==i&&y&&"values"!==y.name&&(qu?Ku(h,"name","values"):(d=!0,v=function(){return Lu(y,this)})),i)if(f={values:l("values"),keys:o?v:l("keys"),entries:l("entries")},s)for(p in f)!$u&&!d&&p in h||zu(h,p,f[p]);else Du({target:t,proto:!0,forced:$u||d},f);return h[Xu]!==v&&zu(h,Xu,v,{name:i}),Bu[t]=v,f}x((bu=null==bu||ou(function(){var e={};return bu[_u].call(e)!==e})?{}:bu)[_u])||cu(bu,_u,function(){return this});var P={IteratorPrototype:bu,BUGGY_SAFARI_ITERATORS:k},Su=di.f,Nu=_,Au=_n("toStringTag"),Cu=P.IteratorPrototype,xu=Vs,ku=fn,Pu=Ou,Uu=gi,Mu=function(){return this},Du=I,Lu=o,Fu=w,ju=Bn,Vu=js,Hu=Ou,Ku=b,zu=io,Bu=gi,Gu=T.PROPER,qu=T.CONFIGURABLE,Yu=P.IteratorPrototype,$u=P.BUGGY_SAFARI_ITERATORS,Xu=_n("iterator"),Wu=hn,pu=Tu,x=gi,ou=d,cu=di.f,k=Iu,T=r,Ju=ou.set,Qu=ou.getterFor("Array Iterator"),P=k(Array,"Array",function(e,t){Ju(this,{type:"Array Iterator",target:Wu(e),index:0,kind:t})},function(){var e=Qu(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),gi=x.Arguments=x.Array;if(pu("keys"),pu("values"),pu("entries"),T&&"values"!==gi.name)try{cu(gi,"name",{value:"values"})}catch(vw){}function Zu(e){var e=oc(e),t=sc.f;ac&&e&&!e[uc]&&t(e,uc,{configurable:!0,get:function(){return this}})}function ec(e,t){if(cc(t,e))return e;throw lc("Incorrect invocation")}function tc(){}function rc(e){if(!fc(e))return!1;try{return yc(tc,hc,e),!0}catch(e){return!1}}function nc(e){if(!fc(e))return!1;switch(pc(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return gc||!!mc(vc,dc(e))}catch(e){return!0}}var ic=C,ou=(S||io(Object.prototype,"toString",S?{}.toString:function(){return"[object "+ic(this)+"]"},{unsafe:!0}),"process"==pn(v.process)),oc=vn,sc=di,ac=r,uc=_n("species"),cc=y,lc=TypeError,k=e,x=E,fc=w,pc=C,dc=O,hc=[],yc=vn("Reflect","construct"),vc=/^\s*(?:class|function)\b/,mc=k(vc.exec),gc=!vc.exec(tc);nc.sham=!0;function Ec(e,t){var r,e=Rc(e).constructor;if(void 0===e||null==(r=Rc(e)[Ic]))return t;if(bc(e=r))return e;throw Oc(_c(e)+" is not a constructor")}var wc,Tc,pu=!yc||x(function(){var e;return rc(rc.call)||!rc(Object)||!rc(function(){e=!0})||e})?nc:rc,bc=pu,_c=mn,Oc=TypeError,Rc=In,Ic=_n("species"),T=Function.prototype,Sc=T.apply,Nc=T.call,cu="object"==typeof Reflect&&Reflect.apply||(p?Nc.bind(Sc):function(){return Nc.apply(Sc,arguments)}),gi=e([].slice),Ac=TypeError,S=/(?:ipad|iphone|ipod).*applewebkit/i.test(Hn),Cc=v,xc=cu,y=Xs,kc=w,Pc=_,C=E,Uc=A,Mc=gi,Dc=Rn,k=S,x=ou,T=Cc.setImmediate,p=Cc.clearImmediate,Lc=Cc.process,Fc=Cc.Dispatch,jc=Cc.Function,A=Cc.MessageChannel,Vc=Cc.String,Hc=0,Kc={};try{wc=Cc.location}catch(vw){}function zc(e){return function(){qc(e)}}function Bc(e){qc(e.data)}function Gc(e){Cc.postMessage(Vc(e),wc.protocol+"//"+wc.host)}var qc=function(e){var t;Pc(Kc,e)&&(t=Kc[e],delete Kc[e],t())};T&&p||(T=function(e){var t=arguments.length,r=1;if(t<r)throw Ac("Not enough arguments");var n=kc(e)?e:jc(e),i=Mc(arguments,1);return Kc[++Hc]=function(){xc(n,void 0,i)},Tc(Hc),Hc},p=function(e){delete Kc[e]},x?Tc=function(e){Lc.nextTick(zc(e))}:Fc&&Fc.now?Tc=function(e){Fc.now(zc(e))}:A&&!k?(k=(x=new A).port2,x.port1.onmessage=Bc,Tc=y(k.postMessage,k)):Cc.addEventListener&&kc(Cc.postMessage)&&!Cc.importScripts&&wc&&"file:"!==wc.protocol&&!C(Gc)?(Tc=Gc,Cc.addEventListener("message",Bc,!1)):Tc="onreadystatechange"in Dc("script")?function(e){Uc.appendChild(Dc("script")).onreadystatechange=function(){Uc.removeChild(this),qc(e)}}:function(e){setTimeout(zc(e),0)});function Yc(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function $c(){this.head=null,this.tail=null}function Xc(e){var r,n;this.promise=new e(function(e,t){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=e,n=t}),this.resolve=vl(r),this.reject=vl(n)}var Wc,Jc,Qc,Zc,el,tl,rl,A={set:T,clear:p},x=v,y=/ipad|iphone|ipod/i.test(Hn)&&void 0!==x.Pebble,k=/web0s(?!.*chrome)/i.test(Hn),C=v,T=Xs,p=c.f,nl=A.set,x=S,c=y,S=k,il=ou,y=C.MutationObserver||C.WebKitMutationObserver,k=C.document,ol=C.process,sl=C.Promise,p=p(C,"queueMicrotask"),p=p&&p.value,S=(p||(Wc=function(){var e,t;for(il&&(e=ol.domain)&&e.exit();Jc;){t=Jc.fn,Jc=Jc.next;try{t()}catch(e){throw Jc?Zc():Qc=void 0,e}}Qc=void 0,e&&e.enter()},Zc=x||il||S||!y||!k?!c&&sl&&sl.resolve?((x=sl.resolve(void 0)).constructor=sl,rl=T(x.then,x),function(){rl(Wc)}):il?function(){ol.nextTick(Wc)}:(nl=T(nl,C),function(){nl(Wc)}):(el=!0,tl=k.createTextNode(""),new y(Wc).observe(tl,{characterData:!0}),function(){tl.data=el=!el})),p||function(e){e={fn:e,next:void 0};Qc&&(Qc.next=e),Jc||(Jc=e,Zc()),Qc=e}),al=v,c=($c.prototype={add:function(e){e={item:e,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},$c),sl=v.Promise,x="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,T=!x&&!ou&&"object"==typeof window&&"object"==typeof document,C=v,ul=sl,k=w,y=So,cl=O,p=_n,ll=T,fl=x,pl=zn,dl=(ul&&ul.prototype,p("species")),hl=!1,yl=k(C.PromiseRejectionEvent),O={CONSTRUCTOR:y("Promise",function(){var e=cl(ul),t=e!==String(ul);if(!t&&66===pl)return!0;if(!pl||pl<51||!/native code/.test(e)){var e=new ul(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[dl]=r,!(hl=e.then(function(){})instanceof r))return!0}return!t&&(ll||fl)&&!yl}),REJECTION_EVENT:yl,SUBCLASSING:hl},T={},vl=gn;T.f=function(e){return new Xc(e)};function ml(e,t){var r,n,i,o,s=t.value,a=1==t.state,u=a?e.ok:e.fail,c=e.resolve,l=e.reject,f=e.domain;try{u?(a||(2===t.rejection&&(o=t,_l(Al,bl,function(){var e=o.facade;Tl?Kl.emit("rejectionHandled",e):$l("rejectionhandled",e,o.value)})),t.rejection=1),!0===u?r=s:(f&&f.enter(),r=u(s),f&&(f.exit(),i=!0)),r===e.promise?l(Vl("Promise-chain cycle")):(n=ql(r))?_l(n,r,c,l):c(r)):l(s)}catch(e){f&&!i&&f.exit(),l(e)}}var gl,El,wl,x=I,Tl=ou,bl=v,_l=o,p=io,k=js,C=Ou,y=Zu,Ol=gn,Rl=w,Il=yn,Sl=ec,Nl=Ec,Al=A.set,Cl=S,xl=Yc,kl=c,A=d,S=sl,c=T,Pl=O.CONSTRUCTOR,Ul=O.REJECTION_EVENT,Ml=O.SUBCLASSING,Dl=A.getterFor("Promise"),Ll=A.set,A=S&&S.prototype,Fl=S,jl=A,Vl=bl.TypeError,Hl=bl.document,Kl=bl.process,zl=c.f,Bl=zl,Gl=!!(Hl&&Hl.createEvent&&bl.dispatchEvent),ql=function(e){var t;return!(!Il(e)||!Rl(t=e.then))&&t},Yl=function(r,i){r.notified||(r.notified=!0,Cl(function(){for(var e,n,t=r.reactions;e=t.get();)ml(e,r);r.notified=!1,i&&!r.rejection&&(n=r,_l(Al,bl,function(){var e,t=n.facade,r=n.value;if(Xl(n)&&(e=xl(function(){Tl?Kl.emit("unhandledRejection",r,t):$l("unhandledrejection",t,r)}),n.rejection=Tl||Xl(n)?2:1,e.error))throw e.value}))}))},$l=function(e,t,r){var n;Gl?((n=Hl.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),bl.dispatchEvent(n)):n={promise:t,reason:r},!Ul&&(t=bl["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=al.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},Xl=function(e){return 1!==e.rejection&&!e.parent},Wl=function(t,r,n){return function(e){t(r,e,n)}},Jl=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,Yl(e,!0))},Ql=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw Vl("Promise can't be resolved itself");var n=ql(e);n?Cl(function(){var t={done:!1};try{_l(n,e,Wl(Ql,t,r),Wl(Jl,t,r))}catch(e){Jl(t,e,r)}}):(r.value=e,r.state=1,Yl(r,!1))}catch(e){Jl({done:!1},e,r)}}};if(Pl&&(jl=(Fl=function(e){Sl(this,jl),Ol(e),_l(gl,this);var t=Dl(this);try{e(Wl(Ql,t),Wl(Jl,t))}catch(e){Jl(t,e)}}).prototype,(gl=function(e){Ll(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new kl,rejection:!1,state:0,value:void 0})}).prototype=p(jl,"then",function(e,t){var r=Dl(this),n=zl(Nl(this,Fl));return r.parent=!0,n.ok=!Rl(e)||e,n.fail=Rl(t)&&t,n.domain=Tl?Kl.domain:void 0,0==r.state?r.reactions.add(n):Cl(function(){ml(n,r)}),n.promise}),El=function(){var e=new gl,t=Dl(e);this.promise=e,this.resolve=Wl(Ql,t),this.reject=Wl(Jl,t)},c.f=zl=function(e){return e===Fl||void 0===e?new El:Bl(e)},Rl(S))&&A!==Object.prototype){wl=A.then,Ml||p(A,"then",function(e,t){var r=this;return new Fl(function(e,t){_l(wl,r,e,t)}).then(e,t)},{unsafe:!0});try{delete A.constructor}catch(vw){}k&&k(A,jl)}x({global:!0,constructor:!0,wrap:!0,forced:Pl},{Promise:Fl}),C(Fl,"Promise",!1),y("Promise");var Zl=_n("iterator"),ef=!1;try{var tf=0,rf={next:function(){return{done:!!tf++}},return:function(){ef=!0}};rf[Zl]=function(){return this},Array.from(rf,function(){throw 2})}catch(vw){}function nf(e,t){if(!t&&!ef)return!1;var r=!1;try{var n={};n[Zl]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function of(e,t){return bf(e),_f(t)&&t.constructor===e?t:((0,(e=Of.f(e)).resolve)(t),e.promise)}function sf(i){return function(e,t){var r,e=zf(Bf(e)),t=Kf(t),n=e.length;return t<0||n<=t?i?"":void 0:(r=qf(e,t))<55296||56319<r||t+1===n||(n=qf(e,t+1))<56320||57343<n?i?Gf(e,t):r:i?Yf(e,t,t+2):n-56320+(r-55296<<10)+65536}}function af(e,t){if(e){if(e[rp]!==ip)try{tp(e,rp,ip)}catch(t){e[rp]=ip}if(e[np]||tp(e,np,t),Zf[t])for(var r in ep)if(e[r]!==ep[r])try{tp(e,r,ep[r])}catch(t){e[r]=ep[r]}}}var uf,cf=sl,c=O.CONSTRUCTOR||!nf(function(e){cf.all(e).then(void 0,function(){})}),lf=o,ff=gn,pf=T,df=Yc,hf=ta,S=(I({target:"Promise",stat:!0,forced:c},{all:function(e){var a=this,t=pf.f(a),u=t.resolve,c=t.reject,r=df(function(){var n=ff(a.resolve),i=[],o=0,s=1;hf(e,function(e){var t=o++,r=!1;s++,lf(n,a,e).then(function(e){r||(r=!0,i[t]=e,--s)||u(i)},c)}),--s||u(i)});return r.error&&c(r.value),t.promise}}),I),Ml=sl,p=vn,k=w,A=io,x=Ml&&Ml.prototype,yf=(S({target:"Promise",proto:!0,forced:O.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),k(Ml)&&(Pl=p("Promise").prototype.catch,x.catch!==Pl)&&A(x,"catch",Pl,{unsafe:!0}),o),vf=gn,mf=T,gf=Yc,Ef=ta,wf=(I({target:"Promise",stat:!0,forced:c},{race:function(e){var r=this,n=mf.f(r),i=n.reject,t=gf(function(){var t=vf(r.resolve);Ef(e,function(e){yf(t,r,e).then(n.resolve,i)})});return t.error&&i(t.value),n.promise}}),o),Tf=T,bf=(I({target:"Promise",stat:!0,forced:O.CONSTRUCTOR},{reject:function(e){var t=Tf.f(this);return wf(t.reject,void 0,e),t.promise}}),In),_f=yn,Of=T,C=I,y=O.CONSTRUCTOR,Rf=of,If=(vn("Promise"),C({target:"Promise",stat:!0,forced:y},{resolve:function(e){return Rf(this,e)}}),o),Sf=gn,Nf=T,Af=Yc,Cf=ta,xf=(I({target:"Promise",stat:!0},{allSettled:function(e){var a=this,t=Nf.f(a),u=t.resolve,r=t.reject,n=Af(function(){var n=Sf(a.resolve),i=[],o=0,s=1;Cf(e,function(e){var t=o++,r=!1;s++,If(n,a,e).then(function(e){r||(r=!0,i[t]={status:"fulfilled",value:e},--s)||u(i)},function(e){r||(r=!0,i[t]={status:"rejected",reason:e},--s)||u(i)})}),--s||u(i)});return n.error&&r(n.value),t.promise}}),o),kf=gn,Pf=vn,Uf=T,Mf=Yc,Df=ta,rf=(I({target:"Promise",stat:!0},{any:function(e){var u=this,c=Pf("AggregateError"),t=Uf.f(u),l=t.resolve,f=t.reject,r=Mf(function(){var n=kf(u.resolve),i=[],o=0,s=1,a=!1;Df(e,function(e){var t=o++,r=!1;s++,xf(n,u,e).then(function(e){r||a||(a=!0,l(e))},function(e){r||a||(r=!0,i[t]=e,--s)||f(new c(i,"No one promise resolved"))})}),--s||f(new c(i,"No one promise resolved"))});return r.error&&f(r.value),t.promise}}),I),S=sl,k=E,Lf=vn,Ff=w,jf=Ec,Vf=of,Ml=io,Hf=S&&S.prototype,A=(rf({target:"Promise",proto:!0,real:!0,forced:!!S&&k(function(){Hf.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=jf(this,Lf("Promise")),e=Ff(t);return this.then(e?function(e){return Vf(r,t()).then(function(){return e})}:t,e?function(e){return Vf(r,t()).then(function(){throw e})}:t)}}),Ff(S)&&(p=Lf("Promise").prototype.finally,Hf.finally!==p)&&Ml(Hf,"finally",p,{unsafe:!0}),e),Kf=oo,zf=ra,Bf=dn,Gf=A("".charAt),qf=A("".charCodeAt),Yf=A("".slice),$f=(sf(!1),sf(!0)),Xf=ra,x=d,Pl=Iu,Wf=x.set,Jf=x.getterFor("String Iterator"),c=(Pl(String,"String",function(e){Wf(this,{type:"String Iterator",string:Xf(e),index:0})},function(){var e=Jf(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=$f(t,r),e.index+=t.length,{value:t,done:!1})}),v),O=(c.Promise,Rn("span").classList),C=O&&O.constructor&&O.constructor.prototype,y=C===Object.prototype?void 0:C,Qf=v,Zf={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},sl=y,ep=P,tp=b,rf=_n,rp=rf("iterator"),np=rf("toStringTag"),ip=ep.values;for(uf in Zf)af(Qf[uf]&&Qf[uf].prototype,uf);af(sl,"DOMTokenList");function op(e,t,r){(t=Cp(t))in e?xp.f(e,t,kp(0,r)):e[t]=r}function sp(e){if(9007199254740991<e)throw Wp("Maximum allowed index exceeded");return e}function ap(e,t){return new(void 0===(r=Jp(e=e)&&(r=e.constructor,Qp(r)&&(r===td||Jp(r.prototype))||Zp(r)&&null===(r=r[ed]))?void 0:r)?td:r)(0===t?0:t);var r}function up(t){return 51<=nd||!rd(function(){var e=[];return(e.constructor={})[id]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function cp(e,t){if(!delete e[t])throw hd("Cannot delete property "+dd(t)+" of "+dd(e))}function lp(p){var d=1==p,h=2==p,y=3==p,v=4==p,m=6==p,g=7==p,E=5==p||m;return function(e,t,r,n){for(var i,o,s=bd(e),a=Td(s),u=wd(t,r),c=_d(a),l=0,t=n||Od,f=d?t(e,c):h||g?t(e,0):void 0;l<c;l++)if((E||l in a)&&(o=u(i=a[l],l,s),p))if(d)f[l]=o;else if(o)switch(p){case 3:return!0;case 5:return i;case 6:return l;case 2:Rd(f,i)}else switch(p){case 4:return!1;case 7:Rd(f,i)}return m?-1:y||v?v:f}}function fp(e,t){var r=[][e];return!!r&&Id(function(){r.call(null,t||function(){return 1},1)})}function pp(u){var c=1==u;return function(e,t,r){for(var n,i=Fd(e),o=Ld(i),s=Dd(t,r),a=jd(o);0<a--;)if(s(n=o[a],a,i))switch(u){case 0:return n;case 1:return a}return c?-1:void 0}}function dp(e,t,r,n,i,o,s,a){for(var u,c,l=i,f=0,p=!!s&&Gd(s,a);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<o&&Kd(u)?(c=zd(u),l=dp(e,t,u,c,l,o-1)-1):(Bd(l+1),e[l]=u),l++),f++;return l}function hp(c){return function(e,t,r,n){wh(t);var i=Th(e),o=bh(i),s=_h(i),a=c?s-1:0,u=c?-1:1;if(r<2)for(;;){if(a in o){n=o[a],a+=u;break}if(a+=u,c?a<0:s<=a)throw Oh("Reduce of empty array with no initial value")}for(;c?0<=a:a<s;a+=u)a in o&&(n=t(n,o[a],a,i));return n}}function yp(e,t,r){for(var n=Kh(e),i=Hh(t,n),o=Hh(void 0===r?n:r,n),s=Bh(Gh(o-i,0)),a=0;i<o;i++,a++)zh(s,a,e[i]);return s.length=a,s}function vp(e,t){var r=e.length,n=Yh(r/2);if(r<8){for(var i,o,s=e,a=t,u=s.length,c=1;c<u;){for(i=s[o=c];o&&0<a(s[o-1],i);)s[o]=s[--o];o!==c++&&(s[o]=i)}return s}for(var l=e,f=vp(qh(e,0,n),t),p=vp(qh(e,n),t),d=t,h=f.length,y=p.length,v=0,m=0;v<h||m<y;)l[v+m]=v<h&&m<y?d(f[v],p[m])<=0?f[v++]:p[m++]:v<h?f[v++]:p[m++];return l}function mp(e){My(e,Hy,{value:{objectID:"O"+Ky++,weakData:{}}})}function gp(e,t,r){for(var n in t)Qy(e,n,t[n],r);return e}var Ep,wp,Tp,bp,_p,Op,Rp,Ip=T,Sp=Yc,Np=(I({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Ip.f(this),e=Sp(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),In),Ap=Zs,Cp=On,xp=di,kp=fn,Pp=Xs,Up=o,Mp=Tn,Dp=Ws,Lp=pu,Fp=R,jp=op,Vp=Qs,Hp=Js,Kp=Array,zp=(I({target:"Array",stat:!0,forced:!nf(function(e){Array.from(e)})},{from:function(e){var t=Mp(e),e=Lp(this),r=arguments.length,n=1<r?arguments[1]:void 0,i=void 0!==n;i&&(n=Pp(n,2<r?arguments[2]:void 0));var o,s,a,u,c,l,r=Hp(t),f=0;if(!r||this===Kp&&Dp(r))for(o=Fp(t),s=e?new this(o):Kp(o);f<o;f++)l=i?n(t[f],f):t[f],jp(s,f,l);else for(c=(u=Vp(t,r)).next,s=e?new this:[];!(a=Up(c,u)).done;f++)l=i?function(e,t,r,n){try{return n?t(Np(r)[0],r[1]):t(r)}catch(t){Ap(e,"throw",t)}}(u,n,[a.value,f],!0):a.value,jp(s,f,l);return s.length=f,s}}),pn),k=Array.isArray||function(e){return"Array"==zp(e)},Bp=(I({target:"Array",stat:!0},{isArray:k}),pu),Gp=op,qp=Array,Yp=(I({target:"Array",stat:!0,forced:E(function(){function e(){}return!(qp.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(Bp(this)?this:qp)(t);e<t;)Gp(r,e,arguments[e++]);return r.length=t,r}}),Tn),$p=R,Xp=oo,S=Tu,Wp=(I({target:"Array",proto:!0},{at:function(e){var t=Yp(this),r=$p(t),e=Xp(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),S("at"),TypeError),Jp=k,Qp=pu,Zp=yn,ed=_n("species"),td=Array,rd=E,nd=zn,id=_n("species"),Ml=I,p=E,od=k,sd=yn,ad=Tn,ud=R,cd=sp,ld=op,fd=ap,A=up,x=zn,pd=_n("isConcatSpreadable"),Pl=51<=x||!p(function(){var e=[];return e[pd]=!1,e.concat()[0]!==e}),O=A("concat"),dd=(Ml({target:"Array",proto:!0,arity:1,forced:!Pl||!O},{concat:function(e){for(var t,r,n,i,o,s=ad(this),a=fd(s,0),u=0,c=-1,l=arguments.length;c<l;c++)if(i=n=-1===c?s:arguments[c],o=void 0,!sd(i)||(void 0!==(o=i[pd])?!o:!od(i)))cd(u+1),ld(a,u++,n);else for(r=ud(n),cd(u+r),t=0;t<r;t++,u++)t in n&&ld(a,u,n[t]);return a.length=u,a}}),mn),hd=TypeError,yd=Tn,vd=so,md=R,gd=cp,Ed=Math.min,C=Tu,wd=(I({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=yd(this),n=md(r),i=vd(e,n),o=vd(t,n),e=2<arguments.length?arguments[2]:void 0,s=Ed((void 0===e?n:vd(e,n))-o,n-i),a=1;for(o<i&&i<o+s&&(a=-1,o+=s-1,i+=s-1);0<s--;)o in r?r[i]=r[o]:gd(r,i),i+=a,o+=a;return r}}),C("copyWithin"),Xs),Td=Sn,bd=Tn,_d=R,Od=ap,Rd=e([].push),y={forEach:lp(0),map:lp(1),filter:lp(2),some:lp(3),every:lp(4),find:lp(5),findIndex:lp(6),filterReject:lp(7)},Id=E,Sd=y.every,Nd=(I({target:"Array",proto:!0,forced:!fp("every")},{every:function(e){return Sd(this,e,1<arguments.length?arguments[1]:void 0)}}),Tn),Ad=so,Cd=R,P=Tu,xd=(I({target:"Array",proto:!0},{fill:function(e){for(var t=Nd(this),r=Cd(t),n=arguments.length,i=Ad(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,o=void 0===n?r:Ad(n,r);i<o;)t[i++]=e;return t}}),P("fill"),y.filter),b=(I({target:"Array",proto:!0,forced:!up("filter")},{filter:function(e){return xd(this,e,1<arguments.length?arguments[1]:void 0)}}),I),kd=y.find,rf=Tu,Pd=!0,sl=("find"in[]&&Array(1).find(function(){Pd=!1}),b({target:"Array",proto:!0,forced:Pd},{find:function(e){return kd(this,e,1<arguments.length?arguments[1]:void 0)}}),rf("find"),I),Ud=y.findIndex,T=Tu,Md=!0,Dd=("findIndex"in[]&&Array(1).findIndex(function(){Md=!1}),sl({target:"Array",proto:!0,forced:Md},{findIndex:function(e){return Ud(this,e,1<arguments.length?arguments[1]:void 0)}}),T("findIndex"),Xs),Ld=Sn,Fd=Tn,jd=R,S={findLast:pp(0),findLastIndex:pp(1)},Vd=S.findLast,x=Tu,Hd=(I({target:"Array",proto:!0},{findLast:function(e){return Vd(this,e,1<arguments.length?arguments[1]:void 0)}}),x("findLast"),S.findLastIndex),p=Tu,Kd=(I({target:"Array",proto:!0},{findLastIndex:function(e){return Hd(this,e,1<arguments.length?arguments[1]:void 0)}}),p("findLastIndex"),k),zd=R,Bd=sp,Gd=Xs,A=dp,qd=A,Yd=Tn,$d=R,Xd=oo,Wd=ap,Jd=(I({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Yd(this),r=$d(t),n=Wd(t,0);return n.length=qd(n,t,t,r,0,void 0===e?1:Xd(e)),n}}),A),Qd=gn,Zd=Tn,eh=R,th=ap,rh=(I({target:"Array",proto:!0},{flatMap:function(e){var t,r=Zd(this),n=eh(r);return Qd(e),(t=th(r,0)).length=Jd(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),y.forEach),Ml=fp("forEach")?[].forEach:function(e){return rh(this,e,1<arguments.length?arguments[1]:void 0)},nh=(I({target:"Array",proto:!0,forced:[].forEach!=Ml},{forEach:Ml}),N.includes),Pl=Tu,O=(I({target:"Array",proto:!0,forced:E(function(){return!Array(1).includes()})},{includes:function(e){return nh(this,e,1<arguments.length?arguments[1]:void 0)}}),Pl("includes"),I),ih=N.indexOf,C=fp,oh=e([].indexOf),sh=!!oh&&1/oh([1],1,-0)<0,P=C("indexOf"),b=(O({target:"Array",proto:!0,forced:sh||!P},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return sh?oh(this,e,t)||0:ih(this,e,t)}}),I),rf=Sn,ah=hn,sl=fp,uh=e([].join),T=rf!=Object,x=sl("join",","),ch=(b({target:"Array",proto:!0,forced:T||!x},{join:function(e){return uh(ah(this),void 0===e?",":e)}}),cu),lh=hn,fh=oo,ph=R,S=fp,dh=Math.min,hh=[].lastIndexOf,yh=!!hh&&1/[1].lastIndexOf(1,-0)<0,p=S("lastIndexOf"),A=yh||!p?function(e){if(yh)return ch(hh,this,arguments)||0;var t=lh(this),r=ph(t),n=r-1;for((n=1<arguments.length?dh(n,fh(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:hh,vh=(I({target:"Array",proto:!0,forced:A!==[].lastIndexOf},{lastIndexOf:A}),y.map),Ml=(I({target:"Array",proto:!0,forced:!up("map")},{map:function(e){return vh(this,e,1<arguments.length?arguments[1]:void 0)}}),I),mh=Tn,gh=R,Eh=sp,Pl=E(function(){return 4294967297!==[].push.call({length:4294967296},1)}),N=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),wh=(Ml({target:"Array",proto:!0,arity:1,forced:Pl||N},{push:function(e){var t=mh(this),r=gh(t),n=arguments.length;Eh(r+n);for(var i=0;i<n;i++)t[r]=arguments[i],r++;return t.length=r}}),gn),Th=Tn,bh=Sn,_h=R,Oh=TypeError,C={left:hp(!1),right:hp(!0)},Rh=C.left,O=zn,P=ou,Ih=(I({target:"Array",proto:!0,forced:!fp("reduce")||!P&&79<O&&O<83},{reduce:function(e){var t=arguments.length;return Rh(this,e,t,1<t?arguments[1]:void 0)}}),C.right),rf=zn,sl=ou,b=(I({target:"Array",proto:!0,forced:!fp("reduceRight")||!sl&&79<rf&&rf<83},{reduceRight:function(e){return Ih(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),I),Sh=k,Nh=e([].reverse),T=[1,2],x=(b({target:"Array",proto:!0,forced:String(T)===String(T.reverse())},{reverse:function(){return Sh(this)&&(this.length=this.length),Nh(this)}}),I),Ah=k,Ch=pu,xh=yn,kh=so,Ph=R,Uh=hn,Mh=op,cu=_n,Dh=gi,S=up("slice"),Lh=cu("species"),Fh=Array,jh=Math.max,Vh=(x({target:"Array",proto:!0,forced:!S},{slice:function(e,t){var r,n,i,o=Uh(this),s=Ph(o),a=kh(e,s),u=kh(void 0===t?s:t,s);if(Ah(o)&&(r=o.constructor,(r=Ch(r)&&(r===Fh||Ah(r.prototype))||xh(r)&&null===(r=r[Lh])?void 0:r)===Fh||void 0===r))return Dh(o,a,u);for(n=new(void 0===r?Fh:r)(jh(u-a,0)),i=0;a<u;a++,i++)a in o&&Mh(n,i,o[a]);return n.length=i,n}}),y.some),Hh=(I({target:"Array",proto:!0,forced:!fp("some")},{some:function(e){return Vh(this,e,1<arguments.length?arguments[1]:void 0)}}),so),Kh=R,zh=op,Bh=Array,Gh=Math.max,qh=yp,Yh=Math.floor,p=vp,A=Hn.match(/firefox\/(\d+)/i),Ml=!!A&&+A[1],Pl=/MSIE|Trident/.test(Hn),N=Hn.match(/AppleWebKit\/(\d+)\./),P=!!N&&+N[1],O=I,C=e,$h=gn,Xh=Tn,Wh=R,Jh=cp,Qh=ra,ou=E,Zh=p,sl=fp,ey=Ml,ty=Pl,ry=zn,ny=P,iy=[],oy=C(iy.sort),sy=C(iy.push),rf=ou(function(){iy.sort(void 0)}),b=ou(function(){iy.sort(null)}),T=sl("sort"),ay=!ou(function(){if(ry)return ry<70;if(!(ey&&3<ey)){if(ty)return!0;if(ny)return ny<603;for(var e,t,r,n="",i=65;i<76;i++){switch(e=String.fromCharCode(i),i){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(r=0;r<47;r++)iy.push({k:e+r,v:t})}for(iy.sort(function(e,t){return t.v-e.v}),r=0;r<iy.length;r++)e=iy[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),gi=(O({target:"Array",proto:!0,forced:rf||!b||!T||!ay},{sort:function(e){void 0!==e&&$h(e);var t=Xh(this);if(ay)return void 0===e?oy(t):oy(t,e);for(var r,n,i=[],o=Wh(t),s=0;s<o;s++)s in t&&sy(i,t[s]);for(Zh(i,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:Qh(e)>Qh(t)?1:-1})),r=i.length,s=0;s<r;)t[s]=i[s++];for(;s<o;)Jh(t,s++);return t}}),Zu("Array"),I),uy=Tn,cy=so,ly=oo,fy=R,py=sp,dy=ap,hy=op,yy=cp,cu=up("splice"),vy=Math.max,my=Math.min,x=(gi({target:"Array",proto:!0,forced:!cu},{splice:function(e,t){var r,n,i,o,s,a,u=uy(this),c=fy(u),l=cy(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,my(vy(ly(t),0),c-l)),py(c+r-n),i=dy(u,n),o=0;o<n;o++)(s=l+o)in u&&hy(i,o,u[s]);if(r<(i.length=n)){for(o=l;o<c-n;o++)a=o+r,(s=o+n)in u?u[a]=u[s]:yy(u,a);for(o=c;c-n+r<o;o--)yy(u,o-1)}else if(n<r)for(o=c-n;l<o;o--)a=o+r-1,(s=o+n-1)in u?u[a]=u[s]:yy(u,a);for(o=0;o<r;o++)u[o+l]=arguments[o+2];return u.length=c-n+r,i}}),Tu("flat"),Tu("flatMap"),I),gy=Tn,Ey=R,wy=cp,Ty=sp,S=1!==[].unshift(0),A=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),Hn=(x({target:"Array",proto:!0,arity:1,forced:S||A},{unshift:function(e){var t=gy(this),r=Ey(t),n=arguments.length;if(n){Ty(r+n);for(var i=r;i--;){var o=i+n;i in t?t[o]=t[i]:wy(t,o)}for(var s=0;s<n;s++)t[s]=arguments[s]}return t.length=r+n}}),c.Array,{exports:{}}),N={},by=pn,_y=hn,Oy=wo.f,Ry=yp,Iy="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=(N.f=function(e){if(!Iy||"Window"!=by(e))return Oy(_y(e));var t=e;try{return Oy(t)}catch(t){return Ry(Iy)}},E(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e))&&Object.defineProperty(e,"a",{value:8})})),Ml=E,Sy=yn,Ny=pn,Ay=p,Cy=Object.isExtensible,Pl=Ml(function(){Cy(1)})||Ay?function(e){return!!Sy(e)&&(!Ay||"ArrayBuffer"!=Ny(e))&&(!Cy||Cy(e))}:Cy,zn=!E(function(){return Object.isExtensible(Object.preventExtensions({}))}),xy=I,ky=e,P=to,Py=yn,Uy=_,My=di.f,Dy=wo,Ly=N,Fy=Pl,jy=zn,Vy=!1,Hy=bn("meta"),Ky=0,zy=Hn.exports={enable:function(){zy.enable=function(){},Vy=!0;var i=Dy.f,o=ky([].splice),e={};e[Hy]=1,i(e).length&&(Dy.f=function(e){for(var t=i(e),r=0,n=t.length;r<n;r++)if(t[r]===Hy){o(t,r,1);break}return t},xy({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ly.f}))},fastKey:function(e,t){if(!Py(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Uy(e,Hy)){if(!Fy(e))return"F";if(!t)return"E";mp(e)}return e[Hy].objectID},getWeakData:function(e,t){if(!Uy(e,Hy)){if(!Fy(e))return!0;if(!t)return!1;mp(e)}return e[Hy].weakData},onFreeze:function(e){return jy&&Vy&&Fy(e)&&!Uy(e,Hy)&&mp(e),e}},By=(P[Hy]=!0,w),Gy=yn,qy=js,C=I,sl=v,Yy=e,ou=So,$y=io,O=Hn.exports,Xy=ta,Wy=ec,rf=w,Jy=yn,b=E,T=nf,gi=Ou,Qy=io,Zy=di.f,ev=Vs,tv=gp,rv=Xs,nv=ec,iv=ta,ov=Iu,sv=Zu,av=r,uv=Hn.exports.fastKey,cv=d.set,lv=d.getterFor;function fv(e){var r=Yy(Op[e]);$y(Op,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(Tp&&!Jy(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return Tp&&!Jy(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(Tp&&!Jy(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}cu=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},x={getConstructor:function(e,r,n,i){function o(e,t,r){var n,i=u(e),o=s(e,t);return o?o.value=r:(i.last=o={index:n=uv(t,!0),key:t,value:r,previous:t=i.last,next:void 0,removed:!1},i.first||(i.first=o),t&&(t.next=o),av?i.size++:e.size++,"F"!==n&&(i.index[n]=o)),e}function s(e,t){var r,e=u(e),n=uv(t);if("F"!==n)return e.index[n];for(r=e.first;r;r=r.next)if(r.key==t)return r}var e=e(function(e,t){nv(e,a),cv(e,{type:r,index:ev(null),first:void 0,last:void 0,size:0}),av||(e.size=0),null!=t&&iv(t,e[i],{that:e,AS_ENTRIES:n})}),a=e.prototype,u=lv(r);return tv(a,{clear:function(){for(var e=u(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,av?e.size=0:this.size=0},delete:function(e){var t,r,n=u(this),e=s(this,e);return e&&(t=e.next,r=e.previous,delete n.index[e.index],e.removed=!0,r&&(r.next=t),t&&(t.previous=r),n.first==e&&(n.first=t),n.last==e&&(n.last=r),av?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=rv(e,1<arguments.length?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),tv(a,n?{get:function(e){e=s(this,e);return e&&e.value},set:function(e,t){return o(this,0===e?0:e,t)}}:{add:function(e){return o(this,e=0===e?0:e,e)}}),av&&Zy(a,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",i=lv(t),o=lv(n);ov(e,t,function(e,t){cv(this,{type:n,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:{value:e.target=void 0,done:!0}},r?"entries":"values",!r,!0),sv(t)}},wp=-1!==(S="Map").indexOf("Map"),Tp=-1!==S.indexOf("Weak"),bp=wp?"set":"add",_p=sl.Map,Op=_p&&_p.prototype,A={},ou(S,!rf(Rp=_p)||!(Tp||Op.forEach&&!b(function(){(new _p).entries().next()})))?(Rp=x.getConstructor(cu,S,wp,bp),O.enable()):ou(S,!0)&&(c=(Ep=new Rp)[bp](Tp?{}:-0,1)!=Ep,p=b(function(){Ep.has(1)}),Ml=T(function(e){new _p(e)}),to=!Tp&&b(function(){for(var e=new _p,t=5;t--;)e[bp](t,t);return!e.has(-0)}),Ml||(((Rp=cu(function(e,t){Wy(e,Op);r=new _p,e=e,n=Rp,qy&&By(e=e.constructor)&&e!==n&&Gy(e=e.prototype)&&e!==n.prototype&&qy(r,e);var r,n=r;return null!=t&&Xy(t,n[bp],{that:n,AS_ENTRIES:wp}),n})).prototype=Op).constructor=Rp),(p||to)&&(fv("delete"),fv("has"),wp)&&fv("get"),(to||c)&&fv(bp),Tp)&&Op.clear&&delete Op.clear,C({global:!0,constructor:!0,forced:(A.Map=Rp)!=_p},A),gi(Rp,S),Tp||x.setStrong(Rp,S,wp);function pv(e,t){for(var r=0,n=vv(t),i=new e(n);r<n;)i[r]=t[r++];return i}function dv(e,t,r,n){for(var i,o,s,a=Ev(e),u=gv(a),c=mv(t,r),l=bv(null),f=Tv(u),p=0;p<f;p++)s=u[p],(o=wv(c(s,p,a)))in l?Rv(l[o],s):l[o]=[s];if(n&&(i=n(a))!==Ov)for(o in l)l[o]=_v(i,l[o]);return l}function hv(e){for(var t,r,n=Cv(this),i=Av(n),o=Nv(e,1<arguments.length?arguments[1]:void 0),s=new kv,a=xv(i),u=0;u<a;u++)t=o(r=i[u],u,n),Uv(s,t)?Dv(Pv(s,t),r):Mv(s,t,[r]);return s}function yv(e){return Vv[e].prototype}var vv=R,mv=Xs,gv=Sn,Ev=Tn,wv=On,Tv=R,bv=Vs,_v=pv,Ov=Array,Rv=e([].push),Iv=dv,_=Tu,Sv=(I({target:"Array",proto:!0},{group:function(e){return Iv(this,e,1<arguments.length?arguments[1]:void 0)}}),_("group"),dv),wo=Tu,Nv=(I({target:"Array",proto:!0,forced:!fp("groupBy")},{groupBy:function(e){return Sv(this,e,1<arguments.length?arguments[1]:void 0)}}),wo("groupBy"),Xs),N=e,Av=Sn,Cv=Tn,xv=R,kv=vn("Map"),Pl=kv.prototype,Pv=N(Pl.get),Uv=N(Pl.has),Mv=N(Pl.set),Dv=N([].push),zn=Tu,P=hv,js=(I({target:"Array",proto:!0,name:"groupToMap",forced:!fp("groupByToMap")},{groupByToMap:P}),zn("groupByToMap"),Tu),Lv=(I({target:"Array",proto:!0},{groupToMap:hv}),js("groupToMap"),R),Fv=hn,So=Tu,jv=Array,Vv=(I({target:"Array",proto:!0},{toReversed:function(){for(var e=Fv(this),t=jv,r=Lv(e),n=new t(r),i=0;i<r;i++)n[i]=e[r-i-1];return n}}),So("toReversed"),v),Hn=I,Hv=gn,Kv=hn,zv=pv,sl=Tu,Bv=Array,Gv=e(yv("Array").sort),O=(Hn({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&Hv(e);var t=Kv(this),t=zv(Bv,t);return Gv(t,e)}}),sl("toSorted"),I),ou=Tu,qv=sp,Yv=R,$v=so,Xv=hn,Wv=oo,Jv=Array,Qv=Math.max,Zv=Math.min,em=(O({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,i,o,s=Xv(this),a=Yv(s),u=$v(e,a),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,a-u):(r=e-2,Zv(Qv(Wv(t),0),a-u)),i=qv(a+r-n),o=Jv(i);c<u;c++)o[c]=s[c];for(;c<u+r;c++)o[c]=arguments[c-u+2];for(;c<i;c++)o[c]=s[c+n-r];return o}}),ou("toSpliced"),R),tm=oo,rm=RangeError,nm=hn,im=Array;I({target:"Array",proto:!0},{with:function(e,t){var r=nm(this),n=im,i=t,o=em(r),s=(e=tm(e))<0?o+e:e;if(o<=s||s<0)throw rm("Incorrect index");for(var a=new n(o),u=0;u<o;u++)a[u]=u===s?i:r[u];return a}});b=v,Ml=ai,cu=w,p=Bn,to=io,c=_n("asyncIterator"),C=b.AsyncIterator,A=Ml.AsyncIteratorPrototype;if(A)ew=A;else if(cu(C))ew=C.prototype;else if(Ml.USE_FUNCTION_CONSTRUCTOR||b.USE_FUNCTION_CONSTRUCTOR)try{Dg=p(p(p(Function("return async function*(){}()")()))),p(Dg)===Object.prototype&&(ew=Dg)}catch(vw){}cu((ew=ew||{})[c])||to(ew,c,function(){return this});function om(e,t,r){var n=e.done;hm.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function sm(e){ym(this,{type:"AsyncFromSyncIterator",iterator:pm(e),next:e.next})}function am(e,t,r,n){try{var i=Sm(e,"return");if(i)return Im("Promise").resolve(Rm(i,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function um(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,s,a){var e={iterator:e,next:_m(Om(e).next)},u=km("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==s;return!f&&p||Am(s),new u(function(r,n){var i=function(e){am(c,n,e,n)},o=function(){try{if(p&&f)try{xm(l)}catch(e){i(e)}u.resolve(Cm(Nm(t,c))).then(function(e){try{if(Cm(e).done)p?(a.length=l,r(a)):r(!y&&(h||void 0));else{var t=e.value;try{f?u.resolve(p?s(t,l):s(t)).then(function(e){if(d)o();else if(h)e?o():am(c,r,!1,n);else if(p)try{a[l++]=e,o()}catch(e){i(e)}else e?am(c,r,y||t,n):o()},i):(a[l++]=t,o())}catch(e){i(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};o()})}}function cm(e,t){if(!Ym||!qm(e)||!Ym(e))return!1;for(var r,n=0,i=e.length;n<i;)if(!("string"==typeof(r=e[n++])||t&&void 0===r))return!1;return 0!==i}function lm(e,t,r){r.get&&$m(r.get,t,{getter:!0}),r.set&&$m(r.set,t,{setter:!0}),Xm.f(e,t,r)}var fm=o,pm=In,gi=Vs,dm=En,x=gp,S=d,_=ew,hm=vn("Promise"),ym=S.set,vm=S.getterFor("AsyncFromSyncIterator"),wo=(sm.prototype=x(gi(_),{next:function(){var n=vm(this);return new hm(function(e,t){var r=pm(fm(n.next,n.iterator));om(r,e,t)})},return:function(){var n=vm(this).iterator;return new hm(function(e,t){var r=dm(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=pm(fm(r,n));om(r,e,t)})}}),sm),mm=o,gm=wo,Em=In,wm=Qs,Tm=En,bm=_n("asyncIterator"),_m=gn,Om=In,Rm=o,Im=vn,Sm=En,Nm=o,Am=gn,Cm=In,xm=sp,km=vn,Sn={toArray:um(0),forEach:um(1),every:um(2),some:um(3),find:um(4)},Pm=Xs,Um=Tn,Mm=pu,Dm=Qs,Lm=Js,Fm=En,Pl=yv,jm=vn,Vm=wo,Hm=Sn.toArray,Km=_n("asyncIterator"),zm=Pl("Array").values,Bm=(I({target:"Array",stat:!0,forced:!0},{fromAsync:function(o){var s=this,e=arguments.length,a=1<e?arguments[1]:void 0,u=2<e?arguments[2]:void 0;return new(jm("Promise"))(function(e){var t=Um(o),r=(void 0!==a&&(a=Pm(a,u)),Fm(t,Km)),n=r?void 0:Lm(t)||zm,i=Mm(s)?new s:[],r=r?function(e,t){t=arguments.length<2?Tm(e,bm):t;return t?Em(mm(t,e)):new gm(wm(e))}(t,r):new Vm(Dm(t,n));e(Hm(r,a,i))})}}),y.filterReject),N=Tu,Gm=(I({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return Bm(this,e,1<arguments.length?arguments[1]:void 0)}}),N("filterOut"),y.filterReject),P=Tu,zn=(I({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return Gm(this,e,1<arguments.length?arguments[1]:void 0)}}),P("filterReject"),I),qm=k,Ym=Object.isFrozen,$m=(zn({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){var t;return!!cm(e,!0)&&(t=e.raw).length===e.length&&cm(t,!1)}}),Kn.exports),Xm=di,js=Tu,Wm=Tn,Jm=R,So=(r&&(lm(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=Wm(this),t=Jm(e);return 0==t?void 0:e[t-1]},set:function(e){var t=Wm(this),r=Jm(t);return t[0==r?0:r-1]=e}}),js("lastItem")),Tu),Qm=Tn,Zm=R,Hn=(r&&(lm(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=Qm(this),e=Zm(e);return 0==e?0:e-1}}),So("lastIndex")),e),eg=gn,tg=R,rg=Tn,ng=ap,ig=vn("Map"),sl=ig.prototype,og=Hn(sl.forEach),sg=Hn(sl.has),ag=Hn(sl.set),ug=Hn([].push),O=Tu;I({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=rg(this),i=tg(n),o=ng(n,0),s=new ig,a=null!=e?eg(e):function(e){return e},u=0;u<i;u++)r=a(t=n[u]),sg(s,r)||ag(s,r,t);return og(s,function(e){ug(o,e)}),o}}),O("uniqueBy");kE.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},kE.prototype.refresh=function(){this.stop(),this.start()},kE.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var cg,lg,fg,pg,dg,hg=kE,yg=(xE.prototype.start=function(){this.started=!0},xE.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},xE.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize)&&this.flush()},xE.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},xE.prototype.close=function(){this.stop()},xE),vg=(CE.prototype.isClientError=function(e){return!!(e&&400<=e.statusCode&&e.statusCode<500)},CE.prototype.drainRepository=function(o){var e=this;return new Promise(function(i){return le(e,void 0,void 0,function(){var t,r,n=this;return fe(this,function(e){switch(e.label){case 0:return[4,null==(r=this.repository)?void 0:r.read()];case 1:return(t=e.sent())&&0!==t.length?o?this.eventDispatcher.dispatchXhrOrBeacon(t,function(){var e;i(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?i(null==(e=n.repository)?void 0:e.delete(t)):i()}):this.eventDispatcher.dispatch(t,function(){var e;i(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?i(null==(e=n.repository)?void 0:e.delete(t)):i()}):i(),[2]}})})})},CE.prototype.drainQueue=function(i,o){var e=this,s=i.map(function(e){return e.toDto()});return new Promise(function(n){return le(e,void 0,void 0,function(){var t,r=this;return fe(this,function(e){return 0===i.length?n():o?(null!=(t=this.repository)&&t.add(s),this.eventDispatcher.dispatchXhrOrBeacon(i,function(){var e;n(null==(e=r.repository)?void 0:e.delete(s))},function(e){r.isClientError(e)?n(null==(e=r.repository)?void 0:e.delete(s)):n()})):this.eventDispatcher.dispatch(i,function(){n()},function(e){r.isClientError(e)?n():n(null==(e=r.repository)?void 0:e.add(s))}),[2]})})})},CE.prototype.process=function(e){this.queue.enqueue(e)},CE.prototype.start=function(){return le(this,void 0,void 0,function(){return fe(this,function(e){return this.queue.start(),[2]})})},CE.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},CE.prototype.flush=function(){this.queue.flush()},CE.prototype.close=function(){this.stop()},CE),mg=(AE.isSessionEvent=function(e){return!!Er.isTrack(e)&&(e.event.key===AE.SESSION_START_EVENT_NAME||e.event.key===AE.SESSION_END_EVENT_NAME)},AE.prototype.onSessionStarted=function(e,t,r){this.track(AE.SESSION_START_EVENT_NAME,e,t,r)},AE.prototype.onSessionEnded=function(e,t,r){this.track(AE.SESSION_END_EVENT_NAME,e,t,r)},AE.prototype.track=function(e,t,r,n){e={key:e,properties:{sessionId:t}},r=this.hackleUserResolver.resolve(r),r=this.decorateSession(r,t);this.core.track(e,r,n)},AE.prototype.decorateSession=function(e,t){t=(new Je).add(We.SESSION,t).addIdentifiers(e.identifiers).build();return h(h({},e),{identifiers:t})},AE.SESSION_START_EVENT_NAME="$session_start",AE.SESSION_END_EVENT_NAME="$session_end",AE),gg=(NE.prototype.process=function(e){var t;mg.isSessionEvent(e)||this.sessionManager.startNewSessionIfNeeded(this.userManager.currentUser,e.timestamp),this.exposureEventDedupDeterminer.isDedupTarget(e)||(e=e,t=null===(t=this.sessionManager).currentSessionId||e.user.identifiers[We.SESSION]?e:e.copyWithUser(h(h({},e.user),{identifiers:h(h({},e.user.identifiers),((e={})[We.SESSION]=t.sessionId,e))})),this.delegate.process(t))},NE.prototype.close=function(){this.delegate.close()},NE.prototype.flush=function(){this.delegate.flush()},NE.prototype.start=function(){return this.delegate.start()},NE),Eg=(SE.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!Er.isExposure(e))return!1;Ve.isEquals(e.user.identifiers,null==(t=this.currentUser)?void 0:t.identifiers)||(this.currentUser=e.user,this.cache=new Map);var t=[e.experiment.id,e.variationId,e.variationKey,e.decisionReason].join("-"),e=(new Date).getTime(),r=this.cache.get(t);return void 0!==r&&e-r<=this.exposureEventDedupIntervalMillis||(this.cache.set(t,e),!1)},SE),wg=(IE.toEvent=function(e){var t;return{key:IE.EVENT_KEY,properties:{level:IE.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:IE._stacktrace(e)}}},IE._stacktrace=function(e){return a.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,IE.STACK_TRACK_LIMIT).join("\n")},IE.EVENT_KEY="$trace",IE.LEVEL_ERROR="error",IE.STACK_TRACK_LIMIT=30,IE),ou=(RE.prototype.evaluate=function(e,t){if(!this.supports(e))throw new Error("Unsupported EvaluatorRequest ".concat(e.toString()));var r;if(t.contains(e))throw r=t.stack.map(function(e){return e.toString()}).join(" - "),new Error("Circular evaluation has occurred [".concat(r," - ").concat(e.toString(),"]"));t.addRequest(e);try{return this.evaluateInternal(e,t)}finally{t.removeRequest(e)}},RE),Tg=(ce(OE,dg=ou),OE.prototype.supports=function(e){return void 0!==e.experiment},OE.prototype.evaluateInternal=function(e,t){return this.evaluationFlowFactory.getFlow(e.experiment.type).evaluate(e,t)},OE),bg=(_E.of=function(e,t,r,n,i,o){return o.returnValue=n,new _E(i,t.targetEvaluations,e.parameter,r,n,o)},_E.ofDefault=function(e,t,r,n){return this.of(e,t,void 0,e.defaultValue,r,n)},_E),_g=(ce(bE,pg=ou),bE.prototype.supports=function(e){return void 0!==e.parameter},bE.prototype.evaluateInternal=function(e,t){var r,n={};return n.requestValueType=e.requiredType,n.requestDefaultValue=e.defaultValue,a.isNullOrUndefined(e.user.identifiers[e.parameter.identifierType])?bg.ofDefault(e,t,s.IDENTIFIER_NOT_FOUND,n):(r=this.targetRuleDeterminer.determineTargetRuleOrNull(e,t),a.isNotNullOrUndefined(r)?(n.targetRuleKey=r.key,n.targetRuleName=r.name,this.evaluation(e,t,r.value,s.TARGET_RULE_MATCH,n)):this.evaluation(e,t,e.parameter.defaultValue,s.DEFAULT_RULE,n))},bE.prototype.evaluation=function(e,t,r,n,i){return"UNKNOWN"===e.requiredType||"NULL"!==e.requiredType&&typeof e.defaultValue!=typeof r.rawValue?bg.ofDefault(e,t,s.TYPE_MISMATCH,i):bg.of(e,t,r.id,r.rawValue,n,i)},bE),Og=(TE.prototype.with=function(e){return new TE(e,this.targetEvaluations,this.experiment,this.variationId,this.variationKey,this.config)},TE.of=function(e,t,r,n){var i=this.config(e.workspace,r);return new TE(n,t.targetEvaluations,e.experiment,r.id,r.key,i)},TE.ofDefault=function(e,t,r){var n=e.experiment._getVariationByKeyOrNull(e.defaultVariationKey);return a.isNotNullOrUndefined(n)?this.of(e,t,n,r):new TE(r,t.targetEvaluations,e.experiment,void 0,e.defaultVariationKey,void 0)},TE.config=function(e,t){if(!a.isNullOrUndefined(t.parameterConfigurationId))return a.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},TE),Rg=(wE.prototype.isEquals=function(e){return this.type===e.type&&this.id===e.id},wE),Ig=(EE.create=function(){return new EE},Object.defineProperty(EE.prototype,"stack",{get:function(){return Array.from(this._stack)},enumerable:!1,configurable:!0}),Object.defineProperty(EE.prototype,"targetEvaluations",{get:function(){return Array.from(this._targetEvaluations)},enumerable:!1,configurable:!0}),EE.prototype.contains=function(t){return this._stack.some(function(e){return e.key.isEquals(t.key)})},EE.prototype.addRequest=function(e){this._stack.push(e)},EE.prototype.removeRequest=function(e){e=this._stack.indexOf(e,0);-1<e&&this._stack.splice(e,1)},EE.prototype.get=function(t){return this._targetEvaluations.find(function(e){return e instanceof Og&&e.experiment.id===t.id})},EE.prototype.addEvaluation=function(e){this._targetEvaluations.push(e)},EE),Sg=(gE.of=function(e,t,r,n){return new gE(e,t,r,n)},gE.by=function(e,t){return new gE(e.workspace,e.user,t,"A")},gE.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.experiment.type,", key=").concat(this.experiment.key,")")},gE),Ng=(mE.of=function(e,t,r,n,i){return new mE(e,t,r,n,i)},mE.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.key.type,", key=").concat(this.parameter.key,")")},mE),Ag=(vE.asString=function(e){switch(typeof e){case"string":return e;case"number":return e.toString();default:return}},vE.asNumber=function(e){switch(typeof e){case"number":return this.asActualNumber(e);case"string":return this.asActualNumber(Number(e));default:return}},vE.asActualNumber=function(e){return!isNaN(e)&&isFinite(e)?e:void 0},vE),Cg=(yE.prototype.getVariation=function(e,t){if(0!==this.storages.length)for(var r=0,n=this.storages;r<n.length;r++){var i=n[r].getVariation(e,t);if(void 0!==i)return i}},yE),xg=(hE.prototype.getVariation=function(e,t){var r=this.get(e);if(r)return e._getVariationByIdOrNull(r)},hE.prototype.get=function(e){e=this.listStorage.getItem(e.id.toString());return Ag.asNumber(e)},hE.prototype.getAll=function(){var r=new Map;return this.listStorage.entries().forEach(function(e){var t=e[0],e=e[1],t=Ag.asNumber(t),e=Ag.asNumber(e);a.isNullOrUndefined(t)||t<0||a.isNullOrUndefined(e)||t<0||r.set(t,e)}),r},hE.prototype.set=function(e,t){this.listStorage.setItem(e.id.toString(),t.toString())},hE.prototype.remove=function(e){this.listStorage.removeItem(e.id.toString())},hE.prototype.clear=function(){this.listStorage.clear()},hE),kg=(dE.prototype.add=function(e){this.evaluators.push(e)},dE.prototype.evaluate=function(t,e){var r=this.evaluators.find(function(e){return e.supports(t)});if(a.isNullOrUndefined(r))throw new Error("Unsupported EvaluatorRequest [".concat(t.toString(),"]"));return r.evaluate(t,e)},dE),Pg=(pE.prototype.matches=function(t,r,e){var n=this;return e.conditions.every(function(e){return n._matches(t,r,e)})},pE.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(r.key.type).matches(e,t,r)},pE),Ug=(fE.prototype.matches=function(e,t){var r=this.valueMatcherFactory.getMatcher(t.valueType),n=this.operatorMatcherFactory.getMatcher(t.operator),e=this.userValueMatches(e,t,r,n);return this.typeMatches(t.type,e)},fE.prototype.userValueMatches=function(e,t,r,n){return Array.isArray(e)?this.arrayMatches(e,t,r,n):this.singleMatches(e,t,r,n)},fE.prototype.singleMatches=function(t,e,r,n){return e.values.some(function(e){return r.matches(n,t,e)})},fE.prototype.arrayMatches=function(e,t,r,n){var i=this;return e.some(function(e){return i.singleMatches(e,t,r,n)})},fE.prototype.typeMatches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},fE),v=(lE.prototype.booleanMatches=function(e,t){return e===t},lE.prototype.numberMatches=function(e,t){return e===t},lE.prototype.stringMatches=function(e,t){return e===t},lE.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},lE),ai=(cE.prototype.booleanMatches=function(e,t){return!1},cE.prototype.numberMatches=function(e,t){return!1},cE.prototype.stringMatches=function(e,t){return e.includes(t)},cE.prototype.versionMatches=function(e,t){return!1},cE),Bn=(uE.prototype.booleanMatches=function(e,t){return!1},uE.prototype.numberMatches=function(e,t){return!1},uE.prototype.stringMatches=function(e,t){return e.startsWith(t)},uE.prototype.versionMatches=function(e,t){return!1},uE),A=(aE.prototype.booleanMatches=function(e,t){return!1},aE.prototype.numberMatches=function(e,t){return!1},aE.prototype.stringMatches=function(e,t){return e.endsWith(t)},aE.prototype.versionMatches=function(e,t){return!1},aE),C=(sE.prototype.booleanMatches=function(e,t){return!1},sE.prototype.numberMatches=function(e,t){return t<e},sE.prototype.stringMatches=function(e,t){return t<e},sE.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},sE),Ml=(oE.prototype.booleanMatches=function(e,t){return!1},oE.prototype.numberMatches=function(e,t){return t<=e},oE.prototype.stringMatches=function(e,t){return t<=e},oE.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},oE),b=(iE.prototype.booleanMatches=function(e,t){return!1},iE.prototype.numberMatches=function(e,t){return e<t},iE.prototype.stringMatches=function(e,t){return e<t},iE.prototype.versionMatches=function(e,t){return e.isLessThan(t)},iE),p=(nE.prototype.booleanMatches=function(e,t){return!1},nE.prototype.numberMatches=function(e,t){return e<=t},nE.prototype.stringMatches=function(e,t){return e<=t},nE.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},nE),Mg=(rE.prototype.getMatcher=function(e){switch(e){case"IN":return rE.IN_MATCHER;case"CONTAINS":return rE.CONTAINS_MATCHER;case"STARTS_WITH":return rE.STARTS_WITH_MATCHER;case"ENDS_WITH":return rE.ENDS_WITH_MATCHER;case"GT":return rE.GT_MATCHER;case"GTE":return rE.GTE_MATCHER;case"LT":return rE.LT_MATCHER;case"LTE":return rE.LTE_MATCHER}},rE.IN_MATCHER=new v,rE.CONTAINS_MATCHER=new ai,rE.STARTS_WITH_MATCHER=new Bn,rE.ENDS_WITH_MATCHER=new A,rE.GT_MATCHER=new C,rE.GTE_MATCHER=new Ml,rE.LT_MATCHER=new b,rE.LTE_MATCHER=new p,rE),Dg=(tE.prototype.matches=function(e,t,r){t=Ag.asString(t),r=Ag.asString(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.stringMatches(t,r)},tE),cu=(eE.prototype.matches=function(e,t,r){t=Ag.asNumber(t),r=Ag.asNumber(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.numberMatches(t,r)},eE),to=(Z0.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},Z0),c=(Q0.prototype.matches=function(e,t,r){t=dt.tryParse(t),r=dt.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},Q0),Vs=(J0.prototype.matches=function(e,t,r){return!1},J0),Lg=(W0.prototype.getMatcher=function(e){switch(e){case"STRING":case"JSON":return W0.STRING_MATCHER;case"NUMBER":return W0.NUMBER_MATCHER;case"BOOLEAN":return W0.BOOLEAN_MATCHER;case"VERSION":return W0.VERSION_MATCHER;case"NULL":case"UNKNOWN":return W0.NULL_MATCHER}},W0.STRING_MATCHER=new Dg,W0.NUMBER_MATCHER=new cu,W0.BOOLEAN_MATCHER=new to,W0.VERSION_MATCHER=new c,W0.NULL_MATCHER=new Vs,W0),Fg=(X0.prototype.matches=function(e,t,r){e=this.userValueResolver.resolveOrNull(e.user,r.key);return!a.isNullOrUndefined(e)&&this.valueOperatorMatcher.matches(e,r.match)},X0),jg=($0.prototype.resolveOrNull=function(e,t){switch(t.type){case"USER_ID":return e.identifiers[t.name];case"USER_PROPERTY":return e.properties[t.name];case"HACKLE_PROPERTY":return e.hackleProperties[t.name];case"SEGMENT":case"AB_TEST":case"FEATURE_FLAG":throw new Error("Unsupported TargetKeyType [".concat(t.type,"]"))}},$0),Vg=(Y0.prototype.matches=function(t,r,e){var n=this;if("SEGMENT"!=e.key.type)throw new Error("Unsupported TargetKeyType [".concat(e.key.type,"]"));var i=e.match.values.some(function(e){return n._matches(t,r,e)});switch(e.match.type){case"MATCH":return i;case"NOT_MATCH":return!i}},Y0.prototype._matches=function(e,t,r){if("string"!=typeof r)throw new Error("SegmentKey[".concat(r,"]"));var n=e.workspace.getSegmentOrNull(r);if(n)return this.segmentMatcher.matches(e,t,n);throw new Error("Segment[".concat(r,"]"))},Y0),Hg=(q0.prototype.matches=function(t,r,e){var n=this;return e.targets.some(function(e){return n._matches(t,r,e)})},q0.prototype._matches=function(t,r,e){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(t,r,e)})},q0),Kg=(G0.prototype.matches=function(e,t,r){switch(r.key.type){case"AB_TEST":return this.abTestMatcher.matches(e,t,r);case"FEATURE_FLAG":return this.featureFlagMatcher.matches(e,t,r);case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":case"SEGMENT":throw new Error("Unsupported TargetKeyType [".concat(r.key.type,"]"))}},G0),d=(B0.prototype.matches=function(e,t,r){var n,i=a.requiredNotNullOrUndefined(Ag.asNumber(r.key.name),function(){return"Invalid key [".concat(r.key.type,", ").concat(r.key.name,"]")}),i=this.experiment(e,i);return!a.isNullOrUndefined(i)&&(n=null!=(n=t.get(i))?n:this.evaluate(e,t,i),this.evaluationMatches(n,r))},B0.prototype.evaluate=function(e,t,r){r=Sg.by(e,r),r=this.evaluator.evaluate(r,t),e=this.resolve(e,r);return t.addEvaluation(e),e},B0),zg=(ce(z0,fg=d),z0.prototype.experiment=function(e,t){return e.workspace.getExperimentOrNull(t)},z0.prototype.resolve=function(e,t){return e instanceof Sg&&t.reason===s.TRAFFIC_ALLOCATED?t.with(s.TRAFFIC_ALLOCATED_BY_TARGETING):t},z0.prototype.evaluationMatches=function(e,t){return!!z0.AB_TEST_MATCHED_REASONS.includes(e.reason)&&this.valueOperatorMatcher.matches(e.variationKey,t.match)},z0.AB_TEST_MATCHED_REASONS=[s.OVERRIDDEN,s.TRAFFIC_ALLOCATED,s.EXPERIMENT_COMPLETED,s.TRAFFIC_ALLOCATED_BY_TARGETING],z0),Bg=(ce(K0,lg=d),K0.prototype.experiment=function(e,t){return e.workspace.getFeatureFlagOrNull(t)},K0.prototype.resolve=function(e,t){return t},K0.prototype.evaluationMatches=function(e,t){e="A"!==e.variationKey;return this.valueOperatorMatcher.matches(e,t.match)},K0),Gg=(H0.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return this.userConditionMatcher;case"SEGMENT":return this.segmentConditionMatcher;case"AB_TEST":case"FEATURE_FLAG":return this.experimentConditionMatcher}},H0),qg=(V0.prototype.resolveOrNull=function(e,t,r){switch(r.type){case"VARIATION":return this.resolveVariation(e,r);case"BUCKET":return this.resolveBucket(e,r)}},V0.prototype.resolveVariation=function(e,t){return e.experiment._getVariationByIdOrNull(t.variationId)},V0.prototype.resolveBucket=function(e,t){var t=e.workspace.getBucketOrNull(t.bucketId),r=e.user.identifiers[e.experiment.identifierType];if(r){t=this.bucketer.bucketing(t,r);if(t)return e.experiment._getVariationByIdOrNull(t.variationId)}},V0),Yg={murmurhash3_x86_32:function(e,t,r,n){for(var i,o=-4&(n=void 0===n?e.length:n),s=t,a=0;a<o;a+=4)i=255&e.charCodeAt(a)|(255&e.charCodeAt(a+1))<<8|(255&e.charCodeAt(a+2))<<16|(255&e.charCodeAt(a+3))<<24,i=(131071&(i=this.mul32(i,3432918353)))<<15|i>>>17,s=5*((524287&(s^=i=this.mul32(i,461845907)))<<13|s>>>19)+3864292196|0;switch(i=0,n%4){case 3:i=(255&e.charCodeAt(2+o))<<16;case 2:i|=(255&e.charCodeAt(1+o))<<8;case 1:i|=255&e.charCodeAt(o),i=(131071&(i=this.mul32(i,3432918353)))<<15|i>>>17,s^=i=this.mul32(i,461845907)}return s=this.mul32(s=(s^=n)^s>>>16,2246822507),(s=this.mul32(s^=s>>>13,3266489909))^s>>>16},mul32:function(e,t){var r=65535&t;return((t-r)*e|0)+(r*e|0)|0}},$g=(j0.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},j0.prototype.calculateSlotNumber=function(e,t,r){r=Yg.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},j0),Xg=(F0.prototype.evaluate=function(e,t){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,this.nextFlow):Og.ofDefault(e,t,s.TRAFFIC_NOT_ALLOCATED)},F0.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new F0,n=0,i=e.reverse();n<i.length;n++)r=new F0(i[n],r);return r},F0),Wg=(L0.prototype.evaluate=function(e,t,r){var n=this.overrideResolver.resolveOrNull(e,t);if(!n)return r.evaluate(e,t);switch(e.experiment.type){case"AB_TEST":return Og.of(e,t,n,s.OVERRIDDEN);case"FEATURE_FLAG":return Og.of(e,t,n,s.INDIVIDUAL_TARGET_MATCH)}},L0),Jg=(D0.prototype.evaluate=function(e,t,r){return"DRAFT"===e.experiment.status?Og.ofDefault(e,t,s.EXPERIMENT_DRAFT):r.evaluate(e,t)},D0),Qg=(M0.prototype.evaluate=function(e,t,r){if("PAUSED"!==e.experiment.status)return r.evaluate(e,t);switch(e.experiment.type){case"AB_TEST":return Og.ofDefault(e,t,s.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return Og.ofDefault(e,t,s.FEATURE_FLAG_INACTIVE)}},M0),Zg=(U0.prototype.evaluate=function(e,t,r){if("COMPLETED"!==e.experiment.status)return r.evaluate(e,t);r=e.experiment._winnerVariationOrNull();if(r)return Og.of(e,t,r,s.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(e.experiment.id,"]"))},U0),e0=(P0.prototype.evaluate=function(e,t,r){if("AB_TEST"!==e.experiment.type)throw new Error("experiment type must be AB_TEST [".concat(e.experiment.id,"]"));return this.experimentTargetDeterminer.isUserInExperimentTarget(e,t)?r.evaluate(e,t):Og.ofDefault(e,t,s.NOT_IN_EXPERIMENT_TARGET)},P0),t0=(k0.prototype.evaluate=function(e,t,r){if("RUNNING"!==e.experiment.status)throw new Error("experiment status must be RUNNING [".concat(e.experiment.id,"]"));if("AB_TEST"!==e.experiment.type)throw new Error("experiment type must be AB_TEST [".concat(e.experiment.id,"]"));var n=this.actionResolver.resolveOrNull(e,t,e.experiment.defaultRule);return n?n.isDropped?Og.ofDefault(e,t,s.VARIATION_DROPPED):Og.of(e,t,n,s.TRAFFIC_ALLOCATED):Og.ofDefault(e,t,s.TRAFFIC_NOT_ALLOCATED)},k0),r0=(x0.prototype.evaluate=function(e,t,r){if("RUNNING"!==e.experiment.status)throw new Error("experiment status must be RUNNING [".concat(e.experiment.id,"]"));if("FEATURE_FLAG"!==e.experiment.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(e.experiment.id,"]"));if(!e.user.identifiers[e.experiment.identifierType])return r.evaluate(e,t);var n=this.targetRuleDeterminer.determineTargetRuleOrNull(e,t);if(!n)return r.evaluate(e,t);r=this.actionResolver.resolveOrNull(e,t,n.action);if(r)return Og.of(e,t,r,s.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(e.experiment.id,"]"))},x0),n0=(C0.prototype.evaluate=function(e,t,r){if("RUNNING"!==e.experiment.status)throw new Error("experiment status must be RUNNING [".concat(e.experiment.id,"]"));if("FEATURE_FLAG"!==e.experiment.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(e.experiment.id,"]"));if(!e.user.identifiers[e.experiment.identifierType])return Og.ofDefault(e,t,s.DEFAULT_RULE);var n=this.actionResolver.resolveOrNull(e,t,e.experiment.defaultRule);if(n)return Og.of(e,t,n,s.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(e.experiment.id,"]"))},C0),i0=(A0.prototype.evaluate=function(e,t,r){var n=e.experiment.containerId;if(!n)return r.evaluate(e,t);var i=e.workspace.getContainerOrNull(n);if(i)return this.containerResolver.isUserInContainerGroup(e,t,i)?r.evaluate(e,t):Og.ofDefault(e,t,s.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("container[".concat(n,"]"))},A0),o0=(N0.prototype.evaluate=function(e,t,r){return e.user.identifiers[e.experiment.identifierType]?r.evaluate(e,t):Og.ofDefault(e,t,s.IDENTIFIER_NOT_FOUND)},N0),s0=(S0.prototype.isUserInExperimentTarget=function(t,r){var n=this;return 0===t.experiment.targetAudiences.length||t.experiment.targetAudiences.some(function(e){return n.targetMatcher.matches(t,r,e)})},S0),a0=(I0.prototype.determineTargetRuleOrNull=function(t,r){var n=this;return t.experiment.targetRules.find(function(e){return n.targetMatcher.matches(t,r,e.target)})},I0),u0=(R0.prototype.resolveOrNull=function(e,t){var r;return null!=(r=null!=(r=this.resolveManualOverride(e))?r:this._resolveUserOverride(e))?r:this._resolveSegmentOverride(e,t)},R0.prototype.resolveManualOverride=function(e){return this.manualOverrideStorage.getVariation(e.experiment,e.user)},R0.prototype._resolveUserOverride=function(e){var t=e.experiment,e=e.user.identifiers[t.identifierType];if(e){e=t.userOverrides.get(e);if(e)return t._getVariationByIdOrNull(e)}},R0.prototype._resolveSegmentOverride=function(t,r){var n=this,e=t.experiment.segmentOverrides.find(function(e){return n.targetMatcher.matches(t,r,e.target)});if(e)return this.actionResolver.resolveOrNull(t,r,e.action)},R0),c0=(O0.prototype.isUserInContainerGroup=function(e,t,r){var n=e.user.identifiers[e.experiment.identifierType];if(a.isNullOrUndefined(n))return!1;var i=e.workspace.getBucketOrNull(r.bucketId);if(a.isNullOrUndefined(i))throw new Error("Bucket[".concat(r.bucketId,"]"));i=this.bucketer.bucketing(i,n);if(a.isNullOrUndefined(i))return!1;n=r.getGroupOrNull(i.variationId);if(a.isNullOrUndefined(n))throw new Error("ContainerGroup[".concat(i.variationId,"]"));return n.experiments.includes(e.experiment.id)},O0),l0=(_0.prototype.determineTargetRuleOrNull=function(t,r){var n=this;return t.parameter.targetRules.find(function(e){return n.matches(t,r,e)})},_0.prototype.matches=function(e,t,r){if(!this.targetMatcher.matches(e,t,r.target))return!1;t=e.user.identifiers[e.parameter.identifierType];if(a.isNullOrUndefined(t))return!1;e=e.workspace.getBucketOrNull(r.bucketId);if(a.isNullOrUndefined(e))throw new Error("bucket[".concat(r.bucketId,"]"));return a.isNotNullOrUndefined(this.bucketer.bucketing(e,t))},_0),f0=(b0.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},b0),p0=(T0.prototype.create=function(r,e){var n=this,i=this.clock.currentMillis(),o=new Array,t=this.createEvent(r,e,i,{});return o.push(t),e.targetEvaluations.forEach(function(e){var t;(t={})[T0.ROOT_TYPE]=r.key.type,t[T0.ROOT_ID]=r.key.id;e=n.createEvent(r,e,i,t);o.push(e)}),o},T0.prototype.createEvent=function(e,t,r,n){var i;if(t instanceof Og)return n[T0.CONFIG_ID_PROPERTY_KEY]=null==(i=t.config)?void 0:i.id,Er.exposure(e.user,t,n,r);if(t instanceof bg)return Er.remoteConfig(e.user,t,h(h({},n),t.properties),r);throw new Error("Unsupported Evaluation [".concat(typeof t,"]"))},T0.ROOT_TYPE="$targetingRootType",T0.ROOT_ID="$targetingRootId",T0.CONFIG_ID_PROPERTY_KEY="$parameterConfigurationId",T0),d0=de.log,h0=(w0.create=function(e,t,r){var n=new kg,r=new Cg(r),r=new f0(n,r),i=new Tg(r),r=new _g(r.remoteConfigParameterTargetRuleDeterminer);return n.add(i),n.add(r),new w0(i,r,e,new p0(Ot.instance),t,new y0)},w0.prototype.experiment=function(e,t,r){var n,i=this;return e?(n=this.workspaceFetcher.get())?(e=n.getExperimentOrNull(e))?(n=Sg.of(n,t,e,r),e=(t=this.experimentInternal(n))[0],t=t[1],this.eventFactory.create(n,e).forEach(function(e){return i.eventProcessor.process(e)}),t):(d0.warn("Experiment does not exist."),Ge.of(r,s.EXPERIMENT_NOT_FOUND)):(d0.warn("SDK not ready."),Ge.of(r,s.SDK_NOT_READY)):(d0.error("experimentKey must not be empty"),Ge.of(r,s.INVALID_INPUT))},w0.prototype.experiments=function(r){var n=this,i=new Kt(function(e,t){return e.id===t.id}),o=this.workspaceFetcher.get();return o&&o.getExperiments().forEach(function(e){var t=Sg.of(o,r,e,"A"),t=n.experimentInternal(t),t=(t[0],t[1]);i.add(e,t)}),i},w0.prototype.experimentInternal=function(e){var e=this.experimentEvaluator.evaluate(e,Ig.create()),t=null!=(t=e.config)?t:new Ye;return[e,Ge.of(e.variationKey,e.reason,t)]},w0.prototype.featureFlag=function(e,t){var r,n=this;return e?(r=this.workspaceFetcher.get())?(e=r.getFeatureFlagOrNull(e))?(r=Sg.of(r,t,e,"A"),e=(t=this.featureFlagInternal(r))[0],t=t[1],this.eventFactory.create(r,e).forEach(function(e){return n.eventProcessor.process(e)}),t):(d0.warn("FeatureFlag does not exist."),qe.off(s.FEATURE_FLAG_NOT_FOUND)):(d0.warn("SDK not ready."),qe.off(s.SDK_NOT_READY)):(d0.error("featureKey must not be empty"),qe.off(s.INVALID_INPUT))},w0.prototype.featureFlags=function(r){var n=this,i=new Kt(function(e,t){return e.id===t.id}),o=this.workspaceFetcher.get();return o&&o.getFeatureFlags().forEach(function(e){var t=Sg.of(o,r,e,"A"),t=n.featureFlagInternal(t),t=(t[0],t[1]);i.add(e,t)}),i},w0.prototype.featureFlagInternal=function(e){var e=this.experimentEvaluator.evaluate(e,Ig.create()),t=null!=(t=e.config)?t:new Ye;return[e,"A"===e.variationKey?qe.off(e.reason,t):qe.on(e.reason,t)]},w0.prototype.track=function(e,t,r){var n;void 0===r&&(r=(new Date).getTime()),e?"object"==typeof e?"object"!=typeof e||e.key&&"string"==typeof e.key?(n=(null==(n=this.workspaceFetcher.get())?void 0:n.getEventTypeOrNull(e.key))||new Re(0,e.key),this.eventProcessor.process(Er.track(n,e,t,r))):d0.warn("Event key must be not null. or event key must be string type."):d0.warn("Event must be event type."):d0.warn("event must not be null.")},w0.prototype.trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=wg.toEvent(e),this.flush(),this.track(e,t),this.flush())},w0.prototype.flush=function(){this.eventProcessor.flush()},w0.prototype.remoteConfig=function(e,t,r,n){var i=this,o=this.workspaceFetcher.get();return a.isNullOrUndefined(o)?(d0.warn("SDK not ready."),Be.of(n,s.SDK_NOT_READY)):(e=o.getRemoteConfigParameterOrNull(e),a.isNullOrUndefined(e)?(d0.warn("Remote config parameter does not exist."),Be.of(n,s.REMOTE_CONFIG_PARAMETER_NOT_FOUND)):(o=Ng.of(o,t,e,r,n),t=this.remoteConfigEvaluator.evaluate(o,Ig.create()),this.eventFactory.create(o,t).forEach(function(e){return i.eventProcessor.process(e)}),Be.of(t.value,t.reason)))},w0.prototype.onReady=function(e,t){this.onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},w0.prototype.onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(d0.debug("Start HackleClient initializing"),new Promise(function(e){t=e})),n=setTimeout(function(){t({success:!1})},e);return this.readyPromise.then(function(){clearTimeout(n),t({success:!0})},function(e){clearTimeout(n),t({success:!1,error:e})}),Promise.race([this.readyPromise,r]).then(function(e){return e.success?d0.debug("HackleClient onInitialized Success"):e.error instanceof Error?d0.error("HackleClient onInitialized Failed. ".concat(e.error.message)):d0.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},w0.prototype.close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},w0),y0=(E0.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},E0.prototype._isSameError=function(e,t){return!a.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},E0),v0=(g0.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},g0.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},g0),m0=null;function g0(){this._installed=[],this._installations={onerror:PE,onunhandledrejection:UE}}function E0(){}function w0(e,t,r,n,i,o){this.experimentEvaluator=e,this.remoteConfigEvaluator=t,this.workspaceFetcher=r,this.eventFactory=n,this.eventProcessor=i,this.errorDedupDeterminer=o,this.workspaceFetcher.start(),this.eventProcessor.start(),this.readyPromise=this.workspaceFetcher.onReady().then(function(){return{success:!0}},function(e){return{success:!1,error:e}})}function T0(e){this.clock=e}function b0(e,t){var r=new $g,e=new Pg(new Gg(e)),n=new qg(r),t=new u0(t,e,n),i=new c0(r);this.abTestFlow=Xg.of(new Wg(t),new o0,new i0(i),new e0(new s0(e)),new Jg,new Qg,new Zg,new t0(n)),this.featureFlagFlow=Xg.of(new Jg,new Qg,new Zg,new Wg(t),new o0,new r0(new a0(e),n),new n0(n)),this.remoteConfigParameterTargetRuleDeterminer=new l0(e,r)}function _0(e,t){this.targetMatcher=e,this.bucketer=t}function O0(e){this.bucketer=e}function R0(e,t,r){this.manualOverrideStorage=e,this.targetMatcher=t,this.actionResolver=r}function I0(e){this.targetMatcher=e}function S0(e){this.targetMatcher=e}function N0(){}function A0(e){this.containerResolver=e}function C0(e){this.actionResolver=e}function x0(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function k0(e){this.actionResolver=e}function P0(e){this.experimentTargetDeterminer=e}function U0(){}function M0(){}function D0(){}function L0(e){this.overrideResolver=e}function F0(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function j0(){}function V0(e){this.bucketer=e}function H0(e){var t=new Ug(new Lg,new Mg),r=new Fg(new jg,t);this.userConditionMatcher=r,this.segmentConditionMatcher=new Vg(new Hg(r)),this.experimentConditionMatcher=new Kg(new zg(e,t),new Bg(e,t))}function K0(e,t){return lg.call(this,e,t)||this}function z0(e,t){return fg.call(this,e,t)||this}function B0(e,t){this.evaluator=e,this.valueOperatorMatcher=t}function G0(e,t){this.abTestMatcher=e,this.featureFlagMatcher=t}function q0(e){this.userConditionMatcher=e}function Y0(e){this.segmentMatcher=e}function $0(){}function X0(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function W0(){}function J0(){}function Q0(){}function Z0(){}function eE(){}function tE(){}function rE(){}function nE(){}function iE(){}function oE(){}function sE(){}function aE(){}function uE(){}function cE(){}function lE(){}function fE(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function pE(e){this.conditionMatcherFactory=e}function dE(){this.evaluators=new Array}function hE(e){this.listStorage=e}function yE(e){this.storages=e}function vE(){}function mE(e,t,r,n,i){this.key=new Rg("REMOTE_CONFIG",r.id),this.workspace=e,this.user=t,this.parameter=r,this.requiredType=n,this.defaultValue=i}function gE(e,t,r,n){this.key=new Rg("EXPERIMENT",r.id),this.workspace=e,this.user=t,this.experiment=r,this.defaultVariationKey=n}function EE(){this._stack=[],this._targetEvaluations=[]}function wE(e,t){this.type=e,this.id=t}function TE(e,t,r,n,i,o){this.reason=e,this.targetEvaluations=t,this.experiment=r,this.variationId=n,this.variationKey=i,this.config=o}function bE(e){var t=pg.call(this)||this;return t.targetRuleDeterminer=e,t}function _E(e,t,r,n,i,o){this.reason=e,this.targetEvaluations=t,this.parameter=r,this.valueId=n,this.value=i,this.properties=o}function OE(e){var t=dg.call(this)||this;return t.evaluationFlowFactory=e,t}function RE(){}function IE(){}function SE(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function NE(e,t,r,n){this.delegate=e,this.exposureEventDedupDeterminer=t,this.sessionManager=r,this.userManager=n}function AE(e,t){this.hackleUserResolver=e,this.core=t}function CE(e,t,r,n){void 0===n&&(n=null),this.eventDispatcher=e,this.flushInterval=r,this.queue=new yg(this.drainQueue.bind(this),t,r),this.repository=n}function xE(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new hg({callback:this.flush.bind(this),timeout:r}),this.started=!1}function kE(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function PE(o,s){m0=window.onerror,window.onerror=function(e,t,r,n,i){a.isNotNullOrUndefined(i)&&o.trackException(i,s.resolveCurrentUser()),m0&&m0.apply(this,arguments)}}function UE(r,n){cg=window.onunhandledrejection,window.onunhandledrejection=function(e){var t;try{"reason"in e?t=e.reason:"detail"in e&&"reason"in e.detail&&(t=e.detail.reason)}catch(e){}t instanceof Error&&r.trackException(t,n.resolveCurrentUser()),cg&&cg.apply(this,arguments)}}function ME(e,t){return e.userId===t.userId&&e.deviceId===t.deviceId}QE.prototype.read=function(){var r=this;return new Promise(function(e){var t=r.storage.getItem(r.storageKey);t&&e(JSON.parse(t)),e([])})},QE.prototype.save=function(r){var n=this;return 0===r.length?this.clear():new Promise(function(e){var t=JSON.stringify(r.slice(-n.maxSize));n.storage.setItem(n.storageKey,t),e()})},QE.prototype.add=function(t){var r=this;return this.read().then(function(e){return r.save(e.concat(t).slice(-r.maxSize))})},QE.prototype.delete=function(r){var t=this;return this.read().then(function(e){e=e.filter(function(t){return r.findIndex(function(e){return e.insertId===t.insertId})<0});return t.save(e)})},QE.prototype.clear=function(){var t=this;return new Promise(function(e){localStorage.removeItem(t.storageKey),e()})};var DE=QE,LE=(JE.prototype.addListener=function(e){this.userListeners.push(e)},JE.prototype.initialize=function(){var e=this.storage.getItem("_hackle_did")||this.hackleDeviceId,t=this.storage.getItem("_hackle_uid")||void 0;this._currentUser={deviceId:e,userId:t}},Object.defineProperty(JE.prototype,"currentUser",{get:function(){return this._currentUser},enumerable:!1,configurable:!0}),JE.prototype.resolveCurrentOrNull=function(e){return void 0===e?this.currentUser:"string"==typeof e?this.setUser({id:e}):(e=Ie(e))?this.setUser(e):null},JE.prototype.setUser=function(e){var t=this._currentUser,r=ME(r=t,e=e)?h(h({},e),{properties:h(h({},r.properties),e.properties)}):e;return this._currentUser=r,ME(t,r)||(this.changeUser(t,r,(new Date).getTime()),this.saveUser(r)),r},JE.prototype.setUserId=function(e){e=h(h({},this._currentUser),{userId:e});return this.setUser(e)},JE.prototype.setDeviceId=function(e){e=h(h({},this._currentUser),{deviceId:e});return this.setUser(e)},JE.prototype.setUserProperty=function(e,t){var r,e=h(h({},this._currentUser),{properties:h(h({},this._currentUser.properties),((r={})[e]=t,r))});return this.setUser(e)},JE.prototype.setUserProperties=function(e){e=h(h({},this._currentUser),{properties:h(h({},this._currentUser.properties),e)});return this.setUser(e)},JE.prototype.resetUser=function(){return this.setUser(this.defaultUser)},JE.prototype.changeUser=function(t,r,n){this.userListeners.forEach(function(e){e.onUserUpdated(t,r,n)})},JE.prototype.saveUser=function(e){a.isNotNullOrUndefined(e.deviceId)?this.storage.setItem("_hackle_did",e.deviceId):this.storage.removeItem("_hackle_did"),a.isNotNullOrUndefined(e.userId)?this.storage.setItem("_hackle_uid",e.userId):this.storage.removeItem("_hackle_uid")},JE),FE=(Object.defineProperty(WE.prototype,"currentSessionId",{get:function(){return this._currentSessionId},enumerable:!1,configurable:!0}),Object.defineProperty(WE.prototype,"sessionId",{get:function(){var e;return null!=(e=this._currentSessionId)?e:WE.EMPTY_SESSION_ID},enumerable:!1,configurable:!0}),Object.defineProperty(WE.prototype,"lastEventTime",{get:function(){return this._lastEventTime},enumerable:!1,configurable:!0}),WE.prototype.addListener=function(e){this.sessionListeners.push(e)},WE.prototype.startNewSession=function(e,t){return this.endSession(e),this.newSession(e,t)},WE.prototype.startNewSessionIfNeeded=function(e,t){var r=this._lastEventTime;return null!==r&&null!==this._currentSessionId&&t-r<this.sessionTimeoutMillis?(this.updateLastEventTime(t),this._currentSessionId):this.startNewSession(e,t)},WE.prototype.updateLastEventTime=function(e){this._lastEventTime=e,this.storage.setItem("_hackle_last_event_ts","".concat(e))},WE.prototype.endSession=function(t){var r=this._currentSessionId,n=this._lastEventTime;null!==r&&null!==n&&this.sessionListeners.forEach(function(e){return e.onSessionEnded(r,t,n)})},WE.prototype.newSession=function(t,r){var n="".concat(r,".").concat(ae.v4().slice(0,8));return this.saveSession(n),this.updateLastEventTime(r),this.sessionListeners.forEach(function(e){e.onSessionStarted(n,t,r)}),n},WE.prototype.saveSession=function(e){this._currentSessionId=e,this.storage.setItem("_hackle_session_id",e)},WE.prototype.loadSession=function(){this._currentSessionId=this.storage.getItem("_hackle_session_id")},WE.prototype.loadLastEventTime=function(){var e=this.storage.getItem("_hackle_last_event_ts");null!==e&&0<(e=Number.parseFloat(e))&&(this._lastEventTime=e)},WE.prototype.onUserUpdated=function(e,t,r){this.endSession(e),this.newSession(t,r)},WE.EMPTY_SESSION_ID="0.ffffffff",WE),jE=(XE.postfix=function(e,t){return new XE(e,function(e){return"".concat(e).concat(t)})},XE.prototype.getItem=function(e){return this.delegate.getItem(this.transform(e))},XE.prototype.removeItem=function(e){this.delegate.removeItem(this.transform(e))},XE.prototype.setItem=function(e,t){this.delegate.setItem(this.transform(e),t)},XE),VE=($E.prototype.isEqualItem=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},$E.prototype.getRemainListSize=function(){try{return this.maxLength-JSON.stringify(this.getList()).length}catch(e){return 0}},$E.prototype.isAddableItem=function(e){try{return this.getRemainListSize()>JSON.stringify(e).length}catch(e){return!1}},$E.prototype.getVictimIndex=function(e){var t=this.getRemainListSize();try{var r=JSON.stringify(e),n=this.getList(),i=0;return n.findIndex(function(e){return(i+=JSON.stringify(e).length)+t>=r.length})}catch(e){return-1}},$E.prototype.getList=function(){try{var e,t=this.delegate.getItem(this.listKey);return t?(e=JSON.parse(t),Array.isArray(e)?e:[]):[]}catch(t){return[]}},$E.prototype.entries=function(){return this.getList().flatMap(Object.entries)},$E.prototype.setItem=function(e,t){var r;try{this.removeItem(e);var n=this.getList(),i=((r={})[e]=t,r);if(!this.isAddableItem(i)){var o=this.getVictimIndex(i);if(o<0)return;n=n.slice(o+1)}var s=JSON.stringify(n.concat(i));this.delegate.setItem(this.listKey,s)}catch(e){}},$E.prototype.getItem=function(t){var r=this,e=this.getList().find(function(e){return r.isEqualItem(e,t)});if(e&&e[t])return e[t]},$E.prototype.removeItem=function(t){var r=this,e=this.getList();try{var n=e.filter(function(e){return!r.isEqualItem(e,t)}),i=JSON.stringify(n);this.delegate.setItem(this.listKey,i)}catch(t){}},$E.prototype.clear=function(){this.delegate.removeItem(this.listKey)},$E),HE=(YE.prototype.currentUser=function(){var e=this.userManager.currentUser;return this.userResolver.resolve(e)},YE.prototype.getAbTestDecisions=function(){return this.core.experiments(this.currentUser()).entries()},YE.prototype.getAbTestOverrides=function(){return this.abOverrideStorage.getAll()},YE.prototype.setAbTestOverride=function(e,t){this.abOverrideStorage.set(e,t),this.increment("AB_TEST","set")},YE.prototype.resetAbTestOverride=function(e){this.abOverrideStorage.remove(e),this.increment("AB_TEST","reset")},YE.prototype.resetAllAbTestOverride=function(){this.abOverrideStorage.clear(),this.increment("AB_TEST","reset.all")},YE.prototype.getFeatureFlagDecisions=function(){return this.core.featureFlags(this.currentUser()).entries()},YE.prototype.getFeatureFlagOverrides=function(){return this.ffOverrideStorage.getAll()},YE.prototype.setFeatureFlagOverride=function(e,t){this.ffOverrideStorage.set(e,t),this.increment("FEATURE_FLAG","set")},YE.prototype.resetFeatureFlagOverride=function(e){this.ffOverrideStorage.remove(e),this.increment("FEATURE_FLAG","reset")},YE.prototype.resetAllFeatureFlagOverride=function(){this.ffOverrideStorage.clear(),this.increment("FEATURE_FLAG","reset.all")},YE.prototype.increment=function(e,t){fr.counter("experiment.manual.override",{"experiment.type":e,operation:t}).increment()},YE),KE=(qE.serverFetch=function(e){return"".concat(e,"/api/v2/workspaces")},qE.clientFetch=function(e,t){return"".concat(e,"/api/v2/w/").concat(t,"/w")},qE.serverDispatch=function(e){return"".concat(e,"/api/v2/events")},qE.clientDispatch=function(e){return"".concat(e,"/api/v2/w/events")},qE.beaconDispatch=function(e,t){return"".concat(e,"/api/v2/w/").concat(t,"/events")},qE),zE=de.log,BE=null,GE={debug:!1,log_disabled:!1,auto_track_page_view:!0,pollingIntervalMillis:-1,exposureEventDedupIntervalMillis:-1,sessionTimeoutMillis:18e5,autoOpenDevTool:!1,sdkUrl:"https://client-sdk.hackle.io",eventUrl:"https://event.hackle.io",monitoringUrl:"https://monitoring.hackle.io",SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.14.1"};function qE(){}function YE(e,t,r,n,i){this.core=e,this.userManager=t,this.userResolver=r,this.abOverrideStorage=n,this.ffOverrideStorage=i}function $E(e,t,r){void 0===r&&(r=4096);var n=this;this.delegate=e,this.listKey=t,this.encodedListCharLen=6,this.resolveMaxLength=function(e){e-=n.encodedListCharLen;return e<0?0:e},this.maxLength=this.resolveMaxLength(r)}function XE(e,t){this.delegate=e,this.transform=t}function WE(e,t){this.sessionTimeoutMillis=e,this.storage=t,this.sessionListeners=[],this._currentSessionId=null,this._lastEventTime=null,this.loadSession(),this.loadLastEventTime()}function JE(e,t){this.storage=e,this.hackleDeviceId=t,this.userListeners=[],this.defaultUser={deviceId:this.hackleDeviceId},this._currentUser=this.defaultUser,this.initialize()}function QE(e,t,r){this.storage=e,this.storageKey=t,this.maxSize=r}function ZE(e,t){t=h(h({},GE),t);if(de.initCounter(function(e){return fr.counter("log",{level:e})}),t.log_disabled?de.setLogLevel(pe.DISABLE):t.debug&&de.setLogLevel(pe.DEBUG),zE.debug("sdkKey : "+e),e||zE.error("SDK Key must not be null"),BE)return zE.debug("use already exists hackleClient"),BE;var r=!1,n=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&zE.debug("support sendBeacon API"),new Fr(e,Fe,{dispatchUrl:KE.clientDispatch(t.eventUrl),beaconDispatchUrl:KE.beaconDispatch(t.eventUrl,e),useBeacon:r,headers:((n={})[ye]=t.SDK_NAME_HEADER,n["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,n)})),i=-1,i=(void 0!==t.pollingIntervalMillis&&"number"==typeof t.pollingIntervalMillis&&0<t.pollingIntervalMillis&&(i=Math.max(t.pollingIntervalMillis,3e4)),new Hr(e,Fe,{fetchUrl:KE.clientFetch(t.sdkUrl,e),updateInterval:i,headers:((i={})[ye]=t.SDK_NAME_HEADER,i["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,i)})),o=-1,s=(void 0!==t.exposureEventDedupIntervalMillis&&"number"==typeof t.exposureEventDedupIntervalMillis&&-1!==t.exposureEventDedupIntervalMillis&&(o=t.exposureEventDedupIntervalMillis<1e3||36e5<t.exposureEventDedupIntervalMillis?(zE.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis),new DE(window.localStorage,"".concat("hackle-repository-storage","_").concat(e),100)),a=new LE(jE.postfix(Gr,"_".concat(e)),nn()),u=new FE(t.sessionTimeoutMillis,jE.postfix(Gr,"_".concat(e.slice(8))));a.addListener(u);function c(){p.drainRepository()}var l,f,p=new vg(n,100,500,s),n=new Eg(o),s=new gg(p,n,u,a),o=new xg(new VE(Gr,"".concat("hackle-manual-override_ab","_").concat(e.slice(0,8)))),n=new xg(new VE(Gr,"".concat("hackle-manual-override_ff","_").concat(e.slice(0,8)))),i=h0.create(i,s,[o,n]),s=new Yr(a),o=new HE(i,a,s,o,n),n=(null==(n=t.devTool)?void 0:n.userExplorer)&&"function"==typeof(null==(n=t.devTool)?void 0:n.userExplorer),n=t.devTool&&n?{manager:t.devTool,userExplorer:o}:void 0,d=new gr(i,s,u,a,n),o=new mg(s,i),o=(u.addListener(o),BE=d,t.auto_track_page_view&&(f=function(){return l.trackPageView({user:{id:nn()}})},(l=d).onReady(function(){function t(e){var t,r,n,i;return"function"==typeof window.Event?new Event(e):(r=t=!1,n=void 0,(i=document.createEvent("CustomEvent")).initCustomEvent(e,t,r,n),i)}f();try{history.pushState=(n=history.pushState,function(){try{var e=n.apply(this,arguments);return window.dispatchEvent(t("locationchange")),e}catch(e){if(e instanceof Error)zE.error(e);else try{zE.error(e)}catch(e){}}}),history.replaceState=(r=history.replaceState,function(){try{var e=r.apply(this,arguments);return window.dispatchEvent(t("locationchange")),e}catch(e){if(e instanceof Error)zE.error(e);else try{zE.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)zE.error(e);else try{zE.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{f()}catch(e){if(e instanceof Error)zE.error(e);else try{zE.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)zE.error(t);else try{zE.error(t)}catch(t){}}var r,n})),t.autoOpenDevTool&&(t.devTool?d.showUserExplorer():zE.error("DevTool is not provided")),(new v0).install(i,s),new pr(t.monitoringUrl,6e4,Fe,((n={})[ye]=t.SDK_NAME_HEADER,n["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,n["X-HACKLE-SDK-KEY"]=e,n),r));return document.addEventListener("visibilitychange",function(){document.hidden||c()}),window.addEventListener("pageshow",c),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){sn(),u.updateLastEventTime((new Date).getTime()),d.close(),fr.globalRegistry.close()}),fr.addRegistry(o),d.onReady(function(){u.startNewSessionIfNeeded(a.currentUser,(new Date).getTime())}),d}var ew={createInstance:ZE,getUserId:nn,setUserId:on,removeUserId:sn,Logger:de},tw=(l.Bucket=t.Bucket=Oe,l.Container=t.Container=Qe,l.ContainerGroup=t.ContainerGroup=Ue,l.CoreVersion=t.CoreVersion=ht,l.Decision=t.Decision=Ge,l.DecisionReason=t.DecisionReason=s,l.EmptyHackleRemoteConfig=t.EmptyHackleRemoteConfig=oe,l.EmptyParameterConfig=t.EmptyParameterConfig=Ye,l.EventType=t.EventType=Re,l.Experiment=t.Experiment=$e,l.FeatureFlagDecision=t.FeatureFlagDecision=qe,l.IdentifierType=t.IdentifierType=We,l.IdentifiersBuilder=t.IdentifiersBuilder=Je,l.Logger=t.Logger=de,l.MATCH_OPERATORS=t.MATCH_OPERATORS=gt,l.MATCH_TYPES=t.MATCH_TYPES=vt,l.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=mt,l.MetaVersion=t.MetaVersion=yt,l.ParameterConfiguration=t.ParameterConfiguration=Ze,l.RemoteConfigDecision=t.RemoteConfigDecision=Be,l.RemoteConfigParameter=t.RemoteConfigParameter=Me,l.RemoteConfigParameterValue=t.RemoteConfigParameterValue=Le,l.RemoteConfigTargetRule=t.RemoteConfigTargetRule=De,l.SEGMENT_TYPES=t.SEGMENT_TYPES=Tt,l.Segment=t.Segment=Pe,l.Slot=t.Slot=Xe,l.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=Et,l.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=wt,l.Target=t.Target=Se,l.TargetAction=t.TargetAction=xe,l.TargetCondition=t.TargetCondition=Ne,l.TargetKey=t.TargetKey=Ae,l.TargetMatch=t.TargetMatch=Ce,l.TargetRule=t.TargetRule=ke,l.TargetingType=t.TargetingType=bt,l.Variation=t.Variation=_e,l.Version=t.Version=dt,se=t.createInstance=ZE,t.default=ew,l.getUserId=t.getUserId=nn,l.removeUserId=t.removeUserId=sn,l.sanitizeUser=t.sanitizeUser=Ie,l.setUserId=t.setUserId=on,function(e,t){return(tw=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])}))(e,t)});var rw=function(){return(rw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function nw(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}iw.prototype.on=function(e,t){this.listeners[e]=(this.listeners[e]||[]).concat(t)},iw.prototype.off=function(e,t){this.listeners[e]=(this.listeners[e]||[]).filter(function(e){return e!==t})},iw.prototype.emit=function(e,t){(this.listeners[e]||[]).forEach(function(e){e(t)})};S=iw;function iw(){this.listeners={}}sw.arePropertiesEqual=function(e,t){var r=sw.coerceUnknownToProperties(e),n=sw.coerceUnknownToProperties(t),e=Object.keys(r),t=Object.keys(n);return e.length===t.length&&e.every(function(e){return e in n&&r[e]===n[e]})},sw.coerceUnknownToProperties=function(e){return"object"==typeof e&&null!==e?e:{}};var ow=sw;function sw(){}uw.isUserEqual=function(e,t){return(null==e?void 0:e.id)===(null==t?void 0:t.id)&&(null==e?void 0:e.deviceId)===(null==t?void 0:t.deviceId)&&(null==e?void 0:e.userId)===(null==t?void 0:t.userId)&&ow.arePropertiesEqual(null==e?void 0:e.properties,null==t?void 0:t.properties)&&ow.arePropertiesEqual(null==e?void 0:e.identifiers,null==t?void 0:t.identifiers)};var aw=uw;function uw(){}var cw=function(n){var e=i,t=n;if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}function i(e,t){var r=n.call(this)||this;return r._currentUser=null,r.client=se(e,rw(rw({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.14.1"})),null!=t&&t.devTool&&null!=t&&t.autoOpenDevTool&&r.showUserExplorer(),r}return tw(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r),i.prototype.getUser=function(){return this.client.getUser()},i.prototype.setUser=function(e){this.client.setUser(e),this.emitUpdatedUser(this.getUser())},i.prototype.setUserId=function(e){this.client.setUserId(e),this.emitUpdatedUser(this.getUser())},i.prototype.setDeviceId=function(e){this.client.setDeviceId(e),this.emitUpdatedUser(this.getUser())},i.prototype.setUserProperty=function(e,t){this.client.setUserProperty(e,t),this.emitUpdatedUser(this.getUser())},i.prototype.resetUser=function(){this.client.resetUser(),this.emitUpdatedUser(this.getUser())},i.prototype.variation=function(e,t,r){return this.client.variation(e,t||void 0,r)},i.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t||void 0,r)},i.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t||void 0)},i.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t||void 0)},i.prototype.track=function(e,t){this.client.track(e,t||void 0)},i.prototype.trackPageView=function(e){this.client.trackPageView(rw(rw({},e),{user:(null==e?void 0:e.user)||void 0}))},i.prototype.remoteConfig=function(e){return this.client.remoteConfig(e||void 0)},i.prototype.onReady=function(e,t){this.client.onReady(e,t)},i.prototype.onInitialized=function(e){return this.client.onInitialized(e)},i.prototype.emitUpdatedUser=function(e){aw.isUserEqual(this._currentUser,e)||this.emit("user-updated",e),this._currentUser=e},i.prototype.showUserExplorer=function(){this.client.showUserExplorer()},i.prototype.hideUserExplorer=function(){this.client.hideUserExplorer()},i}(S);var U={exports:{}},x={},lw=Object.getOwnPropertySymbols,fw=Object.prototype.hasOwnProperty,pw=Object.prototype.propertyIsEnumerable;var gi=function(){try{if(Object.assign){var e=new String("abc");if(e[5]="de","5"!==Object.getOwnPropertyNames(e)[0]){for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n,i=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"===i.join(""))return n={},"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")?1:void 0}}}catch(e){}}()?Object.assign:function(e,t){for(var r,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var o in r=Object(arguments[i]))fw.call(r,o)&&(n[o]=r[o]);if(lw)for(var s=lw(r),a=0;a<s.length;a++)pw.call(r,s[a])&&(n[s[a]]=r[s[a]])}return n},dw=gi,_="function"==typeof Symbol&&Symbol.for,hw=_?Symbol.for("react.element"):60103,yw=_?Symbol.for("react.portal"):60106,o=_?Symbol.for("react.fragment"):60107,vw=_?Symbol.for("react.strict_mode"):60108,pu=_?Symbol.for("react.profiler"):60114,mw=_?Symbol.for("react.provider"):60109,gw=_?Symbol.for("react.context"):60110,Ew=_?Symbol.for("react.forward_ref"):60112,wo=_?Symbol.for("react.suspense"):60113,ww=_?Symbol.for("react.memo"):60115,Tw=_?Symbol.for("react.lazy"):60116,bw="function"==typeof Symbol&&Symbol.iterator;function _w(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ow={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rw={};function Iw(e,t,r){this.props=e,this.context=t,this.refs=Rw,this.updater=r||Ow}function Sw(){}function Nw(e,t,r){this.props=e,this.context=t,this.refs=Rw,this.updater=r||Ow}Iw.prototype.isReactComponent={},Iw.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(_w(85));this.updater.enqueueSetState(this,e,t,"setState")},Iw.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Sw.prototype=Iw.prototype;var Sn=Nw.prototype=new Sw,Aw=(Sn.constructor=Nw,dw(Sn,Iw.prototype),Sn.isPureReactComponent=!0,{current:null}),Cw=Object.prototype.hasOwnProperty,xw={key:!0,ref:!0,__self:!0,__source:!0};function kw(e,t,r){var n,i={},o=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)Cw.call(t,n)&&!xw.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(1===a)i.children=r;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(n in a=e.defaultProps)void 0===i[n]&&(i[n]=a[n]);return{$$typeof:hw,type:e,key:o,ref:s,props:i,_owner:Aw.current}}function Pw(e){return"object"==typeof e&&null!==e&&e.$$typeof===hw}var Uw=/\/+/g,Mw=[];function Dw(e,t,r,n){var i;return Mw.length?((i=Mw.pop()).result=e,i.keyPrefix=t,i.func=r,i.context=n,i.count=0,i):{result:e,keyPrefix:t,func:r,context:n,count:0}}function Lw(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,Mw.length<10&&Mw.push(e)}function Fw(e,t,r){return null==e?0:function e(t,r,n,i){var o=!1;if(null===(t="undefined"!=(a=typeof t)&&"boolean"!==a?t:null))o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case hw:case yw:o=!0}}if(o)return n(i,t,""===r?"."+jw(t,0):r),1;if(o=0,r=""===r?".":r+":",Array.isArray(t))for(var s=0;s<t.length;s++){var a,u=r+jw(a=t[s],s);o+=e(a,u,n,i)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=bw&&t[bw]||t["@@iterator"])?u:null))for(t=u.call(t),s=0;!(a=t.next()).done;)o+=e(a=a.value,u=r+jw(a,s++),n,i);else if("object"===a)throw n=""+t,Error(_w(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return o}(e,"",t,r)}function jw(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=e.key,r={"=":"=0",":":"=2"},"$"+(""+e).replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function Vw(e,t){e.func.call(e.context,t,e.count++)}function Hw(e,t,r){var n=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Kw(e,n,r,function(e){return e}):null!=e&&(Pw(e)&&(t=i+(!(i=e).key||t&&t.key===e.key?"":(""+e.key).replace(Uw,"$&/")+"/")+r,e={$$typeof:hw,type:i.type,key:t,ref:i.ref,props:i.props,_owner:i._owner}),n.push(e))}function Kw(e,t,r,n,i){var o="";Fw(e,Hw,t=Dw(t,o=null!=r?(""+r).replace(Uw,"$&/")+"/":o,n,i)),Lw(t)}var zw={current:null};function Bw(){var e=zw.current;if(null===e)throw Error(_w(321));return e}var Gw,qw,Yw,Pl={ReactCurrentDispatcher:zw,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Aw,IsSomeRendererActing:{current:!1},assign:dw},N=(x.Children={map:function(e,t,r){return null==e||Kw(e,e=[],null,t,r),e},forEach:function(e,t,r){if(null==e)return e;Fw(e,Vw,t=Dw(null,null,t,r)),Lw(t)},count:function(e){return Fw(e,function(){return null},null)},toArray:function(e){var t=[];return Kw(e,t,null,function(e){return e}),t},only:function(e){if(Pw(e))return e;throw Error(_w(143))}},x.Component=Iw,x.Fragment=o,x.Profiler=pu,x.PureComponent=Nw,x.StrictMode=vw,x.Suspense=wo,x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pl,x.cloneElement=function(e,t,r){if(null==e)throw Error(_w(267,e));var n=dw({},e.props),i=e.key,o=e.ref,s=e._owner;if(null!=t)for(a in void 0!==t.ref&&(o=t.ref,s=Aw.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)Cw.call(t,a)&&!xw.hasOwnProperty(a)&&(n[a]=(void 0===t[a]&&void 0!==u?u:t)[a]);var a=arguments.length-2;if(1===a)n.children=r;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];n.children=u}return{$$typeof:hw,type:e.type,key:i,ref:o,props:n,_owner:s}},x.createContext=function(e,t){return(e={$$typeof:gw,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:mw,_context:e},e.Consumer=e},x.createElement=kw,x.createFactory=function(e){var t=kw.bind(null,e);return t.type=e,t},x.createRef=function(){return{current:null}},x.forwardRef=function(e){return{$$typeof:Ew,render:e}},x.isValidElement=Pw,x.lazy=function(e){return{$$typeof:Tw,_ctor:e,_status:-1,_result:null}},x.memo=function(e,t){return{$$typeof:ww,type:e,compare:void 0===t?null:t}},x.useCallback=function(e,t){return Bw().useCallback(e,t)},x.useContext=function(e,t){return Bw().useContext(e,t)},x.useDebugValue=function(){},x.useEffect=function(e,t){return Bw().useEffect(e,t)},x.useImperativeHandle=function(e,t,r){return Bw().useImperativeHandle(e,t,r)},x.useLayoutEffect=function(e,t){return Bw().useLayoutEffect(e,t)},x.useMemo=function(e,t){return Bw().useMemo(e,t)},x.useReducer=function(e,t,r){return Bw().useReducer(e,t,r)},x.useRef=function(e){return Bw().useRef(e)},x.useState=function(e){return Bw().useState(e)},x.version="16.14.0",{}),y=Function.call.bind(Object.prototype.hasOwnProperty),$w=function(){};function Xw(e,t,r,n,i){if("production"!==production)for(var o in e)if(Yw(e,o)){var s,a;try{if("function"!=typeof e[o])throw(a=Error((n||"React class")+": "+r+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.")).name="Invariant Violation",a;s=e[o](t,o,n,r,null,Gw)}catch(e){s=e}!s||s instanceof Error||$w((n||"React class")+": type specification of "+r+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in qw)&&(qw[s.message]=!0,o=i?i():"",$w("Failed "+r+" type: "+s.message+(null!=o?o:"")))}}if("production"!==production&&(Gw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",qw={},Yw=y,$w=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),Xw.resetWarningCache=function(){"production"!==production&&(qw={})},"production"!==production){var Ww=gi,Jw=Xw,P="function"==typeof Symbol&&Symbol.for,Qw=P?Symbol.for("react.element"):60103,Zw=P?Symbol.for("react.portal"):60106,e1=P?Symbol.for("react.fragment"):60107,t1=P?Symbol.for("react.strict_mode"):60108,r1=P?Symbol.for("react.profiler"):60114,n1=P?Symbol.for("react.provider"):60109,i1=P?Symbol.for("react.context"):60110,o1=P?Symbol.for("react.concurrent_mode"):60111,s1=P?Symbol.for("react.forward_ref"):60112,a1=P?Symbol.for("react.suspense"):60113,u1=P?Symbol.for("react.suspense_list"):60120,c1=P?Symbol.for("react.memo"):60115,l1=P?Symbol.for("react.lazy"):60116,f1=P?Symbol.for("react.block"):60121,p1=P?Symbol.for("react.fundamental"):60117,d1=P?Symbol.for("react.responder"):60118,h1=P?Symbol.for("react.scope"):60119,y1="function"==typeof Symbol&&Symbol.iterator,v1="@@iterator";function m1(e){return null!==e&&"object"==typeof e&&"function"==typeof(e=y1&&e[y1]||e[v1])?e:null}var g1={current:null},E1={current:null},w1=/^(.*)[\\\/]/,T1=1;function b1(e){if(null!=e){if("number"==typeof e.tag&&M("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case e1:return"Fragment";case Zw:return"Portal";case r1:return"Profiler";case t1:return"StrictMode";case a1:return"Suspense";case u1:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case i1:return"Context.Consumer";case n1:return"Context.Provider";case s1:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case c1:return b1(e.type);case f1:return b1(e.render);case l1:r=(t=e)._status===T1?t._result:null;if(r)return b1(r)}var t,r}return null}var _1={},O1=null;function R1(e){O1=e}_1.getCurrentStack=null,_1.getStackAddendum=function(){var e,t,r,n,i,o="",s=(O1&&(e=b1(O1.type),r=O1._owner,o+=(e=e,t=O1._source,r=r&&b1(r.type),i="",t?(n=(s=t.fileName).replace(w1,""),i=" (at "+(n=/^index\./.test(n)&&(s=s.match(w1))&&(s=s[1])?s.replace(w1,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(i=" (created by "+r+")"),"\n in "+(e||"Unknown")+i)),_1.getCurrentStack);return s&&(o+=s()||""),o};var I1={ReactCurrentDispatcher:g1,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:E1,IsSomeRendererActing:{current:!1},assign:Ww};function S1(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];N1("warn",e,r)}function M(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];N1("error",e,r)}function N1(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=I1.ReactDebugCurrentFrame.getStackAddendum())&&(t+="%s",r=r.concat([n]));var n=r.map(function(e){return""+e});n.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,n);try{var i=0,o="Warning: "+t.replace(/%s/g,function(){return r[i++]});throw new Error(o)}catch(e){}}Ww(I1,{ReactDebugCurrentFrame:_1,ReactComponentTreeHook:{}});var A1={};function C1(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;A1[r]||(M("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),A1[r]=!0)}var x1={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){C1(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){C1(e,"replaceState")},enqueueSetState:function(e,t,r,n){C1(e,"setState")}},k1={};function P1(e,t,r){this.props=e,this.context=t,this.refs=k1,this.updater=r||x1}Object.freeze(k1),P1.prototype.isReactComponent={},P1.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},P1.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var U1,M1={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(U1 in M1)M1.hasOwnProperty(U1)&&!function(e,t){Object.defineProperty(P1.prototype,e,{get:function(){S1("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(U1,M1[U1]);function D1(){}function L1(e,t,r){this.props=e,this.context=t,this.refs=k1,this.updater=r||x1}D1.prototype=P1.prototype,(P=L1.prototype=new D1).constructor=L1,Ww(P,P1.prototype),P.isPureReactComponent=!0;var F1,j1,V1=Object.prototype.hasOwnProperty,H1={key:!0,ref:!0,__self:!0,__source:!0};function K1(e){if(V1.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function z1(e){if(V1.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var B1={},G1=function(e,t,r,n,i,o,s){e={$$typeof:Qw,type:e,key:t,ref:r,props:s,_owner:o,_store:{}};return Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e};function q1(e,t,r){var n,i={},o=null,s=null,a=null,u=null;if(null!=t)for(n in K1(t)&&(s=t.ref,"string"==typeof(c=t).ref)&&E1.current&&c.__self&&E1.current.stateNode!==c.__self&&(f=b1(E1.current.type),B1[f]||(M('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',b1(E1.current.type),c.ref),B1[f]=!0)),z1(t)&&(o=""+t.key),a=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)V1.call(t,n)&&!H1.hasOwnProperty(n)&&(i[n]=t[n]);var c,l,f,p,d=arguments.length-2;if(1==d)i.children=r;else if(1<d){for(var h=Array(d),y=0;y<d;y++)h[y]=arguments[y+2];Object.freeze&&Object.freeze(h),i.children=h}if(e&&e.defaultProps){var v=e.defaultProps;for(n in v)void 0===i[n]&&(i[n]=v[n])}function m(){j1||(j1=!0,M("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",l))}function g(){F1||(F1=!0,M("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",p))}return(o||s)&&(c="function"==typeof e?e.displayName||e.name||"Unknown":e,o&&(f=i,p=c,g.isReactWarning=!0,Object.defineProperty(f,"key",{get:g,configurable:!0})),s)&&(r=i,l=c,m.isReactWarning=!0,Object.defineProperty(r,"ref",{get:m,configurable:!0})),G1(e,o,s,a,u,E1.current,i)}function Y1(e){return"object"==typeof e&&null!==e&&e.$$typeof===Qw}var $1=".",X1=":",W1=!1,J1=/\/+/g;function Q1(e){return(""+e).replace(J1,"$&/")}var Z1=10,eT=[];function tT(e,t,r,n){var i;return eT.length?((i=eT.pop()).result=e,i.keyPrefix=t,i.func=r,i.context=n,i.count=0,i):{result:e,keyPrefix:t,func:r,context:n,count:0}}function rT(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,eT.length<Z1&&eT.push(e)}function nT(e,t,r){return null==e?0:function e(t,r,n,i){var o,s=typeof t,a=!1;if(null===(t="undefined"!=s&&"boolean"!=s?t:null))a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case Qw:case Zw:a=!0}}if(a)return n(i,t,""===r?$1+iT(t,0):r),1;var u=0,c=""===r?$1:r+X1;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(o=t[l],c+iT(o,l),n,i);else if("function"==typeof(r=m1(t))){r===t.entries&&(W1||S1("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),W1=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(o=f.value,c+iT(o,d++),n,i)}else if("object"==s)throw r="",r=" If you meant to render a collection of children, use an array instead."+_1.getStackAddendum(),s=""+t,Error("Objects are not valid as a React child (found: "+("[object Object]"==s?"object with keys {"+Object.keys(t).join(", ")+"}":s)+")."+r);return u}(e,"",t,r)}function iT(e,t){var r;return"object"==typeof e&&null!==e&&null!=e.key?(e=e.key,r={"=":"=0",":":"=2"},"$"+(""+e).replace(/[=:]/g,function(e){return r[e]})):t.toString(36)}function oT(e,t,r){var n=e.func,i=e.context;n.call(i,t,e.count++)}function sT(e,t,r){var n=e.result,i=e.keyPrefix,o=e.func,s=e.context,o=o.call(s,t,e.count++);Array.isArray(o)?aT(o,n,r,function(e){return e}):null!=o&&(Y1(o)&&(e=i+(!(s=o).key||t&&t.key===o.key?"":Q1(o.key)+"/")+r,o=G1(s.type,e,s.ref,s._self,s._source,s._owner,s.props)),n.push(o))}function aT(e,t,r,n,i){var o="",t=tT(t,o=null!=r?Q1(r)+"/":o,n,i);nT(e,sT,t),rT(t)}function uT(e){return"string"==typeof e||"function"==typeof e||e===e1||e===o1||e===r1||e===t1||e===a1||e===u1||"object"==typeof e&&null!==e&&(e.$$typeof===l1||e.$$typeof===c1||e.$$typeof===n1||e.$$typeof===i1||e.$$typeof===s1||e.$$typeof===p1||e.$$typeof===d1||e.$$typeof===h1||e.$$typeof===f1)}function cT(){var e=g1.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");return e}function lT(){if(E1.current){var e=b1(E1.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var fT=!1,pT={};function dT(e,t){var r;!e._store||e._store.validated||null!=e.key||(e._store.validated=!0,t=t,(r=lT())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),pT[t=r])||(pT[t]=!0,r="",e&&e._owner&&e._owner!==E1.current&&(r=" It was passed a child from "+b1(e._owner.type)+"."),R1(e),M('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',t,r),R1(null))}function hT(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];Y1(n)&&dT(n,t)}else if(Y1(e))e._store&&(e._store.validated=!0);else if(e){var i=m1(e);if("function"==typeof i&&i!==e.entries)for(var o,s=i.call(e);!(o=s.next()).done;)Y1(o.value)&&dT(o.value,t)}}function yT(e){var t,r,n=e.type;null==n||"string"==typeof n||(t=b1(n),"function"!=typeof n&&("object"!=typeof n||n.$$typeof!==s1&&n.$$typeof!==c1))||((r=n.propTypes)?(R1(e),Jw(r,e.props,"prop",t,_1.getStackAddendum),R1(null)):void 0===n.PropTypes||fT||(fT=!0,M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",t||"Unknown")),"function"!=typeof n.getDefaultProps)||n.getDefaultProps.isReactClassApproved||M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}function vT(e,t,r){var n,i=uT(e),t=(i||(n="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(n+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),n+=(null!=(t=t)&&void 0!==(t=t.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"")||lT(),null===e?s="null":Array.isArray(e)?s="array":void 0!==e&&e.$$typeof===Qw?(s="<"+(b1(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,M("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,n)),q1.apply(this,arguments));if(null!=t){if(i)for(var o=2;o<arguments.length;o++)hT(arguments[o],e);if(e===e1){var s=t;R1(s);for(var a=Object.keys(s.props),u=0;u<a.length;u++){var c=a[u];if("children"!==c&&"key"!==c){M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==s.ref&&M("Invalid attribute `ref` supplied to `React.Fragment`."),R1(null)}else yT(t)}return t}var mT=!1;try{var gT=Object.freeze({}),ET=new Map([[gT,null]]),wT=new Set([gT]);ET.set(0,0),wT.add(0)}catch(e){}function TT(e,t,r){for(var n=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,i,o=Ww({},e.props),s=e.key,a=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in K1(t)&&(a=t.ref,l=E1.current),z1(t)&&(s=""+t.key),e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)V1.call(t,n)&&!H1.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==i?o[n]=i[n]:o[n]=t[n]);var f=arguments.length-2;if(1==f)o.children=r;else if(1<f){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];o.children=p}return G1(e.type,s,a,u,c,l,o)}.apply(this,arguments),i=2;i<arguments.length;i++)hT(arguments[i],n.type);return yT(n),n}function bT(e){var t=vT.bind(null,e);return t.type=e,mT||(mT=!0,S1("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return S1("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}P=vT,N.Children={map:function(e,t,r){return null==e||aT(e,e=[],null,t,r),e},forEach:function(e,t,r){if(null==e)return e;t=tT(null,null,t,r),nT(e,oT,t),rT(t)},count:function(e){return nT(e,function(){return null},null)},toArray:function(e){var t=[];return aT(e,t,null,function(e){return e}),t},only:function(e){if(Y1(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},N.Component=P1,N.Fragment=e1,N.Profiler=r1,N.PureComponent=L1,N.StrictMode=t1,N.Suspense=a1,N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I1,N.cloneElement=TT,N.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&M("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:i1,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:n1,_context:r}),i=!1,t={$$typeof:i1,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return i||(i=!0,M("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,M("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}}}),r.Consumer=t,r._currentRenderer=null,r._currentRenderer2=null,r},N.createElement=P,N.createFactory=bT,N.createRef=function(){var e={current:null};return Object.seal(e),e},N.forwardRef=function(e){return null!=e&&e.$$typeof===c1?M("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?M("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&M("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null==e||null==e.defaultProps&&null==e.propTypes||M("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:s1,render:e}},N.isValidElement=Y1,N.lazy=function(e){var t,r,n={$$typeof:l1,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){M("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){M("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},N.memo=function(e,t){return uT(e)||M("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:c1,type:e,compare:void 0===t?null:t}},N.useCallback=function(e,t){return cT().useCallback(e,t)},N.useContext=function(e,t){var r,n=cT();return void 0!==t&&M("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context&&((r=e._context).Consumer===e?M("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&M("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},N.useDebugValue=function(e,t){return cT().useDebugValue(e,t)},N.useEffect=function(e,t){return cT().useEffect(e,t)},N.useImperativeHandle=function(e,t,r){return cT().useImperativeHandle(e,t,r)},N.useLayoutEffect=function(e,t){return cT().useLayoutEffect(e,t)},N.useMemo=function(e,t){return cT().useMemo(e,t)},N.useReducer=function(e,t,r){return cT().useReducer(e,t,r)},N.useRef=function(e){return cT().useRef(e)},N.useState=function(e){return cT().useState(e)},N.version="16.14.0"}"production"===production?U.exports=x:U.exports=N;var _T=U.exports,OT=U.exports.createContext({hackle:void 0,userVersion:0,initialized:!1}),k=OT.Consumer,RT=OT.Provider;var IT=l.Logger.log;function ST(e,t){e=NT(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function NT(e,t){void 0===t&&(t="A");var r=U.exports.useContext(OT),n=r.hackle,i=r.userVersion,o=r.initialized,s=U.exports.useCallback(function(){return o?(null==n?void 0:n.variationDetail(e))||l.Decision.of(t,l.DecisionReason.EXCEPTION):l.Decision.of(t,l.DecisionReason.SDK_NOT_READY)},[t,e,n,o]),r=nw(U.exports.useState(function(){return n?s():(IT.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2),a=r[0],r=r[1],i={key:e,userVersion:i,initialized:o},u=nw(U.exports.useState(i),2),c=u[0],u=u[1];return xT(c,i)||(u(i),r(s())),{isLoading:!o,decision:a}}function AT(e){e=CT(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function CT(e){var t=U.exports.useContext(OT),r=t.hackle,n=t.userVersion,i=t.initialized,o=U.exports.useCallback(function(){return i?(null==r?void 0:r.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION):l.FeatureFlagDecision.off(l.DecisionReason.SDK_NOT_READY)},[e,r,i]),t=nw(U.exports.useState(function(){return r?o():(IT.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2),s=t[0],t=t[1],n={key:e,userVersion:n,initialized:i},a=nw(U.exports.useState(n),2),u=a[0],a=a[1];return xT(u,n)||(a(n),t(o())),{isLoading:!i,decision:s}}function xT(e,t){return e.initialized===t.initialized&&e.key===t.key&&e.userVersion===t.userVersion}function kT(e){var t,r=e.experimentKey,e=e.children,n=(r=ST(r)).isLoading,i=r.variation;return n?null:e&&"function"==typeof e?e(i):(U.exports.Children.forEach(e,function(e){U.exports.isValidElement(e)&&(e.props.variation?i===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?U.exports.cloneElement(t,{variation:i}):null)}function PT(e){return e.variation,e=e.children,U.exports.createElement(U.exports.Fragment,null,e)}function UT(e){var t=(r=AT(e.featureKey)).isLoading,r=r.isOn;return t?null:_T.createElement(_T.Fragment,null,e.children(r))}l.HackleContext=OT,l.HackleContextConsumer=k,l.HackleContextProvider=RT,l.HackleExperiment=kT,l.HackleFeature=UT,l.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(i=e.timeout)?3e3:i,i=void 0!==(i=e.supportSSR)&&i,e=e.children,o=nw(U.exports.useState({hackle:t,initialized:!1,userVersion:0}),2),s=o[0],a=o[1];return U.exports.useEffect(function(){null!=r&&t.setUser(r)},[r]),U.exports.useEffect(function(){function e(){a(function(e){return rw(rw({},e),{userVersion:e.userVersion+1})})}return t.on("user-updated",e),function(){t.off("user-updated",e)}},[t]),U.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){a(function(e){return rw(rw({},e),{initialized:!0})})},function(){a(function(e){return rw(rw({},e),{initialized:!0})})}).catch(function(){a(function(e){return rw(rw({},e),{initialized:!0})})})},[t]),i||s.initialized?_T.createElement(RT,{value:s},e):null},l.HackleVariation=PT,l.createInstance=function(e,t){return new cw(e,t)},l.useFeature=function(e){var t=(n=U.exports.useContext(OT)).hackle,r=n.userVersion,n=n.initialized,i=U.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e))||!1},[e,t,n]),o=(s=nw(U.exports.useState(function(){return t?i():("undefined"!=typeof window&&IT.error("HackleClient is not existed"),!1)}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=nw(U.exports.useState(r),2))[0],n=n[1];return xT(a,r)||(n(r),s(i())),o},l.useFeatureFlagDetail=function(e){var t=(n=U.exports.useContext(OT)).hackle,r=n.userVersion,n=n.initialized,i=U.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION)},[e,t,n]),o=(s=nw(U.exports.useState(function(){return t?i():("undefined"!=typeof window&&IT.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=nw(U.exports.useState(r),2))[0],n=n[1];return xT(a,r)||(n(r),s(i())),o},l.useLoadableFeature=AT,l.useLoadableFeatureDetail=CT,l.useLoadableRemoteConfig=function(){var e=(o=U.exports.useContext(OT)).hackle,t=o.userVersion,r=o.initialized,n=U.exports.useCallback(function(){return r&&(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),i=(o=nw(U.exports.useState(function(){return e||IT.error("HackleClient is not existed"),n()}),2))[0],o=o[1],t={userVersion:t,initialized:r},s=(a=nw(U.exports.useState(t),2))[0],a=a[1];return xT(s,t)||(a(t),o(n())),{isLoading:!r,remoteConfig:i}},l.useLoadableVariation=ST,l.useLoadableVariationDetail=NT,l.useRemoteConfig=function(){var e=(r=U.exports.useContext(OT)).hackle,t=r.userVersion,r=r.initialized,n=U.exports.useCallback(function(){return(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),i=(o=nw(U.exports.useState(function(){return e||IT.error("HackleClient is not existed"),n()}),2))[0],o=o[1],t={userVersion:t,initialized:r},s=(r=nw(U.exports.useState(t),2))[0],r=r[1];return xT(s,t)||(r(t),o(n())),i},l.useTrack=function(){var t=U.exports.useContext(OT).hackle;return t?function(e){return null==t?void 0:t.track(e)}:(IT.error("HackleClient is not existed"),function(){})},l.useVariation=function(e,t){void 0===t&&(t="A");var r=(a=U.exports.useContext(OT)).hackle,n=a.userVersion,i=a.initialized,o=U.exports.useCallback(function(){return i&&(null==r?void 0:r.variation(e))||t},[t,e,r,i]),s=(a=nw(U.exports.useState(function(){return r?o():("undefined"!=typeof window&&IT.error("HackleClient is not existed"),t)}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:i},u=(c=nw(U.exports.useState(n),2))[0],c=c[1];return xT(u,n)||(c(n),a(o())),s},l.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(i=U.exports.useContext(OT)).hackle,n=i.userVersion,i=i.initialized,o=U.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e))||l.Decision.of(t,l.DecisionReason.EXCEPTION)},[t,e,r,i]),s=(a=nw(U.exports.useState(function(){return r?o():("undefined"!=typeof window&&IT.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:i},u=(i=nw(U.exports.useState(n),2))[0],i=i[1];return xT(u,n)||(i(n),a(o())),s},Object.defineProperty(l,"__esModule",{value:!0})});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).hackleReactSDK={})}(this,function(l){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function D(r){if(r.__esModule)return r;var n=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach(function(e){var t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:function(){return r[e]}})}),n}var L,t={},F=new Uint8Array(16);function j(){if(L=L||"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))return L(F);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}var V=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function H(e){return"string"==typeof e&&V.test(e)}for(var K,z,B=[],G=0;G<256;++G)B.push((G+256).toString(16).substr(1));function q(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=(B[e[t+0]]+B[e[t+1]]+B[e[t+2]]+B[e[t+3]]+"-"+B[e[t+4]]+B[e[t+5]]+"-"+B[e[t+6]]+B[e[t+7]]+"-"+B[e[t+8]]+B[e[t+9]]+"-"+B[e[t+10]]+B[e[t+11]]+B[e[t+12]]+B[e[t+13]]+B[e[t+14]]+B[e[t+15]]).toLowerCase();if(H(e))return e;throw TypeError("Stringified UUID is invalid")}var Y=0,$=0;function X(e){if(!H(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}function W(e,s,a){function t(e,t,r,n){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),16!==(t="string"==typeof t?X(t):t).length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var i=new Uint8Array(16+e.length);if(i.set(t),i.set(e,t.length),(i=a(i))[6]=15&i[6]|s,i[8]=63&i[8]|128,r){n=n||0;for(var o=0;o<16;++o)r[n+o]=i[o];return r}return q(i)}try{t.name=e}catch(e){}return t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t}function J(e){return 14+(e+64>>>9<<4)+1}function Q(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function Z(e,t,r,n,i,o){return Q((t=Q(Q(t,e),Q(n,o)))<<i|t>>>32-i,r)}function ee(e,t,r,n,i,o,s){return Z(t&r|~t&n,e,t,i,o,s)}function te(e,t,r,n,i,o,s){return Z(t&n|r&~n,e,t,i,o,s)}function re(e,t,r,n,i,o,s){return Z(t^r^n,e,t,i,o,s)}function ne(e,t,r,n,i,o,s){return Z(r^(t|~n),e,t,i,o,s)}var r=W("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}for(var n=function(e,t){e[t>>5]|=128<<t%32,e[J(t)-1]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=r,u=n,c=i,l=o;r=ee(r,n,i,o,e[s],7,-680876936),o=ee(o,r,n,i,e[s+1],12,-389564586),i=ee(i,o,r,n,e[s+2],17,606105819),n=ee(n,i,o,r,e[s+3],22,-1044525330),r=ee(r,n,i,o,e[s+4],7,-176418897),o=ee(o,r,n,i,e[s+5],12,1200080426),i=ee(i,o,r,n,e[s+6],17,-1473231341),n=ee(n,i,o,r,e[s+7],22,-45705983),r=ee(r,n,i,o,e[s+8],7,1770035416),o=ee(o,r,n,i,e[s+9],12,-1958414417),i=ee(i,o,r,n,e[s+10],17,-42063),n=ee(n,i,o,r,e[s+11],22,-1990404162),r=ee(r,n,i,o,e[s+12],7,1804603682),o=ee(o,r,n,i,e[s+13],12,-40341101),i=ee(i,o,r,n,e[s+14],17,-1502002290),n=ee(n,i,o,r,e[s+15],22,1236535329),r=te(r,n,i,o,e[s+1],5,-165796510),o=te(o,r,n,i,e[s+6],9,-1069501632),i=te(i,o,r,n,e[s+11],14,643717713),n=te(n,i,o,r,e[s],20,-373897302),r=te(r,n,i,o,e[s+5],5,-701558691),o=te(o,r,n,i,e[s+10],9,38016083),i=te(i,o,r,n,e[s+15],14,-660478335),n=te(n,i,o,r,e[s+4],20,-405537848),r=te(r,n,i,o,e[s+9],5,568446438),o=te(o,r,n,i,e[s+14],9,-1019803690),i=te(i,o,r,n,e[s+3],14,-187363961),n=te(n,i,o,r,e[s+8],20,1163531501),r=te(r,n,i,o,e[s+13],5,-1444681467),o=te(o,r,n,i,e[s+2],9,-51403784),i=te(i,o,r,n,e[s+7],14,1735328473),n=te(n,i,o,r,e[s+12],20,-1926607734),r=re(r,n,i,o,e[s+5],4,-378558),o=re(o,r,n,i,e[s+8],11,-2022574463),i=re(i,o,r,n,e[s+11],16,1839030562),n=re(n,i,o,r,e[s+14],23,-35309556),r=re(r,n,i,o,e[s+1],4,-1530992060),o=re(o,r,n,i,e[s+4],11,1272893353),i=re(i,o,r,n,e[s+7],16,-155497632),n=re(n,i,o,r,e[s+10],23,-1094730640),r=re(r,n,i,o,e[s+13],4,681279174),o=re(o,r,n,i,e[s],11,-358537222),i=re(i,o,r,n,e[s+3],16,-722521979),n=re(n,i,o,r,e[s+6],23,76029189),r=re(r,n,i,o,e[s+9],4,-640364487),o=re(o,r,n,i,e[s+12],11,-421815835),i=re(i,o,r,n,e[s+15],16,530742520),n=re(n,i,o,r,e[s+2],23,-995338651),r=ne(r,n,i,o,e[s],6,-198630844),o=ne(o,r,n,i,e[s+7],10,1126891415),i=ne(i,o,r,n,e[s+14],15,-1416354905),n=ne(n,i,o,r,e[s+5],21,-57434055),r=ne(r,n,i,o,e[s+12],6,1700485571),o=ne(o,r,n,i,e[s+3],10,-1894986606),i=ne(i,o,r,n,e[s+10],15,-1051523),n=ne(n,i,o,r,e[s+1],21,-2054922799),r=ne(r,n,i,o,e[s+8],6,1873313359),o=ne(o,r,n,i,e[s+15],10,-30611744),i=ne(i,o,r,n,e[s+6],15,-1560198380),n=ne(n,i,o,r,e[s+13],21,1309151649),r=ne(r,n,i,o,e[s+4],6,-145523070),o=ne(o,r,n,i,e[s+11],10,-1120210379),i=ne(i,o,r,n,e[s+2],15,718787259),n=ne(n,i,o,r,e[s+9],21,-343485551),r=Q(r,a),n=Q(n,u),i=Q(i,c),o=Q(o,l)}return[r,n,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(J(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length),i=[],o=32*n.length,s="0123456789abcdef",a=0;a<o;a+=8){var u=n[a>>5]>>>a%32&255,u=parseInt(s.charAt(u>>>4&15)+s.charAt(15&u),16);i.push(u)}return i});function ie(e,t){return e<<t|e>>>32-t}var oe=W("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i<n.length;++i)e.push(n.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s),u=0;u<s;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*u+4*l]<<24|e[64*u+4*l+1]<<16|e[64*u+4*l+2]<<8|e[64*u+4*l+3];a[u]=c}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<s;++f){for(var p=new Uint32Array(80),d=0;d<16;++d)p[d]=a[f][d];for(var h=16;h<80;++h)p[h]=ie(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);for(var y=r[0],v=r[1],m=r[2],g=r[3],E=r[4],w=0;w<80;++w)var T=Math.floor(w/20),T=ie(y,5)+function(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}(T,v,m,g)+E+t[T]+p[w]>>>0,E=g,g=m,m=ie(v,30)>>>0,v=y,y=T;r[0]=r[0]+y>>>0,r[1]=r[1]+v>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+g>>>0,r[4]=r[4]+E>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]});var se,r=D(Object.freeze({__proto__:null,v1:function(e,t,r){var n=t&&r||0,i=t||new Array(16),o=(e=e||{}).node||K,r=void 0!==e.clockseq?e.clockseq:z,s=(null!=o&&null!=r||(s=e.random||(e.rng||j)(),null==o&&(o=K=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==r&&(r=z=16383&(s[6]<<8|s[7]))),void 0!==e.msecs?e.msecs:Date.now()),a=void 0!==e.nsecs?e.nsecs:$+1,u=s-Y+(a-$)/1e4;if(u<0&&void 0===e.clockseq&&(r=r+1&16383),1e4<=(a=(u<0||Y<s)&&void 0===e.nsecs?0:a))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Y=s,z=r,u=(1e4*(268435455&(s+=122192928e5))+($=a))%4294967296,i[n++]=u>>>24&255,i[n++]=u>>>16&255,i[n++]=u>>>8&255,i[n++]=255&u,e=s/4294967296*1e4&268435455,i[n++]=e>>>8&255,i[n++]=255&e,i[n++]=e>>>24&15|16,i[n++]=e>>>16&255,i[n++]=r>>>8|128,i[n++]=255&r;for(var c=0;c<6;++c)i[n+c]=o[c];return t||q(i)},v3:r,v4:function(e,t,r){var n=(e=e||{}).random||(e.rng||j)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return q(n)},v5:oe,NIL:"00000000-0000-0000-0000-000000000000",version:function(e){if(H(e))return parseInt(e.substr(14,1),16);throw TypeError("Invalid UUID")},validate:H,stringify:q,parse:X})),ae=(l.setUserId=void 0,l.sanitizeUser=void 0,l.removeUserId=void 0,l.getUserId=void 0,l.Version=void 0,l.Variation=void 0,l.TargetingType=void 0,l.TargetRule=void 0,l.TargetMatch=void 0,l.TargetKey=void 0,l.TargetCondition=void 0,l.TargetAction=void 0,l.Target=void 0,l.TARGET_KEY_TYPES=void 0,l.TARGET_ACTION_TYPES=void 0,l.Slot=void 0,l.Segment=void 0,l.SEGMENT_TYPES=void 0,l.RemoteConfigTargetRule=void 0,l.RemoteConfigParameterValue=void 0,l.RemoteConfigParameter=void 0,l.RemoteConfigDecision=void 0,l.ParameterConfiguration=void 0,l.MetaVersion=void 0,l.MATCH_VALUE_TYPES=void 0,l.MATCH_TYPES=void 0,l.MATCH_OPERATORS=void 0,l.Logger=void 0,l.IdentifiersBuilder=void 0,l.IdentifierType=void 0,l.FeatureFlagDecision=void 0,l.Experiment=void 0,l.EventType=void 0,l.EmptyParameterConfig=void 0,l.EmptyHackleRemoteConfig=void 0,l.DecisionReason=void 0,l.Decision=void 0,l.CoreVersion=void 0,l.ContainerGroup=void 0,l.Container=void 0,l.Bucket=void 0,Object.defineProperty(t,"__esModule",{value:!0}),r),ue=function(e,t){return(ue=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])})(e,t)};function ce(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ue(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var h=function(){return(h=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function le(e,s,a,u){return new(a=a||Promise)(function(r,t){function n(e){try{o(u.next(e))}catch(e){t(e)}}function i(e){try{o(u.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?r(e.value):((t=e.value)instanceof a?t:new a(function(e){e(t)})).then(n,i)}o((u=u.apply(e,s||[])).next())})}function fe(n,i){var o,s,a,u={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(r){return function(e){var t=[r,e];if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,s&&(a=2&t[0]?s.return:t[0]?s.throw||((a=s.return)&&a.call(s),0):s.next)&&!(a=a.call(s,t[1])).done)return a;switch(s=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,s=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!((a=0<(a=u.trys).length&&a[a.length-1])||6!==t[0]&&2!==t[0])){u=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){u.label=t[1];break}if(6===t[0]&&u.label<a[1]){u.label=a[1],a=t;break}if(a&&u.label<a[2]){u.label=a[2],u.ops.push(t);break}a[2]&&u.ops.pop(),u.trys.pop();continue}t=i.call(n,u)}catch(e){t=[6,e],s=0}finally{o=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}Te.isNotNullOrUndefined=function(e){return null!=e},Te.isNullOrUndefined=function(e){return null==e},Te.requiredNotNullOrUndefined=function(e,t){if(void 0===t&&(t=function(){return"Required value is null or undefined"}),this.isNullOrUndefined(e))throw new Error(t());return e};var a=Te,f=(we.mapNotNullOrUndefined=function(e,t){for(var r=Array(),n=0,i=e;n<i.length;n++){var o=t(i[n]);a.isNotNullOrUndefined(o)&&r.push(o)}return r},we.associateTo=function(e,t,r){for(var n=0,i=e;n<i.length;n++){var o=r(i[n]);t.set(o[0],o[1])}return t},we.associate=function(e,t){return this.associateTo(e,new Map,t)},we.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},we.chunked=function(e,t){for(var r=[],n=e.slice();n.length;)r.push(n.splice(0,t));return r},we),pe={DISABLE:0,ERROR:1,WARN:2,INFO:3,DEBUG:4},de=(Ee.setLogLevel=function(e){this.logLevel=e=void 0===e?pe.INFO:e},Ee.initCounter=function(t){this.counters=f.associate(Object.keys(pe),function(e){return[e,t(e)]})},Ee._log=function(e,t){var r;switch(e){case"WARN":r="orange";break;case"ERROR":r="red";break;default:r="#AAAAAA"}if(t instanceof Error)he.log(e,r,t.message,t);else try{he.log(e,r,t)}catch(e){}},Ee.increment=function(e){var t;null!=(t=null==(t=Ee.counters)?void 0:t.get(e))&&t.increment()},Ee.logLevel=pe.INFO,Ee.log={error:function(e){pe.ERROR<=Ee.logLevel&&(Ee._log("ERROR",e),Ee.increment("ERROR"))},warn:function(e){pe.WARN<=Ee.logLevel&&(Ee._log("WARN",e),Ee.increment("WARN"))},info:function(e){pe.INFO<=Ee.logLevel&&(Ee._log("INFO",e),Ee.increment("INFO"))},debug:function(e){pe.DEBUG<=Ee.logLevel&&(Ee._log("DEBUG",e),Ee.increment("DEBUG"))}},Ee),he=(ge.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},ge),ye="X-HACKLE-SDK-NAME",ve=[0,8,16,32,64,128,256,512],me=de.log;function ge(){}function Ee(){}function we(){}function Te(){}function be(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function _e(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n}function Oe(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function Re(e,t){this.id=e,this.key=t}function Ie(e){var t,r={};return r.id=null!=(t=Ve.sanitizeValue(e.id))?t:void 0,r.userId=null!=(t=Ve.sanitizeValue(e.userId))?t:void 0,r.deviceId=null!=(t=Ve.sanitizeValue(e.deviceId))?t:void 0,"object"==typeof e.properties&&(r.properties=Ke.sanitize(e.properties)),"object"==typeof e.identifiers&&(r.identifiers=Ve.sanitize(e.identifiers)),Boolean(r.id||r.userId||r.deviceId||r.identifiers&&0<Object.keys(r.identifiers).length)?r:null}function Se(e){this.conditions=e}function Ne(e,t){this.key=e,this.match=t}function Ae(e,t){this.type=e,this.name=t}function Ce(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function xe(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function ke(e,t){this.target=e,this.action=t}function Pe(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function Ue(e,t){this.id=e,this.experiments=t}function Me(e,t,r,n,i,o){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.targetRules=i,this.defaultValue=o}function De(e,t,r,n,i){this.key=e,this.name=t,this.target=r,this.bucketId=n,this.value=i}function Le(e,t){this.id=e,this.rawValue=t}var Fe={getRequest:function(n,i){return{abort:function(){},responsePromise:new Promise(function(e,t){var r=new XMLHttpRequest;r.open("GET",n),r.onreadystatechange=function(){r.readyState===r.DONE&&(0===r.status?t(new Error("Request error")):e({statusCode:r.status,body:r.responseText}))},r.onerror=function(){t()},r.setRequestHeader("content-type","application/json"),be(r,i),r.send()})}},postRequest:function(e,t,r,n,i){var t=JSON.stringify(t),o=new XMLHttpRequest;o.open("POST",e),o.onreadystatechange=function(){o.readyState===o.DONE&&(200<=o.status&&o.status<400?n({statusCode:o.status}):i&&i({statusCode:o.status}))},o.setRequestHeader("content-type","application/json"),be(o,r),o.send(t)},sendBeacon:function(e,t,r,n,i){var o=!1;if(o="undefined"!=typeof window?window&&window.navigator&&window.navigator.sendBeacon&&!0:o){o=JSON.stringify(t),t=new URLSearchParams;if(t.append("sdkName",r[ye]),t.append("sdkVersion",r["X-HACKLE-SDK-VERSION"]),t.append("sdkKey",r["X-HACKLE-SDK-KEY"]),t.append("data",o),!window.navigator.sendBeacon(e,t))return me.error("sendBeacon failed to queue request."),void i();n()}else me.error("Does not support sendBeacon"),i()}},je=de.log,Ve=(pt.isEquals=function(t,r){if(null==r)return!1;var e=Object.keys(t);return e.length===Object.keys(r).length&&e.every(function(e){return t[e]===r[e]})},pt.sanitize=function(e){var t={};if(a.isNullOrUndefined(e))return t;for(var r=0,n=Object.entries(e);r<n.length;r++){var i=n[r],o=i[0],i=i[1];this.isValidType(o)?(i=this.sanitizeValue(i),a.isNullOrUndefined(i)?je.debug("Invalid identifier value. The identifier type value be a string of 512 characters or less. [".concat(o,"]")):t[o]=i):je.debug("Invalid identifier type. The identifier type must be a string of 128 characters or less. [".concat(o,"]"))}return t},pt.isValidType=function(e){return!a.isNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_TYPE_LENGTH},pt.sanitizeValue=function(e){return"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_VALUE_LENGTH?e:"number"==typeof e?e.toString():null},pt.MAX_IDENTIFIER_TYPE_LENGTH=128,pt.MAX_IDENTIFIER_VALUE_LENGTH=512,pt),He=de.log,Ke=(ft.sanitize=function(e){var t={};if(a.isNullOrUndefined(e))return t;for(var r=0,n=Object.entries(e);r<n.length;r++){var i,o=n[r],s=o[0],o=o[1];if(Object.keys(t).length>=this.MAX_PROPERTIES_COUNT){He.debug("The number of properties cannot exceed 128. Drops excess properties. [".concat(s,", ").concat(o,"]"));break}this.isValidKey(s)?(i=this.sanitizeValue(s,o),a.isNullOrUndefined(i)?He.debug("Invalid property value. The property value mus be 'string(..1024)', 'number', 'boolean', or 'array' type. [".concat(o,"]")):t[s]=i):He.debug("Invalid property key. The property key must be a string of 128 characters or less. [".concat(s,"]"))}return t},ft.isValidProperty=function(e,t){return this.isValidKey(e)&&this.isValidValue(t)},ft.isValidKey=function(e){return a.isNotNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_PROPERTY_KEY_LENGTH},ft.sanitizeValue=function(e,t){var r=this;return e.startsWith(this.SYSTEM_PROPERTY_KEY_PREFIX)?t:this.isValidValue(t)?Array.isArray(t)?t.filter(function(e){return r.isValidElement(e)}):t:null},ft.isValidValue=function(e){return!a.isNullOrUndefined(e)&&("string"==typeof e?e.length<=this.MAX_PROPERTY_VALUE_LENGTH:"number"==typeof e?!isNaN(e)&&isFinite(e):"boolean"==typeof e||Array.isArray(e))},ft.isValidElement=function(e){return!a.isNullOrUndefined(e)&&("string"==typeof e?0<e.length&&e.length<=this.MAX_PROPERTY_VALUE_LENGTH:"number"==typeof e)},ft.SYSTEM_PROPERTY_KEY_PREFIX="$",ft.MAX_PROPERTIES_COUNT=128,ft.MAX_PROPERTY_KEY_LENGTH=128,ft.MAX_PROPERTY_VALUE_LENGTH=1024,ft),ze=de.log,Be=(lt.of=function(e,t){return new lt(e,t)},lt),Ge=(ct.of=function(e,t,r){return new ct(e,t,r=void 0===r?new Ye:r)},ct.prototype.get=function(e,t){return this.config.get(e,t)},ct),qe=(ut.on=function(e,t){return new ut(!0,e,t=void 0===t?new Ye:t)},ut.off=function(e,t){return new ut(!1,e,t=void 0===t?new Ye:t)},ut.prototype.get=function(e,t){return this.config.get(e,t)},ut),oe=(at.prototype.get=function(e,t){return t},at),Ye=(st.prototype.get=function(e,t){return t},st),s=(n.SDK_NOT_READY="SDK_NOT_READY",n.EXCEPTION="EXCEPTION",n.INVALID_INPUT="INVALID_INPUT",n.EXPERIMENT_NOT_FOUND="EXPERIMENT_NOT_FOUND",n.EXPERIMENT_DRAFT="EXPERIMENT_DRAFT",n.EXPERIMENT_PAUSED="EXPERIMENT_PAUSED",n.EXPERIMENT_COMPLETED="EXPERIMENT_COMPLETED",n.OVERRIDDEN="OVERRIDDEN",n.TRAFFIC_NOT_ALLOCATED="TRAFFIC_NOT_ALLOCATED",n.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT="NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT",n.IDENTIFIER_NOT_FOUND="IDENTIFIER_NOT_FOUND",n.VARIATION_DROPPED="VARIATION_DROPPED",n.TRAFFIC_ALLOCATED="TRAFFIC_ALLOCATED",n.TRAFFIC_ALLOCATED_BY_TARGETING="TRAFFIC_ALLOCATED_BY_TARGETING",n.NOT_IN_EXPERIMENT_TARGET="NOT_IN_EXPERIMENT_TARGET",n.FEATURE_FLAG_NOT_FOUND="FEATURE_FLAG_NOT_FOUND",n.FEATURE_FLAG_INACTIVE="FEATURE_FLAG_INACTIVE",n.INDIVIDUAL_TARGET_MATCH="INDIVIDUAL_TARGET_MATCH",n.TARGET_RULE_MATCH="TARGET_RULE_MATCH",n.DEFAULT_RULE="DEFAULT_RULE",n.REMOTE_CONFIG_PARAMETER_NOT_FOUND="REMOTE_CONFIG_PARAMETER_NOT_FOUND",n.TYPE_MISMATCH="TYPE_MISMATCH",n),$e=(ot.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},ot.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},ot.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},ot),Xe=(it.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},it),We=(nt.ID="$id",nt.USER="$userId",nt.DEVICE="$deviceId",nt.SESSION="$sessionId",nt.HACKLE_DEVICE="$hackleDeviceId",nt),Je=(rt.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},rt.prototype.add=function(e,t){var r=Ve.sanitizeValue(t);return Ve.isValidType(e)&&r?this.identifiers[e]=t:ze.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},rt.prototype.build=function(){return this.identifiers},rt),Qe=(tt.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},tt),Ze=(et.prototype.get=function(e,t){e=this.parameters.get(e);return!a.isNullOrUndefined(e)&&(a.isNullOrUndefined(t)||typeof e==typeof t)?e:t},et);function et(e,t){this.id=e,this.parameters=t}function tt(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function rt(){this.identifiers={}}function nt(){}function it(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function ot(e,t,r,n,i,o,s,a,u,c,l,f,p,d){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.status=i,this.version=o,this.variations=s,this.userOverrides=a,this.segmentOverrides=u,this.targetAudiences=c,this.targetRules=l,this.defaultRule=f,this.containerId=p,this._winnerVariationId=d}function n(){}function st(){}function at(){}function ut(e,t,r){this.isOn=e,this.reason=t,this.config=r}function ct(e,t,r){this.variation=e,this.reason=t,this.config=r}function lt(e,t){this.value=e,this.reason=t}function ft(){}function pt(){}Pt.tryParse=function(e){var t,r,n,i,e=Pt.regExp.exec(e);if(e)return e[0],t=e[1],r=void 0===(r=e[2])?"0":r,n=void 0===(n=e[3])?"0":n,i=e[4],e=e[5],new Pt(new ht(parseInt(t,10),parseInt(r,10),parseInt(n,10)),yt.parse(i),yt.parse(e))},Pt.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},Pt.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},Pt.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},Pt.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},Pt.prototype.isLessThan=function(e){return this.compareTo(e)<0},Pt.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},Pt.regExp=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*))?(?:\.(0|[1-9]\d*))?(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;var dt=Pt,ht=(kt.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},kt),yt=(xt.parse=function(e){return e?new xt(e.split(".")):xt.EMPTY},xt.prototype.isEmpty=function(){return 0===this.identifiers.length},xt.prototype.isNotEmpty=function(){return!this.isEmpty()},xt.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},xt.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=xt.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},xt.compareIdentifiers=function(e,t){return xt.numericIdentifierRegExp.test(e)&&xt.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},xt.EMPTY=new xt([]),xt.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,xt),vt=["MATCH","NOT_MATCH"],mt=["STRING","NUMBER","BOOLEAN","VERSION","JSON","NULL","UNKNOWN"],gt=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],Et=["VARIATION","BUCKET"],wt=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT","AB_TEST","FEATURE_FLAG"],Tt=["USER_ID","USER_PROPERTY"],bt=(Ct.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},Ct.IDENTIFIER=new Ct("SEGMENT"),Ct.PROPERTY=new Ct("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY","AB_TEST","FEATURE_FLAG"),Ct.SEGMENT=new Ct("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),Ct),_t=(i.nanosToUnit=function(e,t){switch(t){case"microseconds":return e/(i.C1/i.C0);case"milliseconds":return e/(i.C2/i.C0);case"seconds":return e/(i.C3/i.C0);default:return e}},i.microsToUnit=function(e,t){switch(t){case"nanoseconds":return e*(i.C1/i.C0);case"milliseconds":return e/(i.C2/i.C1);case"seconds":return e/(i.C3/i.C1);default:return e}},i.millisToUnit=function(e,t){switch(t){case"nanoseconds":return e*(i.C2/i.C0);case"microseconds":return e*(i.C2/i.C1);case"seconds":return e/(i.C3/i.C2);default:return e}},i.secondsToUnit=function(e,t){switch(t){case"nanoseconds":return e*(i.C3/i.C0);case"microseconds":return e*(i.C3/i.C1);case"milliseconds":return e*(i.C3/i.C2);default:return e}},i.C3=1e3*(i.C2=1e3*(i.C1=1e3*(i.C0=1))),i.converter={nanoseconds:i.nanosToUnit,microseconds:i.microsToUnit,milliseconds:i.millisToUnit,seconds:i.secondsToUnit},i),Ot=(At.prototype.tick=function(){return"undefined"!=typeof performance?1e3*performance.now():"undefined"!=typeof process&&process.hrtime?(1e9*(e=process.hrtime())[0]+e[1])/1e3:1e3*Date.now();var e},At.prototype.currentMillis=function(){return Date.now()},At.instance=new At,At),Rt=(Nt.prototype.tags=function(e){var r=this;return Object.entries(e).forEach(function(e){var t=e[0],e=e[1];r._tags[t]=e}),this},Nt.prototype.tag=function(e,t){return this._tags[e]=t,this},Nt.prototype.register=function(e){return e.registerTimer({name:this.name,tags:this._tags,type:"TIMER"})},Nt),It=(St.start=function(e){return new St(e=void 0===e?St.defaultClock:e)},St.prototype.stop=function(e){var t=this._clock.tick()-this.startTime;e.record(t,"microseconds")},St.defaultClock=new Ot,St);function St(e){this._clock=e,this.startTime=this._clock.tick()}function Nt(e){this.name=e,this._tags={},this.name=e}function At(){}function i(){}function Ct(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function xt(e){this.identifiers=e}function kt(e,t,r){this.major=e,this.minor=t,this.patch=r}function Pt(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}Mt.prototype.tags=function(e){var r=this;return Object.entries(e).forEach(function(e){var t=e[0],e=e[1];r._tags[t]=e}),this},Mt.prototype.tag=function(e,t){return this._tags[e]=t,this},Mt.prototype.register=function(e){return e.registerCounter({name:this.name,tags:this._tags,type:"COUNTER"})};var Ut=Mt;function Mt(e){this.name=e,this._tags={}}Object.defineProperty(Lt.prototype,"value",{get:function(){return this.valueSupplier()},enumerable:!1,configurable:!0});var Dt=Lt;function Lt(e,t){this.valueSupplier=t,this.field=e}function Ft(e,t){return e.name===t.name&&Ve.isEquals(e.tags,t.tags)}Yt.prototype.count=function(){return this.counterValue},Yt.prototype.increment=function(e){this.counterValue+=null!=e?e:1},Yt.prototype.measure=function(){return[new Dt("count",this.count.bind(this))]};var jt,Vt=Yt,Ht=(qt.prototype.flush=function(){var e=this.currentCounter;return this.currentCounter=new Vt(this.id),e},qt.prototype.count=function(){return this.currentCounter.count()},qt.prototype.increment=function(e){this.currentCounter.increment(e)},qt.prototype.measure=function(){return[new Dt("count",this.count.bind(this))]},qt),Kt=(Gt.prototype.values=function(){return Array.from(this.data.values())},Gt.prototype.keys=function(){return Array.from(this.data.keys())},Gt.prototype.get=function(t){var r=this,e=this.keys().find(function(e){return r.compareFn(e,t)});return e?this.data.get(e):void 0},Gt.prototype.has=function(e){return void 0!==this.get(e)},Gt.prototype.add=function(e,t){t=(t=t)||e;return this.data.set(e,t),this},Gt.prototype.delete=function(e){var t;if(this.has(e))return t=this.get(e),this.data.delete(e),t},Gt.prototype.forEach=function(e){this.data.forEach(e)},Gt.prototype.entries=function(){return Array.from(this.data.entries())},Gt),r=(Object.defineProperty(Bt.prototype,"metrics",{get:function(){return Array.from(this._metrics.values())},enumerable:!1,configurable:!0}),Bt.prototype.registerCounter=function(e){return this.registerMetricIfNecessary(e,this.createCounter.bind(this))},Bt.prototype.registerTimer=function(e){return this.registerMetricIfNecessary(e,this.createTimer.bind(this))},Bt.prototype.counter=function(e,t){return void 0===t&&(t={}),new Ut(e).tags(t).register(this)},Bt.prototype.timer=function(e,t){return void 0===t&&(t={}),new Rt(e).tags(t).register(this)},Bt.prototype.registerMetricIfNecessary=function(e,t){return this.getOrCreateMetric(e,t)},Bt.prototype.getOrCreateMetric=function(e,t){var r,n=this._metrics.get(e);return n?r=n:(r=t(e),this._metrics.add(e,r)),r},Bt.prototype.close=function(){},Bt),o=(ce(zt,jt=r),zt.prototype.start=function(){var e=this;void 0===this.currentIntervalId&&(this.currentIntervalId=setInterval(function(){e.publish()},this.pushIntervalMillis),de.log.debug("PushMetricRegistry started. Publish metrics every ".concat(this.pushIntervalMillis,"ms.")))},zt.prototype.stop=function(){void 0!==this.currentIntervalId&&(clearInterval(this.currentIntervalId),this.currentIntervalId=void 0,this.publish(),de.log.debug("PushMetricRegistry stopped."))},zt.prototype.close=function(){this.stop()},zt);function zt(e){var t=jt.call(this)||this;return t.pushIntervalMillis=e,t.currentIntervalId=void 0,t.pushIntervalMillis=e,t}function Bt(){this.id=ae.v4(),this.name="MetricRegistry",this._metrics=new Kt(Ft)}function Gt(e){this.compareFn=e,this.data=new Map,this.compareFn=e,this.data=new Map}function qt(e){this.id=e,this.currentCounter=new Vt(e)}function Yt(e){this.counterValue=0,this.id=e}nr.prototype.count=function(){return this._count},nr.prototype.totalTime=function(e){return _t.nanosToUnit(this._total,e)},nr.prototype.max=function(e){return _t.nanosToUnit(this._max,e)},nr.prototype.mean=function(e){return 0===this.count()?0:this.totalTime(e)/this.count()},nr.prototype.record=function(e,t){e<0||(t=_t.converter[t](e,"nanoseconds"),this._count=this.count()+1,this._total+=t,this._max=Math.max(t,this._max))},nr.prototype.measure=function(){var e=this;return[new Dt("count",this.count.bind(this)),new Dt("total",function(){return e.totalTime("milliseconds")}),new Dt("max",function(){return e.max("milliseconds")}),new Dt("mean",function(){return e.mean("milliseconds")})]};var $t,Xt=nr,Wt=(rr.prototype.flush=function(){var e=this.currentTimer;return this.currentTimer=new Xt(this.id),e},rr.prototype.count=function(){return this.currentTimer.count()},rr.prototype.totalTime=function(e){return this.currentTimer.totalTime(e)},rr.prototype.max=function(e){return this.currentTimer.max(e)},rr.prototype.record=function(e,t){this.currentTimer.record(e,t)},rr.prototype.mean=function(e){return 0===this.count()?0:this.totalTime(e)/this.count()},rr.prototype.measure=function(){var e=this;return[new Dt("count",this.count.bind(this)),new Dt("total",function(){return e.totalTime("milliseconds")}),new Dt("max",function(){return e.max("milliseconds")}),new Dt("mean",function(){return e.mean("milliseconds")})]},rr),o=(ce(tr,$t=o),tr.prototype.createCounter=function(e){return new Ht(e)},tr.prototype.createTimer=function(e){return new Wt(e)},tr.prototype.publish=function(){var e=this.metrics.reduce(function(e,t){return void 0!==t.flush&&"function"==typeof t.flush?e.concat(t.flush()):e},[]);this.flushMetrics(e)},tr.prototype.close=function(){$t.prototype.close.call(this)},tr),Jt=(er.prototype.count=function(){return 0},er.prototype.increment=function(e){},er.prototype.measure=function(){return[new Dt("count",this.count.bind(this))]},er),Qt=(Object.defineProperty(Zt.prototype,"counters",{get:function(){return Array.from(this._counters.values())},enumerable:!1,configurable:!0}),Zt.prototype.add=function(e){this._counters.add(e,e.registerCounter(this.id))},Zt.prototype.count=function(){return(this.counters[0]||this.noopCounter).count()},Zt.prototype.increment=function(t){this.counters.forEach(function(e){e.increment(t)})},Zt.prototype.measure=function(){return[new Dt("count",this.count.bind(this))]},Zt);function Zt(e){this._counters=new Kt(function(e,t){return e.id===t.id}),this.id=e,this.noopCounter=new Jt(e)}function er(e){this.id=e}function tr(e){return $t.call(this,e)||this}function rr(e){this.id=e,this.currentTimer=new Xt(e)}function nr(e){this._count=0,this._total=0,this._max=0,this.id=e}Mr.prototype.measure=function(){var e=this;return[new Dt("count",this.count.bind(this)),new Dt("total",function(){return e.totalTime("milliseconds")}),new Dt("max",function(){return e.max("milliseconds")}),new Dt("mean",function(){return e.mean("milliseconds")})]},Mr.prototype.count=function(){return 0},Mr.prototype.totalTime=function(e){return 0},Mr.prototype.max=function(e){return 0},Mr.prototype.mean=function(e){return 0},Mr.prototype.record=function(e,t){};var ir,or,sr,ar,ur,cr=Mr,lr=(Object.defineProperty(Ur.prototype,"firstTimer",{get:function(){return this.timers[0]||this.noopTimer},enumerable:!1,configurable:!0}),Ur.prototype.totalTime=function(e){return this.firstTimer.totalTime(e)},Ur.prototype.max=function(e){return this.firstTimer.max(e)},Ur.prototype.mean=function(e){return this.firstTimer.mean(e)},Ur.prototype.record=function(t,r){this.timers.forEach(function(e){e.record(t,r)})},Object.defineProperty(Ur.prototype,"timers",{get:function(){return Array.from(this._timers.values())},enumerable:!1,configurable:!0}),Ur.prototype.add=function(e){this._timers.add(e,e.registerTimer(this.id))},Ur.prototype.count=function(){return this.firstTimer.count()},Ur.prototype.measure=function(){var e=this;return[new Dt("count",this.count.bind(this)),new Dt("total",function(){return e.totalTime("milliseconds")}),new Dt("max",function(){return e.max("milliseconds")}),new Dt("mean",function(){return e.mean("milliseconds")})]},Ur),r=(ce(Pr,ur=r),Pr.prototype.createCounter=function(e){e=new Qt(e);return this.addRegistry(e),e},Pr.prototype.createTimer=function(e){e=new lr(e);return this.addRegistry(e),e},Pr.prototype.addRegistry=function(t){this.registries.forEach(function(e){return t.add(e)})},Pr.prototype.add=function(t){t instanceof Pr||this.registries.has(t)||(this.registries.add(t),this.metrics.forEach(function(e){void 0!==e.add&&"function"==typeof e.add&&e.add(t)}))},Pr.prototype.close=function(){this.registries.forEach(function(e){e.close()})},Pr),fr=(kr.counter=function(e,t){return kr.globalRegistry.counter(e,t)},kr.timer=function(e,t){return kr.globalRegistry.timer(e,t)},kr.addRegistry=function(e){kr.globalRegistry.add(e),de.log.debug("MetricRegistry added ".concat(e.name))},kr.globalRegistry=new r,kr),pr=(ce(xr,ar=o),xr.prototype.flushMetrics=function(e){var t=this;f.chunked(e.filter(this.isDispatchTarget.bind(this)),100).forEach(function(e){t.dispatch(e)})},xr.prototype.isDispatchTarget=function(e){return!("COUNTER"!==e.id.type&&"TIMER"!==e.id.type)&&0<e.count()},xr.prototype.dispatch=function(e){this.useBeacon&&this.shouldUseBeacon?this.httpClient.sendBeacon(this.monitoringEndPoint,this.batch(e),this.httpHeader,function(){de.log.debug("Beacon called.")}):this.httpClient.postRequest(this.monitoringEndPoint,this.batch(e),this.httpHeader,function(){},function(){de.log.debug("Failed to flushing metrics.")})},xr.prototype.batch=function(e){return{metrics:e.map(function(e){return{name:e.id.name,type:e.id.type,tags:e.id.tags,measurements:Object.fromEntries(f.associate(e.measure(),function(e){return[e.field,e.value]}))}})}},xr.prototype.createCounter=function(e){return new Ht(e)},xr.prototype.createTimer=function(e){return new Wt(e)},xr.prototype.close=function(){this.shouldUseBeacon=!0,ar.prototype.close.call(this)},xr),dr=(Cr.experiment=function(e,t,r){t=fr.timer("experiment.decision",{key:String(t),variation:r.variation,reason:String(r.reason)});e.stop(t)},Cr.featureFlag=function(e,t,r){t=fr.timer("feature.flag.decision",{key:String(t),on:String(r.isOn),reason:String(r.reason)});e.stop(t)},Cr.remoteConfig=function(e,t,r){t=fr.timer("remote.config.decision",{key:String(t),reason:String(r.reason)});e.stop(t)},Cr),hr=(Ar.record=function(e,t,r){e=fr.timer("api.call",{operation:e,success:String(r)});t.stop(e)},Ar),yr=(Nr.decide=function(e,t,r,n){if(a.isNullOrUndefined(r))return this.decision(e,t,"NULL",r,n);switch(typeof r){case"string":return this.decision(e,t,"STRING",r,n);case"number":return this.decision(e,t,"NUMBER",r,n);case"boolean":return this.decision(e,t,"BOOLEAN",r,n);default:return this.decision(e,t,"UNKNOWN",r,n)}},Nr.decision=function(e,t,r,n,i){return a.isNullOrUndefined(t)?Be.of(n,s.INVALID_INPUT):e.remoteConfig(t,i,r,n)},Nr),vr=de.log,mr=(Sr.prototype.get=function(e,t){var r,n=It.start();try{r=this.decide(e,t)}catch(n){vr.error("Unexpected exception while deciding remote config parameter[".concat(e,"]. Returning default value. : ").concat(n)),r=Be.of(t,s.EXCEPTION)}return dr.remoteConfig(n,e,r),r.value},Sr.prototype.decide=function(e,t){var r=this.userManager.resolveCurrentOrNull(this.user);if(!r)return vr.warn("invalid user"),Be.of(t,s.INVALID_INPUT);r=this.hackleUserResolver.resolve(r);return yr.decide(this.core,e,t,r)},Sr),u=de.log,gr=(c.prototype.getSessionId=function(){return this.sessionManager.sessionId},c.prototype.getUser=function(){return this.userManager.currentUser},c.prototype.setUser=function(e){try{var t=Ie(e);if(!t)return void u.warn("invalid user");this.userManager.setUser(t)}catch(e){u.error("Unexpected exception while set user: ".concat(e))}},c.prototype.setUserId=function(e){try{void 0===e&&this.userManager.setUserId(void 0);var t=Ve.sanitizeValue(e);if(!t)return void u.warn("Invalid userId. [userId=".concat(e,"]"));this.userManager.setUserId(t)}catch(e){u.error("Unexpected exception while set userId: ".concat(e))}},c.prototype.setDeviceId=function(e){try{if(!Ve.sanitizeValue(e))return void u.warn("Invalid deviceId. [deviceId=".concat(e,"]"));this.userManager.setDeviceId(e)}catch(e){u.error("Unexpected exception while set deviceId: ".concat(e))}},c.prototype.setUserProperty=function(e,t){try{if(!Ke.isValidKey(e))return void u.warn("Invalid property key. [key=".concat(e,"]"));if(!Ke.isValidValue(t))return void u.warn("Invalid property value. [key=".concat(t,"]"));this.userManager.setUserProperty(e,t)}catch(e){u.error("Unexpected exception while set userProperty: ".concat(e))}},c.prototype.setUserProperties=function(e){try{var t=Ke.sanitize(e);this.userManager.setUserProperties(t)}catch(e){u.error("Unexpected exception while set userProperties: ".concat(e))}},c.prototype.resetUser=function(){try{this.userManager.resetUser()}catch(e){u.error("Unexpected exception while reset user: ".concat(e))}},c.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},c.prototype.variationDetail=function(n,i,e){var o=e||"A",e=It.start(),t=function(e){try{var t=e.userManager.resolveCurrentOrNull(i);if(!t)return u.warn("invalid user"),Ge.of(o,s.INVALID_INPUT);var r=e.hackleUserResolver.resolve(t);return e.core.experiment(n,r,o)}catch(e){return u.error("Unexpected exception while deciding variation for experiment[".concat(n,"]. Returning default variation[").concat(o,"] : ").concat(e)),Ge.of(o,s.EXCEPTION)}}(this);return dr.experiment(e,n,t),t},c.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},c.prototype.featureFlagDetail=function(n,i){var e=It.start(),t=function(e){try{var t=e.userManager.resolveCurrentOrNull(i);if(!t)return u.warn("invalid user"),qe.off(s.INVALID_INPUT);var r=e.hackleUserResolver.resolve(t);return e.core.featureFlag(n,r)}catch(e){return u.error("Unexpected exception while deciding feature flag[".concat(n,"]. Returning default value[false] : ").concat(e)),qe.off(s.EXCEPTION)}}(this);return dr.featureFlag(e,n,t),t},c.prototype.track=function(e,t){try{u.debug("track event : ".concat(JSON.stringify(e)));var r=this._convertEvent(e),n=this.userManager.resolveCurrentOrNull(t);if(!n)return void u.warn("invalid user");var i=this.hackleUserResolver.resolve(n);this.core.track(r,i)}catch(e){u.error("Unexpected exception while tracking event: $t")}},c.prototype.trackPageView=function(e){u.debug("tracking page view");var t=this.hackleUserResolver.resolve(this.userManager.currentUser);this.core.track({key:"$page_view"},t)},c.prototype.remoteConfig=function(e){return new mr(this.core,this.userManager,this.hackleUserResolver,e)},c.prototype.onReady=function(e,t){this.core.onReady(e,t=void 0===t?3e3:t)},c.prototype.onInitialized=function(e){return this.core.onInitialized({timeout:null==e?void 0:e.timeout})},c.prototype.close=function(){u.debug("Hackle Client is closing"),this.core.close()},c.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},c.prototype.showUserExplorer=function(){var e;null!=(e=this.devTools)&&e.userExplorer?(u.debug("UserExplorer opened."),fr.counter("user.explorer.show",{}).increment(),this.devTools.manager.userExplorer(this.devTools.userExplorer)):u.error("UserExplorer is not provided")},c.prototype.hideUserExplorer=function(){this.devTools?this.devTools.manager.close():u.warn("There is no active HackleDevtools.")},c),Er=(Ir.exposure=function(e,t,r,n){return new wr(n,e,t.experiment,t.variationId,t.variationKey,t.reason,r)},Ir.track=function(e,t,r,n){return new Tr(n,r,e,t)},Ir.remoteConfig=function(e,t,r,n){return new br(n,e,t.parameter,t.valueId,t.reason,r)},Ir.isExposure=function(e){return void 0!==e.experiment},Ir.isTrack=function(e){return void 0!==e.eventType},Ir.isRemoteConfig=function(e){return void 0!==e.parameter},Ir.isExposureDto=function(e){return"experimentId"in e&&void 0!==e.experimentId},Ir.isTrackDto=function(e){return"eventTypeId"in e&&void 0!==e.eventTypeId},Ir.isRemoteConfigDto=function(e){return"parameterId"in e&&void 0!==e.parameterId},Ir.prototype.toDto=function(){return{insertId:this.insertId,timestamp:this.timestamp,userId:this.user.identifiers[We.ID],identifiers:this.user.identifiers,userProperties:Ke.sanitize(this.user.properties),hackleProperties:Ke.sanitize(this.user.hackleProperties)}},Ir),wr=(ce(Rr,sr=Er),Rr.prototype.copyWithUser=function(e){return new Rr(this.timestamp,e,this.experiment,this.variationId,this.variationKey,this.decisionReason,this.properties,this.insertId)},Rr.prototype.toDto=function(){return h(h({},sr.prototype.toDto.call(this)),{experimentId:this.experiment.id,experimentKey:this.experiment.key,experimentType:this.experiment.type,experimentVersion:this.experiment.version,variationId:this.variationId,variationKey:this.variationKey,decisionReason:this.decisionReason.toString(),properties:this.properties})},Rr),Tr=(ce(Or,or=Er),Or.prototype.copyWithUser=function(e){return new Or(this.timestamp,e,this.eventType,this.event,this.insertId)},Or.prototype.toDto=function(){return h(h({},or.prototype.toDto.call(this)),{eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:Ke.sanitize(this.event.properties)})},Or),br=(ce(_r,ir=Er),_r.prototype.copyWithUser=function(e){return new _r(this.timestamp,e,this.parameter,this.valueId,this.decisionReason,this.properties,this.insertId)},_r.prototype.toDto=function(){return h(h({},ir.prototype.toDto.call(this)),{parameterId:this.parameter.id,parameterKey:this.parameter.key,parameterType:this.parameter.type,valueId:this.valueId,decisionReason:this.decisionReason.toString(),properties:Ke.sanitize(this.properties)})},_r);function _r(e,t,r,n,i,o,s){e=ir.call(this,e,t,s)||this;return e.parameter=r,e.valueId=n,e.decisionReason=i,e.properties=o,e}function Or(e,t,r,n,i){e=or.call(this,e,t,i)||this;return e.eventType=r,e.event=n,e}function Rr(e,t,r,n,i,o,s,a){e=sr.call(this,e,t,a)||this;return e.experiment=r,e.variationId=n,e.variationKey=i,e.decisionReason=o,e.properties=s,e}function Ir(e,t,r){void 0===r&&(r=ae.v4()),this.timestamp=e,this.user=t,this.insertId=r}function c(e,t,r,n,i){this.core=e,this.hackleUserResolver=t,this.sessionManager=r,this.userManager=n,this.devTools=i}function Sr(e,t,r,n){this.core=e,this.userManager=t,this.hackleUserResolver=r,this.user=n}function Nr(){}function Ar(){}function Cr(){}function xr(e,t,r,n,i){t=ar.call(this,t)||this;return t.monitoringBaseUrl=e,t.httpClient=r,t.httpHeader=n,t.useBeacon=i,t.monitoringEndPoint="".concat(t.monitoringBaseUrl,"/metrics"),t.shouldUseBeacon=!1,t.start(),t.monitoringBaseUrl=e,t}function kr(){}function Pr(){var e=null!==ur&&ur.apply(this,arguments)||this;return e.registries=new Kt(function(e,t){return e.id===t.id}),e}function Ur(e){this._timers=new Kt(function(e,t){return e.id===t.id}),this.id=e,this.noopTimer=new cr(e)}function Mr(e){this.id=e}function Dr(e){var t=new Array,r=new Array,n=new Array;return e.forEach(function(e){e instanceof Er?Er.isExposure(e)?t.push(e.toDto()):Er.isTrack(e)?r.push(e.toDto()):Er.isRemoteConfig(e)&&n.push(e.toDto()):Er.isExposureDto(e)?t.push(e):Er.isTrackDto(e)?r.push(e):Er.isRemoteConfigDto(e)&&n.push(e)}),{exposureEvents:t,trackEvents:r,remoteConfigEvents:n}}tn.prototype.dispatch=function(e,t,r){var n={},e=(n["X-HACKLE-SDK-KEY"]=this.sdkKey,n[ye]=this.headers[ye],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),Dr(e)),i=It.start();this.httpRequest.postRequest(this.dispatchUrl,e,n,function(e){t(e),hr.record("post.events",i,!0)},function(e){null!=r&&r(e),hr.record("post.events",i,!1)})},tn.prototype.dispatchXhrOrBeacon=function(e,t,r){var n,i,o;this.useBeacon?((n={})["X-HACKLE-SDK-KEY"]=this.sdkKey,n[ye]=this.headers[ye],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),i=Dr(e),o=It.start(),this.httpRequest.sendBeacon(this.beaconDispatchUrl,i,n,function(e){t(e),hr.record("post.events",o,!0)},function(e){null!=r&&r(e),hr.record("post.events",o,!1)})):this.dispatch(e,t,r)};var Lr=tn,Fr=de.log,jr=(E.prototype.getExperiments=function(){return Array.from(this.experiments.values())},E.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},E.prototype.getFeatureFlags=function(){return Array.from(this.featureFlags.values())},E.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},E.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},E.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},E.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},E.prototype.getContainerOrNull=function(e){return this.containers.get(e)},E.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},E.prototype.getRemoteConfigParameterOrNull=function(e){return this.remoteConfigParameters.get(e)},E.from=function(e){var t=this,r=f.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]});return new E(f.associateBy(f.mapNotNullOrUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),f.associateBy(f.mapNotNullOrUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),r,f.associate(e.events,function(e){return[e.key,new Re(e.id,e.key)]}),f.associateBy(f.mapNotNullOrUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),f.associate(e.containers,function(e){return[e.id,t.toContainer(e)]}),f.associate(e.parameterConfigurations,function(e){return[e.id,t.toParameterConfiguration(e)]}),f.associateBy(f.mapNotNullOrUndefined(e.remoteConfigParameters,function(e){return t.toRemoteConfigParameterOrNull(e)}),function(e){return e.key}))},E.toBucket=function(e){return new Oe(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new Xe(t,r,e)}))},E.toExperimentOrNull=function(e,t){var r=this,n=this.experimentStatusOrNull(t.execution.status),i=t.variations.map(function(e){return new _e(e.id,e.key,"DROPPED"===e.status,e.parameterConfigurationId)}),o=f.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),s=f.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,bt.IDENTIFIER)}),a=f.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,bt.PROPERTY)}),u=f.mapNotNullOrUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,bt.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new $e(t.id,t.key,e,t.identifierType,n,t.version,i,o,s,a,u,c,t.containerId,t.winnerVariationId)},E.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void Fr.debug("Unsupported status [".concat(e,"]"))}},E.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new ke(t,e)},E.toTargetActionOrNull=function(e){var t=this.parseOrNull(Et,e.type);return t&&new xe(t,e.variationId,e.bucketId)},E.toTargetOrNull=function(e,t){var r=this,e=f.mapNotNullOrUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new Se(e)},E.toConditionOrNull=function(e,t){var r=this.toTargetKeyOrNull(e.key);if(r&&t.supports(r.type))return(t=this.toTargetMatchOrNull(e.match))&&new Ne(r,t)},E.toTargetKeyOrNull=function(e){var t=this.parseOrNull(wt,e.type);return t&&new Ae(t,e.name)},E.toTargetMatchOrNull=function(e){var t=this.parseOrNull(vt,e.type),r=this.parseOrNull(gt,e.operator),n=this.parseOrNull(mt,e.valueType);return t&&r&&n&&new Ce(t,r,n,e.values)},E.toSegmentOrNull=function(e){var t=this,r=this.parseOrNull(Tt,e.type);return r&&new Pe(e.id,e.key,r,f.mapNotNullOrUndefined(e.targets,function(e){return t.toTargetOrNull(e,bt.SEGMENT)}))},E.toContainer=function(e){var t=this;return new Qe(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},E.toContainerGroup=function(e){return new Ue(e.id,e.experiments)},E.toParameterConfiguration=function(e){return new Ze(e.id,f.associate(e.parameters,function(e){return[e.key,e.value]}))},E.toRemoteConfigParameterOrNull=function(e){var t=this,r=this.parseOrNull(mt,e.type),n=f.mapNotNullOrUndefined(e.targetRules,function(e){return t.toRemoteConfigTargetRuleOrNull(e,bt.PROPERTY)}),i=this.toRemoteConfigParameterValueOrNull(e.defaultValue);return r&&new Me(e.id,e.key,r,e.identifierType,n,i)},E.toRemoteConfigTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t);return t&&new De(e.key,e.name,t,e.bucketId,this.toRemoteConfigParameterValueOrNull(e.value))},E.toRemoteConfigParameterValueOrNull=function(e){return new Le(e.id,e.value)},E.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||Fr.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},E),Vr=(en.prototype.onReady=function(){return this.readyPromise},en.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},en.prototype.stop=function(){return this.isStarted=!1,this.currentTimeout&&(clearTimeout(this.currentTimeout),this.currentTimeout=null),this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null),Promise.resolve()},en.prototype.get=function(){return this.workspace},en.prototype.scheduleNextUpdate=function(){var e=this,t=this.errorRetryController.getDelay(),t=Math.max(t,this.updateInterval);this.currentTimeout=setTimeout(function(){e.currentRequest?e.syncOnCurrentRequestComplete=!0:e.fetch()},t)},en.prototype.fetch=function(){function t(e){e=e.isSuccess,hr.record("get.workspace",i,e)}function e(){n.onRequestComplete()}var r,n=this,i=((r={})["X-HACKLE-SDK-KEY"]=this.sdkKey,r["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),r[ye]=this.headers[ye],r["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],It.start());this.currentRequest=this.httpRequest.getRequest(this.fetchUrl,r);null!=(r=this.currentRequest)&&r.responsePromise.then(function(e){n.onRequestResolved(e,t)},function(e){n.onRequestRejected(e,t)}).then(e,e),0<this.updateInterval&&this.scheduleNextUpdate()},en.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},en.prototype.onRequestResolved=function(e,t){if(this.isStarted){if(void 0!==e.statusCode&&200<=e.statusCode&&e.statusCode<400)this.errorRetryController.reset(),t({isSuccess:!0});else{if(t({isSuccess:!1}),401===e.statusCode||403===e.statusCode)return void this.readyPromiseRejecter(new Error("Invalid key provided."));this.errorRetryController.countError()}e.body&&(t=JSON.parse(e.body),this.workspace=jr.from(t),this.readyPromiseResolver())}},en.prototype.onRequestRejected=function(e,t){this.isStarted&&(t({isSuccess:!1}),this.errorRetryController.countError(),console.error("Error fetching data",e))},en.prototype.close=function(){this.stop()},en),Hr=(Zr.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*ve[Math.min(ve.length-1,this.errorCount)]+Math.round(1e3*Math.random())},Zr.prototype.countError=function(){this.errorCount<ve.length-1&&this.errorCount++},Zr.prototype.reset=function(){this.errorCount=0},Zr),r="model",o="name",p="type",d="vendor",y="version",v="mobile",m="tablet",Kr=(g.parse=function(e){return{browser:g.getBrowser(e),cpu:g.getCPU(e),device:g.getDevice(e),engine:g.getEngine(e),os:g.getOS(e)}},g.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return g.mapper.rgx.call(t,e,g.regexes.browser),t.major=g.util.major(t.version),t},g.getCPU=function(e){var t={architecture:void 0};return g.mapper.rgx.call(t,e,g.regexes.cpu),t},g.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return g.mapper.rgx.call(t,e,g.regexes.device),t},g.getEngine=function(e){var t={name:void 0,version:void 0};return g.mapper.rgx.call(t,e,g.regexes.os),t},g.getOS=function(e){var t={name:void 0,version:void 0};return g.mapper.rgx.call(t,e,g.regexes.os),t},g.util={extend:function(e,t){var r,n={};for(r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},g.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o,y],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],y],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],y],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[o,y],[/(konqueror)\/([\w\.]+)/i],[[o,"Konqueror"],y],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],y],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],y],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],y],[/(Avast)\/([\w\.]+)/i],[[o,"Avast Secure Browser"],y],[/(AVG)\/([\w\.]+)/i],[[o,"AVG Secure Browser"],y],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],y],[/(focus)\/([\w\.]+)/i],[[o,"Firefox Focus"],y],[/(opt)\/([\w\.]+)/i],[[o,"Opera Touch"],y],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],y],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],y],[/(windowswechat qbcore)\/([\w\.]+)/i],[[o,"WeChat(Win) Desktop"],y],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],y],[/(brave)\/([\w\.]+)/i],[[o,"Brave"],y],[/(whale)\/([\w\.]+)/i],[[o,"Whale"],y],[/(qqbrowserlite)\/([\w\.]+)/i],[o,y],[/(QQ)\/([\d\.]+)/i],[o,y],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,y],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[o,y],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,y],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[y,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[y,[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[o,y],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[y,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],y],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],y],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[o,"Chrome Mobile"],y],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[y,[o,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[o,"Sailfish Browser"],y],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,y],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],y],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],y],[/fxios\/([\w\.-]+)/i],[y,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[y,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[y,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],y],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[y,(g.mapper={rgx:function(e,t){for(var r,n,i,o,s,a=0;a<t.length&&!o;){for(var u=t[a],c=t[a+1],l=r=0;l<u.length&&!o;)if(o=u[l++].exec(e))for(n=0;n<c.length;n++)s=o[++r],"object"==typeof(i=c[n])&&0<i.length?2==i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,s):this[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=s?s.replace(i[1],i[2]):void 0:this[i[0]]=s?i[1].call(this,s,i[2]):void 0:4==i.length&&(this[i[0]]=s?i[3].call(this,s.replace(i[1],i[2])):void 0):this[i]=s||void 0;a+=2}},str:function(e,t){for(var r in t)if("object"==typeof t[r]&&0<t[r].length){for(var n=0;n<t[r].length;n++)if(g.util.has(t[r][n],e))return"?"===r?void 0:r}else if(g.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(g.maps={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}}).browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[o,y],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],y],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[o,y]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",g.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",g.util.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",g.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[r,d,[p,m]],[/applecoremedia\/[\w\.]+ \((ipad)/],[r,[d,"Apple"],[p,m]],[/(apple\s{0,1}tv)/i],[[r,"Apple TV"],[d,"Apple"],[p,"smarttv"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[d,r,[p,m]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[r,[d,"Amazon"],[p,m]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[r,g.mapper.str,g.maps.device.amazon.model],[d,"Amazon"],[p,v]],[/android.+aft([bms])\sbuild/i],[r,[d,"Amazon"],[p,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[r,d,[p,v]],[/\((ip[honed|\s\w*]+);/i],[r,[d,"Apple"],[p,v]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[d,r,[p,v]],[/\(bb10;\s(\w+)/i],[r,[d,"BlackBerry"],[p,v]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[r,[d,"Asus"],[p,m]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[d,"Sony"],[r,"Xperia Tablet"],[p,m]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[d,"Sony"],[p,v]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[d,r,[p,"console"]],[/android.+;\s(shield)\sbuild/i],[r,[d,"Nvidia"],[p,"console"]],[/(playstation\s[34portablevi]+)/i],[r,[d,"Sony"],[p,"console"]],[/(sprint\s(\w+))/i],[[d,g.mapper.str,g.maps.device.sprint.vendor],[r,g.mapper.str,g.maps.device.sprint.model],[p,v]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[d,[r,/_/g," "],[p,v]],[/(nexus\s9)/i],[r,[d,"HTC"],[p,m]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[r,[d,"Huawei"],[p,v]],[/android.+(bah2?-a?[lw]\d{2})/i],[r,[d,"Huawei"],[p,m]],[/(microsoft);\s(lumia[\s\w]+)/i],[d,r,[p,v]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[r,[d,"Microsoft"],[p,"console"]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[d,"Microsoft"],[p,v]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[r,[d,"Motorola"],[p,v]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[d,"Motorola"],[p,m]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[d,g.util.trim],[r,g.util.trim],[p,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[d,"Samsung"],[p,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[r,[d,"Sharp"],[p,"smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[d,"Samsung"],r,[p,m]],[/smart-tv.+(samsung)/i],[d,[p,"smarttv"],r],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[d,"Samsung"],r,[p,v]],[/sie-(\w*)/i],[r,[d,"Siemens"],[p,v]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[d,"Nokia"],r,[p,v]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[d,"Acer"],[p,m]],[/android.+([vl]k\-?\d{3})\s+build/i],[r,[d,"LG"],[p,m]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[d,"LG"],r,[p,m]],[/(lg) netcast\.tv/i],[d,r,[p,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[r,[d,"LG"],[p,v]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[d,r,[p,m]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[r,[d,"Lenovo"],[p,m]],[/(lenovo)[_\s-]?([\w-]+)/i],[d,r,[p,v]],[/linux;.+((jolla));/i],[d,r,[p,v]],[/((pebble))app\/[\d\.]+\s/i],[d,r,[p,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[d,r,[p,v]],[/crkey/i],[[r,"Chromecast"],[d,"Google"],[p,"smarttv"]],[/android.+;\s(glass)\s\d/i],[r,[d,"Google"],[p,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[r,[d,"Google"],[p,m]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[r,[d,"Google"],[p,v]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[d,"Xiaomi"],[p,v]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[d,"Xiaomi"],[p,m]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[r,[d,"Meizu"],[p,v]],[/(mz)-([\w-]{2,})/i],[[d,"Meizu"],r,[p,v]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[r,[d,"OnePlus"],[p,v]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[r,[d,"RCA"],[p,m]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[r,[d,"Dell"],[p,m]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[r,[d,"Verizon"],[p,m]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[d,"Barnes & Noble"],r,[p,m]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[r,[d,"NuVision"],[p,m]],[/android.+;\s(k88)\sbuild/i],[r,[d,"ZTE"],[p,m]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[r,[d,"Swiss"],[p,v]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[r,[d,"Swiss"],[p,m]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[r,[d,"Zeki"],[p,m]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[d,"Dragon Touch"],r,[p,m]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[r,[d,"Insignia"],[p,m]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[r,[d,"NextBook"],[p,m]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[d,"Voice"],r,[p,v]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[d,"LvTel"],r,[p,v]],[/android.+;\s(PH-1)\s/i],[r,[d,"Essential"],[p,v]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[r,[d,"Envizen"],[p,m]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[d,r,[p,m]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[r,[d,"MachSpeed"],[p,m]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[d,r,[p,m]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[r,[d,"Rotor"],[p,m]],[/android.+(KS(.+))\s+build/i],[r,[d,"Amazon"],[p,m]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[d,r,[p,m]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[p,g.util.lowerize],d,r],[/[\s\/\(](smart-?tv)[;\)]/i],[[p,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[r,[d,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[y,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[y,[o,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[o,y],[/rv\:([\w\.]{1,9}).+(gecko)/i],[y,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,y],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[[o,g.mapper.str,g.maps.os.windows],[y,g.mapper.str,g.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[y,g.mapper.str,g.maps.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],y],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[o,y],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],y],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],y],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[[o,"Linux"],y],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],y],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],y],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[o,"Linux"],y],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPhone"],[y,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPad"],[y,/_/g,"."]],[/(haiku)\s(\w+)/i],[o,y],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[y,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac"],[y,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[o,y]]},g),zr=(Qr.generate=function(e){t=void 0===e?{navigator:{userAgent:"",vendor:"",languages:[]},document:{location:t={hostname:"",pathname:"",host:"",search:"",protocol:""},title:""},location:t,screen:{width:"",height:""}}:e;var t,r=Kr.parse(t.navigator.userAgent),n=r.browser,i=r.os,r=r.device,o=r.type?"mobile"===r.type?"Mobile":"ETC":"Web",s=(t.location.protocol||"").replace(":",""),a=t.screen,u="";try{u=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return{platform:o||"",browserName:n.name||"",browserMajorVersion:n.major||"",browserVersion:n.version||"",osName:i.name||"",osVersion:i.version||"",deviceModel:r.model||"",deviceType:r.type||"",deviceVendor:r.vendor||"",language:(null==(o=t.navigator.languages)?void 0:o[0])||"",userAgent:t.navigator.userAgent||"",pagePath:t.location.pathname||"",pageTitle:t.document.title||"",host:t.location.host||"",protocol:s,referrer:t.document.referrer||"",queryParameter:t.location.search||"",screenWidth:a.width||"",screenHeight:a.height||"",timeZone:u||""}},Qr),Br=(Jr.extractDomain=function(e){var t=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,r=e.split("."),r=r[r.length-1],r=((4<r.length||"com"===r||"org"===r)&&(t=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i),e.match(t));return r?r[0]:""},Jr.prototype.getItem=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},Jr.prototype.getAllItem=function(e){var t=document.cookie.split("; ").map(function(e){return e.split("=")}),r=null==e?void 0:e.keyPrefix;return r?t.filter(function(e){var t=e[0];return e[1],t.startsWith(r)}):t},Jr.prototype.setItem=function(e,t,r){var r=h(h({},this.options),r),n=r.isSecure,i="",o="",s="",a=(r.isCrossSubdomain&&(i=(a=Jr.extractDomain(document.location.hostname))?"; domain=."+a:""),r.days&&((a=new Date).setTime(a.getTime()+24*r.days*60*60*1e3),o="; expires="+a.toUTCString()),r.isCrossSite&&(n=!0,s="; SameSite=None"),n&&(s+="; secure"),e+"="+encodeURIComponent(t)+o+"; path=/"+i+s);return document.cookie=a},Jr.prototype.removeItem=function(e,t){this.setItem(e,"",h(h({},t),{days:-1}))},new Jr({days:3650,isCrossSubdomain:!0})),Gr=(Wr.prototype.getQueryParam=function(e){return this.getQueryParams(function(){return!0})[e]||""},Wr.prototype.getQueryParams=function(e){for(var t={},r=0,n=this.search.substring(1).split("&");r<n.length;r++){var i=n[r].split("="),o=i[0],i=i[1];e(o,i)&&(t[o]=decodeURIComponent(i))}return t},Wr),qr=(Xr.prototype.resolve=function(e){var t=rn(),t=(new Je).addIdentifiers(e.identifiers||{}).add(We.ID,e.id||t).add(We.DEVICE,e.deviceId||t).add(We.HACKLE_DEVICE,t);return a.isNotNullOrUndefined(e.userId)&&t.add(We.USER,e.userId),{identifiers:t.build(),properties:this._userProperties(e.properties),hackleProperties:this._getHackleProperties()}},Xr.prototype.resolveCurrentUser=function(){return this.resolve(this.userManager.currentUser)},Xr.prototype._userProperties=function(e){void 0===e&&(e={});var t,r={};return"undefined"!=typeof window&&(t=new Gr(window.location.search),r=h(h({},t.getQueryParams(function(e){return e.startsWith("utm_")})),t.getQueryParams(function(e){return["gclid","fbclid"].includes(e)}))),h(h({},r),e)},Xr.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?zr.generate(window):e)||{}},Xr),Yr=($r.initialize=function(){Br.getItem("_hackle_hid")||sn()},$r.reInitialize=function(){sn()},$r);function $r(){}function Xr(e){this.userManager=e,Yr.initialize()}function Wr(e){this.search=e}function Jr(e){this.options=e=void 0===e?{days:0,isCrossSubdomain:!1,isSecure:!1,isCrossSite:!1}:e}function Qr(){}function g(){}function Zr(){this.errorCount=0}function en(e,t,r){var n=this;this.workspace=null,this.sdkKey=e,this.httpRequest=t,this.isStarted=!1,this.updateInterval=r.updateInterval,this.fetchUrl=r.fetchUrl,this.headers=r.headers,this.readyPromiseResolver=function(){},this.readyPromiseRejecter=function(){},this.readyPromise=new Promise(function(e,t){n.readyPromiseResolver=e,n.readyPromiseRejecter=t}),this.currentTimeout=null,this.errorRetryController=new Hr,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function E(e,t,r,n,i,o,s,a){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n,this.segments=i,this.containers=o,this.parameterConfigurations=s,this.remoteConfigParameters=a}function tn(e,t,r){this.sdkKey=e,this.httpRequest=t,this.headers=r.headers,this.dispatchUrl=r.dispatchUrl,this.beaconDispatchUrl=r.beaconDispatchUrl||"",this.useBeacon=r.useBeacon||!1}function rn(){var e=Br.getItem("_hackle_id");return e||Br.getItem("_hackle_hid")||sn()}function nn(e){Br.setItem("_hackle_id",e)}function on(){Br.removeItem("_hackle_id")}function sn(){var e=ae.v4();return Br.setItem("_hackle_hid",e),e}function an(e){return e&&e.Math==Math&&e}function w(e){try{return!!e()}catch(e){return!0}}var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},m=an("object"==typeof globalThis&&globalThis)||an("object"==typeof window&&window)||an("object"==typeof self&&self)||an("object"==typeof v&&v)||function(){return this}()||Function("return this")(),p={},r=!w(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),d=!w(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),un=Function.prototype.call,o=d?un.bind(un):function(){return un.apply(un,arguments)},y={},e={}.propertyIsEnumerable,cn=Object.getOwnPropertyDescriptor,v=cn&&!e.call({1:2},1);y.f=v?function(e){e=cn(this,e);return!!e&&e.enumerable}:e;function ln(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function fn(e){return Cn(An(e),8,-1)}function pn(e){if(null==e)throw Un("Can't call method on "+e);return e}function dn(e){return Mn(Dn(e))}function T(e){return"function"==typeof e}function hn(e){return"object"==typeof e?null!==e:Ln(e)}function yn(e,t){return arguments.length<2?(r=Fn[e],jn(r)?r:void 0):Fn[e]&&Fn[e][t];var r}function vn(e){try{return Wn(e)}catch(e){return"Object"}}function mn(e){if(Jn(e))return e;throw Zn(Qn(e)+" is not a function")}function gn(e,t){return null==(e=e[t])?void 0:ei(e)}function En(t,r){try{si(oi,t,{value:r,configurable:!0,writable:!0})}catch(e){oi[t]=r}return r}function wn(e){return li(ci(e))}function Tn(e){return"Symbol("+(void 0===e?"":e)+")_"+vi(++hi+yi,36)}function bn(e){var t;return gi(bi,e)&&(wi||"string"==typeof bi[e])||(t="Symbol."+e,wi&&gi(_i,e)?bi[e]=_i[e]:bi[e]=(Ti&&Oi?Oi:Ri)(t)),bi[e]}function _n(e){return e=function(e,t){if(!Si(e)||Ni(e))return e;var r=Ai(e,ki);if(r){if(r=Ii(r,e,t=void 0===t?"default":t),!Si(r)||Ni(r))return r;throw xi("Can't convert object to primitive value")}return Ci(e,t=void 0===t?"number":t)}(e,"string"),Pi(e)?e:e+""}function On(e){return Mi?Ui.createElement(e):{}}function Rn(e){if(Gi(e))return e;throw Yi(qi(e)+" is not an object")}var v=d,e=Function.prototype,In=e.bind,Sn=e.call,Nn=v&&In.bind(Sn,Sn),e=v?function(e){return e&&Nn(e)}:function(e){return e&&function(){return Sn.apply(e,arguments)}},In=e,An=In({}.toString),Cn=In("".slice),v=w,xn=fn,kn=Object,Pn=e("".split),In=v(function(){return!kn("z").propertyIsEnumerable(0)})?function(e){return"String"==xn(e)?Pn(e,""):kn(e)}:kn,Un=TypeError,Mn=In,Dn=pn,Ln=T,Fn=m,jn=T,v=e({}.isPrototypeOf),Vn=yn("navigator","userAgent")||"",Hn=Vn,Kn=m.process,zn=m.Deno,Kn=Kn&&Kn.versions||zn&&zn.version,zn=Kn&&Kn.v8,Kn=Xn=!(Xn=zn?0<(b=zn.split("."))[0]&&b[0]<4?1:+(b[0]+b[1]):Xn)&&Hn&&(!(b=Hn.match(/Edge\/(\d+)/))||74<=b[1])&&(b=Hn.match(/Chrome\/(\d+)/))?+b[1]:Xn,Bn=Kn,zn=w,Hn=!!Object.getOwnPropertySymbols&&!zn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Bn&&Bn<41}),b=Hn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Gn=yn,qn=T,Yn=v,$n=Object,Xn=b?function(e){return"symbol"==typeof e}:function(e){var t=Gn("Symbol");return qn(t)&&Yn(t.prototype,$n(e))},Wn=String,Jn=T,Qn=vn,Zn=TypeError,ei=mn,ti=o,ri=T,ni=hn,ii=TypeError,zn={exports:{}},oi=m,si=Object.defineProperty,ai=En,ai=m["__core-js_shared__"]||ai("__core-js_shared__",{}),ui=ai,ci=((zn.exports=function(e,t){return ui[e]||(ui[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"}),pn),li=Object,fi=wn,pi=e({}.hasOwnProperty),_=Object.hasOwn||function(e,t){return pi(fi(e),t)},di=e,hi=0,yi=Math.random(),vi=di(1..toString),di=m,mi=zn.exports,gi=_,Ei=Tn,wi=Hn,Ti=b,bi=mi("wks"),_i=di.Symbol,Oi=_i&&_i.for,Ri=Ti?_i:_i&&_i.withoutSetter||Ei,Ii=o,Si=hn,Ni=Xn,Ai=gn,Ci=function(e,t){var r,n;if("string"===t&&ri(r=e.toString)&&!ni(n=ti(r,e)))return n;if(ri(r=e.valueOf)&&!ni(n=ti(r,e)))return n;if("string"!==t&&ri(r=e.toString)&&!ni(n=ti(r,e)))return n;throw ii("Can't convert object to primitive value")},xi=TypeError,ki=bn("toPrimitive"),Pi=Xn,Hn=hn,Ui=m.document,Mi=Hn(Ui)&&Hn(Ui.createElement),Di=On,b=!r&&!w(function(){return 7!=Object.defineProperty(Di("div"),"a",{get:function(){return 7}}).a}),Li=o,Fi=y,ji=ln,Vi=dn,Hi=_n,Ki=_,zi=b,Bi=Object.getOwnPropertyDescriptor,mi=(p.f=r?Bi:function(e,t){if(e=Vi(e),t=Hi(t),zi)try{return Bi(e,t)}catch(e){}if(Ki(e,t))return ji(!Li(Fi.f,e,t),e[t])},{}),di=r&&w(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Gi=hn,qi=String,Yi=TypeError,$i=b,Xi=Rn,Wi=_n,Ji=TypeError,Qi=Object.defineProperty,Zi=Object.getOwnPropertyDescriptor,eo=(mi.f=r?di?function(e,t,r){var n;return Xi(e),t=Wi(t),Xi(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=Zi(e,t))&&n.writable&&(e[t]=r.value,r={configurable:("configurable"in r?r:n).configurable,enumerable:("enumerable"in r?r:n).enumerable,writable:!1}),Qi(e,t,r)}:Qi:function(e,t,r){if(Xi(e),t=Wi(t),Xi(r),$i)try{return Qi(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Ji("Accessors not supported");return"value"in r&&(e[t]=r.value),e},mi),to=ln,Ei=r?function(e,t,r){return eo.f(e,t,to(1,r))}:function(e,t,r){return e[t]=r,e},Xn={exports:{}},Hn=r,y=_,b=Function.prototype,ro=Hn&&Object.getOwnPropertyDescriptor,y=y(b,"name"),y={EXISTS:y,PROPER:y&&"something"===function(){}.name,CONFIGURABLE:y&&(!Hn||ro(b,"name").configurable)},Hn=T,ro=ai,no=e(Function.toString);Hn(ro.inspectSource)||(ro.inspectSource=function(e){return no(e)});function io(e){return _o[e]||(_o[e]=bo(e))}function oo(e,t,r,n){var i=(n=n||{}).enumerable,o=void 0!==n.name?n.name:t;if(jo(r)&&Ho(r,o,n),n.global)i?e[t]=r:Ko(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=r:Vo.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function so(e){return(e=+e)!=e||0==e?0:Go(e)}function ao(e,t){return(e=qo(e))<0?Yo(e+t,0):$o(e,t)}function O(e){return 0<(e=e.length)?Wo(Xo(e),9007199254740991):0}function uo(a){return function(e,t,r){var n,i=Jo(e),o=Zo(i),s=Qo(r,o);if(a&&t!=t){for(;s<o;)if((n=i[s++])!=n)return!0}else for(;s<o;s++)if((a||s in i)&&i[s]===t)return a||s||0;return!a&&-1}}function co(e,t){var r,n=ts(e),i=0,o=[];for(r in n)!es(ns,r)&&es(n,r)&&is(o,r);for(;t.length>i;)!es(n,r=t[i++])||~rs(o,r)||is(o,r);return o}function lo(e,t,r){for(var n=ps(t),i=hs.f,o=ds.f,s=0;s<n.length;s++){var a=n[s];fs(e,a)||r&&fs(r,a)||i(e,a,o(t,a))}}function fo(e,t){return(e=Es[gs(e)])==Ts||e!=ws&&(vs(t)?ys(t):!!t)}function R(e,t){var r,n,i,o,s=e.target,a=e.global,u=e.stat;if(r=a?bs:u?bs[s]||Is(s,{}):(bs[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(o=_s(r,n))&&o.value:r[n],!Ns(a?n:s+(u?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ss(i,o)}(e.sham||o&&o.sham)&&Os(i,"sham",!0),Rs(r,n,i,e)}}var po,ho,yo,vo,mo,go,Eo,wo,b=ro.inspectSource,Hn=T,ro=b,To=m.WeakMap,Hn=Hn(To)&&/native code/.test(ro(To)),ro=zn.exports,bo=Tn,_o=ro("keys"),To={},zn=e,Oo=hn,Ro=Ei,Io=_,ro=ai,I=io,S=To,So=m.TypeError,No=m.WeakMap,Hn=(Eo=Hn||ro.state?(po=ro.state||(ro.state=new No),ho=zn(po.get),yo=zn(po.has),vo=zn(po.set),mo=function(e,t){if(yo(po,e))throw new So("Object already initialized");return t.facade=e,vo(po,e,t),t},go=function(e){return ho(po,e)||{}},function(e){return yo(po,e)}):(S[wo=I("state")]=!0,mo=function(e,t){if(Io(e,wo))throw new So("Object already initialized");return t.facade=e,Ro(e,wo,t),t},go=function(e){return Io(e,wo)?e[wo]:{}},function(e){return Io(e,wo)}),{set:mo,get:go,has:Eo,enforce:function(e){return Eo(e)?go(e):mo(e,{})},getterFor:function(t){return function(e){if(Oo(e)&&(e=go(e)).type===t)return e;throw So("Incompatible receiver, "+t+" required")}}}),ro=w,Ao=T,Co=_,xo=r,ko=y.CONFIGURABLE,Po=b,Uo=Hn.enforce,Mo=Hn.get,Do=Object.defineProperty,Lo=xo&&!ro(function(){return 8!==Do(function(){},"length",{value:8}).length}),Fo=String(String).split("String"),No=Xn.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Co(e,"name")||ko&&e.name!==t)&&(xo?Do(e,"name",{value:t,configurable:!0}):e.name=t),Lo&&r&&Co(r,"arity")&&e.length!==r.arity&&Do(e,"length",{value:r.arity});try{r&&Co(r,"constructor")&&r.constructor?xo&&Do(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=Uo(e);return Co(r,"source")||(r.source=Fo.join("string"==typeof t?t:"")),e},jo=(Function.prototype.toString=No(function(){return Ao(this)&&Mo(this).source||Po(this)},"toString"),T),Vo=mi,Ho=Xn.exports,Ko=En,zn={},zo=Math.ceil,Bo=Math.floor,Go=Math.trunc||function(e){e=+e;return(0<e?Bo:zo)(e)},qo=so,Yo=Math.max,$o=Math.min,Xo=so,Wo=Math.min,Jo=dn,Qo=ao,Zo=O,S={includes:uo(!0),indexOf:uo(!1)},es=_,ts=dn,rs=S.indexOf,ns=To,is=e([].push),I=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],os=co,ss=I.concat("length","prototype"),ro=(zn.f=Object.getOwnPropertyNames||function(e){return os(e,ss)},{}),No=(ro.f=Object.getOwnPropertySymbols,yn),as=zn,us=ro,cs=Rn,ls=e([].concat),ro=No("Reflect","ownKeys")||function(e){var t=as.f(cs(e)),r=us.f;return r?ls(t,r(e)):t},fs=_,ps=ro,ds=p,hs=mi,ys=w,vs=T,ms=/#|\.prototype\./,gs=fo.normalize=function(e){return String(e).replace(ms,".").toLowerCase()},Es=fo.data={},ws=fo.NATIVE="N",Ts=fo.POLYFILL="P",No=fo,bs=m,_s=p.f,Os=Ei,Rs=oo,Is=En,Ss=lo,Ns=No,ro=!w(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),As=_,Cs=T,xs=wn,ks=io("IE_PROTO"),Ps=Object,Us=Ps.prototype,ro=ro?Ps.getPrototypeOf:function(e){e=xs(e);if(As(e,ks))return e[ks];var t=e.constructor;return Cs(t)&&e instanceof t?t.prototype:e instanceof Ps?Us:null},Ms=T,Ds=String,Ls=TypeError,Fs=e,js=Rn,Vs=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=Fs(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return js(e),function(e){if("object"==typeof e||Ms(e))return;throw Ls("Can't set "+Ds(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),Hs={},Ks=co,zs=I,N=Object.keys||function(e){return Ks(e,zs)},Bs=mi,Gs=Rn,qs=dn,Ys=N;Hs.f=r&&!di?Object.defineProperties:function(e,t){Gs(e);for(var r,n=qs(t),i=Ys(t),o=i.length,s=0;s<o;)Bs.f(e,r=i[s++],n[r]);return e};function $s(){}function Xs(e){e.write(pa("")),e.close();var t=e.parentWindow.Object;return e=null,t}function Ws(e,t){return wa(e),void 0===t?e:Ta?ba(e,t):function(){return e.apply(t,arguments)}}function Js(e){return void 0!==e&&(_a.Array===e||Ra[Oa]===e)}function Qs(e){if(null!=e)return ka(e,Ua)||ka(e,"@@iterator")||Pa[xa(e)]}function Zs(e,t){if(t=arguments.length<2?ja(e):t,Da(t))return La(Ma(t,e));throw Va(Fa(e)+" is not iterable")}function ea(e,t,r){var n,i;Ka(e);try{if(!(n=za(e,"return"))){if("throw"===t)throw r;return r}n=Ha(n,e)}catch(e){i=!0,n=e}if("throw"===t)throw r;if(i)throw n;return Ka(n),r}function ta(e,t){this.stopped=e,this.result=t}function ra(e,t,r){function n(e){return o&&Za(o,"normal",e),new ta(!0,e)}function i(e){return p?(qa(e),y?v(e[0],e[1],n):v(e[0],e[1])):y?v(e,n):v(e)}var o,s,a,u,c,l,f=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),v=Ba(t,f);if(d)o=e.iterator;else if(h)o=e;else{if(!(r=Qa(e)))throw eu(Ya(e)+" is not iterable");if($a(r)){for(s=0,a=Xa(e);s<a;s++)if((u=i(e[s]))&&Wa(tu,u))return u;return new ta(!1)}o=Ja(e,r)}for(c=(d?e:o).next;!(l=Ga(c,o)).done;){try{u=i(l.value)}catch(e){Za(o,"throw",e)}if("object"==typeof u&&u&&Wa(tu,u))return u}return new ta(!1)}function na(e){if("Symbol"===ru(e))throw TypeError("Cannot convert a Symbol value to a string");return nu(e)}function ia(e,t){var r,n=2<arguments.length?arguments[2]:void 0,i=au(Eu,this);return cu?r=cu(new mu,i?uu(this):Eu):(r=i?this:fu(Eu),pu(r,vu,"Error")),void 0!==t&&pu(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:iu(e)}(t)),yu&&pu(r,"stack",function(e,t){if(ma&&"string"==typeof e&&!ha.prepareStackTrace)for(;t--;)e=ya(e,va,"");return e}(r.stack,1)),i=r,ga(t=n)&&"cause"in t&&Ea(i,"cause",t.cause),hu(e,gu,{that:n=[]}),pu(r,"errors",n),r}var oa,N=yn("document","documentElement"),sa=Rn,aa=Hs,ua=I,di=To,ca=N,la=On,fa=io("IE_PROTO"),pa=function(e){return"<script>"+e+"<\/script>"},da=function(){try{oa=new ActiveXObject("htmlfile")}catch(e){}var e,t;da="undefined"==typeof document||document.domain&&oa?Xs(oa):((t=la("iframe")).style.display="none",ca.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(pa("document.F=Object")),e.close(),e.F);for(var r=ua.length;r--;)delete da.prototype[ua[r]];return da()},Hs=(di[fa]=!0,Object.create||function(e,t){var r;return null!==e?($s.prototype=sa(e),r=new $s,$s.prototype=null,r[fa]=e):r=da(),void 0===t?r:aa.f(r,t)}),ha=Error,ya=e("".replace),I=String(ha("zxcasd").stack),va=/\n\s*at [^:]*:[^\n]*/,ma=va.test(I),ga=hn,Ea=Ei,wa=mn,Ta=d,ba=e(e.bind),di={},_a=di,Oa=bn("iterator"),Ra=Array.prototype,I={},I=(I[bn("toStringTag")]="z","[object z]"===String(I)),A=I,Ia=T,Sa=fn,Na=bn("toStringTag"),Aa=Object,Ca="Arguments"==Sa(function(){return arguments}()),A=A?Sa:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=Aa(e),Na))?t:Ca?Sa(e):"Object"==(t=Sa(e))&&Ia(e.callee)?"Arguments":t},xa=A,ka=gn,Pa=di,Ua=bn("iterator"),Ma=o,Da=mn,La=Rn,Fa=vn,ja=Qs,Va=TypeError,Ha=o,Ka=Rn,za=gn,Ba=Ws,Ga=o,qa=Rn,Ya=vn,$a=Js,Xa=O,Wa=v,Ja=Zs,Qa=Qs,Za=ea,eu=TypeError,tu=ta.prototype,ru=A,nu=String,iu=na,ou=ln,C=!w(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ou(1,7)),7!==e.stack)}),su=R,au=v,uu=ro,cu=Vs,lu=lo,fu=Hs,pu=Ei,du=ln,hu=ra,yu=C,vu=bn("toStringTag"),mu=Error,gu=[].push,Eu=(cu?cu(ia,mu):lu(ia,mu,{name:!0}),ia.prototype=fu(mu.prototype,{constructor:du(1,ia),message:du(1,""),name:du(1,"AggregateError")})),C=(su({global:!0,constructor:!0,arity:2},{AggregateError:ia}),bn),lu=Hs,du=mi.f,wu=C("unscopables"),Tu=Array.prototype;null==Tu[wu]&&du(Tu,wu,{configurable:!0,value:lu(null)});function x(e){Tu[wu][e]=!0}var bu,su=w,C=T,du=ro,lu=oo,_u=bn("iterator"),k=!1;[].keys&&("next"in(P=[].keys())?(du=du(du(P)))!==Object.prototype&&(bu=du):k=!0);function Ou(e,t,r){(e=e&&!r?e.prototype:e)&&!Nu(e,Au)&&Su(e,Au,{configurable:!0,value:t})}function Ru(){return this}function Iu(e,t,r,n,i,o,s){var a=r,u=t,c=void 0;function l(e){if(e===i&&v)return v;if(!$u&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}}u+=" Iterator",a.prototype=xu(Cu,{next:ku(+!c,n)}),Pu(a,u,!1),Uu[u]=Mu;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[Xu]||h["@@iterator"]||i&&h[i],v=!$u&&y||l(i);if((n="Array"==t&&h.entries||y)&&(a=ju(n.call(new e)))!==Object.prototype&&a.next&&(ju(a)!==Yu&&(Vu?Vu(a,Yu):Fu(a[Xu])||zu(a,Xu,Ru)),Hu(a,c,!0)),Gu&&"values"==i&&y&&"values"!==y.name&&(qu?Ku(h,"name","values"):(d=!0,v=function(){return Lu(y,this)})),i)if(f={values:l("values"),keys:o?v:l("keys"),entries:l("entries")},s)for(p in f)!$u&&!d&&p in h||zu(h,p,f[p]);else Du({target:t,proto:!0,forced:$u||d},f);return h[Xu]!==v&&zu(h,Xu,v,{name:i}),Bu[t]=v,f}C((bu=null==bu||su(function(){var e={};return bu[_u].call(e)!==e})?{}:bu)[_u])||lu(bu,_u,function(){return this});var P={IteratorPrototype:bu,BUGGY_SAFARI_ITERATORS:k},Su=mi.f,Nu=_,Au=bn("toStringTag"),Cu=P.IteratorPrototype,xu=Hs,ku=ln,Pu=Ou,Uu=di,Mu=function(){return this},Du=R,Lu=o,Fu=T,ju=ro,Vu=Vs,Hu=Ou,Ku=Ei,zu=oo,Bu=di,Gu=y.PROPER,qu=y.CONFIGURABLE,Yu=P.IteratorPrototype,$u=P.BUGGY_SAFARI_ITERATORS,Xu=bn("iterator"),Wu=dn,du=x,C=di,su=Hn,lu=mi.f,k=Iu,y=r,Ju=su.set,Qu=su.getterFor("Array Iterator"),P=k(Array,"Array",function(e,t){Ju(this,{type:"Array Iterator",target:Wu(e),index:0,kind:t})},function(){var e=Qu(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),di=C.Arguments=C.Array;if(du("keys"),du("values"),du("entries"),y&&"values"!==di.name)try{lu(di,"name",{value:"values"})}catch(vw){}function Zu(e){var e=oc(e),t=sc.f;ac&&e&&!e[uc]&&t(e,uc,{configurable:!0,get:function(){return this}})}function ec(e,t){if(cc(t,e))return e;throw lc("Incorrect invocation")}function tc(){}function rc(e){if(!fc(e))return!1;try{return yc(tc,hc,e),!0}catch(e){return!1}}function nc(e){if(!fc(e))return!1;switch(pc(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return gc||!!mc(vc,dc(e))}catch(e){return!0}}var ic=A,su=(I||oo(Object.prototype,"toString",I?{}.toString:function(){return"[object "+ic(this)+"]"},{unsafe:!0}),"process"==fn(m.process)),oc=yn,sc=mi,ac=r,uc=bn("species"),cc=v,lc=TypeError,k=e,C=w,fc=T,pc=A,dc=b,hc=[],yc=yn("Reflect","construct"),vc=/^\s*(?:class|function)\b/,mc=k(vc.exec),gc=!vc.exec(tc);nc.sham=!0;function Ec(e,t){var r,e=Rc(e).constructor;if(void 0===e||null==(r=Rc(e)[Ic]))return t;if(bc(e=r))return e;throw Oc(_c(e)+" is not a constructor")}var wc,Tc,du=!yc||C(function(){var e;return rc(rc.call)||!rc(Object)||!rc(function(){e=!0})||e})?nc:rc,bc=du,_c=vn,Oc=TypeError,Rc=Rn,Ic=bn("species"),y=Function.prototype,Sc=y.apply,Nc=y.call,lu="object"==typeof Reflect&&Reflect.apply||(d?Nc.bind(Sc):function(){return Nc.apply(Sc,arguments)}),di=e([].slice),Ac=TypeError,I=/(?:ipad|iphone|ipod).*applewebkit/i.test(Vn),Cc=m,xc=lu,v=Ws,kc=T,Pc=_,A=w,Uc=N,Mc=di,Dc=On,k=I,C=su,y=Cc.setImmediate,d=Cc.clearImmediate,Lc=Cc.process,Fc=Cc.Dispatch,jc=Cc.Function,N=Cc.MessageChannel,Vc=Cc.String,Hc=0,Kc={};try{wc=Cc.location}catch(vw){}function zc(e){return function(){qc(e)}}function Bc(e){qc(e.data)}function Gc(e){Cc.postMessage(Vc(e),wc.protocol+"//"+wc.host)}var qc=function(e){var t;Pc(Kc,e)&&(t=Kc[e],delete Kc[e],t())};y&&d||(y=function(e){var t=arguments.length,r=1;if(t<r)throw Ac("Not enough arguments");var n=kc(e)?e:jc(e),i=Mc(arguments,1);return Kc[++Hc]=function(){xc(n,void 0,i)},Tc(Hc),Hc},d=function(e){delete Kc[e]},C?Tc=function(e){Lc.nextTick(zc(e))}:Fc&&Fc.now?Tc=function(e){Fc.now(zc(e))}:N&&!k?(k=(C=new N).port2,C.port1.onmessage=Bc,Tc=v(k.postMessage,k)):Cc.addEventListener&&kc(Cc.postMessage)&&!Cc.importScripts&&wc&&"file:"!==wc.protocol&&!A(Gc)?(Tc=Gc,Cc.addEventListener("message",Bc,!1)):Tc="onreadystatechange"in Dc("script")?function(e){Uc.appendChild(Dc("script")).onreadystatechange=function(){Uc.removeChild(this),qc(e)}}:function(e){setTimeout(zc(e),0)});function Yc(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function $c(){this.head=null,this.tail=null}function Xc(e){var r,n;this.promise=new e(function(e,t){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=e,n=t}),this.resolve=vl(r),this.reject=vl(n)}var Wc,Jc,Qc,Zc,el,tl,rl,N={set:y,clear:d},C=m,v=/ipad|iphone|ipod/i.test(Vn)&&void 0!==C.Pebble,k=/web0s(?!.*chrome)/i.test(Vn),A=m,y=Ws,d=p.f,nl=N.set,C=I,p=v,I=k,il=su,v=A.MutationObserver||A.WebKitMutationObserver,k=A.document,ol=A.process,sl=A.Promise,d=d(A,"queueMicrotask"),d=d&&d.value,I=(d||(Wc=function(){var e,t;for(il&&(e=ol.domain)&&e.exit();Jc;){t=Jc.fn,Jc=Jc.next;try{t()}catch(e){throw Jc?Zc():Qc=void 0,e}}Qc=void 0,e&&e.enter()},Zc=C||il||I||!v||!k?!p&&sl&&sl.resolve?((C=sl.resolve(void 0)).constructor=sl,rl=y(C.then,C),function(){rl(Wc)}):il?function(){ol.nextTick(Wc)}:(nl=y(nl,A),function(){nl(Wc)}):(el=!0,tl=k.createTextNode(""),new v(Wc).observe(tl,{characterData:!0}),function(){tl.data=el=!el})),d||function(e){e={fn:e,next:void 0};Qc&&(Qc.next=e),Jc||(Jc=e,Zc()),Qc=e}),al=m,p=($c.prototype={add:function(e){e={item:e,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},$c),sl=m.Promise,C="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,y=!C&&!su&&"object"==typeof window&&"object"==typeof document,A=m,ul=sl,k=T,v=No,cl=b,d=bn,ll=y,fl=C,pl=Kn,dl=(ul&&ul.prototype,d("species")),hl=!1,yl=k(A.PromiseRejectionEvent),b={CONSTRUCTOR:v("Promise",function(){var e=cl(ul),t=e!==String(ul);if(!t&&66===pl)return!0;if(!pl||pl<51||!/native code/.test(e)){var e=new ul(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[dl]=r,!(hl=e.then(function(){})instanceof r))return!0}return!t&&(ll||fl)&&!yl}),REJECTION_EVENT:yl,SUBCLASSING:hl},y={},vl=mn;y.f=function(e){return new Xc(e)};function ml(e,t){var r,n,i,o,s=t.value,a=1==t.state,u=a?e.ok:e.fail,c=e.resolve,l=e.reject,f=e.domain;try{u?(a||(2===t.rejection&&(o=t,_l(Al,bl,function(){var e=o.facade;Tl?Kl.emit("rejectionHandled",e):$l("rejectionhandled",e,o.value)})),t.rejection=1),!0===u?r=s:(f&&f.enter(),r=u(s),f&&(f.exit(),i=!0)),r===e.promise?l(Vl("Promise-chain cycle")):(n=ql(r))?_l(n,r,c,l):c(r)):l(s)}catch(e){f&&!i&&f.exit(),l(e)}}var gl,El,wl,C=R,Tl=su,bl=m,_l=o,d=oo,k=Vs,A=Ou,v=Zu,Ol=mn,Rl=T,Il=hn,Sl=ec,Nl=Ec,Al=N.set,Cl=I,xl=Yc,kl=p,N=Hn,I=sl,p=y,Pl=b.CONSTRUCTOR,Ul=b.REJECTION_EVENT,Ml=b.SUBCLASSING,Dl=N.getterFor("Promise"),Ll=N.set,N=I&&I.prototype,Fl=I,jl=N,Vl=bl.TypeError,Hl=bl.document,Kl=bl.process,zl=p.f,Bl=zl,Gl=!!(Hl&&Hl.createEvent&&bl.dispatchEvent),ql=function(e){var t;return!(!Il(e)||!Rl(t=e.then))&&t},Yl=function(r,i){r.notified||(r.notified=!0,Cl(function(){for(var e,n,t=r.reactions;e=t.get();)ml(e,r);r.notified=!1,i&&!r.rejection&&(n=r,_l(Al,bl,function(){var e,t=n.facade,r=n.value;if(Xl(n)&&(e=xl(function(){Tl?Kl.emit("unhandledRejection",r,t):$l("unhandledrejection",t,r)}),n.rejection=Tl||Xl(n)?2:1,e.error))throw e.value}))}))},$l=function(e,t,r){var n;Gl?((n=Hl.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),bl.dispatchEvent(n)):n={promise:t,reason:r},!Ul&&(t=bl["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=al.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},Xl=function(e){return 1!==e.rejection&&!e.parent},Wl=function(t,r,n){return function(e){t(r,e,n)}},Jl=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,Yl(e,!0))},Ql=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw Vl("Promise can't be resolved itself");var n=ql(e);n?Cl(function(){var t={done:!1};try{_l(n,e,Wl(Ql,t,r),Wl(Jl,t,r))}catch(e){Jl(t,e,r)}}):(r.value=e,r.state=1,Yl(r,!1))}catch(e){Jl({done:!1},e,r)}}};if(Pl&&(jl=(Fl=function(e){Sl(this,jl),Ol(e),_l(gl,this);var t=Dl(this);try{e(Wl(Ql,t),Wl(Jl,t))}catch(e){Jl(t,e)}}).prototype,(gl=function(e){Ll(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new kl,rejection:!1,state:0,value:void 0})}).prototype=d(jl,"then",function(e,t){var r=Dl(this),n=zl(Nl(this,Fl));return r.parent=!0,n.ok=!Rl(e)||e,n.fail=Rl(t)&&t,n.domain=Tl?Kl.domain:void 0,0==r.state?r.reactions.add(n):Cl(function(){ml(n,r)}),n.promise}),El=function(){var e=new gl,t=Dl(e);this.promise=e,this.resolve=Wl(Ql,t),this.reject=Wl(Jl,t)},p.f=zl=function(e){return e===Fl||void 0===e?new El:Bl(e)},Rl(I)&&N!==Object.prototype)){wl=N.then,Ml||d(N,"then",function(e,t){var r=this;return new Fl(function(e,t){_l(wl,r,e,t)}).then(e,t)},{unsafe:!0});try{delete N.constructor}catch(vw){}k&&k(N,jl)}C({global:!0,constructor:!0,wrap:!0,forced:Pl},{Promise:Fl}),A(Fl,"Promise",!1),v("Promise");var Zl=bn("iterator"),ef=!1;try{var tf=0,rf={next:function(){return{done:!!tf++}},return:function(){ef=!0}};rf[Zl]=function(){return this},Array.from(rf,function(){throw 2})}catch(vw){}function nf(e,t){if(!t&&!ef)return!1;var r=!1;try{var n={};n[Zl]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function of(e,t){return bf(e),_f(t)&&t.constructor===e?t:((0,(e=Of.f(e)).resolve)(t),e.promise)}function sf(i){return function(e,t){var r,e=zf(Bf(e)),t=Kf(t),n=e.length;return t<0||n<=t?i?"":void 0:(r=qf(e,t))<55296||56319<r||t+1===n||(n=qf(e,t+1))<56320||57343<n?i?Gf(e,t):r:i?Yf(e,t,t+2):n-56320+(r-55296<<10)+65536}}function af(e,t){if(e){if(e[rp]!==ip)try{tp(e,rp,ip)}catch(t){e[rp]=ip}if(e[np]||tp(e,np,t),Zf[t])for(var r in ep)if(e[r]!==ep[r])try{tp(e,r,ep[r])}catch(t){e[r]=ep[r]}}}var uf,cf=sl,p=b.CONSTRUCTOR||!nf(function(e){cf.all(e).then(void 0,function(){})}),lf=o,ff=mn,pf=y,df=Yc,hf=ra,I=(R({target:"Promise",stat:!0,forced:p},{all:function(e){var a=this,t=pf.f(a),u=t.resolve,c=t.reject,r=df(function(){var n=ff(a.resolve),i=[],o=0,s=1;hf(e,function(e){var t=o++,r=!1;s++,lf(n,a,e).then(function(e){r||(r=!0,i[t]=e,--s||u(i))},c)}),--s||u(i)});return r.error&&c(r.value),t.promise}}),R),Ml=sl,d=yn,k=T,N=oo,C=Ml&&Ml.prototype,yf=(I({target:"Promise",proto:!0,forced:b.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),k(Ml)&&(Pl=d("Promise").prototype.catch,C.catch!==Pl&&N(C,"catch",Pl,{unsafe:!0})),o),vf=mn,mf=y,gf=Yc,Ef=ra,wf=(R({target:"Promise",stat:!0,forced:p},{race:function(e){var r=this,n=mf.f(r),i=n.reject,t=gf(function(){var t=vf(r.resolve);Ef(e,function(e){yf(t,r,e).then(n.resolve,i)})});return t.error&&i(t.value),n.promise}}),o),Tf=y,bf=(R({target:"Promise",stat:!0,forced:b.CONSTRUCTOR},{reject:function(e){var t=Tf.f(this);return wf(t.reject,void 0,e),t.promise}}),Rn),_f=hn,Of=y,A=R,v=b.CONSTRUCTOR,Rf=of,If=(yn("Promise"),A({target:"Promise",stat:!0,forced:v},{resolve:function(e){return Rf(this,e)}}),o),Sf=mn,Nf=y,Af=Yc,Cf=ra,xf=(R({target:"Promise",stat:!0},{allSettled:function(e){var a=this,t=Nf.f(a),u=t.resolve,r=t.reject,n=Af(function(){var n=Sf(a.resolve),i=[],o=0,s=1;Cf(e,function(e){var t=o++,r=!1;s++,If(n,a,e).then(function(e){r||(r=!0,i[t]={status:"fulfilled",value:e},--s||u(i))},function(e){r||(r=!0,i[t]={status:"rejected",reason:e},--s||u(i))})}),--s||u(i)});return n.error&&r(n.value),t.promise}}),o),kf=mn,Pf=yn,Uf=y,Mf=Yc,Df=ra,rf=(R({target:"Promise",stat:!0},{any:function(e){var u=this,c=Pf("AggregateError"),t=Uf.f(u),l=t.resolve,f=t.reject,r=Mf(function(){var n=kf(u.resolve),i=[],o=0,s=1,a=!1;Df(e,function(e){var t=o++,r=!1;s++,xf(n,u,e).then(function(e){r||a||(a=!0,l(e))},function(e){r||a||(r=!0,i[t]=e,--s||f(new c(i,"No one promise resolved")))})}),--s||f(new c(i,"No one promise resolved"))});return r.error&&f(r.value),t.promise}}),R),I=sl,k=w,Lf=yn,Ff=T,jf=Ec,Vf=of,Ml=oo,Hf=I&&I.prototype,N=(rf({target:"Promise",proto:!0,real:!0,forced:!!I&&k(function(){Hf.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=jf(this,Lf("Promise")),e=Ff(t);return this.then(e?function(e){return Vf(r,t()).then(function(){return e})}:t,e?function(e){return Vf(r,t()).then(function(){throw e})}:t)}}),Ff(I)&&(d=Lf("Promise").prototype.finally,Hf.finally!==d&&Ml(Hf,"finally",d,{unsafe:!0})),e),Kf=so,zf=na,Bf=pn,Gf=N("".charAt),qf=N("".charCodeAt),Yf=N("".slice),$f=(sf(!1),sf(!0)),Xf=na,C=Hn,Pl=Iu,Wf=C.set,Jf=C.getterFor("String Iterator"),p=(Pl(String,"String",function(e){Wf(this,{type:"String Iterator",string:Xf(e),index:0})},function(){var e=Jf(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=$f(t,r),e.index+=t.length,{value:t,done:!1})}),m),b=(p.Promise,On("span").classList),A=b&&b.constructor&&b.constructor.prototype,v=A===Object.prototype?void 0:A,Qf=m,Zf={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},sl=v,ep=P,tp=Ei,rf=bn,rp=rf("iterator"),np=rf("toStringTag"),ip=ep.values;for(uf in Zf)af(Qf[uf]&&Qf[uf].prototype,uf);af(sl,"DOMTokenList");function op(e,t,r){(t=Cp(t))in e?xp.f(e,t,kp(0,r)):e[t]=r}function sp(e){if(9007199254740991<e)throw Wp("Maximum allowed index exceeded");return e}function ap(e,t){return Jp(e=e)&&(r=e.constructor,(Qp(r)&&(r===td||Jp(r.prototype))||Zp(r)&&null===(r=r[ed]))&&(r=void 0)),new(void 0===r?td:r)(0===t?0:t);var r}function up(t){return 51<=nd||!rd(function(){var e=[];return(e.constructor={})[id]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function cp(e,t){if(!delete e[t])throw hd("Cannot delete property "+dd(t)+" of "+dd(e))}function lp(p){var d=1==p,h=2==p,y=3==p,v=4==p,m=6==p,g=7==p,E=5==p||m;return function(e,t,r,n){for(var i,o,s=bd(e),a=Td(s),u=wd(t,r),c=_d(a),l=0,t=n||Od,f=d?t(e,c):h||g?t(e,0):void 0;l<c;l++)if((E||l in a)&&(o=u(i=a[l],l,s),p))if(d)f[l]=o;else if(o)switch(p){case 3:return!0;case 5:return i;case 6:return l;case 2:Rd(f,i)}else switch(p){case 4:return!1;case 7:Rd(f,i)}return m?-1:y||v?v:f}}function fp(e,t){var r=[][e];return!!r&&Id(function(){r.call(null,t||function(){return 1},1)})}function pp(u){var c=1==u;return function(e,t,r){for(var n,i=Fd(e),o=Ld(i),s=Dd(t,r),a=jd(o);0<a--;)if(s(n=o[a],a,i))switch(u){case 0:return n;case 1:return a}return c?-1:void 0}}function dp(e,t,r,n,i,o,s,a){for(var u,c,l=i,f=0,p=!!s&&Gd(s,a);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<o&&Kd(u)?(c=zd(u),l=dp(e,t,u,c,l,o-1)-1):(Bd(l+1),e[l]=u),l++),f++;return l}function hp(c){return function(e,t,r,n){wh(t);var i=Th(e),o=bh(i),s=_h(i),a=c?s-1:0,u=c?-1:1;if(r<2)for(;;){if(a in o){n=o[a],a+=u;break}if(a+=u,c?a<0:s<=a)throw Oh("Reduce of empty array with no initial value")}for(;c?0<=a:a<s;a+=u)a in o&&(n=t(n,o[a],a,i));return n}}function yp(e,t,r){for(var n=Kh(e),i=Hh(t,n),o=Hh(void 0===r?n:r,n),s=Bh(Gh(o-i,0)),a=0;i<o;i++,a++)zh(s,a,e[i]);return s.length=a,s}function vp(e,t){var r=e.length,n=Yh(r/2);if(r<8){for(var i,o,s=e,a=t,u=s.length,c=1;c<u;){for(i=s[o=c];o&&0<a(s[o-1],i);)s[o]=s[--o];o!==c++&&(s[o]=i)}return s}for(var l=e,f=vp(qh(e,0,n),t),p=vp(qh(e,n),t),d=t,h=f.length,y=p.length,v=0,m=0;v<h||m<y;)l[v+m]=v<h&&m<y?d(f[v],p[m])<=0?f[v++]:p[m++]:v<h?f[v++]:p[m++];return l}function mp(e){My(e,Hy,{value:{objectID:"O"+Ky++,weakData:{}}})}function gp(e,t,r){for(var n in t)Qy(e,n,t[n],r);return e}var Ep,wp,Tp,bp,_p,Op,Rp,Ip=y,Sp=Yc,Np=(R({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Ip.f(this),e=Sp(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),Rn),Ap=ea,Cp=_n,xp=mi,kp=ln,Pp=Ws,Up=o,Mp=wn,Dp=Js,Lp=du,Fp=O,jp=op,Vp=Zs,Hp=Qs,Kp=Array,zp=(R({target:"Array",stat:!0,forced:!nf(function(e){Array.from(e)})},{from:function(e){var t=Mp(e),e=Lp(this),r=arguments.length,n=1<r?arguments[1]:void 0,i=void 0!==n;i&&(n=Pp(n,2<r?arguments[2]:void 0));var o,s,a,u,c,l,r=Hp(t),f=0;if(!r||this===Kp&&Dp(r))for(o=Fp(t),s=e?new this(o):Kp(o);f<o;f++)l=i?n(t[f],f):t[f],jp(s,f,l);else for(c=(u=Vp(t,r)).next,s=e?new this:[];!(a=Up(c,u)).done;f++)l=i?function(e,t,r,n){try{return n?t(Np(r)[0],r[1]):t(r)}catch(t){Ap(e,"throw",t)}}(u,n,[a.value,f],!0):a.value,jp(s,f,l);return s.length=f,s}}),fn),k=Array.isArray||function(e){return"Array"==zp(e)},Bp=(R({target:"Array",stat:!0},{isArray:k}),du),Gp=op,qp=Array,Yp=(R({target:"Array",stat:!0,forced:w(function(){function e(){}return!(qp.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(Bp(this)?this:qp)(t);e<t;)Gp(r,e,arguments[e++]);return r.length=t,r}}),wn),$p=O,Xp=so,I=x,Wp=(R({target:"Array",proto:!0},{at:function(e){var t=Yp(this),r=$p(t),e=Xp(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),I("at"),TypeError),Jp=k,Qp=du,Zp=hn,ed=bn("species"),td=Array,rd=w,nd=Kn,id=bn("species"),Ml=R,d=w,od=k,sd=hn,ad=wn,ud=O,cd=sp,ld=op,fd=ap,N=up,C=Kn,pd=bn("isConcatSpreadable"),Pl=51<=C||!d(function(){var e=[];return e[pd]=!1,e.concat()[0]!==e}),b=N("concat"),dd=(Ml({target:"Array",proto:!0,arity:1,forced:!Pl||!b},{concat:function(e){for(var t,r,n,i=ad(this),o=fd(i,0),s=0,a=-1,u=arguments.length;a<u;a++)if(function(e){if(!sd(e))return!1;var t=e[pd];return void 0!==t?!!t:od(e)}(n=-1===a?i:arguments[a]))for(r=ud(n),cd(s+r),t=0;t<r;t++,s++)t in n&&ld(o,s,n[t]);else cd(s+1),ld(o,s++,n);return o.length=s,o}}),vn),hd=TypeError,yd=wn,vd=ao,md=O,gd=cp,Ed=Math.min,A=x,wd=(R({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=yd(this),n=md(r),i=vd(e,n),o=vd(t,n),e=2<arguments.length?arguments[2]:void 0,s=Ed((void 0===e?n:vd(e,n))-o,n-i),a=1;for(o<i&&i<o+s&&(a=-1,o+=s-1,i+=s-1);0<s--;)o in r?r[i]=r[o]:gd(r,i),i+=a,o+=a;return r}}),A("copyWithin"),Ws),Td=In,bd=wn,_d=O,Od=ap,Rd=e([].push),v={forEach:lp(0),map:lp(1),filter:lp(2),some:lp(3),every:lp(4),find:lp(5),findIndex:lp(6),filterReject:lp(7)},Id=w,Sd=v.every,Nd=(R({target:"Array",proto:!0,forced:!fp("every")},{every:function(e){return Sd(this,e,1<arguments.length?arguments[1]:void 0)}}),wn),Ad=ao,Cd=O,P=x,xd=(R({target:"Array",proto:!0},{fill:function(e){for(var t=Nd(this),r=Cd(t),n=arguments.length,i=Ad(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,o=void 0===n?r:Ad(n,r);i<o;)t[i++]=e;return t}}),P("fill"),v.filter),Ei=(R({target:"Array",proto:!0,forced:!up("filter")},{filter:function(e){return xd(this,e,1<arguments.length?arguments[1]:void 0)}}),R),kd=v.find,rf=x,Pd=!0,sl=("find"in[]&&Array(1).find(function(){Pd=!1}),Ei({target:"Array",proto:!0,forced:Pd},{find:function(e){return kd(this,e,1<arguments.length?arguments[1]:void 0)}}),rf("find"),R),Ud=v.findIndex,y=x,Md=!0,Dd=("findIndex"in[]&&Array(1).findIndex(function(){Md=!1}),sl({target:"Array",proto:!0,forced:Md},{findIndex:function(e){return Ud(this,e,1<arguments.length?arguments[1]:void 0)}}),y("findIndex"),Ws),Ld=In,Fd=wn,jd=O,I={findLast:pp(0),findLastIndex:pp(1)},Vd=I.findLast,C=x,Hd=(R({target:"Array",proto:!0},{findLast:function(e){return Vd(this,e,1<arguments.length?arguments[1]:void 0)}}),C("findLast"),I.findLastIndex),d=x,Kd=(R({target:"Array",proto:!0},{findLastIndex:function(e){return Hd(this,e,1<arguments.length?arguments[1]:void 0)}}),d("findLastIndex"),k),zd=O,Bd=sp,Gd=Ws,N=dp,qd=N,Yd=wn,$d=O,Xd=so,Wd=ap,Jd=(R({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Yd(this),r=$d(t),n=Wd(t,0);return n.length=qd(n,t,t,r,0,void 0===e?1:Xd(e)),n}}),N),Qd=mn,Zd=wn,eh=O,th=ap,rh=(R({target:"Array",proto:!0},{flatMap:function(e){var t,r=Zd(this),n=eh(r);return Qd(e),(t=th(r,0)).length=Jd(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),v.forEach),Ml=fp("forEach")?[].forEach:function(e){return rh(this,e,1<arguments.length?arguments[1]:void 0)},nh=(R({target:"Array",proto:!0,forced:[].forEach!=Ml},{forEach:Ml}),S.includes),Pl=x,b=(R({target:"Array",proto:!0,forced:w(function(){return!Array(1).includes()})},{includes:function(e){return nh(this,e,1<arguments.length?arguments[1]:void 0)}}),Pl("includes"),R),ih=S.indexOf,A=fp,oh=e([].indexOf),sh=!!oh&&1/oh([1],1,-0)<0,P=A("indexOf"),Ei=(b({target:"Array",proto:!0,forced:sh||!P},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return sh?oh(this,e,t)||0:ih(this,e,t)}}),R),rf=In,ah=dn,sl=fp,uh=e([].join),y=rf!=Object,C=sl("join",","),ch=(Ei({target:"Array",proto:!0,forced:y||!C},{join:function(e){return uh(ah(this),void 0===e?",":e)}}),lu),lh=dn,fh=so,ph=O,I=fp,dh=Math.min,hh=[].lastIndexOf,yh=!!hh&&1/[1].lastIndexOf(1,-0)<0,d=I("lastIndexOf"),N=yh||!d?function(e){if(yh)return ch(hh,this,arguments)||0;var t=lh(this),r=ph(t),n=r-1;for((n=1<arguments.length?dh(n,fh(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:hh,vh=(R({target:"Array",proto:!0,forced:N!==[].lastIndexOf},{lastIndexOf:N}),v.map),Ml=(R({target:"Array",proto:!0,forced:!up("map")},{map:function(e){return vh(this,e,1<arguments.length?arguments[1]:void 0)}}),R),mh=wn,gh=O,Eh=sp,Pl=w(function(){return 4294967297!==[].push.call({length:4294967296},1)}),S=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),wh=(Ml({target:"Array",proto:!0,arity:1,forced:Pl||S},{push:function(e){var t=mh(this),r=gh(t),n=arguments.length;Eh(r+n);for(var i=0;i<n;i++)t[r]=arguments[i],r++;return t.length=r}}),mn),Th=wn,bh=In,_h=O,Oh=TypeError,A={left:hp(!1),right:hp(!0)},Rh=A.left,b=Kn,P=su,Ih=(R({target:"Array",proto:!0,forced:!fp("reduce")||!P&&79<b&&b<83},{reduce:function(e){var t=arguments.length;return Rh(this,e,t,1<t?arguments[1]:void 0)}}),A.right),rf=Kn,sl=su,Ei=(R({target:"Array",proto:!0,forced:!fp("reduceRight")||!sl&&79<rf&&rf<83},{reduceRight:function(e){return Ih(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),R),Sh=k,Nh=e([].reverse),y=[1,2],C=(Ei({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return Sh(this)&&(this.length=this.length),Nh(this)}}),R),Ah=k,Ch=du,xh=hn,kh=ao,Ph=O,Uh=dn,Mh=op,lu=bn,Dh=di,I=up("slice"),Lh=lu("species"),Fh=Array,jh=Math.max,Vh=(C({target:"Array",proto:!0,forced:!I},{slice:function(e,t){var r,n,i,o=Uh(this),s=Ph(o),a=kh(e,s),u=kh(void 0===t?s:t,s);if(Ah(o)&&(r=o.constructor,(r=Ch(r)&&(r===Fh||Ah(r.prototype))||xh(r)&&null===(r=r[Lh])?void 0:r)===Fh||void 0===r))return Dh(o,a,u);for(n=new(void 0===r?Fh:r)(jh(u-a,0)),i=0;a<u;a++,i++)a in o&&Mh(n,i,o[a]);return n.length=i,n}}),v.some),Hh=(R({target:"Array",proto:!0,forced:!fp("some")},{some:function(e){return Vh(this,e,1<arguments.length?arguments[1]:void 0)}}),ao),Kh=O,zh=op,Bh=Array,Gh=Math.max,qh=yp,Yh=Math.floor,d=vp,N=Vn.match(/firefox\/(\d+)/i),Ml=!!N&&+N[1],Pl=/MSIE|Trident/.test(Vn),S=Vn.match(/AppleWebKit\/(\d+)\./),P=!!S&&+S[1],b=R,A=e,$h=mn,Xh=wn,Wh=O,Jh=cp,Qh=na,su=w,Zh=d,sl=fp,ey=Ml,ty=Pl,ry=Kn,ny=P,iy=[],oy=A(iy.sort),sy=A(iy.push),rf=su(function(){iy.sort(void 0)}),Ei=su(function(){iy.sort(null)}),y=sl("sort"),ay=!su(function(){if(ry)return ry<70;if(!(ey&&3<ey)){if(ty)return!0;if(ny)return ny<603;for(var e,t,r,n="",i=65;i<76;i++){switch(e=String.fromCharCode(i),i){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(r=0;r<47;r++)iy.push({k:e+r,v:t})}for(iy.sort(function(e,t){return t.v-e.v}),r=0;r<iy.length;r++)e=iy[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),di=(b({target:"Array",proto:!0,forced:rf||!Ei||!y||!ay},{sort:function(e){void 0!==e&&$h(e);var t=Xh(this);if(ay)return void 0===e?oy(t):oy(t,e);for(var r,n,i=[],o=Wh(t),s=0;s<o;s++)s in t&&sy(i,t[s]);for(Zh(i,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:Qh(e)>Qh(t)?1:-1})),r=i.length,s=0;s<r;)t[s]=i[s++];for(;s<o;)Jh(t,s++);return t}}),Zu("Array"),R),uy=wn,cy=ao,ly=so,fy=O,py=sp,dy=ap,hy=op,yy=cp,lu=up("splice"),vy=Math.max,my=Math.min,C=(di({target:"Array",proto:!0,forced:!lu},{splice:function(e,t){var r,n,i,o,s,a,u=uy(this),c=fy(u),l=cy(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,my(vy(ly(t),0),c-l)),py(c+r-n),i=dy(u,n),o=0;o<n;o++)(s=l+o)in u&&hy(i,o,u[s]);if(r<(i.length=n)){for(o=l;o<c-n;o++)a=o+r,(s=o+n)in u?u[a]=u[s]:yy(u,a);for(o=c;c-n+r<o;o--)yy(u,o-1)}else if(n<r)for(o=c-n;l<o;o--)a=o+r-1,(s=o+n-1)in u?u[a]=u[s]:yy(u,a);for(o=0;o<r;o++)u[o+l]=arguments[o+2];return u.length=c-n+r,i}}),x("flat"),x("flatMap"),R),gy=wn,Ey=O,wy=cp,Ty=sp,I=1!==[].unshift(0),N=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),Vn=(C({target:"Array",proto:!0,arity:1,forced:I||N},{unshift:function(e){var t=gy(this),r=Ey(t),n=arguments.length;if(n){Ty(r+n);for(var i=r;i--;){var o=i+n;i in t?t[o]=t[i]:wy(t,o)}for(var s=0;s<n;s++)t[s]=arguments[s]}return t.length=r+n}}),p.Array,{exports:{}}),S={},by=fn,_y=dn,Oy=zn.f,Ry=yp,Iy="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=(S.f=function(e){if(!Iy||"Window"!=by(e))return Oy(_y(e));var t=e;try{return Oy(t)}catch(t){return Ry(Iy)}},w(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),Ml=w,Sy=hn,Ny=fn,Ay=d,Cy=Object.isExtensible,Pl=Ml(function(){Cy(1)})||Ay?function(e){return!!Sy(e)&&(!Ay||"ArrayBuffer"!=Ny(e))&&(!Cy||Cy(e))}:Cy,Kn=!w(function(){return Object.isExtensible(Object.preventExtensions({}))}),xy=R,ky=e,P=To,Py=hn,Uy=_,My=mi.f,Dy=zn,Ly=S,Fy=Pl,jy=Kn,Vy=!1,Hy=Tn("meta"),Ky=0,zy=Vn.exports={enable:function(){zy.enable=function(){},Vy=!0;var i=Dy.f,o=ky([].splice),e={};e[Hy]=1,i(e).length&&(Dy.f=function(e){for(var t=i(e),r=0,n=t.length;r<n;r++)if(t[r]===Hy){o(t,r,1);break}return t},xy({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ly.f}))},fastKey:function(e,t){if(!Py(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Uy(e,Hy)){if(!Fy(e))return"F";if(!t)return"E";mp(e)}return e[Hy].objectID},getWeakData:function(e,t){if(!Uy(e,Hy)){if(!Fy(e))return!0;if(!t)return!1;mp(e)}return e[Hy].weakData},onFreeze:function(e){return jy&&Vy&&Fy(e)&&!Uy(e,Hy)&&mp(e),e}},By=(P[Hy]=!0,T),Gy=hn,qy=Vs,A=R,sl=m,Yy=e,su=No,$y=oo,b=Vn.exports,Xy=ra,Wy=ec,rf=T,Jy=hn,Ei=w,y=nf,di=Ou,Qy=oo,Zy=mi.f,ev=Hs,tv=gp,rv=Ws,nv=ec,iv=ra,ov=Iu,sv=Zu,av=r,uv=Vn.exports.fastKey,cv=Hn.set,lv=Hn.getterFor;function fv(e){var r=Yy(Op[e]);$y(Op,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(Tp&&!Jy(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return Tp&&!Jy(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(Tp&&!Jy(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}lu=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},C={getConstructor:function(e,r,n,i){function o(e,t,r){var n,i=u(e),o=s(e,t);return o?o.value=r:(i.last=o={index:n=uv(t,!0),key:t,value:r,previous:t=i.last,next:void 0,removed:!1},i.first||(i.first=o),t&&(t.next=o),av?i.size++:e.size++,"F"!==n&&(i.index[n]=o)),e}function s(e,t){var r,e=u(e),n=uv(t);if("F"!==n)return e.index[n];for(r=e.first;r;r=r.next)if(r.key==t)return r}var e=e(function(e,t){nv(e,a),cv(e,{type:r,index:ev(null),first:void 0,last:void 0,size:0}),av||(e.size=0),null!=t&&iv(t,e[i],{that:e,AS_ENTRIES:n})}),a=e.prototype,u=lv(r);return tv(a,{clear:function(){for(var e=u(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,av?e.size=0:this.size=0},delete:function(e){var t,r,n=u(this),e=s(this,e);return e&&(t=e.next,r=e.previous,delete n.index[e.index],e.removed=!0,r&&(r.next=t),t&&(t.previous=r),n.first==e&&(n.first=t),n.last==e&&(n.last=r),av?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=rv(e,1<arguments.length?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),tv(a,n?{get:function(e){e=s(this,e);return e&&e.value},set:function(e,t){return o(this,0===e?0:e,t)}}:{add:function(e){return o(this,e=0===e?0:e,e)}}),av&&Zy(a,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",i=lv(t),o=lv(n);ov(e,t,function(e,t){cv(this,{type:n,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:{value:e.target=void 0,done:!0}},r?"entries":"values",!r,!0),sv(t)}},wp=-1!==(I="Map").indexOf("Map"),Tp=-1!==I.indexOf("Weak"),bp=wp?"set":"add",_p=sl.Map,Op=_p&&_p.prototype,N={},su(I,!rf(Rp=_p)||!(Tp||Op.forEach&&!Ei(function(){(new _p).entries().next()})))?(Rp=C.getConstructor(lu,I,wp,bp),b.enable()):su(I,!0)&&(p=(Ep=new Rp)[bp](Tp?{}:-0,1)!=Ep,d=Ei(function(){Ep.has(1)}),Ml=y(function(e){new _p(e)}),To=!Tp&&Ei(function(){for(var e=new _p,t=5;t--;)e[bp](t,t);return!e.has(-0)}),Ml||(((Rp=lu(function(e,t){Wy(e,Op);r=new _p,e=e,n=Rp,qy&&By(e=e.constructor)&&e!==n&&Gy(e=e.prototype)&&e!==n.prototype&&qy(r,e);var r,n=r;return null!=t&&Xy(t,n[bp],{that:n,AS_ENTRIES:wp}),n})).prototype=Op).constructor=Rp),(d||To)&&(fv("delete"),fv("has"),wp&&fv("get")),(To||p)&&fv(bp),Tp&&Op.clear&&delete Op.clear),N.Map=Rp,A({global:!0,constructor:!0,forced:Rp!=_p},N),di(Rp,I),Tp||C.setStrong(Rp,I,wp);function pv(e,t){for(var r=0,n=vv(t),i=new e(n);r<n;)i[r]=t[r++];return i}function dv(e,t,r,n){for(var i,o,s,a=Ev(e),u=gv(a),c=mv(t,r),l=bv(null),f=Tv(u),p=0;p<f;p++)s=u[p],(o=wv(c(s,p,a)))in l?Rv(l[o],s):l[o]=[s];if(n&&(i=n(a))!==Ov)for(o in l)l[o]=_v(i,l[o]);return l}function hv(e){for(var t,r,n=Cv(this),i=Av(n),o=Nv(e,1<arguments.length?arguments[1]:void 0),s=new kv,a=xv(i),u=0;u<a;u++)t=o(r=i[u],u,n),Uv(s,t)?Dv(Pv(s,t),r):Mv(s,t,[r]);return s}function yv(e){return Vv[e].prototype}var vv=O,mv=Ws,gv=In,Ev=wn,wv=_n,Tv=O,bv=Hs,_v=pv,Ov=Array,Rv=e([].push),Iv=dv,_=x,Sv=(R({target:"Array",proto:!0},{group:function(e){return Iv(this,e,1<arguments.length?arguments[1]:void 0)}}),_("group"),dv),zn=x,Nv=(R({target:"Array",proto:!0,forced:!fp("groupBy")},{groupBy:function(e){return Sv(this,e,1<arguments.length?arguments[1]:void 0)}}),zn("groupBy"),Ws),S=e,Av=In,Cv=wn,xv=O,kv=yn("Map"),Pl=kv.prototype,Pv=S(Pl.get),Uv=S(Pl.has),Mv=S(Pl.set),Dv=S([].push),Kn=x,P=hv,Vs=(R({target:"Array",proto:!0,name:"groupToMap",forced:!fp("groupByToMap")},{groupByToMap:P}),Kn("groupByToMap"),x),Lv=(R({target:"Array",proto:!0},{groupToMap:hv}),Vs("groupToMap"),O),Fv=dn,No=x,jv=Array,Vv=(R({target:"Array",proto:!0},{toReversed:function(){for(var e=Fv(this),t=jv,r=Lv(e),n=new t(r),i=0;i<r;i++)n[i]=e[r-i-1];return n}}),No("toReversed"),m),Vn=R,Hv=mn,Kv=dn,zv=pv,sl=x,Bv=Array,Gv=e(yv("Array").sort),su=(Vn({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&Hv(e);var t=Kv(this),t=zv(Bv,t);return Gv(t,e)}}),sl("toSorted"),R),y=x,qv=sp,Yv=O,$v=ao,Xv=dn,Wv=so,Jv=Array,Qv=Math.max,Zv=Math.min,em=(su({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,i,o,s=Xv(this),a=Yv(s),u=$v(e,a),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,a-u):(r=e-2,Zv(Qv(Wv(t),0),a-u)),i=qv(a+r-n),o=Jv(i);c<u;c++)o[c]=s[c];for(;c<u+r;c++)o[c]=arguments[c-u+2];for(;c<i;c++)o[c]=s[c+n-r];return o}}),y("toSpliced"),O),tm=so,rm=RangeError,nm=dn,im=Array;R({target:"Array",proto:!0},{with:function(e,t){var r=nm(this),n=im,i=t,o=em(r),s=(e=tm(e))<0?o+e:e;if(o<=s||s<0)throw rm("Incorrect index");for(var a=new n(o),u=0;u<o;u++)a[u]=u===s?i:r[u];return a}});Ei=m,Ml=ai,lu=T,d=ro,To=oo,p=bn("asyncIterator"),A=Ei.AsyncIterator,N=Ml.AsyncIteratorPrototype;if(N)ew=N;else if(lu(A))ew=A.prototype;else if(Ml.USE_FUNCTION_CONSTRUCTOR||Ei.USE_FUNCTION_CONSTRUCTOR)try{Dg=d(d(d(Function("return async function*(){}()")()))),d(Dg)===Object.prototype&&(ew=Dg)}catch(vw){}lu((ew=ew||{})[p])||To(ew,p,function(){return this});function om(e,t,r){var n=e.done;hm.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function sm(e){ym(this,{type:"AsyncFromSyncIterator",iterator:pm(e),next:e.next})}function am(e,t,r,n){try{var i=Sm(e,"return");if(i)return Im("Promise").resolve(Rm(i,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function um(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,s,a){var e={iterator:e,next:_m(Om(e).next)},u=km("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==s;return!f&&p||Am(s),new u(function(r,n){var i=function(e){am(c,n,e,n)},o=function(){try{if(p&&f)try{xm(l)}catch(e){i(e)}u.resolve(Cm(Nm(t,c))).then(function(e){try{if(Cm(e).done)p?(a.length=l,r(a)):r(!y&&(h||void 0));else{var t=e.value;try{f?u.resolve(p?s(t,l):s(t)).then(function(e){if(d)o();else if(h)e?o():am(c,r,!1,n);else if(p)try{a[l++]=e,o()}catch(e){i(e)}else e?am(c,r,y||t,n):o()},i):(a[l++]=t,o())}catch(e){i(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};o()})}}function cm(e,t){if(!Ym||!qm(e)||!Ym(e))return!1;for(var r,n=0,i=e.length;n<i;)if(!("string"==typeof(r=e[n++])||t&&void 0===r))return!1;return 0!==i}function lm(e,t,r){r.get&&$m(r.get,t,{getter:!0}),r.set&&$m(r.set,t,{setter:!0}),Xm.f(e,t,r)}var fm=o,pm=Rn,di=Hs,dm=gn,C=gp,I=Hn,_=ew,hm=yn("Promise"),ym=I.set,vm=I.getterFor("AsyncFromSyncIterator"),zn=(sm.prototype=C(di(_),{next:function(){var n=vm(this);return new hm(function(e,t){var r=pm(fm(n.next,n.iterator));om(r,e,t)})},return:function(){var n=vm(this).iterator;return new hm(function(e,t){var r=dm(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=pm(fm(r,n));om(r,e,t)})}}),sm),mm=o,gm=zn,Em=Rn,wm=Zs,Tm=gn,bm=bn("asyncIterator"),_m=mn,Om=Rn,Rm=o,Im=yn,Sm=gn,Nm=o,Am=mn,Cm=Rn,xm=sp,km=yn,In={toArray:um(0),forEach:um(1),every:um(2),some:um(3),find:um(4)},Pm=Ws,Um=wn,Mm=du,Dm=Zs,Lm=Qs,Fm=gn,Pl=yv,jm=yn,Vm=zn,Hm=In.toArray,Km=bn("asyncIterator"),zm=Pl("Array").values,Bm=(R({target:"Array",stat:!0,forced:!0},{fromAsync:function(o){var s=this,e=arguments.length,a=1<e?arguments[1]:void 0,u=2<e?arguments[2]:void 0;return new(jm("Promise"))(function(e){var t=Um(o),r=(void 0!==a&&(a=Pm(a,u)),Fm(t,Km)),n=r?void 0:Lm(t)||zm,i=Mm(s)?new s:[],r=r?function(e,t){t=arguments.length<2?Tm(e,bm):t;return t?Em(mm(t,e)):new gm(wm(e))}(t,r):new Vm(Dm(t,n));e(Hm(r,a,i))})}}),v.filterReject),S=x,Gm=(R({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return Bm(this,e,1<arguments.length?arguments[1]:void 0)}}),S("filterOut"),v.filterReject),P=x,Kn=(R({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return Gm(this,e,1<arguments.length?arguments[1]:void 0)}}),P("filterReject"),R),qm=k,Ym=Object.isFrozen,$m=(Kn({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!cm(e,!0))return!1;var t=e.raw;return t.length===e.length&&cm(t,!1)}}),Xn.exports),Xm=mi,Vs=x,Wm=wn,Jm=O,No=(r&&(lm(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=Wm(this),t=Jm(e);return 0==t?void 0:e[t-1]},set:function(e){var t=Wm(this),r=Jm(t);return t[0==r?0:r-1]=e}}),Vs("lastItem")),x),Qm=wn,Zm=O,Vn=(r&&(lm(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=Qm(this),e=Zm(e);return 0==e?0:e-1}}),No("lastIndex")),e),eg=mn,tg=O,rg=wn,ng=ap,ig=yn("Map"),sl=ig.prototype,og=Vn(sl.forEach),sg=Vn(sl.has),ag=Vn(sl.set),ug=Vn([].push),su=x;R({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=rg(this),i=tg(n),o=ng(n,0),s=new ig,a=null!=e?eg(e):function(e){return e},u=0;u<i;u++)r=a(t=n[u]),sg(s,r)||ag(s,r,t);return og(s,function(e){ug(o,e)}),o}}),su("uniqueBy");kE.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},kE.prototype.refresh=function(){this.stop(),this.start()},kE.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var cg,lg,fg,pg,dg,hg=kE,yg=(xE.prototype.start=function(){this.started=!0},xE.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},xE.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},xE.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},xE.prototype.close=function(){this.stop()},xE),vg=(CE.prototype.isClientError=function(e){return!!(e&&400<=e.statusCode&&e.statusCode<500)},CE.prototype.drainRepository=function(o){var e=this;return new Promise(function(i){return le(e,void 0,void 0,function(){var t,r,n=this;return fe(this,function(e){switch(e.label){case 0:return[4,null==(r=this.repository)?void 0:r.read()];case 1:return(t=e.sent())&&0!==t.length?o?this.eventDispatcher.dispatchXhrOrBeacon(t,function(){var e;i(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?i(null==(e=n.repository)?void 0:e.delete(t)):i()}):this.eventDispatcher.dispatch(t,function(){var e;i(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?i(null==(e=n.repository)?void 0:e.delete(t)):i()}):i(),[2]}})})})},CE.prototype.drainQueue=function(i,o){var e=this,s=i.map(function(e){return e.toDto()});return new Promise(function(n){return le(e,void 0,void 0,function(){var t,r=this;return fe(this,function(e){return 0===i.length?n():o?(null!=(t=this.repository)&&t.add(s),this.eventDispatcher.dispatchXhrOrBeacon(i,function(){var e;n(null==(e=r.repository)?void 0:e.delete(s))},function(e){r.isClientError(e)?n(null==(e=r.repository)?void 0:e.delete(s)):n()})):this.eventDispatcher.dispatch(i,function(){n()},function(e){r.isClientError(e)?n():n(null==(e=r.repository)?void 0:e.add(s))}),[2]})})})},CE.prototype.process=function(e){this.queue.enqueue(e)},CE.prototype.start=function(){return le(this,void 0,void 0,function(){return fe(this,function(e){return this.queue.start(),[2]})})},CE.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},CE.prototype.flush=function(){this.queue.flush()},CE.prototype.close=function(){this.stop()},CE),mg=(AE.isSessionEvent=function(e){return!!Er.isTrack(e)&&(e.event.key===AE.SESSION_START_EVENT_NAME||e.event.key===AE.SESSION_END_EVENT_NAME)},AE.prototype.onSessionStarted=function(e,t,r){this.track(AE.SESSION_START_EVENT_NAME,e,t,r)},AE.prototype.onSessionEnded=function(e,t,r){this.track(AE.SESSION_END_EVENT_NAME,e,t,r)},AE.prototype.track=function(e,t,r,n){e={key:e,properties:{sessionId:t}},r=this.hackleUserResolver.resolve(r),r=this.decorateSession(r,t);this.core.track(e,r,n)},AE.prototype.decorateSession=function(e,t){t=(new Je).add(We.SESSION,t).addIdentifiers(e.identifiers).build();return h(h({},e),{identifiers:t})},AE.SESSION_START_EVENT_NAME="$session_start",AE.SESSION_END_EVENT_NAME="$session_end",AE),gg=(NE.prototype.process=function(e){var t;mg.isSessionEvent(e)||this.sessionManager.startNewSessionIfNeeded(this.userManager.currentUser,e.timestamp),this.exposureEventDedupDeterminer.isDedupTarget(e)||(e=e,t=null===(t=this.sessionManager).currentSessionId||e.user.identifiers[We.SESSION]?e:e.copyWithUser(h(h({},e.user),{identifiers:h(h({},e.user.identifiers),((e={})[We.SESSION]=t.sessionId,e))})),this.delegate.process(t))},NE.prototype.close=function(){this.delegate.close()},NE.prototype.flush=function(){this.delegate.flush()},NE.prototype.start=function(){return this.delegate.start()},NE),Eg=(SE.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!Er.isExposure(e))return!1;Ve.isEquals(e.user.identifiers,null==(t=this.currentUser)?void 0:t.identifiers)||(this.currentUser=e.user,this.cache=new Map);var t=[e.experiment.id,e.variationId,e.variationKey,e.decisionReason].join("-"),e=(new Date).getTime(),r=this.cache.get(t);return void 0!==r&&e-r<=this.exposureEventDedupIntervalMillis||(this.cache.set(t,e),!1)},SE),wg=(IE.toEvent=function(e){var t;return{key:IE.EVENT_KEY,properties:{level:IE.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:IE._stacktrace(e)}}},IE._stacktrace=function(e){return a.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,IE.STACK_TRACK_LIMIT).join("\n")},IE.EVENT_KEY="$trace",IE.LEVEL_ERROR="error",IE.STACK_TRACK_LIMIT=30,IE),y=(RE.prototype.evaluate=function(e,t){if(!this.supports(e))throw new Error("Unsupported EvaluatorRequest ".concat(e.toString()));var r;if(t.contains(e))throw r=t.stack.map(function(e){return e.toString()}).join(" - "),new Error("Circular evaluation has occurred [".concat(r," - ").concat(e.toString(),"]"));t.addRequest(e);try{return this.evaluateInternal(e,t)}finally{t.removeRequest(e)}},RE),Tg=(ce(OE,dg=y),OE.prototype.supports=function(e){return void 0!==e.experiment},OE.prototype.evaluateInternal=function(e,t){return this.evaluationFlowFactory.getFlow(e.experiment.type).evaluate(e,t)},OE),bg=(_E.of=function(e,t,r,n,i,o){return o.returnValue=n,new _E(i,t.targetEvaluations,e.parameter,r,n,o)},_E.ofDefault=function(e,t,r,n){return this.of(e,t,void 0,e.defaultValue,r,n)},_E),_g=(ce(bE,pg=y),bE.prototype.supports=function(e){return void 0!==e.parameter},bE.prototype.evaluateInternal=function(e,t){var r={};if(r.requestValueType=e.requiredType,r.requestDefaultValue=e.defaultValue,a.isNullOrUndefined(e.user.identifiers[e.parameter.identifierType]))return bg.ofDefault(e,t,s.IDENTIFIER_NOT_FOUND,r);var n=this.targetRuleDeterminer.determineTargetRuleOrNull(e,t);return a.isNotNullOrUndefined(n)?(r.targetRuleKey=n.key,r.targetRuleName=n.name,this.evaluation(e,t,n.value,s.TARGET_RULE_MATCH,r)):this.evaluation(e,t,e.parameter.defaultValue,s.DEFAULT_RULE,r)},bE.prototype.evaluation=function(e,t,r,n,i){return"UNKNOWN"===e.requiredType||"NULL"!==e.requiredType&&typeof e.defaultValue!=typeof r.rawValue?bg.ofDefault(e,t,s.TYPE_MISMATCH,i):bg.of(e,t,r.id,r.rawValue,n,i)},bE),Og=(TE.prototype.with=function(e){return new TE(e,this.targetEvaluations,this.experiment,this.variationId,this.variationKey,this.config)},TE.of=function(e,t,r,n){var i=this.config(e.workspace,r);return new TE(n,t.targetEvaluations,e.experiment,r.id,r.key,i)},TE.ofDefault=function(e,t,r){var n=e.experiment._getVariationByKeyOrNull(e.defaultVariationKey);return a.isNotNullOrUndefined(n)?this.of(e,t,n,r):new TE(r,t.targetEvaluations,e.experiment,void 0,e.defaultVariationKey,void 0)},TE.config=function(e,t){if(!a.isNullOrUndefined(t.parameterConfigurationId))return a.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},TE),Rg=(wE.prototype.isEquals=function(e){return this.type===e.type&&this.id===e.id},wE),Ig=(EE.create=function(){return new EE},Object.defineProperty(EE.prototype,"stack",{get:function(){return Array.from(this._stack)},enumerable:!1,configurable:!0}),Object.defineProperty(EE.prototype,"targetEvaluations",{get:function(){return Array.from(this._targetEvaluations)},enumerable:!1,configurable:!0}),EE.prototype.contains=function(t){return this._stack.some(function(e){return e.key.isEquals(t.key)})},EE.prototype.addRequest=function(e){this._stack.push(e)},EE.prototype.removeRequest=function(e){e=this._stack.indexOf(e,0);-1<e&&this._stack.splice(e,1)},EE.prototype.get=function(t){return this._targetEvaluations.find(function(e){return e instanceof Og&&e.experiment.id===t.id})},EE.prototype.addEvaluation=function(e){this._targetEvaluations.push(e)},EE),Sg=(gE.of=function(e,t,r,n){return new gE(e,t,r,n)},gE.by=function(e,t){return new gE(e.workspace,e.user,t,"A")},gE.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.experiment.type,", key=").concat(this.experiment.key,")")},gE),Ng=(mE.of=function(e,t,r,n,i){return new mE(e,t,r,n,i)},mE.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.key.type,", key=").concat(this.parameter.key,")")},mE),Ag=(vE.asString=function(e){switch(typeof e){case"string":return e;case"number":return e.toString();default:return}},vE.asNumber=function(e){switch(typeof e){case"number":return this.asActualNumber(e);case"string":return this.asActualNumber(Number(e));default:return}},vE.asActualNumber=function(e){return!isNaN(e)&&isFinite(e)?e:void 0},vE),Cg=(yE.prototype.getVariation=function(e,t){if(0!==this.storages.length)for(var r=0,n=this.storages;r<n.length;r++){var i=n[r].getVariation(e,t);if(void 0!==i)return i}},yE),xg=(hE.prototype.getVariation=function(e,t){var r=this.get(e);if(r)return e._getVariationByIdOrNull(r)},hE.prototype.get=function(e){e=this.listStorage.getItem(e.id.toString());return Ag.asNumber(e)},hE.prototype.getAll=function(){var r=new Map;return this.listStorage.entries().forEach(function(e){var t=e[0],e=e[1],t=Ag.asNumber(t),e=Ag.asNumber(e);a.isNullOrUndefined(t)||t<0||a.isNullOrUndefined(e)||t<0||r.set(t,e)}),r},hE.prototype.set=function(e,t){this.listStorage.setItem(e.id.toString(),t.toString())},hE.prototype.remove=function(e){this.listStorage.removeItem(e.id.toString())},hE.prototype.clear=function(){this.listStorage.clear()},hE),kg=(dE.prototype.add=function(e){this.evaluators.push(e)},dE.prototype.evaluate=function(t,e){var r=this.evaluators.find(function(e){return e.supports(t)});if(a.isNullOrUndefined(r))throw new Error("Unsupported EvaluatorRequest [".concat(t.toString(),"]"));return r.evaluate(t,e)},dE),Pg=(pE.prototype.matches=function(t,r,e){var n=this;return e.conditions.every(function(e){return n._matches(t,r,e)})},pE.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(r.key.type).matches(e,t,r)},pE),Ug=(fE.prototype.matches=function(e,t){var r=this.valueMatcherFactory.getMatcher(t.valueType),n=this.operatorMatcherFactory.getMatcher(t.operator),e=this.userValueMatches(e,t,r,n);return this.typeMatches(t.type,e)},fE.prototype.userValueMatches=function(e,t,r,n){return Array.isArray(e)?this.arrayMatches(e,t,r,n):this.singleMatches(e,t,r,n)},fE.prototype.singleMatches=function(t,e,r,n){return e.values.some(function(e){return r.matches(n,t,e)})},fE.prototype.arrayMatches=function(e,t,r,n){var i=this;return e.some(function(e){return i.singleMatches(e,t,r,n)})},fE.prototype.typeMatches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},fE),m=(lE.prototype.booleanMatches=function(e,t){return e===t},lE.prototype.numberMatches=function(e,t){return e===t},lE.prototype.stringMatches=function(e,t){return e===t},lE.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},lE),ai=(cE.prototype.booleanMatches=function(e,t){return!1},cE.prototype.numberMatches=function(e,t){return!1},cE.prototype.stringMatches=function(e,t){return e.includes(t)},cE.prototype.versionMatches=function(e,t){return!1},cE),ro=(uE.prototype.booleanMatches=function(e,t){return!1},uE.prototype.numberMatches=function(e,t){return!1},uE.prototype.stringMatches=function(e,t){return e.startsWith(t)},uE.prototype.versionMatches=function(e,t){return!1},uE),N=(aE.prototype.booleanMatches=function(e,t){return!1},aE.prototype.numberMatches=function(e,t){return!1},aE.prototype.stringMatches=function(e,t){return e.endsWith(t)},aE.prototype.versionMatches=function(e,t){return!1},aE),A=(sE.prototype.booleanMatches=function(e,t){return!1},sE.prototype.numberMatches=function(e,t){return t<e},sE.prototype.stringMatches=function(e,t){return t<e},sE.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},sE),Ml=(oE.prototype.booleanMatches=function(e,t){return!1},oE.prototype.numberMatches=function(e,t){return t<=e},oE.prototype.stringMatches=function(e,t){return t<=e},oE.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},oE),Ei=(iE.prototype.booleanMatches=function(e,t){return!1},iE.prototype.numberMatches=function(e,t){return e<t},iE.prototype.stringMatches=function(e,t){return e<t},iE.prototype.versionMatches=function(e,t){return e.isLessThan(t)},iE),d=(nE.prototype.booleanMatches=function(e,t){return!1},nE.prototype.numberMatches=function(e,t){return e<=t},nE.prototype.stringMatches=function(e,t){return e<=t},nE.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},nE),Mg=(rE.prototype.getMatcher=function(e){switch(e){case"IN":return rE.IN_MATCHER;case"CONTAINS":return rE.CONTAINS_MATCHER;case"STARTS_WITH":return rE.STARTS_WITH_MATCHER;case"ENDS_WITH":return rE.ENDS_WITH_MATCHER;case"GT":return rE.GT_MATCHER;case"GTE":return rE.GTE_MATCHER;case"LT":return rE.LT_MATCHER;case"LTE":return rE.LTE_MATCHER}},rE.IN_MATCHER=new m,rE.CONTAINS_MATCHER=new ai,rE.STARTS_WITH_MATCHER=new ro,rE.ENDS_WITH_MATCHER=new N,rE.GT_MATCHER=new A,rE.GTE_MATCHER=new Ml,rE.LT_MATCHER=new Ei,rE.LTE_MATCHER=new d,rE),Dg=(tE.prototype.matches=function(e,t,r){t=Ag.asString(t),r=Ag.asString(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.stringMatches(t,r)},tE),lu=(eE.prototype.matches=function(e,t,r){t=Ag.asNumber(t),r=Ag.asNumber(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.numberMatches(t,r)},eE),To=(Z0.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},Z0),p=(Q0.prototype.matches=function(e,t,r){t=dt.tryParse(t),r=dt.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},Q0),Hs=(J0.prototype.matches=function(e,t,r){return!1},J0),Lg=(W0.prototype.getMatcher=function(e){switch(e){case"STRING":case"JSON":return W0.STRING_MATCHER;case"NUMBER":return W0.NUMBER_MATCHER;case"BOOLEAN":return W0.BOOLEAN_MATCHER;case"VERSION":return W0.VERSION_MATCHER;case"NULL":case"UNKNOWN":return W0.NULL_MATCHER}},W0.STRING_MATCHER=new Dg,W0.NUMBER_MATCHER=new lu,W0.BOOLEAN_MATCHER=new To,W0.VERSION_MATCHER=new p,W0.NULL_MATCHER=new Hs,W0),Fg=(X0.prototype.matches=function(e,t,r){e=this.userValueResolver.resolveOrNull(e.user,r.key);return!a.isNullOrUndefined(e)&&this.valueOperatorMatcher.matches(e,r.match)},X0),jg=($0.prototype.resolveOrNull=function(e,t){switch(t.type){case"USER_ID":return e.identifiers[t.name];case"USER_PROPERTY":return e.properties[t.name];case"HACKLE_PROPERTY":return e.hackleProperties[t.name];case"SEGMENT":case"AB_TEST":case"FEATURE_FLAG":throw new Error("Unsupported TargetKeyType [".concat(t.type,"]"))}},$0),Vg=(Y0.prototype.matches=function(t,r,e){var n=this;if("SEGMENT"!=e.key.type)throw new Error("Unsupported TargetKeyType [".concat(e.key.type,"]"));var i=e.match.values.some(function(e){return n._matches(t,r,e)});switch(e.match.type){case"MATCH":return i;case"NOT_MATCH":return!i}},Y0.prototype._matches=function(e,t,r){if("string"!=typeof r)throw new Error("SegmentKey[".concat(r,"]"));var n=e.workspace.getSegmentOrNull(r);if(n)return this.segmentMatcher.matches(e,t,n);throw new Error("Segment[".concat(r,"]"))},Y0),Hg=(q0.prototype.matches=function(t,r,e){var n=this;return e.targets.some(function(e){return n._matches(t,r,e)})},q0.prototype._matches=function(t,r,e){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(t,r,e)})},q0),Kg=(G0.prototype.matches=function(e,t,r){switch(r.key.type){case"AB_TEST":return this.abTestMatcher.matches(e,t,r);case"FEATURE_FLAG":return this.featureFlagMatcher.matches(e,t,r);case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":case"SEGMENT":throw new Error("Unsupported TargetKeyType [".concat(r.key.type,"]"))}},G0),Hn=(B0.prototype.matches=function(e,t,r){var n=a.requiredNotNullOrUndefined(Ag.asNumber(r.key.name),function(){return"Invalid key [".concat(r.key.type,", ").concat(r.key.name,"]")}),n=this.experiment(e,n);if(a.isNullOrUndefined(n))return!1;var i=null!=(i=t.get(n))?i:this.evaluate(e,t,n);return this.evaluationMatches(i,r)},B0.prototype.evaluate=function(e,t,r){r=Sg.by(e,r),r=this.evaluator.evaluate(r,t),e=this.resolve(e,r);return t.addEvaluation(e),e},B0),zg=(ce(z0,fg=Hn),z0.prototype.experiment=function(e,t){return e.workspace.getExperimentOrNull(t)},z0.prototype.resolve=function(e,t){return e instanceof Sg&&t.reason===s.TRAFFIC_ALLOCATED?t.with(s.TRAFFIC_ALLOCATED_BY_TARGETING):t},z0.prototype.evaluationMatches=function(e,t){return!!z0.AB_TEST_MATCHED_REASONS.includes(e.reason)&&this.valueOperatorMatcher.matches(e.variationKey,t.match)},z0.AB_TEST_MATCHED_REASONS=[s.OVERRIDDEN,s.TRAFFIC_ALLOCATED,s.EXPERIMENT_COMPLETED,s.TRAFFIC_ALLOCATED_BY_TARGETING],z0),Bg=(ce(K0,lg=Hn),K0.prototype.experiment=function(e,t){return e.workspace.getFeatureFlagOrNull(t)},K0.prototype.resolve=function(e,t){return t},K0.prototype.evaluationMatches=function(e,t){e="A"!==e.variationKey;return this.valueOperatorMatcher.matches(e,t.match)},K0),Gg=(H0.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return this.userConditionMatcher;case"SEGMENT":return this.segmentConditionMatcher;case"AB_TEST":case"FEATURE_FLAG":return this.experimentConditionMatcher}},H0),qg=(V0.prototype.resolveOrNull=function(e,t,r){switch(r.type){case"VARIATION":return this.resolveVariation(e,r);case"BUCKET":return this.resolveBucket(e,r)}},V0.prototype.resolveVariation=function(e,t){return e.experiment._getVariationByIdOrNull(t.variationId)},V0.prototype.resolveBucket=function(e,t){var t=e.workspace.getBucketOrNull(t.bucketId),r=e.user.identifiers[e.experiment.identifierType];if(r){t=this.bucketer.bucketing(t,r);if(t)return e.experiment._getVariationByIdOrNull(t.variationId)}},V0),Yg={murmurhash3_x86_32:function(e,t,r,n){for(var i,o=-4&(n=void 0===n?e.length:n),s=t,a=0;a<o;a+=4)i=255&e.charCodeAt(a)|(255&e.charCodeAt(a+1))<<8|(255&e.charCodeAt(a+2))<<16|(255&e.charCodeAt(a+3))<<24,i=(131071&(i=this.mul32(i,3432918353)))<<15|i>>>17,s=5*((524287&(s^=i=this.mul32(i,461845907)))<<13|s>>>19)+3864292196|0;switch(i=0,n%4){case 3:i=(255&e.charCodeAt(2+o))<<16;case 2:i|=(255&e.charCodeAt(1+o))<<8;case 1:i|=255&e.charCodeAt(o),i=(131071&(i=this.mul32(i,3432918353)))<<15|i>>>17,s^=i=this.mul32(i,461845907)}return s=this.mul32(s=(s^=n)^s>>>16,2246822507),(s=this.mul32(s^=s>>>13,3266489909))^s>>>16},mul32:function(e,t){var r=65535&t;return((t-r)*e|0)+(r*e|0)|0}},$g=(j0.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},j0.prototype.calculateSlotNumber=function(e,t,r){r=Yg.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},j0),Xg=(F0.prototype.evaluate=function(e,t){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,this.nextFlow):Og.ofDefault(e,t,s.TRAFFIC_NOT_ALLOCATED)},F0.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new F0,n=0,i=e.reverse();n<i.length;n++)r=new F0(i[n],r);return r},F0),Wg=(L0.prototype.evaluate=function(e,t,r){var n=this.overrideResolver.resolveOrNull(e,t);if(!n)return r.evaluate(e,t);switch(e.experiment.type){case"AB_TEST":return Og.of(e,t,n,s.OVERRIDDEN);case"FEATURE_FLAG":return Og.of(e,t,n,s.INDIVIDUAL_TARGET_MATCH)}},L0),Jg=(D0.prototype.evaluate=function(e,t,r){return"DRAFT"===e.experiment.status?Og.ofDefault(e,t,s.EXPERIMENT_DRAFT):r.evaluate(e,t)},D0),Qg=(M0.prototype.evaluate=function(e,t,r){if("PAUSED"!==e.experiment.status)return r.evaluate(e,t);switch(e.experiment.type){case"AB_TEST":return Og.ofDefault(e,t,s.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return Og.ofDefault(e,t,s.FEATURE_FLAG_INACTIVE)}},M0),Zg=(U0.prototype.evaluate=function(e,t,r){if("COMPLETED"!==e.experiment.status)return r.evaluate(e,t);r=e.experiment._winnerVariationOrNull();if(r)return Og.of(e,t,r,s.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(e.experiment.id,"]"))},U0),e0=(P0.prototype.evaluate=function(e,t,r){if("AB_TEST"!==e.experiment.type)throw new Error("experiment type must be AB_TEST [".concat(e.experiment.id,"]"));return this.experimentTargetDeterminer.isUserInExperimentTarget(e,t)?r.evaluate(e,t):Og.ofDefault(e,t,s.NOT_IN_EXPERIMENT_TARGET)},P0),t0=(k0.prototype.evaluate=function(e,t,r){if("RUNNING"!==e.experiment.status)throw new Error("experiment status must be RUNNING [".concat(e.experiment.id,"]"));if("AB_TEST"!==e.experiment.type)throw new Error("experiment type must be AB_TEST [".concat(e.experiment.id,"]"));var n=this.actionResolver.resolveOrNull(e,t,e.experiment.defaultRule);return n?n.isDropped?Og.ofDefault(e,t,s.VARIATION_DROPPED):Og.of(e,t,n,s.TRAFFIC_ALLOCATED):Og.ofDefault(e,t,s.TRAFFIC_NOT_ALLOCATED)},k0),r0=(x0.prototype.evaluate=function(e,t,r){if("RUNNING"!==e.experiment.status)throw new Error("experiment status must be RUNNING [".concat(e.experiment.id,"]"));if("FEATURE_FLAG"!==e.experiment.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(e.experiment.id,"]"));if(!e.user.identifiers[e.experiment.identifierType])return r.evaluate(e,t);var n=this.targetRuleDeterminer.determineTargetRuleOrNull(e,t);if(!n)return r.evaluate(e,t);r=this.actionResolver.resolveOrNull(e,t,n.action);if(r)return Og.of(e,t,r,s.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(e.experiment.id,"]"))},x0),n0=(C0.prototype.evaluate=function(e,t,r){if("RUNNING"!==e.experiment.status)throw new Error("experiment status must be RUNNING [".concat(e.experiment.id,"]"));if("FEATURE_FLAG"!==e.experiment.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(e.experiment.id,"]"));if(!e.user.identifiers[e.experiment.identifierType])return Og.ofDefault(e,t,s.DEFAULT_RULE);var n=this.actionResolver.resolveOrNull(e,t,e.experiment.defaultRule);if(n)return Og.of(e,t,n,s.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(e.experiment.id,"]"))},C0),i0=(A0.prototype.evaluate=function(e,t,r){var n=e.experiment.containerId;if(!n)return r.evaluate(e,t);var i=e.workspace.getContainerOrNull(n);if(i)return this.containerResolver.isUserInContainerGroup(e,t,i)?r.evaluate(e,t):Og.ofDefault(e,t,s.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("container[".concat(n,"]"))},A0),o0=(N0.prototype.evaluate=function(e,t,r){return e.user.identifiers[e.experiment.identifierType]?r.evaluate(e,t):Og.ofDefault(e,t,s.IDENTIFIER_NOT_FOUND)},N0),s0=(S0.prototype.isUserInExperimentTarget=function(t,r){var n=this;return 0===t.experiment.targetAudiences.length||t.experiment.targetAudiences.some(function(e){return n.targetMatcher.matches(t,r,e)})},S0),a0=(I0.prototype.determineTargetRuleOrNull=function(t,r){var n=this;return t.experiment.targetRules.find(function(e){return n.targetMatcher.matches(t,r,e.target)})},I0),u0=(R0.prototype.resolveOrNull=function(e,t){var r;return null!=(r=null!=(r=this.resolveManualOverride(e))?r:this._resolveUserOverride(e))?r:this._resolveSegmentOverride(e,t)},R0.prototype.resolveManualOverride=function(e){return this.manualOverrideStorage.getVariation(e.experiment,e.user)},R0.prototype._resolveUserOverride=function(e){var t=e.experiment,e=e.user.identifiers[t.identifierType];if(e){e=t.userOverrides.get(e);if(e)return t._getVariationByIdOrNull(e)}},R0.prototype._resolveSegmentOverride=function(t,r){var n=this,e=t.experiment.segmentOverrides.find(function(e){return n.targetMatcher.matches(t,r,e.target)});if(e)return this.actionResolver.resolveOrNull(t,r,e.action)},R0),c0=(O0.prototype.isUserInContainerGroup=function(e,t,r){var n=e.user.identifiers[e.experiment.identifierType];if(a.isNullOrUndefined(n))return!1;var i=e.workspace.getBucketOrNull(r.bucketId);if(a.isNullOrUndefined(i))throw new Error("Bucket[".concat(r.bucketId,"]"));i=this.bucketer.bucketing(i,n);if(a.isNullOrUndefined(i))return!1;n=r.getGroupOrNull(i.variationId);if(a.isNullOrUndefined(n))throw new Error("ContainerGroup[".concat(i.variationId,"]"));return n.experiments.includes(e.experiment.id)},O0),l0=(_0.prototype.determineTargetRuleOrNull=function(t,r){var n=this;return t.parameter.targetRules.find(function(e){return n.matches(t,r,e)})},_0.prototype.matches=function(e,t,r){if(!this.targetMatcher.matches(e,t,r.target))return!1;t=e.user.identifiers[e.parameter.identifierType];if(a.isNullOrUndefined(t))return!1;e=e.workspace.getBucketOrNull(r.bucketId);if(a.isNullOrUndefined(e))throw new Error("bucket[".concat(r.bucketId,"]"));return a.isNotNullOrUndefined(this.bucketer.bucketing(e,t))},_0),f0=(b0.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},b0),p0=(T0.prototype.create=function(r,e){var n=this,i=this.clock.currentMillis(),o=new Array,t=this.createEvent(r,e,i,{});return o.push(t),e.targetEvaluations.forEach(function(e){var t;(t={})[T0.ROOT_TYPE]=r.key.type,t[T0.ROOT_ID]=r.key.id;e=n.createEvent(r,e,i,t);o.push(e)}),o},T0.prototype.createEvent=function(e,t,r,n){var i;if(t instanceof Og)return n[T0.CONFIG_ID_PROPERTY_KEY]=null==(i=t.config)?void 0:i.id,Er.exposure(e.user,t,n,r);if(t instanceof bg)return Er.remoteConfig(e.user,t,h(h({},n),t.properties),r);throw new Error("Unsupported Evaluation [".concat(typeof t,"]"))},T0.ROOT_TYPE="$targetingRootType",T0.ROOT_ID="$targetingRootId",T0.CONFIG_ID_PROPERTY_KEY="$parameterConfigurationId",T0),d0=de.log,h0=(w0.create=function(e,t,r){var n=new kg,r=new Cg(r),r=new f0(n,r),i=new Tg(r),r=new _g(r.remoteConfigParameterTargetRuleDeterminer);return n.add(i),n.add(r),new w0(i,r,e,new p0(Ot.instance),t,new y0)},w0.prototype.experiment=function(e,t,r){var n=this;if(!e)return d0.error("experimentKey must not be empty"),Ge.of(r,s.INVALID_INPUT);var i=this.workspaceFetcher.get();if(!i)return d0.warn("SDK not ready."),Ge.of(r,s.SDK_NOT_READY);e=i.getExperimentOrNull(e);if(!e)return d0.warn("Experiment does not exist."),Ge.of(r,s.EXPERIMENT_NOT_FOUND);i=Sg.of(i,t,e,r),t=this.experimentInternal(i),e=t[0],r=t[1];return this.eventFactory.create(i,e).forEach(function(e){return n.eventProcessor.process(e)}),r},w0.prototype.experiments=function(r){var n=this,i=new Kt(function(e,t){return e.id===t.id}),o=this.workspaceFetcher.get();return o&&o.getExperiments().forEach(function(e){var t=Sg.of(o,r,e,"A"),t=n.experimentInternal(t),t=(t[0],t[1]);i.add(e,t)}),i},w0.prototype.experimentInternal=function(e){var e=this.experimentEvaluator.evaluate(e,Ig.create()),t=null!=(t=e.config)?t:new Ye;return[e,Ge.of(e.variationKey,e.reason,t)]},w0.prototype.featureFlag=function(e,t){var r=this;if(!e)return d0.error("featureKey must not be empty"),qe.off(s.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return d0.warn("SDK not ready."),qe.off(s.SDK_NOT_READY);e=n.getFeatureFlagOrNull(e);if(!e)return d0.warn("FeatureFlag does not exist."),qe.off(s.FEATURE_FLAG_NOT_FOUND);n=Sg.of(n,t,e,"A"),t=this.featureFlagInternal(n),e=t[0],t=t[1];return this.eventFactory.create(n,e).forEach(function(e){return r.eventProcessor.process(e)}),t},w0.prototype.featureFlags=function(r){var n=this,i=new Kt(function(e,t){return e.id===t.id}),o=this.workspaceFetcher.get();return o&&o.getFeatureFlags().forEach(function(e){var t=Sg.of(o,r,e,"A"),t=n.featureFlagInternal(t),t=(t[0],t[1]);i.add(e,t)}),i},w0.prototype.featureFlagInternal=function(e){var e=this.experimentEvaluator.evaluate(e,Ig.create()),t=null!=(t=e.config)?t:new Ye;return[e,"A"===e.variationKey?qe.off(e.reason,t):qe.on(e.reason,t)]},w0.prototype.track=function(e,t,r){var n;void 0===r&&(r=(new Date).getTime()),e?"object"==typeof e?"object"!=typeof e||e.key&&"string"==typeof e.key?(n=(null==(n=this.workspaceFetcher.get())?void 0:n.getEventTypeOrNull(e.key))||new Re(0,e.key),this.eventProcessor.process(Er.track(n,e,t,r))):d0.warn("Event key must be not null. or event key must be string type."):d0.warn("Event must be event type."):d0.warn("event must not be null.")},w0.prototype.trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=wg.toEvent(e),this.flush(),this.track(e,t),this.flush())},w0.prototype.flush=function(){this.eventProcessor.flush()},w0.prototype.remoteConfig=function(e,t,r,n){var i=this,o=this.workspaceFetcher.get();if(a.isNullOrUndefined(o))return d0.warn("SDK not ready."),Be.of(n,s.SDK_NOT_READY);e=o.getRemoteConfigParameterOrNull(e);if(a.isNullOrUndefined(e))return d0.warn("Remote config parameter does not exist."),Be.of(n,s.REMOTE_CONFIG_PARAMETER_NOT_FOUND);o=Ng.of(o,t,e,r,n),t=this.remoteConfigEvaluator.evaluate(o,Ig.create());return this.eventFactory.create(o,t).forEach(function(e){return i.eventProcessor.process(e)}),Be.of(t.value,t.reason)},w0.prototype.onReady=function(e,t){this.onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},w0.prototype.onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(d0.debug("Start HackleClient initializing"),new Promise(function(e){t=e})),n=setTimeout(function(){t({success:!1})},e);return this.readyPromise.then(function(){clearTimeout(n),t({success:!0})},function(e){clearTimeout(n),t({success:!1,error:e})}),Promise.race([this.readyPromise,r]).then(function(e){return e.success?d0.debug("HackleClient onInitialized Success"):e.error instanceof Error?d0.error("HackleClient onInitialized Failed. ".concat(e.error.message)):d0.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},w0.prototype.close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},w0),y0=(E0.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},E0.prototype._isSameError=function(e,t){return!a.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},E0),v0=(g0.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},g0.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},g0),m0=null;function g0(){this._installed=[],this._installations={onerror:PE,onunhandledrejection:UE}}function E0(){}function w0(e,t,r,n,i,o){this.experimentEvaluator=e,this.remoteConfigEvaluator=t,this.workspaceFetcher=r,this.eventFactory=n,this.eventProcessor=i,this.errorDedupDeterminer=o,this.workspaceFetcher.start(),this.eventProcessor.start(),this.readyPromise=this.workspaceFetcher.onReady().then(function(){return{success:!0}},function(e){return{success:!1,error:e}})}function T0(e){this.clock=e}function b0(e,t){var r=new $g,e=new Pg(new Gg(e)),n=new qg(r),t=new u0(t,e,n),i=new c0(r);this.abTestFlow=Xg.of(new Wg(t),new o0,new i0(i),new e0(new s0(e)),new Jg,new Qg,new Zg,new t0(n)),this.featureFlagFlow=Xg.of(new Jg,new Qg,new Zg,new Wg(t),new o0,new r0(new a0(e),n),new n0(n)),this.remoteConfigParameterTargetRuleDeterminer=new l0(e,r)}function _0(e,t){this.targetMatcher=e,this.bucketer=t}function O0(e){this.bucketer=e}function R0(e,t,r){this.manualOverrideStorage=e,this.targetMatcher=t,this.actionResolver=r}function I0(e){this.targetMatcher=e}function S0(e){this.targetMatcher=e}function N0(){}function A0(e){this.containerResolver=e}function C0(e){this.actionResolver=e}function x0(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function k0(e){this.actionResolver=e}function P0(e){this.experimentTargetDeterminer=e}function U0(){}function M0(){}function D0(){}function L0(e){this.overrideResolver=e}function F0(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function j0(){}function V0(e){this.bucketer=e}function H0(e){var t=new Ug(new Lg,new Mg),r=new Fg(new jg,t);this.userConditionMatcher=r,this.segmentConditionMatcher=new Vg(new Hg(r)),this.experimentConditionMatcher=new Kg(new zg(e,t),new Bg(e,t))}function K0(e,t){return lg.call(this,e,t)||this}function z0(e,t){return fg.call(this,e,t)||this}function B0(e,t){this.evaluator=e,this.valueOperatorMatcher=t}function G0(e,t){this.abTestMatcher=e,this.featureFlagMatcher=t}function q0(e){this.userConditionMatcher=e}function Y0(e){this.segmentMatcher=e}function $0(){}function X0(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function W0(){}function J0(){}function Q0(){}function Z0(){}function eE(){}function tE(){}function rE(){}function nE(){}function iE(){}function oE(){}function sE(){}function aE(){}function uE(){}function cE(){}function lE(){}function fE(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function pE(e){this.conditionMatcherFactory=e}function dE(){this.evaluators=new Array}function hE(e){this.listStorage=e}function yE(e){this.storages=e}function vE(){}function mE(e,t,r,n,i){this.key=new Rg("REMOTE_CONFIG",r.id),this.workspace=e,this.user=t,this.parameter=r,this.requiredType=n,this.defaultValue=i}function gE(e,t,r,n){this.key=new Rg("EXPERIMENT",r.id),this.workspace=e,this.user=t,this.experiment=r,this.defaultVariationKey=n}function EE(){this._stack=[],this._targetEvaluations=[]}function wE(e,t){this.type=e,this.id=t}function TE(e,t,r,n,i,o){this.reason=e,this.targetEvaluations=t,this.experiment=r,this.variationId=n,this.variationKey=i,this.config=o}function bE(e){var t=pg.call(this)||this;return t.targetRuleDeterminer=e,t}function _E(e,t,r,n,i,o){this.reason=e,this.targetEvaluations=t,this.parameter=r,this.valueId=n,this.value=i,this.properties=o}function OE(e){var t=dg.call(this)||this;return t.evaluationFlowFactory=e,t}function RE(){}function IE(){}function SE(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function NE(e,t,r,n){this.delegate=e,this.exposureEventDedupDeterminer=t,this.sessionManager=r,this.userManager=n}function AE(e,t){this.hackleUserResolver=e,this.core=t}function CE(e,t,r,n){void 0===n&&(n=null),this.eventDispatcher=e,this.flushInterval=r,this.queue=new yg(this.drainQueue.bind(this),t,r),this.repository=n}function xE(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new hg({callback:this.flush.bind(this),timeout:r}),this.started=!1}function kE(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function PE(o,s){m0=window.onerror,window.onerror=function(e,t,r,n,i){a.isNotNullOrUndefined(i)&&o.trackException(i,s.resolveCurrentUser()),m0&&m0.apply(this,arguments)}}function UE(r,n){cg=window.onunhandledrejection,window.onunhandledrejection=function(e){var t;try{"reason"in e?t=e.reason:"detail"in e&&"reason"in e.detail&&(t=e.detail.reason)}catch(e){}t instanceof Error&&r.trackException(t,n.resolveCurrentUser()),cg&&cg.apply(this,arguments)}}function ME(e,t){return e.userId===t.userId&&e.deviceId===t.deviceId}QE.prototype.read=function(){var r=this;return new Promise(function(e){var t=r.storage.getItem(r.storageKey);t&&e(JSON.parse(t)),e([])})},QE.prototype.save=function(r){var n=this;return 0===r.length?this.clear():new Promise(function(e){var t=JSON.stringify(r.slice(-n.maxSize));n.storage.setItem(n.storageKey,t),e()})},QE.prototype.add=function(t){var r=this;return this.read().then(function(e){return r.save(e.concat(t).slice(-r.maxSize))})},QE.prototype.delete=function(r){var t=this;return this.read().then(function(e){e=e.filter(function(t){return r.findIndex(function(e){return e.insertId===t.insertId})<0});return t.save(e)})},QE.prototype.clear=function(){var t=this;return new Promise(function(e){localStorage.removeItem(t.storageKey),e()})};var DE=QE,LE=(JE.prototype.addListener=function(e){this.userListeners.push(e)},JE.prototype.initialize=function(){var e=this.storage.getItem("_hackle_did")||this.hackleDeviceId,t=this.storage.getItem("_hackle_uid")||void 0;this._currentUser={deviceId:e,userId:t}},Object.defineProperty(JE.prototype,"currentUser",{get:function(){return this._currentUser},enumerable:!1,configurable:!0}),JE.prototype.resolveCurrentOrNull=function(e){if(void 0===e)return this.currentUser;if("string"==typeof e)return this.setUser({id:e});e=Ie(e);return e?this.setUser(e):null},JE.prototype.setUser=function(e){var t=this._currentUser,r=ME(r=t,e=e)?h(h({},e),{properties:h(h({},r.properties),e.properties)}):e;return this._currentUser=r,ME(t,r)||(this.changeUser(t,r,(new Date).getTime()),this.saveUser(r)),r},JE.prototype.setUserId=function(e){e=h(h({},this._currentUser),{userId:e});return this.setUser(e)},JE.prototype.setDeviceId=function(e){e=h(h({},this._currentUser),{deviceId:e});return this.setUser(e)},JE.prototype.setUserProperty=function(e,t){var r,e=h(h({},this._currentUser),{properties:h(h({},this._currentUser.properties),((r={})[e]=t,r))});return this.setUser(e)},JE.prototype.setUserProperties=function(e){e=h(h({},this._currentUser),{properties:h(h({},this._currentUser.properties),e)});return this.setUser(e)},JE.prototype.resetUser=function(){return this.setUser(this.defaultUser)},JE.prototype.changeUser=function(t,r,n){this.userListeners.forEach(function(e){e.onUserUpdated(t,r,n)})},JE.prototype.saveUser=function(e){a.isNotNullOrUndefined(e.deviceId)?this.storage.setItem("_hackle_did",e.deviceId):this.storage.removeItem("_hackle_did"),a.isNotNullOrUndefined(e.userId)?this.storage.setItem("_hackle_uid",e.userId):this.storage.removeItem("_hackle_uid")},JE),FE=(Object.defineProperty(WE.prototype,"currentSessionId",{get:function(){return this._currentSessionId},enumerable:!1,configurable:!0}),Object.defineProperty(WE.prototype,"sessionId",{get:function(){var e;return null!=(e=this._currentSessionId)?e:WE.EMPTY_SESSION_ID},enumerable:!1,configurable:!0}),Object.defineProperty(WE.prototype,"lastEventTime",{get:function(){return this._lastEventTime},enumerable:!1,configurable:!0}),WE.prototype.addListener=function(e){this.sessionListeners.push(e)},WE.prototype.startNewSession=function(e,t){return this.endSession(e),this.newSession(e,t)},WE.prototype.startNewSessionIfNeeded=function(e,t){var r=this._lastEventTime;return null!==r&&null!==this._currentSessionId&&t-r<this.sessionTimeoutMillis?(this.updateLastEventTime(t),this._currentSessionId):this.startNewSession(e,t)},WE.prototype.updateLastEventTime=function(e){this._lastEventTime=e,this.storage.setItem("_hackle_last_event_ts","".concat(e))},WE.prototype.endSession=function(t){var r=this._currentSessionId,n=this._lastEventTime;null!==r&&null!==n&&this.sessionListeners.forEach(function(e){return e.onSessionEnded(r,t,n)})},WE.prototype.newSession=function(t,r){var n="".concat(r,".").concat(ae.v4().slice(0,8));return this.saveSession(n),this.updateLastEventTime(r),this.sessionListeners.forEach(function(e){e.onSessionStarted(n,t,r)}),n},WE.prototype.saveSession=function(e){this._currentSessionId=e,this.storage.setItem("_hackle_session_id",e)},WE.prototype.loadSession=function(){this._currentSessionId=this.storage.getItem("_hackle_session_id")},WE.prototype.loadLastEventTime=function(){var e=this.storage.getItem("_hackle_last_event_ts");null!==e&&0<(e=Number.parseFloat(e))&&(this._lastEventTime=e)},WE.prototype.onUserUpdated=function(e,t,r){this.endSession(e),this.newSession(t,r)},WE.EMPTY_SESSION_ID="0.ffffffff",WE),jE=(XE.postfix=function(e,t){return new XE(e,function(e){return"".concat(e).concat(t)})},XE.prototype.getItem=function(e){return this.delegate.getItem(this.transform(e))},XE.prototype.removeItem=function(e){this.delegate.removeItem(this.transform(e))},XE.prototype.setItem=function(e,t){this.delegate.setItem(this.transform(e),t)},XE),VE=($E.prototype.isEqualItem=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},$E.prototype.getRemainListSize=function(){try{return this.maxLength-JSON.stringify(this.getList()).length}catch(e){return 0}},$E.prototype.isAddableItem=function(e){try{return this.getRemainListSize()>JSON.stringify(e).length}catch(e){return!1}},$E.prototype.getVictimIndex=function(e){var t=this.getRemainListSize();try{var r=JSON.stringify(e),n=this.getList(),i=0;return n.findIndex(function(e){return(i+=JSON.stringify(e).length)+t>=r.length})}catch(e){return-1}},$E.prototype.getList=function(){try{var e=this.delegate.getItem(this.listKey);if(!e)return[];var t=JSON.parse(e);return Array.isArray(t)?t:[]}catch(e){return[]}},$E.prototype.entries=function(){return this.getList().flatMap(Object.entries)},$E.prototype.setItem=function(e,t){var r;try{this.removeItem(e);var n=this.getList(),i=((r={})[e]=t,r);if(!this.isAddableItem(i)){var o=this.getVictimIndex(i);if(o<0)return;n=n.slice(o+1)}var s=JSON.stringify(n.concat(i));this.delegate.setItem(this.listKey,s)}catch(e){}},$E.prototype.getItem=function(t){var r=this,e=this.getList().find(function(e){return r.isEqualItem(e,t)});if(e&&e[t])return e[t]},$E.prototype.removeItem=function(t){var r=this,e=this.getList();try{var n=e.filter(function(e){return!r.isEqualItem(e,t)}),i=JSON.stringify(n);this.delegate.setItem(this.listKey,i)}catch(t){}},$E.prototype.clear=function(){this.delegate.removeItem(this.listKey)},$E),HE=(YE.prototype.currentUser=function(){var e=this.userManager.currentUser;return this.userResolver.resolve(e)},YE.prototype.getAbTestDecisions=function(){return this.core.experiments(this.currentUser()).entries()},YE.prototype.getAbTestOverrides=function(){return this.abOverrideStorage.getAll()},YE.prototype.setAbTestOverride=function(e,t){this.abOverrideStorage.set(e,t),this.increment("AB_TEST","set")},YE.prototype.resetAbTestOverride=function(e){this.abOverrideStorage.remove(e),this.increment("AB_TEST","reset")},YE.prototype.resetAllAbTestOverride=function(){this.abOverrideStorage.clear(),this.increment("AB_TEST","reset.all")},YE.prototype.getFeatureFlagDecisions=function(){return this.core.featureFlags(this.currentUser()).entries()},YE.prototype.getFeatureFlagOverrides=function(){return this.ffOverrideStorage.getAll()},YE.prototype.setFeatureFlagOverride=function(e,t){this.ffOverrideStorage.set(e,t),this.increment("FEATURE_FLAG","set")},YE.prototype.resetFeatureFlagOverride=function(e){this.ffOverrideStorage.remove(e),this.increment("FEATURE_FLAG","reset")},YE.prototype.resetAllFeatureFlagOverride=function(){this.ffOverrideStorage.clear(),this.increment("FEATURE_FLAG","reset.all")},YE.prototype.increment=function(e,t){fr.counter("experiment.manual.override",{"experiment.type":e,operation:t}).increment()},YE),KE=(qE.serverFetch=function(e){return"".concat(e,"/api/v2/workspaces")},qE.clientFetch=function(e,t){return"".concat(e,"/api/v2/w/").concat(t,"/w")},qE.serverDispatch=function(e){return"".concat(e,"/api/v2/events")},qE.clientDispatch=function(e){return"".concat(e,"/api/v2/w/events")},qE.beaconDispatch=function(e,t){return"".concat(e,"/api/v2/w/").concat(t,"/events")},qE),zE=de.log,BE=null,GE={debug:!1,log_disabled:!1,auto_track_page_view:!0,pollingIntervalMillis:-1,exposureEventDedupIntervalMillis:-1,sessionTimeoutMillis:18e5,autoOpenDevTool:!1,sdkUrl:"https://client-sdk.hackle.io",eventUrl:"https://event.hackle.io",monitoringUrl:"https://monitoring.hackle.io",SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.14.1"};function qE(){}function YE(e,t,r,n,i){this.core=e,this.userManager=t,this.userResolver=r,this.abOverrideStorage=n,this.ffOverrideStorage=i}function $E(e,t,r){void 0===r&&(r=4096);var n=this;this.delegate=e,this.listKey=t,this.encodedListCharLen=6,this.resolveMaxLength=function(e){e-=n.encodedListCharLen;return e<0?0:e},this.maxLength=this.resolveMaxLength(r)}function XE(e,t){this.delegate=e,this.transform=t}function WE(e,t){this.sessionTimeoutMillis=e,this.storage=t,this.sessionListeners=[],this._currentSessionId=null,this._lastEventTime=null,this.loadSession(),this.loadLastEventTime()}function JE(e,t){this.storage=e,this.hackleDeviceId=t,this.userListeners=[],this.defaultUser={deviceId:this.hackleDeviceId},this._currentUser=this.defaultUser,this.initialize()}function QE(e,t,r){this.storage=e,this.storageKey=t,this.maxSize=r}function ZE(e,t){t=h(h({},GE),t);if(de.initCounter(function(e){return fr.counter("log",{level:e})}),t.log_disabled?de.setLogLevel(pe.DISABLE):t.debug&&de.setLogLevel(pe.DEBUG),zE.debug("sdkKey : "+e),e||zE.error("SDK Key must not be null"),BE)return zE.debug("use already exists hackleClient"),BE;var r=!1,n=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&zE.debug("support sendBeacon API"),new Lr(e,Fe,{dispatchUrl:KE.clientDispatch(t.eventUrl),beaconDispatchUrl:KE.beaconDispatch(t.eventUrl,e),useBeacon:r,headers:((n={})[ye]=t.SDK_NAME_HEADER,n["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,n)})),i=-1,i=(void 0!==t.pollingIntervalMillis&&"number"==typeof t.pollingIntervalMillis&&0<t.pollingIntervalMillis&&(i=Math.max(t.pollingIntervalMillis,3e4)),new Vr(e,Fe,{fetchUrl:KE.clientFetch(t.sdkUrl,e),updateInterval:i,headers:((i={})[ye]=t.SDK_NAME_HEADER,i["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,i)})),o=-1,s=(void 0!==t.exposureEventDedupIntervalMillis&&"number"==typeof t.exposureEventDedupIntervalMillis&&-1!==t.exposureEventDedupIntervalMillis&&(o=t.exposureEventDedupIntervalMillis<1e3||36e5<t.exposureEventDedupIntervalMillis?(zE.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis),new DE(window.localStorage,"".concat("hackle-repository-storage","_").concat(e),100)),a=new LE(jE.postfix(Br,"_".concat(e)),rn()),u=new FE(t.sessionTimeoutMillis,jE.postfix(Br,"_".concat(e.slice(8))));a.addListener(u);function c(){p.drainRepository()}var l,f,p=new vg(n,100,500,s),n=new Eg(o),s=new gg(p,n,u,a),o=new xg(new VE(Br,"".concat("hackle-manual-override_ab","_").concat(e.slice(0,8)))),n=new xg(new VE(Br,"".concat("hackle-manual-override_ff","_").concat(e.slice(0,8)))),i=h0.create(i,s,[o,n]),s=new qr(a),o=new HE(i,a,s,o,n),n=(null==(n=t.devTool)?void 0:n.userExplorer)&&"function"==typeof(null==(n=t.devTool)?void 0:n.userExplorer),n=t.devTool&&n?{manager:t.devTool,userExplorer:o}:void 0,d=new gr(i,s,u,a,n),o=new mg(s,i),o=(u.addListener(o),BE=d,t.auto_track_page_view&&(f=function(){return l.trackPageView({user:{id:rn()}})},(l=d).onReady(function(){function t(e){if("function"==typeof window.Event)return new Event(e);var t=!1,r=!1,n=void 0,i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t,r,n),i}f();try{history.pushState=(n=history.pushState,function(){try{var e=n.apply(this,arguments);return window.dispatchEvent(t("locationchange")),e}catch(e){if(e instanceof Error)zE.error(e);else try{zE.error(e)}catch(e){}}}),history.replaceState=(r=history.replaceState,function(){try{var e=r.apply(this,arguments);return window.dispatchEvent(t("locationchange")),e}catch(e){if(e instanceof Error)zE.error(e);else try{zE.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)zE.error(e);else try{zE.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{f()}catch(e){if(e instanceof Error)zE.error(e);else try{zE.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)zE.error(t);else try{zE.error(t)}catch(t){}}var r,n})),t.autoOpenDevTool&&(t.devTool?d.showUserExplorer():zE.error("DevTool is not provided")),(new v0).install(i,s),new pr(t.monitoringUrl,6e4,Fe,((n={})[ye]=t.SDK_NAME_HEADER,n["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,n["X-HACKLE-SDK-KEY"]=e,n),r));return document.addEventListener("visibilitychange",function(){document.hidden||c()}),window.addEventListener("pageshow",c),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){on(),u.updateLastEventTime((new Date).getTime()),d.close(),fr.globalRegistry.close()}),fr.addRegistry(o),d.onReady(function(){u.startNewSessionIfNeeded(a.currentUser,(new Date).getTime())}),d}var ew={createInstance:ZE,getUserId:rn,setUserId:nn,removeUserId:on,Logger:de},tw=(l.Bucket=t.Bucket=Oe,l.Container=t.Container=Qe,l.ContainerGroup=t.ContainerGroup=Ue,l.CoreVersion=t.CoreVersion=ht,l.Decision=t.Decision=Ge,l.DecisionReason=t.DecisionReason=s,l.EmptyHackleRemoteConfig=t.EmptyHackleRemoteConfig=oe,l.EmptyParameterConfig=t.EmptyParameterConfig=Ye,l.EventType=t.EventType=Re,l.Experiment=t.Experiment=$e,l.FeatureFlagDecision=t.FeatureFlagDecision=qe,l.IdentifierType=t.IdentifierType=We,l.IdentifiersBuilder=t.IdentifiersBuilder=Je,l.Logger=t.Logger=de,l.MATCH_OPERATORS=t.MATCH_OPERATORS=gt,l.MATCH_TYPES=t.MATCH_TYPES=vt,l.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=mt,l.MetaVersion=t.MetaVersion=yt,l.ParameterConfiguration=t.ParameterConfiguration=Ze,l.RemoteConfigDecision=t.RemoteConfigDecision=Be,l.RemoteConfigParameter=t.RemoteConfigParameter=Me,l.RemoteConfigParameterValue=t.RemoteConfigParameterValue=Le,l.RemoteConfigTargetRule=t.RemoteConfigTargetRule=De,l.SEGMENT_TYPES=t.SEGMENT_TYPES=Tt,l.Segment=t.Segment=Pe,l.Slot=t.Slot=Xe,l.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=Et,l.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=wt,l.Target=t.Target=Se,l.TargetAction=t.TargetAction=xe,l.TargetCondition=t.TargetCondition=Ne,l.TargetKey=t.TargetKey=Ae,l.TargetMatch=t.TargetMatch=Ce,l.TargetRule=t.TargetRule=ke,l.TargetingType=t.TargetingType=bt,l.Variation=t.Variation=_e,l.Version=t.Version=dt,se=t.createInstance=ZE,t.default=ew,l.getUserId=t.getUserId=rn,l.removeUserId=t.removeUserId=on,l.sanitizeUser=t.sanitizeUser=Ie,l.setUserId=t.setUserId=nn,function(e,t){return(tw=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])})(e,t)});var rw=function(){return(rw=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function nw(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}iw.prototype.on=function(e,t){this.listeners[e]=(this.listeners[e]||[]).concat(t)},iw.prototype.off=function(e,t){this.listeners[e]=(this.listeners[e]||[]).filter(function(e){return e!==t})},iw.prototype.emit=function(e,t){(this.listeners[e]||[]).forEach(function(e){e(t)})};I=iw;function iw(){this.listeners={}}sw.arePropertiesEqual=function(e,t){var r=sw.coerceUnknownToProperties(e),n=sw.coerceUnknownToProperties(t),e=Object.keys(r),t=Object.keys(n);return e.length===t.length&&e.every(function(e){return e in n&&r[e]===n[e]})},sw.coerceUnknownToProperties=function(e){return"object"==typeof e&&null!==e?e:{}};var ow=sw;function sw(){}uw.isUserEqual=function(e,t){return(null==e?void 0:e.id)===(null==t?void 0:t.id)&&(null==e?void 0:e.deviceId)===(null==t?void 0:t.deviceId)&&(null==e?void 0:e.userId)===(null==t?void 0:t.userId)&&ow.arePropertiesEqual(null==e?void 0:e.properties,null==t?void 0:t.properties)&&ow.arePropertiesEqual(null==e?void 0:e.identifiers,null==t?void 0:t.identifiers)};var aw=uw;function uw(){}var cw=function(n){var e=i,t=n;if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}function i(e,t){var r=n.call(this)||this;return r._currentUser=null,r.client=se(e,rw(rw({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.14.3"})),null!=t&&t.devTool&&null!=t&&t.autoOpenDevTool&&"undefined"!=typeof window&&r.showUserExplorer(),r}return tw(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r),i.prototype.getUser=function(){return this.client.getUser()},i.prototype.setUser=function(e){this.client.setUser(e),this.emitUpdatedUser(this.getUser())},i.prototype.setUserId=function(e){this.client.setUserId(e),this.emitUpdatedUser(this.getUser())},i.prototype.setDeviceId=function(e){this.client.setDeviceId(e),this.emitUpdatedUser(this.getUser())},i.prototype.setUserProperty=function(e,t){this.client.setUserProperty(e,t),this.emitUpdatedUser(this.getUser())},i.prototype.resetUser=function(){this.client.resetUser(),this.emitUpdatedUser(this.getUser())},i.prototype.variation=function(e,t,r){return this.client.variation(e,t||void 0,r)},i.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t||void 0,r)},i.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t||void 0)},i.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t||void 0)},i.prototype.track=function(e,t){this.client.track(e,t||void 0)},i.prototype.trackPageView=function(e){this.client.trackPageView(rw(rw({},e),{user:(null==e?void 0:e.user)||void 0}))},i.prototype.remoteConfig=function(e){return this.client.remoteConfig(e||void 0)},i.prototype.onReady=function(e,t){this.client.onReady(e,t)},i.prototype.onInitialized=function(e){return this.client.onInitialized(e)},i.prototype.emitUpdatedUser=function(e){aw.isUserEqual(this._currentUser,e)||this.emit("user-updated",e),this._currentUser=e},i.prototype.showUserExplorer=function(){this.client.showUserExplorer()},i.prototype.hideUserExplorer=function(){this.client.hideUserExplorer()},i}(I);var U={exports:{}},C={},lw=Object.getOwnPropertySymbols,fw=Object.prototype.hasOwnProperty,pw=Object.prototype.propertyIsEnumerable;var di=function(){try{if(!Object.assign)return;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},n)).join("")?void 0:1}catch(e){return}}()?Object.assign:function(e,t){for(var r,n=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var o in r=Object(arguments[i]))fw.call(r,o)&&(n[o]=r[o]);if(lw)for(var s=lw(r),a=0;a<s.length;a++)pw.call(r,s[a])&&(n[s[a]]=r[s[a]])}return n},dw=di,_="function"==typeof Symbol&&Symbol.for,hw=_?Symbol.for("react.element"):60103,yw=_?Symbol.for("react.portal"):60106,o=_?Symbol.for("react.fragment"):60107,vw=_?Symbol.for("react.strict_mode"):60108,du=_?Symbol.for("react.profiler"):60114,mw=_?Symbol.for("react.provider"):60109,gw=_?Symbol.for("react.context"):60110,Ew=_?Symbol.for("react.forward_ref"):60112,zn=_?Symbol.for("react.suspense"):60113,ww=_?Symbol.for("react.memo"):60115,Tw=_?Symbol.for("react.lazy"):60116,bw="function"==typeof Symbol&&Symbol.iterator;function _w(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ow={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rw={};function Iw(e,t,r){this.props=e,this.context=t,this.refs=Rw,this.updater=r||Ow}function Sw(){}function Nw(e,t,r){this.props=e,this.context=t,this.refs=Rw,this.updater=r||Ow}Iw.prototype.isReactComponent={},Iw.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(_w(85));this.updater.enqueueSetState(this,e,t,"setState")},Iw.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},Sw.prototype=Iw.prototype;var In=Nw.prototype=new Sw,Aw=(In.constructor=Nw,dw(In,Iw.prototype),In.isPureReactComponent=!0,{current:null}),Cw=Object.prototype.hasOwnProperty,xw={key:!0,ref:!0,__self:!0,__source:!0};function kw(e,t,r){var n,i={},o=null,s=null;if(null!=t)for(n in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)Cw.call(t,n)&&!xw.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(1===a)i.children=r;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(n in a=e.defaultProps)void 0===i[n]&&(i[n]=a[n]);return{$$typeof:hw,type:e,key:o,ref:s,props:i,_owner:Aw.current}}function Pw(e){return"object"==typeof e&&null!==e&&e.$$typeof===hw}var Uw=/\/+/g,Mw=[];function Dw(e,t,r,n){var i;return Mw.length?((i=Mw.pop()).result=e,i.keyPrefix=t,i.func=r,i.context=n,i.count=0,i):{result:e,keyPrefix:t,func:r,context:n,count:0}}function Lw(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,Mw.length<10&&Mw.push(e)}function Fw(e,t,r){return null==e?0:function e(t,r,n,i){var o=!1;if(null===(t="undefined"!=(a=typeof t)&&"boolean"!==a?t:null))o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case hw:case yw:o=!0}}if(o)return n(i,t,""===r?"."+jw(t,0):r),1;if(o=0,r=""===r?".":r+":",Array.isArray(t))for(var s=0;s<t.length;s++){var a,u=r+jw(a=t[s],s);o+=e(a,u,n,i)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=bw&&t[bw]||t["@@iterator"])?u:null))for(t=u.call(t),s=0;!(a=t.next()).done;)o+=e(a=a.value,u=r+jw(a,s++),n,i);else if("object"===a)throw n=""+t,Error(_w(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return o}(e,"",t,r)}function jw(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=e.key,r={"=":"=0",":":"=2"},"$"+(""+e).replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function Vw(e,t){e.func.call(e.context,t,e.count++)}function Hw(e,t,r){var n=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Kw(e,n,r,function(e){return e}):null!=e&&(Pw(e)&&(t=i+(!(i=e).key||t&&t.key===e.key?"":(""+e.key).replace(Uw,"$&/")+"/")+r,e={$$typeof:hw,type:i.type,key:t,ref:i.ref,props:i.props,_owner:i._owner}),n.push(e))}function Kw(e,t,r,n,i){var o="";Fw(e,Hw,t=Dw(t,o=null!=r?(""+r).replace(Uw,"$&/")+"/":o,n,i)),Lw(t)}var zw={current:null};function Bw(){var e=zw.current;if(null===e)throw Error(_w(321));return e}var Gw,qw,Yw,Pl={ReactCurrentDispatcher:zw,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Aw,IsSomeRendererActing:{current:!1},assign:dw},S=(C.Children={map:function(e,t,r){if(null==e)return e;var n=[];return Kw(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;Fw(e,Vw,t=Dw(null,null,t,r)),Lw(t)},count:function(e){return Fw(e,function(){return null},null)},toArray:function(e){var t=[];return Kw(e,t,null,function(e){return e}),t},only:function(e){if(Pw(e))return e;throw Error(_w(143))}},C.Component=Iw,C.Fragment=o,C.Profiler=du,C.PureComponent=Nw,C.StrictMode=vw,C.Suspense=zn,C.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pl,C.cloneElement=function(e,t,r){if(null==e)throw Error(_w(267,e));var n=dw({},e.props),i=e.key,o=e.ref,s=e._owner;if(null!=t)for(a in void 0!==t.ref&&(o=t.ref,s=Aw.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)Cw.call(t,a)&&!xw.hasOwnProperty(a)&&(n[a]=(void 0===t[a]&&void 0!==u?u:t)[a]);var a=arguments.length-2;if(1===a)n.children=r;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];n.children=u}return{$$typeof:hw,type:e.type,key:i,ref:o,props:n,_owner:s}},C.createContext=function(e,t){return(e={$$typeof:gw,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:mw,_context:e},e.Consumer=e},C.createElement=kw,C.createFactory=function(e){var t=kw.bind(null,e);return t.type=e,t},C.createRef=function(){return{current:null}},C.forwardRef=function(e){return{$$typeof:Ew,render:e}},C.isValidElement=Pw,C.lazy=function(e){return{$$typeof:Tw,_ctor:e,_status:-1,_result:null}},C.memo=function(e,t){return{$$typeof:ww,type:e,compare:void 0===t?null:t}},C.useCallback=function(e,t){return Bw().useCallback(e,t)},C.useContext=function(e,t){return Bw().useContext(e,t)},C.useDebugValue=function(){},C.useEffect=function(e,t){return Bw().useEffect(e,t)},C.useImperativeHandle=function(e,t,r){return Bw().useImperativeHandle(e,t,r)},C.useLayoutEffect=function(e,t){return Bw().useLayoutEffect(e,t)},C.useMemo=function(e,t){return Bw().useMemo(e,t)},C.useReducer=function(e,t,r){return Bw().useReducer(e,t,r)},C.useRef=function(e){return Bw().useRef(e)},C.useState=function(e){return Bw().useState(e)},C.version="16.14.0",{}),v=Function.call.bind(Object.prototype.hasOwnProperty),$w=function(){};function Xw(e,t,r,n,i){if("production"!==production)for(var o in e)if(Yw(e,o)){var s,a;try{if("function"!=typeof e[o])throw(a=Error((n||"React class")+": "+r+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.")).name="Invariant Violation",a;s=e[o](t,o,n,r,null,Gw)}catch(e){s=e}!s||s instanceof Error||$w((n||"React class")+": type specification of "+r+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in qw)&&(qw[s.message]=!0,o=i?i():"",$w("Failed "+r+" type: "+s.message+(null!=o?o:"")))}}if("production"!==production&&(Gw="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",qw={},Yw=v,$w=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),Xw.resetWarningCache=function(){"production"!==production&&(qw={})},"production"!==production){var Ww=di,Jw=Xw,P="function"==typeof Symbol&&Symbol.for,Qw=P?Symbol.for("react.element"):60103,Zw=P?Symbol.for("react.portal"):60106,e1=P?Symbol.for("react.fragment"):60107,t1=P?Symbol.for("react.strict_mode"):60108,r1=P?Symbol.for("react.profiler"):60114,n1=P?Symbol.for("react.provider"):60109,i1=P?Symbol.for("react.context"):60110,o1=P?Symbol.for("react.concurrent_mode"):60111,s1=P?Symbol.for("react.forward_ref"):60112,a1=P?Symbol.for("react.suspense"):60113,u1=P?Symbol.for("react.suspense_list"):60120,c1=P?Symbol.for("react.memo"):60115,l1=P?Symbol.for("react.lazy"):60116,f1=P?Symbol.for("react.block"):60121,p1=P?Symbol.for("react.fundamental"):60117,d1=P?Symbol.for("react.responder"):60118,h1=P?Symbol.for("react.scope"):60119,y1="function"==typeof Symbol&&Symbol.iterator,v1="@@iterator";function m1(e){if(null===e||"object"!=typeof e)return null;e=y1&&e[y1]||e[v1];return"function"==typeof e?e:null}var g1={current:null},E1={current:null},w1=/^(.*)[\\\/]/,T1=1;function b1(e){if(null==e)return null;if("number"==typeof e.tag&&M("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case e1:return"Fragment";case Zw:return"Portal";case r1:return"Profiler";case t1:return"StrictMode";case a1:return"Suspense";case u1:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case i1:return"Context.Consumer";case n1:return"Context.Provider";case s1:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case c1:return b1(e.type);case f1:return b1(e.render);case l1:r=(t=e)._status===T1?t._result:null;if(r)return b1(r)}var t,r;return null}var _1={},O1=null;function R1(e){O1=e}_1.getCurrentStack=null,_1.getStackAddendum=function(){var e,t,r,n,i,o="",s=(O1&&(e=b1(O1.type),r=O1._owner,o+=(e=e,t=O1._source,r=r&&b1(r.type),i="",t?(n=(s=t.fileName).replace(w1,""),i=" (at "+(n=/^index\./.test(n)&&(s=s.match(w1))&&(s=s[1])?s.replace(w1,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(i=" (created by "+r+")"),"\n in "+(e||"Unknown")+i)),_1.getCurrentStack);return s&&(o+=s()||""),o};var I1={ReactCurrentDispatcher:g1,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:E1,IsSomeRendererActing:{current:!1},assign:Ww};function S1(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];N1("warn",e,r)}function M(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];N1("error",e,r)}function N1(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=I1.ReactDebugCurrentFrame.getStackAddendum())&&(t+="%s",r=r.concat([n]));var n=r.map(function(e){return""+e});n.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,n);try{var i=0,o="Warning: "+t.replace(/%s/g,function(){return r[i++]});throw new Error(o)}catch(e){}}Ww(I1,{ReactDebugCurrentFrame:_1,ReactComponentTreeHook:{}});var A1={};function C1(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;A1[r]||(M("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),A1[r]=!0)}var x1={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){C1(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){C1(e,"replaceState")},enqueueSetState:function(e,t,r,n){C1(e,"setState")}},k1={};function P1(e,t,r){this.props=e,this.context=t,this.refs=k1,this.updater=r||x1}Object.freeze(k1),P1.prototype.isReactComponent={},P1.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},P1.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var U1,M1={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(U1 in M1)M1.hasOwnProperty(U1)&&!function(e,t){Object.defineProperty(P1.prototype,e,{get:function(){S1("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(U1,M1[U1]);function D1(){}function L1(e,t,r){this.props=e,this.context=t,this.refs=k1,this.updater=r||x1}D1.prototype=P1.prototype,(P=L1.prototype=new D1).constructor=L1,Ww(P,P1.prototype),P.isPureReactComponent=!0;var F1,j1,V1=Object.prototype.hasOwnProperty,H1={key:!0,ref:!0,__self:!0,__source:!0};function K1(e){if(V1.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function z1(e){if(V1.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var B1={},G1=function(e,t,r,n,i,o,s){e={$$typeof:Qw,type:e,key:t,ref:r,props:s,_owner:o,_store:{}};return Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(e,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(e,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e};function q1(e,t,r){var n,i={},o=null,s=null,a=null,u=null;if(null!=t)for(n in K1(t)&&(s=t.ref,"string"==typeof(c=t).ref&&E1.current&&c.__self&&E1.current.stateNode!==c.__self&&(f=b1(E1.current.type),B1[f]||(M('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',b1(E1.current.type),c.ref),B1[f]=!0))),z1(t)&&(o=""+t.key),a=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)V1.call(t,n)&&!H1.hasOwnProperty(n)&&(i[n]=t[n]);var c,l,f,p,d=arguments.length-2;if(1==d)i.children=r;else if(1<d){for(var h=Array(d),y=0;y<d;y++)h[y]=arguments[y+2];Object.freeze&&Object.freeze(h),i.children=h}if(e&&e.defaultProps){var v=e.defaultProps;for(n in v)void 0===i[n]&&(i[n]=v[n])}function m(){j1||(j1=!0,M("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",l))}function g(){F1||(F1=!0,M("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",p))}return(o||s)&&(c="function"==typeof e?e.displayName||e.name||"Unknown":e,o&&(f=i,p=c,g.isReactWarning=!0,Object.defineProperty(f,"key",{get:g,configurable:!0})),s&&(r=i,l=c,m.isReactWarning=!0,Object.defineProperty(r,"ref",{get:m,configurable:!0}))),G1(e,o,s,a,u,E1.current,i)}function Y1(e){return"object"==typeof e&&null!==e&&e.$$typeof===Qw}var $1=".",X1=":",W1=!1,J1=/\/+/g;function Q1(e){return(""+e).replace(J1,"$&/")}var Z1=10,eT=[];function tT(e,t,r,n){var i;return eT.length?((i=eT.pop()).result=e,i.keyPrefix=t,i.func=r,i.context=n,i.count=0,i):{result:e,keyPrefix:t,func:r,context:n,count:0}}function rT(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,eT.length<Z1&&eT.push(e)}function nT(e,t,r){return null==e?0:function e(t,r,n,i){var o,s=typeof t,a=!1;if(null===(t="undefined"!=s&&"boolean"!=s?t:null))a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case Qw:case Zw:a=!0}}if(a)return n(i,t,""===r?$1+iT(t,0):r),1;var u=0,c=""===r?$1:r+X1;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(o=t[l],c+iT(o,l),n,i);else if("function"==typeof(r=m1(t))){r===t.entries&&(W1||S1("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),W1=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(o=f.value,c+iT(o,d++),n,i)}else if("object"==s)throw r="",r=" If you meant to render a collection of children, use an array instead."+_1.getStackAddendum(),s=""+t,Error("Objects are not valid as a React child (found: "+("[object Object]"==s?"object with keys {"+Object.keys(t).join(", ")+"}":s)+")."+r);return u}(e,"",t,r)}function iT(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=e.key,r={"=":"=0",":":"=2"},"$"+(""+e).replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var r}function oT(e,t,r){var n=e.func,i=e.context;n.call(i,t,e.count++)}function sT(e,t,r){var n=e.result,i=e.keyPrefix,o=e.func,s=e.context,o=o.call(s,t,e.count++);Array.isArray(o)?aT(o,n,r,function(e){return e}):null!=o&&(Y1(o)&&(e=i+(!(s=o).key||t&&t.key===o.key?"":Q1(o.key)+"/")+r,o=G1(s.type,e,s.ref,s._self,s._source,s._owner,s.props)),n.push(o))}function aT(e,t,r,n,i){var o="",t=tT(t,o=null!=r?Q1(r)+"/":o,n,i);nT(e,sT,t),rT(t)}function uT(e){return"string"==typeof e||"function"==typeof e||e===e1||e===o1||e===r1||e===t1||e===a1||e===u1||"object"==typeof e&&null!==e&&(e.$$typeof===l1||e.$$typeof===c1||e.$$typeof===n1||e.$$typeof===i1||e.$$typeof===s1||e.$$typeof===p1||e.$$typeof===d1||e.$$typeof===h1||e.$$typeof===f1)}function cT(){var e=g1.current;if(null===e)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");return e}function lT(){if(E1.current){var e=b1(E1.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var fT=!1,pT={};function dT(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=lT())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),pT[t=r]||(pT[t]=!0,r="",e&&e._owner&&e._owner!==E1.current&&(r=" It was passed a child from "+b1(e._owner.type)+"."),R1(e),M('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',t,r),R1(null)))}function hT(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];Y1(n)&&dT(n,t)}else if(Y1(e))e._store&&(e._store.validated=!0);else if(e){var i=m1(e);if("function"==typeof i&&i!==e.entries)for(var o,s=i.call(e);!(o=s.next()).done;)Y1(o.value)&&dT(o.value,t)}}function yT(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=b1(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==s1&&t.$$typeof!==c1)return;r=t.propTypes}r?(R1(e),Jw(r,e.props,"prop",n,_1.getStackAddendum),R1(null)):void 0===t.PropTypes||fT||(fT=!0,M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function vT(e,t,r){var n,i=uT(e),t=(i||(n="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(n+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),n+=(null!=(t=t)&&void 0!==(t=t.__source)?"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".":"")||lT(),null===e?s="null":Array.isArray(e)?s="array":void 0!==e&&e.$$typeof===Qw?(s="<"+(b1(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,M("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,n)),q1.apply(this,arguments));if(null==t)return t;if(i)for(var o=2;o<arguments.length;o++)hT(arguments[o],e);if(e===e1){var s=t;R1(s);for(var a=Object.keys(s.props),u=0;u<a.length;u++){var c=a[u];if("children"!==c&&"key"!==c){M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==s.ref&&M("Invalid attribute `ref` supplied to `React.Fragment`."),R1(null)}else yT(t);return t}var mT=!1;try{var gT=Object.freeze({}),ET=new Map([[gT,null]]),wT=new Set([gT]);ET.set(0,0),wT.add(0)}catch(e){}function TT(e,t,r){for(var n=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,i,o=Ww({},e.props),s=e.key,a=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in K1(t)&&(a=t.ref,l=E1.current),z1(t)&&(s=""+t.key),e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)V1.call(t,n)&&!H1.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==i?o[n]=i[n]:o[n]=t[n]);var f=arguments.length-2;if(1==f)o.children=r;else if(1<f){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];o.children=p}return G1(e.type,s,a,u,c,l,o)}.apply(this,arguments),i=2;i<arguments.length;i++)hT(arguments[i],n.type);return yT(n),n}function bT(e){var t=vT.bind(null,e);return t.type=e,mT||(mT=!0,S1("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return S1("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}P=vT,S.Children={map:function(e,t,r){if(null==e)return e;var n=[];return aT(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=tT(null,null,t,r),nT(e,oT,t),rT(t)},count:function(e){return nT(e,function(){return null},null)},toArray:function(e){var t=[];return aT(e,t,null,function(e){return e}),t},only:function(e){if(Y1(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},S.Component=P1,S.Fragment=e1,S.Profiler=r1,S.PureComponent=L1,S.StrictMode=t1,S.Suspense=a1,S.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I1,S.cloneElement=TT,S.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&M("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:i1,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:n1,_context:r}),i=!1,t={$$typeof:i1,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return i||(i=!0,M("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,M("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}}}),r.Consumer=t,r._currentRenderer=null,r._currentRenderer2=null,r},S.createElement=P,S.createFactory=bT,S.createRef=function(){var e={current:null};return Object.seal(e),e},S.forwardRef=function(e){return null!=e&&e.$$typeof===c1?M("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?M("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&M("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null==e||null==e.defaultProps&&null==e.propTypes||M("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:s1,render:e}},S.isValidElement=Y1,S.lazy=function(e){var t,r,n={$$typeof:l1,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){M("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){M("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},S.memo=function(e,t){return uT(e)||M("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:c1,type:e,compare:void 0===t?null:t}},S.useCallback=function(e,t){return cT().useCallback(e,t)},S.useContext=function(e,t){var r,n=cT();return void 0!==t&&M("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context&&((r=e._context).Consumer===e?M("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&M("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},S.useDebugValue=function(e,t){return cT().useDebugValue(e,t)},S.useEffect=function(e,t){return cT().useEffect(e,t)},S.useImperativeHandle=function(e,t,r){return cT().useImperativeHandle(e,t,r)},S.useLayoutEffect=function(e,t){return cT().useLayoutEffect(e,t)},S.useMemo=function(e,t){return cT().useMemo(e,t)},S.useReducer=function(e,t,r){return cT().useReducer(e,t,r)},S.useRef=function(e){return cT().useRef(e)},S.useState=function(e){return cT().useState(e)},S.version="16.14.0"}"production"===production?U.exports=C:U.exports=S;var _T=U.exports,OT=U.exports.createContext({hackle:void 0,userVersion:0,initialized:!1}),k=OT.Consumer,RT=OT.Provider;var IT=l.Logger.log;function ST(e,t){e=NT(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function NT(e,t){void 0===t&&(t="A");var r=U.exports.useContext(OT),n=r.hackle,i=r.userVersion,o=r.initialized,s=U.exports.useCallback(function(){return o?(null==n?void 0:n.variationDetail(e))||l.Decision.of(t,l.DecisionReason.EXCEPTION):l.Decision.of(t,l.DecisionReason.SDK_NOT_READY)},[t,e,n,o]),r=nw(U.exports.useState(function(){return n?s():(IT.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2),a=r[0],r=r[1],i={key:e,userVersion:i,initialized:o},u=nw(U.exports.useState(i),2),c=u[0],u=u[1];return xT(c,i)||(u(i),r(s())),{isLoading:!o,decision:a}}function AT(e){e=CT(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function CT(e){var t=U.exports.useContext(OT),r=t.hackle,n=t.userVersion,i=t.initialized,o=U.exports.useCallback(function(){return i?(null==r?void 0:r.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION):l.FeatureFlagDecision.off(l.DecisionReason.SDK_NOT_READY)},[e,r,i]),t=nw(U.exports.useState(function(){return r?o():(IT.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2),s=t[0],t=t[1],n={key:e,userVersion:n,initialized:i},a=nw(U.exports.useState(n),2),u=a[0],a=a[1];return xT(u,n)||(a(n),t(o())),{isLoading:!i,decision:s}}function xT(e,t){return e.initialized===t.initialized&&e.key===t.key&&e.userVersion===t.userVersion}function kT(e){var t,r=e.experimentKey,e=e.children,n=(r=ST(r)).isLoading,i=r.variation;return n?null:e&&"function"==typeof e?e(i):(U.exports.Children.forEach(e,function(e){U.exports.isValidElement(e)&&(e.props.variation?i===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?U.exports.cloneElement(t,{variation:i}):null)}function PT(e){return e.variation,e=e.children,U.exports.createElement(U.exports.Fragment,null,e)}function UT(e){var t=(r=AT(e.featureKey)).isLoading,r=r.isOn;return t?null:_T.createElement(_T.Fragment,null,e.children(r))}l.HackleContext=OT,l.HackleContextConsumer=k,l.HackleContextProvider=RT,l.HackleExperiment=kT,l.HackleFeature=UT,l.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(i=e.timeout)?3e3:i,i=void 0!==(i=e.supportSSR)&&i,e=e.children,o=nw(U.exports.useState({hackle:t,initialized:!1,userVersion:0}),2),s=o[0],a=o[1];return U.exports.useEffect(function(){null!=r&&t.setUser(r)},[r]),U.exports.useEffect(function(){function e(){a(function(e){return rw(rw({},e),{userVersion:e.userVersion+1})})}return t.on("user-updated",e),function(){t.off("user-updated",e)}},[t]),U.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){a(function(e){return rw(rw({},e),{initialized:!0})})},function(){a(function(e){return rw(rw({},e),{initialized:!0})})}).catch(function(){a(function(e){return rw(rw({},e),{initialized:!0})})})},[t]),i||s.initialized?_T.createElement(RT,{value:s},e):null},l.HackleVariation=PT,l.createInstance=function(e,t){return new cw(e,t)},l.useFeature=function(e){var t=(n=U.exports.useContext(OT)).hackle,r=n.userVersion,n=n.initialized,i=U.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e))||!1},[e,t,n]),o=(s=nw(U.exports.useState(function(){return t?i():("undefined"!=typeof window&&IT.error("HackleClient is not existed"),!1)}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=nw(U.exports.useState(r),2))[0],n=n[1];return xT(a,r)||(n(r),s(i())),o},l.useFeatureFlagDetail=function(e){var t=(n=U.exports.useContext(OT)).hackle,r=n.userVersion,n=n.initialized,i=U.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION)},[e,t,n]),o=(s=nw(U.exports.useState(function(){return t?i():("undefined"!=typeof window&&IT.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=nw(U.exports.useState(r),2))[0],n=n[1];return xT(a,r)||(n(r),s(i())),o},l.useLoadableFeature=AT,l.useLoadableFeatureDetail=CT,l.useLoadableRemoteConfig=function(){var e=(o=U.exports.useContext(OT)).hackle,t=o.userVersion,r=o.initialized,n=U.exports.useCallback(function(){return r&&(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),i=(o=nw(U.exports.useState(function(){return e||IT.error("HackleClient is not existed"),n()}),2))[0],o=o[1],t={userVersion:t,initialized:r},s=(a=nw(U.exports.useState(t),2))[0],a=a[1];return xT(s,t)||(a(t),o(n())),{isLoading:!r,remoteConfig:i}},l.useLoadableVariation=ST,l.useLoadableVariationDetail=NT,l.useRemoteConfig=function(){var e=(r=U.exports.useContext(OT)).hackle,t=r.userVersion,r=r.initialized,n=U.exports.useCallback(function(){return(null==e?void 0:e.remoteConfig())||new l.EmptyHackleRemoteConfig},[e,r]),i=(o=nw(U.exports.useState(function(){return e||IT.error("HackleClient is not existed"),n()}),2))[0],o=o[1],t={userVersion:t,initialized:r},s=(r=nw(U.exports.useState(t),2))[0],r=r[1];return xT(s,t)||(r(t),o(n())),i},l.useTrack=function(){var t=U.exports.useContext(OT).hackle;return t?function(e){return null==t?void 0:t.track(e)}:(IT.error("HackleClient is not existed"),function(){})},l.useVariation=function(e,t){void 0===t&&(t="A");var r=(a=U.exports.useContext(OT)).hackle,n=a.userVersion,i=a.initialized,o=U.exports.useCallback(function(){return i&&(null==r?void 0:r.variation(e))||t},[t,e,r,i]),s=(a=nw(U.exports.useState(function(){return r?o():("undefined"!=typeof window&&IT.error("HackleClient is not existed"),t)}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:i},u=(c=nw(U.exports.useState(n),2))[0],c=c[1];return xT(u,n)||(c(n),a(o())),s},l.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(i=U.exports.useContext(OT)).hackle,n=i.userVersion,i=i.initialized,o=U.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e))||l.Decision.of(t,l.DecisionReason.EXCEPTION)},[t,e,r,i]),s=(a=nw(U.exports.useState(function(){return r?o():("undefined"!=typeof window&&IT.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:i},u=(i=nw(U.exports.useState(n),2))[0],i=i[1];return xT(u,n)||(i(n),a(o())),s},Object.defineProperty(l,"__esModule",{value:!0})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hackler/react-sdk",
3
- "version": "11.14.1",
3
+ "version": "11.14.3",
4
4
  "description": "React SDK for Hackle",
5
5
  "author": {
6
6
  "name": "Hackle",
@@ -39,7 +39,7 @@
39
39
  "url": "https://github.com/hackle-io/hackle-javascript-sdk/issues"
40
40
  },
41
41
  "dependencies": {
42
- "@hackler/javascript-sdk": "11.14.1"
42
+ "@hackler/javascript-sdk": "11.14.2"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": ">=16.8.0"
package/CHANGELOG.md DELETED
@@ -1,6 +0,0 @@
1
- # ChangeLog
2
-
3
- ## 1.0.6 - 2020-12-21
4
-
5
- #### Changed
6
- - Variation 호출 최적화