@hackler/react-sdk 11.16.3 → 11.18.0
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 +1 -1
- package/lib/index.js +1 -1
- package/lib/index.umd.js +1 -1
- package/package.json +2 -2
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(f){"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,G=[],B=0;B<256;++B)G.push((B+256).toString(16).substr(1));function q(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=(G[e[t+0]]+G[e[t+1]]+G[e[t+2]]+G[e[t+3]]+"-"+G[e[t+4]]+G[e[t+5]]+"-"+G[e[t+6]]+G[e[t+7]]+"-"+G[e[t+8]]+G[e[t+9]]+"-"+G[e[t+10]]+G[e[t+11]]+G[e[t+12]]+G[e[t+13]]+G[e[t+14]]+G[e[t+15]]).toLowerCase();if(H(e))return e;throw TypeError("Stringified UUID is invalid")}var Y=0,$=0;function J(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 X(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?J(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 W(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=X("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[W(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,f=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,f)}return[r,n,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(W(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=X("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),f=0;f<16;++f)c[f]=e[64*u+4*f]<<24|e[64*u+4*f+1]<<16|e[64*u+4*f+2]<<8|e[64*u+4*f+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 l=0;l<s;++l){for(var p=new Uint32Array(80),d=0;d<16;++d)p[d]=a[l][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:J})),ae=(f.setUserId=void 0,f.sanitizeUser=void 0,f.removeUserId=void 0,f.getUserId=void 0,f.Version=void 0,f.Variation=void 0,f.TargetingType=void 0,f.TargetRule=void 0,f.TargetMatch=void 0,f.TargetKey=void 0,f.TargetCondition=void 0,f.TargetAction=void 0,f.Target=void 0,f.TARGET_KEY_TYPES=void 0,f.TARGET_ACTION_TYPES=void 0,f.Slot=void 0,f.Segment=void 0,f.SEGMENT_TYPES=void 0,f.RemoteConfigTargetRule=void 0,f.RemoteConfigParameterValue=void 0,f.RemoteConfigParameter=void 0,f.RemoteConfigDecision=void 0,f.PropertyOperationsBuilder=void 0,f.PropertyOperations=void 0,f.ParameterConfiguration=void 0,f.MetaVersion=void 0,f.MATCH_VALUE_TYPES=void 0,f.MATCH_TYPES=void 0,f.MATCH_OPERATORS=void 0,f.Logger=void 0,f.InAppMessageDecision=void 0,f.IdentifiersBuilder=void 0,f.IdentifierType=void 0,f.IAMTargetRuleOverride=void 0,f.IAMTargetContext=void 0,f.IAMEventTriggerRule=void 0,f.IAMDateRange=void 0,f.IAMContext=void 0,f.IAM=void 0,f.FeatureFlagDecision=void 0,f.Experiment=void 0,f.EventType=void 0,f.EmptyParameterConfig=void 0,f.EmptyHackleRemoteConfig=void 0,f.DecisionReason=void 0,f.Decision=void 0,f.CoreVersion=void 0,f.ContainerGroup=void 0,f.Container=void 0,f.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 m=function(){return(m=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 fe(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 le(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}}}}function pe(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}be.isNotNullOrUndefined=function(e){return null!=e},be.isNullOrUndefined=function(e){return null==e},be.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},be.fromMap=function(e){var r={};return e.forEach(function(e,t){r[t]=e}),r};var a=be,c=(Te.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},Te.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},Te.associate=function(e,t){return this.associateTo(e,new Map,t)},Te.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},Te.chunked=function(e,t){for(var r=[],n=e.slice();n.length;)r.push(n.splice(0,t));return r},Te),de={DISABLE:0,ERROR:1,WARN:2,INFO:3,DEBUG:4},he=(we.setLogLevel=function(e){this.logLevel=e=void 0===e?de.INFO:e},we.initCounter=function(t){this.counters=c.associate(Object.keys(de),function(e){return[e,t(e)]})},we._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)ye.log(e,r,t.message,t);else try{ye.log(e,r,t)}catch(e){}},we.increment=function(e){var t;null!=(t=null==(t=we.counters)?void 0:t.get(e))&&t.increment()},we.logLevel=de.INFO,we.log={error:function(e){de.ERROR<=we.logLevel&&(we._log("ERROR",e),we.increment("ERROR"))},warn:function(e){de.WARN<=we.logLevel&&(we._log("WARN",e),we.increment("WARN"))},info:function(e){de.INFO<=we.logLevel&&(we._log("INFO",e),we.increment("INFO"))},debug:function(e){de.DEBUG<=we.logLevel&&(we._log("DEBUG",e),we.increment("DEBUG"))}},we),ye=(Ee.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},Ee),ve="X-HACKLE-SDK-NAME",me=[0,8,16,32,64,128,256,512],ge=he.log;function Ee(){}function we(){}function Te(){}function be(){}function _e(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}var Oe={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"),_e(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"),_e(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[ve]),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 ge.error("sendBeacon failed to queue request."),void i();n()}else ge.error("Does not support sendBeacon"),i()}},Re=he.log,Se=(ke.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]})},ke.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)?Re.debug("Invalid identifier value. The identifier type value be a string of 512 characters or less. [".concat(o,"]")):t[o]=i):Re.debug("Invalid identifier type. The identifier type must be a string of 128 characters or less. [".concat(o,"]"))}return t},ke.isValidType=function(e){return!a.isNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_TYPE_LENGTH},ke.sanitizeValue=function(e){return"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_VALUE_LENGTH?e:"number"==typeof e?e.toString():null},ke.MAX_IDENTIFIER_TYPE_LENGTH=128,ke.MAX_IDENTIFIER_VALUE_LENGTH=512,ke),Ie=he.log,Ne=(Ce.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){Ie.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)?Ie.debug("Invalid property value. The property value mus be 'string(..1024)', 'number', 'boolean', or 'array' type. [".concat(o,"]")):t[s]=i):Ie.debug("Invalid property key. The property key must be a string of 128 characters or less. [".concat(s,"]"))}return t},Ce.isValidProperty=function(e,t){return this.isValidKey(e)&&this.isValidValue(t)},Ce.isValidKey=function(e){return a.isNotNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_PROPERTY_KEY_LENGTH},Ce.sanitizeValue=function(e,t){var r=this;return"string"==typeof e&&e.startsWith(this.SYSTEM_PROPERTY_KEY_PREFIX)?t:this.isValidValue(t)?Array.isArray(t)?t.filter(function(e){return r.isValidElement(e)}):t:null},Ce.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))},Ce.isValidElement=function(e){return!a.isNullOrUndefined(e)&&("string"==typeof e?0<e.length&&e.length<=this.MAX_PROPERTY_VALUE_LENGTH:"number"==typeof e)},Ce.SYSTEM_PROPERTY_KEY_PREFIX="$",Ce.MAX_PROPERTIES_COUNT=128,Ce.MAX_PROPERTY_KEY_LENGTH=128,Ce.MAX_PROPERTY_VALUE_LENGTH=1024,Ce),Ae=he.log;function Ce(){}function ke(){}function xe(e,t){e=e.find(function(e){return e===t});return e||Ae.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e}function Pe(e,t){this.value=e,this.reason=t}function Me(e,t){this.id=e,this.key=t}function Ue(e){var t,r={};return r.id=null!=(t=Se.sanitizeValue(e.id))?t:void 0,r.userId=null!=(t=Se.sanitizeValue(e.userId))?t:void 0,r.deviceId=null!=(t=Se.sanitizeValue(e.deviceId))?t:void 0,"object"==typeof e.properties&&(r.properties=Ne.sanitize(e.properties)),"object"==typeof e.identifiers&&(r.identifiers=Se.sanitize(e.identifiers)),Boolean(r.id||r.userId||r.deviceId||r.identifiers&&0<Object.keys(r.identifiers).length)?r:null}It.of=function(e,t){return new It(e,t)};var De=It,Le=(St.of=function(e,t,r){return new St(e,t,r=void 0===r?new je:r)},St.prototype.get=function(e,t){return this.config.get(e,t)},St),Fe=(Rt.on=function(e,t){return new Rt(!0,e,t=void 0===t?new je:t)},Rt.off=function(e,t){return new Rt(!1,e,t=void 0===t?new je:t)},Rt.prototype.get=function(e,t){return this.config.get(e,t)},Rt),oe=(Ot.prototype.get=function(e,t){return t},Ot),je=(_t.prototype.get=function(e,t){return t},_t),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.IN_APP_MESSAGE_NOT_FOUND="IN_APP_MESSAGE_NOT_FOUND",n.TYPE_MISMATCH="TYPE_MISMATCH",n),Ve=(bt.fromJSON=function(e,t){var r=bt.experimentStatusOrNull(t.execution.status),n=t.variations.map(function(e){return new He(e.id,e.key,"DROPPED"===e.status,e.parameterConfigurationId)}),i=c.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),o=c.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return We.fromJSON(e,Lt.IDENTIFIER)}),s=c.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return qe.fromJSON(e,Lt.PROPERTY)}),a=c.mapNotNullOrUndefined(t.execution.targetRules,function(e){return We.fromJSON(e,Lt.PROPERTY)}),u=Xe.fromJSON(t.execution.defaultRule);return r&&u&&new bt(t.id,t.key,e,t.identifierType,r,t.version,n,i,o,s,a,u,t.containerId,t.winnerVariationId)},bt.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void Ae.debug("Unsupported status [".concat(e,"]"))}},bt.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},bt.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},bt.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},bt),He=function(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n},Ke=(Tt.fromJSON=function(e){return new Tt(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new ze(t,r,e)}))},Tt),ze=(wt.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},wt),Ge=(Et.ID="$id",Et.USER="$userId",Et.DEVICE="$deviceId",Et.SESSION="$sessionId",Et.HACKLE_DEVICE="$hackleDeviceId",Et),Be=(gt.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},gt.prototype.add=function(e,t){var r=Se.sanitizeValue(t);return Se.isValidType(e)&&r?this.identifiers[e]=t:Ae.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},gt.prototype.build=function(){return this.identifiers},gt),qe=(mt.fromJSON=function(e,t){return new mt(c.mapNotNullOrUndefined(e.conditions,function(e){return Ye.fromJSON(e,t)}))},mt.prototype.toJSON=function(){return{conditions:this.conditions.map(function(e){return e.toJSON()})}},mt),Ye=(vt.fromJSON=function(e,t){var r=$e.fromJSON(e.key);if(r&&t.supports(r.type))return(t=Je.fromJSON(e.match))&&new vt(r,t)},vt.prototype.toJSON=function(){return{key:this.key.toJSON(),match:this.match.toJSON()}},vt),$e=(yt.fromJSON=function(e){var t=xe(Ut,e.type);return t&&new yt(t,e.name)},yt.prototype.toJSON=function(){return{type:this.type,name:this.name}},yt),Je=(ht.fromJSON=function(e){var t=xe(kt,e.type),r=xe(Pt,e.operator),n=xe(xt,e.valueType);return t&&r&&n&&new ht(t,r,n,e.values)},ht.prototype.toJSON=function(){return{operator:this.operator,type:this.type,valueType:this.valueType,values:this.values}},ht),Xe=(dt.fromJSON=function(e){var t=xe(Mt,e.type);return t&&new dt(t,e.variationId,e.bucketId)},dt),We=(pt.fromJSON=function(e,t){t=qe.fromJSON(e.target,t),e=Xe.fromJSON(e.action);return t&&e&&new pt(t,e)},pt),Qe=(lt.fromJSON=function(e){var t=xe(Dt,e.type);return t&&new lt(e.id,e.key,t,c.mapNotNullOrUndefined(e.targets,function(e){return qe.fromJSON(e,Lt.SEGMENT)}))},lt),Ze=(ft.fromJSON=function(e){return new ft(e.id,e.bucketId,e.groups.map(function(e){return et.fromJSON(e)}))},ft.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},ft),et=(ct.fromJSON=function(e){return new ct(e.id,e.experiments)},ct),tt=(ut.fromJSON=function(e){return new ut(e.id,c.associate(e.parameters,function(e){return[e.key,e.value]}))},ut.prototype.get=function(e,t){e=this.parameters.get(e);return!a.isNullOrUndefined(e)&&(a.isNullOrUndefined(t)||typeof e==typeof t)?e:t},ut),rt=(at.fromJSON=function(e){var t=xe(xt,e.type),r=c.mapNotNullOrUndefined(e.targetRules,function(e){return nt.fromJSON(e,Lt.PROPERTY)}),n=it.fromJSON(e.defaultValue);return t&&new at(e.id,e.key,t,e.identifierType,r,n)},at),nt=(st.fromJSON=function(e,t){t=qe.fromJSON(e.target,t);return t&&new st(e.key,e.name,t,e.bucketId,it.fromJSON(e.value))},st),it=(ot.fromJSON=function(e){return new ot(e.id,e.value)},ot);function ot(e,t){this.id=e,this.rawValue=t}function st(e,t,r,n,i){this.key=e,this.name=t,this.target=r,this.bucketId=n,this.value=i}function at(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 ut(e,t){this.id=e,this.parameters=t}function ct(e,t){this.id=e,this.experiments=t}function ft(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function lt(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function pt(e,t){this.target=e,this.action=t}function dt(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function ht(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function yt(e,t){this.type=e,this.name=t}function vt(e,t){this.key=e,this.match=t}function mt(e){this.conditions=e}function gt(){this.identifiers={}}function Et(){}function wt(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function Tt(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function bt(e,t,r,n,i,o,s,a,u,c,f,l,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=f,this.defaultRule=l,this.containerId=p,this._winnerVariationId=d}function n(){}function _t(){}function Ot(){}function Rt(e,t,r){this.isOn=e,this.reason=t,this.config=r}function St(e,t,r){this.variation=e,this.reason=t,this.config=r}function It(e,t){this.value=e,this.reason=t}sr.tryParse=function(e){var t,r,n,i,e=sr.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 sr(new At(parseInt(t,10),parseInt(r,10),parseInt(n,10)),Ct.parse(i),Ct.parse(e))},sr.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},sr.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},sr.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},sr.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},sr.prototype.isLessThan=function(e){return this.compareTo(e)<0},sr.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},sr.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 Nt=sr,At=(or.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},or),Ct=(ir.parse=function(e){return e?new ir(e.split(".")):ir.EMPTY},ir.prototype.isEmpty=function(){return 0===this.identifiers.length},ir.prototype.isNotEmpty=function(){return!this.isEmpty()},ir.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},ir.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=ir.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},ir.compareIdentifiers=function(e,t){return ir.numericIdentifierRegExp.test(e)&&ir.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},ir.EMPTY=new ir([]),ir.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,ir),kt=["MATCH","NOT_MATCH"],xt=["STRING","NUMBER","BOOLEAN","VERSION","JSON","NULL","UNKNOWN"],Pt=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],Mt=["VARIATION","BUCKET"],Ut=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT","AB_TEST","FEATURE_FLAG","EVENT_PROPERTY"],Dt=["USER_ID","USER_PROPERTY"],Lt=(nr.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},nr.IDENTIFIER=new nr("SEGMENT"),nr.PROPERTY=new nr("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY","AB_TEST","FEATURE_FLAG"),nr.SEGMENT=new nr("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),nr.IAM=new nr("EVENT_PROPERTY","USER_PROPERTY","HACKLE_PROPERTY"),nr),Ft=(rr.fromJSON=function(e){return new rr(e.timeUnit,null===e.startEpochTime?e.startEpochTime:1e3*e.startEpochTime,null===e.endEpochTime?e.endEpochTime:1e3*e.endEpochTime)},rr.prototype.within=function(e){return"IMMEDIATE"===this.timeUnit||(null===this.startDateTime?null===this.endDateTime||e<=this.endDateTime:null===this.endDateTime?this.startDateTime<=e:this.startDateTime<=e&&e<=this.endDateTime)},rr.prototype.toJSON=function(){return{timeUnit:this.timeUnit,startEpochTime:null===this.startDateTime?this.startDateTime:this.startDateTime/1e3,endEpochTime:null===this.endDateTime?this.endDateTime:this.endDateTime/1e3}},rr),jt=(tr.fromJSON=function(e){return new tr(e.eventKey,c.mapNotNullOrUndefined(e.targets,function(e){return qe.fromJSON(e,Lt.IAM)}),e.priority)},tr.prototype.toJSON=function(){return{eventKey:this.eventKey,targets:this.targets.map(function(e){return e.toJSON()}),priority:this.priority}},tr),Vt=(er.fromJSON=function(e){return new er(e.identifierType,e.identifiers)},er.prototype.toTarget=function(){return new qe([new Ye(new $e("USER_ID",this.identifierType),new Je("MATCH","IN","STRING",this.identifiers))])},er.prototype.toJSON=function(){return{identifierType:this.identifierType,identifiers:this.identifiers}},er),Ht=(Zt.fromJSON=function(e){return new Zt(c.mapNotNullOrUndefined(e.targets,function(e){return qe.fromJSON(e,Lt.PROPERTY)}),c.mapNotNullOrUndefined(e.overrides,function(e){return Vt.fromJSON(e)}))},Zt.prototype.toJSON=function(){return{targets:this.targets.map(function(e){return e.toJSON()}),overrides:this.overrides.map(function(e){return e.toJSON()})}},Zt),Kt=(Qt.fromJSON=function(e){return new Qt(e.defaultLang,e.messages,e.platformTypes,e.exposure)},Qt.prototype.getDefaultMessage=function(){var t=this;return this.messages.find(function(e){return e.lang===t.defaultLang})||this.messages[0]},Qt.prototype.supportsWeb=function(){return this.platformTypes.includes("WEB")},Qt.prototype.getMessageForLang=function(t){return this.messages.find(function(e){return e.lang===t})},Qt.prototype.toJSON=function(){return{defaultLang:this.defaultLang,messages:this.messages,platformTypes:this.platformTypes,exposure:this.exposure}},Qt),zt=(Wt.fromJSON=function(e){return new Wt(e.key,e.status,Ft.fromJSON(e),e.eventTriggerRules.map(function(e){return jt.fromJSON(e)}),Ht.fromJSON(e.targetContext),Kt.fromJSON(e.messageContext))},Wt.prototype.isActive=function(){return"ACTIVE"===this.status},Wt.prototype.supportsWeb=function(){return this.messageContext.supportsWeb()},Wt.prototype.toJSON=function(){return m(m({key:this.key,status:this.status},this.dateRange.toJSON()),{eventTriggerRules:this.eventTriggerRules.map(function(e){return e.toJSON()}),targetContext:this.targetContext.toJSON(),messageContext:this.messageContext.toJSON()})},Wt),Gt=(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),Bt=(Xt.prototype.tick=function(){return 1e3*Date.now()},Xt.prototype.currentMillis=function(){return Date.now()},Xt.instance=new Xt,Xt),qt=(Jt.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},Jt.prototype.tag=function(e,t){return this._tags[e]=t,this},Jt.prototype.register=function(e){return e.registerTimer({name:this.name,tags:this._tags,type:"TIMER"})},Jt),Yt=($t.start=function(e){return new $t(e=void 0===e?$t.defaultClock:e)},$t.prototype.stop=function(e){var t=this._clock.tick()-this.startTime;e.record(t,"microseconds")},$t.defaultClock=new Bt,$t);function $t(e){this._clock=e,this.startTime=this._clock.tick()}function Jt(e){this.name=e,this._tags={},this.name=e}function Xt(){}function i(){}function Wt(e,t,r,n,i,o){this.key=e,this.status=t,this.dateRange=r,this.eventTriggerRules=n,this.targetContext=i,this.messageContext=o}function Qt(e,t,r,n){this.defaultLang=e,this.messages=t,this.platformTypes=r,this.exposure=n}function Zt(e,t){this.targets=e,this.overrides=t}function er(e,t){this.identifierType=e,this.identifiers=t}function tr(e,t,r){void 0===r&&(r=0),this.eventKey=e,this.targets=t,this.priority=r}function rr(e,t,r){this.timeUnit=e,this.startDateTime=t,this.endDateTime=r}function nr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function ir(e){this.identifiers=e}function or(e,t,r){this.major=e,this.minor=t,this.patch=r}function sr(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}ur.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},ur.prototype.tag=function(e,t){return this._tags[e]=t,this},ur.prototype.register=function(e){return e.registerCounter({name:this.name,tags:this._tags,type:"COUNTER"})};var ar=ur;function ur(e){this.name=e,this._tags={}}Object.defineProperty(fr.prototype,"value",{get:function(){return this.valueSupplier()},enumerable:!1,configurable:!0});var cr=fr;function fr(e,t){this.valueSupplier=t,this.field=e}function lr(e,t){return e.name===t.name&&Se.isEquals(e.tags,t.tags)}wr.prototype.count=function(){return this.counterValue},wr.prototype.increment=function(e){this.counterValue+=null!=e?e:1},wr.prototype.measure=function(){return[new cr("count",this.count.bind(this))]};var pr,dr=wr,hr=(Er.prototype.flush=function(){var e=this.currentCounter;return this.currentCounter=new dr(this.id),e},Er.prototype.count=function(){return this.currentCounter.count()},Er.prototype.increment=function(e){this.currentCounter.increment(e)},Er.prototype.measure=function(){return[new cr("count",this.count.bind(this))]},Er),yr=(gr.prototype.values=function(){return Array.from(this.data.values())},gr.prototype.keys=function(){return Array.from(this.data.keys())},gr.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},gr.prototype.has=function(e){return void 0!==this.get(e)},gr.prototype.add=function(e,t){t=(t=t)||e;return this.data.set(e,t),this},gr.prototype.delete=function(e){var t;if(this.has(e))return t=this.get(e),this.data.delete(e),t},gr.prototype.forEach=function(e){this.data.forEach(e)},gr.prototype.entries=function(){return Array.from(this.data.entries())},gr),r=(Object.defineProperty(mr.prototype,"metrics",{get:function(){return Array.from(this._metrics.values())},enumerable:!1,configurable:!0}),mr.prototype.registerCounter=function(e){return this.registerMetricIfNecessary(e,this.createCounter.bind(this))},mr.prototype.registerTimer=function(e){return this.registerMetricIfNecessary(e,this.createTimer.bind(this))},mr.prototype.counter=function(e,t){return void 0===t&&(t={}),new ar(e).tags(t).register(this)},mr.prototype.timer=function(e,t){return void 0===t&&(t={}),new qt(e).tags(t).register(this)},mr.prototype.registerMetricIfNecessary=function(e,t){return this.getOrCreateMetric(e,t)},mr.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},mr.prototype.close=function(){},mr),o=(ce(vr,pr=r),vr.prototype.start=function(){var e=this;void 0===this.currentIntervalId&&(this.currentIntervalId=setInterval(function(){e.publish()},this.pushIntervalMillis),he.log.debug("PushMetricRegistry started. Publish metrics every ".concat(this.pushIntervalMillis,"ms.")))},vr.prototype.stop=function(){void 0!==this.currentIntervalId&&(clearInterval(this.currentIntervalId),this.currentIntervalId=void 0,this.publish(),he.log.debug("PushMetricRegistry stopped."))},vr.prototype.close=function(){this.stop()},vr);function vr(e){var t=pr.call(this)||this;return t.pushIntervalMillis=e,t.currentIntervalId=void 0,t.pushIntervalMillis=e,t}function mr(){this.id=ae.v4(),this.name="MetricRegistry",this._metrics=new yr(lr)}function gr(e){this.compareFn=e,this.data=new Map,this.compareFn=e,this.data=new Map}function Er(e){this.id=e,this.currentCounter=new dr(e)}function wr(e){this.counterValue=0,this.id=e}Cr.prototype.count=function(){return this._count},Cr.prototype.totalTime=function(e){return Gt.nanosToUnit(this._total,e)},Cr.prototype.max=function(e){return Gt.nanosToUnit(this._max,e)},Cr.prototype.mean=function(e){return 0===this.count()?0:this.totalTime(e)/this.count()},Cr.prototype.record=function(e,t){e<0||(t=Gt.converter[t](e,"nanoseconds"),this._count=this.count()+1,this._total+=t,this._max=Math.max(t,this._max))},Cr.prototype.measure=function(){var e=this;return[new cr("count",this.count.bind(this)),new cr("total",function(){return e.totalTime("milliseconds")}),new cr("max",function(){return e.max("milliseconds")}),new cr("mean",function(){return e.mean("milliseconds")})]};var Tr,br=Cr,_r=(Ar.prototype.flush=function(){var e=this.currentTimer;return this.currentTimer=new br(this.id),e},Ar.prototype.count=function(){return this.currentTimer.count()},Ar.prototype.totalTime=function(e){return this.currentTimer.totalTime(e)},Ar.prototype.max=function(e){return this.currentTimer.max(e)},Ar.prototype.record=function(e,t){this.currentTimer.record(e,t)},Ar.prototype.mean=function(e){return 0===this.count()?0:this.totalTime(e)/this.count()},Ar.prototype.measure=function(){var e=this;return[new cr("count",this.count.bind(this)),new cr("total",function(){return e.totalTime("milliseconds")}),new cr("max",function(){return e.max("milliseconds")}),new cr("mean",function(){return e.mean("milliseconds")})]},Ar),o=(ce(Nr,Tr=o),Nr.prototype.createCounter=function(e){return new hr(e)},Nr.prototype.createTimer=function(e){return new _r(e)},Nr.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)},Nr.prototype.close=function(){Tr.prototype.close.call(this)},Nr),Or=(Ir.prototype.count=function(){return 0},Ir.prototype.increment=function(e){},Ir.prototype.measure=function(){return[new cr("count",this.count.bind(this))]},Ir),Rr=(Object.defineProperty(Sr.prototype,"counters",{get:function(){return Array.from(this._counters.values())},enumerable:!1,configurable:!0}),Sr.prototype.add=function(e){this._counters.add(e,e.registerCounter(this.id))},Sr.prototype.count=function(){return(this.counters[0]||this.noopCounter).count()},Sr.prototype.increment=function(t){this.counters.forEach(function(e){e.increment(t)})},Sr.prototype.measure=function(){return[new cr("count",this.count.bind(this))]},Sr);function Sr(e){this._counters=new yr(function(e,t){return e.id===t.id}),this.id=e,this.noopCounter=new Or(e)}function Ir(e){this.id=e}function Nr(e){return Tr.call(this,e)||this}function Ar(e){this.id=e,this.currentTimer=new br(e)}function Cr(e){this._count=0,this._total=0,this._max=0,this.id=e}Zr.prototype.measure=function(){var e=this;return[new cr("count",this.count.bind(this)),new cr("total",function(){return e.totalTime("milliseconds")}),new cr("max",function(){return e.max("milliseconds")}),new cr("mean",function(){return e.mean("milliseconds")})]},Zr.prototype.count=function(){return 0},Zr.prototype.totalTime=function(e){return 0},Zr.prototype.max=function(e){return 0},Zr.prototype.mean=function(e){return 0},Zr.prototype.record=function(e,t){};var kr,xr,Pr,Mr=Zr,Ur=(Object.defineProperty(Qr.prototype,"firstTimer",{get:function(){return this.timers[0]||this.noopTimer},enumerable:!1,configurable:!0}),Qr.prototype.totalTime=function(e){return this.firstTimer.totalTime(e)},Qr.prototype.max=function(e){return this.firstTimer.max(e)},Qr.prototype.mean=function(e){return this.firstTimer.mean(e)},Qr.prototype.record=function(t,r){this.timers.forEach(function(e){e.record(t,r)})},Object.defineProperty(Qr.prototype,"timers",{get:function(){return Array.from(this._timers.values())},enumerable:!1,configurable:!0}),Qr.prototype.add=function(e){this._timers.add(e,e.registerTimer(this.id))},Qr.prototype.count=function(){return this.firstTimer.count()},Qr.prototype.measure=function(){var e=this;return[new cr("count",this.count.bind(this)),new cr("total",function(){return e.totalTime("milliseconds")}),new cr("max",function(){return e.max("milliseconds")}),new cr("mean",function(){return e.mean("milliseconds")})]},Qr),r=(ce(Wr,Pr=r),Wr.prototype.createCounter=function(e){e=new Rr(e);return this.addRegistry(e),e},Wr.prototype.createTimer=function(e){e=new Ur(e);return this.addRegistry(e),e},Wr.prototype.addRegistry=function(t){this.registries.forEach(function(e){return t.add(e)})},Wr.prototype.add=function(t){t instanceof Wr||this.registries.has(t)||(this.registries.add(t),this.metrics.forEach(function(e){void 0!==e.add&&"function"==typeof e.add&&e.add(t)}))},Wr.prototype.close=function(){this.registries.forEach(function(e){e.close()})},Wr),Dr=(Xr.counter=function(e,t){return Xr.globalRegistry.counter(e,t)},Xr.timer=function(e,t){return Xr.globalRegistry.timer(e,t)},Xr.addRegistry=function(e){Xr.globalRegistry.add(e),he.log.debug("MetricRegistry added ".concat(e.name))},Xr.globalRegistry=new r,Xr),Lr=(ce(Jr,xr=o),Jr.prototype.flushMetrics=function(e){var t=this;c.chunked(e.filter(this.isDispatchTarget.bind(this)),100).forEach(function(e){t.dispatch(e)})},Jr.prototype.isDispatchTarget=function(e){return!("COUNTER"!==e.id.type&&"TIMER"!==e.id.type)&&0<e.count()},Jr.prototype.dispatch=function(e){this.useBeacon&&this.shouldUseBeacon?this.httpClient.sendBeacon(this.monitoringEndPoint,this.batch(e),this.httpHeader,function(){he.log.debug("Beacon called.")}):this.httpClient.postRequest(this.monitoringEndPoint,this.batch(e),this.httpHeader,function(){},function(){he.log.debug("Failed to flushing metrics.")})},Jr.prototype.batch=function(e){return{metrics:e.map(function(e){return{name:e.id.name,type:e.id.type,tags:e.id.tags,measurements:a.fromMap(c.associate(e.measure(),function(e){return[e.field,e.value]}))}})}},Jr.prototype.createCounter=function(e){return new hr(e)},Jr.prototype.createTimer=function(e){return new _r(e)},Jr.prototype.close=function(){this.shouldUseBeacon=!0,xr.prototype.close.call(this)},Jr),Fr=($r.experiment=function(e,t,r){t=Dr.timer("experiment.decision",{key:String(t),variation:r.variation,reason:String(r.reason)});e.stop(t)},$r.featureFlag=function(e,t,r){t=Dr.timer("feature.flag.decision",{key:String(t),on:String(r.isOn),reason:String(r.reason)});e.stop(t)},$r.remoteConfig=function(e,t,r){t=Dr.timer("remote.config.decision",{key:String(t),reason:String(r.reason)});e.stop(t)},$r),jr=(Yr.record=function(e,t,r){e=Dr.timer("api.call",{operation:e,success:String(r)});t.stop(e)},Yr),Vr=(qr.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)}},qr.decision=function(e,t,r,n,i){return a.isNullOrUndefined(t)?De.of(n,s.INVALID_INPUT):e.remoteConfig(t,i,r,n)},qr),Hr=he.log,Kr=(Br.prototype.get=function(e,t){var r,n=Yt.start();try{r=this.decide(e,t)}catch(n){Hr.error("Unexpected exception while deciding remote config parameter[".concat(e,"]. Returning default value. : ").concat(n)),r=De.of(t,s.EXCEPTION)}return Fr.remoteConfig(n,e,r),r.value},Br.prototype.decide=function(e,t){var r=this.userManager.resolveCurrentOrNull(this.user);if(!r)return Hr.warn("invalid user"),De.of(t,s.INVALID_INPUT);r=this.hackleUserResolver.resolve(r);return Vr.decide(this.core,e,t,r)},Br),zr=(Gr.prototype.contains=function(e){return this._properties.has(e)},Gr.prototype.remove=function(e){var r=this;return e instanceof Map&&e.forEach(function(e,t){r.remove(t)}),"string"==typeof e&&this._properties.delete(e),this},Gr.prototype.compute=function(e,t){var r=this._properties.get(e),t=t(r);null!==t?this.add(e,t):null===r&&!this.contains(e)||this.remove(e)},Gr.prototype.add=function(e,t,r){if((r=void 0===r?!1:r)&&this.contains(e))return this;if(this._properties.size>=this.MAX_PROPERTIES_COUNT)return this;if("string"==typeof e&&e.length>this.MAX_PROPERTY_KEY_LENGTH)return this;r=Ne.sanitizeValue(e,t);return r&&this._properties.set(e,r),this},Gr.prototype.addProperties=function(e,r){var n=this;return void 0===r&&(r=!1),e.forEach(function(e,t){n.add(t,e,r)}),this},Gr.prototype.build=function(){return this._properties},Gr);function Gr(){this._properties=new Map,this.MAX_PROPERTIES_COUNT=128,this.MAX_PROPERTY_KEY_LENGTH=128}function Br(e,t,r,n){this.core=e,this.userManager=t,this.hackleUserResolver=r,this.user=n}function qr(){}function Yr(){}function $r(){}function Jr(e,t,r,n,i){t=xr.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 Xr(){}function Wr(){var e=null!==Pr&&Pr.apply(this,arguments)||this;return e.registries=new yr(function(e,t){return e.id===t.id}),e}function Qr(e){this._timers=new yr(function(e,t){return e.id===t.id}),this.id=e,this.noopTimer=new Mr(e)}function Zr(e){this.id=e}(r=kr=kr||{}).SET="$set",r.SET_ONCE="$setOnce",r.UNSET="$unset",r.INCREMENT="$increment",r.APPEND="$append",r.APPEND_ONCE="$appendOnce",r.PREPEND="$prepend",r.PREPEND_ONCE="$prependOnce",r.REMOVE="$remove",r.CLEAR_ALL="$clearAll";Bn.prototype.operate=function(e,t){return 0===e.size?t:0===t.size?e:(new zr).addProperties(e).addProperties(t).build()};var en,tn,rn,nn,on,sn,an,un,cn=Bn,fn=(Gn.prototype.operate=function(e,t){return 0===e.size?t:0===t.size?e:(new zr).addProperties(e).addProperties(t,!0).build()},Gn),ln=(zn.prototype.operate=function(e,t){return 0===e.size?new Map:0===t.size?e:(new zr).addProperties(e).remove(t).build()},zn),pn=(Kn.prototype.operate=function(e,t){var r=this;if(0===t.size)return e;var n=new zr;return n.addProperties(e),t.forEach(function(t,e){n.compute(e,function(e){return r.increment(e,t)})}),n.build()},Kn.prototype.increment=function(e,t){return"number"!=typeof t?e:"number"!=typeof e?null==e?t:e:e+t},Kn),o=(Hn.prototype.operate=function(e,t){var r=this;if(0===t.size)return e;var n=new zr;return n.addProperties(e),t.forEach(function(t,e){n.compute(e,function(e){return r.compute(e,t)})}),n.build()},Hn.prototype.compute=function(e,t){e=this.toArray(e),t=this.toArray(t);return this.operateArray(e,t)},Hn.prototype.toArray=function(e){return null==e?[]:Array.isArray(e)?e:[e]},Hn.prototype.contains=function(e,t){return e.includes(t)},Hn.prototype.prepend=function(e,t,r){return(r=void 0===r?!1:r)&&this.contains(t,e)?t:pe([e],t,!0)},Hn.prototype.append=function(e,t,r){return(r=void 0===r?!1:r)&&this.contains(e,t)?e:pe(pe([],e,!0),[t],!1)},Hn),dn=(ce(Vn,un=o),Vn.prototype.operateArray=function(e,t){var r=this;return t.reduce(function(e,t){return r.append.bind(r)(e,t)},e)},Vn),hn=(ce(jn,an=o),jn.prototype.operateArray=function(e,t){return t.reduce(this.appendOnce.bind(this),e)},jn.prototype.appendOnce=function(e,t){return this.append(e,t,!0)},jn),yn=(ce(Fn,sn=o),Fn.prototype.operateArray=function(e,t){var r=this;return t.reduceRight(function(e,t){return r.prepend.bind(r)(t,e)},e)},Fn),vn=(ce(Ln,on=o),Ln.prototype.operateArray=function(e,t){var r=this;return t.reduce(this.appendOnce.bind(this),[]).reduceRight(function(e,t){return r.prependOnce.bind(r)(t,e)},e)},Ln.prototype.appendOnce=function(e,t){return this.append(e,t,!0)},Ln.prototype.prependOnce=function(e,t){return this.prepend(e,t,!0)},Ln),mn=(ce(Dn,nn=o),Dn.prototype.operateArray=function(e,t){return t.reduce(this.remove.bind(this),e)},Dn.prototype.remove=function(e,t){return e.filter(function(e){return e!==t})},Dn),gn=(Un.prototype.operate=function(e,t){return new Map},Un),En=(Mn.get=function(e){switch(e){case kr.SET:return new cn;case kr.SET_ONCE:return new fn;case kr.UNSET:return new ln;case kr.INCREMENT:return new pn;case kr.APPEND:return new dn;case kr.APPEND_ONCE:return new hn;case kr.PREPEND:return new yn;case kr.PREPEND_ONCE:return new vn;case kr.CLEAR_ALL:return new gn;case kr.REMOVE:return new mn}},Mn),wn=(Pn.prototype.set=function(e,t){return this.add(kr.SET,e,t)},Pn.prototype.setOnce=function(e,t){return this.add(kr.SET_ONCE,e,t)},Pn.prototype.unset=function(e){return this.add(kr.UNSET,e,"-")},Pn.prototype.increment=function(e,t){return this.add(kr.INCREMENT,e,t)},Pn.prototype.append=function(e,t){return this.add(kr.APPEND,e,t)},Pn.prototype.appendOnce=function(e,t){return this.add(kr.APPEND_ONCE,e,t)},Pn.prototype.prepend=function(e,t){return this.add(kr.PREPEND,e,t)},Pn.prototype.prependOnce=function(e,t){return this.add(kr.PREPEND_ONCE,e,t)},Pn.prototype.remove=function(e,t){return this.add(kr.REMOVE,e,t)},Pn.prototype.clearAll=function(){return this.add(kr.CLEAR_ALL,"clearAll","-")},Pn.prototype.build=function(){var e=Array.from(this.operations.entries()).map(function(e){return[e[0],e[1].build()]});return new Tn(new Map(e))},Pn.prototype.containsKey=function(t){return Array.from(this.operations.entries()).some(function(e){return e[0],e[1].contains(t)})},Pn.prototype.add=function(e,t,r){if(this.containsKey(t))return this;this.operations.has(e)||this.operations.set(e,new zr);e=this.operations.get(e);return null!=e&&e.add(t,r),this},Pn),Tn=(xn.prototype.operate=function(e){var r=e;return this.operations.forEach(function(e,t){r=En.get(t).operate(r,e)}),r},xn.prototype.toEvent=function(){var i={key:"$properties"};return this.operations.forEach(function(e,t){var r,n;i.properties=m(m({},i.properties),((r={})[t]=m(m({},null==(n=i.properties)?void 0:n[t]),Ne.sanitize(a.fromMap(e))),r))}),i},xn),bn=he.log,_n=(u.prototype.getSessionId=function(){return this.sessionManager.sessionId},u.prototype.getUser=function(){return this.userManager.currentUser},u.prototype.setUser=function(e){try{var t=Ue(e);if(!t)return void bn.warn("invalid user");this.userManager.setUser(t)}catch(e){bn.error("Unexpected exception while set user: ".concat(e))}},u.prototype.setUserId=function(e){try{void 0===e&&this.userManager.setUserId(void 0);var t=Se.sanitizeValue(e);if(!t)return void bn.warn("Invalid userId. [userId=".concat(e,"]"));this.userManager.setUserId(t)}catch(e){bn.error("Unexpected exception while set userId: ".concat(e))}},u.prototype.setDeviceId=function(e){try{if(!Se.sanitizeValue(e))return void bn.warn("Invalid deviceId. [deviceId=".concat(e,"]"));this.userManager.setDeviceId(e)}catch(e){bn.error("Unexpected exception while set deviceId: ".concat(e))}},u.prototype.setUserProperty=function(e,t){e=(new wn).set(e,t).build();this.updateUserProperties(e)},u.prototype.setUserProperties=function(e){try{var t=Ne.sanitize(e),r=new wn;Object.entries(t).forEach(function(e){var t=e[0],e=e[1];r.set(t,e)}),this.updateUserProperties(r.build())}catch(e){bn.error("Unexpected exception while set userProperties: ".concat(e))}},u.prototype.updateUserProperties=function(e){try{var t=e.toEvent();this.track(t),this.userManager.updateUserProperties(e)}catch(e){bn.error("Unexpected exception while update userProperties: ".concat(e))}},u.prototype.resetUser=function(){try{this.userManager.resetUser();var e=(new wn).clearAll().build();this.track(e.toEvent())}catch(e){bn.error("Unexpected exception while reset user: ".concat(e))}},u.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},u.prototype.variationDetail=function(n,i,e){var o=e||"A",e=Yt.start(),t=function(e){try{var t=e.userManager.resolveCurrentOrNull(i);if(!t)return bn.warn("invalid user"),Le.of(o,s.INVALID_INPUT);var r=e.hackleUserResolver.resolve(t);return e.core.experiment(n,r,o)}catch(e){return bn.error("Unexpected exception while deciding variation for experiment[".concat(n,"]. Returning default variation[").concat(o,"] : ").concat(e)),Le.of(o,s.EXCEPTION)}}(this);return Fr.experiment(e,n,t),t},u.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},u.prototype.featureFlagDetail=function(n,i){var e=Yt.start(),t=function(e){try{var t=e.userManager.resolveCurrentOrNull(i);if(!t)return bn.warn("invalid user"),Fe.off(s.INVALID_INPUT);var r=e.hackleUserResolver.resolve(t);return e.core.featureFlag(n,r)}catch(e){return bn.error("Unexpected exception while deciding feature flag[".concat(n,"]. Returning default value[false] : ").concat(e)),Fe.off(s.EXCEPTION)}}(this);return Fr.featureFlag(e,n,t),t},u.prototype.track=function(e,t){try{bn.debug("track event : ".concat(JSON.stringify(e)));var r=this._convertEvent(e),n=this.userManager.resolveCurrentOrNull(t);if(!n)return void bn.warn("invalid user");var i=this.hackleUserResolver.resolve(n);this.core.track(r,i)}catch(e){bn.error("Unexpected exception while tracking event: ".concat(e))}},u.prototype.trackPageView=function(e){bn.debug("tracking page view");var t=this.hackleUserResolver.resolve(this.userManager.currentUser);this.core.track({key:"$page_view"},t)},u.prototype.remoteConfig=function(e){return new Kr(this.core,this.userManager,this.hackleUserResolver,e)},u.prototype.onReady=function(e,t){this.core.onReady(e,t=void 0===t?3e3:t)},u.prototype.onInitialized=function(e){return this.core.onInitialized({timeout:null==e?void 0:e.timeout})},u.prototype.close=function(){bn.debug("Hackle Client is closing"),this.core.close()},u.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},u.prototype.showUserExplorer=function(){var e;null!=(e=this.devTools)&&e.userExplorer?(bn.debug("UserExplorer opened."),Dr.counter("user.explorer.show",{}).increment(),this.devTools.manager.userExplorer(this.devTools.userExplorer)):bn.error("UserExplorer is not provided")},u.prototype.hideUserExplorer=function(){this.devTools?this.devTools.manager.close():bn.warn("There is no active HackleDevtools.")},u),On=(kn.exposure=function(e,t,r,n){return new Rn(n,e,t.experiment,t.variationId,t.variationKey,t.reason,r)},kn.track=function(e,t,r,n){return new Sn(n,r,e,t)},kn.remoteConfig=function(e,t,r,n){return new In(n,e,t.parameter,t.valueId,t.reason,r)},kn.isExposure=function(e){return void 0!==e.experiment},kn.isTrack=function(e){return void 0!==e.eventType},kn.isRemoteConfig=function(e){return void 0!==e.parameter},kn.isExposureDto=function(e){return"experimentId"in e&&void 0!==e.experimentId},kn.isTrackDto=function(e){return"eventTypeId"in e&&void 0!==e.eventTypeId},kn.isRemoteConfigDto=function(e){return"parameterId"in e&&void 0!==e.parameterId},kn.prototype.toDto=function(){return{insertId:this.insertId,timestamp:this.timestamp,userId:this.user.identifiers[Ge.ID],identifiers:this.user.identifiers,userProperties:Ne.sanitize(this.user.properties),hackleProperties:Ne.sanitize(this.user.hackleProperties)}},kn),Rn=(ce(Cn,rn=On),Cn.prototype.copyWithUser=function(e){return new Cn(this.timestamp,e,this.experiment,this.variationId,this.variationKey,this.decisionReason,this.properties,this.insertId)},Cn.prototype.toDto=function(){return m(m({},rn.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})},Cn),Sn=(ce(An,tn=On),An.prototype.copyWithUser=function(e){return new An(this.timestamp,e,this.eventType,this.event,this.insertId)},An.prototype.toDto=function(){return m(m({},tn.prototype.toDto.call(this)),{eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:Ne.sanitize(this.event.properties)})},An),In=(ce(Nn,en=On),Nn.prototype.copyWithUser=function(e){return new Nn(this.timestamp,e,this.parameter,this.valueId,this.decisionReason,this.properties,this.insertId)},Nn.prototype.toDto=function(){return m(m({},en.prototype.toDto.call(this)),{parameterId:this.parameter.id,parameterKey:this.parameter.key,parameterType:this.parameter.type,valueId:this.valueId,decisionReason:this.decisionReason.toString(),properties:Ne.sanitize(this.properties)})},Nn);function Nn(e,t,r,n,i,o,s){e=en.call(this,e,t,s)||this;return e.parameter=r,e.valueId=n,e.decisionReason=i,e.properties=o,e}function An(e,t,r,n,i){e=tn.call(this,e,t,i)||this;return e.eventType=r,e.event=n,e}function Cn(e,t,r,n,i,o,s,a){e=rn.call(this,e,t,a)||this;return e.experiment=r,e.variationId=n,e.variationKey=i,e.decisionReason=o,e.properties=s,e}function kn(e,t,r){void 0===r&&(r=ae.v4()),this.timestamp=e,this.user=t,this.insertId=r}function u(e,t,r,n,i){this.core=e,this.hackleUserResolver=t,this.sessionManager=r,this.userManager=n,this.devTools=i}function xn(e){this.operations=null!=e?e:new Map}function Pn(){this.operations=new Map}function Mn(){}function Un(){}function Dn(){return null!==nn&&nn.apply(this,arguments)||this}function Ln(){return null!==on&&on.apply(this,arguments)||this}function Fn(){return null!==sn&&sn.apply(this,arguments)||this}function jn(){return null!==an&&an.apply(this,arguments)||this}function Vn(){return null!==un&&un.apply(this,arguments)||this}function Hn(){}function Kn(){}function zn(){}function Gn(){}function Bn(){}function qn(e){var t=new Array,r=new Array,n=new Array;return e.forEach(function(e){e instanceof On?On.isExposure(e)?t.push(e.toDto()):On.isTrack(e)?r.push(e.toDto()):On.isRemoteConfig(e)&&n.push(e.toDto()):On.isExposureDto(e)?t.push(e):On.isTrackDto(e)?r.push(e):On.isRemoteConfigDto(e)&&n.push(e)}),{exposureEvents:t,trackEvents:r,remoteConfigEvents:n}}li.prototype.dispatch=function(e,t,r){var n={},e=(n["X-HACKLE-SDK-KEY"]=this.sdkKey,n[ve]=this.headers[ve],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),qn(e)),i=Yt.start();this.httpRequest.postRequest(this.dispatchUrl,e,n,function(e){t(e),jr.record("post.events",i,!0)},function(e){null!=r&&r(e),jr.record("post.events",i,!1)})},li.prototype.dispatchXhrOrBeacon=function(e,t,r){var n,i,o;this.useBeacon?((n={})["X-HACKLE-SDK-KEY"]=this.sdkKey,n[ve]=this.headers[ve],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),i=qn(e),o=Yt.start(),this.httpRequest.sendBeacon(this.beaconDispatchUrl,i,n,function(e){t(e),jr.record("post.events",o,!0)},function(e){null!=r&&r(e),jr.record("post.events",o,!1)})):this.dispatch(e,t,r)};var Yn=li,$n=(fi.prototype.getInAppMessages=function(){return this.inAppMessages},fi.prototype.getExperiments=function(){return Array.from(this.experiments.values())},fi.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},fi.prototype.getFeatureFlags=function(){return Array.from(this.featureFlags.values())},fi.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},fi.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},fi.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},fi.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},fi.prototype.getContainerOrNull=function(e){return this.containers.get(e)},fi.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},fi.prototype.getRemoteConfigParameterOrNull=function(e){return this.remoteConfigParameters.get(e)},fi.prototype.getInAppMessageOrNull=function(t){return this.inAppMessages.find(function(e){return e.key===t})},fi.from=function(e){var t=c.associate(e.buckets,function(e){return[e.id,Ke.fromJSON(e)]});return new fi(c.associateBy(c.mapNotNullOrUndefined(e.experiments,function(e){return Ve.fromJSON("AB_TEST",e)}),function(e){return e.key}),c.associateBy(c.mapNotNullOrUndefined(e.featureFlags,function(e){return Ve.fromJSON("FEATURE_FLAG",e)}),function(e){return e.key}),t,c.associate(e.events,function(e){return[e.key,new Me(e.id,e.key)]}),c.associateBy(c.mapNotNullOrUndefined(e.segments,function(e){return Qe.fromJSON(e)}),function(e){return e.key}),c.associate(e.containers,function(e){return[e.id,Ze.fromJSON(e)]}),c.associate(e.parameterConfigurations,function(e){return[e.id,tt.fromJSON(e)]}),c.associateBy(c.mapNotNullOrUndefined(e.remoteConfigParameters,function(e){return rt.fromJSON(e)}),function(e){return e.key}),c.mapNotNullOrUndefined(e.inAppMessages,function(e){return zt.fromJSON(e)}))},fi),Jn=(ci.prototype.onReady=function(){return this.readyPromise},ci.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},ci.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()},ci.prototype.get=function(){return this.workspace},ci.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)},ci.prototype.fetch=function(){function t(e){e=e.isSuccess,jr.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[ve]=this.headers[ve],r["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],Yt.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()},ci.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},ci.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=$n.from(t),this.readyPromiseResolver())}},ci.prototype.onRequestRejected=function(e,t){this.isStarted&&(t({isSuccess:!1}),this.errorRetryController.countError(),console.error("Error fetching data",e))},ci.prototype.close=function(){this.stop()},ci),Xn=(ui.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*me[Math.min(me.length-1,this.errorCount)]+Math.round(1e3*Math.random())},ui.prototype.countError=function(){this.errorCount<me.length-1&&this.errorCount++},ui.prototype.reset=function(){this.errorCount=0},ui),r="model",o="name",l="type",p="vendor",d="version",h="mobile",y="tablet",Wn=(v.parse=function(e){return{browser:v.getBrowser(e),cpu:v.getCPU(e),device:v.getDevice(e),engine:v.getEngine(e),os:v.getOS(e)}},v.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return v.mapper.rgx.call(t,e,v.regexes.browser),t.major=v.util.major(t.version),t},v.getCPU=function(e){var t={architecture:void 0};return v.mapper.rgx.call(t,e,v.regexes.cpu),t},v.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return v.mapper.rgx.call(t,e,v.regexes.device),t},v.getEngine=function(e){var t={name:void 0,version:void 0};return v.mapper.rgx.call(t,e,v.regexes.os),t},v.getOS=function(e){var t={name:void 0,version:void 0};return v.mapper.rgx.call(t,e,v.regexes.os),t},v.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,"")}},v.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,(v.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],f=r=0;f<u.length&&!o;)if(o=u[f++].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(v.util.has(t[r][n],e))return"?"===r?void 0:r}else if(v.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(v.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",v.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",v.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",v.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[r,p,[l,y]],[/applecoremedia\/[\w\.]+ \((ipad)/],[r,[p,"Apple"],[l,y]],[/(apple\s{0,1}tv)/i],[[r,"Apple TV"],[p,"Apple"],[l,"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,[l,y]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[r,[p,"Amazon"],[l,y]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[r,v.mapper.str,v.maps.device.amazon.model],[p,"Amazon"],[l,h]],[/android.+aft([bms])\sbuild/i],[r,[p,"Amazon"],[l,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[r,p,[l,h]],[/\((ip[honed|\s\w*]+);/i],[r,[p,"Apple"],[l,h]],[/(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,[l,h]],[/\(bb10;\s(\w+)/i],[r,[p,"BlackBerry"],[l,h]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[r,[p,"Asus"],[l,y]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[p,"Sony"],[r,"Xperia Tablet"],[l,y]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[p,"Sony"],[l,h]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[p,r,[l,"console"]],[/android.+;\s(shield)\sbuild/i],[r,[p,"Nvidia"],[l,"console"]],[/(playstation\s[34portablevi]+)/i],[r,[p,"Sony"],[l,"console"]],[/(sprint\s(\w+))/i],[[p,v.mapper.str,v.maps.device.sprint.vendor],[r,v.mapper.str,v.maps.device.sprint.model],[l,h]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[p,[r,/_/g," "],[l,h]],[/(nexus\s9)/i],[r,[p,"HTC"],[l,y]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[r,[p,"Huawei"],[l,h]],[/android.+(bah2?-a?[lw]\d{2})/i],[r,[p,"Huawei"],[l,y]],[/(microsoft);\s(lumia[\s\w]+)/i],[p,r,[l,h]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[r,[p,"Microsoft"],[l,"console"]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[p,"Microsoft"],[l,h]],[/\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"],[l,h]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[p,"Motorola"],[l,y]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[p,v.util.trim],[r,v.util.trim],[l,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[p,"Samsung"],[l,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[r,[p,"Sharp"],[l,"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,[l,y]],[/smart-tv.+(samsung)/i],[p,[l,"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,[l,h]],[/sie-(\w*)/i],[r,[p,"Siemens"],[l,h]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[p,"Nokia"],r,[l,h]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[p,"Acer"],[l,y]],[/android.+([vl]k\-?\d{3})\s+build/i],[r,[p,"LG"],[l,y]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[p,"LG"],r,[l,y]],[/(lg) netcast\.tv/i],[p,r,[l,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[r,[p,"LG"],[l,h]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[p,r,[l,y]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[r,[p,"Lenovo"],[l,y]],[/(lenovo)[_\s-]?([\w-]+)/i],[p,r,[l,h]],[/linux;.+((jolla));/i],[p,r,[l,h]],[/((pebble))app\/[\d\.]+\s/i],[p,r,[l,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[p,r,[l,h]],[/crkey/i],[[r,"Chromecast"],[p,"Google"],[l,"smarttv"]],[/android.+;\s(glass)\s\d/i],[r,[p,"Google"],[l,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[r,[p,"Google"],[l,y]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[r,[p,"Google"],[l,h]],[/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"],[l,h]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[p,"Xiaomi"],[l,y]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[r,[p,"Meizu"],[l,h]],[/(mz)-([\w-]{2,})/i],[[p,"Meizu"],r,[l,h]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[r,[p,"OnePlus"],[l,h]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[r,[p,"RCA"],[l,y]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[r,[p,"Dell"],[l,y]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[r,[p,"Verizon"],[l,y]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[p,"Barnes & Noble"],r,[l,y]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[r,[p,"NuVision"],[l,y]],[/android.+;\s(k88)\sbuild/i],[r,[p,"ZTE"],[l,y]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[r,[p,"Swiss"],[l,h]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[r,[p,"Swiss"],[l,y]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[r,[p,"Zeki"],[l,y]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[p,"Dragon Touch"],r,[l,y]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[r,[p,"Insignia"],[l,y]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[r,[p,"NextBook"],[l,y]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[p,"Voice"],r,[l,h]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[p,"LvTel"],r,[l,h]],[/android.+;\s(PH-1)\s/i],[r,[p,"Essential"],[l,h]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[r,[p,"Envizen"],[l,y]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[p,r,[l,y]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[r,[p,"MachSpeed"],[l,y]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[p,r,[l,y]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[r,[p,"Rotor"],[l,y]],[/android.+(KS(.+))\s+build/i],[r,[p,"Amazon"],[l,y]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[p,r,[l,y]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[l,v.util.lowerize],p,r],[/[\s\/\(](smart-?tv)[;\)]/i],[[l,"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,v.mapper.str,v.maps.os.windows],[d,v.mapper.str,v.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[d,v.mapper.str,v.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]]},v),Qn=(ai.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=Wn.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||""}},ai),Zn=(si.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]:""},si.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},si.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},si.prototype.setItem=function(e,t,r){var r=m(m({},this.options),r),n=r.isSecure,i="",o="",s="",a=(r.isCrossSubdomain&&(i=(a=si.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},si.prototype.removeItem=function(e,t){this.setItem(e,"",m(m({},t),{days:-1}))},new si({days:3650,isCrossSubdomain:!0})),ei=(oi.prototype.getQueryParam=function(e){return this.getQueryParams(function(){return!0})[e]||""},oi.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},oi),ti=(ii.prototype.resolve=function(e){var t=pi(),t=(new Be).addIdentifiers(e.identifiers||{}).add(Ge.ID,e.id||t).add(Ge.DEVICE,e.deviceId||t).add(Ge.HACKLE_DEVICE,t);return a.isNotNullOrUndefined(e.userId)&&t.add(Ge.USER,e.userId),{identifiers:t.build(),properties:this._userProperties(e.properties),hackleProperties:this._getHackleProperties()}},ii.prototype.resolveCurrentUser=function(){return this.resolve(this.userManager.currentUser)},ii.prototype._userProperties=function(e){void 0===e&&(e={});var t,r={};return"undefined"!=typeof window&&(t=new ei(window.location.search),r=m(m({},t.getQueryParams(function(e){return e.startsWith("utm_")})),t.getQueryParams(function(e){return["gclid","fbclid"].includes(e)}))),m(m({},r),e)},ii.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?Qn.generate(window):e)||{}},ii),ri=(ni.initialize=function(){Zn.getItem("_hackle_hid")||yi()},ni.reInitialize=function(){yi()},ni);function ni(){}function ii(e){this.userManager=e,ri.initialize()}function oi(e){this.search=e}function si(e){this.options=e=void 0===e?{days:0,isCrossSubdomain:!1,isSecure:!1,isCrossSite:!1}:e}function ai(){}function v(){}function ui(){this.errorCount=0}function ci(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 Xn,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function fi(e,t,r,n,i,o,s,a,u){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n,this.segments=i,this.containers=o,this.parameterConfigurations=s,this.remoteConfigParameters=a,this.inAppMessages=u}function li(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 pi(){var e=Zn.getItem("_hackle_id");return e||Zn.getItem("_hackle_hid")||yi()}function di(e){Zn.setItem("_hackle_id",e)}function hi(){Zn.removeItem("_hackle_id")}function yi(){var e=ae.v4();return Zn.setItem("_hackle_hid",e),e}function vi(e){return e&&e.Math==Math&&e}function g(e){try{return!!e()}catch(e){return!0}}var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},y=vi("object"==typeof globalThis&&globalThis)||vi("object"==typeof window&&window)||vi("object"==typeof self&&self)||vi("object"==typeof h&&h)||function(){return this}()||Function("return this")(),l={},r=!g(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),p=!g(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),mi=Function.prototype.call,o=p?mi.bind(mi):function(){return mi.apply(mi,arguments)},d={},e={}.propertyIsEnumerable,gi=Object.getOwnPropertyDescriptor,h=gi&&!e.call({1:2},1);d.f=h?function(e){e=gi(this,e);return!!e&&e.enumerable}:e;function Ei(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function wi(e){return ji(Fi(e),8,-1)}function Ti(e){if(null==e)throw zi("Can't call method on "+e);return e}function bi(e){return Gi(Bi(e))}function E(e){return"function"==typeof e}function _i(e){return"object"==typeof e?null!==e:qi(e)}function Oi(e,t){return arguments.length<2?(r=Yi[e],$i(r)?r:void 0):Yi[e]&&Yi[e][t];var r}function Ri(e){try{return io(e)}catch(e){return"Object"}}function Si(e){if(oo(e))return e;throw ao(so(e)+" is not a function")}function Ii(e,t){return null==(e=e[t])?void 0:uo(e)}function Ni(t,r){try{yo(ho,t,{value:r,configurable:!0,writable:!0})}catch(e){ho[t]=r}return r}function Ai(e){return Eo(go(e))}function Ci(e){return"Symbol("+(void 0===e?"":e)+")_"+Ro(++_o+Oo,36)}function ki(e){var t;return Io(ko,e)&&(Ao||"string"==typeof ko[e])||(t="Symbol."+e,Ao&&Io(xo,e)?ko[e]=xo[e]:ko[e]=(Co&&Po?Po:Mo)(t)),ko[e]}function xi(e){return e=function(e,t){if(!Do(e)||Lo(e))return e;var r=Fo(e,Ho);if(r){if(r=Uo(r,e,t=void 0===t?"default":t),!Do(r)||Lo(r))return r;throw Vo("Can't convert object to primitive value")}return jo(e,t=void 0===t?"number":t)}(e,"string"),Ko(e)?e:e+""}function Pi(e){return Go?zo.createElement(e):{}}function Mi(e){if(es(e))return e;throw rs(ts(e)+" is not an object")}var h=p,e=Function.prototype,Ui=e.bind,Di=e.call,Li=h&&Ui.bind(Di,Di),e=h?function(e){return e&&Li(e)}:function(e){return e&&function(){return Di.apply(e,arguments)}},Ui=e,Fi=Ui({}.toString),ji=Ui("".slice),h=g,Vi=wi,Hi=Object,Ki=e("".split),Ui=h(function(){return!Hi("z").propertyIsEnumerable(0)})?function(e){return"String"==Vi(e)?Ki(e,""):Hi(e)}:Hi,zi=TypeError,Gi=Ui,Bi=Ti,qi=E,Yi=y,$i=E,h=e({}.isPrototypeOf),Ji=Oi("navigator","userAgent")||"",Xi=Ji,w=y.process,Wi=y.Deno,w=w&&w.versions||Wi&&Wi.version,Wi=w&&w.v8,w=no=!(no=Wi?0<(T=Wi.split("."))[0]&&T[0]<4?1:+(T[0]+T[1]):no)&&Xi&&(!(T=Xi.match(/Edge\/(\d+)/))||74<=T[1])&&(T=Xi.match(/Chrome\/(\d+)/))?+T[1]:no,Qi=w,Wi=g,Xi=!!Object.getOwnPropertySymbols&&!Wi(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Qi&&Qi<41}),T=Xi&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Zi=Oi,eo=E,to=h,ro=Object,no=T?function(e){return"symbol"==typeof e}:function(e){var t=Zi("Symbol");return eo(t)&&to(t.prototype,ro(e))},io=String,oo=E,so=Ri,ao=TypeError,uo=Si,co=o,fo=E,lo=_i,po=TypeError,Wi={exports:{}},ho=y,yo=Object.defineProperty,vo=Ni,vo=y["__core-js_shared__"]||vo("__core-js_shared__",{}),mo=vo,go=((Wi.exports=function(e,t){return mo[e]||(mo[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"}),Ti),Eo=Object,wo=Ai,To=e({}.hasOwnProperty),b=Object.hasOwn||function(e,t){return To(wo(e),t)},bo=e,_o=0,Oo=Math.random(),Ro=bo(1..toString),bo=y,So=Wi.exports,Io=b,No=Ci,Ao=Xi,Co=T,ko=So("wks"),xo=bo.Symbol,Po=xo&&xo.for,Mo=Co?xo:xo&&xo.withoutSetter||No,Uo=o,Do=_i,Lo=no,Fo=Ii,jo=function(e,t){var r,n;if("string"===t&&fo(r=e.toString)&&!lo(n=co(r,e)))return n;if(fo(r=e.valueOf)&&!lo(n=co(r,e)))return n;if("string"!==t&&fo(r=e.toString)&&!lo(n=co(r,e)))return n;throw po("Can't convert object to primitive value")},Vo=TypeError,Ho=ki("toPrimitive"),Ko=no,Xi=_i,zo=y.document,Go=Xi(zo)&&Xi(zo.createElement),Bo=Pi,T=!r&&!g(function(){return 7!=Object.defineProperty(Bo("div"),"a",{get:function(){return 7}}).a}),qo=o,Yo=d,$o=Ei,Jo=bi,Xo=xi,Wo=b,Qo=T,Zo=Object.getOwnPropertyDescriptor,So=(l.f=r?Zo:function(e,t){if(e=Jo(e),t=Xo(t),Qo)try{return Zo(e,t)}catch(e){}if(Wo(e,t))return $o(!qo(Yo.f,e,t),e[t])},{}),bo=r&&g(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),es=_i,ts=String,rs=TypeError,ns=T,is=Mi,os=xi,ss=TypeError,as=Object.defineProperty,us=Object.getOwnPropertyDescriptor,cs=(So.f=r?bo?function(e,t,r){var n;return is(e),t=os(t),is(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=us(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}),as(e,t,r)}:as:function(e,t,r){if(is(e),t=os(t),is(r),ns)try{return as(e,t,r)}catch(e){}if("get"in r||"set"in r)throw ss("Accessors not supported");return"value"in r&&(e[t]=r.value),e},So),fs=Ei,No=r?function(e,t,r){return cs.f(e,t,fs(1,r))}:function(e,t,r){return e[t]=r,e},no={exports:{}},Xi=r,d=b,T=Function.prototype,ls=Xi&&Object.getOwnPropertyDescriptor,d=d(T,"name"),d={EXISTS:d,PROPER:d&&"something"===function(){}.name,CONFIGURABLE:d&&(!Xi||ls(T,"name").configurable)},Xi=E,ls=vo,ps=e(Function.toString);Xi(ls.inspectSource)||(ls.inspectSource=function(e){return ps(e)});function ds(e){return ks[e]||(ks[e]=Cs(e))}function hs(e,t,r,n){var i=(n=n||{}).enumerable,o=void 0!==n.name?n.name:t;if($s(r)&&Xs(r,o,n),n.global)i?e[t]=r:Ws(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=r:Js.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function ys(e){return(e=+e)!=e||0==e?0:ea(e)}function vs(e,t){return(e=ta(e))<0?ra(e+t,0):na(e,t)}function _(e){return 0<(e=e.length)?oa(ia(e),9007199254740991):0}function ms(a){return function(e,t,r){var n,i=sa(e),o=ua(i),s=aa(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 gs(e,t){var r,n=fa(e),i=0,o=[];for(r in n)!ca(pa,r)&&ca(n,r)&&da(o,r);for(;t.length>i;)!ca(n,r=t[i++])||~la(o,r)||da(o,r);return o}function Es(e,t,r){for(var n=Ta(t),i=_a.f,o=ba.f,s=0;s<n.length;s++){var a=n[s];wa(e,a)||r&&wa(r,a)||i(e,a,o(t,a))}}function ws(e,t){return(e=Na[Ia(e)])==Ca||e!=Aa&&(Ra(t)?Oa(t):!!t)}function O(e,t){var r,n,i,o,s=e.target,a=e.global,u=e.stat;if(r=a?ka:u?ka[s]||Ua(s,{}):(ka[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(o=xa(r,n))&&o.value:r[n],!La(a?n:s+(u?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Da(i,o)}(e.sham||o&&o.sham)&&Pa(i,"sham",!0),Ma(r,n,i,e)}}var Ts,bs,_s,Os,Rs,Ss,Is,Ns,T=ls.inspectSource,Xi=E,ls=T,As=y.WeakMap,Xi=Xi(As)&&/native code/.test(ls(As)),ls=Wi.exports,Cs=Ci,ks=ls("keys"),As={},Wi=e,xs=_i,Ps=No,Ms=b,ls=vo,R=ds,Us=As,Ds=y.TypeError,Ls=y.WeakMap,Xi=(Is=Xi||ls.state?(Ts=ls.state||(ls.state=new Ls),bs=Wi(Ts.get),_s=Wi(Ts.has),Os=Wi(Ts.set),Rs=function(e,t){if(_s(Ts,e))throw new Ds("Object already initialized");return t.facade=e,Os(Ts,e,t),t},Ss=function(e){return bs(Ts,e)||{}},function(e){return _s(Ts,e)}):(Us[Ns=R("state")]=!0,Rs=function(e,t){if(Ms(e,Ns))throw new Ds("Object already initialized");return t.facade=e,Ps(e,Ns,t),t},Ss=function(e){return Ms(e,Ns)?e[Ns]:{}},function(e){return Ms(e,Ns)}),{set:Rs,get:Ss,has:Is,enforce:function(e){return Is(e)?Ss(e):Rs(e,{})},getterFor:function(t){return function(e){if(xs(e)&&(e=Ss(e)).type===t)return e;throw Ds("Incompatible receiver, "+t+" required")}}}),ls=g,Fs=E,js=b,Vs=r,Hs=d.CONFIGURABLE,Ks=T,zs=Xi.enforce,Gs=Xi.get,Bs=Object.defineProperty,qs=Vs&&!ls(function(){return 8!==Bs(function(){},"length",{value:8}).length}),Ys=String(String).split("String"),Ls=no.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),(!js(e,"name")||Hs&&e.name!==t)&&(Vs?Bs(e,"name",{value:t,configurable:!0}):e.name=t),qs&&r&&js(r,"arity")&&e.length!==r.arity&&Bs(e,"length",{value:r.arity});try{r&&js(r,"constructor")&&r.constructor?Vs&&Bs(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=zs(e);return js(r,"source")||(r.source=Ys.join("string"==typeof t?t:"")),e},$s=(Function.prototype.toString=Ls(function(){return Fs(this)&&Gs(this).source||Ks(this)},"toString"),E),Js=So,Xs=no.exports,Ws=Ni,Wi={},Qs=Math.ceil,Zs=Math.floor,ea=Math.trunc||function(e){e=+e;return(0<e?Zs:Qs)(e)},ta=ys,ra=Math.max,na=Math.min,ia=ys,oa=Math.min,sa=bi,aa=vs,ua=_,Us={includes:ms(!0),indexOf:ms(!1)},ca=b,fa=bi,la=Us.indexOf,pa=As,da=e([].push),R=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ha=gs,ya=R.concat("length","prototype"),ls=(Wi.f=Object.getOwnPropertyNames||function(e){return ha(e,ya)},{}),Ls=(ls.f=Object.getOwnPropertySymbols,Oi),va=Wi,ma=ls,ga=Mi,Ea=e([].concat),ls=Ls("Reflect","ownKeys")||function(e){var t=va.f(ga(e)),r=ma.f;return r?Ea(t,r(e)):t},wa=b,Ta=ls,ba=l,_a=So,Oa=g,Ra=E,Sa=/#|\.prototype\./,Ia=ws.normalize=function(e){return String(e).replace(Sa,".").toLowerCase()},Na=ws.data={},Aa=ws.NATIVE="N",Ca=ws.POLYFILL="P",Ls=ws,ka=y,xa=l.f,Pa=No,Ma=hs,Ua=Ni,Da=Es,La=Ls,ls=!g(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Fa=b,ja=E,Va=Ai,Ha=ds("IE_PROTO"),Ka=Object,za=Ka.prototype,ls=ls?Ka.getPrototypeOf:function(e){e=Va(e);if(Fa(e,Ha))return e[Ha];var t=e.constructor;return ja(t)&&e instanceof t?t.prototype:e instanceof Ka?za:null},Ga=E,Ba=String,qa=TypeError,Ya=e,$a=Mi,Ja=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=Ya(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return $a(e),function(e){if("object"==typeof e||Ga(e))return;throw qa("Can't set "+Ba(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),Xa={},Wa=gs,Qa=R,S=Object.keys||function(e){return Wa(e,Qa)},Za=So,eu=Mi,tu=bi,ru=S;Xa.f=r&&!bo?Object.defineProperties:function(e,t){eu(e);for(var r,n=tu(t),i=ru(t),o=i.length,s=0;s<o;)Za.f(e,r=i[s++],n[r]);return e};function nu(){}function iu(e){e.write(Tu("")),e.close();var t=e.parentWindow.Object;return e=null,t}function ou(e,t){return Au(e),void 0===t?e:Cu?ku(e,t):function(){return e.apply(t,arguments)}}function su(e){return void 0!==e&&(xu.Array===e||Mu[Pu]===e)}function au(e){if(null!=e)return Hu(e,zu)||Hu(e,"@@iterator")||Ku[Vu(e)]}function uu(e,t){if(t=arguments.length<2?$u(e):t,Bu(t))return qu(Gu(t,e));throw Ju(Yu(e)+" is not iterable")}function cu(e,t,r){var n,i;Wu(e);try{if(!(n=Qu(e,"return"))){if("throw"===t)throw r;return r}n=Xu(n,e)}catch(e){i=!0,n=e}if("throw"===t)throw r;if(i)throw n;return Wu(n),r}function fu(e,t){this.stopped=e,this.result=t}function lu(e,t,r){function n(e){return o&&uc(o,"normal",e),new fu(!0,e)}function i(e){return p?(tc(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,f,l=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),v=Zu(t,l);if(d)o=e.iterator;else if(h)o=e;else{if(!(r=ac(e)))throw cc(rc(e)+" is not iterable");if(nc(r)){for(s=0,a=ic(e);s<a;s++)if((u=i(e[s]))&&oc(fc,u))return u;return new fu(!1)}o=sc(e,r)}for(c=(d?e:o).next;!(f=ec(c,o)).done;){try{u=i(f.value)}catch(e){uc(o,"throw",e)}if("object"==typeof u&&u&&oc(fc,u))return u}return new fu(!1)}function pu(e){if("Symbol"===lc(e))throw TypeError("Cannot convert a Symbol value to a string");return pc(e)}function du(e,t){var r,n=2<arguments.length?arguments[2]:void 0,i=vc(Ic,this);return gc?r=gc(new Rc,i?mc(this):Ic):(r=i?this:wc(Ic),Tc(r,Oc,"Error")),void 0!==t&&Tc(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:dc(e)}(t)),_c&&Tc(r,"stack",function(e,t){if(Su&&"string"==typeof e&&!_u.prepareStackTrace)for(;t--;)e=Ou(e,Ru,"");return e}(r.stack,1)),i=r,Iu(t=n)&&"cause"in t&&Nu(i,"cause",t.cause),bc(e,Sc,{that:n=[]}),Tc(r,"errors",n),r}var hu,S=Oi("document","documentElement"),yu=Mi,vu=Xa,mu=R,bo=As,gu=S,Eu=Pi,wu=ds("IE_PROTO"),Tu=function(e){return"<script>"+e+"<\/script>"},bu=function(){try{hu=new ActiveXObject("htmlfile")}catch(e){}var e,t;bu="undefined"==typeof document||document.domain&&hu?iu(hu):((t=Eu("iframe")).style.display="none",gu.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Tu("document.F=Object")),e.close(),e.F);for(var r=mu.length;r--;)delete bu.prototype[mu[r]];return bu()},Xa=(bo[wu]=!0,Object.create||function(e,t){var r;return null!==e?(nu.prototype=yu(e),r=new nu,nu.prototype=null,r[wu]=e):r=bu(),void 0===t?r:vu.f(r,t)}),_u=Error,Ou=e("".replace),R=String(_u("zxcasd").stack),Ru=/\n\s*at [^:]*:[^\n]*/,Su=Ru.test(R),Iu=_i,Nu=No,Au=Si,Cu=p,ku=e(e.bind),bo={},xu=bo,Pu=ki("iterator"),Mu=Array.prototype,R={},R=(R[ki("toStringTag")]="z","[object z]"===String(R)),I=R,Uu=E,Du=wi,Lu=ki("toStringTag"),Fu=Object,ju="Arguments"==Du(function(){return arguments}()),I=I?Du: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=Fu(e),Lu))?t:ju?Du(e):"Object"==(t=Du(e))&&Uu(e.callee)?"Arguments":t},Vu=I,Hu=Ii,Ku=bo,zu=ki("iterator"),Gu=o,Bu=Si,qu=Mi,Yu=Ri,$u=au,Ju=TypeError,Xu=o,Wu=Mi,Qu=Ii,Zu=ou,ec=o,tc=Mi,rc=Ri,nc=su,ic=_,oc=h,sc=uu,ac=au,uc=cu,cc=TypeError,fc=fu.prototype,lc=I,pc=String,dc=pu,hc=Ei,N=!g(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",hc(1,7)),7!==e.stack)}),yc=O,vc=h,mc=ls,gc=Ja,Ec=Es,wc=Xa,Tc=No,A=Ei,bc=lu,_c=N,Oc=ki("toStringTag"),Rc=Error,Sc=[].push,Ic=(gc?gc(du,Rc):Ec(du,Rc,{name:!0}),du.prototype=wc(Rc.prototype,{constructor:A(1,du),message:A(1,""),name:A(1,"AggregateError")})),N=(yc({global:!0,constructor:!0,arity:2},{AggregateError:du}),ki),Ec=Xa,A=So.f,Nc=N("unscopables"),Ac=Array.prototype;null==Ac[Nc]&&A(Ac,Nc,{configurable:!0,value:Ec(null)});function C(e){Ac[Nc][e]=!0}var Cc,yc=g,N=E,A=ls,Ec=hs,kc=ki("iterator"),k=!1;[].keys&&("next"in(x=[].keys())?(A=A(A(x)))!==Object.prototype&&(Cc=A):k=!0);function xc(e,t,r){(e=e&&!r?e.prototype:e)&&!Dc(e,Lc)&&Uc(e,Lc,{configurable:!0,value:t})}function Pc(){return this}function Mc(e,t,r,n,i,o,s){var a=r,u=t,c=void 0;function f(e){if(e===i&&v)return v;if(!rf&&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=jc(Fc,{next:Vc(+!c,n)}),Hc(a,u,!1),Kc[u]=zc;var l,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[nf]||h["@@iterator"]||i&&h[i],v=!rf&&y||f(i);if((n="Array"==t&&h.entries||y)&&(a=Yc(n.call(new e)))!==Object.prototype&&a.next&&(Yc(a)!==tf&&($c?$c(a,tf):qc(a[nf])||Wc(a,nf,Pc)),Jc(a,c,!0)),Zc&&"values"==i&&y&&"values"!==y.name&&(ef?Xc(h,"name","values"):(d=!0,v=function(){return Bc(y,this)})),i)if(l={values:f("values"),keys:o?v:f("keys"),entries:f("entries")},s)for(p in l)!rf&&!d&&p in h||Wc(h,p,l[p]);else Gc({target:t,proto:!0,forced:rf||d},l);return h[nf]!==v&&Wc(h,nf,v,{name:i}),Qc[t]=v,l}N((Cc=null==Cc||yc(function(){var e={};return Cc[kc].call(e)!==e})?{}:Cc)[kc])||Ec(Cc,kc,function(){return this});var x={IteratorPrototype:Cc,BUGGY_SAFARI_ITERATORS:k},Uc=So.f,Dc=b,Lc=ki("toStringTag"),Fc=x.IteratorPrototype,jc=Xa,Vc=Ei,Hc=xc,Kc=bo,zc=function(){return this},Gc=O,Bc=o,qc=E,Yc=ls,$c=Ja,Jc=xc,Xc=No,Wc=hs,Qc=bo,Zc=d.PROPER,ef=d.CONFIGURABLE,tf=x.IteratorPrototype,rf=x.BUGGY_SAFARI_ITERATORS,nf=ki("iterator"),of=bi,A=C,N=bo,yc=Xi,Ec=So.f,k=Mc,d=r,sf=yc.set,af=yc.getterFor("Array Iterator"),x=k(Array,"Array",function(e,t){sf(this,{type:"Array Iterator",target:of(e),index:0,kind:t})},function(){var e=af(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"),bo=N.Arguments=N.Array;if(A("keys"),A("values"),A("entries"),d&&"values"!==bo.name)try{Ec(bo,"name",{value:"values"})}catch(r1){}function uf(e){var e=hf(e),t=yf.f;vf&&e&&!e[mf]&&t(e,mf,{configurable:!0,get:function(){return this}})}function cf(e,t){if(gf(t,e))return e;throw Ef("Incorrect invocation")}function ff(){}function lf(e){if(!wf(e))return!1;try{return Of(ff,_f,e),!0}catch(e){return!1}}function pf(e){if(!wf(e))return!1;switch(Tf(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return If||!!Sf(Rf,bf(e))}catch(e){return!0}}var df=I,yc=(R||hs(Object.prototype,"toString",R?{}.toString:function(){return"[object "+df(this)+"]"},{unsafe:!0}),"process"==wi(y.process)),hf=Oi,yf=So,vf=r,mf=ki("species"),gf=h,Ef=TypeError,k=e,N=g,wf=E,Tf=I,bf=T,_f=[],Of=Oi("Reflect","construct"),Rf=/^\s*(?:class|function)\b/,Sf=k(Rf.exec),If=!Rf.exec(ff);pf.sham=!0;function Nf(e,t){var r,e=Mf(e).constructor;if(void 0===e||null==(r=Mf(e)[Uf]))return t;if(kf(e=r))return e;throw Pf(xf(e)+" is not a constructor")}var Af,Cf,A=!Of||N(function(){var e;return lf(lf.call)||!lf(Object)||!lf(function(){e=!0})||e})?pf:lf,kf=A,xf=Ri,Pf=TypeError,Mf=Mi,Uf=ki("species"),d=Function.prototype,Df=d.apply,Lf=d.call,Ec="object"==typeof Reflect&&Reflect.apply||(p?Lf.bind(Df):function(){return Lf.apply(Df,arguments)}),bo=e([].slice),Ff=TypeError,R=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ji),jf=y,Vf=Ec,h=ou,Hf=E,Kf=b,I=g,zf=S,Gf=bo,Bf=Pi,k=R,N=yc,d=jf.setImmediate,p=jf.clearImmediate,qf=jf.process,Yf=jf.Dispatch,$f=jf.Function,S=jf.MessageChannel,Jf=jf.String,Xf=0,Wf={};try{Af=jf.location}catch(r1){}function Qf(e){return function(){tl(e)}}function Zf(e){tl(e.data)}function el(e){jf.postMessage(Jf(e),Af.protocol+"//"+Af.host)}var tl=function(e){var t;Kf(Wf,e)&&(t=Wf[e],delete Wf[e],t())};d&&p||(d=function(e){var t=arguments.length,r=1;if(t<r)throw Ff("Not enough arguments");var n=Hf(e)?e:$f(e),i=Gf(arguments,1);return Wf[++Xf]=function(){Vf(n,void 0,i)},Cf(Xf),Xf},p=function(e){delete Wf[e]},N?Cf=function(e){qf.nextTick(Qf(e))}:Yf&&Yf.now?Cf=function(e){Yf.now(Qf(e))}:S&&!k?(k=(N=new S).port2,N.port1.onmessage=Zf,Cf=h(k.postMessage,k)):jf.addEventListener&&Hf(jf.postMessage)&&!jf.importScripts&&Af&&"file:"!==Af.protocol&&!I(el)?(Cf=el,jf.addEventListener("message",Zf,!1)):Cf="onreadystatechange"in Bf("script")?function(e){zf.appendChild(Bf("script")).onreadystatechange=function(){zf.removeChild(this),tl(e)}}:function(e){setTimeout(Qf(e),0)});function rl(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function nl(){this.head=null,this.tail=null}function il(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=Rl(r),this.reject=Rl(n)}var ol,sl,al,ul,cl,fl,ll,S={set:d,clear:p},N=y,h=/ipad|iphone|ipod/i.test(Ji)&&void 0!==N.Pebble,k=/web0s(?!.*chrome)/i.test(Ji),I=y,d=ou,p=l.f,pl=S.set,N=R,l=h,R=k,dl=yc,h=I.MutationObserver||I.WebKitMutationObserver,k=I.document,hl=I.process,yl=I.Promise,p=p(I,"queueMicrotask"),p=p&&p.value,R=(p||(ol=function(){var e,t;for(dl&&(e=hl.domain)&&e.exit();sl;){t=sl.fn,sl=sl.next;try{t()}catch(e){throw sl?ul():al=void 0,e}}al=void 0,e&&e.enter()},ul=N||dl||R||!h||!k?!l&&yl&&yl.resolve?((N=yl.resolve(void 0)).constructor=yl,ll=d(N.then,N),function(){ll(ol)}):dl?function(){hl.nextTick(ol)}:(pl=d(pl,I),function(){pl(ol)}):(cl=!0,fl=k.createTextNode(""),new h(ol).observe(fl,{characterData:!0}),function(){fl.data=cl=!cl})),p||function(e){e={fn:e,next:void 0};al&&(al.next=e),sl||(sl=e,ul()),al=e}),vl=y,l=(nl.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}},nl),yl=y.Promise,N="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,d=!N&&!yc&&"object"==typeof window&&"object"==typeof document,I=y,ml=yl,k=E,h=Ls,gl=T,p=ki,El=d,wl=N,Tl=w,bl=(ml&&ml.prototype,p("species")),_l=!1,Ol=k(I.PromiseRejectionEvent),T={CONSTRUCTOR:h("Promise",function(){var e=gl(ml),t=e!==String(ml);if(!t&&66===Tl)return!0;if(!Tl||Tl<51||!/native code/.test(e)){var e=new ml(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[bl]=r,!(_l=e.then(function(){})instanceof r))return!0}return!t&&(El||wl)&&!Ol}),REJECTION_EVENT:Ol,SUBCLASSING:_l},d={},Rl=Si;d.f=function(e){return new il(e)};function Sl(e,t){var r,n,i,o,s=t.value,a=1==t.state,u=a?e.ok:e.fail,c=e.resolve,f=e.reject,l=e.domain;try{u?(a||(2===t.rejection&&(o=t,xl(Fl,kl,function(){var e=o.facade;Cl?Wl.emit("rejectionHandled",e):np("rejectionhandled",e,o.value)})),t.rejection=1),!0===u?r=s:(l&&l.enter(),r=u(s),l&&(l.exit(),i=!0)),r===e.promise?f(Jl("Promise-chain cycle")):(n=tp(r))?xl(n,r,c,f):c(r)):f(s)}catch(e){l&&!i&&l.exit(),f(e)}}var Il,Nl,Al,N=O,Cl=yc,kl=y,xl=o,p=hs,k=Ja,I=xc,h=uf,Pl=Si,Ml=E,Ul=_i,Dl=cf,Ll=Nf,Fl=S.set,jl=R,Vl=rl,Hl=l,S=Xi,R=yl,l=d,Kl=T.CONSTRUCTOR,zl=T.REJECTION_EVENT,Gl=T.SUBCLASSING,Bl=S.getterFor("Promise"),ql=S.set,S=R&&R.prototype,Yl=R,$l=S,Jl=kl.TypeError,Xl=kl.document,Wl=kl.process,Ql=l.f,Zl=Ql,ep=!!(Xl&&Xl.createEvent&&kl.dispatchEvent),tp=function(e){var t;return!(!Ul(e)||!Ml(t=e.then))&&t},rp=function(r,i){r.notified||(r.notified=!0,jl(function(){for(var e,n,t=r.reactions;e=t.get();)Sl(e,r);r.notified=!1,i&&!r.rejection&&(n=r,xl(Fl,kl,function(){var e,t=n.facade,r=n.value;if(ip(n)&&(e=Vl(function(){Cl?Wl.emit("unhandledRejection",r,t):np("unhandledrejection",t,r)}),n.rejection=Cl||ip(n)?2:1,e.error))throw e.value}))}))},np=function(e,t,r){var n;ep?((n=Xl.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),kl.dispatchEvent(n)):n={promise:t,reason:r},!zl&&(t=kl["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=vl.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},ip=function(e){return 1!==e.rejection&&!e.parent},op=function(t,r,n){return function(e){t(r,e,n)}},sp=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,rp(e,!0))},ap=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw Jl("Promise can't be resolved itself");var n=tp(e);n?jl(function(){var t={done:!1};try{xl(n,e,op(ap,t,r),op(sp,t,r))}catch(e){sp(t,e,r)}}):(r.value=e,r.state=1,rp(r,!1))}catch(e){sp({done:!1},e,r)}}};if(Kl&&($l=(Yl=function(e){Dl(this,$l),Pl(e),xl(Il,this);var t=Bl(this);try{e(op(ap,t),op(sp,t))}catch(e){sp(t,e)}}).prototype,(Il=function(e){ql(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Hl,rejection:!1,state:0,value:void 0})}).prototype=p($l,"then",function(e,t){var r=Bl(this),n=Ql(Ll(this,Yl));return r.parent=!0,n.ok=!Ml(e)||e,n.fail=Ml(t)&&t,n.domain=Cl?Wl.domain:void 0,0==r.state?r.reactions.add(n):jl(function(){Sl(n,r)}),n.promise}),Nl=function(){var e=new Il,t=Bl(e);this.promise=e,this.resolve=op(ap,t),this.reject=op(sp,t)},l.f=Ql=function(e){return e===Yl||void 0===e?new Nl:Zl(e)},Ml(R)&&S!==Object.prototype)){Al=S.then,Gl||p(S,"then",function(e,t){var r=this;return new Yl(function(e,t){xl(Al,r,e,t)}).then(e,t)},{unsafe:!0});try{delete S.constructor}catch(r1){}k&&k(S,$l)}N({global:!0,constructor:!0,wrap:!0,forced:Kl},{Promise:Yl}),I(Yl,"Promise",!1),h("Promise");var up=ki("iterator"),cp=!1;try{var fp=0,lp={next:function(){return{done:!!fp++}},return:function(){cp=!0}};lp[up]=function(){return this},Array.from(lp,function(){throw 2})}catch(r1){}function pp(e,t){if(!t&&!cp)return!1;var r=!1;try{var n={};n[up]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function dp(e,t){return Cp(e),kp(t)&&t.constructor===e?t:((0,(e=xp.f(e)).resolve)(t),e.promise)}function hp(i){return function(e,t){var r,e=Wp(Qp(e)),t=Xp(t),n=e.length;return t<0||n<=t?i?"":void 0:(r=ed(e,t))<55296||56319<r||t+1===n||(n=ed(e,t+1))<56320||57343<n?i?Zp(e,t):r:i?td(e,t,t+2):n-56320+(r-55296<<10)+65536}}function yp(e,t){if(e){if(e[fd]!==pd)try{cd(e,fd,pd)}catch(t){e[fd]=pd}if(e[ld]||cd(e,ld,t),ad[t])for(var r in ud)if(e[r]!==ud[r])try{cd(e,r,ud[r])}catch(t){e[r]=ud[r]}}}var vp,mp=yl,l=T.CONSTRUCTOR||!pp(function(e){mp.all(e).then(void 0,function(){})}),gp=o,Ep=Si,wp=d,Tp=rl,bp=lu,R=(O({target:"Promise",stat:!0,forced:l},{all:function(e){var a=this,t=wp.f(a),u=t.resolve,c=t.reject,r=Tp(function(){var n=Ep(a.resolve),i=[],o=0,s=1;bp(e,function(e){var t=o++,r=!1;s++,gp(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}}),O),Gl=yl,p=Oi,k=E,S=hs,N=Gl&&Gl.prototype,_p=(R({target:"Promise",proto:!0,forced:T.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),k(Gl)&&(Kl=p("Promise").prototype.catch,N.catch!==Kl&&S(N,"catch",Kl,{unsafe:!0})),o),Op=Si,Rp=d,Sp=rl,Ip=lu,Np=(O({target:"Promise",stat:!0,forced:l},{race:function(e){var r=this,n=Rp.f(r),i=n.reject,t=Sp(function(){var t=Op(r.resolve);Ip(e,function(e){_p(t,r,e).then(n.resolve,i)})});return t.error&&i(t.value),n.promise}}),o),Ap=d,Cp=(O({target:"Promise",stat:!0,forced:T.CONSTRUCTOR},{reject:function(e){var t=Ap.f(this);return Np(t.reject,void 0,e),t.promise}}),Mi),kp=_i,xp=d,I=O,h=T.CONSTRUCTOR,Pp=dp,Mp=(Oi("Promise"),I({target:"Promise",stat:!0,forced:h},{resolve:function(e){return Pp(this,e)}}),o),Up=Si,Dp=d,Lp=rl,Fp=lu,jp=(O({target:"Promise",stat:!0},{allSettled:function(e){var a=this,t=Dp.f(a),u=t.resolve,r=t.reject,n=Lp(function(){var n=Up(a.resolve),i=[],o=0,s=1;Fp(e,function(e){var t=o++,r=!1;s++,Mp(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),Vp=Si,Hp=Oi,Kp=d,zp=rl,Gp=lu,lp=(O({target:"Promise",stat:!0},{any:function(e){var u=this,c=Hp("AggregateError"),t=Kp.f(u),f=t.resolve,l=t.reject,r=zp(function(){var n=Vp(u.resolve),i=[],o=0,s=1,a=!1;Gp(e,function(e){var t=o++,r=!1;s++,jp(n,u,e).then(function(e){r||a||(a=!0,f(e))},function(e){r||a||(r=!0,i[t]=e,--s||l(new c(i,"No one promise resolved")))})}),--s||l(new c(i,"No one promise resolved"))});return r.error&&l(r.value),t.promise}}),O),R=yl,k=g,Bp=Oi,qp=E,Yp=Nf,$p=dp,Gl=hs,Jp=R&&R.prototype,S=(lp({target:"Promise",proto:!0,real:!0,forced:!!R&&k(function(){Jp.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=Yp(this,Bp("Promise")),e=qp(t);return this.then(e?function(e){return $p(r,t()).then(function(){return e})}:t,e?function(e){return $p(r,t()).then(function(){throw e})}:t)}}),qp(R)&&(p=Bp("Promise").prototype.finally,Jp.finally!==p&&Gl(Jp,"finally",p,{unsafe:!0})),e),Xp=ys,Wp=pu,Qp=Ti,Zp=S("".charAt),ed=S("".charCodeAt),td=S("".slice),rd=(hp(!1),hp(!0)),nd=pu,N=Xi,Kl=Mc,id=N.set,od=N.getterFor("String Iterator"),l=(Kl(String,"String",function(e){id(this,{type:"String Iterator",string:nd(e),index:0})},function(){var e=od(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=rd(t,r),e.index+=t.length,{value:t,done:!1})}),y),T=(l.Promise,Pi("span").classList),I=T&&T.constructor&&T.constructor.prototype,h=I===Object.prototype?void 0:I,sd=y,ad={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},yl=h,ud=x,cd=No,lp=ki,fd=lp("iterator"),ld=lp("toStringTag"),pd=ud.values;for(vp in ad)yp(sd[vp]&&sd[vp].prototype,vp);yp(yl,"DOMTokenList");function dd(e,t,r){(t=Fd(t))in e?jd.f(e,t,Vd(0,r)):e[t]=r}function hd(e){if(9007199254740991<e)throw ih("Maximum allowed index exceeded");return e}function yd(e,t){return oh(e=e)&&(r=e.constructor,(sh(r)&&(r===ch||oh(r.prototype))||ah(r)&&null===(r=r[uh]))&&(r=void 0)),new(void 0===r?ch:r)(0===t?0:t);var r}function vd(t){return 51<=lh||!fh(function(){var e=[];return(e.constructor={})[ph]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function md(e,t){if(!delete e[t])throw bh("Cannot delete property "+Th(t)+" of "+Th(e))}function gd(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=Ch(e),a=Ah(s),u=Nh(t,r),c=kh(a),f=0,t=n||xh,l=d?t(e,c):h||g?t(e,0):void 0;f<c;f++)if((E||f in a)&&(o=u(i=a[f],f,s),p))if(d)l[f]=o;else if(o)switch(p){case 3:return!0;case 5:return i;case 6:return f;case 2:Ph(l,i)}else switch(p){case 4:return!1;case 7:Ph(l,i)}return m?-1:y||v?v:l}}function Ed(e,t){var r=[][e];return!!r&&Mh(function(){r.call(null,t||function(){return 1},1)})}function wd(u){var c=1==u;return function(e,t,r){for(var n,i=qh(e),o=Bh(i),s=Gh(t,r),a=Yh(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 Td(e,t,r,n,i,o,s,a){for(var u,c,f=i,l=0,p=!!s&&Zh(s,a);l<n;)l in r&&(u=p?p(r[l],l,t):r[l],0<o&&Xh(u)?(c=Wh(u),f=Td(e,t,u,c,f,o-1)-1):(Qh(f+1),e[f]=u),f++),l++;return f}function bd(c){return function(e,t,r,n){Ny(t);var i=Ay(e),o=Cy(i),s=ky(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 xy("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 _d(e,t,r){for(var n=Xy(e),i=Jy(t,n),o=Jy(void 0===r?n:r,n),s=Qy(Zy(o-i,0)),a=0;i<o;i++,a++)Wy(s,a,e[i]);return s.length=a,s}function Od(e,t){var r=e.length,n=tv(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 f=e,l=Od(ev(e,0,n),t),p=Od(ev(e,n),t),d=t,h=l.length,y=p.length,v=0,m=0;v<h||m<y;)f[v+m]=v<h&&m<y?d(l[v],p[m])<=0?l[v++]:p[m++]:v<h?l[v++]:p[m++];return f}function Rd(e){zv(e,Jv,{value:{objectID:"O"+Xv++,weakData:{}}})}function Sd(e,t,r){for(var n in t)sm(e,n,t[n],r);return e}var Id,Nd,Ad,Cd,kd,xd,Pd,Md=d,Ud=rl,Dd=(O({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Md.f(this),e=Ud(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),Mi),Ld=cu,Fd=xi,jd=So,Vd=Ei,Hd=ou,Kd=o,zd=Ai,Gd=su,Bd=A,qd=_,Yd=dd,$d=uu,Jd=au,Xd=Array,Wd=(O({target:"Array",stat:!0,forced:!pp(function(e){Array.from(e)})},{from:function(e){var t=zd(e),e=Bd(this),r=arguments.length,n=1<r?arguments[1]:void 0,i=void 0!==n;i&&(n=Hd(n,2<r?arguments[2]:void 0));var o,s,a,u,c,f,r=Jd(t),l=0;if(!r||this===Xd&&Gd(r))for(o=qd(t),s=e?new this(o):Xd(o);l<o;l++)f=i?n(t[l],l):t[l],Yd(s,l,f);else for(c=(u=$d(t,r)).next,s=e?new this:[];!(a=Kd(c,u)).done;l++)f=i?function(e,t,r,n){try{return n?t(Dd(r)[0],r[1]):t(r)}catch(t){Ld(e,"throw",t)}}(u,n,[a.value,l],!0):a.value,Yd(s,l,f);return s.length=l,s}}),wi),k=Array.isArray||function(e){return"Array"==Wd(e)},Qd=(O({target:"Array",stat:!0},{isArray:k}),A),Zd=dd,eh=Array,th=(O({target:"Array",stat:!0,forced:g(function(){function e(){}return!(eh.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(Qd(this)?this:eh)(t);e<t;)Zd(r,e,arguments[e++]);return r.length=t,r}}),Ai),rh=_,nh=ys,R=C,ih=(O({target:"Array",proto:!0},{at:function(e){var t=th(this),r=rh(t),e=nh(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),R("at"),TypeError),oh=k,sh=A,ah=_i,uh=ki("species"),ch=Array,fh=g,lh=w,ph=ki("species"),Gl=O,p=g,dh=k,hh=_i,yh=Ai,vh=_,mh=hd,gh=dd,Eh=yd,S=vd,N=w,wh=ki("isConcatSpreadable"),Kl=51<=N||!p(function(){var e=[];return e[wh]=!1,e.concat()[0]!==e}),T=S("concat"),Th=(Gl({target:"Array",proto:!0,arity:1,forced:!Kl||!T},{concat:function(e){for(var t,r,n,i=yh(this),o=Eh(i,0),s=0,a=-1,u=arguments.length;a<u;a++)if(function(e){if(!hh(e))return!1;var t=e[wh];return void 0!==t?!!t:dh(e)}(n=-1===a?i:arguments[a]))for(r=vh(n),mh(s+r),t=0;t<r;t++,s++)t in n&&gh(o,s,n[t]);else mh(s+1),gh(o,s++,n);return o.length=s,o}}),Ri),bh=TypeError,_h=Ai,Oh=vs,Rh=_,Sh=md,Ih=Math.min,I=C,Nh=(O({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=_h(this),n=Rh(r),i=Oh(e,n),o=Oh(t,n),e=2<arguments.length?arguments[2]:void 0,s=Ih((void 0===e?n:Oh(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]:Sh(r,i),i+=a,o+=a;return r}}),I("copyWithin"),ou),Ah=Ui,Ch=Ai,kh=_,xh=yd,Ph=e([].push),h={forEach:gd(0),map:gd(1),filter:gd(2),some:gd(3),every:gd(4),find:gd(5),findIndex:gd(6),filterReject:gd(7)},Mh=g,Uh=h.every,Dh=(O({target:"Array",proto:!0,forced:!Ed("every")},{every:function(e){return Uh(this,e,1<arguments.length?arguments[1]:void 0)}}),Ai),Lh=vs,Fh=_,x=C,jh=(O({target:"Array",proto:!0},{fill:function(e){for(var t=Dh(this),r=Fh(t),n=arguments.length,i=Lh(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,o=void 0===n?r:Lh(n,r);i<o;)t[i++]=e;return t}}),x("fill"),h.filter),No=(O({target:"Array",proto:!0,forced:!vd("filter")},{filter:function(e){return jh(this,e,1<arguments.length?arguments[1]:void 0)}}),O),Vh=h.find,lp=C,Hh=!0,yl=("find"in[]&&Array(1).find(function(){Hh=!1}),No({target:"Array",proto:!0,forced:Hh},{find:function(e){return Vh(this,e,1<arguments.length?arguments[1]:void 0)}}),lp("find"),O),Kh=h.findIndex,d=C,zh=!0,Gh=("findIndex"in[]&&Array(1).findIndex(function(){zh=!1}),yl({target:"Array",proto:!0,forced:zh},{findIndex:function(e){return Kh(this,e,1<arguments.length?arguments[1]:void 0)}}),d("findIndex"),ou),Bh=Ui,qh=Ai,Yh=_,R={findLast:wd(0),findLastIndex:wd(1)},$h=R.findLast,N=C,Jh=(O({target:"Array",proto:!0},{findLast:function(e){return $h(this,e,1<arguments.length?arguments[1]:void 0)}}),N("findLast"),R.findLastIndex),p=C,Xh=(O({target:"Array",proto:!0},{findLastIndex:function(e){return Jh(this,e,1<arguments.length?arguments[1]:void 0)}}),p("findLastIndex"),k),Wh=_,Qh=hd,Zh=ou,S=Td,ey=S,ty=Ai,ry=_,ny=ys,iy=yd,oy=(O({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=ty(this),r=ry(t),n=iy(t,0);return n.length=ey(n,t,t,r,0,void 0===e?1:ny(e)),n}}),S),sy=Si,ay=Ai,uy=_,cy=yd,fy=(O({target:"Array",proto:!0},{flatMap:function(e){var t,r=ay(this),n=uy(r);return sy(e),(t=cy(r,0)).length=oy(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),h.forEach),Gl=Ed("forEach")?[].forEach:function(e){return fy(this,e,1<arguments.length?arguments[1]:void 0)},ly=(O({target:"Array",proto:!0,forced:[].forEach!=Gl},{forEach:Gl}),Us.includes),Kl=C,T=(O({target:"Array",proto:!0,forced:g(function(){return!Array(1).includes()})},{includes:function(e){return ly(this,e,1<arguments.length?arguments[1]:void 0)}}),Kl("includes"),O),py=Us.indexOf,I=Ed,dy=e([].indexOf),hy=!!dy&&1/dy([1],1,-0)<0,x=I("indexOf"),No=(T({target:"Array",proto:!0,forced:hy||!x},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return hy?dy(this,e,t)||0:py(this,e,t)}}),O),lp=Ui,yy=bi,yl=Ed,vy=e([].join),d=lp!=Object,N=yl("join",","),my=(No({target:"Array",proto:!0,forced:d||!N},{join:function(e){return vy(yy(this),void 0===e?",":e)}}),Ec),gy=bi,Ey=ys,wy=_,R=Ed,Ty=Math.min,by=[].lastIndexOf,_y=!!by&&1/[1].lastIndexOf(1,-0)<0,p=R("lastIndexOf"),S=_y||!p?function(e){if(_y)return my(by,this,arguments)||0;var t=gy(this),r=wy(t),n=r-1;for((n=1<arguments.length?Ty(n,Ey(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:by,Oy=(O({target:"Array",proto:!0,forced:S!==[].lastIndexOf},{lastIndexOf:S}),h.map),Gl=(O({target:"Array",proto:!0,forced:!vd("map")},{map:function(e){return Oy(this,e,1<arguments.length?arguments[1]:void 0)}}),O),Ry=Ai,Sy=_,Iy=hd,Kl=g(function(){return 4294967297!==[].push.call({length:4294967296},1)}),Us=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),Ny=(Gl({target:"Array",proto:!0,arity:1,forced:Kl||Us},{push:function(e){var t=Ry(this),r=Sy(t),n=arguments.length;Iy(r+n);for(var i=0;i<n;i++)t[r]=arguments[i],r++;return t.length=r}}),Si),Ay=Ai,Cy=Ui,ky=_,xy=TypeError,I={left:bd(!1),right:bd(!0)},Py=I.left,T=w,x=yc,My=(O({target:"Array",proto:!0,forced:!Ed("reduce")||!x&&79<T&&T<83},{reduce:function(e){var t=arguments.length;return Py(this,e,t,1<t?arguments[1]:void 0)}}),I.right),lp=w,yl=yc,No=(O({target:"Array",proto:!0,forced:!Ed("reduceRight")||!yl&&79<lp&&lp<83},{reduceRight:function(e){return My(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),O),Uy=k,Dy=e([].reverse),d=[1,2],N=(No({target:"Array",proto:!0,forced:String(d)===String(d.reverse())},{reverse:function(){return Uy(this)&&(this.length=this.length),Dy(this)}}),O),Ly=k,Fy=A,jy=_i,Vy=vs,Hy=_,Ky=bi,zy=dd,Ec=ki,Gy=bo,R=vd("slice"),By=Ec("species"),qy=Array,Yy=Math.max,$y=(N({target:"Array",proto:!0,forced:!R},{slice:function(e,t){var r,n,i,o=Ky(this),s=Hy(o),a=Vy(e,s),u=Vy(void 0===t?s:t,s);if(Ly(o)&&(r=o.constructor,(r=Fy(r)&&(r===qy||Ly(r.prototype))||jy(r)&&null===(r=r[By])?void 0:r)===qy||void 0===r))return Gy(o,a,u);for(n=new(void 0===r?qy:r)(Yy(u-a,0)),i=0;a<u;a++,i++)a in o&&zy(n,i,o[a]);return n.length=i,n}}),h.some),Jy=(O({target:"Array",proto:!0,forced:!Ed("some")},{some:function(e){return $y(this,e,1<arguments.length?arguments[1]:void 0)}}),vs),Xy=_,Wy=dd,Qy=Array,Zy=Math.max,ev=_d,tv=Math.floor,p=Od,S=Ji.match(/firefox\/(\d+)/i),Gl=!!S&&+S[1],Kl=/MSIE|Trident/.test(Ji),Us=Ji.match(/AppleWebKit\/(\d+)\./),x=!!Us&&+Us[1],T=O,I=e,rv=Si,nv=Ai,iv=_,ov=md,sv=pu,yc=g,av=p,yl=Ed,uv=Gl,cv=Kl,fv=w,lv=x,pv=[],dv=I(pv.sort),hv=I(pv.push),lp=yc(function(){pv.sort(void 0)}),No=yc(function(){pv.sort(null)}),d=yl("sort"),yv=!yc(function(){if(fv)return fv<70;if(!(uv&&3<uv)){if(cv)return!0;if(lv)return lv<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++)pv.push({k:e+r,v:t})}for(pv.sort(function(e,t){return t.v-e.v}),r=0;r<pv.length;r++)e=pv[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),bo=(T({target:"Array",proto:!0,forced:lp||!No||!d||!yv},{sort:function(e){void 0!==e&&rv(e);var t=nv(this);if(yv)return void 0===e?dv(t):dv(t,e);for(var r,n,i=[],o=iv(t),s=0;s<o;s++)s in t&&hv(i,t[s]);for(av(i,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:sv(e)>sv(t)?1:-1})),r=i.length,s=0;s<r;)t[s]=i[s++];for(;s<o;)ov(t,s++);return t}}),uf("Array"),O),vv=Ai,mv=vs,gv=ys,Ev=_,wv=hd,Tv=yd,bv=dd,_v=md,Ec=vd("splice"),Ov=Math.max,Rv=Math.min,N=(bo({target:"Array",proto:!0,forced:!Ec},{splice:function(e,t){var r,n,i,o,s,a,u=vv(this),c=Ev(u),f=mv(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-f):(r=e-2,Rv(Ov(gv(t),0),c-f)),wv(c+r-n),i=Tv(u,n),o=0;o<n;o++)(s=f+o)in u&&bv(i,o,u[s]);if(r<(i.length=n)){for(o=f;o<c-n;o++)a=o+r,(s=o+n)in u?u[a]=u[s]:_v(u,a);for(o=c;c-n+r<o;o--)_v(u,o-1)}else if(n<r)for(o=c-n;f<o;o--)a=o+r-1,(s=o+n-1)in u?u[a]=u[s]:_v(u,a);for(o=0;o<r;o++)u[o+f]=arguments[o+2];return u.length=c-n+r,i}}),C("flat"),C("flatMap"),O),Sv=Ai,Iv=_,Nv=md,Av=hd,R=1!==[].unshift(0),S=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),Ji=(N({target:"Array",proto:!0,arity:1,forced:R||S},{unshift:function(e){var t=Sv(this),r=Iv(t),n=arguments.length;if(n){Av(r+n);for(var i=r;i--;){var o=i+n;i in t?t[o]=t[i]:Nv(t,o)}for(var s=0;s<n;s++)t[s]=arguments[s]}return t.length=r+n}}),l.Array,{exports:{}}),Us={},Cv=wi,kv=bi,xv=Wi.f,Pv=_d,Mv="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=(Us.f=function(e){if(!Mv||"Window"!=Cv(e))return xv(kv(e));var t=e;try{return xv(t)}catch(t){return Pv(Mv)}},g(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),Gl=g,Uv=_i,Dv=wi,Lv=p,Fv=Object.isExtensible,Kl=Gl(function(){Fv(1)})||Lv?function(e){return!!Uv(e)&&(!Lv||"ArrayBuffer"!=Dv(e))&&(!Fv||Fv(e))}:Fv,w=!g(function(){return Object.isExtensible(Object.preventExtensions({}))}),jv=O,Vv=e,x=As,Hv=_i,Kv=b,zv=So.f,Gv=Wi,Bv=Us,qv=Kl,Yv=w,$v=!1,Jv=Ci("meta"),Xv=0,Wv=Ji.exports={enable:function(){Wv.enable=function(){},$v=!0;var i=Gv.f,o=Vv([].splice),e={};e[Jv]=1,i(e).length&&(Gv.f=function(e){for(var t=i(e),r=0,n=t.length;r<n;r++)if(t[r]===Jv){o(t,r,1);break}return t},jv({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Bv.f}))},fastKey:function(e,t){if(!Hv(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Kv(e,Jv)){if(!qv(e))return"F";if(!t)return"E";Rd(e)}return e[Jv].objectID},getWeakData:function(e,t){if(!Kv(e,Jv)){if(!qv(e))return!0;if(!t)return!1;Rd(e)}return e[Jv].weakData},onFreeze:function(e){return Yv&&$v&&qv(e)&&!Kv(e,Jv)&&Rd(e),e}},Qv=(x[Jv]=!0,E),Zv=_i,em=Ja,I=O,yl=y,tm=e,yc=Ls,rm=hs,T=Ji.exports,nm=lu,im=cf,lp=E,om=_i,No=g,d=pp,bo=xc,sm=hs,am=So.f,um=Xa,cm=Sd,fm=ou,lm=cf,pm=lu,dm=Mc,hm=uf,ym=r,vm=Ji.exports.fastKey,mm=Xi.set,gm=Xi.getterFor;function Em(e){var r=tm(xd[e]);rm(xd,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(Ad&&!om(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return Ad&&!om(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(Ad&&!om(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}Ec=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},N={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=vm(t,!0),key:t,value:r,previous:t=i.last,next:void 0,removed:!1},i.first||(i.first=o),t&&(t.next=o),ym?i.size++:e.size++,"F"!==n&&(i.index[n]=o)),e}function s(e,t){var r,e=u(e),n=vm(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){lm(e,a),mm(e,{type:r,index:um(null),first:void 0,last:void 0,size:0}),ym||(e.size=0),null!=t&&pm(t,e[i],{that:e,AS_ENTRIES:n})}),a=e.prototype,u=gm(r);return cm(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,ym?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),ym?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=fm(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)}}),cm(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)}}),ym&&am(a,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",i=gm(t),o=gm(n);dm(e,t,function(e,t){mm(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),hm(t)}},Nd=-1!==(R="Map").indexOf("Map"),Ad=-1!==R.indexOf("Weak"),Cd=Nd?"set":"add",kd=yl.Map,xd=kd&&kd.prototype,S={},yc(R,!lp(Pd=kd)||!(Ad||xd.forEach&&!No(function(){(new kd).entries().next()})))?(Pd=N.getConstructor(Ec,R,Nd,Cd),T.enable()):yc(R,!0)&&(l=(Id=new Pd)[Cd](Ad?{}:-0,1)!=Id,p=No(function(){Id.has(1)}),Gl=d(function(e){new kd(e)}),As=!Ad&&No(function(){for(var e=new kd,t=5;t--;)e[Cd](t,t);return!e.has(-0)}),Gl||(((Pd=Ec(function(e,t){im(e,xd);r=new kd,e=e,n=Pd,em&&Qv(e=e.constructor)&&e!==n&&Zv(e=e.prototype)&&e!==n.prototype&&em(r,e);var r,n=r;return null!=t&&nm(t,n[Cd],{that:n,AS_ENTRIES:Nd}),n})).prototype=xd).constructor=Pd),(p||As)&&(Em("delete"),Em("has"),Nd&&Em("get")),(As||l)&&Em(Cd),Ad&&xd.clear&&delete xd.clear),S.Map=Pd,I({global:!0,constructor:!0,forced:Pd!=kd},S),bo(Pd,R),Ad||N.setStrong(Pd,R,Nd);function wm(e,t){for(var r=0,n=Om(t),i=new e(n);r<n;)i[r]=t[r++];return i}function Tm(e,t,r,n){for(var i,o,s,a=Im(e),u=Sm(a),c=Rm(t,r),f=Cm(null),l=Am(u),p=0;p<l;p++)s=u[p],(o=Nm(c(s,p,a)))in f?Pm(f[o],s):f[o]=[s];if(n&&(i=n(a))!==xm)for(o in f)f[o]=km(i,f[o]);return f}function bm(e){for(var t,r,n=Fm(this),i=Lm(n),o=Dm(e,1<arguments.length?arguments[1]:void 0),s=new Vm,a=jm(i),u=0;u<a;u++)t=o(r=i[u],u,n),Km(s,t)?Gm(Hm(s,t),r):zm(s,t,[r]);return s}function _m(e){return $m[e].prototype}var Om=_,Rm=ou,Sm=Ui,Im=Ai,Nm=xi,Am=_,Cm=Xa,km=wm,xm=Array,Pm=e([].push),Mm=Tm,b=C,Um=(O({target:"Array",proto:!0},{group:function(e){return Mm(this,e,1<arguments.length?arguments[1]:void 0)}}),b("group"),Tm),Wi=C,Dm=(O({target:"Array",proto:!0,forced:!Ed("groupBy")},{groupBy:function(e){return Um(this,e,1<arguments.length?arguments[1]:void 0)}}),Wi("groupBy"),ou),Us=e,Lm=Ui,Fm=Ai,jm=_,Vm=Oi("Map"),Kl=Vm.prototype,Hm=Us(Kl.get),Km=Us(Kl.has),zm=Us(Kl.set),Gm=Us([].push),w=C,x=bm,Ja=(O({target:"Array",proto:!0,name:"groupToMap",forced:!Ed("groupByToMap")},{groupByToMap:x}),w("groupByToMap"),C),Bm=(O({target:"Array",proto:!0},{groupToMap:bm}),Ja("groupToMap"),_),qm=bi,Ls=C,Ym=Array,$m=(O({target:"Array",proto:!0},{toReversed:function(){for(var e=qm(this),t=Ym,r=Bm(e),n=new t(r),i=0;i<r;i++)n[i]=e[r-i-1];return n}}),Ls("toReversed"),y),Ji=O,Jm=Si,Xm=bi,Wm=wm,yl=C,Qm=Array,Zm=e(_m("Array").sort),yc=(Ji({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&Jm(e);var t=Xm(this),t=Wm(Qm,t);return Zm(t,e)}}),yl("toSorted"),O),d=C,eg=hd,tg=_,rg=vs,ng=bi,ig=ys,og=Array,sg=Math.max,ag=Math.min,ug=(yc({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,i,o,s=ng(this),a=tg(s),u=rg(e,a),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,a-u):(r=e-2,ag(sg(ig(t),0),a-u)),i=eg(a+r-n),o=og(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}}),d("toSpliced"),_),cg=ys,fg=RangeError,lg=bi,pg=Array;O({target:"Array",proto:!0},{with:function(e,t){var r=lg(this),n=pg,i=t,o=ug(r),s=(e=cg(e))<0?o+e:e;if(o<=s||s<0)throw fg("Incorrect index");for(var a=new n(o),u=0;u<o;u++)a[u]=u===s?i:r[u];return a}});No=y,Gl=vo,Ec=E,p=ls,As=hs,l=ki("asyncIterator"),I=No.AsyncIterator,S=Gl.AsyncIteratorPrototype;if(S)X0=S;else if(Ec(I))X0=I.prototype;else if(Gl.USE_FUNCTION_CONSTRUCTOR||No.USE_FUNCTION_CONSTRUCTOR)try{$0=p(p(p(Function("return async function*(){}()")()))),p($0)===Object.prototype&&(X0=$0)}catch(r1){}Ec((X0=X0||{})[l])||As(X0,l,function(){return this});function dg(e,t,r){var n=e.done;bg.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function hg(e){_g(this,{type:"AsyncFromSyncIterator",iterator:wg(e),next:e.next})}function yg(e,t,r,n){try{var i=Ug(e,"return");if(i)return Mg("Promise").resolve(Pg(i,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function vg(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,s,a){var e={iterator:e,next:kg(xg(e).next)},u=Vg("Promise"),c=e.iterator,t=e.next,f=0,l=void 0!==s;return!l&&p||Lg(s),new u(function(r,n){var i=function(e){yg(c,n,e,n)},o=function(){try{if(p&&l)try{jg(f)}catch(e){i(e)}u.resolve(Fg(Dg(t,c))).then(function(e){try{if(Fg(e).done)p?(a.length=f,r(a)):r(!y&&(h||void 0));else{var t=e.value;try{l?u.resolve(p?s(t,f):s(t)).then(function(e){if(d)o();else if(h)e?o():yg(c,r,!1,n);else if(p)try{a[f++]=e,o()}catch(e){i(e)}else e?yg(c,r,y||t,n):o()},i):(a[f++]=t,o())}catch(e){i(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};o()})}}function mg(e,t){if(!t0||!e0(e)||!t0(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 gg(e,t,r){r.get&&r0(r.get,t,{getter:!0}),r.set&&r0(r.set,t,{setter:!0}),n0.f(e,t,r)}var Eg=o,wg=Mi,bo=Xa,Tg=Ii,N=Sd,R=Xi,b=X0,bg=Oi("Promise"),_g=R.set,Og=R.getterFor("AsyncFromSyncIterator"),Wi=(hg.prototype=N(bo(b),{next:function(){var n=Og(this);return new bg(function(e,t){var r=wg(Eg(n.next,n.iterator));dg(r,e,t)})},return:function(){var n=Og(this).iterator;return new bg(function(e,t){var r=Tg(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=wg(Eg(r,n));dg(r,e,t)})}}),hg),Rg=o,Sg=Wi,Ig=Mi,Ng=uu,Ag=Ii,Cg=ki("asyncIterator"),kg=Si,xg=Mi,Pg=o,Mg=Oi,Ug=Ii,Dg=o,Lg=Si,Fg=Mi,jg=hd,Vg=Oi,Ui={toArray:vg(0),forEach:vg(1),every:vg(2),some:vg(3),find:vg(4)},Hg=ou,Kg=Ai,zg=A,Gg=uu,Bg=au,qg=Ii,Kl=_m,Yg=Oi,$g=Wi,Jg=Ui.toArray,Xg=ki("asyncIterator"),Wg=Kl("Array").values,Qg=(O({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(Yg("Promise"))(function(e){var t=Kg(o),r=(void 0!==a&&(a=Hg(a,u)),qg(t,Xg)),n=r?void 0:Bg(t)||Wg,i=zg(s)?new s:[],r=r?function(e,t){t=arguments.length<2?Ag(e,Cg):t;return t?Ig(Rg(t,e)):new Sg(Ng(e))}(t,r):new $g(Gg(t,n));e(Jg(r,a,i))})}}),h.filterReject),Us=C,Zg=(O({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return Qg(this,e,1<arguments.length?arguments[1]:void 0)}}),Us("filterOut"),h.filterReject),x=C,w=(O({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return Zg(this,e,1<arguments.length?arguments[1]:void 0)}}),x("filterReject"),O),e0=k,t0=Object.isFrozen,r0=(w({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!mg(e,!0))return!1;var t=e.raw;return t.length===e.length&&mg(t,!1)}}),no.exports),n0=So,Ja=C,i0=Ai,o0=_,Ls=(r&&(gg(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=i0(this),t=o0(e);return 0==t?void 0:e[t-1]},set:function(e){var t=i0(this),r=o0(t);return t[0==r?0:r-1]=e}}),Ja("lastItem")),C),s0=Ai,a0=_,Ji=(r&&(gg(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=s0(this),e=a0(e);return 0==e?0:e-1}}),Ls("lastIndex")),e),u0=Si,c0=_,f0=Ai,l0=yd,p0=Oi("Map"),yl=p0.prototype,d0=Ji(yl.forEach),h0=Ji(yl.has),y0=Ji(yl.set),v0=Ji([].push),yc=C;O({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=f0(this),i=c0(n),o=l0(n,0),s=new p0,a=null!=e?u0(e):function(e){return e},u=0;u<i;u++)r=a(t=n[u]),h0(s,r)||y0(s,r,t);return d0(s,function(e){v0(o,e)}),o}}),yc("uniqueBy");function m0(e,t,r){this.reason=e,this.targetEvaluations=t,this.message=r}function g0(e,t,r){this.reason=e,this.targetEvaluations=t,this.message=r}dT.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},dT.prototype.refresh=function(){this.stop(),this.start()},dT.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var E0,w0,T0,b0,_0,O0,R0,S0,I0,N0=dT,A0=(pT.prototype.start=function(){this.started=!0},pT.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},pT.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},pT.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},pT.prototype.close=function(){this.stop()},pT),d=(lT.prototype.on=function(e,t){this.listeners[e]=(this.listeners[e]||[]).concat(t)},lT.prototype.off=function(e,t){this.listeners[e]=(this.listeners[e]||[]).filter(function(e){return e!==t})},lT.prototype.emit=function(e,t){(this.listeners[e]||[]).forEach(function(e){e(t)})},lT),y=(ce(fT,I0=d),fT.prototype.isClientError=function(e){return!!(e&&400<=e.statusCode&&e.statusCode<500)},fT.prototype.drainRepository=function(o){var e=this;return new Promise(function(i){return fe(e,void 0,void 0,function(){var t,r,n=this;return le(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]}})})})},fT.prototype.drainQueue=function(i,o){var e=this,s=i.map(function(e){return e.toDto()});return new Promise(function(n){return fe(e,void 0,void 0,function(){var t,r=this;return le(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]})})})},fT.prototype.process=function(e){this.emit("queue",e),this.queue.enqueue(e)},fT.prototype.start=function(){return fe(this,void 0,void 0,function(){return le(this,function(e){return this.queue.start(),[2]})})},fT.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},fT.prototype.flush=function(){this.queue.flush()},fT.prototype.close=function(){this.stop()},fT),C0=(cT.isSessionEvent=function(e){return!!On.isTrack(e)&&(e.event.key===cT.SESSION_START_EVENT_NAME||e.event.key===cT.SESSION_END_EVENT_NAME)},cT.prototype.onSessionStarted=function(e,t,r){this.track(cT.SESSION_START_EVENT_NAME,e,t,r)},cT.prototype.onSessionEnded=function(e,t,r){this.track(cT.SESSION_END_EVENT_NAME,e,t,r)},cT.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)},cT.prototype.decorateSession=function(e,t){t=(new Be).add(Ge.SESSION,t).addIdentifiers(e.identifiers).build();return m(m({},e),{identifiers:t})},cT.SESSION_START_EVENT_NAME="$session_start",cT.SESSION_END_EVENT_NAME="$session_end",cT),k0=(ce(uT,S0=y),uT.prototype.process=function(e){var t;C0.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[Ge.SESSION]?e:e.copyWithUser(m(m({},e.user),{identifiers:m(m({},e.user.identifiers),((e={})[Ge.SESSION]=t.sessionId,e))})),S0.prototype.process.call(this,t))},uT),x0=(aT.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!On.isExposure(e))return!1;Se.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)},aT),P0=(sT.toEvent=function(e){var t;return{key:sT.EVENT_KEY,properties:{level:sT.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:sT._stacktrace(e)}}},sT._stacktrace=function(e){return a.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,sT.STACK_TRACK_LIMIT).join("\n")},sT.EVENT_KEY="$trace",sT.LEVEL_ERROR="error",sT.STACK_TRACK_LIMIT=30,sT),vo=(oT.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)}},oT),M0=(ce(iT,R0=vo),iT.prototype.supports=function(e){return void 0!==e.experiment},iT.prototype.evaluateInternal=function(e,t){return this.evaluationFlowFactory.getFlow(e.experiment.type).evaluate(e,t)},iT),U0=(nT.of=function(e,t,r,n,i,o){return o.returnValue=n,new nT(i,t.targetEvaluations,e.parameter,r,n,o)},nT.ofDefault=function(e,t,r,n){return this.of(e,t,void 0,e.defaultValue,r,n)},nT),D0=(ce(rT,O0=vo),rT.prototype.supports=function(e){return void 0!==e.parameter},rT.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 U0.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)},rT.prototype.evaluation=function(e,t,r,n,i){return"UNKNOWN"===e.requiredType||"NULL"!==e.requiredType&&typeof e.defaultValue!=typeof r.rawValue?U0.ofDefault(e,t,s.TYPE_MISMATCH,i):U0.of(e,t,r.id,r.rawValue,n,i)},rT),L0=(tT.prototype.with=function(e){return new tT(e,this.targetEvaluations,this.experiment,this.variationId,this.variationKey,this.config)},tT.of=function(e,t,r,n){var i=this.config(e.workspace,r);return new tT(n,t.targetEvaluations,e.experiment,r.id,r.key,i)},tT.ofDefault=function(e,t,r){var n=e.experiment._getVariationByKeyOrNull(e.defaultVariationKey);return a.isNotNullOrUndefined(n)?this.of(e,t,n,r):new tT(r,t.targetEvaluations,e.experiment,void 0,e.defaultVariationKey,void 0)},tT.config=function(e,t){if(!a.isNullOrUndefined(t.parameterConfigurationId))return a.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},tT),F0=(eT.prototype.isEquals=function(e){return this.type===e.type&&this.id===e.id},eT),j0=(Zw.create=function(){return new Zw},Object.defineProperty(Zw.prototype,"stack",{get:function(){return Array.from(this._stack)},enumerable:!1,configurable:!0}),Object.defineProperty(Zw.prototype,"targetEvaluations",{get:function(){return Array.from(this._targetEvaluations)},enumerable:!1,configurable:!0}),Zw.prototype.contains=function(t){return this._stack.some(function(e){return e.key.isEquals(t.key)})},Zw.prototype.addRequest=function(e){this._stack.push(e)},Zw.prototype.removeRequest=function(e){e=this._stack.indexOf(e,0);-1<e&&this._stack.splice(e,1)},Zw.prototype.get=function(t){return this._targetEvaluations.find(function(e){return e instanceof L0&&e.experiment.id===t.id})},Zw.prototype.addEvaluation=function(e){this._targetEvaluations.push(e)},Zw),V0=(Qw.of=function(e,t,r,n){return new Qw(e,t,r,n)},Qw.by=function(e,t){return new Qw(e.workspace,e.user,t,"A")},Qw.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.experiment.type,", key=").concat(this.experiment.key,")")},Qw),H0=(Ww.of=function(e,t,r,n,i){return new Ww(e,t,r,n,i)},Ww.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.key.type,", key=").concat(this.parameter.key,")")},Ww),K0=(Xw.asString=function(e){switch(typeof e){case"string":return e;case"number":return e.toString();default:return}},Xw.asNumber=function(e){switch(typeof e){case"number":return this.asActualNumber(e);case"string":return this.asActualNumber(Number(e));default:return}},Xw.asActualNumber=function(e){return!isNaN(e)&&isFinite(e)?e:void 0},Xw),z0=(Jw.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}},Jw),G0=($w.prototype.getVariation=function(e,t){var r=this.get(e);if(r)return e._getVariationByIdOrNull(r)},$w.prototype.get=function(e){e=this.listStorage.getItem(e.id.toString());return K0.asNumber(e)},$w.prototype.getAll=function(){var r=new Map;return this.listStorage.entries().forEach(function(e){var t=e[0],e=e[1],t=K0.asNumber(t),e=K0.asNumber(e);a.isNullOrUndefined(t)||t<0||a.isNullOrUndefined(e)||t<0||r.set(t,e)}),r},$w.prototype.set=function(e,t){this.listStorage.setItem(e.id.toString(),t.toString())},$w.prototype.remove=function(e){this.listStorage.removeItem(e.id.toString())},$w.prototype.clear=function(){this.listStorage.clear()},$w),B0=(Yw.prototype.add=function(e){this.evaluators.push(e)},Yw.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)},Yw),q0=(qw.prototype.matches=function(t,r,e){var n=this;return e.conditions.every(function(e){return n._matches(t,r,e)})},qw.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(r.key.type).matches(e,t,r)},qw),Y0=(Bw.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)},Bw.prototype.userValueMatches=function(e,t,r,n){return Array.isArray(e)?this.arrayMatches(e,t,r,n):this.singleMatches(e,t,r,n)},Bw.prototype.singleMatches=function(t,e,r,n){return e.values.some(function(e){return r.matches(n,t,e)})},Bw.prototype.arrayMatches=function(e,t,r,n){var i=this;return e.some(function(e){return i.singleMatches(e,t,r,n)})},Bw.prototype.typeMatches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},Bw),ls=(Gw.prototype.booleanMatches=function(e,t){return e===t},Gw.prototype.numberMatches=function(e,t){return e===t},Gw.prototype.stringMatches=function(e,t){return e===t},Gw.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},Gw),S=(zw.prototype.booleanMatches=function(e,t){return!1},zw.prototype.numberMatches=function(e,t){return!1},zw.prototype.stringMatches=function(e,t){return e.includes(t)},zw.prototype.versionMatches=function(e,t){return!1},zw),I=(Kw.prototype.booleanMatches=function(e,t){return!1},Kw.prototype.numberMatches=function(e,t){return!1},Kw.prototype.stringMatches=function(e,t){return e.startsWith(t)},Kw.prototype.versionMatches=function(e,t){return!1},Kw),Gl=(Hw.prototype.booleanMatches=function(e,t){return!1},Hw.prototype.numberMatches=function(e,t){return!1},Hw.prototype.stringMatches=function(e,t){return e.endsWith(t)},Hw.prototype.versionMatches=function(e,t){return!1},Hw),No=(Vw.prototype.booleanMatches=function(e,t){return!1},Vw.prototype.numberMatches=function(e,t){return t<e},Vw.prototype.stringMatches=function(e,t){return t<e},Vw.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},Vw),p=(jw.prototype.booleanMatches=function(e,t){return!1},jw.prototype.numberMatches=function(e,t){return t<=e},jw.prototype.stringMatches=function(e,t){return t<=e},jw.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},jw),$0=(Fw.prototype.booleanMatches=function(e,t){return!1},Fw.prototype.numberMatches=function(e,t){return e<t},Fw.prototype.stringMatches=function(e,t){return e<t},Fw.prototype.versionMatches=function(e,t){return e.isLessThan(t)},Fw),Ec=(Lw.prototype.booleanMatches=function(e,t){return!1},Lw.prototype.numberMatches=function(e,t){return e<=t},Lw.prototype.stringMatches=function(e,t){return e<=t},Lw.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},Lw),J0=(Dw.prototype.getMatcher=function(e){switch(e){case"IN":return Dw.IN_MATCHER;case"CONTAINS":return Dw.CONTAINS_MATCHER;case"STARTS_WITH":return Dw.STARTS_WITH_MATCHER;case"ENDS_WITH":return Dw.ENDS_WITH_MATCHER;case"GT":return Dw.GT_MATCHER;case"GTE":return Dw.GTE_MATCHER;case"LT":return Dw.LT_MATCHER;case"LTE":return Dw.LTE_MATCHER}},Dw.IN_MATCHER=new ls,Dw.CONTAINS_MATCHER=new S,Dw.STARTS_WITH_MATCHER=new I,Dw.ENDS_WITH_MATCHER=new Gl,Dw.GT_MATCHER=new No,Dw.GTE_MATCHER=new p,Dw.LT_MATCHER=new $0,Dw.LTE_MATCHER=new Ec,Dw),As=(Uw.prototype.matches=function(e,t,r){t=K0.asString(t),r=K0.asString(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.stringMatches(t,r)},Uw),l=(Mw.prototype.matches=function(e,t,r){t=K0.asNumber(t),r=K0.asNumber(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.numberMatches(t,r)},Mw),Xa=(Pw.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},Pw),Xi=(xw.prototype.matches=function(e,t,r){t=Nt.tryParse(t),r=Nt.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},xw),X0=(kw.prototype.matches=function(e,t,r){return!1},kw),W0=(Cw.prototype.getMatcher=function(e){switch(e){case"STRING":case"JSON":return Cw.STRING_MATCHER;case"NUMBER":return Cw.NUMBER_MATCHER;case"BOOLEAN":return Cw.BOOLEAN_MATCHER;case"VERSION":return Cw.VERSION_MATCHER;case"NULL":case"UNKNOWN":return Cw.NULL_MATCHER}},Cw.STRING_MATCHER=new As,Cw.NUMBER_MATCHER=new l,Cw.BOOLEAN_MATCHER=new Xa,Cw.VERSION_MATCHER=new Xi,Cw.NULL_MATCHER=new X0,Cw),Q0=(Aw.prototype.matches=function(e,t,r){e=this.userValueResolver.resolveOrNull(e.user,r.key);return!a.isNullOrUndefined(e)&&this.valueOperatorMatcher.matches(e,r.match)},Aw),Z0=(Nw.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":case"EVENT_PROPERTY":throw new Error("Unsupported TargetKeyType [".concat(t.type,"]"))}},Nw),eE=(Iw.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}},Iw.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,"]"))},Iw),tE=(Sw.prototype.matches=function(t,r,e){var n=this;return e.targets.some(function(e){return n._matches(t,r,e)})},Sw.prototype._matches=function(t,r,e){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(t,r,e)})},Sw),rE=(Rw.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"EVENT_PROPERTY":case"SEGMENT":throw new Error("Unsupported TargetKeyType [".concat(r.key.type,"]"))}},Rw),R=(Ow.prototype.matches=function(e,t,r){var n=a.requiredNotNullOrUndefined(K0.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)},Ow.prototype.evaluate=function(e,t,r){r=V0.by(e,r),r=this.evaluator.evaluate(r,t),e=this.resolve(e,r);return t.addEvaluation(e),e},Ow),nE=(ce(_w,_0=R),_w.prototype.experiment=function(e,t){return e.workspace.getExperimentOrNull(t)},_w.prototype.resolve=function(e,t){return e instanceof V0&&t.reason===s.TRAFFIC_ALLOCATED?t.with(s.TRAFFIC_ALLOCATED_BY_TARGETING):t},_w.prototype.evaluationMatches=function(e,t){return!!_w.AB_TEST_MATCHED_REASONS.includes(e.reason)&&this.valueOperatorMatcher.matches(e.variationKey,t.match)},_w.AB_TEST_MATCHED_REASONS=[s.OVERRIDDEN,s.TRAFFIC_ALLOCATED,s.EXPERIMENT_COMPLETED,s.TRAFFIC_ALLOCATED_BY_TARGETING],_w),iE=(ce(bw,b0=R),bw.prototype.experiment=function(e,t){return e.workspace.getFeatureFlagOrNull(t)},bw.prototype.resolve=function(e,t){return t},bw.prototype.evaluationMatches=function(e,t){e="A"!==e.variationKey;return this.valueOperatorMatcher.matches(e,t.match)},bw),oE=(Tw.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;case"EVENT_PROPERTY":throw new Error("Unsupported TargetKeyType [".concat(e,"]"))}},Tw),sE=(ww.prototype.resolveOrNull=function(e,t,r){switch(r.type){case"VARIATION":return this.resolveVariation(e,r);case"BUCKET":return this.resolveBucket(e,r)}},ww.prototype.resolveVariation=function(e,t){return e.experiment._getVariationByIdOrNull(t.variationId)},ww.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)}},ww),aE={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}},uE=(Ew.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},Ew.prototype.calculateSlotNumber=function(e,t,r){r=aE.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},Ew),cE=(gw.prototype.evaluate=function(e,t){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,this.nextFlow):L0.ofDefault(e,t,s.TRAFFIC_NOT_ALLOCATED)},gw.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new gw,n=0,i=e.reverse();n<i.length;n++)r=new gw(i[n],r);return r},gw),fE=(mw.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 L0.of(e,t,n,s.OVERRIDDEN);case"FEATURE_FLAG":return L0.of(e,t,n,s.INDIVIDUAL_TARGET_MATCH)}},mw),lE=(vw.prototype.evaluate=function(e,t,r){return"DRAFT"===e.experiment.status?L0.ofDefault(e,t,s.EXPERIMENT_DRAFT):r.evaluate(e,t)},vw),pE=(yw.prototype.evaluate=function(e,t,r){if("PAUSED"!==e.experiment.status)return r.evaluate(e,t);switch(e.experiment.type){case"AB_TEST":return L0.ofDefault(e,t,s.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return L0.ofDefault(e,t,s.FEATURE_FLAG_INACTIVE)}},yw),dE=(hw.prototype.evaluate=function(e,t,r){if("COMPLETED"!==e.experiment.status)return r.evaluate(e,t);r=e.experiment._winnerVariationOrNull();if(r)return L0.of(e,t,r,s.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(e.experiment.id,"]"))},hw),hE=(dw.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):L0.ofDefault(e,t,s.NOT_IN_EXPERIMENT_TARGET)},dw),yE=(pw.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?L0.ofDefault(e,t,s.VARIATION_DROPPED):L0.of(e,t,n,s.TRAFFIC_ALLOCATED):L0.ofDefault(e,t,s.TRAFFIC_NOT_ALLOCATED)},pw),vE=(lw.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 L0.of(e,t,r,s.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(e.experiment.id,"]"))},lw),mE=(fw.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 L0.ofDefault(e,t,s.DEFAULT_RULE);var n=this.actionResolver.resolveOrNull(e,t,e.experiment.defaultRule);if(n)return L0.of(e,t,n,s.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(e.experiment.id,"]"))},fw),gE=(cw.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):L0.ofDefault(e,t,s.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("container[".concat(n,"]"))},cw),EE=(uw.prototype.evaluate=function(e,t,r){return e.user.identifiers[e.experiment.identifierType]?r.evaluate(e,t):L0.ofDefault(e,t,s.IDENTIFIER_NOT_FOUND)},uw),wE=(aw.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)})},aw),TE=(sw.prototype.determineTargetRuleOrNull=function(t,r){var n=this;return t.experiment.targetRules.find(function(e){return n.targetMatcher.matches(t,r,e.target)})},sw),bE=(ow.prototype.resolveOrNull=function(e,t){var r;return null!=(r=null!=(r=this.resolveManualOverride(e))?r:this._resolveUserOverride(e))?r:this._resolveSegmentOverride(e,t)},ow.prototype.resolveManualOverride=function(e){return this.manualOverrideStorage.getVariation(e.experiment,e.user)},ow.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)}},ow.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)},ow),_E=(iw.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)},iw),OE=(nw.prototype.determineTargetRuleOrNull=function(t,r){var n=this;return t.parameter.targetRules.find(function(e){return n.matches(t,r,e)})},nw.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))},nw),RE=(rw.prototype.determineInAppMessageTargetRule=function(e,t){return this.matches(e,t,e.message)?e.message:void 0},rw.prototype.matches=function(t,r,e){var n=this;return!!e.supportsWeb()&&(!!e.targetContext.overrides.some(function(e){return n.targetMatcher.matches(t,r,e.toTarget())})||!!e.isActive()&&!!e.dateRange.within(t.timestamp)&&(0===e.targetContext.targets.length||e.targetContext.targets.some(function(e){return n.targetMatcher.matches(t,r,e)})))},rw),SE=(tw.prototype.determineInAppMessage=function(r,n){var i=this,e=r.workspace.getInAppMessages().reduce(function(e,t){t=i.matches(r,n,t);return!t||e&&e.priority>=t.priority?e:t},null);return null==e?void 0:e.message},tw.prototype.matches=function(r,n,i){var o=this;return i.eventTriggerRules.reduce(function(e,t){return t.eventKey!==r.track.event.key||0!==t.targets.length&&!t.targets.some(function(e){return o.targetMather.matches(r,n,e)})||e&&e.priority>=t.priority?e:{message:i,priority:t.priority}},null)},tw),IE=(ew.prototype.matches=function(t,r,e){var n=this;return e.conditions.every(function(e){return n._matches(t,r,e)})},ew.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(r.key.type).matches(e,t,r)},ew),NE=(ZE.prototype.matches=function(e,t,r){if(a.isNullOrUndefined(e.event))return!1;e=this.eventValueResolver.resolveOrNull(e.event,r.key);return!a.isNullOrUndefined(e)&&this.valueOperatorMatcher.matches(e,r.match)},ZE),AE=(QE.prototype.resolveOrNull=function(e,t){var r;switch(t.type){case"EVENT_PROPERTY":return null==(r=null==e?void 0:e.properties)?void 0:r[t.name];case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":case"SEGMENT":case"AB_TEST":case"FEATURE_FLAG":throw new Error("Unsupported TargetKeyType [".concat(t.type,"]"))}},QE),CE=(WE.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":throw new Error("Unsupported TargetKeyType [".concat(e,"]"));case"EVENT_PROPERTY":return this.eventConditionMatcher}},WE),kE=(XE.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},XE),xE=(JE.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={})[JE.ROOT_TYPE]=r.key.type,t[JE.ROOT_ID]=r.key.id;e=n.createEvent(r,e,i,t);o.push(e)}),o},JE.prototype.createEvent=function(e,t,r,n){var i;if(t instanceof L0)return n[JE.CONFIG_ID_PROPERTY_KEY]=null==(i=t.config)?void 0:i.id,On.exposure(e.user,t,n,r);if(t instanceof U0)return On.remoteConfig(e.user,t,m(m({},n),t.properties),r);throw new Error("Unsupported Evaluation [".concat(typeof t,"]"))},JE.ROOT_TYPE="$targetingRootType",JE.ROOT_ID="$targetingRootId",JE.CONFIG_ID_PROPERTY_KEY="$parameterConfigurationId",JE),PE=(ce($E,T0=vo),$E.prototype.supports=function(e){return!!("message"in e&&e.message instanceof zt)},$E.prototype.evaluateInternal=function(e,t){e=this.determiner.determineInAppMessageTargetRule(e,t);return new m0(e?s.TARGET_RULE_MATCH:s.DEFAULT_RULE,t.targetEvaluations,e)},$E),ME=(YE.of=function(e,t,r,n){return new YE(e,t,r,n)},YE.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.key.type,", key=").concat(this.message.key,")")},YE),UE=(ce(qE,w0=vo),qE.prototype.supports=function(e){return!!("track"in e&&e.track instanceof Sn)},qE.prototype.evaluateInternal=function(e,t){e=this.determiner.determineInAppMessage(e,t);return new g0(e?s.TARGET_RULE_MATCH:s.DEFAULT_RULE,t.targetEvaluations,e)},qE),DE=(BE.of=function(e,t){return new BE(e,t)},BE.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.key.type,", key=").concat(this.track.insertId,")")},BE),LE=he.log,FE=(GE.create=function(e,t,r){var n=new B0,r=new z0(r),r=new kE(n,r),i=new M0(r),o=new D0(r.remoteConfigParameterTargetRuleDeterminer),s=new UE(r.trackInAppMessageDeterminer),r=new PE(r.inAppMessageDeterminer);return n.add(i),n.add(o),new GE(i,o,r,s,e,new xE(Bt.instance),t,new jE)},GE.prototype.experiment=function(e,t,r){var n=this;if(!e)return LE.error("experimentKey must not be empty"),Le.of(r,s.INVALID_INPUT);var i=this.workspaceFetcher.get();if(!i)return LE.warn("SDK not ready."),Le.of(r,s.SDK_NOT_READY);e=i.getExperimentOrNull(e);if(!e)return LE.warn("Experiment does not exist."),Le.of(r,s.EXPERIMENT_NOT_FOUND);i=V0.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},GE.prototype.experiments=function(r){var n=this,i=new yr(function(e,t){return e.id===t.id}),o=this.workspaceFetcher.get();return o&&o.getExperiments().forEach(function(e){var t=V0.of(o,r,e,"A"),t=n.experimentInternal(t),t=(t[0],t[1]);i.add(e,t)}),i},GE.prototype.experimentInternal=function(e){var e=this.experimentEvaluator.evaluate(e,j0.create()),t=null!=(t=e.config)?t:new je;return[e,Le.of(e.variationKey,e.reason,t)]},GE.prototype.featureFlag=function(e,t){var r=this;if(!e)return LE.error("featureKey must not be empty"),Fe.off(s.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return LE.warn("SDK not ready."),Fe.off(s.SDK_NOT_READY);e=n.getFeatureFlagOrNull(e);if(!e)return LE.warn("FeatureFlag does not exist."),Fe.off(s.FEATURE_FLAG_NOT_FOUND);n=V0.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},GE.prototype.featureFlags=function(r){var n=this,i=new yr(function(e,t){return e.id===t.id}),o=this.workspaceFetcher.get();return o&&o.getFeatureFlags().forEach(function(e){var t=V0.of(o,r,e,"A"),t=n.featureFlagInternal(t),t=(t[0],t[1]);i.add(e,t)}),i},GE.prototype.featureFlagInternal=function(e){var e=this.experimentEvaluator.evaluate(e,j0.create()),t=null!=(t=e.config)?t:new je;return[e,"A"===e.variationKey?Fe.off(e.reason,t):Fe.on(e.reason,t)]},GE.prototype.trackInAppMessage=function(e){var t=this.workspaceFetcher.get();if(!t)return LE.warn("SDK not ready."),new Pe(void 0,s.SDK_NOT_READY);t=new DE(t,e),e=this.trackInAppMessageEvaluator.evaluate(t,j0.create());return new Pe(e.message,e.reason)},GE.prototype.inAppMessage=function(e,t,r){void 0===r&&(r=Date.now());var n=this.workspaceFetcher.get();if(!n)return LE.warn("SDK not ready."),new Pe(void 0,s.SDK_NOT_READY);e=n.getInAppMessageOrNull(e);if(!e)return LE.warn("In app message does not exist."),new Pe(void 0,s.IN_APP_MESSAGE_NOT_FOUND);n=ME.of(n,e,t,r),e=this.inAppMessageEvaluator.evaluate(n,j0.create());return new Pe(e.message,e.reason)},GE.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 Me(0,e.key),this.eventProcessor.process(On.track(n,e,t,r))):LE.warn("Event key must be not null. or event key must be string type."):LE.warn("Event must be event type."):LE.warn("event must not be null.")},GE.prototype.trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=P0.toEvent(e),this.flush(),this.track(e,t),this.flush())},GE.prototype.flush=function(){this.eventProcessor.flush()},GE.prototype.remoteConfig=function(e,t,r,n){var i=this,o=this.workspaceFetcher.get();if(a.isNullOrUndefined(o))return LE.warn("SDK not ready."),De.of(n,s.SDK_NOT_READY);e=o.getRemoteConfigParameterOrNull(e);if(a.isNullOrUndefined(e))return LE.warn("Remote config parameter does not exist."),De.of(n,s.REMOTE_CONFIG_PARAMETER_NOT_FOUND);o=H0.of(o,t,e,r,n),t=this.remoteConfigEvaluator.evaluate(o,j0.create());return this.eventFactory.create(o,t).forEach(function(e){return i.eventProcessor.process(e)}),De.of(t.value,t.reason)},GE.prototype.onReady=function(e,t){this.onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},GE.prototype.onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(LE.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?LE.debug("HackleClient onInitialized Success"):e.error instanceof Error?LE.error("HackleClient onInitialized Failed. ".concat(e.error.message)):LE.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},GE.prototype.close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},GE),jE=(zE.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},zE.prototype._isSameError=function(e,t){return!a.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},zE),VE=(KE.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},KE.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},KE),HE=null;function KE(){this._installed=[],this._installations={onerror:hT,onunhandledrejection:yT}}function zE(){}function GE(e,t,r,n,i,o,s,a){this.experimentEvaluator=e,this.remoteConfigEvaluator=t,this.trackInAppMessageEvaluator=n,this.inAppMessageEvaluator=r,this.workspaceFetcher=i,this.eventFactory=o,this.eventProcessor=s,this.errorDedupDeterminer=a,this.workspaceFetcher.start(),this.eventProcessor.start(),this.readyPromise=this.workspaceFetcher.onReady().then(function(){return{success:!0}},function(e){return{success:!1,error:e}})}function BE(e,t){this.key=new F0("IN_APP_MESSAGE",t.insertId),this.workspace=e,this.track=t,this.user=t.user,this.event=t.event}function qE(e){var t=w0.call(this)||this;return t.determiner=e,t}function YE(e,t,r,n){this.key=new F0("IN_APP_MESSAGE",t.key),this.workspace=e,this.user=r,this.message=t,this.timestamp=n}function $E(e){var t=T0.call(this)||this;return t.determiner=e,t}function JE(e){this.clock=e}function XE(e,t){var r=new uE,e=new q0(new oE(e)),n=new sE(r),t=new bE(t,e,n),i=new _E(r),i=(this.abTestFlow=cE.of(new fE(t),new EE,new gE(i),new hE(new wE(e)),new lE,new pE,new dE,new yE(n)),this.featureFlagFlow=cE.of(new lE,new pE,new dE,new fE(t),new EE,new vE(new TE(e),n),new mE(n)),this.remoteConfigParameterTargetRuleDeterminer=new OE(e,r),new IE(new CE));this.inAppMessageDeterminer=new RE(i),this.trackInAppMessageDeterminer=new SE(i)}function WE(){var e=new Y0(new W0,new J0),t=new Q0(new Z0,e);this.userConditionMatcher=t,this.segmentConditionMatcher=new eE(new tE(t)),this.eventConditionMatcher=new NE(new AE,e)}function QE(){}function ZE(e,t){this.eventValueResolver=e,this.valueOperatorMatcher=t}function ew(e){this.conditionMatcherFactory=e}function tw(e){this.targetMather=e}function rw(e){this.targetMatcher=e}function nw(e,t){this.targetMatcher=e,this.bucketer=t}function iw(e){this.bucketer=e}function ow(e,t,r){this.manualOverrideStorage=e,this.targetMatcher=t,this.actionResolver=r}function sw(e){this.targetMatcher=e}function aw(e){this.targetMatcher=e}function uw(){}function cw(e){this.containerResolver=e}function fw(e){this.actionResolver=e}function lw(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function pw(e){this.actionResolver=e}function dw(e){this.experimentTargetDeterminer=e}function hw(){}function yw(){}function vw(){}function mw(e){this.overrideResolver=e}function gw(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function Ew(){}function ww(e){this.bucketer=e}function Tw(e){var t=new Y0(new W0,new J0),r=new Q0(new Z0,t);this.userConditionMatcher=r,this.segmentConditionMatcher=new eE(new tE(r)),this.experimentConditionMatcher=new rE(new nE(e,t),new iE(e,t))}function bw(e,t){return b0.call(this,e,t)||this}function _w(e,t){return _0.call(this,e,t)||this}function Ow(e,t){this.evaluator=e,this.valueOperatorMatcher=t}function Rw(e,t){this.abTestMatcher=e,this.featureFlagMatcher=t}function Sw(e){this.userConditionMatcher=e}function Iw(e){this.segmentMatcher=e}function Nw(){}function Aw(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function Cw(){}function kw(){}function xw(){}function Pw(){}function Mw(){}function Uw(){}function Dw(){}function Lw(){}function Fw(){}function jw(){}function Vw(){}function Hw(){}function Kw(){}function zw(){}function Gw(){}function Bw(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function qw(e){this.conditionMatcherFactory=e}function Yw(){this.evaluators=new Array}function $w(e){this.listStorage=e}function Jw(e){this.storages=e}function Xw(){}function Ww(e,t,r,n,i){this.key=new F0("REMOTE_CONFIG",r.id),this.workspace=e,this.user=t,this.parameter=r,this.requiredType=n,this.defaultValue=i}function Qw(e,t,r,n){this.key=new F0("EXPERIMENT",r.id),this.workspace=e,this.user=t,this.experiment=r,this.defaultVariationKey=n}function Zw(){this._stack=[],this._targetEvaluations=[]}function eT(e,t){this.type=e,this.id=t}function tT(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 rT(e){var t=O0.call(this)||this;return t.targetRuleDeterminer=e,t}function nT(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 iT(e){var t=R0.call(this)||this;return t.evaluationFlowFactory=e,t}function oT(){}function sT(){}function aT(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function uT(e,t,r,n,i,o,s){e=S0.call(this,e,t,r,n=void 0===n?null:n)||this;return e.exposureEventDedupDeterminer=i,e.sessionManager=o,e.userManager=s,e}function cT(e,t){this.hackleUserResolver=e,this.core=t}function fT(e,t,r,n){void 0===n&&(n=null);var i=I0.call(this)||this;return i.eventDispatcher=e,i.flushInterval=r,i.queue=new A0(i.drainQueue.bind(i),t,r),i.repository=n,i}function lT(){this.listeners={}}function pT(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new N0({callback:this.flush.bind(this),timeout:r}),this.started=!1}function dT(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function hT(o,s){HE=window.onerror,window.onerror=function(e,t,r,n,i){a.isNotNullOrUndefined(i)&&o.trackException(i,s.resolveCurrentUser()),HE&&HE.apply(this,arguments)}}function yT(r,n){E0=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()),E0&&E0.apply(this,arguments)}}function vT(e,t){return null!==e&&e.userId===t.userId&&e.deviceId===t.deviceId}jT.prototype.read=function(){var r=this;return new Promise(function(e){var t=r.storage.getItem(r.storageKey);t&&e(JSON.parse(t)),e([])})},jT.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()})},jT.prototype.add=function(t){var r=this;return this.read().then(function(e){return r.save(e.concat(t).slice(-r.maxSize))})},jT.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)})},jT.prototype.clear=function(){var t=this;return new Promise(function(e){localStorage.removeItem(t.storageKey),e()})};var mT,gT=jT,ET=(FT.prototype.addListener=function(e){this.userListeners.push(e)},Object.defineProperty(FT.prototype,"currentUser",{get:function(){return this._currentUser},enumerable:!1,configurable:!0}),FT.prototype.resolveCurrentOrNull=function(e){if(void 0===e)return this.currentUser;if("string"==typeof e)return this.setUser({id:e});e=Ue(e);return e?this.setUser(e):null},FT.prototype.setUser=function(e){return this.updateUser(e)},FT.prototype.setUserId=function(e){e=m(m({},this._currentUser),{userId:e});return this.setUser(e)},FT.prototype.setDeviceId=function(e){e=m(m({},this._currentUser),{deviceId:e});return this.setUser(e)},FT.prototype.updateUserProperties=function(e){return this.operateProperties(e)},FT.prototype.resetUser=function(){return this.setUser(this.defaultUser)},FT.prototype.changeUser=function(t,r,n){this.userListeners.forEach(function(e){e.onUserUpdated(t,r,n)})},FT.prototype.saveUser=function(e){this.storage.saveUser(e)},FT.prototype.update=function(e){var t=this._currentUser,e=e(t);return this._currentUser=e,vT(t,e)||(this.changeUser(t,e,(new Date).getTime()),this.saveUser(e)),e},FT.prototype.updateUser=function(r){return this.update(function(e){return vT(e=e,t=r)?m(m({},t),{properties:m(m({},e.properties),t.properties)}):t;var t})},FT.prototype.operateProperties=function(r){return this.update(function(e){var t=null!=(t=null==e?void 0:e.properties)?t:{},t=r.operate(new Map(Object.entries(t)));return m(m({},e),{properties:a.fromMap(t)})})},FT),wT=(LT.prototype.getUser=function(){var e=this.deviceId||void 0,t=this.userId||void 0;return void 0!==e||void 0!==t?{deviceId:e,userId:t}:null},LT.prototype.saveUser=function(e){this.setDeviceId(e.deviceId||null),this.setUserId(e.userId||null)},Object.defineProperty(LT.prototype,"deviceId",{get:function(){return this.storage.getItem("_hackle_did")},enumerable:!1,configurable:!0}),Object.defineProperty(LT.prototype,"userId",{get:function(){return this.storage.getItem("_hackle_uid")},enumerable:!1,configurable:!0}),LT.prototype.setDeviceId=function(e){this.setId("_hackle_did",e)},LT.prototype.setUserId=function(e){this.setId("_hackle_uid",e)},LT.prototype.setId=function(e,t){a.isNotNullOrUndefined(t)?this.storage.setItem(e,t):this.storage.removeItem(e)},LT),TT=(Object.defineProperty(DT.prototype,"currentSessionId",{get:function(){return this._currentSessionId},enumerable:!1,configurable:!0}),Object.defineProperty(DT.prototype,"sessionId",{get:function(){var e;return null!=(e=this._currentSessionId)?e:DT.EMPTY_SESSION_ID},enumerable:!1,configurable:!0}),Object.defineProperty(DT.prototype,"lastEventTime",{get:function(){return this._lastEventTime},enumerable:!1,configurable:!0}),DT.prototype.addListener=function(e){this.sessionListeners.push(e)},DT.prototype.startNewSession=function(e,t,r){return e&&this.endSession(e),this.newSession(t,r)},DT.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,e,t)},DT.prototype.updateLastEventTime=function(e){this._lastEventTime=e,this.storage.setItem("_hackle_last_event_ts","".concat(e))},DT.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)})},DT.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},DT.prototype.saveSession=function(e){this._currentSessionId=e,this.storage.setItem("_hackle_session_id",e)},DT.prototype.loadSession=function(){this._currentSessionId=this.storage.getItem("_hackle_session_id")},DT.prototype.loadLastEventTime=function(){var e=this.storage.getItem("_hackle_last_event_ts");null!==e&&0<(e=Number.parseFloat(e))&&(this._lastEventTime=e)},DT.prototype.onUserUpdated=function(e,t,r){this.endSession(e),this.newSession(t,r)},DT.EMPTY_SESSION_ID="0.ffffffff",DT),bT=(UT.postfix=function(e,t){return new UT(e,function(e){return"".concat(e).concat(t)})},UT.prototype.getItem=function(e){return this.delegate.getItem(this.transform(e))},UT.prototype.removeItem=function(e){this.delegate.removeItem(this.transform(e))},UT.prototype.setItem=function(e,t){this.delegate.setItem(this.transform(e),t)},UT),_T=(MT.prototype.isEqualItem=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},MT.prototype.getRemainListSize=function(){try{return this.maxLength-JSON.stringify(this.getList()).length}catch(e){return 0}},MT.prototype.isAddableItem=function(e){try{return this.getRemainListSize()>JSON.stringify(e).length}catch(e){return!1}},MT.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}},MT.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[]}},MT.prototype.entries=function(){return this.getList().flatMap(Object.entries)},MT.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){}},MT.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]},MT.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){}},MT.prototype.clear=function(){this.delegate.removeItem(this.listKey)},MT),OT=(PT.prototype.currentUser=function(){var e=this.userManager.currentUser;return this.userResolver.resolve(e)},PT.prototype.getAbTestDecisions=function(){return this.core.experiments(this.currentUser()).entries()},PT.prototype.getAbTestOverrides=function(){return this.abOverrideStorage.getAll()},PT.prototype.setAbTestOverride=function(e,t){this.abOverrideStorage.set(e,t),this.increment("AB_TEST","set")},PT.prototype.resetAbTestOverride=function(e){this.abOverrideStorage.remove(e),this.increment("AB_TEST","reset")},PT.prototype.resetAllAbTestOverride=function(){this.abOverrideStorage.clear(),this.increment("AB_TEST","reset.all")},PT.prototype.getFeatureFlagDecisions=function(){return this.core.featureFlags(this.currentUser()).entries()},PT.prototype.getFeatureFlagOverrides=function(){return this.ffOverrideStorage.getAll()},PT.prototype.setFeatureFlagOverride=function(e,t){this.ffOverrideStorage.set(e,t),this.increment("FEATURE_FLAG","set")},PT.prototype.resetFeatureFlagOverride=function(e){this.ffOverrideStorage.remove(e),this.increment("FEATURE_FLAG","reset")},PT.prototype.resetAllFeatureFlagOverride=function(){this.ffOverrideStorage.clear(),this.increment("FEATURE_FLAG","reset.all")},PT.prototype.increment=function(e,t){Dr.counter("experiment.manual.override",{"experiment.type":e,operation:t}).increment()},PT),RT=(xT.serverFetch=function(e){return"".concat(e,"/api/v2/workspaces")},xT.clientFetch=function(e,t){return"".concat(e,"/api/v2/w/").concat(t,"/w")},xT.serverDispatch=function(e){return"".concat(e,"/api/v2/events")},xT.clientDispatch=function(e){return"".concat(e,"/api/v2/w/events")},xT.beaconDispatch=function(e,t){return"".concat(e,"/api/v2/w/").concat(t,"/events")},xT),ST=(ce(kT,mT=d),kT.prototype.initialize=function(){this.core.eventProcessor.on("queue",this.handleTrackEventTrigger),this.core.workspaceFetcher.start()},kT.prototype.destroy=function(){this.core.eventProcessor.off("queue",this.handleTrackEventTrigger)},kT),IT=(P.createRendererScript=function(e){var t=document.createElement("script");return t.type="text/javascript",t.async=!0,t.src=e,t},P.waitForLoad=function(o){return new Promise(function(e,t){function r(){o.removeEventListener("error",i),o.removeEventListener("load",n)}var n=function(){r(),e(o)},i=function(e){r(),t(e.message)};o.addEventListener("load",n),o.addEventListener("error",i)})},P.waitForRendererScript=function(r){return fe(this,void 0,void 0,function(){var t;return le(this,function(e){return window.HackleIAMRenderer?[2]:(t=P.createRendererScript(r),document.head.appendChild(t),[2,P.waitForLoad(t)])})})},P.getBrowserLang=function(){return(window.navigator.language||window.navigator.languages[0]).split("-")[0]},P.prototype.initialize=function(){this.addListeners()},P.prototype.destroy=function(){this.removeListeners(),this.destroyActive()},P.prototype.addListeners=function(){this.triggerManager.on("campaign",this.handleTriggerMessage),window.addEventListener(P.HACKLE_IAM_EVENT_TYPE,this.handleIAMEvent)},P.prototype.removeListeners=function(){this.triggerManager.off("campaign",this.handleTriggerMessage),window.removeEventListener(P.HACKLE_IAM_EVENT_TYPE,this.handleIAMEvent)},P.prototype.addContainer=function(){var e;return this.container||((e=document.createElement("div")).classList.add(P.CONTAINER_CLASS_NAME),this.container=e),this.container.parentNode||document.body.appendChild(this.container),this.container},P.prototype.removeContainer=function(){var e;this.container&&(null!=(e=this.container.parentNode)&&e.removeChild(this.container),this.container=null)},P.prototype.destroyActive=function(){var e;null!=(e=this.active)&&e.renderer.destroy(),this.active=null,this.removeContainer()},P.prototype.markMessageHidden=function(e,t){this.storage.setItem("".concat(this.expirationStorageKey).concat(e),"".concat(t))},P.prototype.checkMessageHidden=function(e,t){e=this.storage.getItem("".concat(this.expirationStorageKey).concat(e.key));if(e){e=Number.parseInt(e,10);if(!Number.isNaN(e))return t<=e}return!1},P.HOUR_IN_MS=36e5,P.HIDE_EXPIRATION=24*P.HOUR_IN_MS,P.RENDERER_SCRIPT="https://static.hackle.io/sdk/iam-renderer/latest/iam-renderer.js",P.NAMESPACE="hackle-iam",P.HACKLE_IAM_EVENT_TYPE=P.NAMESPACE,P.CONTAINER_CLASS_NAME=P.NAMESPACE,P),NT=he.log,AT=null,CT={user:void 0,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",rendererScriptUrl:IT.RENDERER_SCRIPT,SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.16.3"};function P(e,t,r,n,i){void 0===i&&(i={rendererScriptUrl:P.RENDERER_SCRIPT});var a=this;this.triggerManager=e,this.storage=t,this.expirationStorageKey=r,this.client=n,this.options=i,this.opening=!1,this.container=null,this.active=null,this.handleIAMEvent=function(e){var t,r;e instanceof CustomEvent&&e.type===P.HACKLE_IAM_EVENT_TYPE&&(e=e.detail,a.client.track(e),"$in_app_close"!==e.key&&"$in_app_hidden"!==e.key&&("$in_app_action"!==e.key||"CLOSE"!==e.properties.action_type&&"HIDDEN"!==e.properties.action_type)||(("$in_app_hidden"===e.key||"$in_app_action"===e.key&&"HIDDEN"===e.properties.action_type)&&(t=P.HIDE_EXPIRATION,"$in_app_action"===e.key&&"HIDDEN"===e.properties.action_type&&("number"==typeof(r=e.properties.action_value)?t=r*P.HOUR_IN_MS:"string"==typeof r&&(r=Number.parseInt(r,10),Number.isNaN(r)||(t=r*P.HOUR_IN_MS))),a.markMessageHidden(e.properties.in_app_message_key,Date.now()+t)),a.destroyActive()))},this.handleTriggerMessage=function(e){var o=e.message,s=e.timestamp;return fe(a,void 0,void 0,function(){var t,r,n,i;return le(this,function(e){switch(e.label){case 0:if(this.active)return[2];if(this.opening)return[2];if(this.checkMessageHidden(o,s))return[2];this.opening=!0,t=null,e.label=1;case 1:return e.trys.push([1,4,,5]),[4,P.waitForRendererScript(this.options.rendererScriptUrl)];case 2:return e.sent(),(r=this.addContainer()).style.display="none",r.classList.add("".concat(P.CONTAINER_CLASS_NAME,"--loading")),n=P.getBrowserLang(),n=o.messageContext.getMessageForLang(n)||o.messageContext.getDefaultMessage(),i=window.HackleIAMRenderer,[4,(t=new i.HackleIAMRenderer(r)).render({message:o.toJSON(),contextMessage:n})];case 3:return e.sent(),this.active={message:o,renderer:t},r.classList.remove("".concat(P.CONTAINER_CLASS_NAME,"--loading")),r.style.display="block",[3,5];case 4:return e.sent(),null!=t&&t.destroy(),this.destroyActive(),[3,5];case 5:return this.opening=!1,[2]}})})},this.initialize()}function kT(e){var r=mT.call(this)||this;return r.core=e,r.handleTrackEventTrigger=function(e){var t;On.isTrack(e)&&(t=r.core.trackInAppMessage(e)).value&&(t=r.core.inAppMessage(t.value.key,e.user,e.timestamp)).value&&r.emit("campaign",{message:t.value,timestamp:e.timestamp})},r.initialize(),r}function xT(){}function PT(e,t,r,n,i){this.core=e,this.userManager=t,this.userResolver=r,this.abOverrideStorage=n,this.ffOverrideStorage=i}function MT(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 UT(e,t){this.delegate=e,this.transform=t}function DT(e,t){this.sessionTimeoutMillis=e,this.storage=t,this.sessionListeners=[],this._currentSessionId=null,this._lastEventTime=null,this.loadSession(),this.loadLastEventTime()}function LT(e){this.storage=e}function FT(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),this.storage=e,this.hackleDeviceId=t,this.userListeners=[],this.defaultUser={deviceId:this.hackleDeviceId},this._currentUser=null!=(e=null!=n?n:r)?e:this.defaultUser,this.storage.saveUser(this._currentUser)}function jT(e,t,r){this.storage=e,this.storageKey=t,this.maxSize=r}function VT(e,t){var a=m(m({},CT),t);if(he.initCounter(function(e){return Dr.counter("log",{level:e})}),a.log_disabled?he.setLogLevel(de.DISABLE):a.debug&&he.setLogLevel(de.DEBUG),NT.debug("sdkKey : "+e),e||NT.error("SDK Key must not be null"),AT)return NT.debug("use already exists hackleClient"),AT;function r(){d.drainRepository()}var t=!1,n=("undefined"!=typeof window&&(t=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&NT.debug("support sendBeacon API"),new Yn(e,Oe,{dispatchUrl:RT.clientDispatch(a.eventUrl),beaconDispatchUrl:RT.beaconDispatch(a.eventUrl,e),useBeacon:t,headers:((n={})[ve]=a.SDK_NAME_HEADER,n["X-HACKLE-SDK-VERSION"]=a.SDK_VERSION_HEADER,n)})),i=-1,i=(void 0!==a.pollingIntervalMillis&&"number"==typeof a.pollingIntervalMillis&&0<a.pollingIntervalMillis&&(i=Math.max(a.pollingIntervalMillis,3e4)),new Jn(e,Oe,{fetchUrl:RT.clientFetch(a.sdkUrl,e),updateInterval:i,headers:((i={})[ve]=a.SDK_NAME_HEADER,i["X-HACKLE-SDK-VERSION"]=a.SDK_VERSION_HEADER,i)})),o=-1,s=(void 0!==a.exposureEventDedupIntervalMillis&&"number"==typeof a.exposureEventDedupIntervalMillis&&-1!==a.exposureEventDedupIntervalMillis&&(o=a.exposureEventDedupIntervalMillis<1e3||36e5<a.exposureEventDedupIntervalMillis?(NT.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):a.exposureEventDedupIntervalMillis),new gT(window.localStorage,"".concat("hackle-repository-storage","_").concat(e),100)),u=new wT(bT.postfix(Zn,"_".concat(e))),c=u.getUser(),f=a.user||null,l=new ET(u,pi(),c,f),p=new TT(a.sessionTimeoutMillis,bT.postfix(Zn,"_".concat(e.slice(8)))),u=(l.addListener(p),new x0(o)),d=new k0(n,100,500,s,u,p,l),f=new G0(new _T(Zn,"".concat("hackle-manual-override_ab","_").concat(e.slice(0,8)))),o=new G0(new _T(Zn,"".concat("hackle-manual-override_ff","_").concat(e.slice(0,8)))),h=FE.create(i,d,[f,o]),n=new ST(h),y=new ti(l),s=new OT(h,l,y,f,o),f=(null==(u=a.devTool)?void 0:u.userExplorer)&&"function"==typeof(null==(i=a.devTool)?void 0:i.userExplorer),o=a.devTool&&f?{manager:a.devTool,userExplorer:s}:void 0,v=new _n(h,y,p,l,o),u=(new IT(n,window.localStorage,"hackle-iam-hide:",v,{rendererScriptUrl:a.rendererScriptUrl}),new C0(y,h)),f=(p.addListener(u),AT=v,a.autoOpenDevTool&&(a.devTool?v.showUserExplorer():NT.error("DevTool is not provided")),new Lr(a.monitoringUrl,6e4,Oe,((i={})[ve]=a.SDK_NAME_HEADER,i["X-HACKLE-SDK-VERSION"]=a.SDK_VERSION_HEADER,i["X-HACKLE-SDK-KEY"]=e,i),t));return document.addEventListener("visibilitychange",function(){document.hidden||r()}),window.addEventListener("pageshow",r),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){hi(),p.updateLastEventTime((new Date).getTime()),v.close(),Dr.globalRegistry.close()}),Dr.addRegistry(f),v.onReady(function(){e=c,n=p,i=l.currentUser,vT(e,i)?n.startNewSessionIfNeeded(i,Date.now()):n.startNewSession(e,i,Date.now()),(new VE).install(h,y);var t,r,e,n,i,o=v;if(a.auto_track_page_view){o.trackPageView();try{history.pushState=(r=history.pushState,function(){try{var e=r.apply(this,arguments);return window.dispatchEvent(s("locationchange")),e}catch(e){if(e instanceof Error)NT.error(e);else try{NT.error(e)}catch(e){}}}),history.replaceState=(t=history.replaceState,function(){try{var e=t.apply(this,arguments);return window.dispatchEvent(s("locationchange")),e}catch(e){if(e instanceof Error)NT.error(e);else try{NT.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(s("locationchange"))}catch(e){if(e instanceof Error)NT.error(e);else try{NT.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{o.trackPageView()}catch(e){if(e instanceof Error)NT.error(e);else try{NT.error(e)}catch(e){}}})}catch(o){if(o instanceof Error)NT.error(o);else try{NT.error(o)}catch(o){}}}function s(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}}),v}var N={createInstance:VT,getUserId:pi,setUserId:di,removeUserId:hi,Logger:he},HT=(f.Bucket=t.Bucket=Ke,f.Container=t.Container=Ze,f.ContainerGroup=t.ContainerGroup=et,f.CoreVersion=t.CoreVersion=At,f.Decision=t.Decision=Le,f.DecisionReason=t.DecisionReason=s,f.EmptyHackleRemoteConfig=t.EmptyHackleRemoteConfig=oe,f.EmptyParameterConfig=t.EmptyParameterConfig=je,f.EventType=t.EventType=Me,f.Experiment=t.Experiment=Ve,f.FeatureFlagDecision=t.FeatureFlagDecision=Fe,f.IAM=t.IAM=zt,f.IAMContext=t.IAMContext=Kt,f.IAMDateRange=t.IAMDateRange=Ft,f.IAMEventTriggerRule=t.IAMEventTriggerRule=jt,f.IAMTargetContext=t.IAMTargetContext=Ht,f.IAMTargetRuleOverride=t.IAMTargetRuleOverride=Vt,f.IdentifierType=t.IdentifierType=Ge,f.IdentifiersBuilder=t.IdentifiersBuilder=Be,f.InAppMessageDecision=t.InAppMessageDecision=Pe,f.Logger=t.Logger=he,f.MATCH_OPERATORS=t.MATCH_OPERATORS=Pt,f.MATCH_TYPES=t.MATCH_TYPES=kt,f.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=xt,f.MetaVersion=t.MetaVersion=Ct,f.ParameterConfiguration=t.ParameterConfiguration=tt,f.PropertyOperations=t.PropertyOperations=Tn,f.PropertyOperationsBuilder=t.PropertyOperationsBuilder=wn,f.RemoteConfigDecision=t.RemoteConfigDecision=De,f.RemoteConfigParameter=t.RemoteConfigParameter=rt,f.RemoteConfigParameterValue=t.RemoteConfigParameterValue=it,f.RemoteConfigTargetRule=t.RemoteConfigTargetRule=nt,f.SEGMENT_TYPES=t.SEGMENT_TYPES=Dt,f.Segment=t.Segment=Qe,f.Slot=t.Slot=ze,f.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=Mt,f.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=Ut,f.Target=t.Target=qe,f.TargetAction=t.TargetAction=Xe,f.TargetCondition=t.TargetCondition=Ye,f.TargetKey=t.TargetKey=$e,f.TargetMatch=t.TargetMatch=Je,f.TargetRule=t.TargetRule=We,f.TargetingType=t.TargetingType=Lt,f.Variation=t.Variation=He,f.Version=t.Version=Nt,se=t.createInstance=VT,t.default=N,f.getUserId=t.getUserId=pi,f.removeUserId=t.removeUserId=hi,f.sanitizeUser=t.sanitizeUser=Ue,f.setUserId=t.setUserId=di,function(e,t){return(HT=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 KT=function(){return(KT=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 zT(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}GT.prototype.on=function(e,t){this.listeners[e]=(this.listeners[e]||[]).concat(t)},GT.prototype.off=function(e,t){this.listeners[e]=(this.listeners[e]||[]).filter(function(e){return e!==t})},GT.prototype.emit=function(e,t){(this.listeners[e]||[]).forEach(function(e){e(t)})};bo=GT;function GT(){this.listeners={}}qT.arePropertiesEqual=function(e,t){var r=qT.coerceUnknownToProperties(e),n=qT.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]})},qT.coerceUnknownToProperties=function(e){return"object"==typeof e&&null!==e?e:{}};var BT=qT;function qT(){}$T.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)&&BT.arePropertiesEqual(null==e?void 0:e.properties,null==t?void 0:t.properties)&&BT.arePropertiesEqual(null==e?void 0:e.identifiers,null==t?void 0:t.identifiers)};var YT=$T;function $T(){}var JT=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,KT(KT({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.16.3"})),null!=t&&t.devTool&&null!=t&&t.autoOpenDevTool&&"undefined"!=typeof window&&r.showUserExplorer(),r}return HT(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.updateUserProperties=function(e){this.client.updateUserProperties(e),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(KT(KT({},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){YT.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}(bo);var M={exports:{}},b={},XT=Object.getOwnPropertySymbols,WT=Object.prototype.hasOwnProperty,QT=Object.prototype.propertyIsEnumerable;var o=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]))WT.call(r,o)&&(n[o]=r[o]);if(XT)for(var s=XT(r),a=0;a<s.length;a++)QT.call(r,s[a])&&(n[s[a]]=r[s[a]])}return n},ZT=o,A="function"==typeof Symbol&&Symbol.for,e1=A?Symbol.for("react.element"):60103,t1=A?Symbol.for("react.portal"):60106,Wi=A?Symbol.for("react.fragment"):60107,r1=A?Symbol.for("react.strict_mode"):60108,Ui=A?Symbol.for("react.profiler"):60114,n1=A?Symbol.for("react.provider"):60109,i1=A?Symbol.for("react.context"):60110,o1=A?Symbol.for("react.forward_ref"):60112,Kl=A?Symbol.for("react.suspense"):60113,s1=A?Symbol.for("react.memo"):60115,a1=A?Symbol.for("react.lazy"):60116,u1="function"==typeof Symbol&&Symbol.iterator;function c1(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 f1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},l1={};function p1(e,t,r){this.props=e,this.context=t,this.refs=l1,this.updater=r||f1}function d1(){}function h1(e,t,r){this.props=e,this.context=t,this.refs=l1,this.updater=r||f1}p1.prototype.isReactComponent={},p1.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(c1(85));this.updater.enqueueSetState(this,e,t,"setState")},p1.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},d1.prototype=p1.prototype;var Us=h1.prototype=new d1,y1=(Us.constructor=h1,ZT(Us,p1.prototype),Us.isPureReactComponent=!0,{current:null}),v1=Object.prototype.hasOwnProperty,m1={key:!0,ref:!0,__self:!0,__source:!0};function g1(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)v1.call(t,n)&&!m1.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:e1,type:e,key:o,ref:s,props:i,_owner:y1.current}}function E1(e){return"object"==typeof e&&null!==e&&e.$$typeof===e1}var w1=/\/+/g,T1=[];function b1(e,t,r,n){var i;return T1.length?((i=T1.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 _1(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,T1.length<10&&T1.push(e)}function O1(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 e1:case t1:o=!0}}if(o)return n(i,t,""===r?"."+R1(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+R1(a=t[s],s);o+=e(a,u,n,i)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=u1&&t[u1]||t["@@iterator"])?u:null))for(t=u.call(t),s=0;!(a=t.next()).done;)o+=e(a=a.value,u=r+R1(a,s++),n,i);else if("object"===a)throw n=""+t,Error(c1(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return o}(e,"",t,r)}function R1(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 S1(e,t){e.func.call(e.context,t,e.count++)}function I1(e,t,r){var n=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?N1(e,n,r,function(e){return e}):null!=e&&(E1(e)&&(t=i+(!(i=e).key||t&&t.key===e.key?"":(""+e.key).replace(w1,"$&/")+"/")+r,e={$$typeof:e1,type:i.type,key:t,ref:i.ref,props:i.props,_owner:i._owner}),n.push(e))}function N1(e,t,r,n,i){var o="";O1(e,I1,t=b1(t,o=null!=r?(""+r).replace(w1,"$&/")+"/":o,n,i)),_1(t)}var A1={current:null};function C1(){var e=A1.current;if(null===e)throw Error(c1(321));return e}var k1,x1,P1,h={ReactCurrentDispatcher:A1,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:y1,IsSomeRendererActing:{current:!1},assign:ZT},x=(b.Children={map:function(e,t,r){if(null==e)return e;var n=[];return N1(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;O1(e,S1,t=b1(null,null,t,r)),_1(t)},count:function(e){return O1(e,function(){return null},null)},toArray:function(e){var t=[];return N1(e,t,null,function(e){return e}),t},only:function(e){if(E1(e))return e;throw Error(c1(143))}},b.Component=p1,b.Fragment=Wi,b.Profiler=Ui,b.PureComponent=h1,b.StrictMode=r1,b.Suspense=Kl,b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=h,b.cloneElement=function(e,t,r){if(null==e)throw Error(c1(267,e));var n=ZT({},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=y1.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)v1.call(t,a)&&!m1.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:e1,type:e.type,key:i,ref:o,props:n,_owner:s}},b.createContext=function(e,t){return(e={$$typeof:i1,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:n1,_context:e},e.Consumer=e},b.createElement=g1,b.createFactory=function(e){var t=g1.bind(null,e);return t.type=e,t},b.createRef=function(){return{current:null}},b.forwardRef=function(e){return{$$typeof:o1,render:e}},b.isValidElement=E1,b.lazy=function(e){return{$$typeof:a1,_ctor:e,_status:-1,_result:null}},b.memo=function(e,t){return{$$typeof:s1,type:e,compare:void 0===t?null:t}},b.useCallback=function(e,t){return C1().useCallback(e,t)},b.useContext=function(e,t){return C1().useContext(e,t)},b.useDebugValue=function(){},b.useEffect=function(e,t){return C1().useEffect(e,t)},b.useImperativeHandle=function(e,t,r){return C1().useImperativeHandle(e,t,r)},b.useLayoutEffect=function(e,t){return C1().useLayoutEffect(e,t)},b.useMemo=function(e,t){return C1().useMemo(e,t)},b.useReducer=function(e,t,r){return C1().useReducer(e,t,r)},b.useRef=function(e){return C1().useRef(e)},b.useState=function(e){return C1().useState(e)},b.version="16.14.0",{}),k=Function.call.bind(Object.prototype.hasOwnProperty),M1=function(){};function U1(e,t,r,n,i){if("production"!==production)for(var o in e)if(P1(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,k1)}catch(e){s=e}!s||s instanceof Error||M1((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 x1)&&(x1[s.message]=!0,o=i?i():"",M1("Failed "+r+" type: "+s.message+(null!=o?o:"")))}}if("production"!==production&&(k1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",x1={},P1=k,M1=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),U1.resetWarningCache=function(){"production"!==production&&(x1={})},"production"!==production){var D1=o,L1=U1,w="function"==typeof Symbol&&Symbol.for,F1=w?Symbol.for("react.element"):60103,j1=w?Symbol.for("react.portal"):60106,V1=w?Symbol.for("react.fragment"):60107,H1=w?Symbol.for("react.strict_mode"):60108,K1=w?Symbol.for("react.profiler"):60114,z1=w?Symbol.for("react.provider"):60109,G1=w?Symbol.for("react.context"):60110,B1=w?Symbol.for("react.concurrent_mode"):60111,q1=w?Symbol.for("react.forward_ref"):60112,Y1=w?Symbol.for("react.suspense"):60113,$1=w?Symbol.for("react.suspense_list"):60120,J1=w?Symbol.for("react.memo"):60115,X1=w?Symbol.for("react.lazy"):60116,W1=w?Symbol.for("react.block"):60121,Q1=w?Symbol.for("react.fundamental"):60117,Z1=w?Symbol.for("react.responder"):60118,eb=w?Symbol.for("react.scope"):60119,tb="function"==typeof Symbol&&Symbol.iterator,rb="@@iterator";function nb(e){if(null===e||"object"!=typeof e)return null;e=tb&&e[tb]||e[rb];return"function"==typeof e?e:null}var ib={current:null},ob={current:null},sb=/^(.*)[\\\/]/,ab=1;function ub(e){if(null==e)return null;if("number"==typeof e.tag&&U("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 V1:return"Fragment";case j1:return"Portal";case K1:return"Profiler";case H1:return"StrictMode";case Y1:return"Suspense";case $1:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case G1:return"Context.Consumer";case z1:return"Context.Provider";case q1:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case J1:return ub(e.type);case W1:return ub(e.render);case X1:r=(t=e)._status===ab?t._result:null;if(r)return ub(r)}var t,r;return null}var cb={},fb=null;function lb(e){fb=e}cb.getCurrentStack=null,cb.getStackAddendum=function(){var e,t,r,n,i,o="",s=(fb&&(e=ub(fb.type),r=fb._owner,o+=(e=e,t=fb._source,r=r&&ub(r.type),i="",t?(n=(s=t.fileName).replace(sb,""),i=" (at "+(n=/^index\./.test(n)&&(s=s.match(sb))&&(s=s[1])?s.replace(sb,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(i=" (created by "+r+")"),"\n in "+(e||"Unknown")+i)),cb.getCurrentStack);return s&&(o+=s()||""),o};var pb={ReactCurrentDispatcher:ib,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:ob,IsSomeRendererActing:{current:!1},assign:D1};function db(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];hb("warn",e,r)}function U(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];hb("error",e,r)}function hb(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=pb.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){}}D1(pb,{ReactDebugCurrentFrame:cb,ReactComponentTreeHook:{}});var yb={};function vb(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;yb[r]||(U("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),yb[r]=!0)}var mb={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){vb(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){vb(e,"replaceState")},enqueueSetState:function(e,t,r,n){vb(e,"setState")}},gb={};function Eb(e,t,r){this.props=e,this.context=t,this.refs=gb,this.updater=r||mb}Object.freeze(gb),Eb.prototype.isReactComponent={},Eb.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")},Eb.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var wb,Tb={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(wb in Tb)Tb.hasOwnProperty(wb)&&!function(e,t){Object.defineProperty(Eb.prototype,e,{get:function(){db("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(wb,Tb[wb]);function bb(){}function _b(e,t,r){this.props=e,this.context=t,this.refs=gb,this.updater=r||mb}bb.prototype=Eb.prototype,(w=_b.prototype=new bb).constructor=_b,D1(w,Eb.prototype),w.isPureReactComponent=!0;var Ob,Rb,Sb=Object.prototype.hasOwnProperty,Ib={key:!0,ref:!0,__self:!0,__source:!0};function Nb(e){if(Sb.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function Ab(e){if(Sb.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var Cb={},kb=function(e,t,r,n,i,o,s){e={$$typeof:F1,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 xb(e,t,r){var n,i={},o=null,s=null,a=null,u=null;if(null!=t)for(n in Nb(t)&&(s=t.ref,"string"==typeof(c=t).ref&&ob.current&&c.__self&&ob.current.stateNode!==c.__self&&(l=ub(ob.current.type),Cb[l]||(U('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',ub(ob.current.type),c.ref),Cb[l]=!0))),Ab(t)&&(o=""+t.key),a=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)Sb.call(t,n)&&!Ib.hasOwnProperty(n)&&(i[n]=t[n]);var c,f,l,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(){Rb||(Rb=!0,U("%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)",f))}function g(){Ob||(Ob=!0,U("%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&&(l=i,p=c,g.isReactWarning=!0,Object.defineProperty(l,"key",{get:g,configurable:!0})),s&&(r=i,f=c,m.isReactWarning=!0,Object.defineProperty(r,"ref",{get:m,configurable:!0}))),kb(e,o,s,a,u,ob.current,i)}function Pb(e){return"object"==typeof e&&null!==e&&e.$$typeof===F1}var Mb=".",Ub=":",Db=!1,Lb=/\/+/g;function Fb(e){return(""+e).replace(Lb,"$&/")}var jb=10,Vb=[];function Hb(e,t,r,n){var i;return Vb.length?((i=Vb.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 Kb(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,Vb.length<jb&&Vb.push(e)}function zb(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 F1:case j1:a=!0}}if(a)return n(i,t,""===r?Mb+Gb(t,0):r),1;var u=0,c=""===r?Mb:r+Ub;if(Array.isArray(t))for(var f=0;f<t.length;f++)u+=e(o=t[f],c+Gb(o,f),n,i);else if("function"==typeof(r=nb(t))){r===t.entries&&(Db||db("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."),Db=!0);for(var l,p=r.call(t),d=0;!(l=p.next()).done;)u+=e(o=l.value,c+Gb(o,d++),n,i)}else if("object"==s)throw r="",r=" If you meant to render a collection of children, use an array instead."+cb.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 Gb(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 Bb(e,t,r){var n=e.func,i=e.context;n.call(i,t,e.count++)}function qb(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)?Yb(o,n,r,function(e){return e}):null!=o&&(Pb(o)&&(e=i+(!(s=o).key||t&&t.key===o.key?"":Fb(o.key)+"/")+r,o=kb(s.type,e,s.ref,s._self,s._source,s._owner,s.props)),n.push(o))}function Yb(e,t,r,n,i){var o="",t=Hb(t,o=null!=r?Fb(r)+"/":o,n,i);zb(e,qb,t),Kb(t)}function $b(e){return"string"==typeof e||"function"==typeof e||e===V1||e===B1||e===K1||e===H1||e===Y1||e===$1||"object"==typeof e&&null!==e&&(e.$$typeof===X1||e.$$typeof===J1||e.$$typeof===z1||e.$$typeof===G1||e.$$typeof===q1||e.$$typeof===Q1||e.$$typeof===Z1||e.$$typeof===eb||e.$$typeof===W1)}function Jb(){var e=ib.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 Xb(){if(ob.current){var e=ub(ob.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var Wb=!1,Qb={};function Zb(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=Xb())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),Qb[t=r]||(Qb[t]=!0,r="",e&&e._owner&&e._owner!==ob.current&&(r=" It was passed a child from "+ub(e._owner.type)+"."),lb(e),U('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),lb(null)))}function e_(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];Pb(n)&&Zb(n,t)}else if(Pb(e))e._store&&(e._store.validated=!0);else if(e){var i=nb(e);if("function"==typeof i&&i!==e.entries)for(var o,s=i.call(e);!(o=s.next()).done;)Pb(o.value)&&Zb(o.value,t)}}function t_(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=ub(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==q1&&t.$$typeof!==J1)return;r=t.propTypes}r?(lb(e),L1(r,e.props,"prop",n,cb.getStackAddendum),lb(null)):void 0===t.PropTypes||Wb||(Wb=!0,U("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||U("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function r_(e,t,r){var n,i=$b(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+".":"")||Xb(),null===e?s="null":Array.isArray(e)?s="array":void 0!==e&&e.$$typeof===F1?(s="<"+(ub(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,U("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)),xb.apply(this,arguments));if(null==t)return t;if(i)for(var o=2;o<arguments.length;o++)e_(arguments[o],e);if(e===V1){var s=t;lb(s);for(var a=Object.keys(s.props),u=0;u<a.length;u++){var c=a[u];if("children"!==c&&"key"!==c){U("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==s.ref&&U("Invalid attribute `ref` supplied to `React.Fragment`."),lb(null)}else t_(t);return t}var n_=!1;try{var i_=Object.freeze({}),o_=new Map([[i_,null]]),s_=new Set([i_]);o_.set(0,0),s_.add(0)}catch(e){}function a_(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=D1({},e.props),s=e.key,a=e.ref,u=e._self,c=e._source,f=e._owner;if(null!=t)for(n in Nb(t)&&(a=t.ref,f=ob.current),Ab(t)&&(s=""+t.key),e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)Sb.call(t,n)&&!Ib.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==i?o[n]=i[n]:o[n]=t[n]);var l=arguments.length-2;if(1==l)o.children=r;else if(1<l){for(var p=Array(l),d=0;d<l;d++)p[d]=arguments[d+2];o.children=p}return kb(e.type,s,a,u,c,f,o)}.apply(this,arguments),i=2;i<arguments.length;i++)e_(arguments[i],n.type);return t_(n),n}function u_(e){var t=r_.bind(null,e);return t.type=e,n_||(n_=!0,db("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 db("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}w=r_,x.Children={map:function(e,t,r){if(null==e)return e;var n=[];return Yb(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=Hb(null,null,t,r),zb(e,Bb,t),Kb(t)},count:function(e){return zb(e,function(){return null},null)},toArray:function(e){var t=[];return Yb(e,t,null,function(e){return e}),t},only:function(e){if(Pb(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},x.Component=Eb,x.Fragment=V1,x.Profiler=K1,x.PureComponent=_b,x.StrictMode=H1,x.Suspense=Y1,x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pb,x.cloneElement=a_,x.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&U("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:G1,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:z1,_context:r}),i=!1,t={$$typeof:G1,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return i||(i=!0,U("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,U("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},x.createElement=w,x.createFactory=u_,x.createRef=function(){var e={current:null};return Object.seal(e),e},x.forwardRef=function(e){return null!=e&&e.$$typeof===J1?U("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?U("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&U("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||U("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:q1,render:e}},x.isValidElement=Pb,x.lazy=function(e){var t,r,n={$$typeof:X1,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){U("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){U("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},x.memo=function(e,t){return $b(e)||U("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:J1,type:e,compare:void 0===t?null:t}},x.useCallback=function(e,t){return Jb().useCallback(e,t)},x.useContext=function(e,t){var r,n=Jb();return void 0!==t&&U("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?U("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&&U("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},x.useDebugValue=function(e,t){return Jb().useDebugValue(e,t)},x.useEffect=function(e,t){return Jb().useEffect(e,t)},x.useImperativeHandle=function(e,t,r){return Jb().useImperativeHandle(e,t,r)},x.useLayoutEffect=function(e,t){return Jb().useLayoutEffect(e,t)},x.useMemo=function(e,t){return Jb().useMemo(e,t)},x.useReducer=function(e,t,r){return Jb().useReducer(e,t,r)},x.useRef=function(e){return Jb().useRef(e)},x.useState=function(e){return Jb().useState(e)},x.version="16.14.0"}"production"===production?M.exports=b:M.exports=x;var c_=M.exports,f_=M.exports.createContext({hackle:void 0,userVersion:0,initialized:!1}),no=f_.Consumer,l_=f_.Provider;var p_=f.Logger.log;function d_(e,t){e=h_(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function h_(e,t){void 0===t&&(t="A");var r=M.exports.useContext(f_),n=r.hackle,i=r.userVersion,o=r.initialized,s=M.exports.useCallback(function(){return o?(null==n?void 0:n.variationDetail(e))||f.Decision.of(t,f.DecisionReason.EXCEPTION):f.Decision.of(t,f.DecisionReason.SDK_NOT_READY)},[t,e,n,o]),r=zT(M.exports.useState(function(){return n?s():(p_.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2),a=r[0],r=r[1],i={key:e,userVersion:i,initialized:o},u=zT(M.exports.useState(i),2),c=u[0],u=u[1];return m_(c,i)||(u(i),r(s())),{isLoading:!o,decision:a}}function y_(e){e=v_(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function v_(e){var t=M.exports.useContext(f_),r=t.hackle,n=t.userVersion,i=t.initialized,o=M.exports.useCallback(function(){return i?(null==r?void 0:r.featureFlagDetail(e))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION):f.FeatureFlagDecision.off(f.DecisionReason.SDK_NOT_READY)},[e,r,i]),t=zT(M.exports.useState(function(){return r?o():(p_.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2),s=t[0],t=t[1],n={key:e,userVersion:n,initialized:i},a=zT(M.exports.useState(n),2),u=a[0],a=a[1];return m_(u,n)||(a(n),t(o())),{isLoading:!i,decision:s}}function m_(e,t){return e.initialized===t.initialized&&e.key===t.key&&e.userVersion===t.userVersion}function g_(e){var t,r=e.experimentKey,e=e.children,n=(r=d_(r)).isLoading,i=r.variation;return n?null:e&&"function"==typeof e?e(i):(M.exports.Children.forEach(e,function(e){M.exports.isValidElement(e)&&(e.props.variation?i===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?M.exports.cloneElement(t,{variation:i}):null)}function E_(e){return e.variation,e=e.children,M.exports.createElement(M.exports.Fragment,null,e)}function w_(e){var t=(r=y_(e.featureKey)).isLoading,r=r.isOn;return t?null:c_.createElement(c_.Fragment,null,e.children(r))}f.HackleContext=f_,f.HackleContextConsumer=no,f.HackleContextProvider=l_,f.HackleExperiment=g_,f.HackleFeature=w_,f.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=zT(M.exports.useState({hackle:t,initialized:!1,userVersion:0}),2),s=o[0],a=o[1];return M.exports.useEffect(function(){null!=r&&t.setUser(r)},[r]),M.exports.useEffect(function(){function e(){a(function(e){return KT(KT({},e),{userVersion:e.userVersion+1})})}return t.on("user-updated",e),function(){t.off("user-updated",e)}},[t]),M.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){a(function(e){return KT(KT({},e),{initialized:!0})})},function(){a(function(e){return KT(KT({},e),{initialized:!0})})}).catch(function(){a(function(e){return KT(KT({},e),{initialized:!0})})})},[t]),i||s.initialized?c_.createElement(l_,{value:s},e):null},f.HackleVariation=E_,f.createInstance=function(e,t){return new JT(e,t)},f.useFeature=function(e){var t=(n=M.exports.useContext(f_)).hackle,r=n.userVersion,n=n.initialized,i=M.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e))||!1},[e,t,n]),o=(s=zT(M.exports.useState(function(){return t?i():("undefined"!=typeof window&&p_.error("HackleClient is not existed"),!1)}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=zT(M.exports.useState(r),2))[0],n=n[1];return m_(a,r)||(n(r),s(i())),o},f.useFeatureFlagDetail=function(e){var t=(n=M.exports.useContext(f_)).hackle,r=n.userVersion,n=n.initialized,i=M.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION)},[e,t,n]),o=(s=zT(M.exports.useState(function(){return t?i():("undefined"!=typeof window&&p_.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=zT(M.exports.useState(r),2))[0],n=n[1];return m_(a,r)||(n(r),s(i())),o},f.useLoadableFeature=y_,f.useLoadableFeatureDetail=v_,f.useLoadableRemoteConfig=function(){var e=(o=M.exports.useContext(f_)).hackle,t=o.userVersion,r=o.initialized,n=M.exports.useCallback(function(){return r&&(null==e?void 0:e.remoteConfig())||new f.EmptyHackleRemoteConfig},[e,r]),i=(o=zT(M.exports.useState(function(){return e||p_.error("HackleClient is not existed"),n()}),2))[0],o=o[1],t={userVersion:t,initialized:r},s=(a=zT(M.exports.useState(t),2))[0],a=a[1];return m_(s,t)||(a(t),o(n())),{isLoading:!r,remoteConfig:i}},f.useLoadableVariation=d_,f.useLoadableVariationDetail=h_,f.useRemoteConfig=function(){var e=(r=M.exports.useContext(f_)).hackle,t=r.userVersion,r=r.initialized,n=M.exports.useCallback(function(){return(null==e?void 0:e.remoteConfig())||new f.EmptyHackleRemoteConfig},[e,r]),i=(o=zT(M.exports.useState(function(){return e||p_.error("HackleClient is not existed"),n()}),2))[0],o=o[1],t={userVersion:t,initialized:r},s=(r=zT(M.exports.useState(t),2))[0],r=r[1];return m_(s,t)||(r(t),o(n())),i},f.useTrack=function(){var t=M.exports.useContext(f_).hackle;return t?function(e){return null==t?void 0:t.track(e)}:(p_.error("HackleClient is not existed"),function(){})},f.useVariation=function(e,t){void 0===t&&(t="A");var r=(a=M.exports.useContext(f_)).hackle,n=a.userVersion,i=a.initialized,o=M.exports.useCallback(function(){return i&&(null==r?void 0:r.variation(e))||t},[t,e,r,i]),s=(a=zT(M.exports.useState(function(){return r?o():("undefined"!=typeof window&&p_.error("HackleClient is not existed"),t)}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:i},u=(c=zT(M.exports.useState(n),2))[0],c=c[1];return m_(u,n)||(c(n),a(o())),s},f.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(i=M.exports.useContext(f_)).hackle,n=i.userVersion,i=i.initialized,o=M.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e))||f.Decision.of(t,f.DecisionReason.EXCEPTION)},[t,e,r,i]),s=(a=zT(M.exports.useState(function(){return r?o():("undefined"!=typeof window&&p_.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:i},u=(i=zT(M.exports.useState(n),2))[0],i=i[1];return m_(u,n)||(i(n),a(o())),s},Object.defineProperty(f,"__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(p){"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 G,B,K=[],z=0;z<256;++z)K.push((z+256).toString(16).substr(1));function q(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,e=(K[e[t+0]]+K[e[t+1]]+K[e[t+2]]+K[e[t+3]]+"-"+K[e[t+4]]+K[e[t+5]]+"-"+K[e[t+6]]+K[e[t+7]]+"-"+K[e[t+8]]+K[e[t+9]]+"-"+K[e[t+10]]+K[e[t+11]]+K[e[t+12]]+K[e[t+13]]+K[e[t+14]]+K[e[t+15]]).toLowerCase();if(H(e))return e;throw TypeError("Stringified UUID is invalid")}var Y=0,J=0;function $(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 X(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?$(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 W(e){return 14+(e+64>>>9<<4)+1}function Z(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function Q(e,t,r,n,i,o){return Z((t=Z(Z(t,e),Z(n,o)))<<i|t>>>32-i,r)}function ee(e,t,r,n,i,o,s){return Q(t&r|~t&n,e,t,i,o,s)}function te(e,t,r,n,i,o,s){return Q(t&n|r&~n,e,t,i,o,s)}function re(e,t,r,n,i,o,s){return Q(t^r^n,e,t,i,o,s)}function ne(e,t,r,n,i,o,s){return Q(r^(t|~n),e,t,i,o,s)}var r=X("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[W(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,p=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=Z(r,a),n=Z(n,u),i=Z(i,c),o=Z(o,p)}return[r,n,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(W(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=X("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),p=0;p<16;++p)c[p]=e[64*u+4*p]<<24|e[64*u+4*p+1]<<16|e[64*u+4*p+2]<<8|e[64*u+4*p+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 l=0;l<s;++l){for(var f=new Uint32Array(80),d=0;d<16;++d)f[d]=a[l][d];for(var h=16;h<80;++h)f[h]=ie(f[h-3]^f[h-8]^f[h-14]^f[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]+f[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||G,r=void 0!==e.clockseq?e.clockseq:B,s=(null!=o&&null!=r||(s=e.random||(e.rng||j)(),null==o&&(o=G=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==r&&(r=B=16383&(s[6]<<8|s[7]))),void 0!==e.msecs?e.msecs:Date.now()),a=void 0!==e.nsecs?e.nsecs:J+1,u=s-Y+(a-J)/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,B=r,u=(1e4*(268435455&(s+=122192928e5))+(J=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:$})),ae=(p.setUserId=void 0,p.sanitizeUser=void 0,p.removeUserId=void 0,p.getUserId=void 0,p.Version=void 0,p.Variation=void 0,p.TargetingType=void 0,p.TargetRule=void 0,p.TargetMatch=void 0,p.TargetKey=void 0,p.TargetCondition=void 0,p.TargetAction=void 0,p.Target=void 0,p.TARGET_KEY_TYPES=void 0,p.TARGET_ACTION_TYPES=void 0,p.Slot=void 0,p.Segment=void 0,p.SEGMENT_TYPES=void 0,p.RemoteConfigTargetRule=void 0,p.RemoteConfigParameterValue=void 0,p.RemoteConfigParameter=void 0,p.RemoteConfigDecision=void 0,p.PropertyOperationsBuilder=void 0,p.PropertyOperations=void 0,p.ParameterConfiguration=void 0,p.MetaVersion=void 0,p.MATCH_VALUE_TYPES=void 0,p.MATCH_TYPES=void 0,p.MATCH_OPERATORS=void 0,p.Logger=void 0,p.InAppMessageUserOverride=void 0,p.InAppMessageTextStyle=void 0,p.InAppMessageTextAttribute=void 0,p.InAppMessageText=void 0,p.InAppMessageTargetContext=void 0,p.InAppMessagePeriodCustom=void 0,p.InAppMessagePeriodAlways=void 0,p.InAppMessageImage=void 0,p.InAppMessageIdentifierCap=void 0,p.InAppMessageEventTriggerRule=void 0,p.InAppMessageEventTrigger=void 0,p.InAppMessageEventFrequencyCap=void 0,p.InAppMessageDurationCap=void 0,p.InAppMessageDecision=void 0,p.InAppMessageContextMessage=void 0,p.InAppMessageContextLayout=void 0,p.InAppMessageContext=void 0,p.InAppMessageButtonStyle=void 0,p.InAppMessageButton=void 0,p.InAppMessageBackground=void 0,p.InAppMessageAction=void 0,p.InAppMessage=void 0,p.IdentifiersBuilder=void 0,p.IdentifierType=void 0,p.IAM_TIMEUNIT=void 0,p.IAM_STATUS=void 0,p.IAM_PLATFORM_TYPE=void 0,p.IAM_ORIENTATION=void 0,p.IAM_LAYOUT_TYPE=void 0,p.IAM_DISPLAY_TYPE=void 0,p.IAM_BEHAVIOR=void 0,p.IAM_ACTION_TYPE=void 0,p.IAM_ACTION_AREA=void 0,p.FeatureFlagDecision=void 0,p.Experiment=void 0,p.EventType=void 0,p.EmptyParameterConfig=void 0,p.EmptyHackleRemoteConfig=void 0,p.DecisionReason=void 0,p.Decision=void 0,p.CoreVersion=void 0,p.ContainerGroup=void 0,p.Container=void 0,p.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 E=function(){return(E=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 pe(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 le(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}}}}function fe(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}_e.isNotNullOrUndefined=function(e){return null!=e},_e.isNullOrUndefined=function(e){return null==e},_e.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},_e.fromMap=function(e){var r={};return e.forEach(function(e,t){r[t]=e}),r};var a=_e,c=(Te.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},Te.mapOrUndefined=function(e,t){for(var r=Array(),n=0,i=e;n<i.length;n++){var o=t(i[n]);if(a.isNullOrUndefined(o))return;r.push(o)}return r},Te.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},Te.associate=function(e,t){return this.associateTo(e,new Map,t)},Te.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},Te.chunked=function(e,t){for(var r=[],n=e.slice();n.length;)r.push(n.splice(0,t));return r},Te),de={DISABLE:0,ERROR:1,WARN:2,INFO:3,DEBUG:4},he=(we.setLogLevel=function(e){this.logLevel=e=void 0===e?de.INFO:e},we.initCounter=function(t){this.counters=c.associate(Object.keys(de),function(e){return[e,t(e)]})},we._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)ye.log(e,r,t.message,t);else try{ye.log(e,r,t)}catch(e){}},we.increment=function(e){var t;null!=(t=null==(t=we.counters)?void 0:t.get(e))&&t.increment()},we.logLevel=de.INFO,we.log={error:function(e){de.ERROR<=we.logLevel&&(we._log("ERROR",e),we.increment("ERROR"))},warn:function(e){de.WARN<=we.logLevel&&(we._log("WARN",e),we.increment("WARN"))},info:function(e){de.INFO<=we.logLevel&&(we._log("INFO",e),we.increment("INFO"))},debug:function(e){de.DEBUG<=we.logLevel&&(we._log("DEBUG",e),we.increment("DEBUG"))}},we),ye=(Ee.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},Ee),ve="X-HACKLE-SDK-NAME",me=[0,8,16,32,64,128,256,512],ge=he.log;function Ee(){}function we(){}function Te(){}function _e(){}function Ie(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}var Ae={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"),Ie(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"),Ie(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[ve]),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 ge.error("sendBeacon failed to queue request."),void i();n()}else ge.error("Does not support sendBeacon"),i()}},be=he.log,Oe=(Ue.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]})},Ue.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)?be.debug("Invalid identifier value. The identifier type value be a string of 512 characters or less. [".concat(o,"]")):t[o]=i):be.debug("Invalid identifier type. The identifier type must be a string of 128 characters or less. [".concat(o,"]"))}return t},Ue.isValidType=function(e){return!a.isNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_TYPE_LENGTH},Ue.sanitizeValue=function(e){return"string"==typeof e&&0<e.length&&e.length<=this.MAX_IDENTIFIER_VALUE_LENGTH?e:"number"==typeof e?e.toString():null},Ue.MAX_IDENTIFIER_TYPE_LENGTH=128,Ue.MAX_IDENTIFIER_VALUE_LENGTH=512,Ue),Re=he.log,Ne=(ke.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){Re.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)?Re.debug("Invalid property value. The property value mus be 'string(..1024)', 'number', 'boolean', or 'array' type. [".concat(o,"]")):t[s]=i):Re.debug("Invalid property key. The property key must be a string of 128 characters or less. [".concat(s,"]"))}return t},ke.isValidProperty=function(e,t){return this.isValidKey(e)&&this.isValidValue(t)},ke.isValidKey=function(e){return a.isNotNullOrUndefined(e)&&"string"==typeof e&&0<e.length&&e.length<=this.MAX_PROPERTY_KEY_LENGTH},ke.sanitizeValue=function(e,t){var r=this;return"string"==typeof e&&e.startsWith(this.SYSTEM_PROPERTY_KEY_PREFIX)?t:this.isValidValue(t)?Array.isArray(t)?t.filter(function(e){return r.isValidElement(e)}):t:null},ke.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))},ke.isValidElement=function(e){return!a.isNullOrUndefined(e)&&("string"==typeof e?0<e.length&&e.length<=this.MAX_PROPERTY_VALUE_LENGTH:"number"==typeof e)},ke.SYSTEM_PROPERTY_KEY_PREFIX="$",ke.MAX_PROPERTIES_COUNT=128,ke.MAX_PROPERTY_KEY_LENGTH=128,ke.MAX_PROPERTY_VALUE_LENGTH=1024,ke),Se=["nanoseconds","microseconds","milliseconds","seconds","minutes","hours","days"],Ce=(n.nanosToUnit=function(e,t){switch(t){case"nanoseconds":return e;case"microseconds":return e/(n.C1/n.C0);case"milliseconds":return e/(n.C2/n.C0);case"seconds":return e/(n.C3/n.C0);case"minutes":return e/(n.C4/n.C0);case"hours":return e/(n.C5/n.C0);case"days":return e/(n.C6/n.C0)}},n.microsToUnit=function(e,t){switch(t){case"nanoseconds":return e*(n.C1/n.C0);case"milliseconds":return e/(n.C2/n.C1);case"microseconds":return e;case"seconds":return e/(n.C3/n.C1);case"minutes":return e/(n.C4/n.C1);case"hours":return e/(n.C5/n.C1);case"days":return e/(n.C6/n.C1)}},n.millisToUnit=function(e,t){switch(t){case"nanoseconds":return e*(n.C2/n.C0);case"microseconds":return e*(n.C2/n.C1);case"milliseconds":return e;case"seconds":return e/(n.C3/n.C2);case"minutes":return e/(n.C4/n.C2);case"hours":return e/(n.C5/n.C2);case"days":return e/(n.C6/n.C2)}},n.secondsToUnit=function(e,t){switch(t){case"nanoseconds":return e*(n.C3/n.C0);case"microseconds":return e*(n.C3/n.C1);case"milliseconds":return e*(n.C3/n.C2);case"seconds":return e;case"minutes":return e/(n.C4/n.C3);case"hours":return e/(n.C5/n.C3);case"days":return e/(n.C6/n.C3)}},n.minutesToUnit=function(e,t){switch(t){case"nanoseconds":return e*(n.C4/n.C0);case"microseconds":return e*(n.C4/n.C1);case"milliseconds":return e*(n.C4/n.C2);case"seconds":return e*(n.C4/n.C3);case"minutes":return e;case"hours":return e/(n.C5/n.C4);case"days":return e/(n.C6/n.C4)}},n.hoursToUnit=function(e,t){switch(t){case"nanoseconds":return e*(n.C5/n.C0);case"microseconds":return e*(n.C5/n.C1);case"milliseconds":return e*(n.C5/n.C2);case"seconds":return e*(n.C5/n.C3);case"minutes":return e*(n.C5/n.C4);case"hours":return e;case"days":return e/(n.C6/n.C5)}},n.daysToUnit=function(e,t){switch(t){case"nanoseconds":return e*(n.C6/n.C0);case"microseconds":return e*(n.C6/n.C1);case"milliseconds":return e*(n.C6/n.C2);case"seconds":return e*(n.C6/n.C3);case"minutes":return e*(n.C6/n.C4);case"hours":return e*(n.C6/n.C5);case"days":return e}},n.C6=24*(n.C5=60*(n.C4=60*(n.C3=1e3*(n.C2=1e3*(n.C1=1e3*(n.C0=1)))))),n.converter={nanoseconds:n.nanosToUnit,microseconds:n.microsToUnit,milliseconds:n.millisToUnit,seconds:n.secondsToUnit,minutes:n.minutesToUnit,hours:n.hoursToUnit,days:n.daysToUnit},n),Me=(Pe.prototype.tick=function(){return 1e3*Date.now()},Pe.prototype.currentMillis=function(){return Date.now()},Pe.instance=new Pe,Pe),xe=he.log;function Pe(){}function n(){}function ke(){}function Ue(){}function De(e,t){e=e.find(function(e){return e===t||e.toLowerCase()===t.toLowerCase()});return e||xe.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e}function Le(e,t){if(!a.isNullOrUndefined(t)){for(var r=new Array,n=0,i=t;n<i.length;n++){var o=De(e,i[n]);if(a.isNullOrUndefined(o))return;r.push(o)}return r}}function Fe(e){var t,r={};return r.id=null!=(t=Oe.sanitizeValue(e.id))?t:void 0,r.userId=null!=(t=Oe.sanitizeValue(e.userId))?t:void 0,r.deviceId=null!=(t=Oe.sanitizeValue(e.deviceId))?t:void 0,"object"==typeof e.properties&&(r.properties=Ne.sanitize(e.properties)),"object"==typeof e.identifiers&&(r.identifiers=Oe.sanitize(e.identifiers)),Boolean(r.id||r.userId||r.deviceId||r.identifiers&&0<Object.keys(r.identifiers).length)?r:null}kt.of=function(e,t){return new kt(e,t)};var je=kt,Ve=(Pt.prototype.isShow=function(){return a.isNotNullOrUndefined(this.inAppMessage)&&a.isNotNullOrUndefined(this.message)},Pt.of=function(e,t,r){return new Pt(t,r,e)},Pt),He=(xt.of=function(e,t,r){return new xt(e,t,r=void 0===r?new Be:r)},xt.prototype.get=function(e,t){return this.config.get(e,t)},xt),Ge=(Mt.on=function(e,t){return new Mt(!0,e,t=void 0===t?new Be:t)},Mt.off=function(e,t){return new Mt(!1,e,t=void 0===t?new Be:t)},Mt.prototype.get=function(e,t){return this.config.get(e,t)},Mt),oe=(Ct.prototype.get=function(e,t){return t},Ct),Be=(St.prototype.get=function(e,t){return t},St),s=(i.SDK_NOT_READY="SDK_NOT_READY",i.EXCEPTION="EXCEPTION",i.INVALID_INPUT="INVALID_INPUT",i.UNSUPPORTED_PLATFORM="UNSUPPORTED_PLATFORM",i.TYPE_MISMATCH="TYPE_MISMATCH",i.EXPERIMENT_NOT_FOUND="EXPERIMENT_NOT_FOUND",i.EXPERIMENT_DRAFT="EXPERIMENT_DRAFT",i.EXPERIMENT_PAUSED="EXPERIMENT_PAUSED",i.EXPERIMENT_COMPLETED="EXPERIMENT_COMPLETED",i.OVERRIDDEN="OVERRIDDEN",i.TRAFFIC_NOT_ALLOCATED="TRAFFIC_NOT_ALLOCATED",i.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT="NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT",i.IDENTIFIER_NOT_FOUND="IDENTIFIER_NOT_FOUND",i.VARIATION_DROPPED="VARIATION_DROPPED",i.TRAFFIC_ALLOCATED="TRAFFIC_ALLOCATED",i.TRAFFIC_ALLOCATED_BY_TARGETING="TRAFFIC_ALLOCATED_BY_TARGETING",i.NOT_IN_EXPERIMENT_TARGET="NOT_IN_EXPERIMENT_TARGET",i.FEATURE_FLAG_NOT_FOUND="FEATURE_FLAG_NOT_FOUND",i.FEATURE_FLAG_INACTIVE="FEATURE_FLAG_INACTIVE",i.INDIVIDUAL_TARGET_MATCH="INDIVIDUAL_TARGET_MATCH",i.TARGET_RULE_MATCH="TARGET_RULE_MATCH",i.DEFAULT_RULE="DEFAULT_RULE",i.REMOTE_CONFIG_PARAMETER_NOT_FOUND="REMOTE_CONFIG_PARAMETER_NOT_FOUND",i.IN_APP_MESSAGE_NOT_FOUND="IN_APP_MESSAGE_NOT_FOUND",i.IN_APP_MESSAGE_DRAFT="IN_APP_MESSAGE_DRAFT",i.IN_APP_MESSAGE_PAUSED="IN_APP_MESSAGE_PAUSED",i.IN_APP_MESSAGE_HIDDEN="IN_APP_MESSAGE_HIDDEN",i.IN_APP_MESSAGE_TARGET="IN_APP_MESSAGE_TARGET",i.NOT_IN_IN_APP_MESSAGE_PERIOD="NOT_IN_IN_APP_MESSAGE_PERIOD",i.NOT_IN_IN_APP_MESSAGE_TARGET="NOT_IN_IN_APP_MESSAGE_TARGET",i),Ke=(Nt.fromJson=function(e,t){var r=Nt.experimentStatusOrNull(t.execution.status),n=t.variations.map(function(e){return new ze(e.id,e.key,"DROPPED"===e.status,e.parameterConfigurationId)}),i=c.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),o=c.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return rt.fromJson(e,Kt.IDENTIFIER)}),s=c.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return We.fromJson(e,Kt.PROPERTY)}),a=c.mapNotNullOrUndefined(t.execution.targetRules,function(e){return rt.fromJson(e,Kt.PROPERTY)}),u=tt.fromJson(t.execution.defaultRule);return r&&u&&new Nt(t.id,t.key,e,t.identifierType,r,t.version,n,i,o,s,a,u,t.containerId,t.winnerVariationId)},Nt.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void xe.debug("Unsupported status [".concat(e,"]"))}},Nt.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},Nt.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},Nt.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},Nt),ze=function(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n},qe=(Rt.fromJson=function(e){return new Rt(e.id,e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new Ye(t,r,e)}))},Rt),Ye=(Ot.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},Ot),Je=(bt.fromJson=function(e){return new bt(e.id,e.key)},bt),$e=(At.ID="$id",At.USER="$userId",At.DEVICE="$deviceId",At.SESSION="$sessionId",At.HACKLE_DEVICE="$hackleDeviceId",At),Xe=(It.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},It.prototype.add=function(e,t){var r=Oe.sanitizeValue(t);return Oe.isValidType(e)&&r?this.identifiers[e]=t:xe.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},It.prototype.build=function(){return this.identifiers},It),We=(_t.fromJson=function(e,t){return new _t(c.mapNotNullOrUndefined(e.conditions,function(e){return Ze.fromJson(e,t)}))},_t.prototype.toJson=function(){return{conditions:this.conditions.map(function(e){return e.toJson()})}},_t),Ze=(Tt.fromJson=function(e,t){var r=Qe.fromJson(e.key);if(r&&t.supports(r.type))return(t=et.fromJson(e.match))&&new Tt(r,t)},Tt.prototype.toJson=function(){return{key:this.key.toJson(),match:this.match.toJson()}},Tt),Qe=(wt.fromJson=function(e){var t=De(Gt,e.type);return t&&new wt(t,e.name)},wt.prototype.toJson=function(){return{type:this.type,name:this.name}},wt),et=(Et.fromJson=function(e){var t=De(Ft,e.type),r=De(Vt,e.operator),n=De(jt,e.valueType);return t&&r&&n&&new Et(t,r,n,e.values)},Et.prototype.toJson=function(){return{operator:this.operator,type:this.type,valueType:this.valueType,values:this.values}},Et),tt=(gt.fromJson=function(e){var t=De(Ht,e.type);return t&&new gt(t,e.variationId,e.bucketId)},gt),rt=(mt.fromJson=function(e,t){t=We.fromJson(e.target,t),e=tt.fromJson(e.action);return t&&e&&new mt(t,e)},mt),nt=(vt.fromJson=function(e){var t=De(Bt,e.type);return t&&new vt(e.id,e.key,t,c.mapNotNullOrUndefined(e.targets,function(e){return We.fromJson(e,Kt.SEGMENT)}))},vt),it=(yt.fromJson=function(e){return new yt(e.id,e.bucketId,e.groups.map(function(e){return ot.fromJson(e)}))},yt.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},yt),ot=(ht.fromJson=function(e){return new ht(e.id,e.experiments)},ht),st=(dt.fromJson=function(e){return new dt(e.id,c.associate(e.parameters,function(e){return[e.key,e.value]}))},dt.prototype.get=function(e,t){e=this.parameters.get(e);return!a.isNullOrUndefined(e)&&(a.isNullOrUndefined(t)||typeof e==typeof t)?e:t},dt),at=(ft.fromJson=function(e){var t=De(jt,e.type),r=c.mapNotNullOrUndefined(e.targetRules,function(e){return ut.fromJson(e,Kt.PROPERTY)}),n=ct.fromJson(e.defaultValue);return t&&new ft(e.id,e.key,t,e.identifierType,r,n)},ft),ut=(lt.fromJson=function(e,t){t=We.fromJson(e.target,t);return t&&new lt(e.key,e.name,t,e.bucketId,ct.fromJson(e.value))},lt),ct=(pt.fromJson=function(e){return new pt(e.id,e.value)},pt);function pt(e,t){this.id=e,this.rawValue=t}function lt(e,t,r,n,i){this.key=e,this.name=t,this.target=r,this.bucketId=n,this.value=i}function ft(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 dt(e,t){this.id=e,this.parameters=t}function ht(e,t){this.id=e,this.experiments=t}function yt(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function vt(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function mt(e,t){this.target=e,this.action=t}function gt(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function Et(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function wt(e,t){this.type=e,this.name=t}function Tt(e,t){this.key=e,this.match=t}function _t(e){this.conditions=e}function It(){this.identifiers={}}function At(){}function bt(e,t){this.id=e,this.key=t}function Ot(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function Rt(e,t,r,n){this.id=e,this.seed=t,this.slotSize=r,this.slots=n}function Nt(e,t,r,n,i,o,s,a,u,c,p,l,f,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=p,this.defaultRule=l,this.containerId=f,this._winnerVariationId=d}function i(){}function St(){}function Ct(){}function Mt(e,t,r){this.isOn=e,this.reason=t,this.config=r}function xt(e,t,r){this.variation=e,this.reason=t,this.config=r}function Pt(e,t,r){this.inAppMessage=e,this.message=t,this.reason=r}function kt(e,t){this.value=e,this.reason=t}Kr.tryParse=function(e){var t,r,n,i,e=Kr.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 Kr(new Dt(parseInt(t,10),parseInt(r,10),parseInt(n,10)),Lt.parse(i),Lt.parse(e))},Kr.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},Kr.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},Kr.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},Kr.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},Kr.prototype.isLessThan=function(e){return this.compareTo(e)<0},Kr.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},Kr.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 Ut=Kr,Dt=(Br.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},Br),Lt=(Gr.parse=function(e){return e?new Gr(e.split(".")):Gr.EMPTY},Gr.prototype.isEmpty=function(){return 0===this.identifiers.length},Gr.prototype.isNotEmpty=function(){return!this.isEmpty()},Gr.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},Gr.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=Gr.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},Gr.compareIdentifiers=function(e,t){return Gr.numericIdentifierRegExp.test(e)&&Gr.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},Gr.EMPTY=new Gr([]),Gr.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,Gr),Ft=["MATCH","NOT_MATCH"],jt=["STRING","NUMBER","BOOLEAN","VERSION","JSON","NULL","UNKNOWN"],Vt=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],Ht=["VARIATION","BUCKET"],Gt=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT","AB_TEST","FEATURE_FLAG","EVENT_PROPERTY"],Bt=["USER_ID","USER_PROPERTY"],Kt=(Hr.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},Hr.IDENTIFIER=new Hr("SEGMENT"),Hr.PROPERTY=new Hr("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY","AB_TEST","FEATURE_FLAG","EVENT_PROPERTY"),Hr.SEGMENT=new Hr("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),Hr),zt=["ACTIVE","DRAFT","PAUSE"],qt=["WEB","ANDROID","IOS"],Yt=["IMMEDIATE","CUSTOM"],Jt=["MODAL"],$t=["IMAGE_TEXT","IMAGE_ONLY","TEXT_ONLY"],Xt=["VERTICAL","HORIZONTAL"],Wt=["CLICK"],Zt=["CLOSE","WEB_LINK","HIDDEN","LINK_AND_CLOSE"],Qt=(Vr.fromJson=function(e){var t,r=De(zt,e.status);if(!a.isNullOrUndefined(r)){switch(De(Yt,e.timeUnit)){case"IMMEDIATE":t=new er;break;case"CUSTOM":if(a.isNullOrUndefined(e.startEpochTimeMillis))return;if(a.isNullOrUndefined(e.endEpochTimeMillis))return;t=new tr(e.startEpochTimeMillis,e.endEpochTimeMillis);break;default:return}var n,i,o=cr.fromJson(e.messageContext);if(!a.isNullOrUndefined(o))return n=e.eventTriggerRules.map(nr.fromJson),i=ir.fromJson(e.eventFrequencyCap),new Vr(e.id,e.key,r,t,new rr(n,i),ar.fromJson(e.targetContext),o)}},Vr.prototype.supports=function(e){return this.messageContext.platformTypes.includes(e)},Vr),er=(jr.prototype.within=function(e){return!0},jr),tr=(Fr.prototype.within=function(e){return this.startMillisInclusive<=e&&e<this.endMillisExclusive},Fr),rr=function(e,t){this.rules=e,this.frequencyCap=t},nr=(Lr.fromJson=function(e){return new Lr(e.eventKey,c.mapNotNullOrUndefined(e.targets,function(e){return We.fromJson(e,Kt.PROPERTY)}))},Lr),ir=(Dr.fromJson=function(e){return e?new Dr(e.identifiers.map(or.fromJson),sr.fromJson(e.duration)):null},Dr),or=(Ur.fromJson=function(e){return new Ur(e.identifierType,e.countPerIdentifier)},Ur),sr=(kr.fromJson=function(e){if(!e)return null;var t=De(Se,e.durationUnit.timeUnit);return t?new kr(Ce.converter[t](e.durationUnit.amount,"milliseconds"),e.countPerDuration):null},kr),ar=(Pr.fromJson=function(e){return new Pr(e.overrides.map(ur.fromJson),c.mapNotNullOrUndefined(e.targets,function(e){return We.fromJson(e,Kt.PROPERTY)}))},Pr),ur=(xr.fromJson=function(e){return new xr(e.identifierType,e.identifiers)},xr),cr=(Mr.fromJson=function(e){var t=Le(qt,e.platformTypes);if(!a.isNullOrUndefined(t)){var r=Le(Xt,e.orientations);if(!a.isNullOrUndefined(r)){var n=c.mapOrUndefined(e.messages,pr.fromJson);if(!a.isNullOrUndefined(n))return new Mr(e.defaultLang,t,r,n)}}},Mr),pr=(Cr.fromJson=function(e){var t=lr.fromJson(e.layout);if(!a.isNullOrUndefined(t)){var r=c.mapOrUndefined(e.images,fr.fromJson);if(!a.isNullOrUndefined(r)){var n=c.mapOrUndefined(e.buttons,vr.fromJson);if(!a.isNullOrUndefined(n)){var i=void 0;if(!a.isNotNullOrUndefined(e.closeButton)||(i=vr.fromJson2(e.closeButton),!a.isNullOrUndefined(i)))return new Cr(e.lang,t,r,e.text?dr.fromJson(e.text):void 0,n,i,new gr(e.background.color))}}}},Cr.prototype.toJson=function(){var e;return{lang:this.lang,layout:{layoutType:this.layout.layoutType,displayType:this.layout.displayType},images:this.images.map(function(e){return e.toJson()}),text:null!=(e=null==(e=this.text)?void 0:e.toJson())?e:null,closeButton:null!=(e=null==(e=this.closeButton)?void 0:e.toCloseButtonJson())?e:null,buttons:this.buttons.map(function(e){return e.toJson()}),background:{color:this.background.color}}},Cr),lr=(Sr.fromJson=function(e){var t=De($t,e.layoutType),e=De(Jt,e.displayType);if(!a.isNullOrUndefined(e)&&!a.isNullOrUndefined(t))return new Sr(e,t)},Sr),fr=(Nr.fromJson=function(e){var t=De(Xt,e.orientation);if(!a.isNullOrUndefined(t)){var r=void 0;if(!a.isNotNullOrUndefined(e.action)||(r=Er.fromJson(e.action),!a.isNullOrUndefined(r)))return new Nr(t,e.imagePath,r)}},Nr.prototype.toJson=function(){var e;return{orientation:this.orientation,imagePath:this.imagePath,action:null!=(e=null==(e=this.action)?void 0:e.toJson())?e:null}},Nr),dr=(Rr.fromJson=function(e){return new Rr(hr.fromJson(e.title),hr.fromJson(e.body))},Rr.prototype.toJson=function(){return{title:{text:this.title.text,style:{textColor:this.title.style.color}},body:{text:this.body.text,style:{textColor:this.body.style.color}}}},Rr),hr=(Or.fromJson=function(e){return new Or(e.text,new yr(e.style.textColor))},Or),yr=function(e){this.color=e},vr=(br.fromJson=function(e){var t=Er.fromJson(e.action);if(!a.isNullOrUndefined(t))return new br(e.text,new mr(e.style.textColor,e.style.bgColor,e.style.borderColor),t)},br.fromJson2=function(e){var t=Er.fromJson(e.action);if(!a.isNullOrUndefined(t))return new br("✕",new mr(e.style.color,"#FFFFFF","#FFFFFF"),t)},br.prototype.toJson=function(){return{text:this.text,action:this.action.toJson(),style:{textColor:this.style.textColor,bgColor:this.style.backgroundColor,borderColor:this.style.backgroundColor}}},br.prototype.toCloseButtonJson=function(){return{action:this.action.toJson(),style:{color:this.style.textColor}}},br),mr=function(e,t,r){this.textColor=e,this.backgroundColor=t,this.borderColor=r},gr=function(e){this.color=e},Er=(Ar.fromJson=function(e){var t=De(Wt,e.behavior);if(!a.isNullOrUndefined(t)){var r=De(Zt,e.type);if(!a.isNullOrUndefined(r))return new Ar(t,r,null!=(t=e.value)?t:void 0)}},Ar.prototype.toJson=function(){var e;return{behavior:this.behavior,type:this.type,value:null!=(e=this.value)?e:null}},Ar),wr=(Ir.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},Ir.prototype.tag=function(e,t){return this._tags[e]=t,this},Ir.prototype.register=function(e){return e.registerTimer({name:this.name,tags:this._tags,type:"TIMER"})},Ir),Tr=(_r.start=function(e){return new _r(e=void 0===e?_r.defaultClock:e)},_r.prototype.stop=function(e){var t=this._clock.tick()-this.startTime;e.record(t,"microseconds")},_r.defaultClock=new Me,_r);function _r(e){this._clock=e,this.startTime=this._clock.tick()}function Ir(e){this.name=e,this._tags={},this.name=e}function Ar(e,t,r){this.behavior=e,this.type=t,this.value=r}function br(e,t,r){this.text=e,this.style=t,this.action=r}function Or(e,t){this.text=e,this.style=t}function Rr(e,t){this.title=e,this.body=t}function Nr(e,t,r){this.orientation=e,this.imagePath=t,this.action=r}function Sr(e,t){this.displayType=e,this.layoutType=t}function Cr(e,t,r,n,i,o,s){this.lang=e,this.layout=t,this.images=r,this.text=n,this.buttons=i,this.closeButton=o,this.background=s}function Mr(e,t,r,n){this.defaultLang=e,this.platformTypes=t,this.orientations=r,this.messages=n}function xr(e,t){this.identifierType=e,this.identifiers=t}function Pr(e,t){this.overrides=e,this.targets=t}function kr(e,t){this.durationMillis=e,this.count=t}function Ur(e,t){this.identifierType=e,this.count=t}function Dr(e,t){this.identifierCaps=e,this.durationCap=t}function Lr(e,t){this.eventKey=e,this.targets=t}function Fr(e,t){this.startMillisInclusive=e,this.endMillisExclusive=t,this.type="CUSTOM"}function jr(){this.type="IMMEDIATE"}function Vr(e,t,r,n,i,o,s){this.id=e,this.key=t,this.status=r,this.period=n,this.eventTrigger=i,this.targetContext=o,this.messageContext=s}function Hr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function Gr(e){this.identifiers=e}function Br(e,t,r){this.major=e,this.minor=t,this.patch=r}function Kr(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}qr.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},qr.prototype.tag=function(e,t){return this._tags[e]=t,this},qr.prototype.register=function(e){return e.registerCounter({name:this.name,tags:this._tags,type:"COUNTER"})};var zr=qr;function qr(e){this.name=e,this._tags={}}Object.defineProperty(Jr.prototype,"value",{get:function(){return this.valueSupplier()},enumerable:!1,configurable:!0});var Yr=Jr;function Jr(e,t){this.valueSupplier=t,this.field=e}function $r(e,t){return e.name===t.name&&Oe.isEquals(e.tags,t.tags)}on.prototype.count=function(){return this.counterValue},on.prototype.increment=function(e){this.counterValue+=null!=e?e:1},on.prototype.measure=function(){return[new Yr("count",this.count.bind(this))]};var Xr,Wr=on,Zr=(nn.prototype.flush=function(){var e=this.currentCounter;return this.currentCounter=new Wr(this.id),e},nn.prototype.count=function(){return this.currentCounter.count()},nn.prototype.increment=function(e){this.currentCounter.increment(e)},nn.prototype.measure=function(){return[new Yr("count",this.count.bind(this))]},nn),Qr=(rn.prototype.values=function(){return Array.from(this.data.values())},rn.prototype.keys=function(){return Array.from(this.data.keys())},rn.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},rn.prototype.has=function(e){return void 0!==this.get(e)},rn.prototype.add=function(e,t){t=(t=t)||e;return this.data.set(e,t),this},rn.prototype.delete=function(e){var t;if(this.has(e))return t=this.get(e),this.data.delete(e),t},rn.prototype.forEach=function(e){this.data.forEach(e)},rn.prototype.entries=function(){return Array.from(this.data.entries())},rn),r=(Object.defineProperty(tn.prototype,"metrics",{get:function(){return Array.from(this._metrics.values())},enumerable:!1,configurable:!0}),tn.prototype.registerCounter=function(e){return this.registerMetricIfNecessary(e,this.createCounter.bind(this))},tn.prototype.registerTimer=function(e){return this.registerMetricIfNecessary(e,this.createTimer.bind(this))},tn.prototype.counter=function(e,t){return void 0===t&&(t={}),new zr(e).tags(t).register(this)},tn.prototype.timer=function(e,t){return void 0===t&&(t={}),new wr(e).tags(t).register(this)},tn.prototype.registerMetricIfNecessary=function(e,t){return this.getOrCreateMetric(e,t)},tn.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},tn.prototype.close=function(){},tn),o=(ce(en,Xr=r),en.prototype.start=function(){var e=this;void 0===this.currentIntervalId&&(this.currentIntervalId=setInterval(function(){e.publish()},this.pushIntervalMillis),he.log.debug("PushMetricRegistry started. Publish metrics every ".concat(this.pushIntervalMillis,"ms.")))},en.prototype.stop=function(){void 0!==this.currentIntervalId&&(clearInterval(this.currentIntervalId),this.currentIntervalId=void 0,this.publish(),he.log.debug("PushMetricRegistry stopped."))},en.prototype.close=function(){this.stop()},en);function en(e){var t=Xr.call(this)||this;return t.pushIntervalMillis=e,t.currentIntervalId=void 0,t.pushIntervalMillis=e,t}function tn(){this.id=ae.v4(),this.name="MetricRegistry",this._metrics=new Qr($r)}function rn(e){this.compareFn=e,this.data=new Map,this.compareFn=e,this.data=new Map}function nn(e){this.id=e,this.currentCounter=new Wr(e)}function on(e){this.counterValue=0,this.id=e}yn.prototype.count=function(){return this._count},yn.prototype.totalTime=function(e){return Ce.nanosToUnit(this._total,e)},yn.prototype.max=function(e){return Ce.nanosToUnit(this._max,e)},yn.prototype.mean=function(e){return 0===this.count()?0:this.totalTime(e)/this.count()},yn.prototype.record=function(e,t){e<0||(t=Ce.converter[t](e,"nanoseconds"),this._count=this.count()+1,this._total+=t,this._max=Math.max(t,this._max))},yn.prototype.measure=function(){var e=this;return[new Yr("count",this.count.bind(this)),new Yr("total",function(){return e.totalTime("milliseconds")}),new Yr("max",function(){return e.max("milliseconds")}),new Yr("mean",function(){return e.mean("milliseconds")})]};var sn,an=yn,un=(hn.prototype.flush=function(){var e=this.currentTimer;return this.currentTimer=new an(this.id),e},hn.prototype.count=function(){return this.currentTimer.count()},hn.prototype.totalTime=function(e){return this.currentTimer.totalTime(e)},hn.prototype.max=function(e){return this.currentTimer.max(e)},hn.prototype.record=function(e,t){this.currentTimer.record(e,t)},hn.prototype.mean=function(e){return 0===this.count()?0:this.totalTime(e)/this.count()},hn.prototype.measure=function(){var e=this;return[new Yr("count",this.count.bind(this)),new Yr("total",function(){return e.totalTime("milliseconds")}),new Yr("max",function(){return e.max("milliseconds")}),new Yr("mean",function(){return e.mean("milliseconds")})]},hn),o=(ce(dn,sn=o),dn.prototype.createCounter=function(e){return new Zr(e)},dn.prototype.createTimer=function(e){return new un(e)},dn.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)},dn.prototype.close=function(){sn.prototype.close.call(this)},dn),cn=(fn.prototype.count=function(){return 0},fn.prototype.increment=function(e){},fn.prototype.measure=function(){return[new Yr("count",this.count.bind(this))]},fn),pn=(Object.defineProperty(ln.prototype,"counters",{get:function(){return Array.from(this._counters.values())},enumerable:!1,configurable:!0}),ln.prototype.add=function(e){this._counters.add(e,e.registerCounter(this.id))},ln.prototype.count=function(){return(this.counters[0]||this.noopCounter).count()},ln.prototype.increment=function(t){this.counters.forEach(function(e){e.increment(t)})},ln.prototype.measure=function(){return[new Yr("count",this.count.bind(this))]},ln);function ln(e){this._counters=new Qr(function(e,t){return e.id===t.id}),this.id=e,this.noopCounter=new cn(e)}function fn(e){this.id=e}function dn(e){return sn.call(this,e)||this}function hn(e){this.id=e,this.currentTimer=new an(e)}function yn(e){this._count=0,this._total=0,this._max=0,this.id=e}Ln.prototype.measure=function(){var e=this;return[new Yr("count",this.count.bind(this)),new Yr("total",function(){return e.totalTime("milliseconds")}),new Yr("max",function(){return e.max("milliseconds")}),new Yr("mean",function(){return e.mean("milliseconds")})]},Ln.prototype.count=function(){return 0},Ln.prototype.totalTime=function(e){return 0},Ln.prototype.max=function(e){return 0},Ln.prototype.mean=function(e){return 0},Ln.prototype.record=function(e,t){};var u,vn,mn,gn=Ln,En=(Object.defineProperty(Dn.prototype,"firstTimer",{get:function(){return this.timers[0]||this.noopTimer},enumerable:!1,configurable:!0}),Dn.prototype.totalTime=function(e){return this.firstTimer.totalTime(e)},Dn.prototype.max=function(e){return this.firstTimer.max(e)},Dn.prototype.mean=function(e){return this.firstTimer.mean(e)},Dn.prototype.record=function(t,r){this.timers.forEach(function(e){e.record(t,r)})},Object.defineProperty(Dn.prototype,"timers",{get:function(){return Array.from(this._timers.values())},enumerable:!1,configurable:!0}),Dn.prototype.add=function(e){this._timers.add(e,e.registerTimer(this.id))},Dn.prototype.count=function(){return this.firstTimer.count()},Dn.prototype.measure=function(){var e=this;return[new Yr("count",this.count.bind(this)),new Yr("total",function(){return e.totalTime("milliseconds")}),new Yr("max",function(){return e.max("milliseconds")}),new Yr("mean",function(){return e.mean("milliseconds")})]},Dn),r=(ce(Un,mn=r),Un.prototype.createCounter=function(e){e=new pn(e);return this.addRegistry(e),e},Un.prototype.createTimer=function(e){e=new En(e);return this.addRegistry(e),e},Un.prototype.addRegistry=function(t){this.registries.forEach(function(e){return t.add(e)})},Un.prototype.add=function(t){t instanceof Un||this.registries.has(t)||(this.registries.add(t),this.metrics.forEach(function(e){void 0!==e.add&&"function"==typeof e.add&&e.add(t)}))},Un.prototype.close=function(){this.registries.forEach(function(e){e.close()})},Un),wn=(kn.counter=function(e,t){return kn.globalRegistry.counter(e,t)},kn.timer=function(e,t){return kn.globalRegistry.timer(e,t)},kn.addRegistry=function(e){kn.globalRegistry.add(e),he.log.debug("MetricRegistry added ".concat(e.name))},kn.globalRegistry=new r,kn),Tn=(ce(Pn,vn=o),Pn.prototype.flushMetrics=function(e){var t=this;c.chunked(e.filter(this.isDispatchTarget.bind(this)),100).forEach(function(e){t.dispatch(e)})},Pn.prototype.isDispatchTarget=function(e){return!("COUNTER"!==e.id.type&&"TIMER"!==e.id.type)&&0<e.count()},Pn.prototype.dispatch=function(e){this.useBeacon&&this.shouldUseBeacon?this.httpClient.sendBeacon(this.monitoringEndPoint,this.batch(e),this.httpHeader,function(){he.log.debug("Beacon called.")}):this.httpClient.postRequest(this.monitoringEndPoint,this.batch(e),this.httpHeader,function(){},function(){he.log.debug("Failed to flushing metrics.")})},Pn.prototype.batch=function(e){return{metrics:e.map(function(e){return{name:e.id.name,type:e.id.type,tags:e.id.tags,measurements:a.fromMap(c.associate(e.measure(),function(e){return[e.field,e.value]}))}})}},Pn.prototype.createCounter=function(e){return new Zr(e)},Pn.prototype.createTimer=function(e){return new un(e)},Pn.prototype.close=function(){this.shouldUseBeacon=!0,vn.prototype.close.call(this)},Pn),_n=(xn.experiment=function(e,t,r){t=wn.timer("experiment.decision",{key:String(t),variation:r.variation,reason:String(r.reason)});e.stop(t)},xn.featureFlag=function(e,t,r){t=wn.timer("feature.flag.decision",{key:String(t),on:String(r.isOn),reason:String(r.reason)});e.stop(t)},xn.remoteConfig=function(e,t,r){t=wn.timer("remote.config.decision",{key:String(t),reason:String(r.reason)});e.stop(t)},xn.inAppMessage=function(e,t,r){t=wn.timer("iam.decision",{key:String(t),show:String(r.isShow()),reason:String(r.reason)});e.stop(t)},xn),In=(Mn.record=function(e,t,r){e=wn.timer("api.call",{operation:e,success:String(r)});t.stop(e)},Mn),An=(Cn.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)}},Cn.decision=function(e,t,r,n,i){return a.isNullOrUndefined(t)?je.of(n,s.INVALID_INPUT):e.remoteConfig(t,i,r,n)},Cn),bn=he.log,On=(Sn.prototype.get=function(e,t){var r,n=Tr.start();try{r=this.decide(e,t)}catch(n){bn.error("Unexpected exception while deciding remote config parameter[".concat(e,"]. Returning default value. : ").concat(n)),r=je.of(t,s.EXCEPTION)}return _n.remoteConfig(n,e,r),r.value},Sn.prototype.decide=function(e,t){var r=this.userManager.resolveCurrentOrNull(this.user);if(!r)return bn.warn("invalid user"),je.of(t,s.INVALID_INPUT);r=this.hackleUserResolver.resolve(r);return An.decide(this.core,e,t,r)},Sn),Rn=(Nn.prototype.contains=function(e){return this._properties.has(e)},Nn.prototype.remove=function(e){var r=this;return e instanceof Map&&e.forEach(function(e,t){r.remove(t)}),"string"==typeof e&&this._properties.delete(e),this},Nn.prototype.compute=function(e,t){var r=this._properties.get(e),t=t(r);null!==t?this.add(e,t):null===r&&!this.contains(e)||this.remove(e)},Nn.prototype.add=function(e,t,r){if((r=void 0===r?!1:r)&&this.contains(e))return this;if(this._properties.size>=this.MAX_PROPERTIES_COUNT)return this;if("string"==typeof e&&e.length>this.MAX_PROPERTY_KEY_LENGTH)return this;r=Ne.sanitizeValue(e,t);return r&&this._properties.set(e,r),this},Nn.prototype.addProperties=function(e,r){var n=this;return void 0===r&&(r=!1),e.forEach(function(e,t){n.add(t,e,r)}),this},Nn.prototype.build=function(){return this._properties},Nn);function Nn(){this._properties=new Map,this.MAX_PROPERTIES_COUNT=128,this.MAX_PROPERTY_KEY_LENGTH=128}function Sn(e,t,r,n){this.core=e,this.userManager=t,this.hackleUserResolver=r,this.user=n}function Cn(){}function Mn(){}function xn(){}function Pn(e,t,r,n,i){t=vn.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 kn(){}function Un(){var e=null!==mn&&mn.apply(this,arguments)||this;return e.registries=new Qr(function(e,t){return e.id===t.id}),e}function Dn(e){this._timers=new Qr(function(e,t){return e.id===t.id}),this.id=e,this.noopTimer=new gn(e)}function Ln(e){this.id=e}(r=u=u||{}).SET="$set",r.SET_ONCE="$setOnce",r.UNSET="$unset",r.INCREMENT="$increment",r.APPEND="$append",r.APPEND_ONCE="$appendOnce",r.PREPEND="$prepend",r.PREPEND_ONCE="$prependOnce",r.REMOVE="$remove",r.CLEAR_ALL="$clearAll";Ri.prototype.operate=function(e,t){return 0===e.size?t:0===t.size?e:(new Rn).addProperties(e).addProperties(t).build()};var Fn,jn,Vn,Hn,Gn,Bn,Kn,zn,qn=Ri,Yn=(Oi.prototype.operate=function(e,t){return 0===e.size?t:0===t.size?e:(new Rn).addProperties(e).addProperties(t,!0).build()},Oi),Jn=(bi.prototype.operate=function(e,t){return 0===e.size?new Map:0===t.size?e:(new Rn).addProperties(e).remove(t).build()},bi),$n=(Ai.prototype.operate=function(e,t){var r=this;if(0===t.size)return e;var n=new Rn;return n.addProperties(e),t.forEach(function(t,e){n.compute(e,function(e){return r.increment(e,t)})}),n.build()},Ai.prototype.increment=function(e,t){return"number"!=typeof t?e:"number"!=typeof e?null==e?t:e:e+t},Ai),o=(Ii.prototype.operate=function(e,t){var r=this;if(0===t.size)return e;var n=new Rn;return n.addProperties(e),t.forEach(function(t,e){n.compute(e,function(e){return r.compute(e,t)})}),n.build()},Ii.prototype.compute=function(e,t){e=this.toArray(e),t=this.toArray(t);return this.operateArray(e,t)},Ii.prototype.toArray=function(e){return null==e?[]:Array.isArray(e)?e:[e]},Ii.prototype.contains=function(e,t){return e.includes(t)},Ii.prototype.prepend=function(e,t,r){return(r=void 0===r?!1:r)&&this.contains(t,e)?t:fe([e],t,!0)},Ii.prototype.append=function(e,t,r){return(r=void 0===r?!1:r)&&this.contains(e,t)?e:fe(fe([],e,!0),[t],!1)},Ii),Xn=(ce(_i,zn=o),_i.prototype.operateArray=function(e,t){var r=this;return t.reduce(function(e,t){return r.append.bind(r)(e,t)},e)},_i),Wn=(ce(Ti,Kn=o),Ti.prototype.operateArray=function(e,t){return t.reduce(this.appendOnce.bind(this),e)},Ti.prototype.appendOnce=function(e,t){return this.append(e,t,!0)},Ti),Zn=(ce(wi,Bn=o),wi.prototype.operateArray=function(e,t){var r=this;return t.reduceRight(function(e,t){return r.prepend.bind(r)(t,e)},e)},wi),Qn=(ce(Ei,Gn=o),Ei.prototype.operateArray=function(e,t){var r=this;return t.reduce(this.appendOnce.bind(this),[]).reduceRight(function(e,t){return r.prependOnce.bind(r)(t,e)},e)},Ei.prototype.appendOnce=function(e,t){return this.append(e,t,!0)},Ei.prototype.prependOnce=function(e,t){return this.prepend(e,t,!0)},Ei),ei=(ce(gi,Hn=o),gi.prototype.operateArray=function(e,t){return t.reduce(this.remove.bind(this),e)},gi.prototype.remove=function(e,t){return e.filter(function(e){return e!==t})},gi),ti=(mi.prototype.operate=function(e,t){return new Map},mi),ri=(vi.get=function(e){switch(e){case u.SET:return new qn;case u.SET_ONCE:return new Yn;case u.UNSET:return new Jn;case u.INCREMENT:return new $n;case u.APPEND:return new Xn;case u.APPEND_ONCE:return new Wn;case u.PREPEND:return new Zn;case u.PREPEND_ONCE:return new Qn;case u.CLEAR_ALL:return new ti;case u.REMOVE:return new ei}},vi),ni=(yi.prototype.set=function(e,t){return this.add(u.SET,e,t)},yi.prototype.setOnce=function(e,t){return this.add(u.SET_ONCE,e,t)},yi.prototype.unset=function(e){return this.add(u.UNSET,e,"-")},yi.prototype.increment=function(e,t){return this.add(u.INCREMENT,e,t)},yi.prototype.append=function(e,t){return this.add(u.APPEND,e,t)},yi.prototype.appendOnce=function(e,t){return this.add(u.APPEND_ONCE,e,t)},yi.prototype.prepend=function(e,t){return this.add(u.PREPEND,e,t)},yi.prototype.prependOnce=function(e,t){return this.add(u.PREPEND_ONCE,e,t)},yi.prototype.remove=function(e,t){return this.add(u.REMOVE,e,t)},yi.prototype.clearAll=function(){return this.add(u.CLEAR_ALL,"clearAll","-")},yi.prototype.build=function(){var e=Array.from(this.operations.entries()).map(function(e){return[e[0],e[1].build()]});return new ii(new Map(e))},yi.prototype.containsKey=function(t){return Array.from(this.operations.entries()).some(function(e){return e[0],e[1].contains(t)})},yi.prototype.add=function(e,t,r){if(this.containsKey(t))return this;this.operations.has(e)||this.operations.set(e,new Rn);e=this.operations.get(e);return null!=e&&e.add(t,r),this},yi),ii=(hi.prototype.operate=function(e){var r=e;return this.operations.forEach(function(e,t){r=ri.get(t).operate(r,e)}),r},hi.prototype.toEvent=function(){var i={key:"$properties"};return this.operations.forEach(function(e,t){var r,n;i.properties=E(E({},i.properties),((r={})[t]=E(E({},null==(n=i.properties)?void 0:n[t]),Ne.sanitize(a.fromMap(e))),r))}),i},hi),l=he.log,oi=(f.prototype.getSessionId=function(){return this.sessionManager.sessionId},f.prototype.getUser=function(){return this.userManager.currentUser},f.prototype.setUser=function(e){try{var t=Fe(e);if(!t)return void l.warn("invalid user");this.userManager.setUser(t)}catch(e){l.error("Unexpected exception while set user: ".concat(e))}},f.prototype.setUserId=function(e){try{void 0===e&&this.userManager.setUserId(void 0);var t=Oe.sanitizeValue(e);if(!t)return void l.warn("Invalid userId. [userId=".concat(e,"]"));this.userManager.setUserId(t)}catch(e){l.error("Unexpected exception while set userId: ".concat(e))}},f.prototype.setDeviceId=function(e){try{if(!Oe.sanitizeValue(e))return void l.warn("Invalid deviceId. [deviceId=".concat(e,"]"));this.userManager.setDeviceId(e)}catch(e){l.error("Unexpected exception while set deviceId: ".concat(e))}},f.prototype.setUserProperty=function(e,t){e=(new ni).set(e,t).build();this.updateUserProperties(e)},f.prototype.setUserProperties=function(e){try{var t=Ne.sanitize(e),r=new ni;Object.entries(t).forEach(function(e){var t=e[0],e=e[1];r.set(t,e)}),this.updateUserProperties(r.build())}catch(e){l.error("Unexpected exception while set userProperties: ".concat(e))}},f.prototype.updateUserProperties=function(e){try{var t=e.toEvent();this.track(t),this.userManager.updateUserProperties(e)}catch(e){l.error("Unexpected exception while update userProperties: ".concat(e))}},f.prototype.resetUser=function(){try{this.userManager.resetUser();var e=(new ni).clearAll().build();this.track(e.toEvent())}catch(e){l.error("Unexpected exception while reset user: ".concat(e))}},f.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},f.prototype.variationDetail=function(n,i,e){var o=e||"A",e=Tr.start(),t=function(e){try{var t=e.userManager.resolveCurrentOrNull(i);if(!t)return l.warn("invalid user"),He.of(o,s.INVALID_INPUT);var r=e.hackleUserResolver.resolve(t);return e.core.experiment(n,r,o)}catch(e){return l.error("Unexpected exception while deciding variation for experiment[".concat(n,"]. Returning default variation[").concat(o,"] : ").concat(e)),He.of(o,s.EXCEPTION)}}(this);return _n.experiment(e,n,t),t},f.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},f.prototype.featureFlagDetail=function(n,i){var e=Tr.start(),t=function(e){try{var t=e.userManager.resolveCurrentOrNull(i);if(!t)return l.warn("invalid user"),Ge.off(s.INVALID_INPUT);var r=e.hackleUserResolver.resolve(t);return e.core.featureFlag(n,r)}catch(e){return l.error("Unexpected exception while deciding feature flag[".concat(n,"]. Returning default value[false] : ").concat(e)),Ge.off(s.EXCEPTION)}}(this);return _n.featureFlag(e,n,t),t},f.prototype.track=function(e,t){try{l.debug("track event : ".concat(JSON.stringify(e)));var r=this._convertEvent(e),n=this.userManager.resolveCurrentOrNull(t);if(!n)return void l.warn("invalid user");var i=this.hackleUserResolver.resolve(n);this.core.track(r,i)}catch(e){l.error("Unexpected exception while tracking event: ".concat(e))}},f.prototype.trackPageView=function(e){l.debug("tracking page view");var t=this.hackleUserResolver.resolve(this.userManager.currentUser);this.core.track({key:"$page_view"},t)},f.prototype.remoteConfig=function(e){return new On(this.core,this.userManager,this.hackleUserResolver,e)},f.prototype.onReady=function(e,t){this.core.onReady(e,t=void 0===t?3e3:t)},f.prototype.onInitialized=function(e){return this.core.onInitialized({timeout:null==e?void 0:e.timeout})},f.prototype.close=function(){l.debug("Hackle Client is closing"),this.core.close()},f.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},f.prototype.showUserExplorer=function(){var e;null!=(e=this.devTools)&&e.userExplorer?(l.debug("UserExplorer opened."),wn.counter("user.explorer.show",{}).increment(),this.devTools.manager.userExplorer(this.devTools.userExplorer)):l.error("UserExplorer is not provided")},f.prototype.hideUserExplorer=function(){this.devTools?this.devTools.manager.close():l.warn("There is no active HackleDevtools.")},f),si=(di.exposure=function(e,t,r,n){return new ai(n,e,t.experiment,t.variationId,t.variationKey,t.reason,r)},di.track=function(e,t,r,n){return new ui(n,r,e,t)},di.remoteConfig=function(e,t,r,n){return new ci(n,e,t.parameter,t.valueId,t.reason,r)},di.isExposure=function(e){return void 0!==e.experiment},di.isTrack=function(e){return void 0!==e.eventType},di.isRemoteConfig=function(e){return void 0!==e.parameter},di.isExposureDto=function(e){return"experimentId"in e&&void 0!==e.experimentId},di.isTrackDto=function(e){return"eventTypeId"in e&&void 0!==e.eventTypeId},di.isRemoteConfigDto=function(e){return"parameterId"in e&&void 0!==e.parameterId},di.prototype.toDto=function(){return{insertId:this.insertId,timestamp:this.timestamp,userId:this.user.identifiers[$e.ID],identifiers:this.user.identifiers,userProperties:Ne.sanitize(this.user.properties),hackleProperties:Ne.sanitize(this.user.hackleProperties)}},di),ai=(ce(fi,Vn=si),fi.prototype.copyWithUser=function(e){return new fi(this.timestamp,e,this.experiment,this.variationId,this.variationKey,this.decisionReason,this.properties,this.insertId)},fi.prototype.toDto=function(){return E(E({},Vn.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})},fi),ui=(ce(li,jn=si),li.prototype.copyWithUser=function(e){return new li(this.timestamp,e,this.eventType,this.event,this.insertId)},li.prototype.toDto=function(){return E(E({},jn.prototype.toDto.call(this)),{eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:Ne.sanitize(this.event.properties)})},li),ci=(ce(pi,Fn=si),pi.prototype.copyWithUser=function(e){return new pi(this.timestamp,e,this.parameter,this.valueId,this.decisionReason,this.properties,this.insertId)},pi.prototype.toDto=function(){return E(E({},Fn.prototype.toDto.call(this)),{parameterId:this.parameter.id,parameterKey:this.parameter.key,parameterType:this.parameter.type,valueId:this.valueId,decisionReason:this.decisionReason.toString(),properties:Ne.sanitize(this.properties)})},pi);function pi(e,t,r,n,i,o,s){e=Fn.call(this,e,t,s)||this;return e.parameter=r,e.valueId=n,e.decisionReason=i,e.properties=o,e}function li(e,t,r,n,i){e=jn.call(this,e,t,i)||this;return e.eventType=r,e.event=n,e}function fi(e,t,r,n,i,o,s,a){e=Vn.call(this,e,t,a)||this;return e.experiment=r,e.variationId=n,e.variationKey=i,e.decisionReason=o,e.properties=s,e}function di(e,t,r){void 0===r&&(r=ae.v4()),this.timestamp=e,this.user=t,this.insertId=r}function f(e,t,r,n,i){this.core=e,this.hackleUserResolver=t,this.sessionManager=r,this.userManager=n,this.devTools=i}function hi(e){this.operations=null!=e?e:new Map}function yi(){this.operations=new Map}function vi(){}function mi(){}function gi(){return null!==Hn&&Hn.apply(this,arguments)||this}function Ei(){return null!==Gn&&Gn.apply(this,arguments)||this}function wi(){return null!==Bn&&Bn.apply(this,arguments)||this}function Ti(){return null!==Kn&&Kn.apply(this,arguments)||this}function _i(){return null!==zn&&zn.apply(this,arguments)||this}function Ii(){}function Ai(){}function bi(){}function Oi(){}function Ri(){}function Ni(e){var t=new Array,r=new Array,n=new Array;return e.forEach(function(e){e instanceof si?si.isExposure(e)?t.push(e.toDto()):si.isTrack(e)?r.push(e.toDto()):si.isRemoteConfig(e)&&n.push(e.toDto()):si.isExposureDto(e)?t.push(e):si.isTrackDto(e)?r.push(e):si.isRemoteConfigDto(e)&&n.push(e)}),{exposureEvents:t,trackEvents:r,remoteConfigEvents:n}}zi.prototype.dispatch=function(e,t,r){var n={},e=(n["X-HACKLE-SDK-KEY"]=this.sdkKey,n[ve]=this.headers[ve],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),Ni(e)),i=Tr.start();this.httpRequest.postRequest(this.dispatchUrl,e,n,function(e){t(e),In.record("post.events",i,!0)},function(e){null!=r&&r(e),In.record("post.events",i,!1)})},zi.prototype.dispatchXhrOrBeacon=function(e,t,r){var n,i,o;this.useBeacon?((n={})["X-HACKLE-SDK-KEY"]=this.sdkKey,n[ve]=this.headers[ve],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),i=Ni(e),o=Tr.start(),this.httpRequest.sendBeacon(this.beaconDispatchUrl,i,n,function(e){t(e),In.record("post.events",o,!0)},function(e){null!=r&&r(e),In.record("post.events",o,!1)})):this.dispatch(e,t,r)};var Si=zi,Ci=(Ki.prototype.getExperiments=function(){return Array.from(this.experiments.values())},Ki.prototype.getFeatureFlags=function(){return Array.from(this.featureFlags.values())},Ki.prototype.getInAppMessages=function(){return Array.from(this.inAppMessages.values())},Ki.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},Ki.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},Ki.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},Ki.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},Ki.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},Ki.prototype.getContainerOrNull=function(e){return this.containers.get(e)},Ki.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},Ki.prototype.getRemoteConfigParameterOrNull=function(e){return this.remoteConfigParameters.get(e)},Ki.prototype.getInAppMessageOrNull=function(e){return this.inAppMessages.get(e)},Ki.from=function(e){return new Ki(c.mapNotNullOrUndefined(e.experiments,function(e){return Ke.fromJson("AB_TEST",e)}),c.mapNotNullOrUndefined(e.featureFlags,function(e){return Ke.fromJson("FEATURE_FLAG",e)}),e.buckets.map(qe.fromJson),e.events.map(Je.fromJson),c.mapNotNullOrUndefined(e.segments,nt.fromJson),e.containers.map(it.fromJson),e.parameterConfigurations.map(st.fromJson),c.mapNotNullOrUndefined(e.remoteConfigParameters,at.fromJson),c.mapNotNullOrUndefined(e.inAppMessages,Qt.fromJson))},Ki),Mi=(Bi.prototype.onReady=function(){return this.readyPromise},Bi.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},Bi.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()},Bi.prototype.get=function(){return this.workspace},Bi.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)},Bi.prototype.fetch=function(){function t(e){e=e.isSuccess,In.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[ve]=this.headers[ve],r["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],Tr.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()},Bi.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},Bi.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=Ci.from(t),this.readyPromiseResolver())}},Bi.prototype.onRequestRejected=function(e,t){this.isStarted&&(t({isSuccess:!1}),this.errorRetryController.countError(),console.error("Error fetching data",e))},Bi.prototype.close=function(){this.stop()},Bi),xi=(Gi.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*me[Math.min(me.length-1,this.errorCount)]+Math.round(1e3*Math.random())},Gi.prototype.countError=function(){this.errorCount<me.length-1&&this.errorCount++},Gi.prototype.reset=function(){this.errorCount=0},Gi),r="model",o="name",d="type",h="vendor",y="version",v="mobile",m="tablet",Pi=(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],p=r=0;p<u.length&&!o;)if(o=u[p++].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,h,[d,m]],[/applecoremedia\/[\w\.]+ \((ipad)/],[r,[h,"Apple"],[d,m]],[/(apple\s{0,1}tv)/i],[[r,"Apple TV"],[h,"Apple"],[d,"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],[h,r,[d,m]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[r,[h,"Amazon"],[d,m]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[r,g.mapper.str,g.maps.device.amazon.model],[h,"Amazon"],[d,v]],[/android.+aft([bms])\sbuild/i],[r,[h,"Amazon"],[d,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[r,h,[d,v]],[/\((ip[honed|\s\w*]+);/i],[r,[h,"Apple"],[d,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],[h,r,[d,v]],[/\(bb10;\s(\w+)/i],[r,[h,"BlackBerry"],[d,v]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[r,[h,"Asus"],[d,m]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[h,"Sony"],[r,"Xperia Tablet"],[d,m]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[h,"Sony"],[d,v]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[h,r,[d,"console"]],[/android.+;\s(shield)\sbuild/i],[r,[h,"Nvidia"],[d,"console"]],[/(playstation\s[34portablevi]+)/i],[r,[h,"Sony"],[d,"console"]],[/(sprint\s(\w+))/i],[[h,g.mapper.str,g.maps.device.sprint.vendor],[r,g.mapper.str,g.maps.device.sprint.model],[d,v]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[h,[r,/_/g," "],[d,v]],[/(nexus\s9)/i],[r,[h,"HTC"],[d,m]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[r,[h,"Huawei"],[d,v]],[/android.+(bah2?-a?[lw]\d{2})/i],[r,[h,"Huawei"],[d,m]],[/(microsoft);\s(lumia[\s\w]+)/i],[h,r,[d,v]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[r,[h,"Microsoft"],[d,"console"]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[h,"Microsoft"],[d,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,[h,"Motorola"],[d,v]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[h,"Motorola"],[d,m]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[h,g.util.trim],[r,g.util.trim],[d,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[h,"Samsung"],[d,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[r,[h,"Sharp"],[d,"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],[[h,"Samsung"],r,[d,m]],[/smart-tv.+(samsung)/i],[h,[d,"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],[[h,"Samsung"],r,[d,v]],[/sie-(\w*)/i],[r,[h,"Siemens"],[d,v]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[h,"Nokia"],r,[d,v]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[h,"Acer"],[d,m]],[/android.+([vl]k\-?\d{3})\s+build/i],[r,[h,"LG"],[d,m]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[h,"LG"],r,[d,m]],[/(lg) netcast\.tv/i],[h,r,[d,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[r,[h,"LG"],[d,v]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[h,r,[d,m]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[r,[h,"Lenovo"],[d,m]],[/(lenovo)[_\s-]?([\w-]+)/i],[h,r,[d,v]],[/linux;.+((jolla));/i],[h,r,[d,v]],[/((pebble))app\/[\d\.]+\s/i],[h,r,[d,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[h,r,[d,v]],[/crkey/i],[[r,"Chromecast"],[h,"Google"],[d,"smarttv"]],[/android.+;\s(glass)\s\d/i],[r,[h,"Google"],[d,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[r,[h,"Google"],[d,m]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[r,[h,"Google"],[d,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," "],[h,"Xiaomi"],[d,v]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[h,"Xiaomi"],[d,m]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[r,[h,"Meizu"],[d,v]],[/(mz)-([\w-]{2,})/i],[[h,"Meizu"],r,[d,v]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[r,[h,"OnePlus"],[d,v]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[r,[h,"RCA"],[d,m]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[r,[h,"Dell"],[d,m]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[r,[h,"Verizon"],[d,m]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[h,"Barnes & Noble"],r,[d,m]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[r,[h,"NuVision"],[d,m]],[/android.+;\s(k88)\sbuild/i],[r,[h,"ZTE"],[d,m]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[r,[h,"Swiss"],[d,v]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[r,[h,"Swiss"],[d,m]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[r,[h,"Zeki"],[d,m]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[h,"Dragon Touch"],r,[d,m]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[r,[h,"Insignia"],[d,m]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[r,[h,"NextBook"],[d,m]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[h,"Voice"],r,[d,v]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[h,"LvTel"],r,[d,v]],[/android.+;\s(PH-1)\s/i],[r,[h,"Essential"],[d,v]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[r,[h,"Envizen"],[d,m]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[h,r,[d,m]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[r,[h,"MachSpeed"],[d,m]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[h,r,[d,m]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[r,[h,"Rotor"],[d,m]],[/android.+(KS(.+))\s+build/i],[r,[h,"Amazon"],[d,m]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[h,r,[d,m]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[d,g.util.lowerize],h,r],[/[\s\/\(](smart-?tv)[;\)]/i],[[d,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[r,[h,"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),ki=(Hi.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=Pi.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||""}},Hi),Ui=(Vi.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]:""},Vi.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},Vi.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},Vi.prototype.setItem=function(e,t,r){var r=E(E({},this.options),r),n=r.isSecure,i="",o="",s="",a=(r.isCrossSubdomain&&(i=(a=Vi.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},Vi.prototype.removeItem=function(e,t){this.setItem(e,"",E(E({},t),{days:-1}))},new Vi({days:3650,isCrossSubdomain:!0})),Di=(ji.prototype.resolve=function(e){var t=qi(),t=(new Xe).addIdentifiers(e.identifiers||{}).add($e.ID,e.id||t).add($e.DEVICE,e.deviceId||t).add($e.HACKLE_DEVICE,t);return a.isNotNullOrUndefined(e.userId)&&t.add($e.USER,e.userId),{identifiers:t.build(),properties:e.properties||{},hackleProperties:this._getHackleProperties()}},ji.prototype.resolveCurrentUser=function(){return this.resolve(this.userManager.currentUser)},ji.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?ki.generate(window):e)||{}},ji),Li=(Fi.initialize=function(){Ui.getItem("_hackle_hid")||$i()},Fi.reInitialize=function(){$i()},Fi);function Fi(){}function ji(e){this.userManager=e,Li.initialize()}function Vi(e){this.options=e=void 0===e?{days:0,isCrossSubdomain:!1,isSecure:!1,isCrossSite:!1}:e}function Hi(){}function g(){}function Gi(){this.errorCount=0}function Bi(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 xi,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function Ki(e,t,r,n,i,o,s,a,u){this.experiments=c.associateBy(e,function(e){return e.key}),this.featureFlags=c.associateBy(t,function(e){return e.key}),this.buckets=c.associateBy(r,function(e){return e.id}),this.eventTypes=c.associateBy(n,function(e){return e.key}),this.segments=c.associateBy(i,function(e){return e.key}),this.containers=c.associateBy(o,function(e){return e.id}),this.parameterConfigurations=c.associateBy(s,function(e){return e.id}),this.remoteConfigParameters=c.associateBy(a,function(e){return e.key}),this.inAppMessages=c.associateBy(u,function(e){return e.key})}function zi(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 qi(){var e=Ui.getItem("_hackle_id");return e||Ui.getItem("_hackle_hid")||$i()}function Yi(e){Ui.setItem("_hackle_id",e)}function Ji(){Ui.removeItem("_hackle_id")}function $i(){var e=ae.v4();return Ui.setItem("_hackle_hid",e),e}function Xi(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=Xi("object"==typeof globalThis&&globalThis)||Xi("object"==typeof window&&window)||Xi("object"==typeof self&&self)||Xi("object"==typeof v&&v)||function(){return this}()||Function("return this")(),d={},r=!w(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),h=!w(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Wi=Function.prototype.call,o=h?Wi.bind(Wi):function(){return Wi.apply(Wi,arguments)},y={},e={}.propertyIsEnumerable,Zi=Object.getOwnPropertyDescriptor,v=Zi&&!e.call({1:2},1);y.f=v?function(e){e=Zi(this,e);return!!e&&e.enumerable}:e;function Qi(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function eo(e){return go(mo(e),8,-1)}function to(e){if(null==e)throw _o("Can't call method on "+e);return e}function ro(e){return Io(Ao(e))}function T(e){return"function"==typeof e}function no(e){return"object"==typeof e?null!==e:bo(e)}function io(e,t){return arguments.length<2?(r=Oo[e],Ro(r)?r:void 0):Oo[e]&&Oo[e][t];var r}function oo(e){try{return Fo(e)}catch(e){return"Object"}}function so(e){if(jo(e))return e;throw Ho(Vo(e)+" is not a function")}function ao(e,t){return null==(e=e[t])?void 0:Go(e)}function uo(t,r){try{Jo(Yo,t,{value:r,configurable:!0,writable:!0})}catch(e){Yo[t]=r}return r}function _(e){return Zo(Wo(e))}function co(e){return"Symbol("+(void 0===e?"":e)+")_"+is(++rs+ns,36)}function I(e){var t;return ss(ps,e)&&(us||"string"==typeof ps[e])||(t="Symbol."+e,us&&ss(ls,e)?ps[e]=ls[e]:ps[e]=(cs&&fs?fs:ds)(t)),ps[e]}function po(e){return e=function(e,t){if(!ys(e)||vs(e))return e;var r=ms(e,ws);if(r){if(r=hs(r,e,t=void 0===t?"default":t),!ys(r)||vs(r))return r;throw Es("Can't convert object to primitive value")}return gs(e,t=void 0===t?"number":t)}(e,"string"),Ts(e)?e:e+""}function lo(e){return Is?_s.createElement(e):{}}function fo(e){if(Ps(e))return e;throw Us(ks(e)+" is not an object")}var v=h,e=Function.prototype,ho=e.bind,yo=e.call,vo=v&&ho.bind(yo,yo),e=v?function(e){return e&&vo(e)}:function(e){return e&&function(){return yo.apply(e,arguments)}},ho=e,mo=ho({}.toString),go=ho("".slice),v=w,Eo=eo,wo=Object,To=e("".split),ho=v(function(){return!wo("z").propertyIsEnumerable(0)})?function(e){return"String"==Eo(e)?To(e,""):wo(e)}:wo,_o=TypeError,Io=ho,Ao=to,bo=T,Oo=m,Ro=T,v=e({}.isPrototypeOf),No=io("navigator","userAgent")||"",So=No,Co=m.process,Mo=m.Deno,Co=Co&&Co.versions||Mo&&Mo.version,Mo=Co&&Co.v8,Co=Lo=!(Lo=Mo?0<(A=Mo.split("."))[0]&&A[0]<4?1:+(A[0]+A[1]):Lo)&&So&&(!(A=So.match(/Edge\/(\d+)/))||74<=A[1])&&(A=So.match(/Chrome\/(\d+)/))?+A[1]:Lo,xo=Co,Mo=w,So=!!Object.getOwnPropertySymbols&&!Mo(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&xo&&xo<41}),A=So&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Po=io,ko=T,Uo=v,Do=Object,Lo=A?function(e){return"symbol"==typeof e}:function(e){var t=Po("Symbol");return ko(t)&&Uo(t.prototype,Do(e))},Fo=String,jo=T,Vo=oo,Ho=TypeError,Go=so,Bo=o,Ko=T,zo=no,qo=TypeError,Mo={exports:{}},Yo=m,Jo=Object.defineProperty,$o=uo,$o=m["__core-js_shared__"]||$o("__core-js_shared__",{}),Xo=$o,Wo=((Mo.exports=function(e,t){return Xo[e]||(Xo[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"}),to),Zo=Object,Qo=_,es=e({}.hasOwnProperty),ts=Object.hasOwn||function(e,t){return es(Qo(e),t)},b=e,rs=0,ns=Math.random(),is=b(1..toString),b=m,os=Mo.exports,ss=ts,as=co,us=So,cs=A,ps=os("wks"),ls=b.Symbol,fs=ls&&ls.for,ds=cs?ls:ls&&ls.withoutSetter||as,hs=o,ys=no,vs=Lo,ms=ao,gs=function(e,t){var r,n;if("string"===t&&Ko(r=e.toString)&&!zo(n=Bo(r,e)))return n;if(Ko(r=e.valueOf)&&!zo(n=Bo(r,e)))return n;if("string"!==t&&Ko(r=e.toString)&&!zo(n=Bo(r,e)))return n;throw qo("Can't convert object to primitive value")},Es=TypeError,ws=I("toPrimitive"),Ts=Lo,So=no,_s=m.document,Is=So(_s)&&So(_s.createElement),As=lo,A=!r&&!w(function(){return 7!=Object.defineProperty(As("div"),"a",{get:function(){return 7}}).a}),bs=o,Os=y,Rs=Qi,Ns=ro,Ss=po,Cs=ts,Ms=A,xs=Object.getOwnPropertyDescriptor,os=(d.f=r?xs:function(e,t){if(e=Ns(e),t=Ss(t),Ms)try{return xs(e,t)}catch(e){}if(Cs(e,t))return Rs(!bs(Os.f,e,t),e[t])},{}),b=r&&w(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Ps=no,ks=String,Us=TypeError,Ds=A,Ls=fo,Fs=po,js=TypeError,Vs=Object.defineProperty,Hs=Object.getOwnPropertyDescriptor,Gs=(os.f=r?b?function(e,t,r){var n;return Ls(e),t=Fs(t),Ls(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=Hs(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}),Vs(e,t,r)}:Vs:function(e,t,r){if(Ls(e),t=Fs(t),Ls(r),Ds)try{return Vs(e,t,r)}catch(e){}if("get"in r||"set"in r)throw js("Accessors not supported");return"value"in r&&(e[t]=r.value),e},os),Bs=Qi,as=r?function(e,t,r){return Gs.f(e,t,Bs(1,r))}:function(e,t,r){return e[t]=r,e},Lo={exports:{}},So=r,y=ts,A=Function.prototype,Ks=So&&Object.getOwnPropertyDescriptor,y=y(A,"name"),y={EXISTS:y,PROPER:y&&"something"===function(){}.name,CONFIGURABLE:y&&(!So||Ks(A,"name").configurable)},So=T,Ks=$o,zs=e(Function.toString);So(Ks.inspectSource)||(Ks.inspectSource=function(e){return zs(e)});function qs(e){return pa[e]||(pa[e]=ca(e))}function Ys(e,t,r,n){var i=(n=n||{}).enumerable,o=void 0!==n.name?n.name:t;if(Ra(r)&&Sa(r,o,n),n.global)i?e[t]=r:Ca(t,r);else{try{n.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=r:Na.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function Js(e){return(e=+e)!=e||0==e?0:Pa(e)}function $s(e,t){return(e=ka(e))<0?Ua(e+t,0):Da(e,t)}function O(e){return 0<(e=e.length)?Fa(La(e),9007199254740991):0}function Xs(a){return function(e,t,r){var n,i=ja(e),o=Ha(i),s=Va(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 Ws(e,t){var r,n=Ba(e),i=0,o=[];for(r in n)!Ga(za,r)&&Ga(n,r)&&qa(o,r);for(;t.length>i;)!Ga(n,r=t[i++])||~Ka(o,r)||qa(o,r);return o}function Zs(e,t,r){for(var n=eu(t),i=ru.f,o=tu.f,s=0;s<n.length;s++){var a=n[s];Qa(e,a)||r&&Qa(r,a)||i(e,a,o(t,a))}}function Qs(e,t){return(e=au[su(e)])==cu||e!=uu&&(iu(t)?nu(t):!!t)}function R(e,t){var r,n,i,o,s=e.target,a=e.global,u=e.stat;if(r=a?pu:u?pu[s]||hu(s,{}):(pu[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(o=lu(r,n))&&o.value:r[n],!vu(a?n:s+(u?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;yu(i,o)}(e.sham||o&&o.sham)&&fu(i,"sham",!0),du(r,n,i,e)}}var ea,ta,ra,na,ia,oa,sa,aa,A=Ks.inspectSource,So=T,Ks=A,ua=m.WeakMap,So=So(ua)&&/native code/.test(Ks(ua)),Ks=Mo.exports,ca=co,pa=Ks("keys"),ua={},Mo=e,la=no,fa=as,da=ts,Ks=$o,N=qs,ha=ua,ya=m.TypeError,va=m.WeakMap,So=(sa=So||Ks.state?(ea=Ks.state||(Ks.state=new va),ta=Mo(ea.get),ra=Mo(ea.has),na=Mo(ea.set),ia=function(e,t){if(ra(ea,e))throw new ya("Object already initialized");return t.facade=e,na(ea,e,t),t},oa=function(e){return ta(ea,e)||{}},function(e){return ra(ea,e)}):(ha[aa=N("state")]=!0,ia=function(e,t){if(da(e,aa))throw new ya("Object already initialized");return t.facade=e,fa(e,aa,t),t},oa=function(e){return da(e,aa)?e[aa]:{}},function(e){return da(e,aa)}),{set:ia,get:oa,has:sa,enforce:function(e){return sa(e)?oa(e):ia(e,{})},getterFor:function(t){return function(e){if(la(e)&&(e=oa(e)).type===t)return e;throw ya("Incompatible receiver, "+t+" required")}}}),Ks=w,ma=T,ga=ts,Ea=r,wa=y.CONFIGURABLE,Ta=A,_a=So.enforce,Ia=So.get,Aa=Object.defineProperty,ba=Ea&&!Ks(function(){return 8!==Aa(function(){},"length",{value:8}).length}),Oa=String(String).split("String"),va=Lo.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),(!ga(e,"name")||wa&&e.name!==t)&&(Ea?Aa(e,"name",{value:t,configurable:!0}):e.name=t),ba&&r&&ga(r,"arity")&&e.length!==r.arity&&Aa(e,"length",{value:r.arity});try{r&&ga(r,"constructor")&&r.constructor?Ea&&Aa(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=_a(e);return ga(r,"source")||(r.source=Oa.join("string"==typeof t?t:"")),e},Ra=(Function.prototype.toString=va(function(){return ma(this)&&Ia(this).source||Ta(this)},"toString"),T),Na=os,Sa=Lo.exports,Ca=uo,Mo={},Ma=Math.ceil,xa=Math.floor,Pa=Math.trunc||function(e){e=+e;return(0<e?xa:Ma)(e)},ka=Js,Ua=Math.max,Da=Math.min,La=Js,Fa=Math.min,ja=ro,Va=$s,Ha=O,ha={includes:Xs(!0),indexOf:Xs(!1)},Ga=ts,Ba=ro,Ka=ha.indexOf,za=ua,qa=e([].push),N=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ya=Ws,Ja=N.concat("length","prototype"),Ks=(Mo.f=Object.getOwnPropertyNames||function(e){return Ya(e,Ja)},{}),va=(Ks.f=Object.getOwnPropertySymbols,io),$a=Mo,Xa=Ks,Wa=fo,Za=e([].concat),Ks=va("Reflect","ownKeys")||function(e){var t=$a.f(Wa(e)),r=Xa.f;return r?Za(t,r(e)):t},Qa=ts,eu=Ks,tu=d,ru=os,nu=w,iu=T,ou=/#|\.prototype\./,su=Qs.normalize=function(e){return String(e).replace(ou,".").toLowerCase()},au=Qs.data={},uu=Qs.NATIVE="N",cu=Qs.POLYFILL="P",va=Qs,pu=m,lu=d.f,fu=as,du=Ys,hu=uo,yu=Zs,vu=va,Ks=!w(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),mu=ts,gu=T,Eu=_,wu=qs("IE_PROTO"),Tu=Object,_u=Tu.prototype,Ks=Ks?Tu.getPrototypeOf:function(e){e=Eu(e);if(mu(e,wu))return e[wu];var t=e.constructor;return gu(t)&&e instanceof t?t.prototype:e instanceof Tu?_u:null},Iu=T,Au=String,bu=TypeError,Ou=e,Ru=fo,Nu=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=Ou(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return Ru(e),function(e){if("object"==typeof e||Iu(e))return;throw bu("Can't set "+Au(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),Su={},Cu=Ws,Mu=N,S=Object.keys||function(e){return Cu(e,Mu)},xu=os,Pu=fo,ku=ro,Uu=S;Su.f=r&&!b?Object.defineProperties:function(e,t){Pu(e);for(var r,n=ku(t),i=Uu(t),o=i.length,s=0;s<o;)xu.f(e,r=i[s++],n[r]);return e};function Du(){}function Lu(e){e.write(ec("")),e.close();var t=e.parentWindow.Object;return e=null,t}function Fu(e,t){return uc(e),void 0===t?e:cc?pc(e,t):function(){return e.apply(t,arguments)}}function ju(e){return void 0!==e&&(lc.Array===e||dc[fc]===e)}function Vu(e){if(null!=e)return wc(e,_c)||wc(e,"@@iterator")||Tc[Ec(e)]}function Hu(e,t){if(t=arguments.length<2?Rc(e):t,Ac(t))return bc(Ic(t,e));throw Nc(Oc(e)+" is not iterable")}function Gu(e,t,r){var n,i;Cc(e);try{if(!(n=Mc(e,"return"))){if("throw"===t)throw r;return r}n=Sc(n,e)}catch(e){i=!0,n=e}if("throw"===t)throw r;if(i)throw n;return Cc(n),r}function Bu(e,t){this.stopped=e,this.result=t}function Ku(e,t,r){function n(e){return o&&Hc(o,"normal",e),new Bu(!0,e)}function i(e){return f?(kc(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,p,l=r&&r.that,f=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),v=xc(t,l);if(d)o=e.iterator;else if(h)o=e;else{if(!(r=Vc(e)))throw Gc(Uc(e)+" is not iterable");if(Dc(r)){for(s=0,a=Lc(e);s<a;s++)if((u=i(e[s]))&&Fc(Bc,u))return u;return new Bu(!1)}o=jc(e,r)}for(c=(d?e:o).next;!(p=Pc(c,o)).done;){try{u=i(p.value)}catch(e){Hc(o,"throw",e)}if("object"==typeof u&&u&&Fc(Bc,u))return u}return new Bu(!1)}function zu(e){if("Symbol"===Kc(e))throw TypeError("Cannot convert a Symbol value to a string");return zc(e)}function qu(e,t){var r,n=2<arguments.length?arguments[2]:void 0,i=$c(ap,this);return Wc?r=Wc(new op,i?Xc(this):ap):(r=i?this:Qc(ap),ep(r,ip,"Error")),void 0!==t&&ep(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:qc(e)}(t)),np&&ep(r,"stack",function(e,t){if(oc&&"string"==typeof e&&!rc.prepareStackTrace)for(;t--;)e=nc(e,ic,"");return e}(r.stack,1)),i=r,sc(t=n)&&"cause"in t&&ac(i,"cause",t.cause),rp(e,sp,{that:n=[]}),ep(r,"errors",n),r}var Yu,S=io("document","documentElement"),Ju=fo,$u=Su,Xu=N,b=ua,Wu=S,Zu=lo,Qu=qs("IE_PROTO"),ec=function(e){return"<script>"+e+"<\/script>"},tc=function(){try{Yu=new ActiveXObject("htmlfile")}catch(e){}var e,t;tc="undefined"==typeof document||document.domain&&Yu?Lu(Yu):((t=Zu("iframe")).style.display="none",Wu.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ec("document.F=Object")),e.close(),e.F);for(var r=Xu.length;r--;)delete tc.prototype[Xu[r]];return tc()},Su=(b[Qu]=!0,Object.create||function(e,t){var r;return null!==e?(Du.prototype=Ju(e),r=new Du,Du.prototype=null,r[Qu]=e):r=tc(),void 0===t?r:$u.f(r,t)}),rc=Error,nc=e("".replace),N=String(rc("zxcasd").stack),ic=/\n\s*at [^:]*:[^\n]*/,oc=ic.test(N),sc=no,ac=as,uc=so,cc=h,pc=e(e.bind),b={},lc=b,fc=I("iterator"),dc=Array.prototype,N={},N=(N[I("toStringTag")]="z","[object z]"===String(N)),C=N,hc=T,yc=eo,vc=I("toStringTag"),mc=Object,gc="Arguments"==yc(function(){return arguments}()),C=C?yc: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=mc(e),vc))?t:gc?yc(e):"Object"==(t=yc(e))&&hc(e.callee)?"Arguments":t},Ec=C,wc=ao,Tc=b,_c=I("iterator"),Ic=o,Ac=so,bc=fo,Oc=oo,Rc=Vu,Nc=TypeError,Sc=o,Cc=fo,Mc=ao,xc=Fu,Pc=o,kc=fo,Uc=oo,Dc=ju,Lc=O,Fc=v,jc=Hu,Vc=Vu,Hc=Gu,Gc=TypeError,Bc=Bu.prototype,Kc=C,zc=String,qc=zu,Yc=Qi,M=!w(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Yc(1,7)),7!==e.stack)}),Jc=R,$c=v,Xc=Ks,Wc=Nu,Zc=Zs,Qc=Su,ep=as,tp=Qi,rp=Ku,np=M,ip=I("toStringTag"),op=Error,sp=[].push,ap=(Wc?Wc(qu,op):Zc(qu,op,{name:!0}),qu.prototype=Qc(op.prototype,{constructor:tp(1,qu),message:tp(1,""),name:tp(1,"AggregateError")})),M=(Jc({global:!0,constructor:!0,arity:2},{AggregateError:qu}),I),Zc=Su,tp=os.f,up=M("unscopables"),cp=Array.prototype;null==cp[up]&&tp(cp,up,{configurable:!0,value:Zc(null)});function x(e){cp[up][e]=!0}var pp,Jc=w,M=T,tp=Ks,Zc=Ys,lp=I("iterator"),P=!1;[].keys&&("next"in(yp=[].keys())?(tp=tp(tp(yp)))!==Object.prototype&&(pp=tp):P=!0);function fp(e,t,r){(e=e&&!r?e.prototype:e)&&!mp(e,gp)&&vp(e,gp,{configurable:!0,value:t})}function dp(){return this}function hp(e,t,r,n,i,o,s){var a=r,u=t,c=void 0;function p(e){if(e===i&&v)return v;if(!Lp&&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=wp(Ep,{next:Tp(+!c,n)}),_p(a,u,!1),Ip[u]=Ap;var l,f,c=t+" Iterator",d=!1,h=e.prototype,y=h[Fp]||h["@@iterator"]||i&&h[i],v=!Lp&&y||p(i);if((n="Array"==t&&h.entries||y)&&(a=Np(n.call(new e)))!==Object.prototype&&a.next&&(Np(a)!==Dp&&(Sp?Sp(a,Dp):Rp(a[Fp])||xp(a,Fp,dp)),Cp(a,c,!0)),kp&&"values"==i&&y&&"values"!==y.name&&(Up?Mp(h,"name","values"):(d=!0,v=function(){return Op(y,this)})),i)if(l={values:p("values"),keys:o?v:p("keys"),entries:p("entries")},s)for(f in l)!Lp&&!d&&f in h||xp(h,f,l[f]);else bp({target:t,proto:!0,forced:Lp||d},l);return h[Fp]!==v&&xp(h,Fp,v,{name:i}),Pp[t]=v,l}M((pp=null==pp||Jc(function(){var e={};return pp[lp].call(e)!==e})?{}:pp)[lp])||Zc(pp,lp,function(){return this});var yp={IteratorPrototype:pp,BUGGY_SAFARI_ITERATORS:P},vp=os.f,mp=ts,gp=I("toStringTag"),Ep=yp.IteratorPrototype,wp=Su,Tp=Qi,_p=fp,Ip=b,Ap=function(){return this},bp=R,Op=o,Rp=T,Np=Ks,Sp=Nu,Cp=fp,Mp=as,xp=Ys,Pp=b,kp=y.PROPER,Up=y.CONFIGURABLE,Dp=yp.IteratorPrototype,Lp=yp.BUGGY_SAFARI_ITERATORS,Fp=I("iterator"),jp=ro,tp=x,M=b,Jc=So,Zc=os.f,P=hp,y=r,Vp=Jc.set,Hp=Jc.getterFor("Array Iterator"),yp=P(Array,"Array",function(e,t){Vp(this,{type:"Array Iterator",target:jp(e),index:0,kind:t})},function(){var e=Hp(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"),b=M.Arguments=M.Array;if(tp("keys"),tp("values"),tp("entries"),y&&"values"!==b.name)try{Zc(b,"name",{value:"values"})}catch(vA){}function Gp(e){var e=Jp(e),t=$p.f;Xp&&e&&!e[Wp]&&t(e,Wp,{configurable:!0,get:function(){return this}})}function Bp(e,t){if(Zp(t,e))return e;throw Qp("Incorrect invocation")}function Kp(){}function zp(e){if(!el(e))return!1;try{return il(Kp,nl,e),!0}catch(e){return!1}}function qp(e){if(!el(e))return!1;switch(tl(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return al||!!sl(ol,rl(e))}catch(e){return!0}}var Yp=C,Jc=(N||Ys(Object.prototype,"toString",N?{}.toString:function(){return"[object "+Yp(this)+"]"},{unsafe:!0}),"process"==eo(m.process)),Jp=io,$p=os,Xp=r,Wp=I("species"),Zp=v,Qp=TypeError,P=e,M=w,el=T,tl=C,rl=A,nl=[],il=io("Reflect","construct"),ol=/^\s*(?:class|function)\b/,sl=P(ol.exec),al=!ol.exec(Kp);qp.sham=!0;function ul(e,t){var r,e=hl(e).constructor;if(void 0===e||null==(r=hl(e)[yl]))return t;if(ll(e=r))return e;throw dl(fl(e)+" is not a constructor")}var cl,pl,tp=!il||M(function(){var e;return zp(zp.call)||!zp(Object)||!zp(function(){e=!0})||e})?qp:zp,ll=tp,fl=oo,dl=TypeError,hl=fo,yl=I("species"),y=Function.prototype,vl=y.apply,ml=y.call,Zc="object"==typeof Reflect&&Reflect.apply||(h?ml.bind(vl):function(){return ml.apply(vl,arguments)}),b=e([].slice),gl=TypeError,N=/(?:ipad|iphone|ipod).*applewebkit/i.test(No),El=m,wl=Zc,v=Fu,Tl=T,_l=ts,C=w,Il=S,Al=b,bl=lo,P=N,M=Jc,y=El.setImmediate,h=El.clearImmediate,Ol=El.process,Rl=El.Dispatch,Nl=El.Function,S=El.MessageChannel,Sl=El.String,Cl=0,Ml={};try{cl=El.location}catch(vA){}function xl(e){return function(){Ul(e)}}function Pl(e){Ul(e.data)}function kl(e){El.postMessage(Sl(e),cl.protocol+"//"+cl.host)}var Ul=function(e){var t;_l(Ml,e)&&(t=Ml[e],delete Ml[e],t())};y&&h||(y=function(e){var t=arguments.length,r=1;if(t<r)throw gl("Not enough arguments");var n=Tl(e)?e:Nl(e),i=Al(arguments,1);return Ml[++Cl]=function(){wl(n,void 0,i)},pl(Cl),Cl},h=function(e){delete Ml[e]},M?pl=function(e){Ol.nextTick(xl(e))}:Rl&&Rl.now?pl=function(e){Rl.now(xl(e))}:S&&!P?(P=(M=new S).port2,M.port1.onmessage=Pl,pl=v(P.postMessage,P)):El.addEventListener&&Tl(El.postMessage)&&!El.importScripts&&cl&&"file:"!==cl.protocol&&!C(kl)?(pl=kl,El.addEventListener("message",Pl,!1)):pl="onreadystatechange"in bl("script")?function(e){Il.appendChild(bl("script")).onreadystatechange=function(){Il.removeChild(this),Ul(e)}}:function(e){setTimeout(xl(e),0)});function Dl(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function Ll(){this.head=null,this.tail=null}function Fl(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=sf(r),this.reject=sf(n)}var jl,Vl,Hl,Gl,Bl,Kl,zl,S={set:y,clear:h},M=m,v=/ipad|iphone|ipod/i.test(No)&&void 0!==M.Pebble,P=/web0s(?!.*chrome)/i.test(No),C=m,y=Fu,h=d.f,ql=S.set,M=N,d=v,N=P,Yl=Jc,v=C.MutationObserver||C.WebKitMutationObserver,P=C.document,Jl=C.process,$l=C.Promise,h=h(C,"queueMicrotask"),h=h&&h.value,N=(h||(jl=function(){var e,t;for(Yl&&(e=Jl.domain)&&e.exit();Vl;){t=Vl.fn,Vl=Vl.next;try{t()}catch(e){throw Vl?Gl():Hl=void 0,e}}Hl=void 0,e&&e.enter()},Gl=M||Yl||N||!v||!P?!d&&$l&&$l.resolve?((M=$l.resolve(void 0)).constructor=$l,zl=y(M.then,M),function(){zl(jl)}):Yl?function(){Jl.nextTick(jl)}:(ql=y(ql,C),function(){ql(jl)}):(Bl=!0,Kl=P.createTextNode(""),new v(jl).observe(Kl,{characterData:!0}),function(){Kl.data=Bl=!Bl})),h||function(e){e={fn:e,next:void 0};Hl&&(Hl.next=e),Vl||(Vl=e,Gl()),Hl=e}),Xl=m,d=(Ll.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}},Ll),$l=m.Promise,M="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,y=!M&&!Jc&&"object"==typeof window&&"object"==typeof document,C=m,Wl=$l,P=T,v=va,Zl=A,h=I,Ql=y,ef=M,tf=Co,rf=(Wl&&Wl.prototype,h("species")),nf=!1,of=P(C.PromiseRejectionEvent),A={CONSTRUCTOR:v("Promise",function(){var e=Zl(Wl),t=e!==String(Wl);if(!t&&66===tf)return!0;if(!tf||tf<51||!/native code/.test(e)){var e=new Wl(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[rf]=r,!(nf=e.then(function(){})instanceof r))return!0}return!t&&(Ql||ef)&&!of}),REJECTION_EVENT:of,SUBCLASSING:nf},y={},sf=so;y.f=function(e){return new Fl(e)};function af(e,t){var r,n,i,o,s=t.value,a=1==t.state,u=a?e.ok:e.fail,c=e.resolve,p=e.reject,l=e.domain;try{u?(a||(2===t.rejection&&(o=t,df(Ef,ff,function(){var e=o.facade;lf?xf.emit("rejectionHandled",e):Ff("rejectionhandled",e,o.value)})),t.rejection=1),!0===u?r=s:(l&&l.enter(),r=u(s),l&&(l.exit(),i=!0)),r===e.promise?p(Cf("Promise-chain cycle")):(n=Df(r))?df(n,r,c,p):c(r)):p(s)}catch(e){l&&!i&&l.exit(),p(e)}}var uf,cf,pf,M=R,lf=Jc,ff=m,df=o,h=Ys,P=Nu,C=fp,v=Gp,hf=so,yf=T,vf=no,mf=Bp,gf=ul,Ef=S.set,wf=N,Tf=Dl,_f=d,S=So,N=$l,d=y,If=A.CONSTRUCTOR,Af=A.REJECTION_EVENT,bf=A.SUBCLASSING,Of=S.getterFor("Promise"),Rf=S.set,S=N&&N.prototype,Nf=N,Sf=S,Cf=ff.TypeError,Mf=ff.document,xf=ff.process,Pf=d.f,kf=Pf,Uf=!!(Mf&&Mf.createEvent&&ff.dispatchEvent),Df=function(e){var t;return!(!vf(e)||!yf(t=e.then))&&t},Lf=function(r,i){r.notified||(r.notified=!0,wf(function(){for(var e,n,t=r.reactions;e=t.get();)af(e,r);r.notified=!1,i&&!r.rejection&&(n=r,df(Ef,ff,function(){var e,t=n.facade,r=n.value;if(jf(n)&&(e=Tf(function(){lf?xf.emit("unhandledRejection",r,t):Ff("unhandledrejection",t,r)}),n.rejection=lf||jf(n)?2:1,e.error))throw e.value}))}))},Ff=function(e,t,r){var n;Uf?((n=Mf.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),ff.dispatchEvent(n)):n={promise:t,reason:r},!Af&&(t=ff["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=Xl.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},jf=function(e){return 1!==e.rejection&&!e.parent},Vf=function(t,r,n){return function(e){t(r,e,n)}},Hf=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,Lf(e,!0))},Gf=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw Cf("Promise can't be resolved itself");var n=Df(e);n?wf(function(){var t={done:!1};try{df(n,e,Vf(Gf,t,r),Vf(Hf,t,r))}catch(e){Hf(t,e,r)}}):(r.value=e,r.state=1,Lf(r,!1))}catch(e){Hf({done:!1},e,r)}}};if(If&&(Sf=(Nf=function(e){mf(this,Sf),hf(e),df(uf,this);var t=Of(this);try{e(Vf(Gf,t),Vf(Hf,t))}catch(e){Hf(t,e)}}).prototype,(uf=function(e){Rf(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new _f,rejection:!1,state:0,value:void 0})}).prototype=h(Sf,"then",function(e,t){var r=Of(this),n=Pf(gf(this,Nf));return r.parent=!0,n.ok=!yf(e)||e,n.fail=yf(t)&&t,n.domain=lf?xf.domain:void 0,0==r.state?r.reactions.add(n):wf(function(){af(n,r)}),n.promise}),cf=function(){var e=new uf,t=Of(e);this.promise=e,this.resolve=Vf(Gf,t),this.reject=Vf(Hf,t)},d.f=Pf=function(e){return e===Nf||void 0===e?new cf:kf(e)},yf(N)&&S!==Object.prototype)){pf=S.then,bf||h(S,"then",function(e,t){var r=this;return new Nf(function(e,t){df(pf,r,e,t)}).then(e,t)},{unsafe:!0});try{delete S.constructor}catch(vA){}P&&P(S,Sf)}M({global:!0,constructor:!0,wrap:!0,forced:If},{Promise:Nf}),C(Nf,"Promise",!1),v("Promise");var Bf=I("iterator"),Kf=!1;try{var zf=0,qf={next:function(){return{done:!!zf++}},return:function(){Kf=!0}};qf[Bf]=function(){return this},Array.from(qf,function(){throw 2})}catch(vA){}function Yf(e,t){if(!t&&!Kf)return!1;var r=!1;try{var n={};n[Bf]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function Jf(e,t){return ld(e),fd(t)&&t.constructor===e?t:((0,(e=dd.f(e)).resolve)(t),e.promise)}function $f(i){return function(e,t){var r,e=xd(Pd(e)),t=Md(t),n=e.length;return t<0||n<=t?i?"":void 0:(r=Ud(e,t))<55296||56319<r||t+1===n||(n=Ud(e,t+1))<56320||57343<n?i?kd(e,t):r:i?Dd(e,t,t+2):n-56320+(r-55296<<10)+65536}}function Xf(e,t){if(e){if(e[zd]!==Yd)try{Kd(e,zd,Yd)}catch(t){e[zd]=Yd}if(e[qd]||Kd(e,qd,t),Gd[t])for(var r in Bd)if(e[r]!==Bd[r])try{Kd(e,r,Bd[r])}catch(t){e[r]=Bd[r]}}}var Wf,Zf=$l,d=A.CONSTRUCTOR||!Yf(function(e){Zf.all(e).then(void 0,function(){})}),Qf=o,ed=so,td=y,rd=Dl,nd=Ku,N=(R({target:"Promise",stat:!0,forced:d},{all:function(e){var a=this,t=td.f(a),u=t.resolve,c=t.reject,r=rd(function(){var n=ed(a.resolve),i=[],o=0,s=1;nd(e,function(e){var t=o++,r=!1;s++,Qf(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),bf=$l,h=io,P=T,S=Ys,M=bf&&bf.prototype,id=(N({target:"Promise",proto:!0,forced:A.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),P(bf)&&(If=h("Promise").prototype.catch,M.catch!==If&&S(M,"catch",If,{unsafe:!0})),o),od=so,sd=y,ad=Dl,ud=Ku,cd=(R({target:"Promise",stat:!0,forced:d},{race:function(e){var r=this,n=sd.f(r),i=n.reject,t=ad(function(){var t=od(r.resolve);ud(e,function(e){id(t,r,e).then(n.resolve,i)})});return t.error&&i(t.value),n.promise}}),o),pd=y,ld=(R({target:"Promise",stat:!0,forced:A.CONSTRUCTOR},{reject:function(e){var t=pd.f(this);return cd(t.reject,void 0,e),t.promise}}),fo),fd=no,dd=y,C=R,v=A.CONSTRUCTOR,hd=Jf,yd=(io("Promise"),C({target:"Promise",stat:!0,forced:v},{resolve:function(e){return hd(this,e)}}),o),vd=so,md=y,gd=Dl,Ed=Ku,wd=(R({target:"Promise",stat:!0},{allSettled:function(e){var a=this,t=md.f(a),u=t.resolve,r=t.reject,n=gd(function(){var n=vd(a.resolve),i=[],o=0,s=1;Ed(e,function(e){var t=o++,r=!1;s++,yd(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),Td=so,_d=io,Id=y,Ad=Dl,bd=Ku,qf=(R({target:"Promise",stat:!0},{any:function(e){var u=this,c=_d("AggregateError"),t=Id.f(u),p=t.resolve,l=t.reject,r=Ad(function(){var n=Td(u.resolve),i=[],o=0,s=1,a=!1;bd(e,function(e){var t=o++,r=!1;s++,wd(n,u,e).then(function(e){r||a||(a=!0,p(e))},function(e){r||a||(r=!0,i[t]=e,--s||l(new c(i,"No one promise resolved")))})}),--s||l(new c(i,"No one promise resolved"))});return r.error&&l(r.value),t.promise}}),R),N=$l,P=w,Od=io,Rd=T,Nd=ul,Sd=Jf,bf=Ys,Cd=N&&N.prototype,S=(qf({target:"Promise",proto:!0,real:!0,forced:!!N&&P(function(){Cd.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=Nd(this,Od("Promise")),e=Rd(t);return this.then(e?function(e){return Sd(r,t()).then(function(){return e})}:t,e?function(e){return Sd(r,t()).then(function(){throw e})}:t)}}),Rd(N)&&(h=Od("Promise").prototype.finally,Cd.finally!==h&&bf(Cd,"finally",h,{unsafe:!0})),e),Md=Js,xd=zu,Pd=to,kd=S("".charAt),Ud=S("".charCodeAt),Dd=S("".slice),Ld=($f(!1),$f(!0)),Fd=zu,M=So,If=hp,jd=M.set,Vd=M.getterFor("String Iterator"),d=(If(String,"String",function(e){jd(this,{type:"String Iterator",string:Fd(e),index:0})},function(){var e=Vd(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=Ld(t,r),e.index+=t.length,{value:t,done:!1})}),m),A=(d.Promise,lo("span").classList),C=A&&A.constructor&&A.constructor.prototype,v=C===Object.prototype?void 0:C,Hd=m,Gd={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},$l=v,Bd=yp,Kd=as,qf=I,zd=qf("iterator"),qd=qf("toStringTag"),Yd=Bd.values;for(Wf in Gd)Xf(Hd[Wf]&&Hd[Wf].prototype,Wf);Xf($l,"DOMTokenList");function Jd(e,t,r){(t=Eh(t))in e?wh.f(e,t,Th(0,r)):e[t]=r}function $d(e){if(9007199254740991<e)throw jh("Maximum allowed index exceeded");return e}function Xd(e,t){return Vh(e=e)&&(r=e.constructor,(Hh(r)&&(r===Kh||Vh(r.prototype))||Gh(r)&&null===(r=r[Bh]))&&(r=void 0)),new(void 0===r?Kh:r)(0===t?0:t);var r}function Wd(t){return 51<=qh||!zh(function(){var e=[];return(e.constructor={})[Yh]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function Zd(e,t){if(!delete e[t])throw ny("Cannot delete property "+ry(t)+" of "+ry(e))}function Qd(f){var d=1==f,h=2==f,y=3==f,v=4==f,m=6==f,g=7==f,E=5==f||m;return function(e,t,r,n){for(var i,o,s=ly(e),a=py(s),u=cy(t,r),c=fy(a),p=0,t=n||dy,l=d?t(e,c):h||g?t(e,0):void 0;p<c;p++)if((E||p in a)&&(o=u(i=a[p],p,s),f))if(d)l[p]=o;else if(o)switch(f){case 3:return!0;case 5:return i;case 6:return p;case 2:hy(l,i)}else switch(f){case 4:return!1;case 7:hy(l,i)}return m?-1:y||v?v:l}}function eh(e,t){var r=[][e];return!!r&&yy(function(){r.call(null,t||function(){return 1},1)})}function th(u){var c=1==u;return function(e,t,r){for(var n,i=Ry(e),o=Oy(i),s=by(t,r),a=Ny(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 rh(e,t,r,n,i,o,s,a){for(var u,c,p=i,l=0,f=!!s&&ky(s,a);l<n;)l in r&&(u=f?f(r[l],l,t):r[l],0<o&&My(u)?(c=xy(u),p=rh(e,t,u,c,p,o-1)-1):(Py(p+1),e[p]=u),p++),l++;return p}function nh(c){return function(e,t,r,n){cv(t);var i=pv(e),o=lv(i),s=fv(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 dv("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 ih(e,t,r){for(var n=Mv(e),i=Cv(t,n),o=Cv(void 0===r?n:r,n),s=Pv(kv(o-i,0)),a=0;i<o;i++,a++)xv(s,a,e[i]);return s.length=a,s}function oh(e,t){var r=e.length,n=Dv(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 p=e,l=oh(Uv(e,0,n),t),f=oh(Uv(e,n),t),d=t,h=l.length,y=f.length,v=0,m=0;v<h||m<y;)p[v+m]=v<h&&m<y?d(l[v],f[m])<=0?l[v++]:f[m++]:v<h?l[v++]:f[m++];return p}function sh(e){Am(e,Cm,{value:{objectID:"O"+Mm++,weakData:{}}})}function ah(e,t,r){for(var n in t)Hm(e,n,t[n],r);return e}var uh,ch,ph,lh,fh,dh,hh,yh=y,vh=Dl,mh=(R({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=yh.f(this),e=vh(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),fo),gh=Gu,Eh=po,wh=os,Th=Qi,_h=Fu,Ih=o,Ah=_,bh=ju,Oh=tp,Rh=O,Nh=Jd,Sh=Hu,Ch=Vu,Mh=Array,xh=(R({target:"Array",stat:!0,forced:!Yf(function(e){Array.from(e)})},{from:function(e){var t=Ah(e),e=Oh(this),r=arguments.length,n=1<r?arguments[1]:void 0,i=void 0!==n;i&&(n=_h(n,2<r?arguments[2]:void 0));var o,s,a,u,c,p,r=Ch(t),l=0;if(!r||this===Mh&&bh(r))for(o=Rh(t),s=e?new this(o):Mh(o);l<o;l++)p=i?n(t[l],l):t[l],Nh(s,l,p);else for(c=(u=Sh(t,r)).next,s=e?new this:[];!(a=Ih(c,u)).done;l++)p=i?function(e,t,r,n){try{return n?t(mh(r)[0],r[1]):t(r)}catch(t){gh(e,"throw",t)}}(u,n,[a.value,l],!0):a.value,Nh(s,l,p);return s.length=l,s}}),eo),P=Array.isArray||function(e){return"Array"==xh(e)},Ph=(R({target:"Array",stat:!0},{isArray:P}),tp),kh=Jd,Uh=Array,Dh=(R({target:"Array",stat:!0,forced:w(function(){function e(){}return!(Uh.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(Ph(this)?this:Uh)(t);e<t;)kh(r,e,arguments[e++]);return r.length=t,r}}),_),Lh=O,Fh=Js,N=x,jh=(R({target:"Array",proto:!0},{at:function(e){var t=Dh(this),r=Lh(t),e=Fh(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),N("at"),TypeError),Vh=P,Hh=tp,Gh=no,Bh=I("species"),Kh=Array,zh=w,qh=Co,Yh=I("species"),bf=R,h=w,Jh=P,$h=no,Xh=_,Wh=O,Zh=$d,Qh=Jd,ey=Xd,S=Wd,M=Co,ty=I("isConcatSpreadable"),If=51<=M||!h(function(){var e=[];return e[ty]=!1,e.concat()[0]!==e}),A=S("concat"),ry=(bf({target:"Array",proto:!0,arity:1,forced:!If||!A},{concat:function(e){for(var t,r,n,i=Xh(this),o=ey(i,0),s=0,a=-1,u=arguments.length;a<u;a++)if(function(e){if(!$h(e))return!1;var t=e[ty];return void 0!==t?!!t:Jh(e)}(n=-1===a?i:arguments[a]))for(r=Wh(n),Zh(s+r),t=0;t<r;t++,s++)t in n&&Qh(o,s,n[t]);else Zh(s+1),Qh(o,s++,n);return o.length=s,o}}),oo),ny=TypeError,iy=_,oy=$s,sy=O,ay=Zd,uy=Math.min,C=x,cy=(R({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=iy(this),n=sy(r),i=oy(e,n),o=oy(t,n),e=2<arguments.length?arguments[2]:void 0,s=uy((void 0===e?n:oy(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]:ay(r,i),i+=a,o+=a;return r}}),C("copyWithin"),Fu),py=ho,ly=_,fy=O,dy=Xd,hy=e([].push),v={forEach:Qd(0),map:Qd(1),filter:Qd(2),some:Qd(3),every:Qd(4),find:Qd(5),findIndex:Qd(6),filterReject:Qd(7)},yy=w,vy=v.every,my=(R({target:"Array",proto:!0,forced:!eh("every")},{every:function(e){return vy(this,e,1<arguments.length?arguments[1]:void 0)}}),_),gy=$s,Ey=O,yp=x,wy=(R({target:"Array",proto:!0},{fill:function(e){for(var t=my(this),r=Ey(t),n=arguments.length,i=gy(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,o=void 0===n?r:gy(n,r);i<o;)t[i++]=e;return t}}),yp("fill"),v.filter),as=(R({target:"Array",proto:!0,forced:!Wd("filter")},{filter:function(e){return wy(this,e,1<arguments.length?arguments[1]:void 0)}}),R),Ty=v.find,qf=x,_y=!0,$l=("find"in[]&&Array(1).find(function(){_y=!1}),as({target:"Array",proto:!0,forced:_y},{find:function(e){return Ty(this,e,1<arguments.length?arguments[1]:void 0)}}),qf("find"),R),Iy=v.findIndex,y=x,Ay=!0,by=("findIndex"in[]&&Array(1).findIndex(function(){Ay=!1}),$l({target:"Array",proto:!0,forced:Ay},{findIndex:function(e){return Iy(this,e,1<arguments.length?arguments[1]:void 0)}}),y("findIndex"),Fu),Oy=ho,Ry=_,Ny=O,N={findLast:th(0),findLastIndex:th(1)},Sy=N.findLast,M=x,Cy=(R({target:"Array",proto:!0},{findLast:function(e){return Sy(this,e,1<arguments.length?arguments[1]:void 0)}}),M("findLast"),N.findLastIndex),h=x,My=(R({target:"Array",proto:!0},{findLastIndex:function(e){return Cy(this,e,1<arguments.length?arguments[1]:void 0)}}),h("findLastIndex"),P),xy=O,Py=$d,ky=Fu,S=rh,Uy=S,Dy=_,Ly=O,Fy=Js,jy=Xd,Vy=(R({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Dy(this),r=Ly(t),n=jy(t,0);return n.length=Uy(n,t,t,r,0,void 0===e?1:Fy(e)),n}}),S),Hy=so,Gy=_,By=O,Ky=Xd,zy=(R({target:"Array",proto:!0},{flatMap:function(e){var t,r=Gy(this),n=By(r);return Hy(e),(t=Ky(r,0)).length=Vy(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),v.forEach),bf=eh("forEach")?[].forEach:function(e){return zy(this,e,1<arguments.length?arguments[1]:void 0)},qy=(R({target:"Array",proto:!0,forced:[].forEach!=bf},{forEach:bf}),ha.includes),If=x,A=(R({target:"Array",proto:!0,forced:w(function(){return!Array(1).includes()})},{includes:function(e){return qy(this,e,1<arguments.length?arguments[1]:void 0)}}),If("includes"),R),Yy=ha.indexOf,C=eh,Jy=e([].indexOf),$y=!!Jy&&1/Jy([1],1,-0)<0,yp=C("indexOf"),as=(A({target:"Array",proto:!0,forced:$y||!yp},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return $y?Jy(this,e,t)||0:Yy(this,e,t)}}),R),qf=ho,Xy=ro,$l=eh,Wy=e([].join),y=qf!=Object,M=$l("join",","),Zy=(as({target:"Array",proto:!0,forced:y||!M},{join:function(e){return Wy(Xy(this),void 0===e?",":e)}}),Zc),Qy=ro,ev=Js,tv=O,N=eh,rv=Math.min,nv=[].lastIndexOf,iv=!!nv&&1/[1].lastIndexOf(1,-0)<0,h=N("lastIndexOf"),S=iv||!h?function(e){if(iv)return Zy(nv,this,arguments)||0;var t=Qy(this),r=tv(t),n=r-1;for((n=1<arguments.length?rv(n,ev(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:nv,ov=(R({target:"Array",proto:!0,forced:S!==[].lastIndexOf},{lastIndexOf:S}),v.map),bf=(R({target:"Array",proto:!0,forced:!Wd("map")},{map:function(e){return ov(this,e,1<arguments.length?arguments[1]:void 0)}}),R),sv=_,av=O,uv=$d,If=w(function(){return 4294967297!==[].push.call({length:4294967296},1)}),ha=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),cv=(bf({target:"Array",proto:!0,arity:1,forced:If||ha},{push:function(e){var t=sv(this),r=av(t),n=arguments.length;uv(r+n);for(var i=0;i<n;i++)t[r]=arguments[i],r++;return t.length=r}}),so),pv=_,lv=ho,fv=O,dv=TypeError,C={left:nh(!1),right:nh(!0)},hv=C.left,A=Co,yp=Jc,yv=(R({target:"Array",proto:!0,forced:!eh("reduce")||!yp&&79<A&&A<83},{reduce:function(e){var t=arguments.length;return hv(this,e,t,1<t?arguments[1]:void 0)}}),C.right),qf=Co,$l=Jc,as=(R({target:"Array",proto:!0,forced:!eh("reduceRight")||!$l&&79<qf&&qf<83},{reduceRight:function(e){return yv(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),R),vv=P,mv=e([].reverse),y=[1,2],M=(as({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return vv(this)&&(this.length=this.length),mv(this)}}),R),gv=P,Ev=tp,wv=no,Tv=$s,_v=O,Iv=ro,Av=Jd,Zc=I,bv=b,N=Wd("slice"),Ov=Zc("species"),Rv=Array,Nv=Math.max,Sv=(M({target:"Array",proto:!0,forced:!N},{slice:function(e,t){var r,n,i,o=Iv(this),s=_v(o),a=Tv(e,s),u=Tv(void 0===t?s:t,s);if(gv(o)&&(r=o.constructor,(r=Ev(r)&&(r===Rv||gv(r.prototype))||wv(r)&&null===(r=r[Ov])?void 0:r)===Rv||void 0===r))return bv(o,a,u);for(n=new(void 0===r?Rv:r)(Nv(u-a,0)),i=0;a<u;a++,i++)a in o&&Av(n,i,o[a]);return n.length=i,n}}),v.some),Cv=(R({target:"Array",proto:!0,forced:!eh("some")},{some:function(e){return Sv(this,e,1<arguments.length?arguments[1]:void 0)}}),$s),Mv=O,xv=Jd,Pv=Array,kv=Math.max,Uv=ih,Dv=Math.floor,h=oh,S=No.match(/firefox\/(\d+)/i),bf=!!S&&+S[1],If=/MSIE|Trident/.test(No),ha=No.match(/AppleWebKit\/(\d+)\./),yp=!!ha&&+ha[1],A=R,C=e,Lv=so,Fv=_,jv=O,Vv=Zd,Hv=zu,Jc=w,Gv=h,$l=eh,Bv=bf,Kv=If,zv=Co,qv=yp,Yv=[],Jv=C(Yv.sort),$v=C(Yv.push),qf=Jc(function(){Yv.sort(void 0)}),as=Jc(function(){Yv.sort(null)}),y=$l("sort"),Xv=!Jc(function(){if(zv)return zv<70;if(!(Bv&&3<Bv)){if(Kv)return!0;if(qv)return qv<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++)Yv.push({k:e+r,v:t})}for(Yv.sort(function(e,t){return t.v-e.v}),r=0;r<Yv.length;r++)e=Yv[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),b=(A({target:"Array",proto:!0,forced:qf||!as||!y||!Xv},{sort:function(e){void 0!==e&&Lv(e);var t=Fv(this);if(Xv)return void 0===e?Jv(t):Jv(t,e);for(var r,n,i=[],o=jv(t),s=0;s<o;s++)s in t&&$v(i,t[s]);for(Gv(i,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:Hv(e)>Hv(t)?1:-1})),r=i.length,s=0;s<r;)t[s]=i[s++];for(;s<o;)Vv(t,s++);return t}}),Gp("Array"),R),Wv=_,Zv=$s,Qv=Js,em=O,tm=$d,rm=Xd,nm=Jd,im=Zd,Zc=Wd("splice"),om=Math.max,sm=Math.min,M=(b({target:"Array",proto:!0,forced:!Zc},{splice:function(e,t){var r,n,i,o,s,a,u=Wv(this),c=em(u),p=Zv(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-p):(r=e-2,sm(om(Qv(t),0),c-p)),tm(c+r-n),i=rm(u,n),o=0;o<n;o++)(s=p+o)in u&&nm(i,o,u[s]);if(r<(i.length=n)){for(o=p;o<c-n;o++)a=o+r,(s=o+n)in u?u[a]=u[s]:im(u,a);for(o=c;c-n+r<o;o--)im(u,o-1)}else if(n<r)for(o=c-n;p<o;o--)a=o+r-1,(s=o+n-1)in u?u[a]=u[s]:im(u,a);for(o=0;o<r;o++)u[o+p]=arguments[o+2];return u.length=c-n+r,i}}),x("flat"),x("flatMap"),R),am=_,um=O,cm=Zd,pm=$d,N=1!==[].unshift(0),S=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),No=(M({target:"Array",proto:!0,arity:1,forced:N||S},{unshift:function(e){var t=am(this),r=um(t),n=arguments.length;if(n){pm(r+n);for(var i=r;i--;){var o=i+n;i in t?t[o]=t[i]:cm(t,o)}for(var s=0;s<n;s++)t[s]=arguments[s]}return t.length=r+n}}),d.Array,{exports:{}}),ha={},lm=eo,fm=ro,dm=Mo.f,hm=ih,ym="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],h=(ha.f=function(e){if(!ym||"Window"!=lm(e))return dm(fm(e));var t=e;try{return dm(t)}catch(t){return hm(ym)}},w(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),bf=w,vm=no,mm=eo,gm=h,Em=Object.isExtensible,If=bf(function(){Em(1)})||gm?function(e){return!!vm(e)&&(!gm||"ArrayBuffer"!=mm(e))&&(!Em||Em(e))}:Em,Co=!w(function(){return Object.isExtensible(Object.preventExtensions({}))}),wm=R,Tm=e,yp=ua,_m=no,Im=ts,Am=os.f,bm=Mo,Om=ha,Rm=If,Nm=Co,Sm=!1,Cm=co("meta"),Mm=0,xm=No.exports={enable:function(){xm.enable=function(){},Sm=!0;var i=bm.f,o=Tm([].splice),e={};e[Cm]=1,i(e).length&&(bm.f=function(e){for(var t=i(e),r=0,n=t.length;r<n;r++)if(t[r]===Cm){o(t,r,1);break}return t},wm({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Om.f}))},fastKey:function(e,t){if(!_m(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Im(e,Cm)){if(!Rm(e))return"F";if(!t)return"E";sh(e)}return e[Cm].objectID},getWeakData:function(e,t){if(!Im(e,Cm)){if(!Rm(e))return!0;if(!t)return!1;sh(e)}return e[Cm].weakData},onFreeze:function(e){return Nm&&Sm&&Rm(e)&&!Im(e,Cm)&&sh(e),e}},Pm=(yp[Cm]=!0,T),km=no,Um=Nu,C=R,$l=m,Dm=e,Jc=va,Lm=Ys,A=No.exports,Fm=Ku,jm=Bp,qf=T,Vm=no,as=w,y=Yf,b=fp,Hm=Ys,Gm=os.f,Bm=Su,Km=ah,zm=Fu,qm=Bp,Ym=Ku,Jm=hp,$m=Gp,Xm=r,Wm=No.exports.fastKey,Zm=So.set,Qm=So.getterFor;function eg(e){var r=Dm(dh[e]);Lm(dh,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(ph&&!Vm(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return ph&&!Vm(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(ph&&!Vm(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}Zc=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},M={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=Wm(t,!0),key:t,value:r,previous:t=i.last,next:void 0,removed:!1},i.first||(i.first=o),t&&(t.next=o),Xm?i.size++:e.size++,"F"!==n&&(i.index[n]=o)),e}function s(e,t){var r,e=u(e),n=Wm(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){qm(e,a),Zm(e,{type:r,index:Bm(null),first:void 0,last:void 0,size:0}),Xm||(e.size=0),null!=t&&Ym(t,e[i],{that:e,AS_ENTRIES:n})}),a=e.prototype,u=Qm(r);return Km(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,Xm?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),Xm?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=zm(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)}}),Km(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)}}),Xm&&Gm(a,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",i=Qm(t),o=Qm(n);Jm(e,t,function(e,t){Zm(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),$m(t)}},ch=-1!==(N="Map").indexOf("Map"),ph=-1!==N.indexOf("Weak"),lh=ch?"set":"add",fh=$l.Map,dh=fh&&fh.prototype,S={},Jc(N,!qf(hh=fh)||!(ph||dh.forEach&&!as(function(){(new fh).entries().next()})))?(hh=M.getConstructor(Zc,N,ch,lh),A.enable()):Jc(N,!0)&&(d=(uh=new hh)[lh](ph?{}:-0,1)!=uh,h=as(function(){uh.has(1)}),bf=y(function(e){new fh(e)}),ua=!ph&&as(function(){for(var e=new fh,t=5;t--;)e[lh](t,t);return!e.has(-0)}),bf||(((hh=Zc(function(e,t){jm(e,dh);r=new fh,e=e,n=hh,Um&&Pm(e=e.constructor)&&e!==n&&km(e=e.prototype)&&e!==n.prototype&&Um(r,e);var r,n=r;return null!=t&&Fm(t,n[lh],{that:n,AS_ENTRIES:ch}),n})).prototype=dh).constructor=hh),(h||ua)&&(eg("delete"),eg("has"),ch&&eg("get")),(ua||d)&&eg(lh),ph&&dh.clear&&delete dh.clear),S.Map=hh,C({global:!0,constructor:!0,forced:hh!=fh},S),b(hh,N),ph||M.setStrong(hh,N,ch);function tg(e,t){for(var r=0,n=og(t),i=new e(n);r<n;)i[r]=t[r++];return i}function rg(e,t,r,n){for(var i,o,s,a=ug(e),u=ag(a),c=sg(t,r),p=lg(null),l=pg(u),f=0;f<l;f++)s=u[f],(o=cg(c(s,f,a)))in p?hg(p[o],s):p[o]=[s];if(n&&(i=n(a))!==dg)for(o in p)p[o]=fg(i,p[o]);return p}function ng(e){for(var t,r,n=Eg(this),i=gg(n),o=mg(e,1<arguments.length?arguments[1]:void 0),s=new Tg,a=wg(i),u=0;u<a;u++)t=o(r=i[u],u,n),Ig(s,t)?bg(_g(s,t),r):Ag(s,t,[r]);return s}function ig(e){return Sg[e].prototype}var og=O,sg=Fu,ag=ho,ug=_,cg=po,pg=O,lg=Su,fg=tg,dg=Array,hg=e([].push),yg=rg,ts=x,vg=(R({target:"Array",proto:!0},{group:function(e){return yg(this,e,1<arguments.length?arguments[1]:void 0)}}),ts("group"),rg),Mo=x,mg=(R({target:"Array",proto:!0,forced:!eh("groupBy")},{groupBy:function(e){return vg(this,e,1<arguments.length?arguments[1]:void 0)}}),Mo("groupBy"),Fu),ha=e,gg=ho,Eg=_,wg=O,Tg=io("Map"),If=Tg.prototype,_g=ha(If.get),Ig=ha(If.has),Ag=ha(If.set),bg=ha([].push),Co=x,yp=ng,Nu=(R({target:"Array",proto:!0,name:"groupToMap",forced:!eh("groupByToMap")},{groupByToMap:yp}),Co("groupByToMap"),x),Og=(R({target:"Array",proto:!0},{groupToMap:ng}),Nu("groupToMap"),O),Rg=ro,va=x,Ng=Array,Sg=(R({target:"Array",proto:!0},{toReversed:function(){for(var e=Rg(this),t=Ng,r=Og(e),n=new t(r),i=0;i<r;i++)n[i]=e[r-i-1];return n}}),va("toReversed"),m),No=R,Cg=so,Mg=ro,xg=tg,$l=x,Pg=Array,kg=e(ig("Array").sort),Jc=(No({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&Cg(e);var t=Mg(this),t=xg(Pg,t);return kg(t,e)}}),$l("toSorted"),R),y=x,Ug=$d,Dg=O,Lg=$s,Fg=ro,jg=Js,Vg=Array,Hg=Math.max,Gg=Math.min,Bg=(Jc({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,i,o,s=Fg(this),a=Dg(s),u=Lg(e,a),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,a-u):(r=e-2,Gg(Hg(jg(t),0),a-u)),i=Ug(a+r-n),o=Vg(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),Kg=Js,zg=RangeError,qg=ro,Yg=Array;R({target:"Array",proto:!0},{with:function(e,t){var r=qg(this),n=Yg,i=t,o=Bg(r),s=(e=Kg(e))<0?o+e:e;if(o<=s||s<0)throw zg("Incorrect index");for(var a=new n(o),u=0;u<o;u++)a[u]=u===s?i:r[u];return a}});as=m,bf=$o,Zc=T,h=Ks,ua=Ys,d=I("asyncIterator"),C=as.AsyncIterator,S=bf.AsyncIteratorPrototype;if(S)UE=S;else if(Zc(C))UE=C.prototype;else if(bf.USE_FUNCTION_CONSTRUCTOR||as.USE_FUNCTION_CONSTRUCTOR)try{RE=h(h(h(Function("return async function*(){}()")()))),h(RE)===Object.prototype&&(UE=RE)}catch(vA){}Zc((UE=UE||{})[d])||ua(UE,d,function(){return this});function Jg(e,t,r){var n=e.done;n0.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function $g(e){i0(this,{type:"AsyncFromSyncIterator",iterator:t0(e),next:e.next})}function Xg(e,t,r,n){try{var i=v0(e,"return");if(i)return y0("Promise").resolve(h0(i,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function Wg(e){var f=0==e,d=1==e,h=2==e,y=3==e;return function(e,s,a){var e={iterator:e,next:f0(d0(e).next)},u=T0("Promise"),c=e.iterator,t=e.next,p=0,l=void 0!==s;return!l&&f||g0(s),new u(function(r,n){var i=function(e){Xg(c,n,e,n)},o=function(){try{if(f&&l)try{w0(p)}catch(e){i(e)}u.resolve(E0(m0(t,c))).then(function(e){try{if(E0(e).done)f?(a.length=p,r(a)):r(!y&&(h||void 0));else{var t=e.value;try{l?u.resolve(f?s(t,p):s(t)).then(function(e){if(d)o();else if(h)e?o():Xg(c,r,!1,n);else if(f)try{a[p++]=e,o()}catch(e){i(e)}else e?Xg(c,r,y||t,n):o()},i):(a[p++]=t,o())}catch(e){i(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};o()})}}function Zg(e,t){if(!D0||!U0(e)||!D0(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 Qg(e,t,r){r.get&&L0(r.get,t,{getter:!0}),r.set&&L0(r.set,t,{setter:!0}),F0.f(e,t,r)}var e0=o,t0=fo,b=Su,r0=ao,M=ah,N=So,ts=UE,n0=io("Promise"),i0=N.set,o0=N.getterFor("AsyncFromSyncIterator"),Mo=($g.prototype=M(b(ts),{next:function(){var n=o0(this);return new n0(function(e,t){var r=t0(e0(n.next,n.iterator));Jg(r,e,t)})},return:function(){var n=o0(this).iterator;return new n0(function(e,t){var r=r0(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=t0(e0(r,n));Jg(r,e,t)})}}),$g),s0=o,a0=Mo,u0=fo,c0=Hu,p0=ao,l0=I("asyncIterator"),f0=so,d0=fo,h0=o,y0=io,v0=ao,m0=o,g0=so,E0=fo,w0=$d,T0=io,ho={toArray:Wg(0),forEach:Wg(1),every:Wg(2),some:Wg(3),find:Wg(4)},_0=Fu,I0=_,A0=tp,b0=Hu,O0=Vu,R0=ao,If=ig,N0=io,S0=Mo,C0=ho.toArray,M0=I("asyncIterator"),x0=If("Array").values,P0=(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(N0("Promise"))(function(e){var t=I0(o),r=(void 0!==a&&(a=_0(a,u)),R0(t,M0)),n=r?void 0:O0(t)||x0,i=A0(s)?new s:[],r=r?function(e,t){t=arguments.length<2?p0(e,l0):t;return t?u0(s0(t,e)):new a0(c0(e))}(t,r):new S0(b0(t,n));e(C0(r,a,i))})}}),v.filterReject),ha=x,k0=(R({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return P0(this,e,1<arguments.length?arguments[1]:void 0)}}),ha("filterOut"),v.filterReject),yp=x,Co=(R({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return k0(this,e,1<arguments.length?arguments[1]:void 0)}}),yp("filterReject"),R),U0=P,D0=Object.isFrozen,L0=(Co({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!Zg(e,!0))return!1;var t=e.raw;return t.length===e.length&&Zg(t,!1)}}),Lo.exports),F0=os,Nu=x,j0=_,V0=O,va=(r&&(Qg(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=j0(this),t=V0(e);return 0==t?void 0:e[t-1]},set:function(e){var t=j0(this),r=V0(t);return t[0==r?0:r-1]=e}}),Nu("lastItem")),x),H0=_,G0=O,No=(r&&(Qg(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=H0(this),e=G0(e);return 0==e?0:e-1}}),va("lastIndex")),e),B0=so,K0=O,z0=_,q0=Xd,Y0=io("Map"),$l=Y0.prototype,J0=No($l.forEach),$0=No($l.has),X0=No($l.set),W0=No([].push),Jc=x;R({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=z0(this),i=K0(n),o=q0(n,0),s=new Y0,a=null!=e?B0(e):function(e){return e},u=0;u<i;u++)r=a(t=n[u]),$0(s,r)||X0(s,r,t);return J0(s,function(e){W0(o,e)}),o}}),Jc("uniqueBy");a_.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},a_.prototype.refresh=function(){this.stop(),this.start()},a_.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var Z0,Q0,eE,tE,rE,nE,iE,oE,sE,aE=a_,uE=(s_.prototype.start=function(){this.started=!0},s_.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},s_.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},s_.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},s_.prototype.close=function(){this.stop()},s_),y=(o_.prototype.on=function(e,t){this.listeners[e]=(this.listeners[e]||[]).concat(t)},o_.prototype.off=function(e,t){this.listeners[e]=(this.listeners[e]||[]).filter(function(e){return e!==t})},o_.prototype.emit=function(e,t){(this.listeners[e]||[]).forEach(function(e){e(t)})},ce(i_,sE=o_),ce(n_,oE=i_),n_.prototype.isClientError=function(e){return!!(e&&400<=e.statusCode&&e.statusCode<500)},n_.prototype.drainRepository=function(o){var e=this;return new Promise(function(i){return pe(e,void 0,void 0,function(){var t,r,n=this;return le(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]}})})})},n_.prototype.drainQueue=function(i,o){var e=this,s=i.map(function(e){return e.toDto()});return new Promise(function(n){return pe(e,void 0,void 0,function(){var t,r=this;return le(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]})})})},n_.prototype.process=function(e){this.queue.enqueue(e),this.emit("event",e)},n_.prototype.start=function(){return pe(this,void 0,void 0,function(){return le(this,function(e){return this.queue.start(),[2]})})},n_.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},n_.prototype.flush=function(){this.queue.flush()},n_.prototype.close=function(){this.stop()},n_),cE=(r_.isSessionEvent=function(e){return!!si.isTrack(e)&&(e.event.key===r_.SESSION_START_EVENT_NAME||e.event.key===r_.SESSION_END_EVENT_NAME)},r_.prototype.onSessionStarted=function(e,t,r){this.track(r_.SESSION_START_EVENT_NAME,e,t,r)},r_.prototype.onSessionEnded=function(e,t,r){this.track(r_.SESSION_END_EVENT_NAME,e,t,r)},r_.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)},r_.prototype.decorateSession=function(e,t){t=(new Xe).add($e.SESSION,t).addIdentifiers(e.identifiers).build();return E(E({},e),{identifiers:t})},r_.SESSION_START_EVENT_NAME="$session_start",r_.SESSION_END_EVENT_NAME="$session_end",r_),pE=(ce(t_,iE=y),t_.prototype.process=function(e){var t;cE.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[$e.SESSION]?e:e.copyWithUser(E(E({},e.user),{identifiers:E(E({},e.user.identifiers),((e={})[$e.SESSION]=t.sessionId,e))})),iE.prototype.process.call(this,t))},t_),lE=(e_.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!si.isExposure(e))return!1;Oe.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)},e_),fE=(QT.toEvent=function(e){var t;return{key:QT.EVENT_KEY,properties:{level:QT.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:QT._stacktrace(e)}}},QT._stacktrace=function(e){return a.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,QT.STACK_TRACK_LIMIT).join("\n")},QT.EVENT_KEY="$trace",QT.LEVEL_ERROR="error",QT.STACK_TRACK_LIMIT=30,QT),m=(ZT.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)}},ZT),dE=(WT.prototype.with=function(e){return new WT(e,this.targetEvaluations,this.experiment,this.variationId,this.variationKey,this.config)},WT.of=function(e,t,r,n){var i=this.config(e.workspace,r);return new WT(n,t.targetEvaluations,e.experiment,r.id,r.key,i)},WT.ofDefault=function(e,t,r){var n=e.experiment._getVariationByKeyOrNull(e.defaultVariationKey);return a.isNotNullOrUndefined(n)?this.of(e,t,n,r):new WT(r,t.targetEvaluations,e.experiment,void 0,e.defaultVariationKey,void 0)},WT.config=function(e,t){if(!a.isNullOrUndefined(t.parameterConfigurationId))return a.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},WT),hE=(ce(XT,nE=m),XT.prototype.supports=function(e){return void 0!==e.experiment},XT.prototype.evaluateInternal=function(e,t){var r;return null!=(r=this.evaluationFlowFactory.getExperimentFlow(e.experiment.type).evaluate(e,t))?r:dE.ofDefault(e,t,s.TRAFFIC_NOT_ALLOCATED)},XT),yE=($T.of=function(e,t,r,n,i,o){return o.returnValue=n,new $T(i,t.targetEvaluations,e.parameter,r,n,o)},$T.ofDefault=function(e,t,r,n){return this.of(e,t,void 0,e.defaultValue,r,n)},$T),vE=(ce(JT,rE=m),JT.prototype.supports=function(e){return void 0!==e.parameter},JT.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 yE.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)},JT.prototype.evaluation=function(e,t,r,n,i){return"UNKNOWN"===e.requiredType||"NULL"!==e.requiredType&&typeof e.defaultValue!=typeof r.rawValue?yE.ofDefault(e,t,s.TYPE_MISMATCH,i):yE.of(e,t,r.id,r.rawValue,n,i)},JT),mE=(YT.prototype.isEquals=function(e){return this.type===e.type&&this.id===e.id},YT),gE=(qT.create=function(){return new qT},Object.defineProperty(qT.prototype,"stack",{get:function(){return Array.from(this._stack)},enumerable:!1,configurable:!0}),Object.defineProperty(qT.prototype,"targetEvaluations",{get:function(){return Array.from(this._targetEvaluations)},enumerable:!1,configurable:!0}),qT.prototype.contains=function(t){return this._stack.some(function(e){return e.key.isEquals(t.key)})},qT.prototype.addRequest=function(e){this._stack.push(e)},qT.prototype.removeRequest=function(e){e=this._stack.indexOf(e,0);-1<e&&this._stack.splice(e,1)},qT.prototype.get=function(t){return this._targetEvaluations.find(function(e){return e instanceof dE&&e.experiment.id===t.id})},qT.prototype.addEvaluation=function(e){this._targetEvaluations.push(e)},qT),EE=(zT.of=function(e,t,r,n){return new zT(e,t,r,n)},zT.by=function(e,t){return new zT(e.workspace,e.user,t,"A")},zT.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.experiment.type,", key=").concat(this.experiment.key,")")},zT),wE=(KT.of=function(e,t,r,n,i){return new KT(e,t,r,n,i)},KT.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.key.type,", key=").concat(this.parameter.key,")")},KT),TE=(BT.asString=function(e){switch(typeof e){case"string":return e;case"number":return e.toString();default:return}},BT.asNumber=function(e){switch(typeof e){case"number":return this.asActualNumber(e);case"string":return this.asActualNumber(Number(e));default:return}},BT.asActualNumber=function(e){return!isNaN(e)&&isFinite(e)?e:void 0},BT),_E=(GT.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}},GT),IE=(HT.prototype.getVariation=function(e,t){var r=this.get(e);if(r)return e._getVariationByIdOrNull(r)},HT.prototype.get=function(e){e=this.listStorage.getItem(e.id.toString());return TE.asNumber(e)},HT.prototype.getAll=function(){var r=new Map;return this.listStorage.entries().forEach(function(e){var t=e[0],e=e[1],t=TE.asNumber(t),e=TE.asNumber(e);a.isNullOrUndefined(t)||t<0||a.isNullOrUndefined(e)||t<0||r.set(t,e)}),r},HT.prototype.set=function(e,t){this.listStorage.setItem(e.id.toString(),t.toString())},HT.prototype.remove=function(e){this.listStorage.removeItem(e.id.toString())},HT.prototype.clear=function(){this.listStorage.clear()},HT),AE=(VT.prototype.add=function(e){this.evaluators.push(e)},VT.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)},VT),bE=(jT.prototype.matches=function(t,r,e){var n=this;return e.conditions.every(function(e){return n._matches(t,r,e)})},jT.prototype.anyMatches=function(t,r,e){var n=this;return!e.length||e.some(function(e){return n.matches(t,r,e)})},jT.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(r.key.type).matches(e,t,r)},jT),OE=(FT.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)},FT.prototype.userValueMatches=function(e,t,r,n){return Array.isArray(e)?this.arrayMatches(e,t,r,n):this.singleMatches(e,t,r,n)},FT.prototype.singleMatches=function(t,e,r,n){return e.values.some(function(e){return r.matches(n,t,e)})},FT.prototype.arrayMatches=function(e,t,r,n){var i=this;return e.some(function(e){return i.singleMatches(e,t,r,n)})},FT.prototype.typeMatches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},FT),$o=(LT.prototype.booleanMatches=function(e,t){return e===t},LT.prototype.numberMatches=function(e,t){return e===t},LT.prototype.stringMatches=function(e,t){return e===t},LT.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},LT),Ks=(DT.prototype.booleanMatches=function(e,t){return!1},DT.prototype.numberMatches=function(e,t){return!1},DT.prototype.stringMatches=function(e,t){return e.includes(t)},DT.prototype.versionMatches=function(e,t){return!1},DT),S=(UT.prototype.booleanMatches=function(e,t){return!1},UT.prototype.numberMatches=function(e,t){return!1},UT.prototype.stringMatches=function(e,t){return e.startsWith(t)},UT.prototype.versionMatches=function(e,t){return!1},UT),C=(kT.prototype.booleanMatches=function(e,t){return!1},kT.prototype.numberMatches=function(e,t){return!1},kT.prototype.stringMatches=function(e,t){return e.endsWith(t)},kT.prototype.versionMatches=function(e,t){return!1},kT),bf=(PT.prototype.booleanMatches=function(e,t){return!1},PT.prototype.numberMatches=function(e,t){return t<e},PT.prototype.stringMatches=function(e,t){return t<e},PT.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},PT),as=(xT.prototype.booleanMatches=function(e,t){return!1},xT.prototype.numberMatches=function(e,t){return t<=e},xT.prototype.stringMatches=function(e,t){return t<=e},xT.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},xT),h=(MT.prototype.booleanMatches=function(e,t){return!1},MT.prototype.numberMatches=function(e,t){return e<t},MT.prototype.stringMatches=function(e,t){return e<t},MT.prototype.versionMatches=function(e,t){return e.isLessThan(t)},MT),RE=(CT.prototype.booleanMatches=function(e,t){return!1},CT.prototype.numberMatches=function(e,t){return e<=t},CT.prototype.stringMatches=function(e,t){return e<=t},CT.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},CT),NE=(ST.prototype.getMatcher=function(e){switch(e){case"IN":return ST.IN_MATCHER;case"CONTAINS":return ST.CONTAINS_MATCHER;case"STARTS_WITH":return ST.STARTS_WITH_MATCHER;case"ENDS_WITH":return ST.ENDS_WITH_MATCHER;case"GT":return ST.GT_MATCHER;case"GTE":return ST.GTE_MATCHER;case"LT":return ST.LT_MATCHER;case"LTE":return ST.LTE_MATCHER}},ST.IN_MATCHER=new $o,ST.CONTAINS_MATCHER=new Ks,ST.STARTS_WITH_MATCHER=new S,ST.ENDS_WITH_MATCHER=new C,ST.GT_MATCHER=new bf,ST.GTE_MATCHER=new as,ST.LT_MATCHER=new h,ST.LTE_MATCHER=new RE,ST),Zc=(NT.prototype.matches=function(e,t,r){t=TE.asString(t),r=TE.asString(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.stringMatches(t,r)},NT),ua=(RT.prototype.matches=function(e,t,r){t=TE.asNumber(t),r=TE.asNumber(r);return!a.isNullOrUndefined(t)&&!a.isNullOrUndefined(r)&&e.numberMatches(t,r)},RT),d=(OT.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},OT),Su=(bT.prototype.matches=function(e,t,r){t=Ut.tryParse(t),r=Ut.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},bT),So=(AT.prototype.matches=function(e,t,r){return!1},AT),SE=(IT.prototype.getMatcher=function(e){switch(e){case"STRING":case"JSON":return IT.STRING_MATCHER;case"NUMBER":return IT.NUMBER_MATCHER;case"BOOLEAN":return IT.BOOLEAN_MATCHER;case"VERSION":return IT.VERSION_MATCHER;case"NULL":case"UNKNOWN":return IT.NULL_MATCHER}},IT.STRING_MATCHER=new Zc,IT.NUMBER_MATCHER=new ua,IT.BOOLEAN_MATCHER=new d,IT.VERSION_MATCHER=new Su,IT.NULL_MATCHER=new So,IT),CE=(_T.prototype.matches=function(e,t,r){e=this.userValueResolver.resolveOrNull(e.user,r.key);return!a.isNullOrUndefined(e)&&this.valueOperatorMatcher.matches(e,r.match)},_T),ME=(TT.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":case"EVENT_PROPERTY":throw new Error("Unsupported TargetKeyType [".concat(t.type,"]"))}},TT),xE=(wT.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}},wT.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,"]"))},wT),PE=(ET.prototype.matches=function(t,r,e){var n=this;return e.targets.some(function(e){return n._matches(t,r,e)})},ET.prototype._matches=function(t,r,e){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(t,r,e)})},ET),kE=(gT.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"EVENT_PROPERTY":case"SEGMENT":throw new Error("Unsupported TargetKeyType [".concat(r.key.type,"]"))}},gT),UE=(mT.prototype.matches=function(e,t,r){var n=a.requiredNotNullOrUndefined(TE.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)},mT.prototype.evaluate=function(e,t,r){r=EE.by(e,r),r=this.evaluator.evaluate(r,t),e=this.resolve(e,r);return t.addEvaluation(e),e},mT),DE=(ce(vT,tE=UE),vT.prototype.experiment=function(e,t){return e.workspace.getExperimentOrNull(t)},vT.prototype.resolve=function(e,t){return e instanceof EE&&t.reason===s.TRAFFIC_ALLOCATED?t.with(s.TRAFFIC_ALLOCATED_BY_TARGETING):t},vT.prototype.evaluationMatches=function(e,t){return!!vT.AB_TEST_MATCHED_REASONS.includes(e.reason)&&this.valueOperatorMatcher.matches(e.variationKey,t.match)},vT.AB_TEST_MATCHED_REASONS=[s.OVERRIDDEN,s.TRAFFIC_ALLOCATED,s.EXPERIMENT_COMPLETED,s.TRAFFIC_ALLOCATED_BY_TARGETING],vT),LE=(ce(yT,eE=UE),yT.prototype.experiment=function(e,t){return e.workspace.getFeatureFlagOrNull(t)},yT.prototype.resolve=function(e,t){return t},yT.prototype.evaluationMatches=function(e,t){e="A"!==e.variationKey;return this.valueOperatorMatcher.matches(e,t.match)},yT),FE=(hT.prototype.matches=function(e,t,r){if(!this.isEventEvaluatorRequest(e))return!1;e=this.eventValueResolver.resolveOrNull(e.event,r.key);return!a.isNullOrUndefined(e)&&this.valueOperatorMatcher.matches(e,r.match)},hT.prototype.isEventEvaluatorRequest=function(e){return void 0!==e.event},hT),jE=(dT.prototype.resolveOrNull=function(e,t){var r;switch(t.type){case"EVENT_PROPERTY":return null==(r=this.properties(e))?void 0:r[t.name];case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":case"SEGMENT":case"AB_TEST":case"FEATURE_FLAG":throw new Error("Unsupported TargetKeyType [".concat(t.type,"]"))}},dT.prototype.properties=function(e){return si.isTrack(e)?e.event.properties:si.isExposure(e)||si.isRemoteConfig(e)?e.properties:void 0},dT),VE=(fT.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return this.userConditionMatcher;case"EVENT_PROPERTY":return this.eventConditionMatcher;case"SEGMENT":return this.segmentConditionMatcher;case"AB_TEST":case"FEATURE_FLAG":return this.experimentConditionMatcher}},fT),HE=(lT.prototype.resolveOrNull=function(e,t,r){switch(r.type){case"VARIATION":return this.resolveVariation(e,r);case"BUCKET":return this.resolveBucket(e,r)}},lT.prototype.resolveVariation=function(e,t){return e.experiment._getVariationByIdOrNull(t.variationId)},lT.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)}},lT),GE={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}},BE=(pT.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},pT.prototype.calculateSlotNumber=function(e,t,r){r=GE.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},pT),KE=(cT.prototype.evaluate=function(e,t){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,this.nextFlow):void 0},cT.end=function(){return new cT(void 0,void 0)},cT.decision=function(e,t){return new cT(e,t)},cT.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=this.end(),n=0,i=e.reverse();n<i.length;n++)var o=i[n],r=this.decision(o,r);return r},cT),zE=(uT.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 dE.of(e,t,n,s.OVERRIDDEN);case"FEATURE_FLAG":return dE.of(e,t,n,s.INDIVIDUAL_TARGET_MATCH)}},uT),qE=(aT.prototype.evaluate=function(e,t,r){return"DRAFT"===e.experiment.status?dE.ofDefault(e,t,s.EXPERIMENT_DRAFT):r.evaluate(e,t)},aT),YE=(sT.prototype.evaluate=function(e,t,r){if("PAUSED"!==e.experiment.status)return r.evaluate(e,t);switch(e.experiment.type){case"AB_TEST":return dE.ofDefault(e,t,s.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return dE.ofDefault(e,t,s.FEATURE_FLAG_INACTIVE)}},sT),JE=(oT.prototype.evaluate=function(e,t,r){if("COMPLETED"!==e.experiment.status)return r.evaluate(e,t);r=e.experiment._winnerVariationOrNull();if(r)return dE.of(e,t,r,s.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(e.experiment.id,"]"))},oT),$E=(iT.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):dE.ofDefault(e,t,s.NOT_IN_EXPERIMENT_TARGET)},iT),XE=(nT.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?dE.ofDefault(e,t,s.VARIATION_DROPPED):dE.of(e,t,n,s.TRAFFIC_ALLOCATED):dE.ofDefault(e,t,s.TRAFFIC_NOT_ALLOCATED)},nT),WE=(rT.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 dE.of(e,t,r,s.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(e.experiment.id,"]"))},rT),ZE=(tT.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 dE.ofDefault(e,t,s.DEFAULT_RULE);var n=this.actionResolver.resolveOrNull(e,t,e.experiment.defaultRule);if(n)return dE.of(e,t,n,s.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(e.experiment.id,"]"))},tT),QE=(eT.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):dE.ofDefault(e,t,s.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("container[".concat(n,"]"))},eT),ew=(Qw.prototype.evaluate=function(e,t,r){return e.user.identifiers[e.experiment.identifierType]?r.evaluate(e,t):dE.ofDefault(e,t,s.IDENTIFIER_NOT_FOUND)},Qw),tw=(Zw.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)})},Zw),rw=(Ww.prototype.determineTargetRuleOrNull=function(t,r){var n=this;return t.experiment.targetRules.find(function(e){return n.targetMatcher.matches(t,r,e.target)})},Ww),nw=(Xw.prototype.resolveOrNull=function(e,t){var r;return null!=(r=null!=(r=this.resolveManualOverride(e))?r:this._resolveUserOverride(e))?r:this._resolveSegmentOverride(e,t)},Xw.prototype.resolveManualOverride=function(e){return this.manualOverrideStorage.getVariation(e.experiment,e.user)},Xw.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)}},Xw.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)},Xw),iw=($w.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)},$w),ow=(Jw.of=function(e,t,r,n){return new Jw(r,t.targetEvaluations,e.inAppMessage,n)},Jw),sw=(Yw.prototype.evaluate=function(e,t,r){return e.inAppMessage.supports("WEB")?r.evaluate(e,t):ow.of(e,t,s.UNSUPPORTED_PLATFORM)},Yw),aw=(qw.prototype.evaluate=function(e,t,r){var n;return this.userOverrideMatcher.matches(e,t)?(n=this.inAppMessageResolver.resolve(e,t),ow.of(e,t,s.OVERRIDDEN,n)):r.evaluate(e,t)},qw),uw=(zw.prototype.evaluate=function(e,t,r){return"DRAFT"===e.inAppMessage.status?ow.of(e,t,s.IN_APP_MESSAGE_DRAFT):r.evaluate(e,t)},zw),cw=(Kw.prototype.evaluate=function(e,t,r){return"PAUSE"===e.inAppMessage.status?ow.of(e,t,s.IN_APP_MESSAGE_PAUSED):r.evaluate(e,t)},Kw),pw=(Bw.prototype.evaluate=function(e,t,r){return e.inAppMessage.period.within(e.timestamp)?r.evaluate(e,t):ow.of(e,t,s.NOT_IN_IN_APP_MESSAGE_PERIOD)},Bw),lw=(Gw.prototype.evaluate=function(e,t,r){return this.hiddenMatcher.matches(e,t)?ow.of(e,t,s.IN_APP_MESSAGE_HIDDEN):r.evaluate(e,t)},Gw),fw=(Hw.prototype.evaluate=function(e,t,r){var n;return this.targetMatcher.matches(e,t)?(n=this.inAppMessageResolver.resolve(e,t),ow.of(e,t,s.IN_APP_MESSAGE_TARGET,n)):ow.of(e,t,s.NOT_IN_IN_APP_MESSAGE_TARGET)},Hw),dw=(Vw.prototype.resolve=function(e,t){var e=e.inAppMessage,r=e.messageContext.defaultLang,n=e.messageContext.messages.find(function(e){return e.lang===r});if(a.isNullOrUndefined(n))throw new Error("InAppMessage must be decided [".concat(e.id,"]"));return n},Vw),hw=(jw.prototype.matches=function(t,e){var r=this;return t.inAppMessage.targetContext.overrides.some(function(e){return r.isUserOverridden(t,e)})},jw.prototype.isUserOverridden=function(e,t){e=e.user.identifiers[t.identifierType];return!a.isNullOrUndefined(e)&&t.identifiers.includes(e)},jw),yw=(Fw.prototype.matches=function(t,r){var n=this,e=t.inAppMessage.targetContext.targets;return 0===e.length||e.some(function(e){return n.targetMatcher.matches(t,r,e)})},Fw),vw=(Lw.prototype.matches=function(e,t){return this.storage.exist(e.inAppMessage,e.timestamp)},Lw),mw=(Dw.prototype.determineTargetRuleOrNull=function(t,r){var n=this;return t.parameter.targetRules.find(function(e){return n.matches(t,r,e)})},Dw.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))},Dw),gw=(Uw.get=function(e){return a.requiredNotNullOrUndefined(this.getOrNull(e),function(){return"Instance not registered [".concat(e,"]")})},Uw.getOrNull=function(e){return Uw.instances.get(e)},Uw.register=function(e,t){return Uw.instances.set(e,t),t},Uw.instances=new Map,Uw),Ew=(kw.prototype.getExperimentFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},kw.prototype.getInAppMessageFlow=function(){return this.inAppMessageFlow},kw),ww=(Pw.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={})[Pw.ROOT_TYPE]=r.key.type,t[Pw.ROOT_ID]=r.key.id;e=n.createEvent(r,e,i,t);o.push(e)}),o},Pw.prototype.createEvent=function(e,t,r,n){var i;if(t instanceof dE)return n[Pw.CONFIG_ID_PROPERTY_KEY]=null==(i=t.config)?void 0:i.id,si.exposure(e.user,t,n,r);if(t instanceof yE)return si.remoteConfig(e.user,t,E(E({},n),t.properties),r);throw new Error("Unsupported Evaluation [".concat(typeof t,"]"))},Pw.ROOT_TYPE="$targetingRootType",Pw.ROOT_ID="$targetingRootId",Pw.CONFIG_ID_PROPERTY_KEY="$parameterConfigurationId",Pw),Tw=(ce(xw,Q0=m),xw.prototype.supports=function(e){return void 0!==e.inAppMessage},xw.prototype.evaluateInternal=function(e,t){var r;return null!=(r=this.evaluationFlowFactory.getInAppMessageFlow().evaluate(e,t))?r:ow.of(e,t,s.NOT_IN_IN_APP_MESSAGE_TARGET)},xw),_w=(Mw.of=function(e,t,r,n){return new Mw(e,t,r,n)},Mw.prototype.toString=function(){return"EvaluatorRequest(type=".concat(this.key.type,", key=").concat(this.inAppMessage.key,")")},Mw),Iw=he.log,Aw=(Cw.create=function(e,t,r,n){var i=new AE,r=new _E(r),r=new Ew(i,r,n),n=new hE(r),o=new vE(r.remoteConfigParameterTargetRuleDeterminer),r=new Tw(r);return i.add(n),i.add(o),new Cw(n,o,r,e,new ww(Me.instance),t,new bw,Me.instance)},Cw.prototype.experiment=function(e,t,r){var n=this;if(!e)return Iw.error("experimentKey must not be empty"),He.of(r,s.INVALID_INPUT);var i=this.workspaceFetcher.get();if(!i)return Iw.warn("SDK not ready."),He.of(r,s.SDK_NOT_READY);e=i.getExperimentOrNull(e);if(!e)return Iw.warn("Experiment does not exist."),He.of(r,s.EXPERIMENT_NOT_FOUND);i=EE.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},Cw.prototype.experiments=function(r){var n=this,i=new Qr(function(e,t){return e.id===t.id}),o=this.workspaceFetcher.get();return o&&o.getExperiments().forEach(function(e){var t=EE.of(o,r,e,"A"),t=n.experimentInternal(t),t=(t[0],t[1]);i.add(e,t)}),i},Cw.prototype.experimentInternal=function(e){var e=this.experimentEvaluator.evaluate(e,gE.create()),t=null!=(t=e.config)?t:new Be;return[e,He.of(e.variationKey,e.reason,t)]},Cw.prototype.featureFlag=function(e,t){var r=this;if(!e)return Iw.error("featureKey must not be empty"),Ge.off(s.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return Iw.warn("SDK not ready."),Ge.off(s.SDK_NOT_READY);e=n.getFeatureFlagOrNull(e);if(!e)return Iw.warn("FeatureFlag does not exist."),Ge.off(s.FEATURE_FLAG_NOT_FOUND);n=EE.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},Cw.prototype.featureFlags=function(r){var n=this,i=new Qr(function(e,t){return e.id===t.id}),o=this.workspaceFetcher.get();return o&&o.getFeatureFlags().forEach(function(e){var t=EE.of(o,r,e,"A"),t=n.featureFlagInternal(t),t=(t[0],t[1]);i.add(e,t)}),i},Cw.prototype.featureFlagInternal=function(e){var e=this.experimentEvaluator.evaluate(e,gE.create()),t=null!=(t=e.config)?t:new Be;return[e,"A"===e.variationKey?Ge.off(e.reason,t):Ge.on(e.reason,t)]},Cw.prototype.inAppMessage=function(e,t){var r=this.workspaceFetcher.get();if(!r)return Iw.warn("SDK not ready."),Ve.of(s.SDK_NOT_READY);e=r.getInAppMessageOrNull(e);if(!e)return Iw.warn("In app message does not exist."),Ve.of(s.IN_APP_MESSAGE_NOT_FOUND);r=_w.of(r,t,e,this.clock.currentMillis()),t=this.inAppMessageEvaluator.evaluate(r,gE.create());return Ve.of(t.reason,t.inAppMessage,t.message)},Cw.prototype.tryInAppMessage=function(e,t){var r,n=Tr.start();try{r=this.inAppMessage(e,t)}catch(t){Iw.error("Unexpected error while deciding in app message [".concat(e,"]: ").concat(t)),r=Ve.of(s.EXCEPTION)}return _n.inAppMessage(n,e,r),r},Cw.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 Je(0,e.key),this.eventProcessor.process(si.track(n,e,t,r))):Iw.warn("Event key must be not null. or event key must be string type."):Iw.warn("Event must be event type."):Iw.warn("event must not be null.")},Cw.prototype.trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=fE.toEvent(e),this.flush(),this.track(e,t),this.flush())},Cw.prototype.flush=function(){this.eventProcessor.flush()},Cw.prototype.remoteConfig=function(e,t,r,n){var i=this,o=this.workspaceFetcher.get();if(a.isNullOrUndefined(o))return Iw.warn("SDK not ready."),je.of(n,s.SDK_NOT_READY);e=o.getRemoteConfigParameterOrNull(e);if(a.isNullOrUndefined(e))return Iw.warn("Remote config parameter does not exist."),je.of(n,s.REMOTE_CONFIG_PARAMETER_NOT_FOUND);o=wE.of(o,t,e,r,n),t=this.remoteConfigEvaluator.evaluate(o,gE.create());return this.eventFactory.create(o,t).forEach(function(e){return i.eventProcessor.process(e)}),je.of(t.value,t.reason)},Cw.prototype.onReady=function(e,t){this.onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},Cw.prototype.onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(Iw.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?Iw.debug("HackleClient onInitialized Success"):e.error instanceof Error?Iw.error("HackleClient onInitialized Failed. ".concat(e.error.message)):Iw.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},Cw.prototype.close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},Cw),bw=(Sw.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},Sw.prototype._isSameError=function(e,t){return!a.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},Sw),Ow=(Nw.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},Nw.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},Nw),Rw=null;function Nw(){this._installed=[],this._installations={onerror:u_,onunhandledrejection:c_}}function Sw(){}function Cw(e,t,r,n,i,o,s,a){this.experimentEvaluator=e,this.remoteConfigEvaluator=t,this.inAppMessageEvaluator=r,this.workspaceFetcher=n,this.eventFactory=i,this.eventProcessor=o,this.errorDedupDeterminer=s,this.clock=a,this.workspaceFetcher.start(),this.eventProcessor.start(),this.readyPromise=this.workspaceFetcher.onReady().then(function(){return{success:!0}},function(e){return{success:!1,error:e}})}function Mw(e,t,r,n){this.key=new mE("IN_APP_MESSAGE",r.key),this.workspace=e,this.user=t,this.inAppMessage=r,this.timestamp=n}function xw(e){var t=Q0.call(this)||this;return t.evaluationFlowFactory=e,t}function Pw(e){this.clock=e}function kw(e,t,r){var n=new BE,e=gw.register("targetMatcher",new bE(new VE(e))),i=new HE(n),t=new nw(t,e,i),o=new iw(n),o=(this.abTestFlow=KE.of(new zE(t),new ew,new QE(o),new $E(new tw(e)),new qE,new YE,new JE,new XE(i)),this.featureFlagFlow=KE.of(new qE,new YE,new JE,new zE(t),new ew,new WE(new rw(e),i),new ZE(i)),new dw);this.inAppMessageFlow=KE.of(new sw,new aw(new hw,o),new uw,new cw,new pw,new lw(new vw(r)),new fw(new yw(e),o)),this.remoteConfigParameterTargetRuleDeterminer=new mw(e,n)}function Uw(){}function Dw(e,t){this.targetMatcher=e,this.bucketer=t}function Lw(e){this.storage=e}function Fw(e){this.targetMatcher=e}function jw(){}function Vw(){}function Hw(e,t){this.targetMatcher=e,this.inAppMessageResolver=t}function Gw(e){this.hiddenMatcher=e}function Bw(){}function Kw(){}function zw(){}function qw(e,t){this.userOverrideMatcher=e,this.inAppMessageResolver=t}function Yw(){}function Jw(e,t,r,n){this.reason=e,this.targetEvaluations=t,this.inAppMessage=r,this.message=n}function $w(e){this.bucketer=e}function Xw(e,t,r){this.manualOverrideStorage=e,this.targetMatcher=t,this.actionResolver=r}function Ww(e){this.targetMatcher=e}function Zw(e){this.targetMatcher=e}function Qw(){}function eT(e){this.containerResolver=e}function tT(e){this.actionResolver=e}function rT(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function nT(e){this.actionResolver=e}function iT(e){this.experimentTargetDeterminer=e}function oT(){}function sT(){}function aT(){}function uT(e){this.overrideResolver=e}function cT(e,t){this.flowEvaluator=e,this.nextFlow=t}function pT(){}function lT(e){this.bucketer=e}function fT(e){var t=new OE(new SE,new NE);this.userConditionMatcher=new CE(new ME,t),this.eventConditionMatcher=new FE(new jE,t),this.segmentConditionMatcher=new xE(new PE(this.userConditionMatcher)),this.experimentConditionMatcher=new kE(new DE(e,t),new LE(e,t))}function dT(){}function hT(e,t){this.eventValueResolver=e,this.valueOperatorMatcher=t}function yT(e,t){return eE.call(this,e,t)||this}function vT(e,t){return tE.call(this,e,t)||this}function mT(e,t){this.evaluator=e,this.valueOperatorMatcher=t}function gT(e,t){this.abTestMatcher=e,this.featureFlagMatcher=t}function ET(e){this.userConditionMatcher=e}function wT(e){this.segmentMatcher=e}function TT(){}function _T(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function IT(){}function AT(){}function bT(){}function OT(){}function RT(){}function NT(){}function ST(){}function CT(){}function MT(){}function xT(){}function PT(){}function kT(){}function UT(){}function DT(){}function LT(){}function FT(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function jT(e){this.conditionMatcherFactory=e}function VT(){this.evaluators=new Array}function HT(e){this.listStorage=e}function GT(e){this.storages=e}function BT(){}function KT(e,t,r,n,i){this.key=new mE("REMOTE_CONFIG",r.id),this.workspace=e,this.user=t,this.parameter=r,this.requiredType=n,this.defaultValue=i}function zT(e,t,r,n){this.key=new mE("EXPERIMENT",r.id),this.workspace=e,this.user=t,this.experiment=r,this.defaultVariationKey=n}function qT(){this._stack=[],this._targetEvaluations=[]}function YT(e,t){this.type=e,this.id=t}function JT(e){var t=rE.call(this)||this;return t.targetRuleDeterminer=e,t}function $T(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 XT(e){var t=nE.call(this)||this;return t.evaluationFlowFactory=e,t}function WT(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 ZT(){}function QT(){}function e_(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function t_(e,t,r,n,i,o,s){e=iE.call(this,e,t,r,n=void 0===n?null:n)||this;return e.exposureEventDedupDeterminer=i,e.sessionManager=o,e.userManager=s,e}function r_(e,t){this.hackleUserResolver=e,this.core=t}function n_(e,t,r,n){void 0===n&&(n=null);var i=oE.call(this)||this;return i.eventDispatcher=e,i.flushInterval=r,i.queue=new uE(i.drainQueue.bind(i),t,r),i.repository=n,i}function i_(){return null!==sE&&sE.apply(this,arguments)||this}function o_(){this.listeners={}}function s_(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new aE({callback:this.flush.bind(this),timeout:r}),this.started=!1}function a_(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function u_(o,s){Rw=window.onerror,window.onerror=function(e,t,r,n,i){a.isNotNullOrUndefined(i)&&o.trackException(i,s.resolveCurrentUser()),Rw&&Rw.apply(this,arguments)}}function c_(r,n){Z0=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()),Z0&&Z0.apply(this,arguments)}}function p_(e,t){return null!==e&&e.userId===t.userId&&e.deviceId===t.deviceId}function l_(e,t,r,n){this.inAppMessage=e,this.message=t,this.user=r,this.properties=n}QI.prototype.read=function(){var r=this;return new Promise(function(e){var t=r.storage.getItem(r.storageKey);t&&e(JSON.parse(t)),e([])})},QI.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()})},QI.prototype.add=function(t){var r=this;return this.read().then(function(e){return r.save(e.concat(t).slice(-r.maxSize))})},QI.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)})},QI.prototype.clear=function(){var t=this;return new Promise(function(e){localStorage.removeItem(t.storageKey),e()})};var f_=QI,d_=(ZI.prototype.addListener=function(e){this.userListeners.push(e)},Object.defineProperty(ZI.prototype,"currentUser",{get:function(){return this._currentUser},enumerable:!1,configurable:!0}),ZI.prototype.resolveCurrentOrNull=function(e){if(void 0===e)return this.currentUser;if("string"==typeof e)return this.setUser({id:e});e=Fe(e);return e?this.setUser(e):null},ZI.prototype.setUser=function(e){return this.updateUser(e)},ZI.prototype.setUserId=function(e){e=E(E({},this._currentUser),{userId:e});return this.setUser(e)},ZI.prototype.setDeviceId=function(e){e=E(E({},this._currentUser),{deviceId:e});return this.setUser(e)},ZI.prototype.updateUserProperties=function(e){return this.operateProperties(e)},ZI.prototype.resetUser=function(){return this.setUser(this.defaultUser)},ZI.prototype.changeUser=function(t,r,n){this.userListeners.forEach(function(e){e.onUserUpdated(t,r,n)})},ZI.prototype.saveUser=function(e){this.storage.saveUser(e)},ZI.prototype.update=function(e){var t=this._currentUser,e=e(t);return this._currentUser=e,p_(t,e)||(this.changeUser(t,e,(new Date).getTime()),this.saveUser(e)),e},ZI.prototype.updateUser=function(r){return this.update(function(e){return p_(e=e,t=r)?E(E({},t),{properties:E(E({},e.properties),t.properties)}):t;var t})},ZI.prototype.operateProperties=function(r){return this.update(function(e){var t=null!=(t=null==e?void 0:e.properties)?t:{},t=r.operate(new Map(Object.entries(t)));return E(E({},e),{properties:a.fromMap(t)})})},ZI),h_=(WI.prototype.getUser=function(){var e=this.deviceId||void 0,t=this.userId||void 0;return void 0!==e||void 0!==t?{deviceId:e,userId:t}:null},WI.prototype.saveUser=function(e){this.setDeviceId(e.deviceId||null),this.setUserId(e.userId||null)},Object.defineProperty(WI.prototype,"deviceId",{get:function(){return this.storage.getItem("_hackle_did")},enumerable:!1,configurable:!0}),Object.defineProperty(WI.prototype,"userId",{get:function(){return this.storage.getItem("_hackle_uid")},enumerable:!1,configurable:!0}),WI.prototype.setDeviceId=function(e){this.setId("_hackle_did",e)},WI.prototype.setUserId=function(e){this.setId("_hackle_uid",e)},WI.prototype.setId=function(e,t){a.isNotNullOrUndefined(t)?this.storage.setItem(e,t):this.storage.removeItem(e)},WI),y_=(Object.defineProperty(XI.prototype,"currentSessionId",{get:function(){return this._currentSessionId},enumerable:!1,configurable:!0}),Object.defineProperty(XI.prototype,"sessionId",{get:function(){var e;return null!=(e=this._currentSessionId)?e:XI.EMPTY_SESSION_ID},enumerable:!1,configurable:!0}),Object.defineProperty(XI.prototype,"lastEventTime",{get:function(){return this._lastEventTime},enumerable:!1,configurable:!0}),XI.prototype.addListener=function(e){this.sessionListeners.push(e)},XI.prototype.startNewSession=function(e,t,r){return e&&this.endSession(e),this.newSession(t,r)},XI.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,e,t)},XI.prototype.updateLastEventTime=function(e){this._lastEventTime=e,this.storage.setItem("_hackle_last_event_ts","".concat(e))},XI.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)})},XI.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},XI.prototype.saveSession=function(e){this._currentSessionId=e,this.storage.setItem("_hackle_session_id",e)},XI.prototype.loadSession=function(){this._currentSessionId=this.storage.getItem("_hackle_session_id")},XI.prototype.loadLastEventTime=function(){var e=this.storage.getItem("_hackle_last_event_ts");null!==e&&0<(e=Number.parseFloat(e))&&(this._lastEventTime=e)},XI.prototype.onUserUpdated=function(e,t,r){this.endSession(e),this.newSession(t,r)},XI.EMPTY_SESSION_ID="0.ffffffff",XI),v_=($I.postfix=function(e,t){return new $I(e,function(e){return"".concat(e).concat(t)})},$I.prefix=function(e,t){return new $I(e,function(e){return"".concat(t).concat(e)})},$I.prototype.getItem=function(e){return this.delegate.getItem(this.transform(e))},$I.prototype.removeItem=function(e){this.delegate.removeItem(this.transform(e))},$I.prototype.setItem=function(e,t){this.delegate.setItem(this.transform(e),t)},$I),m_=(JI.prototype.isEqualItem=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},JI.prototype.getRemainListSize=function(){try{return this.maxLength-JSON.stringify(this.getList()).length}catch(e){return 0}},JI.prototype.isAddableItem=function(e){try{return this.getRemainListSize()>JSON.stringify(e).length}catch(e){return!1}},JI.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}},JI.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[]}},JI.prototype.entries=function(){return this.getList().flatMap(Object.entries)},JI.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){}},JI.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]},JI.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){}},JI.prototype.clear=function(){this.delegate.removeItem(this.listKey)},JI),g_=(YI.prototype.currentUser=function(){var e=this.userManager.currentUser;return this.userResolver.resolve(e)},YI.prototype.getAbTestDecisions=function(){return this.core.experiments(this.currentUser()).entries()},YI.prototype.getAbTestOverrides=function(){return this.abOverrideStorage.getAll()},YI.prototype.setAbTestOverride=function(e,t){this.abOverrideStorage.set(e,t),this.increment("AB_TEST","set")},YI.prototype.resetAbTestOverride=function(e){this.abOverrideStorage.remove(e),this.increment("AB_TEST","reset")},YI.prototype.resetAllAbTestOverride=function(){this.abOverrideStorage.clear(),this.increment("AB_TEST","reset.all")},YI.prototype.getFeatureFlagDecisions=function(){return this.core.featureFlags(this.currentUser()).entries()},YI.prototype.getFeatureFlagOverrides=function(){return this.ffOverrideStorage.getAll()},YI.prototype.setFeatureFlagOverride=function(e,t){this.ffOverrideStorage.set(e,t),this.increment("FEATURE_FLAG","set")},YI.prototype.resetFeatureFlagOverride=function(e){this.ffOverrideStorage.remove(e),this.increment("FEATURE_FLAG","reset")},YI.prototype.resetAllFeatureFlagOverride=function(){this.ffOverrideStorage.clear(),this.increment("FEATURE_FLAG","reset.all")},YI.prototype.increment=function(e,t){wn.counter("experiment.manual.override",{"experiment.type":e,operation:t}).increment()},YI),E_=(qI.serverFetch=function(e){return"".concat(e,"/api/v2/workspaces")},qI.clientFetch=function(e,t){return"".concat(e,"/api/v2/w/").concat(t,"/w")},qI.serverDispatch=function(e){return"".concat(e,"/api/v2/events")},qI.clientDispatch=function(e){return"".concat(e,"/api/v2/w/events")},qI.beaconDispatch=function(e,t){return"".concat(e,"/api/v2/w/").concat(t,"/events")},qI.inAppMessageRenderer=function(e,t){return"".concat(e,"/sdk/iam-renderer/").concat(t,"/iam-renderer.js")},qI),w_=(zI.prototype.exist=function(e,t){var e=this.key(e),r=this.storage.getItem(e);if(a.isNullOrUndefined(r))return!1;r=Number.parseInt(r,10);return!Number.isNaN(r)&&t<=r||(this.storage.removeItem(e),!1)},zI.prototype.put=function(e,t){this.storage.setItem(this.key(e),"".concat(t))},zI.prototype.key=function(e){return"".concat(e.key)},zI),T_=(KI.prototype.get=function(t){return this.handlers.find(function(e){return e.supports(t)})},KI),__=(BI.prototype.handle=function(e,t){e.close()},BI.prototype.supports=function(e){return"CLOSE"===e.type},BI),I_=(GI.prototype.handle=function(e,t){try{if(!t.value)return;this.urlHandler.open(new URL(t.value))}catch(e){he.log.error("Invalid url: ".concat(t.value))}},GI.prototype.supports=function(e){return"WEB_LINK"===e.type},GI),A_=(HI.prototype.handle=function(e,t){e.close();try{if(!t.value)return;this.urlHandler.open(new URL(t.value))}catch(e){he.log.error("Invalid url: ".concat(t.value))}},HI.prototype.supports=function(e){return"LINK_AND_CLOSE"===e.type},HI),b_=(VI.prototype.handle=function(e,t){var r=this.clock.currentMillis()+VI.HIDE_EXPIRATION;this.storage.put(e.context.inAppMessage,r),e.close()},VI.prototype.supports=function(e){return"HIDDEN"===e.type},VI.HIDE_EXPIRATION=864e5,VI),O_=(jI.prototype.track=function(e,t,r){t=this.createTrackEvent(t,e);this.core.track(t,e.user,r)},jI.prototype.createTrackEvent=function(e,t){var r;switch(e.type){case"IMPRESSION":return{key:"$in_app_impression",properties:E({in_app_message_id:t.inAppMessage.id,in_app_message_key:t.inAppMessage.key,title_text:null==(r=null==(r=t.message.text)?void 0:r.title)?void 0:r.text,body_text:null==(r=null==(r=t.message.text)?void 0:r.body)?void 0:r.text,button_text:t.message.buttons.map(function(e){return e.text}),image_url:t.message.images.map(function(e){return e.imagePath})},t.properties)};case"CLOSE":return{key:"$in_app_close",properties:{in_app_message_id:t.inAppMessage.id,in_app_message_key:t.inAppMessage.key}};case"ACTION":return{key:"$in_app_action",properties:{in_app_message_id:t.inAppMessage.id,in_app_message_key:t.inAppMessage.key,action_type:e.action.type,action_area:e.area,action_value:e.action.value,button_text:e.text}}}},jI),R_=(FI.prototype.present=function(r){return pe(this,void 0,void 0,function(){var t;return le(this,function(e){switch(e.label){case 0:if(this.currentMessageView)return[2];if(this.opening)return[2];this.opening=!0,t=null,e.label=1;case 1:return e.trys.push([1,3,4,5]),t=this.messageViewFactory.create(r,this),[4,(this.currentMessageView=t).open()];case 2:return e.sent(),[3,5];case 3:return e.sent(),null!=t&&t.close(),[3,5];case 4:return this.opening=!1,[7];case 5:return[2]}})})},FI),N_=(LI.prototype.initialize=function(){this.userEventEmitter.on("event",this.onEvent)},LI.prototype.destroy=function(){this.userEventEmitter.off("event",this.onEvent)},LI),S_=(DI.prototype.determineOrNull=function(e){var t=this.workspaceFetcher.get();if(t)for(var r=0,n=t.getInAppMessages();r<n.length;r++){var i=n[r];if(this.eventMatcher.matches(t,i,e)){i=this.context(i,e);if(i)return i}}},DI.prototype.context=function(e,t){e=this.core.tryInAppMessage(e.key,t.user);if(e.inAppMessage&&e.message)return new l_(e.inAppMessage,e.message,t.user,Ne.sanitize({decision_reason:e.reason}))},DI),C_=(UI.prototype.open=function(){return pe(this,void 0,void 0,function(){var t,r;return le(this,function(e){switch(e.label){case 0:return e.trys.push([0,3,,4]),window.addEventListener(UI.HACKLE_IAM_INTERACTION_EVENT_TYPE,this.handleInAppMessageInteraction),[4,this.scriptLoader.load()];case 1:return e.sent(),(t=this.addContainer()).style.display="none",t.classList.add("".concat(UI.CONTAINER_CLASS_NAME,"--loading")),r=window.HackleInAppMessageRenderer,this.renderer=new r.HackleInAppMessageRenderer(t),[4,this.renderer.render({messageId:this.context.inAppMessage.id,message:this.context.message.toJson()})];case 2:return e.sent(),t.classList.remove("".concat(UI.CONTAINER_CLASS_NAME,"--loading")),t.style.display="block",this.handleEvent({type:"IMPRESSION"}),[3,4];case 3:return e.sent(),this.close(),[3,4];case 4:return[2]}})})},UI.prototype.close=function(){var e;this.handleEvent({type:"CLOSE"}),window.removeEventListener(UI.HACKLE_IAM_INTERACTION_EVENT_TYPE,this.handleInAppMessageInteraction),null!=(e=this.renderer)&&e.destroy(),this.renderer=null,this.removeContainer(),this.ui.currentMessageView=null},UI.prototype.addContainer=function(){var e;return this.container||((e=document.createElement("div")).classList.add(UI.CONTAINER_CLASS_NAME),this.container=e),this.container.parentNode||document.body.appendChild(this.container),this.container},UI.prototype.removeContainer=function(){var e;this.container&&(null!=(e=this.container.parentNode)&&e.removeChild(this.container),this.container=null)},UI.prototype.handleInteraction=function(e){var t=this.ui.interactionHandlerFactory.get(e);t&&t.handle(this,e)},UI.prototype.handleEvent=function(e){this.ui.eventHandler.handle(this,e)},UI.HACKLE_IAM_INTERACTION_EVENT_TYPE="hackle-iam-interaction",UI.CONTAINER_CLASS_NAME="hackle-iam",UI),M_=(kI.prototype.create=function(e,t){return new C_(this.scriptLoader,e,t)},kI),x_=(PI.prototype.load=function(){return pe(this,void 0,void 0,function(){var t;return le(this,function(e){switch(e.label){case 0:return window.HackleInAppMessageRenderer?[2]:(t=this.createScript(),document.head.appendChild(t),[4,this.waitForLoad(t)]);case 1:return[2,e.sent()]}})})},PI.prototype.createScript=function(){var e=document.createElement("script");return e.type="text/javascript",e.async=!0,e.src=this.scriptUrl,e},PI.prototype.waitForLoad=function(o){return new Promise(function(e,t){function r(){o.removeEventListener("error",i),o.removeEventListener("load",n)}var n=function(){r(),e(o)},i=function(e){r(),t(e.message)};o.addEventListener("load",n),o.addEventListener("error",i)})},PI),P_=(xI.prototype.isTriggerTarget=function(t,r,n){var i=this;return r.eventTrigger.rules.some(function(e){return i.ruleMatches(t,n,r,e)})},xI.prototype.ruleMatches=function(e,t,r,n){if(t.event.key!==n.eventKey)return!1;e=k_.of(e,t,r);return this.targetMatcher.anyMatches(e,gE.create(),n.targets)},xI),k_=(MI.of=function(e,t,r){return new MI(new mE("IN_APP_MESSAGE",r.key),e,t.user,t)},MI),U_=(CI.prototype.isTriggerTarget=function(e,t,r){if(!t.eventTrigger.frequencyCap)return!0;var n=this.createMatchContexts(t.eventTrigger.frequencyCap);if(0===n.length)return!0;for(var i=0,o=this.storage.get(t);i<o.length;i++)for(var s=o[i],a=0,u=n;a<u.length;a++)if(u[a].matches(r,s))return!1;return!0},CI.prototype.createMatchContexts=function(e){for(var t=[],r=0,n=e.identifierCaps;r<n.length;r++){var i=n[r];t.push(new D_(new L_(i)))}return e.durationCap&&t.push(new D_(new F_(e.durationCap))),t},CI),D_=(SI.prototype.matches=function(e,t){return this.predicate.matches(e,t)&&(this.matchCount+=1),this.matchCount>=this.predicate.thresholdCount},SI),L_=(Object.defineProperty(NI.prototype,"thresholdCount",{get:function(){return this.identifierCap.count},enumerable:!1,configurable:!0}),NI.prototype.matches=function(e,t){e=e.user.identifiers[this.identifierCap.identifierType];if(a.isNullOrUndefined(e))return!1;t=t.identifiers[this.identifierCap.identifierType];return!a.isNullOrUndefined(t)&&e===t},NI),F_=(Object.defineProperty(RI.prototype,"thresholdCount",{get:function(){return this.durationCap.count},enumerable:!1,configurable:!0}),RI.prototype.matches=function(e,t){return e.timestamp-t.timestamp<=this.durationCap.durationMillis},RI),j_=(OI.prototype.get=function(e){e=this.storage.getItem(e.id.toString());return a.isNullOrUndefined(e)?[]:JSON.parse(e)},OI.prototype.set=function(e,t){this.storage.setItem(e.id.toString(),JSON.stringify(t))},OI),V_=(bI.prototype.get=function(t){return this.processors.find(function(e){return e.supports(t)})},bI),H_=(AI.prototype.process=function(e,t,r){this.saveImpression(e.context.inAppMessage,e.context.user,r)},AI.prototype.saveImpression=function(e,t,r){var n=this.impressionStorage.get(e),t={identifiers:t.identifiers,timestamp:r};n.push(t),n.length>AI.IMPRESSION_MAX_SIZE&&n.splice(0,n.length-AI.IMPRESSION_MAX_SIZE),this.impressionStorage.set(e,n)},AI.prototype.supports=function(e){return"IMPRESSION"===e.type},AI.IMPRESSION_MAX_SIZE=100,AI),G_=(II.prototype.process=function(e,t,r){},II.prototype.supports=function(e){return"CLOSE"===e.type},II),B_=(_I.prototype.process=function(e,t,r){var n=this.actionHandlerFactory.get(t.action);n&&n.handle(e,t.action)},_I.prototype.supports=function(e){return"ACTION"===e.type},_I),K_=(TI.prototype.handle=function(e,t){var r=this.clock.currentMillis(),n=(this.eventTracker.track(e.context,t,r),this.eventProcessorFactory.get(t));n&&n.process(e,t,r)},TI),z_=(wI.prototype.matches=function(e,t,r){return!!si.isTrack(r)&&!!this.ruleDeterminer.isTriggerTarget(e,t,r)&&this.frequencyCapDeterminer.isTriggerTarget(e,t,r)},wI),q_=(EI.prototype.get=function(t){return this.handlers.find(function(e){return e.supports(t)})},EI),Y_=(gI.prototype.handle=function(e,t){e.close()},gI.prototype.supports=function(e){return"CLOSE"===e.type},gI),J_=(mI.prototype.handle=function(e,t){var r=Er.fromJson(t.action);r&&(r={type:"ACTION",action:r,area:t.area,text:t.text},this.eventHandler.handle(e,r))},mI.prototype.supports=function(e){return"ACTION"===e.type},mI),$_=(vI.prototype.open=function(e){window.location.href=e.href},vI),X_={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,gclid:void 0,fbclid:void 0},W_=(yI.prototype.startNewCampaign=function(e,t,r){for(var t=E(E({},X_),t),n=new ni,i=0,o=Object.entries(t);i<o.length;i++){var s=o[i],a=s[0],s=s[1];s?n.set(a,s):n.unset(a)}var t=n.build(),u=t.toEvent(),e=this.userResolver.resolve(e);this.core.track(u,e,r),this.userManager.updateUserProperties(t)},yI.prototype.startNewCampaignIfNeeded=function(e,t){var r,n,i,o=this.storage.get(),s=this.parser.parse();r=s,null!==(o=o)&&(n=o,i=r,Object.keys(X_).every(function(e){return n[e]===i[e]}))||(this.storage.set(s),this.startNewCampaign(e,s,t))},yI.prototype.onSessionEnded=function(e,t,r){},yI.prototype.onSessionStarted=function(e,t,r){this.startNewCampaignIfNeeded(t,r)},yI),Z_=(hI.prototype.get=function(){var e=this.storage.getItem("_hackle_mkt");return e?JSON.parse(e):null},hI.prototype.set=function(e){this.storage.setItem("_hackle_mkt",JSON.stringify(e))},hI),Q_=(dI.prototype.getQueryParam=function(e){return this.getQueryParams(function(){return!0})[e]||""},dI.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&&!e(o,i)||(t[o]=decodeURIComponent(i))}return t},dI.getQueryParams=function(){return"undefined"==typeof window?{}:new dI(window.location.search).getQueryParams()},dI),eI=(fI.prototype.parse=function(){var e=Q_.getQueryParams();return{utm_campaign:e[tI],utm_content:e[rI],utm_id:e[nI],utm_medium:e[iI],utm_source:e[oI],utm_term:e[sI],gclid:e[aI],fbclid:e[uI]}},fI),tI="utm_campaign",rI="utm_content",nI="utm_id",iI="utm_medium",oI="utm_source",sI="utm_term",aI="gclid",uI="fbclid",cI=he.log,pI=null,lI={user:void 0,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",cdnUrl:"https://static.hackle.io",SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.18.0",IAM_RENDERER_VERSION_HEADER:"0.0.3"};function fI(){}function dI(e){this.search=e}function hI(e){this.storage=e}function yI(e,t,r,n,i){this.storage=e,this.parser=t,this.core=r,this.userManager=n,this.userResolver=i}function vI(){}function mI(e){this.eventHandler=e}function gI(){}function EI(e){this.handlers=e}function wI(e,t){this.ruleDeterminer=e,this.frequencyCapDeterminer=t}function TI(e,t,r){this.clock=e,this.eventTracker=t,this.eventProcessorFactory=r}function _I(e){this.actionHandlerFactory=e}function II(){}function AI(e){this.impressionStorage=e}function bI(e){this.processors=e}function OI(e){this.storage=e}function RI(e){this.durationCap=e}function NI(e){this.identifierCap=e}function SI(e){this.matchCount=0,this.predicate=e}function CI(e){this.storage=e}function MI(e,t,r,n){this.key=e,this.workspace=t,this.user=r,this.event=n}function xI(e){this.targetMatcher=e}function PI(e){this.scriptUrl=e}function kI(e){this.scriptLoader=e}function UI(e,t,r){var n=this;this.scriptLoader=e,this.context=t,this.ui=r,this.container=null,this.renderer=null,this.handleInAppMessageInteraction=function(e){e instanceof CustomEvent&&e.type===UI.HACKLE_IAM_INTERACTION_EVENT_TYPE&&(e=e.detail,n.handleInteraction(e))}}function DI(e,t,r){this.workspaceFetcher=e,this.eventMatcher=t,this.core=r}function LI(e,t,r){var n=this;this.userEventEmitter=e,this.determiner=t,this.presenter=r,this.onEvent=function(e){e=n.determiner.determineOrNull(e);e&&n.presenter.present(e)},this.initialize()}function FI(e,t,r){this.messageViewFactory=e,this.eventHandler=t,this.interactionHandlerFactory=r,this.currentMessageView=null,this.opening=!1}function jI(e){this.core=e}function VI(e,t){this.storage=e,this.clock=t}function HI(e){this.urlHandler=e}function GI(e){this.urlHandler=e}function BI(){}function KI(e){this.handlers=e}function zI(e){this.storage=e}function qI(){}function YI(e,t,r,n,i){this.core=e,this.userManager=t,this.userResolver=r,this.abOverrideStorage=n,this.ffOverrideStorage=i}function JI(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 $I(e,t){this.delegate=e,this.transform=t}function XI(e,t){this.sessionTimeoutMillis=e,this.storage=t,this.sessionListeners=[],this._currentSessionId=null,this._lastEventTime=null,this.loadSession(),this.loadLastEventTime()}function WI(e){this.storage=e}function ZI(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),this.storage=e,this.hackleDeviceId=t,this.userListeners=[],this.defaultUser={deviceId:this.hackleDeviceId},this._currentUser=null!=(e=null!=n?n:r)?e:this.defaultUser,this.storage.saveUser(this._currentUser)}function QI(e,t,r){this.storage=e,this.storageKey=t,this.maxSize=r}function eA(e,t){var i=E(E({},lI),t);if(he.initCounter(function(e){return wn.counter("log",{level:e})}),i.log_disabled?he.setLogLevel(de.DISABLE):i.debug&&he.setLogLevel(de.DEBUG),cI.debug("sdkKey : "+e),e||cI.error("SDK Key must not be null"),pI)return cI.debug("use already exists hackleClient"),pI;function r(){l.drainRepository()}var t=!1,n=("undefined"!=typeof window&&(t=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&cI.debug("support sendBeacon API"),-1),n=(void 0!==i.pollingIntervalMillis&&"number"==typeof i.pollingIntervalMillis&&0<i.pollingIntervalMillis&&(n=Math.max(i.pollingIntervalMillis,3e4)),new Mi(e,Ae,{fetchUrl:E_.clientFetch(i.sdkUrl,e),updateInterval:n,headers:((n={})[ve]=i.SDK_NAME_HEADER,n["X-HACKLE-SDK-VERSION"]=i.SDK_VERSION_HEADER,n)})),o=new h_(v_.postfix(Ui,"_".concat(e))),s=o.getUser(),a=i.user||null,o=new d_(o,qi(),s,a),u=new y_(i.sessionTimeoutMillis,v_.postfix(Ui,"_".concat(e.slice(8)))),a=(o.addListener(u),new f_(window.localStorage,"".concat("hackle-repository-storage","_").concat(e),100)),c=new Si(e,Ae,{dispatchUrl:E_.clientDispatch(i.eventUrl),beaconDispatchUrl:E_.beaconDispatch(i.eventUrl,e),useBeacon:t,headers:((c={})[ve]=i.SDK_NAME_HEADER,c["X-HACKLE-SDK-VERSION"]=i.SDK_VERSION_HEADER,c)}),p=-1,p=(void 0!==i.exposureEventDedupIntervalMillis&&"number"==typeof i.exposureEventDedupIntervalMillis&&-1!==i.exposureEventDedupIntervalMillis&&(p=i.exposureEventDedupIntervalMillis<1e3||36e5<i.exposureEventDedupIntervalMillis?(cI.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):i.exposureEventDedupIntervalMillis),new lE(p)),l=new pE(c,100,500,a,p,u,o),c=new IE(new m_(Ui,"".concat("hackle-manual-override_ab","_").concat(e.slice(0,8)))),a=new IE(new m_(Ui,"".concat("hackle-manual-override_ff","_").concat(e.slice(0,8)))),p=new w_(v_.prefix(window.localStorage,"".concat("hackle-iam-hide","_").concat(e.slice(0,8),"_"))),f=new j_(v_.prefix(window.localStorage,"".concat("hackle-iam-impression","_").concat(e.slice(0,8),"_"))),d=Aw.create(n,l,[c,a],p),h=new Di(o),y=new W_(new Z_(v_.postfix(Ui,"_".concat(e.slice(0,8)))),new eI,d,o,h),v=new cE(h,d),v=(u.addListener(y),u.addListener(v),new O_(d)),m=new $_,m=new T_([new __,new I_(m),new A_(m),new b_(p,Me.instance)]),p=new V_([new H_(f),new B_(m),new G_]),m=new K_(Me.instance,v,p),v=new q_([new Y_,new J_(m)]),p=new x_(E_.inAppMessageRenderer(i.cdnUrl,i.IAM_RENDERER_VERSION_HEADER)),p=new R_(new M_(p),m,v),m=new z_(new P_(gw.get("targetMatcher")),new U_(f)),v=new S_(n,m,d),f=(new N_(l,v,p),new g_(d,o,h,c,a)),v=(null==(n=i.devTool)?void 0:n.userExplorer)&&"function"==typeof(null==(m=i.devTool)?void 0:m.userExplorer),p=i.devTool&&v?{manager:i.devTool,userExplorer:f}:void 0,g=new oi(d,h,u,o,p),a=(pI=g,i.autoOpenDevTool&&(i.devTool?g.showUserExplorer():cI.error("DevTool is not provided")),new Tn(i.monitoringUrl,6e4,Ae,((c={})[ve]=i.SDK_NAME_HEADER,c["X-HACKLE-SDK-VERSION"]=i.SDK_VERSION_HEADER,c["X-HACKLE-SDK-KEY"]=e,c),t));return document.addEventListener("visibilitychange",function(){document.hidden||r()}),window.addEventListener("pageshow",r),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){Ji(),u.updateLastEventTime((new Date).getTime()),g.close(),wn.globalRegistry.close()}),wn.addRegistry(a),n=Date.now(),m=o.currentUser,v=u.currentSessionId,(p_(s,m)?u.startNewSessionIfNeeded(m,n):u.startNewSession(s,m,n))===v&&y.startNewCampaignIfNeeded(m,n),g.onReady(function(){(new Ow).install(d,h);var t,r,e=g;if(i.auto_track_page_view){e.trackPageView();try{history.pushState=(r=history.pushState,function(){try{var e=r.apply(this,arguments);return window.dispatchEvent(n("locationchange")),e}catch(e){if(e instanceof Error)cI.error(e);else try{cI.error(e)}catch(e){}}}),history.replaceState=(t=history.replaceState,function(){try{var e=t.apply(this,arguments);return window.dispatchEvent(n("locationchange")),e}catch(e){if(e instanceof Error)cI.error(e);else try{cI.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(n("locationchange"))}catch(e){if(e instanceof Error)cI.error(e);else try{cI.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{e.trackPageView()}catch(e){if(e instanceof Error)cI.error(e);else try{cI.error(e)}catch(e){}}})}catch(e){if(e instanceof Error)cI.error(e);else try{cI.error(e)}catch(e){}}}function n(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}}),g}var N={createInstance:eA,getUserId:qi,setUserId:Yi,removeUserId:Ji,Logger:he},tA=(p.Bucket=t.Bucket=qe,p.Container=t.Container=it,p.ContainerGroup=t.ContainerGroup=ot,p.CoreVersion=t.CoreVersion=Dt,p.Decision=t.Decision=He,p.DecisionReason=t.DecisionReason=s,p.EmptyHackleRemoteConfig=t.EmptyHackleRemoteConfig=oe,p.EmptyParameterConfig=t.EmptyParameterConfig=Be,p.EventType=t.EventType=Je,p.Experiment=t.Experiment=Ke,p.FeatureFlagDecision=t.FeatureFlagDecision=Ge,p.IAM_ACTION_AREA=t.IAM_ACTION_AREA=["BUTTON","IMAGE","X_BUTTON"],p.IAM_ACTION_TYPE=t.IAM_ACTION_TYPE=Zt,p.IAM_BEHAVIOR=t.IAM_BEHAVIOR=Wt,p.IAM_DISPLAY_TYPE=t.IAM_DISPLAY_TYPE=Jt,p.IAM_LAYOUT_TYPE=t.IAM_LAYOUT_TYPE=$t,p.IAM_ORIENTATION=t.IAM_ORIENTATION=Xt,p.IAM_PLATFORM_TYPE=t.IAM_PLATFORM_TYPE=qt,p.IAM_STATUS=t.IAM_STATUS=zt,p.IAM_TIMEUNIT=t.IAM_TIMEUNIT=Yt,p.IdentifierType=t.IdentifierType=$e,p.IdentifiersBuilder=t.IdentifiersBuilder=Xe,p.InAppMessage=t.InAppMessage=Qt,p.InAppMessageAction=t.InAppMessageAction=Er,p.InAppMessageBackground=t.InAppMessageBackground=gr,p.InAppMessageButton=t.InAppMessageButton=vr,p.InAppMessageButtonStyle=t.InAppMessageButtonStyle=mr,p.InAppMessageContext=t.InAppMessageContext=cr,p.InAppMessageContextLayout=t.InAppMessageContextLayout=lr,p.InAppMessageContextMessage=t.InAppMessageContextMessage=pr,p.InAppMessageDecision=t.InAppMessageDecision=Ve,p.InAppMessageDurationCap=t.InAppMessageDurationCap=sr,p.InAppMessageEventFrequencyCap=t.InAppMessageEventFrequencyCap=ir,p.InAppMessageEventTrigger=t.InAppMessageEventTrigger=rr,p.InAppMessageEventTriggerRule=t.InAppMessageEventTriggerRule=nr,p.InAppMessageIdentifierCap=t.InAppMessageIdentifierCap=or,p.InAppMessageImage=t.InAppMessageImage=fr,p.InAppMessagePeriodAlways=t.InAppMessagePeriodAlways=er,p.InAppMessagePeriodCustom=t.InAppMessagePeriodCustom=tr,p.InAppMessageTargetContext=t.InAppMessageTargetContext=ar,p.InAppMessageText=t.InAppMessageText=dr,p.InAppMessageTextAttribute=t.InAppMessageTextAttribute=hr,p.InAppMessageTextStyle=t.InAppMessageTextStyle=yr,p.InAppMessageUserOverride=t.InAppMessageUserOverride=ur,p.Logger=t.Logger=he,p.MATCH_OPERATORS=t.MATCH_OPERATORS=Vt,p.MATCH_TYPES=t.MATCH_TYPES=Ft,p.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=jt,p.MetaVersion=t.MetaVersion=Lt,p.ParameterConfiguration=t.ParameterConfiguration=st,p.PropertyOperations=t.PropertyOperations=ii,p.PropertyOperationsBuilder=t.PropertyOperationsBuilder=ni,p.RemoteConfigDecision=t.RemoteConfigDecision=je,p.RemoteConfigParameter=t.RemoteConfigParameter=at,p.RemoteConfigParameterValue=t.RemoteConfigParameterValue=ct,p.RemoteConfigTargetRule=t.RemoteConfigTargetRule=ut,p.SEGMENT_TYPES=t.SEGMENT_TYPES=Bt,p.Segment=t.Segment=nt,p.Slot=t.Slot=Ye,p.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=Ht,p.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=Gt,p.Target=t.Target=We,p.TargetAction=t.TargetAction=tt,p.TargetCondition=t.TargetCondition=Ze,p.TargetKey=t.TargetKey=Qe,p.TargetMatch=t.TargetMatch=et,p.TargetRule=t.TargetRule=rt,p.TargetingType=t.TargetingType=Kt,p.Variation=t.Variation=ze,p.Version=t.Version=Ut,se=t.createInstance=eA,t.default=N,p.getUserId=t.getUserId=qi,p.removeUserId=t.removeUserId=Ji,p.sanitizeUser=t.sanitizeUser=Fe,p.setUserId=t.setUserId=Yi,function(e,t){return(tA=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 rA=function(){return(rA=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 nA(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}iA.prototype.on=function(e,t){this.listeners[e]=(this.listeners[e]||[]).concat(t)},iA.prototype.off=function(e,t){this.listeners[e]=(this.listeners[e]||[]).filter(function(e){return e!==t})},iA.prototype.emit=function(e,t){(this.listeners[e]||[]).forEach(function(e){e(t)})};M=iA;function iA(){this.listeners={}}sA.arePropertiesEqual=function(e,t){var r=sA.coerceUnknownToProperties(e),n=sA.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]})},sA.coerceUnknownToProperties=function(e){return"object"==typeof e&&null!==e?e:{}};var oA=sA;function sA(){}uA.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)&&oA.arePropertiesEqual(null==e?void 0:e.properties,null==t?void 0:t.properties)&&oA.arePropertiesEqual(null==e?void 0:e.identifiers,null==t?void 0:t.identifiers)};var aA=uA;function uA(){}var cA=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,rA(rA({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.18.0"})),null!=t&&t.devTool&&null!=t&&t.autoOpenDevTool&&"undefined"!=typeof window&&r.showUserExplorer(),r}return tA(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.updateUserProperties=function(e){this.client.updateUserProperties(e),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(rA(rA({},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){aA.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}(M);var k={exports:{}},b={},pA=Object.getOwnPropertySymbols,lA=Object.prototype.hasOwnProperty,fA=Object.prototype.propertyIsEnumerable;var ts=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]))lA.call(r,o)&&(n[o]=r[o]);if(pA)for(var s=pA(r),a=0;a<s.length;a++)fA.call(r,s[a])&&(n[s[a]]=r[s[a]])}return n},dA=ts,o="function"==typeof Symbol&&Symbol.for,hA=o?Symbol.for("react.element"):60103,yA=o?Symbol.for("react.portal"):60106,tp=o?Symbol.for("react.fragment"):60107,vA=o?Symbol.for("react.strict_mode"):60108,Mo=o?Symbol.for("react.profiler"):60114,mA=o?Symbol.for("react.provider"):60109,gA=o?Symbol.for("react.context"):60110,EA=o?Symbol.for("react.forward_ref"):60112,ho=o?Symbol.for("react.suspense"):60113,wA=o?Symbol.for("react.memo"):60115,TA=o?Symbol.for("react.lazy"):60116,_A="function"==typeof Symbol&&Symbol.iterator;function IA(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 AA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bA={};function OA(e,t,r){this.props=e,this.context=t,this.refs=bA,this.updater=r||AA}function RA(){}function NA(e,t,r){this.props=e,this.context=t,this.refs=bA,this.updater=r||AA}OA.prototype.isReactComponent={},OA.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(IA(85));this.updater.enqueueSetState(this,e,t,"setState")},OA.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},RA.prototype=OA.prototype;var If=NA.prototype=new RA,SA=(If.constructor=NA,dA(If,OA.prototype),If.isPureReactComponent=!0,{current:null}),CA=Object.prototype.hasOwnProperty,MA={key:!0,ref:!0,__self:!0,__source:!0};function xA(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)CA.call(t,n)&&!MA.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:hA,type:e,key:o,ref:s,props:i,_owner:SA.current}}function PA(e){return"object"==typeof e&&null!==e&&e.$$typeof===hA}var kA=/\/+/g,UA=[];function DA(e,t,r,n){var i;return UA.length?((i=UA.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 LA(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,UA.length<10&&UA.push(e)}function FA(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 hA:case yA:o=!0}}if(o)return n(i,t,""===r?"."+jA(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+jA(a=t[s],s);o+=e(a,u,n,i)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=_A&&t[_A]||t["@@iterator"])?u:null))for(t=u.call(t),s=0;!(a=t.next()).done;)o+=e(a=a.value,u=r+jA(a,s++),n,i);else if("object"===a)throw n=""+t,Error(IA(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return o}(e,"",t,r)}function jA(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 VA(e,t){e.func.call(e.context,t,e.count++)}function HA(e,t,r){var n=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?GA(e,n,r,function(e){return e}):null!=e&&(PA(e)&&(t=i+(!(i=e).key||t&&t.key===e.key?"":(""+e.key).replace(kA,"$&/")+"/")+r,e={$$typeof:hA,type:i.type,key:t,ref:i.ref,props:i.props,_owner:i._owner}),n.push(e))}function GA(e,t,r,n,i){var o="";FA(e,HA,t=DA(t,o=null!=r?(""+r).replace(kA,"$&/")+"/":o,n,i)),LA(t)}var BA={current:null};function KA(){var e=BA.current;if(null===e)throw Error(IA(321));return e}var zA,qA,YA,ha={ReactCurrentDispatcher:BA,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:SA,IsSomeRendererActing:{current:!1},assign:dA},v=(b.Children={map:function(e,t,r){if(null==e)return e;var n=[];return GA(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;FA(e,VA,t=DA(null,null,t,r)),LA(t)},count:function(e){return FA(e,function(){return null},null)},toArray:function(e){var t=[];return GA(e,t,null,function(e){return e}),t},only:function(e){if(PA(e))return e;throw Error(IA(143))}},b.Component=OA,b.Fragment=tp,b.Profiler=Mo,b.PureComponent=NA,b.StrictMode=vA,b.Suspense=ho,b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ha,b.cloneElement=function(e,t,r){if(null==e)throw Error(IA(267,e));var n=dA({},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=SA.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)CA.call(t,a)&&!MA.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:hA,type:e.type,key:i,ref:o,props:n,_owner:s}},b.createContext=function(e,t){return(e={$$typeof:gA,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:mA,_context:e},e.Consumer=e},b.createElement=xA,b.createFactory=function(e){var t=xA.bind(null,e);return t.type=e,t},b.createRef=function(){return{current:null}},b.forwardRef=function(e){return{$$typeof:EA,render:e}},b.isValidElement=PA,b.lazy=function(e){return{$$typeof:TA,_ctor:e,_status:-1,_result:null}},b.memo=function(e,t){return{$$typeof:wA,type:e,compare:void 0===t?null:t}},b.useCallback=function(e,t){return KA().useCallback(e,t)},b.useContext=function(e,t){return KA().useContext(e,t)},b.useDebugValue=function(){},b.useEffect=function(e,t){return KA().useEffect(e,t)},b.useImperativeHandle=function(e,t,r){return KA().useImperativeHandle(e,t,r)},b.useLayoutEffect=function(e,t){return KA().useLayoutEffect(e,t)},b.useMemo=function(e,t){return KA().useMemo(e,t)},b.useReducer=function(e,t,r){return KA().useReducer(e,t,r)},b.useRef=function(e){return KA().useRef(e)},b.useState=function(e){return KA().useState(e)},b.version="16.14.0",{}),yp=Function.call.bind(Object.prototype.hasOwnProperty),JA=function(){};function $A(e,t,r,n,i){if("production"!==production)for(var o in e)if(YA(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,zA)}catch(e){s=e}!s||s instanceof Error||JA((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 qA)&&(qA[s.message]=!0,o=i?i():"",JA("Failed "+r+" type: "+s.message+(null!=o?o:"")))}}if("production"!==production&&(zA="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",qA={},YA=yp,JA=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),$A.resetWarningCache=function(){"production"!==production&&(qA={})},"production"!==production){var XA=ts,WA=$A,P="function"==typeof Symbol&&Symbol.for,ZA=P?Symbol.for("react.element"):60103,QA=P?Symbol.for("react.portal"):60106,eb=P?Symbol.for("react.fragment"):60107,tb=P?Symbol.for("react.strict_mode"):60108,rb=P?Symbol.for("react.profiler"):60114,nb=P?Symbol.for("react.provider"):60109,ib=P?Symbol.for("react.context"):60110,ob=P?Symbol.for("react.concurrent_mode"):60111,sb=P?Symbol.for("react.forward_ref"):60112,ab=P?Symbol.for("react.suspense"):60113,ub=P?Symbol.for("react.suspense_list"):60120,cb=P?Symbol.for("react.memo"):60115,pb=P?Symbol.for("react.lazy"):60116,lb=P?Symbol.for("react.block"):60121,fb=P?Symbol.for("react.fundamental"):60117,db=P?Symbol.for("react.responder"):60118,hb=P?Symbol.for("react.scope"):60119,yb="function"==typeof Symbol&&Symbol.iterator,vb="@@iterator";function mb(e){if(null===e||"object"!=typeof e)return null;e=yb&&e[yb]||e[vb];return"function"==typeof e?e:null}var gb={current:null},Eb={current:null},wb=/^(.*)[\\\/]/,Tb=1;function _b(e){if(null==e)return null;if("number"==typeof e.tag&&U("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 eb:return"Fragment";case QA:return"Portal";case rb:return"Profiler";case tb:return"StrictMode";case ab:return"Suspense";case ub:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ib:return"Context.Consumer";case nb:return"Context.Provider";case sb:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case cb:return _b(e.type);case lb:return _b(e.render);case pb:r=(t=e)._status===Tb?t._result:null;if(r)return _b(r)}var t,r;return null}var Ib={},Ab=null;function bb(e){Ab=e}Ib.getCurrentStack=null,Ib.getStackAddendum=function(){var e,t,r,n,i,o="",s=(Ab&&(e=_b(Ab.type),r=Ab._owner,o+=(e=e,t=Ab._source,r=r&&_b(r.type),i="",t?(n=(s=t.fileName).replace(wb,""),i=" (at "+(n=/^index\./.test(n)&&(s=s.match(wb))&&(s=s[1])?s.replace(wb,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(i=" (created by "+r+")"),"\n in "+(e||"Unknown")+i)),Ib.getCurrentStack);return s&&(o+=s()||""),o};var Ob={ReactCurrentDispatcher:gb,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Eb,IsSomeRendererActing:{current:!1},assign:XA};function Rb(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];Nb("warn",e,r)}function U(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];Nb("error",e,r)}function Nb(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=Ob.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){}}XA(Ob,{ReactDebugCurrentFrame:Ib,ReactComponentTreeHook:{}});var Sb={};function Cb(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;Sb[r]||(U("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),Sb[r]=!0)}var Mb={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){Cb(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){Cb(e,"replaceState")},enqueueSetState:function(e,t,r,n){Cb(e,"setState")}},xb={};function Pb(e,t,r){this.props=e,this.context=t,this.refs=xb,this.updater=r||Mb}Object.freeze(xb),Pb.prototype.isReactComponent={},Pb.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")},Pb.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var kb,Ub={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(kb in Ub)Ub.hasOwnProperty(kb)&&!function(e,t){Object.defineProperty(Pb.prototype,e,{get:function(){Rb("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(kb,Ub[kb]);function Db(){}function Lb(e,t,r){this.props=e,this.context=t,this.refs=xb,this.updater=r||Mb}Db.prototype=Pb.prototype,(P=Lb.prototype=new Db).constructor=Lb,XA(P,Pb.prototype),P.isPureReactComponent=!0;var Fb,jb,Vb=Object.prototype.hasOwnProperty,Hb={key:!0,ref:!0,__self:!0,__source:!0};function Gb(e){if(Vb.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function Bb(e){if(Vb.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var Kb={},zb=function(e,t,r,n,i,o,s){e={$$typeof:ZA,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 qb(e,t,r){var n,i={},o=null,s=null,a=null,u=null;if(null!=t)for(n in Gb(t)&&(s=t.ref,"string"==typeof(c=t).ref&&Eb.current&&c.__self&&Eb.current.stateNode!==c.__self&&(l=_b(Eb.current.type),Kb[l]||(U('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',_b(Eb.current.type),c.ref),Kb[l]=!0))),Bb(t)&&(o=""+t.key),a=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)Vb.call(t,n)&&!Hb.hasOwnProperty(n)&&(i[n]=t[n]);var c,p,l,f,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(){jb||(jb=!0,U("%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)",p))}function g(){Fb||(Fb=!0,U("%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)",f))}return(o||s)&&(c="function"==typeof e?e.displayName||e.name||"Unknown":e,o&&(l=i,f=c,g.isReactWarning=!0,Object.defineProperty(l,"key",{get:g,configurable:!0})),s&&(r=i,p=c,m.isReactWarning=!0,Object.defineProperty(r,"ref",{get:m,configurable:!0}))),zb(e,o,s,a,u,Eb.current,i)}function Yb(e){return"object"==typeof e&&null!==e&&e.$$typeof===ZA}var Jb=".",$b=":",Xb=!1,Wb=/\/+/g;function Zb(e){return(""+e).replace(Wb,"$&/")}var Qb=10,e1=[];function t1(e,t,r,n){var i;return e1.length?((i=e1.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 r1(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,e1.length<Qb&&e1.push(e)}function n1(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 ZA:case QA:a=!0}}if(a)return n(i,t,""===r?Jb+i1(t,0):r),1;var u=0,c=""===r?Jb:r+$b;if(Array.isArray(t))for(var p=0;p<t.length;p++)u+=e(o=t[p],c+i1(o,p),n,i);else if("function"==typeof(r=mb(t))){r===t.entries&&(Xb||Rb("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."),Xb=!0);for(var l,f=r.call(t),d=0;!(l=f.next()).done;)u+=e(o=l.value,c+i1(o,d++),n,i)}else if("object"==s)throw r="",r=" If you meant to render a collection of children, use an array instead."+Ib.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 i1(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 o1(e,t,r){var n=e.func,i=e.context;n.call(i,t,e.count++)}function s1(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)?a1(o,n,r,function(e){return e}):null!=o&&(Yb(o)&&(e=i+(!(s=o).key||t&&t.key===o.key?"":Zb(o.key)+"/")+r,o=zb(s.type,e,s.ref,s._self,s._source,s._owner,s.props)),n.push(o))}function a1(e,t,r,n,i){var o="",t=t1(t,o=null!=r?Zb(r)+"/":o,n,i);n1(e,s1,t),r1(t)}function u1(e){return"string"==typeof e||"function"==typeof e||e===eb||e===ob||e===rb||e===tb||e===ab||e===ub||"object"==typeof e&&null!==e&&(e.$$typeof===pb||e.$$typeof===cb||e.$$typeof===nb||e.$$typeof===ib||e.$$typeof===sb||e.$$typeof===fb||e.$$typeof===db||e.$$typeof===hb||e.$$typeof===lb)}function c1(){var e=gb.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 p1(){if(Eb.current){var e=_b(Eb.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var l1=!1,f1={};function d1(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=p1())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),f1[t=r]||(f1[t]=!0,r="",e&&e._owner&&e._owner!==Eb.current&&(r=" It was passed a child from "+_b(e._owner.type)+"."),bb(e),U('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),bb(null)))}function h1(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];Yb(n)&&d1(n,t)}else if(Yb(e))e._store&&(e._store.validated=!0);else if(e){var i=mb(e);if("function"==typeof i&&i!==e.entries)for(var o,s=i.call(e);!(o=s.next()).done;)Yb(o.value)&&d1(o.value,t)}}function y1(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=_b(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==sb&&t.$$typeof!==cb)return;r=t.propTypes}r?(bb(e),WA(r,e.props,"prop",n,Ib.getStackAddendum),bb(null)):void 0===t.PropTypes||l1||(l1=!0,U("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||U("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function v1(e,t,r){var n,i=u1(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+".":"")||p1(),null===e?s="null":Array.isArray(e)?s="array":void 0!==e&&e.$$typeof===ZA?(s="<"+(_b(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,U("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)),qb.apply(this,arguments));if(null==t)return t;if(i)for(var o=2;o<arguments.length;o++)h1(arguments[o],e);if(e===eb){var s=t;bb(s);for(var a=Object.keys(s.props),u=0;u<a.length;u++){var c=a[u];if("children"!==c&&"key"!==c){U("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==s.ref&&U("Invalid attribute `ref` supplied to `React.Fragment`."),bb(null)}else y1(t);return t}var m1=!1;try{var g1=Object.freeze({}),E1=new Map([[g1,null]]),w1=new Set([g1]);E1.set(0,0),w1.add(0)}catch(e){}function T1(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=XA({},e.props),s=e.key,a=e.ref,u=e._self,c=e._source,p=e._owner;if(null!=t)for(n in Gb(t)&&(a=t.ref,p=Eb.current),Bb(t)&&(s=""+t.key),e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)Vb.call(t,n)&&!Hb.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==i?o[n]=i[n]:o[n]=t[n]);var l=arguments.length-2;if(1==l)o.children=r;else if(1<l){for(var f=Array(l),d=0;d<l;d++)f[d]=arguments[d+2];o.children=f}return zb(e.type,s,a,u,c,p,o)}.apply(this,arguments),i=2;i<arguments.length;i++)h1(arguments[i],n.type);return y1(n),n}function _1(e){var t=v1.bind(null,e);return t.type=e,m1||(m1=!0,Rb("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 Rb("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}P=v1,v.Children={map:function(e,t,r){if(null==e)return e;var n=[];return a1(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=t1(null,null,t,r),n1(e,o1,t),r1(t)},count:function(e){return n1(e,function(){return null},null)},toArray:function(e){var t=[];return a1(e,t,null,function(e){return e}),t},only:function(e){if(Yb(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},v.Component=Pb,v.Fragment=eb,v.Profiler=rb,v.PureComponent=Lb,v.StrictMode=tb,v.Suspense=ab,v.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ob,v.cloneElement=T1,v.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&U("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:ib,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:nb,_context:r}),i=!1,t={$$typeof:ib,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return i||(i=!0,U("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,U("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},v.createElement=P,v.createFactory=_1,v.createRef=function(){var e={current:null};return Object.seal(e),e},v.forwardRef=function(e){return null!=e&&e.$$typeof===cb?U("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?U("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&U("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||U("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:sb,render:e}},v.isValidElement=Yb,v.lazy=function(e){var t,r,n={$$typeof:pb,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){U("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){U("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},v.memo=function(e,t){return u1(e)||U("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:cb,type:e,compare:void 0===t?null:t}},v.useCallback=function(e,t){return c1().useCallback(e,t)},v.useContext=function(e,t){var r,n=c1();return void 0!==t&&U("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?U("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&&U("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},v.useDebugValue=function(e,t){return c1().useDebugValue(e,t)},v.useEffect=function(e,t){return c1().useEffect(e,t)},v.useImperativeHandle=function(e,t,r){return c1().useImperativeHandle(e,t,r)},v.useLayoutEffect=function(e,t){return c1().useLayoutEffect(e,t)},v.useMemo=function(e,t){return c1().useMemo(e,t)},v.useReducer=function(e,t,r){return c1().useReducer(e,t,r)},v.useRef=function(e){return c1().useRef(e)},v.useState=function(e){return c1().useState(e)},v.version="16.14.0"}"production"===production?k.exports=b:k.exports=v;var I1=k.exports,A1=k.exports.createContext({hackle:void 0,userVersion:0,initialized:!1}),Co=A1.Consumer,b1=A1.Provider;var O1=p.Logger.log;function R1(e,t){e=N1(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function N1(e,t){void 0===t&&(t="A");var r=k.exports.useContext(A1),n=r.hackle,i=r.userVersion,o=r.initialized,s=k.exports.useCallback(function(){return o?(null==n?void 0:n.variationDetail(e))||p.Decision.of(t,p.DecisionReason.EXCEPTION):p.Decision.of(t,p.DecisionReason.SDK_NOT_READY)},[t,e,n,o]),r=nA(k.exports.useState(function(){return n?s():(O1.error("HackleClient is not existed"),p.Decision.of(t,p.DecisionReason.EXCEPTION))}),2),a=r[0],r=r[1],i={key:e,userVersion:i,initialized:o},u=nA(k.exports.useState(i),2),c=u[0],u=u[1];return M1(c,i)||(u(i),r(s())),{isLoading:!o,decision:a}}function S1(e){e=C1(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function C1(e){var t=k.exports.useContext(A1),r=t.hackle,n=t.userVersion,i=t.initialized,o=k.exports.useCallback(function(){return i?(null==r?void 0:r.featureFlagDetail(e))||p.FeatureFlagDecision.off(p.DecisionReason.EXCEPTION):p.FeatureFlagDecision.off(p.DecisionReason.SDK_NOT_READY)},[e,r,i]),t=nA(k.exports.useState(function(){return r?o():(O1.error("HackleClient is not existed"),p.FeatureFlagDecision.off(p.DecisionReason.EXCEPTION))}),2),s=t[0],t=t[1],n={key:e,userVersion:n,initialized:i},a=nA(k.exports.useState(n),2),u=a[0],a=a[1];return M1(u,n)||(a(n),t(o())),{isLoading:!i,decision:s}}function M1(e,t){return e.initialized===t.initialized&&e.key===t.key&&e.userVersion===t.userVersion}function x1(e){var t,r=e.experimentKey,e=e.children,n=(r=R1(r)).isLoading,i=r.variation;return n?null:e&&"function"==typeof e?e(i):(k.exports.Children.forEach(e,function(e){k.exports.isValidElement(e)&&(e.props.variation?i===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?k.exports.cloneElement(t,{variation:i}):null)}function P1(e){return e.variation,e=e.children,k.exports.createElement(k.exports.Fragment,null,e)}function k1(e){var t=(r=S1(e.featureKey)).isLoading,r=r.isOn;return t?null:I1.createElement(I1.Fragment,null,e.children(r))}p.HackleContext=A1,p.HackleContextConsumer=Co,p.HackleContextProvider=b1,p.HackleExperiment=x1,p.HackleFeature=k1,p.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=nA(k.exports.useState({hackle:t,initialized:!1,userVersion:0}),2),s=o[0],a=o[1];return k.exports.useEffect(function(){null!=r&&t.setUser(r)},[r]),k.exports.useEffect(function(){function e(){a(function(e){return rA(rA({},e),{userVersion:e.userVersion+1})})}return t.on("user-updated",e),function(){t.off("user-updated",e)}},[t]),k.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){a(function(e){return rA(rA({},e),{initialized:!0})})},function(){a(function(e){return rA(rA({},e),{initialized:!0})})}).catch(function(){a(function(e){return rA(rA({},e),{initialized:!0})})})},[t]),i||s.initialized?I1.createElement(b1,{value:s},e):null},p.HackleVariation=P1,p.createInstance=function(e,t){return new cA(e,t)},p.useFeature=function(e){var t=(n=k.exports.useContext(A1)).hackle,r=n.userVersion,n=n.initialized,i=k.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e))||!1},[e,t,n]),o=(s=nA(k.exports.useState(function(){return t?i():("undefined"!=typeof window&&O1.error("HackleClient is not existed"),!1)}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=nA(k.exports.useState(r),2))[0],n=n[1];return M1(a,r)||(n(r),s(i())),o},p.useFeatureFlagDetail=function(e){var t=(n=k.exports.useContext(A1)).hackle,r=n.userVersion,n=n.initialized,i=k.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e))||p.FeatureFlagDecision.off(p.DecisionReason.EXCEPTION)},[e,t,n]),o=(s=nA(k.exports.useState(function(){return t?i():("undefined"!=typeof window&&O1.error("HackleClient is not existed"),p.FeatureFlagDecision.off(p.DecisionReason.EXCEPTION))}),2))[0],s=s[1],r={key:e,userVersion:r,initialized:n},a=(n=nA(k.exports.useState(r),2))[0],n=n[1];return M1(a,r)||(n(r),s(i())),o},p.useLoadableFeature=S1,p.useLoadableFeatureDetail=C1,p.useLoadableRemoteConfig=function(){var e=(o=k.exports.useContext(A1)).hackle,t=o.userVersion,r=o.initialized,n=k.exports.useCallback(function(){return r&&(null==e?void 0:e.remoteConfig())||new p.EmptyHackleRemoteConfig},[e,r]),i=(o=nA(k.exports.useState(function(){return e||O1.error("HackleClient is not existed"),n()}),2))[0],o=o[1],t={userVersion:t,initialized:r},s=(a=nA(k.exports.useState(t),2))[0],a=a[1];return M1(s,t)||(a(t),o(n())),{isLoading:!r,remoteConfig:i}},p.useLoadableVariation=R1,p.useLoadableVariationDetail=N1,p.useRemoteConfig=function(){var e=(r=k.exports.useContext(A1)).hackle,t=r.userVersion,r=r.initialized,n=k.exports.useCallback(function(){return(null==e?void 0:e.remoteConfig())||new p.EmptyHackleRemoteConfig},[e,r]),i=(o=nA(k.exports.useState(function(){return e||O1.error("HackleClient is not existed"),n()}),2))[0],o=o[1],t={userVersion:t,initialized:r},s=(r=nA(k.exports.useState(t),2))[0],r=r[1];return M1(s,t)||(r(t),o(n())),i},p.useTrack=function(){var t=k.exports.useContext(A1).hackle;return t?function(e){return null==t?void 0:t.track(e)}:(O1.error("HackleClient is not existed"),function(){})},p.useVariation=function(e,t){void 0===t&&(t="A");var r=(a=k.exports.useContext(A1)).hackle,n=a.userVersion,i=a.initialized,o=k.exports.useCallback(function(){return i&&(null==r?void 0:r.variation(e))||t},[t,e,r,i]),s=(a=nA(k.exports.useState(function(){return r?o():("undefined"!=typeof window&&O1.error("HackleClient is not existed"),t)}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:i},u=(c=nA(k.exports.useState(n),2))[0],c=c[1];return M1(u,n)||(c(n),a(o())),s},p.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(i=k.exports.useContext(A1)).hackle,n=i.userVersion,i=i.initialized,o=k.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e))||p.Decision.of(t,p.DecisionReason.EXCEPTION)},[t,e,r,i]),s=(a=nA(k.exports.useState(function(){return r?o():("undefined"!=typeof window&&O1.error("HackleClient is not existed"),p.Decision.of(t,p.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,userVersion:n,initialized:i},u=(i=nA(k.exports.useState(n),2))[0],i=i[1];return M1(u,n)||(i(n),a(o())),s},Object.defineProperty(p,"__esModule",{value:!0})});
|