@hackler/react-sdk 11.7.0 → 11.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/config.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export declare const SDK_NAME_HEADER = "react-sdk";
2
- export declare const SDK_VERSION_HEADER = "11.7.0";
2
+ export declare const SDK_VERSION_HEADER = "11.7.3";
3
3
  //# sourceMappingURL=config.d.ts.map
package/lib/index.es.js CHANGED
@@ -48,7 +48,7 @@ function __read(o, n) {
48
48
  }
49
49
 
50
50
  var SDK_NAME_HEADER = "react-sdk";
51
- var SDK_VERSION_HEADER = "11.7.0";
51
+ var SDK_VERSION_HEADER = "11.7.3";
52
52
 
53
53
  var HackleReactSDKClient = /** @class */ (function () {
54
54
  function HackleReactSDKClient(sdkKey, config) {
package/lib/index.js CHANGED
@@ -73,7 +73,7 @@ function __read(o, n) {
73
73
  }
74
74
 
75
75
  var SDK_NAME_HEADER = "react-sdk";
76
- var SDK_VERSION_HEADER = "11.7.0";
76
+ var SDK_VERSION_HEADER = "11.7.3";
77
77
 
78
78
  var HackleReactSDKClient = /** @class */ (function () {
79
79
  function HackleReactSDKClient(sdkKey, config) {
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 U,e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t={},j=(f.setUserId=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.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.IdentifiersBuilder=void 0,f.IdentifierType=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}),function(e,t){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)});function L(e,t){function r(){this.constructor=e}j(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var F=function(){return(F=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function V(e,a,s,u){return new(s=s||Promise)(function(r,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function o(e){try{i(u.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(n,o)}i((u=u.apply(e,a||[])).next())})}function H(n,o){var i,a,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[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(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,a=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!((s=0<(s=u.trys).length&&s[s.length-1])||6!==t[0]&&2!==t[0])){u=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3])){u.label=t[1];break}if(6===t[0]&&u.label<s[1]){u.label=s[1],s=t;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(t);break}s[2]&&u.ops.pop(),u.trys.pop();continue}t=o.call(n,u)}catch(e){t=[6,e],a=0}finally{i=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}$.setLogLevel=function(e){this.logLevel=e=void 0===e?3:e},$._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)z.log(e,r,t.message,t);else try{z.log(e,r,t)}catch(e){}},$.logLevel=3,$.log={error:function(e){1<=$.logLevel&&$._log("ERROR",e)},warn:function(e){2<=$.logLevel&&$._log("WARN",e)},info:function(e){3<=$.logLevel&&$._log("INFO",e)},debug:function(e){4<=$.logLevel&&$._log("DEBUG",e)}};var K=$,z=(q.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},q),G=[0,8,16,32,64,128,256,512],B=K.log;function q(){}function $(){}function X(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function Y(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n}function W(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function J(e,t){this.id=e,this.key=t}function Z(e){this.conditions=e}function Q(e,t){this.key=e,this.match=t}function ee(e,t){this.type=e,this.name=t}function te(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function re(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function ne(e,t){this.target=e,this.action=t}function oe(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function ie(e,t){this.id=e,this.experiments=t}function ae(e,t,r,n,o,i){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.targetRules=o,this.defaultValue=i}function se(e,t,r,n,o){this.key=e,this.name=t,this.target=r,this.bucketId=n,this.value=o}function ue(e,t){this.id=e,this.rawValue=t}var ce={getRequest:function(n,o){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"),X(r,o),r.send()})}},postRequest:function(e,t,r,n,o){var t=JSON.stringify(t),i=new XMLHttpRequest;i.open("POST",e),i.onreadystatechange=function(){i.readyState===i.DONE&&(200<=i.status&&i.status<400?n({statusCode:i.status}):o&&o({statusCode:i.status}))},i.setRequestHeader("content-type","application/json"),X(i,r),i.send(t)},sendBeacon:function(e,t,r,n,o){var i=!1;(i="undefined"!=typeof window?window&&window.navigator&&window.navigator.sendBeacon&&!0:i)?(i=JSON.stringify(t),(t=new URLSearchParams).append("sdkName",r["X-HACKLE-SDK-NAME"]),t.append("sdkVersion",r["X-HACKLE-SDK-VERSION"]),t.append("data",i),window.navigator.sendBeacon(e,t),n()):(B.error("Does not support sendBeacon"),o())}},s=(Pe.isNotNullOrUndefined=function(e){return null!=e},Pe.isNullOrUndefined=function(e){return null==e},Pe.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},Pe),le=K.log,fe=(xe.of=function(e,t){return new xe(e,t)},xe),pe=(ke.of=function(e,t,r){return new ke(e,t,r=void 0===r?new ye:r)},ke.prototype.get=function(e,t){switch(typeof t){case"string":case"number":case"boolean":return this.config.get(e,t);default:return t}},ke),de=(Ie.on=function(e,t){return new Ie(!0,e,t=void 0===t?new ye:t)},Ie.off=function(e,t){return new Ie(!1,e,t=void 0===t?new ye:t)},Ie.prototype.get=function(e,t){switch(typeof t){case"string":case"number":case"boolean":return this.config.get(e,t);default:return t}},Ie),he=(Ae.prototype.get=function(e,t){return t},Ae),ye=(Ne.prototype.get=function(e,t){return t},Ne),u=(r.SDK_NOT_READY="SDK_NOT_READY",r.EXCEPTION="EXCEPTION",r.INVALID_INPUT="INVALID_INPUT",r.EXPERIMENT_NOT_FOUND="EXPERIMENT_NOT_FOUND",r.EXPERIMENT_DRAFT="EXPERIMENT_DRAFT",r.EXPERIMENT_PAUSED="EXPERIMENT_PAUSED",r.EXPERIMENT_COMPLETED="EXPERIMENT_COMPLETED",r.OVERRIDDEN="OVERRIDDEN",r.TRAFFIC_NOT_ALLOCATED="TRAFFIC_NOT_ALLOCATED",r.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT="NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT",r.IDENTIFIER_NOT_FOUND="IDENTIFIER_NOT_FOUND",r.VARIATION_DROPPED="VARIATION_DROPPED",r.TRAFFIC_ALLOCATED="TRAFFIC_ALLOCATED",r.NOT_IN_EXPERIMENT_TARGET="NOT_IN_EXPERIMENT_TARGET",r.FEATURE_FLAG_NOT_FOUND="FEATURE_FLAG_NOT_FOUND",r.FEATURE_FLAG_INACTIVE="FEATURE_FLAG_INACTIVE",r.INDIVIDUAL_TARGET_MATCH="INDIVIDUAL_TARGET_MATCH",r.TARGET_RULE_MATCH="TARGET_RULE_MATCH",r.DEFAULT_RULE="DEFAULT_RULE",r.REMOTE_CONFIG_PARAMETER_NOT_FOUND="REMOTE_CONFIG_PARAMETER_NOT_FOUND",r.TYPE_MISMATCH="TYPE_MISMATCH",r),ve=(Se.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},Se.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},Se.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},Se),me=(Ce.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},Ce),ge=(_e.ID="$id",_e.USER="$userId",_e.DEVICE="$deviceId",_e),we=(Oe.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},Oe.prototype.add=function(e,t){return t&&this._isValid(e,t)?this.identifiers[e]=t:le.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},Oe.prototype._isValid=function(e,t){return!(!e||"string"!=typeof e||128<e.length||!t||"string"!=typeof t||512<t.length)},Oe.prototype.build=function(){return this.identifiers},Oe),Ee=(Re.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},Re),be=(Te.prototype.get=function(e,t){e=this.parameters.get(e);return!s.isNullOrUndefined(e)&&(s.isNullOrUndefined(t)||typeof e==typeof t)?e:t},Te);function Te(e,t){this.id=e,this.parameters=t}function Re(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function Oe(){this.identifiers={}}function _e(){}function Ce(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function Se(e,t,r,n,o,i,a,s,u,c,l,f,p,d){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.status=o,this.version=i,this.variations=a,this.userOverrides=s,this.segmentOverrides=u,this.targetAudiences=c,this.targetRules=l,this.defaultRule=f,this.containerId=p,this._winnerVariationId=d}function r(){}function Ne(){}function Ae(){}function Ie(e,t,r){this.isOn=e,this.reason=t,this.config=r}function ke(e,t,r){this.variation=e,this.reason=t,this.config=r}function xe(e,t){this.value=e,this.reason=t}function Pe(){}tt.tryParse=function(e){var t,r,n,o,e=tt.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,o=e[4],e=e[5],new tt(new Ue(parseInt(t,10),parseInt(r,10),parseInt(n,10)),je.parse(o),je.parse(e))},tt.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},tt.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},tt.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},tt.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},tt.prototype.isLessThan=function(e){return this.compareTo(e)<0},tt.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},tt.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 De,Me=tt,Ue=(et.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},et),je=(Qe.parse=function(e){return e?new Qe(e.split(".")):Qe.EMPTY},Qe.prototype.isEmpty=function(){return 0===this.identifiers.length},Qe.prototype.isNotEmpty=function(){return!this.isEmpty()},Qe.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},Qe.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=Qe.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},Qe.compareIdentifiers=function(e,t){return Qe.numericIdentifierRegExp.test(e)&&Qe.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},Qe.EMPTY=new Qe([]),Qe.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,Qe),Le=["MATCH","NOT_MATCH"],Fe=["STRING","NUMBER","BOOLEAN","VERSION","JSON"],Ve=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],He=["VARIATION","BUCKET"],Ke=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT"],ze=["USER_ID","USER_PROPERTY"],Ge=(Ze.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},Ze.IDENTIFIER=new Ze("SEGMENT"),Ze.PROPERTY=new Ze("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY"),Ze.SEGMENT=new Ze("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),Ze),Be=K.log,qe=(Je.prototype.get=function(e,t){switch(typeof t){case"string":return this._get(e,"STRING",t).value;case"number":return this._get(e,"NUMBER",t).value;case"boolean":return this._get(e,"BOOLEAN",t).value;default:return t}},Je.prototype._get=function(e,t,r){try{return s.isNullOrUndefined(this.hackleUser)?fe.of(r,u.INVALID_INPUT):s.isNullOrUndefined(e)?(Be.error("parameterKey must not be empty"),fe.of(r,u.INVALID_INPUT)):this.hackleInternalClient._remoteConfig(e,this.hackleUser,t,r)}catch(t){return Be.error("Unexpected exception while deciding remote config parameter[".concat(e,"]. Returning default value. : ").concat(t)),fe.of(r,u.EXCEPTION)}},Je),$e=K.log,Xe=(We.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},We.prototype.variationDetail=function(e,t,r){r=r||"A";try{var n=this.hackleUserResolver.resolveOrNull(t);return n?this.hackleInternalClient._experiment(e,n,r):pe.of(r,u.INVALID_INPUT)}catch(t){return $e.error("Unexpected exception while deciding variation for experiment[".concat(e,"]. Returning default variation[").concat(r,"] : ").concat(t)),pe.of(r,u.EXCEPTION)}},We.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},We.prototype.featureFlagDetail=function(e,t){try{var r=this.hackleUserResolver.resolveOrNull(t);return r?this.hackleInternalClient._featureFlag(e,r):de.off(u.INVALID_INPUT)}catch(t){return $e.error('"Unexpected exception while deciding feature flag['.concat(e,"]. Returning default value[false] : ").concat(t)),de.off(u.EXCEPTION)}},We.prototype.track=function(e,t){$e.debug("track event : ".concat(JSON.stringify(e)));e=this._convertEvent(e),t=this.hackleUserResolver.resolveOrNull(t);t&&this.hackleInternalClient._track(e,t)},We.prototype.trackPageView=function(e){$e.debug("tracking page view");e=this.hackleUserResolver.resolveOrNull(null==e?void 0:e.user);e&&this.hackleInternalClient._track({key:"$page_view"},e)},We.prototype.remoteConfig=function(e){e=this.hackleUserResolver.resolveOrNull(e);return s.isNullOrUndefined(e)?new he:new qe(this.hackleInternalClient,e)},We.prototype.onReady=function(e,t){this.hackleInternalClient._onReady(e,t=void 0===t?3e3:t)},We.prototype.onInitialized=function(e){return this.hackleInternalClient._onInitialized({timeout:null==e?void 0:e.timeout})},We.prototype.close=function(){$e.debug("Hackle Client is closing"),this.hackleInternalClient._close()},We.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},We),Ye=new Uint8Array(16);function We(e,t){this.hackleInternalClient=e,this.hackleUserResolver=t}function Je(e,t){this.hackleInternalClient=e,this.hackleUser=t}function Ze(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function Qe(e){this.identifiers=e}function et(e,t,r){this.major=e,this.minor=t,this.patch=r}function tt(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}function rt(){if(De=De||"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))return De(Ye);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}var nt=/^(?:[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 ot(e){return"string"==typeof e&&nt.test(e)}for(var it=[],at=0;at<256;++at)it.push((at+256).toString(16).substr(1));function st(e,t){t=1<arguments.length&&void 0!==t?t:0,e=(it[e[t+0]]+it[e[t+1]]+it[e[t+2]]+it[e[t+3]]+"-"+it[e[t+4]]+it[e[t+5]]+"-"+it[e[t+6]]+it[e[t+7]]+"-"+it[e[t+8]]+it[e[t+9]]+"-"+it[e[t+10]]+it[e[t+11]]+it[e[t+12]]+it[e[t+13]]+it[e[t+14]]+it[e[t+15]]).toLowerCase();if(ot(e))return e;throw TypeError("Stringified UUID is invalid")}function ut(){try{0}catch(e){}}function ct(e,t,r){var n=(e=e||{}).random||(e.rng||rt)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return st(n)}ut(),ut();Tt.filteredProperties=function(r){var n=this;return Object.keys(r).filter(function(e){return n.validProperty(e,r[e])}).reduce(function(e,t){return F(F({},e),((e={})[t]=n.filteredPropertiesValue(t,r[t]),e))},{})},Tt.filteredPropertiesValue=function(e,t){return!e.startsWith(Tt.SYSTEM_PROPERTY_KEY_PREFIX)&&"string"==typeof t&&1024<t.length?t.slice(0,1024):t},Tt.validProperty=function(e,t){return!!e&&"string"==typeof e&&!(128<e.length)&&("string"==typeof t||"boolean"==typeof t||"number"==typeof t&&!isNaN(t)&&isFinite(t))},Tt.SYSTEM_PROPERTY_KEY_PREFIX="$";var lt,ft,pt,dt=Tt,ht=(bt.exposure=function(e,t,r){return new yt((new Date).getTime(),t,e,r.variationId,r.variationKey,r.reason,this.exposureProperties(r))},bt.exposureProperties=function(e){return s.isNotNullOrUndefined(e.config)?{$parameterConfigurationId:e.config.id}:{}},bt.track=function(e,t,r){return new vt((new Date).getTime(),r,e,t)},bt.remoteConfig=function(e,t,r){return new mt((new Date).getTime(),t,e,r)},bt.isExposure=function(e){return void 0!==e.experiment},bt.isTrack=function(e){return void 0!==e.eventType},bt.isRemoteConfig=function(e){return void 0!==e.remoteConfigParameter},bt.isExposureDto=function(e){return"experimentId"in e&&void 0!==e.experimentId},bt.isTrackDto=function(e){return"eventTypeId"in e&&void 0!==e.eventTypeId},bt.isRemoteConfigDto=function(e){return"parameterId"in e&&void 0!==e.parameterId},bt.prototype.toDto=function(){return{insertId:this.insertId,timestamp:this.timestamp,userId:this.user.identifiers[ge.ID],identifiers:this.user.identifiers,userProperties:dt.filteredProperties(this.user.properties),hackleProperties:dt.filteredProperties(this.user.hackleProperties)}},bt),yt=(L(Et,pt=ht),Et.prototype.toDto=function(){return F(F({},pt.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})},Et),vt=(L(wt,ft=ht),wt.prototype.toDto=function(){return F(F({},ft.prototype.toDto.call(this)),{eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:dt.filteredProperties(this.event.properties||{})})},wt),mt=(L(gt,lt=ht),gt.prototype.toDto=function(){return F(F({},lt.prototype.toDto.call(this)),{parameterId:this.remoteConfigParameter.id,parameterKey:this.remoteConfigParameter.key,parameterType:this.remoteConfigParameter.type,valueId:this.evaluation.valueId,decisionReason:this.evaluation.reason.toString(),properties:dt.filteredProperties(this.evaluation.properties)})},gt);function gt(e,t,r,n){e=lt.call(this,e,t)||this;return e.remoteConfigParameter=r,e.evaluation=n,e}function wt(e,t,r,n){e=ft.call(this,e,t)||this;return e.eventType=r,e.event=n,e}function Et(e,t,r,n,o,i,a){e=pt.call(this,e,t)||this;return e.experiment=r,e.variationId=n,e.variationKey=o,e.decisionReason=i,e.properties=a,e}function bt(e,t,r){void 0===r&&(r=ct()),this.timestamp=e,this.user=t,this.insertId=r}function Tt(){}function Rt(e){var t=new Array,r=new Array,n=new Array;return e.forEach(function(e){e instanceof ht?ht.isExposure(e)?t.push(e.toDto()):ht.isTrack(e)?r.push(e.toDto()):ht.isRemoteConfig(e)&&n.push(e.toDto()):ht.isExposureDto(e)?t.push(e):ht.isTrackDto(e)?r.push(e):ht.isRemoteConfigDto(e)&&n.push(e)}),{exposureEvents:t,trackEvents:r,remoteConfigEvents:n}}Ft.prototype.dispatch=function(e,t,r){var n={},e=(n["X-HACKLE-SDK-KEY"]=this.sdkKey,n["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),Rt(e));this.httpRequest.postRequest(this.dispatchUrl,e,n,t,r)},Ft.prototype.dispatchXhrOrBeacon=function(e,t,r){var n,o;this.useBeacon?((n={})["X-HACKLE-SDK-KEY"]=this.sdkKey,n["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),o=Rt(e),this.httpRequest.sendBeacon(this.beaconDispatchUrl,o,n,t,r)):this.dispatch(e,t,r)};var Ot=Ft,l=(Lt.mapNotNullOrUndefined=function(e,t){for(var r=Array(),n=0,o=e;n<o.length;n++){var i=t(o[n]);s.isNotNullOrUndefined(i)&&r.push(i)}return r},Lt.associateTo=function(e,t,r){for(var n=0,o=e;n<o.length;n++){var i=r(o[n]);t.set(i[0],i[1])}return t},Lt.associate=function(e,t){return this.associateTo(e,new Map,t)},Lt.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},Lt),_t=K.log,Ct=(y.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},y.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},y.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},y.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},y.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},y.prototype.getContainerOrNull=function(e){return this.containers.get(e)},y.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},y.prototype.getRemoteConfigParameterOrNull=function(e){return this.remoteConfigParameters.get(e)},y.from=function(e){var t=this,r=l.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]});return new y(l.associateBy(l.mapNotNullOrUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),l.associateBy(l.mapNotNullOrUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),r,l.associate(e.events,function(e){return[e.key,new J(e.id,e.key)]}),l.associateBy(l.mapNotNullOrUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),l.associate(e.containers,function(e){return[e.id,t.toContainer(e)]}),l.associate(e.parameterConfigurations,function(e){return[e.id,t.toParameterConfiguration(e)]}),l.associateBy(l.mapNotNullOrUndefined(e.remoteConfigParameters,function(e){return t.toRemoteConfigParameterOrNull(e)}),function(e){return e.key}))},y.toBucket=function(e){return new W(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new me(t,r,e)}))},y.toExperimentOrNull=function(e,t){var r=this,n=this.experimentStatusOrNull(t.execution.status),o=t.variations.map(function(e){return new Y(e.id,e.key,"DROPPED"===e.status,e.parameterConfigurationId)}),i=l.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),a=l.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,Ge.IDENTIFIER)}),s=l.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,Ge.PROPERTY)}),u=l.mapNotNullOrUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,Ge.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new ve(t.id,t.key,e,t.identifierType,n,t.version,o,i,a,s,u,c,t.containerId,t.winnerVariationId)},y.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void _t.debug("Unsupported status [".concat(e,"]"))}},y.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new ne(t,e)},y.toTargetActionOrNull=function(e){var t=this.parseOrNull(He,e.type);return t&&new re(t,e.variationId,e.bucketId)},y.toTargetOrNull=function(e,t){var r=this,e=l.mapNotNullOrUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new Z(e)},y.toConditionOrNull=function(e,t){var r=this.toTargetKeyOrNull(e.key);if(r&&t.supports(r.type))return(t=this.toTargetMatchOrNull(e.match))&&new Q(r,t)},y.toTargetKeyOrNull=function(e){var t=this.parseOrNull(Ke,e.type);return t&&new ee(t,e.name)},y.toTargetMatchOrNull=function(e){var t=this.parseOrNull(Le,e.type),r=this.parseOrNull(Ve,e.operator),n=this.parseOrNull(Fe,e.valueType);return t&&r&&n&&new te(t,r,n,e.values)},y.toSegmentOrNull=function(e){var t=this,r=this.parseOrNull(ze,e.type);return r&&new oe(e.id,e.key,r,l.mapNotNullOrUndefined(e.targets,function(e){return t.toTargetOrNull(e,Ge.SEGMENT)}))},y.toContainer=function(e){var t=this;return new Ee(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},y.toContainerGroup=function(e){return new ie(e.id,e.experiments)},y.toParameterConfiguration=function(e){return new be(e.id,l.associate(e.parameters,function(e){return[e.key,e.value]}))},y.toRemoteConfigParameterOrNull=function(e){var t=this,r=this.parseOrNull(Fe,e.type),n=l.mapNotNullOrUndefined(e.targetRules,function(e){return t.toRemoteConfigTargetRuleOrNull(e,Ge.PROPERTY)}),o=this.toRemoteConfigParameterValueOrNull(e.defaultValue);return r&&new ae(e.id,e.key,r,e.identifierType,n,o)},y.toRemoteConfigTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t);return t&&new se(e.key,e.name,t,e.bucketId,this.toRemoteConfigParameterValueOrNull(e.value))},y.toRemoteConfigParameterValueOrNull=function(e){return new ue(e.id,e.value)},y.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||_t.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},y),St=(jt.prototype.onReady=function(){return this.readyPromise},jt.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},jt.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()},jt.prototype.get=function(){return this.workspace},jt.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)},jt.prototype.fetch=function(){var e,t=this;(e={})["X-HACKLE-SDK-KEY"]=this.sdkKey,e["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),e["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],e["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"];function r(){t.onRequestComplete()}this.currentRequest=this.httpRequest.getRequest(this.fetchUrl,e);this.currentRequest.responsePromise.then(function(e){t.onRequestResolved(e)},function(e){t.onRequestRejected(e)}).then(r,r),0<this.updateInterval&&this.scheduleNextUpdate()},jt.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},jt.prototype.onRequestResolved=function(e){if(this.isStarted){if(void 0!==e.statusCode&&200<=e.statusCode&&e.statusCode<400)this.errorRetryController.reset();else{if(401===e.statusCode||403===e.statusCode)return void this.readyPromiseRejecter(new Error("Invalid key provided."));this.errorRetryController.countError()}e.body&&(e=JSON.parse(e.body),this.workspace=Ct.from(e),this.readyPromiseResolver())}},jt.prototype.onRequestRejected=function(e){this.isStarted&&(this.errorRetryController.countError(),console.error("Error fetching data",e))},jt.prototype.close=function(){this.stop()},jt),Nt=(Ut.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*G[Math.min(G.length-1,this.errorCount)]+Math.round(1e3*Math.random())},Ut.prototype.countError=function(){this.errorCount<G.length-1&&this.errorCount++},Ut.prototype.reset=function(){this.errorCount=0},Ut),n="model",o="name",i="type",a="vendor",c="version",p="mobile",d="tablet",At=(h.parse=function(e){return{browser:h.getBrowser(e),cpu:h.getCPU(e),device:h.getDevice(e),engine:h.getEngine(e),os:h.getOS(e)}},h.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return h.mapper.rgx.call(t,e,h.regexes.browser),t.major=h.util.major(t.version),t},h.getCPU=function(e){var t={architecture:void 0};return h.mapper.rgx.call(t,e,h.regexes.cpu),t},h.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return h.mapper.rgx.call(t,e,h.regexes.device),t},h.getEngine=function(e){var t={name:void 0,version:void 0};return h.mapper.rgx.call(t,e,h.regexes.os),t},h.getOS=function(e){var t={name:void 0,version:void 0};return h.mapper.rgx.call(t,e,h.regexes.os),t},h.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,"")}},h.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o,c],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],c],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],c],[/(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,c],[/(konqueror)\/([\w\.]+)/i],[[o,"Konqueror"],c],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],c],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],c],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],c],[/(Avast)\/([\w\.]+)/i],[[o,"Avast Secure Browser"],c],[/(AVG)\/([\w\.]+)/i],[[o,"AVG Secure Browser"],c],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],c],[/(focus)\/([\w\.]+)/i],[[o,"Firefox Focus"],c],[/(opt)\/([\w\.]+)/i],[[o,"Opera Touch"],c],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],c],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],c],[/(windowswechat qbcore)\/([\w\.]+)/i],[[o,"WeChat(Win) Desktop"],c],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],c],[/(brave)\/([\w\.]+)/i],[[o,"Brave"],c],[/(whale)\/([\w\.]+)/i],[[o,"Whale"],c],[/(qqbrowserlite)\/([\w\.]+)/i],[o,c],[/(QQ)\/([\d\.]+)/i],[o,c],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,c],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[o,c],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,c],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[c,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[c,[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[o,c],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[c,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],c],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],c],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[o,"Chrome Mobile"],c],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[c,[o,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[o,"Sailfish Browser"],c],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,c],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],c],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],c],[/fxios\/([\w\.-]+)/i],[c,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[c,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[c,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],c],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[c,(h.mapper={rgx:function(e,t){for(var r,n,o,i,a,s=0;s<t.length&&!i;){for(var u=t[s],c=t[s+1],l=r=0;l<u.length&&!i;)if(i=u[l++].exec(e))for(n=0;n<c.length;n++)a=i[++r],"object"==typeof(o=c[n])&&0<o.length?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,a):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=a?a.replace(o[1],o[2]):void 0:this[o[0]]=a?o[1].call(this,a,o[2]):void 0:4==o.length&&(this[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):void 0):this[o]=a||void 0;s+=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(h.util.has(t[r][n],e))return"?"===r?void 0:r}else if(h.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(h.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,c],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],c],[/(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,c]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",h.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",h.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",h.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[n,a,[i,d]],[/applecoremedia\/[\w\.]+ \((ipad)/],[n,[a,"Apple"],[i,d]],[/(apple\s{0,1}tv)/i],[[n,"Apple TV"],[a,"Apple"],[i,"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],[a,n,[i,d]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[n,[a,"Amazon"],[i,d]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[n,h.mapper.str,h.maps.device.amazon.model],[a,"Amazon"],[i,p]],[/android.+aft([bms])\sbuild/i],[n,[a,"Amazon"],[i,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[n,a,[i,p]],[/\((ip[honed|\s\w*]+);/i],[n,[a,"Apple"],[i,p]],[/(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],[a,n,[i,p]],[/\(bb10;\s(\w+)/i],[n,[a,"BlackBerry"],[i,p]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[n,[a,"Asus"],[i,d]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[a,"Sony"],[n,"Xperia Tablet"],[i,d]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[n,[a,"Sony"],[i,p]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[a,n,[i,"console"]],[/android.+;\s(shield)\sbuild/i],[n,[a,"Nvidia"],[i,"console"]],[/(playstation\s[34portablevi]+)/i],[n,[a,"Sony"],[i,"console"]],[/(sprint\s(\w+))/i],[[a,h.mapper.str,h.maps.device.sprint.vendor],[n,h.mapper.str,h.maps.device.sprint.model],[i,p]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[a,[n,/_/g," "],[i,p]],[/(nexus\s9)/i],[n,[a,"HTC"],[i,d]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[n,[a,"Huawei"],[i,p]],[/android.+(bah2?-a?[lw]\d{2})/i],[n,[a,"Huawei"],[i,d]],[/(microsoft);\s(lumia[\s\w]+)/i],[a,n,[i,p]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[n,[a,"Microsoft"],[i,"console"]],[/(kin\.[onetw]{3})/i],[[n,/\./g," "],[a,"Microsoft"],[i,p]],[/\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],[n,[a,"Motorola"],[i,p]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[n,[a,"Motorola"],[i,d]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[a,h.util.trim],[n,h.util.trim],[i,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[n,/^/,"SmartTV"],[a,"Samsung"],[i,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[n,[a,"Sharp"],[i,"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],[[a,"Samsung"],n,[i,d]],[/smart-tv.+(samsung)/i],[a,[i,"smarttv"],n],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[a,"Samsung"],n,[i,p]],[/sie-(\w*)/i],[n,[a,"Siemens"],[i,p]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[a,"Nokia"],n,[i,p]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[n,[a,"Acer"],[i,d]],[/android.+([vl]k\-?\d{3})\s+build/i],[n,[a,"LG"],[i,d]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[a,"LG"],n,[i,d]],[/(lg) netcast\.tv/i],[a,n,[i,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[n,[a,"LG"],[i,p]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[a,n,[i,d]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[n,[a,"Lenovo"],[i,d]],[/(lenovo)[_\s-]?([\w-]+)/i],[a,n,[i,p]],[/linux;.+((jolla));/i],[a,n,[i,p]],[/((pebble))app\/[\d\.]+\s/i],[a,n,[i,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[a,n,[i,p]],[/crkey/i],[[n,"Chromecast"],[a,"Google"],[i,"smarttv"]],[/android.+;\s(glass)\s\d/i],[n,[a,"Google"],[i,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[n,[a,"Google"],[i,d]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[n,[a,"Google"],[i,p]],[/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],[[n,/_/g," "],[a,"Xiaomi"],[i,p]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[n,/_/g," "],[a,"Xiaomi"],[i,d]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[n,[a,"Meizu"],[i,p]],[/(mz)-([\w-]{2,})/i],[[a,"Meizu"],n,[i,p]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[n,[a,"OnePlus"],[i,p]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[n,[a,"RCA"],[i,d]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[n,[a,"Dell"],[i,d]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[n,[a,"Verizon"],[i,d]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[a,"Barnes & Noble"],n,[i,d]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[n,[a,"NuVision"],[i,d]],[/android.+;\s(k88)\sbuild/i],[n,[a,"ZTE"],[i,d]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[n,[a,"Swiss"],[i,p]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[n,[a,"Swiss"],[i,d]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[n,[a,"Zeki"],[i,d]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[a,"Dragon Touch"],n,[i,d]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[n,[a,"Insignia"],[i,d]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[n,[a,"NextBook"],[i,d]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[a,"Voice"],n,[i,p]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[a,"LvTel"],n,[i,p]],[/android.+;\s(PH-1)\s/i],[n,[a,"Essential"],[i,p]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[n,[a,"Envizen"],[i,d]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[a,n,[i,d]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[n,[a,"MachSpeed"],[i,d]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[a,n,[i,d]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[n,[a,"Rotor"],[i,d]],[/android.+(KS(.+))\s+build/i],[n,[a,"Amazon"],[i,d]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[a,n,[i,d]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[i,h.util.lowerize],a,n],[/[\s\/\(](smart-?tv)[;\)]/i],[[i,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[n,[a,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[c,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[c,[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,c],[/rv\:([\w\.]{1,9}).+(gecko)/i],[c,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,c],[/(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,h.mapper.str,h.maps.os.windows],[c,h.mapper.str,h.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[c,h.mapper.str,h.maps.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],c],[/(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,c],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],c],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],c],[/(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"],c],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],c],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],c],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[o,"Linux"],c],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPhone"],[c,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPad"],[c,/_/g,"."]],[/(haiku)\s(\w+)/i],[o,c],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[c,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac"],[c,/_/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,c]]},h),It=(Mt.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=At.parse(t.navigator.userAgent),n=r.browser,o=r.os,r=r.device,i=r.type?"mobile"===r.type?"Mobile":"ETC":"Web",a=(t.location.protocol||"").replace(":",""),s=t.screen,u="";try{u=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return{platform:i||"",browserName:n.name||"",browserMajorVersion:n.major||"",browserVersion:n.version||"",osName:o.name||"",osVersion:o.version||"",deviceModel:r.model||"",deviceType:r.type||"",deviceVendor:r.vendor||"",language:(null==(i=t.navigator.languages)?void 0:i[0])||"",userAgent:t.navigator.userAgent||"",pagePath:t.location.pathname||"",pageTitle:t.document.title||"",host:t.location.host||"",protocol:a,referrer:t.document.referrer||"",queryParameter:t.location.search||"",screenWidth:s.width||"",screenHeight:s.height||"",timeZone:u||""}},Mt),kt=(Dt.prototype.resolveOrNull=function(e){e=this._resolveUser(e);return this._resolveHackleUserOrNull(e)},Dt.prototype.resolveAnonymousUser=function(){return{identifiers:{},properties:{},hackleProperties:this._getHackleProperties()}},Dt.prototype._resolveUser=function(e){return e?"string"==typeof e?{id:e}:e:{id:Vt()}},Dt.prototype._resolveHackleUserOrNull=function(e){var t=new we,t=(t.addIdentifiers(e.identifiers||{}),e.id&&t.add(ge.ID,e.id),e.userId&&t.add(ge.USER,e.userId),t.add(ge.DEVICE,e.deviceId||Vt()),t.build());if(0!==Object.keys(t).length)return{identifiers:t,properties:e.properties||{},hackleProperties:this._getHackleProperties()}},Dt.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?It.generate(window):e)||{}},Dt),xt=(Pt.initialize=function(){Bt.get("_hackle_hid")||zt()},Pt.reInitialize=function(){zt()},Pt);function Pt(){}function Dt(){xt.initialize()}function Mt(){}function h(){}function Ut(){this.errorCount=0}function jt(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 Nt,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function y(e,t,r,n,o,i,a,s){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n,this.segments=o,this.containers=i,this.parameterConfigurations=a,this.remoteConfigParameters=s}function Lt(){}function Ft(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 Vt(){var e=Bt.get("_hackle_id");return e||Bt.get("_hackle_hid")||zt()}function Ht(e){Bt.set("_hackle_id",e,3650,!0)}function Kt(){Bt.remove("_hackle_id",!0)}function zt(){var e=ct();return Bt.set("_hackle_hid",e,3650,!0),e}function Gt(e){return e&&e.Math==Math&&e}function v(e){try{return!!e()}catch(e){return!0}}Xt.get=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "==o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return null},Xt.set=function(e,t,r,n,o,i){var a="",s="",u="",r=(n&&(a=(n=Xt.extractDomain(document.location.hostname))?"; domain=."+n:""),r&&((n=new Date).setTime(n.getTime()+24*r*60*60*1e3),s="; expires="+n.toUTCString()),i&&(o=!0,u="; SameSite=None"),o&&(u+="; secure"),e+"="+encodeURIComponent(t)+s+"; path=/"+a+u);return document.cookie=r},Xt.remove=function(e,t){Xt.set(e,"",-1,t,!1,!1)},Xt.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]:""};var Bt=Xt,p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},d=Gt("object"==typeof globalThis&&globalThis)||Gt("object"==typeof window&&window)||Gt("object"==typeof self&&self)||Gt("object"==typeof p&&p)||function(){return this}()||Function("return this")(),i={},n=!v(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),a=!v(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),qt=Function.prototype.call,o=a?qt.bind(qt):function(){return qt.apply(qt,arguments)},c={},e={}.propertyIsEnumerable,$t=Object.getOwnPropertyDescriptor,p=$t&&!e.call({1:2},1);function Xt(){}c.f=p?function(e){e=$t(this,e);return!!e&&e.enumerable}:e;function Yt(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function Wt(e){return dr(pr(e),8,-1)}function Jt(e){if(null==e)throw mr("Can't call method on "+e);return e}function Zt(e){return gr(wr(e))}function m(e){return"function"==typeof e}function Qt(e){return"object"==typeof e?null!==e:Er(e)}function er(e,t){return arguments.length<2?(r=br[e],Tr(r)?r:void 0):br[e]&&br[e][t];var r}function tr(e){try{return Ir(e)}catch(e){return"Object"}}function rr(e){if(kr(e))return e;throw Pr(xr(e)+" is not a function")}function nr(e,t){return null==(e=e[t])?void 0:Dr(e)}function or(t,r){try{Vr(Fr,t,{value:r,configurable:!0,writable:!0})}catch(e){Fr[t]=r}return r}function g(e){return Gr(zr(e))}function ir(e){return"Symbol("+(void 0===e?"":e)+")_"+Jr(++Yr+Wr,36)}function w(e){var t;return Qr(nn,e)&&(tn||"string"==typeof nn[e])||(t="Symbol."+e,tn&&Qr(on,e)?nn[e]=on[e]:nn[e]=(rn&&an?an:sn)(t)),nn[e]}function ar(e){return e=function(e,t){if(!cn(e)||ln(e))return e;var r=fn(e,hn);if(r){if(r=un(r,e,t=void 0===t?"default":t),!cn(r)||ln(r))return r;throw dn("Can't convert object to primitive value")}return pn(e,t=void 0===t?"number":t)}(e,"string"),yn(e)?e:e+""}function sr(e){return mn?vn.createElement(e):{}}function ur(e){if(Sn(e))return e;throw An(Nn(e)+" is not an object")}var p=a,e=Function.prototype,cr=e.bind,lr=e.call,fr=p&&cr.bind(lr,lr),e=p?function(e){return e&&fr(e)}:function(e){return e&&function(){return lr.apply(e,arguments)}},cr=e,pr=cr({}.toString),dr=cr("".slice),p=v,hr=Wt,yr=Object,vr=e("".split),cr=p(function(){return!yr("z").propertyIsEnumerable(0)})?function(e){return"String"==hr(e)?vr(e,""):yr(e)}:yr,mr=TypeError,gr=cr,wr=Jt,Er=m,br=d,Tr=m,p=e({}.isPrototypeOf),Rr=er("navigator","userAgent")||"",E=Rr,Or=d.process,b=d.Deno,Or=Or&&Or.versions||b&&b.version,b=Or&&Or.v8,Or=R=!(R=b?0<(T=b.split("."))[0]&&T[0]<4?1:+(T[0]+T[1]):R)&&E&&(!(T=E.match(/Edge\/(\d+)/))||74<=T[1])&&(T=E.match(/Chrome\/(\d+)/))?+T[1]:R,_r=Or,b=v,E=!!Object.getOwnPropertySymbols&&!b(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_r&&_r<41}),T=E&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Cr=er,Sr=m,Nr=p,Ar=Object,R=T?function(e){return"symbol"==typeof e}:function(e){var t=Cr("Symbol");return Sr(t)&&Nr(t.prototype,Ar(e))},Ir=String,kr=m,xr=tr,Pr=TypeError,Dr=rr,Mr=o,Ur=m,jr=Qt,Lr=TypeError,b={exports:{}},Fr=d,Vr=Object.defineProperty,Hr=or,Hr=d["__core-js_shared__"]||Hr("__core-js_shared__",{}),Kr=Hr,zr=((b.exports=function(e,t){return Kr[e]||(Kr[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"}),Jt),Gr=Object,Br=g,qr=e({}.hasOwnProperty),$r=Object.hasOwn||function(e,t){return qr(Br(e),t)},Xr=e,Yr=0,Wr=Math.random(),Jr=Xr(1..toString),Xr=d,Zr=b.exports,Qr=$r,en=ir,tn=E,rn=T,nn=Zr("wks"),on=Xr.Symbol,an=on&&on.for,sn=rn?on:on&&on.withoutSetter||en,un=o,cn=Qt,ln=R,fn=nr,pn=function(e,t){var r,n;if("string"===t&&Ur(r=e.toString)&&!jr(n=Mr(r,e)))return n;if(Ur(r=e.valueOf)&&!jr(n=Mr(r,e)))return n;if("string"!==t&&Ur(r=e.toString)&&!jr(n=Mr(r,e)))return n;throw Lr("Can't convert object to primitive value")},dn=TypeError,hn=w("toPrimitive"),yn=R,E=Qt,vn=d.document,mn=E(vn)&&E(vn.createElement),gn=sr,T=!n&&!v(function(){return 7!=Object.defineProperty(gn("div"),"a",{get:function(){return 7}}).a}),wn=o,En=c,bn=Yt,Tn=Zt,Rn=ar,On=$r,_n=T,Cn=Object.getOwnPropertyDescriptor,Zr=(i.f=n?Cn:function(e,t){if(e=Tn(e),t=Rn(t),_n)try{return Cn(e,t)}catch(e){}if(On(e,t))return bn(!wn(En.f,e,t),e[t])},{}),Xr=n&&v(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Sn=Qt,Nn=String,An=TypeError,In=T,kn=ur,xn=ar,Pn=TypeError,Dn=Object.defineProperty,Mn=Object.getOwnPropertyDescriptor,Un=(Zr.f=n?Xr?function(e,t,r){var n;return kn(e),t=xn(t),kn(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=Mn(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}),Dn(e,t,r)}:Dn:function(e,t,r){if(kn(e),t=xn(t),kn(r),In)try{return Dn(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Pn("Accessors not supported");return"value"in r&&(e[t]=r.value),e},Zr),jn=Yt,en=n?function(e,t,r){return Un.f(e,t,jn(1,r))}:function(e,t,r){return e[t]=r,e},R={exports:{}},E=n,c=$r,T=Function.prototype,O=E&&Object.getOwnPropertyDescriptor,c=c(T,"name"),c={EXISTS:c,PROPER:c&&"something"===function(){}.name,CONFIGURABLE:c&&(!E||O(T,"name").configurable)},E=m,O=Hr,Ln=e(Function.toString);E(O.inspectSource)||(O.inspectSource=function(e){return Ln(e)});function Fn(e){return no[e]||(no[e]=ro(e))}function Vn(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(bo(r)&&Ro(r,i,n),n.global)o?e[t]=r:Oo(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:To.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function Hn(e){return(e=+e)!=e||0==e?0:So(e)}function Kn(e,t){return(e=No(e))<0?Ao(e+t,0):Io(e,t)}function _(e){return 0<(e=e.length)?xo(ko(e),9007199254740991):0}function zn(s){return function(e,t,r){var n,o=Po(e),i=Mo(o),a=Do(r,i);if(s&&t!=t){for(;a<i;)if((n=o[a++])!=n)return!0}else for(;a<i;a++)if((s||a in o)&&o[a]===t)return s||a||0;return!s&&-1}}function Gn(e,t){var r,n=jo(e),o=0,i=[];for(r in n)!Uo(Fo,r)&&Uo(n,r)&&Vo(i,r);for(;t.length>o;)!Uo(n,r=t[o++])||~Lo(i,r)||Vo(i,r);return i}function Bn(e,t,r){for(var n=Xo(t),o=Wo.f,i=Yo.f,a=0;a<n.length;a++){var s=n[a];$o(e,s)||r&&$o(r,s)||o(e,s,i(t,s))}}function qn(e,t){return(e=ti[ei(e)])==ni||e!=ri&&(Zo(t)?Jo(t):!!t)}function C(e,t){var r,n,o,i,a=e.target,s=e.global,u=e.stat;if(r=s?oi:u?oi[a]||ui(a,{}):(oi[a]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(i=ii(r,n))&&i.value:r[n],!li(s?n:a+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;ci(o,i)}(e.sham||i&&i.sham)&&ai(o,"sham",!0),si(r,n,o,e)}}var $n,Xn,Yn,Wn,Jn,Zn,Qn,eo,T=O.inspectSource,E=m,O=T,to=d.WeakMap,E=E(to)&&/native code/.test(O(to)),O=b.exports,ro=ir,no=O("keys"),to={},b=e,oo=Qt,io=en,ao=$r,O=Hr,S=Fn,so=to,uo=d.TypeError,co=d.WeakMap,E=(Qn=E||O.state?($n=O.state||(O.state=new co),Xn=b($n.get),Yn=b($n.has),Wn=b($n.set),Jn=function(e,t){if(Yn($n,e))throw new uo("Object already initialized");return t.facade=e,Wn($n,e,t),t},Zn=function(e){return Xn($n,e)||{}},function(e){return Yn($n,e)}):(so[eo=S("state")]=!0,Jn=function(e,t){if(ao(e,eo))throw new uo("Object already initialized");return t.facade=e,io(e,eo,t),t},Zn=function(e){return ao(e,eo)?e[eo]:{}},function(e){return ao(e,eo)}),{set:Jn,get:Zn,has:Qn,enforce:function(e){return Qn(e)?Zn(e):Jn(e,{})},getterFor:function(t){return function(e){if(oo(e)&&(e=Zn(e)).type===t)return e;throw uo("Incompatible receiver, "+t+" required")}}}),O=v,lo=m,fo=$r,po=n,ho=c.CONFIGURABLE,yo=T,vo=E.enforce,mo=E.get,go=Object.defineProperty,wo=po&&!O(function(){return 8!==go(function(){},"length",{value:8}).length}),Eo=String(String).split("String"),co=R.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),(!fo(e,"name")||ho&&e.name!==t)&&(po?go(e,"name",{value:t,configurable:!0}):e.name=t),wo&&r&&fo(r,"arity")&&e.length!==r.arity&&go(e,"length",{value:r.arity});try{r&&fo(r,"constructor")&&r.constructor?po&&go(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=vo(e);return fo(r,"source")||(r.source=Eo.join("string"==typeof t?t:"")),e},bo=(Function.prototype.toString=co(function(){return lo(this)&&mo(this).source||yo(this)},"toString"),m),To=Zr,Ro=R.exports,Oo=or,b={},_o=Math.ceil,Co=Math.floor,So=Math.trunc||function(e){e=+e;return(0<e?Co:_o)(e)},No=Hn,Ao=Math.max,Io=Math.min,ko=Hn,xo=Math.min,Po=Zt,Do=Kn,Mo=_,so={includes:zn(!0),indexOf:zn(!1)},Uo=$r,jo=Zt,Lo=so.indexOf,Fo=to,Vo=e([].push),S=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ho=Gn,Ko=S.concat("length","prototype"),O=(b.f=Object.getOwnPropertyNames||function(e){return Ho(e,Ko)},{}),co=(O.f=Object.getOwnPropertySymbols,er),zo=b,Go=O,Bo=ur,qo=e([].concat),O=co("Reflect","ownKeys")||function(e){var t=zo.f(Bo(e)),r=Go.f;return r?qo(t,r(e)):t},$o=$r,Xo=O,Yo=i,Wo=Zr,Jo=v,Zo=m,Qo=/#|\.prototype\./,ei=qn.normalize=function(e){return String(e).replace(Qo,".").toLowerCase()},ti=qn.data={},ri=qn.NATIVE="N",ni=qn.POLYFILL="P",co=qn,oi=d,ii=i.f,ai=en,si=Vn,ui=or,ci=Bn,li=co,O=!v(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),fi=$r,pi=m,di=g,hi=Fn("IE_PROTO"),yi=Object,vi=yi.prototype,O=O?yi.getPrototypeOf:function(e){e=di(e);if(fi(e,hi))return e[hi];var t=e.constructor;return pi(t)&&e instanceof t?t.prototype:e instanceof yi?vi:null},mi=m,gi=String,wi=TypeError,Ei=e,bi=ur,Ti=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=Ei(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return bi(e),function(e){if("object"==typeof e||mi(e))return;throw wi("Can't set "+gi(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),Ri={},Oi=Gn,_i=S,N=Object.keys||function(e){return Oi(e,_i)},Ci=Zr,Si=ur,Ni=Zt,Ai=N;Ri.f=n&&!Xr?Object.defineProperties:function(e,t){Si(e);for(var r,n=Ni(t),o=Ai(t),i=o.length,a=0;a<i;)Ci.f(e,r=o[a++],n[r]);return e};function Ii(){}function ki(e){e.write(Xi("")),e.close();var t=e.parentWindow.Object;return e=null,t}function xi(e,t){return ra(e),void 0===t?e:na?oa(e,t):function(){return e.apply(t,arguments)}}function Pi(e){return void 0!==e&&(ia.Array===e||sa[aa]===e)}function Di(e){if(null!=e)return ha(e,va)||ha(e,"@@iterator")||ya[da(e)]}function Mi(e,t){if(t=arguments.length<2?ba(e):t,ga(t))return wa(ma(t,e));throw Ta(Ea(e)+" is not iterable")}function Ui(e,t,r){var n,o;Oa(e);try{if(!(n=_a(e,"return"))){if("throw"===t)throw r;return r}n=Ra(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return Oa(n),r}function ji(e,t){this.stopped=e,this.result=t}function Li(e,t,r){function n(e){return i&&Ma(i,"normal",e),new ji(!0,e)}function o(e){return p?(Na(e),y?v(e[0],e[1],n):v(e[0],e[1])):y?v(e,n):v(e)}var i,a,s,u,c,l,f=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),v=Ca(t,f);if(d)i=e.iterator;else if(h)i=e;else{if(!(r=Da(e)))throw Ua(Aa(e)+" is not iterable");if(Ia(r)){for(a=0,s=ka(e);a<s;a++)if((u=o(e[a]))&&xa(ja,u))return u;return new ji(!1)}i=Pa(e,r)}for(c=(d?e:i).next;!(l=Sa(c,i)).done;){try{u=o(l.value)}catch(e){Ma(i,"throw",e)}if("object"==typeof u&&u&&xa(ja,u))return u}return new ji(!1)}function Fi(e){if("Symbol"===La(e))throw TypeError("Cannot convert a Symbol value to a string");return Fa(e)}function Vi(e,t){var r,n=2<arguments.length?arguments[2]:void 0,o=za(es,this);return Ba?r=Ba(new Za,o?Ga(this):es):(r=o?this:$a(es),Xa(r,Ja,"Error")),void 0!==t&&Xa(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:Va(e)}(t)),Wa&&Xa(r,"stack",function(e,t){if(Qi&&"string"==typeof e&&!Wi.prepareStackTrace)for(;t--;)e=Ji(e,Zi,"");return e}(r.stack,1)),o=r,ea(t=n)&&"cause"in t&&ta(o,"cause",t.cause),Ya(e,Qa,{that:n=[]}),Xa(r,"errors",n),r}var Hi,N=er("document","documentElement"),Ki=ur,zi=Ri,Gi=S,Xr=to,Bi=N,qi=sr,$i=Fn("IE_PROTO"),Xi=function(e){return"<script>"+e+"<\/script>"},Yi=function(){try{Hi=new ActiveXObject("htmlfile")}catch(e){}var e,t;Yi="undefined"==typeof document||document.domain&&Hi?ki(Hi):((t=qi("iframe")).style.display="none",Bi.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Xi("document.F=Object")),e.close(),e.F);for(var r=Gi.length;r--;)delete Yi.prototype[Gi[r]];return Yi()},Ri=(Xr[$i]=!0,Object.create||function(e,t){var r;return null!==e?(Ii.prototype=Ki(e),r=new Ii,Ii.prototype=null,r[$i]=e):r=Yi(),void 0===t?r:zi.f(r,t)}),Wi=Error,Ji=e("".replace),S=String(Wi("zxcasd").stack),Zi=/\n\s*at [^:]*:[^\n]*/,Qi=Zi.test(S),ea=Qt,ta=en,ra=rr,na=a,oa=e(e.bind),Xr={},ia=Xr,aa=w("iterator"),sa=Array.prototype,S={},S=(S[w("toStringTag")]="z","[object z]"===String(S)),A=S,ua=m,ca=Wt,la=w("toStringTag"),fa=Object,pa="Arguments"==ca(function(){return arguments}()),A=A?ca: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=fa(e),la))?t:pa?ca(e):"Object"==(t=ca(e))&&ua(e.callee)?"Arguments":t},da=A,ha=nr,ya=Xr,va=w("iterator"),ma=o,ga=rr,wa=ur,Ea=tr,ba=Di,Ta=TypeError,Ra=o,Oa=ur,_a=nr,Ca=xi,Sa=o,Na=ur,Aa=tr,Ia=Pi,ka=_,xa=p,Pa=Mi,Da=Di,Ma=Ui,Ua=TypeError,ja=ji.prototype,La=A,Fa=String,Va=Fi,Ha=Yt,I=!v(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ha(1,7)),7!==e.stack)}),Ka=C,za=p,Ga=O,Ba=Ti,qa=Bn,$a=Ri,Xa=en,k=Yt,Ya=Li,Wa=I,Ja=w("toStringTag"),Za=Error,Qa=[].push,es=(Ba?Ba(Vi,Za):qa(Vi,Za,{name:!0}),Vi.prototype=$a(Za.prototype,{constructor:k(1,Vi),message:k(1,""),name:k(1,"AggregateError")})),I=(Ka({global:!0,constructor:!0,arity:2},{AggregateError:Vi}),w),qa=Ri,k=Zr.f,ts=I("unscopables"),rs=Array.prototype;null==rs[ts]&&k(rs,ts,{configurable:!0,value:qa(null)});function x(e){rs[ts][e]=!0}var ns,Ka=v,I=m,k=O,qa=Vn,os=w("iterator"),P=!1;[].keys&&("next"in(us=[].keys())?(k=k(k(us)))!==Object.prototype&&(ns=k):P=!0);function is(e,t,r){(e=e&&!r?e.prototype:e)&&!ls(e,fs)&&cs(e,fs,{configurable:!0,value:t})}function as(){return this}function ss(e,t,r,n,o,i,a){var s=r,u=t,c=void 0;function l(e){if(e===o&&v)return v;if(!Is&&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",s.prototype=ds(ps,{next:hs(+!c,n)}),ys(s,u,!1),vs[u]=ms;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[ks]||h["@@iterator"]||o&&h[o],v=!Is&&y||l(o);if((n="Array"==t&&h.entries||y)&&(s=bs(n.call(new e)))!==Object.prototype&&s.next&&(bs(s)!==As&&(Ts?Ts(s,As):Es(s[ks])||_s(s,ks,as)),Rs(s,c,!0)),Ss&&"values"==o&&y&&"values"!==y.name&&(Ns?Os(h,"name","values"):(d=!0,v=function(){return ws(y,this)})),o)if(f={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(p in f)!Is&&!d&&p in h||_s(h,p,f[p]);else gs({target:t,proto:!0,forced:Is||d},f);return h[ks]!==v&&_s(h,ks,v,{name:o}),Cs[t]=v,f}I((ns=null==ns||Ka(function(){var e={};return ns[os].call(e)!==e})?{}:ns)[os])||qa(ns,os,function(){return this});var us={IteratorPrototype:ns,BUGGY_SAFARI_ITERATORS:P},cs=Zr.f,ls=$r,fs=w("toStringTag"),ps=us.IteratorPrototype,ds=Ri,hs=Yt,ys=is,vs=Xr,ms=function(){return this},gs=C,ws=o,Es=m,bs=O,Ts=Ti,Rs=is,Os=en,_s=Vn,Cs=Xr,Ss=c.PROPER,Ns=c.CONFIGURABLE,As=us.IteratorPrototype,Is=us.BUGGY_SAFARI_ITERATORS,ks=w("iterator"),xs=Zt,k=x,I=Xr,Ka=E,qa=Zr.f,P=ss,c=n,Ps=Ka.set,Ds=Ka.getterFor("Array Iterator"),us=P(Array,"Array",function(e,t){Ps(this,{type:"Array Iterator",target:xs(e),index:0,kind:t})},function(){var e=Ds(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"),Xr=I.Arguments=I.Array;if(k("keys"),k("values"),k("entries"),c&&"values"!==Xr.name)try{qa(Xr,"name",{value:"values"})}catch(Xg){}function Ms(e){var e=Hs(e),t=Ks.f;zs&&e&&!e[Gs]&&t(e,Gs,{configurable:!0,get:function(){return this}})}function Us(e,t){if(Bs(t,e))return e;throw qs("Incorrect invocation")}function js(){}function Ls(e){if(!$s(e))return!1;try{return Js(js,Ws,e),!0}catch(e){return!1}}function Fs(e){if(!$s(e))return!1;switch(Xs(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return eu||!!Qs(Zs,Ys(e))}catch(e){return!0}}var Vs=A,Ka=(S||Vn(Object.prototype,"toString",S?{}.toString:function(){return"[object "+Vs(this)+"]"},{unsafe:!0}),"process"==Wt(d.process)),Hs=er,Ks=Zr,zs=n,Gs=w("species"),Bs=p,qs=TypeError,P=e,I=v,$s=m,Xs=A,Ys=T,Ws=[],Js=er("Reflect","construct"),Zs=/^\s*(?:class|function)\b/,Qs=P(Zs.exec),eu=!Zs.exec(js);Fs.sham=!0;function tu(e,t){var r,e=su(e).constructor;if(void 0===e||null==(r=su(e)[uu]))return t;if(ou(e=r))return e;throw au(iu(e)+" is not a constructor")}var ru,nu,k=!Js||I(function(){var e;return Ls(Ls.call)||!Ls(Object)||!Ls(function(){e=!0})||e})?Fs:Ls,ou=k,iu=tr,au=TypeError,su=ur,uu=w("species"),c=Function.prototype,cu=c.apply,lu=c.call,qa="object"==typeof Reflect&&Reflect.apply||(a?lu.bind(cu):function(){return lu.apply(cu,arguments)}),Xr=e([].slice),fu=TypeError,S=/(?:ipad|iphone|ipod).*applewebkit/i.test(Rr),pu=d,du=qa,p=xi,hu=m,yu=$r,A=v,vu=N,mu=Xr,gu=sr,P=S,I=Ka,c=pu.setImmediate,a=pu.clearImmediate,wu=pu.process,Eu=pu.Dispatch,bu=pu.Function,N=pu.MessageChannel,Tu=pu.String,Ru=0,Ou={};try{ru=pu.location}catch(Xg){}function _u(e){return function(){Nu(e)}}function Cu(e){Nu(e.data)}function Su(e){pu.postMessage(Tu(e),ru.protocol+"//"+ru.host)}var Nu=function(e){var t;yu(Ou,e)&&(t=Ou[e],delete Ou[e],t())};c&&a||(c=function(e){var t=arguments.length,r=1;if(t<r)throw fu("Not enough arguments");var n=hu(e)?e:bu(e),o=mu(arguments,1);return Ou[++Ru]=function(){du(n,void 0,o)},nu(Ru),Ru},a=function(e){delete Ou[e]},I?nu=function(e){wu.nextTick(_u(e))}:Eu&&Eu.now?nu=function(e){Eu.now(_u(e))}:N&&!P?(P=(I=new N).port2,I.port1.onmessage=Cu,nu=p(P.postMessage,P)):pu.addEventListener&&hu(pu.postMessage)&&!pu.importScripts&&ru&&"file:"!==ru.protocol&&!A(Su)?(nu=Su,pu.addEventListener("message",Cu,!1)):nu="onreadystatechange"in gu("script")?function(e){vu.appendChild(gu("script")).onreadystatechange=function(){vu.removeChild(this),Nu(e)}}:function(e){setTimeout(_u(e),0)});function Au(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function Iu(){this.head=null,this.tail=null}function ku(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=Zu(r),this.reject=Zu(n)}var xu,Pu,Du,Mu,Uu,ju,Lu,N={set:c,clear:a},I=d,p=/ipad|iphone|ipod/i.test(Rr)&&void 0!==I.Pebble,P=/web0s(?!.*chrome)/i.test(Rr),A=d,c=xi,a=i.f,Fu=N.set,I=S,i=p,S=P,Vu=Ka,p=A.MutationObserver||A.WebKitMutationObserver,P=A.document,Hu=A.process,Ku=A.Promise,a=a(A,"queueMicrotask"),a=a&&a.value,S=(a||(xu=function(){var e,t;for(Vu&&(e=Hu.domain)&&e.exit();Pu;){t=Pu.fn,Pu=Pu.next;try{t()}catch(e){throw Pu?Mu():Du=void 0,e}}Du=void 0,e&&e.enter()},Mu=I||Vu||S||!p||!P?!i&&Ku&&Ku.resolve?((I=Ku.resolve(void 0)).constructor=Ku,Lu=c(I.then,I),function(){Lu(xu)}):Vu?function(){Hu.nextTick(xu)}:(Fu=c(Fu,A),function(){Fu(xu)}):(Uu=!0,ju=P.createTextNode(""),new p(xu).observe(ju,{characterData:!0}),function(){ju.data=Uu=!Uu})),a||function(e){e={fn:e,next:void 0};Du&&(Du.next=e),Pu||(Pu=e,Mu()),Du=e}),zu=d,i=(Iu.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}},Iu),Ku=d.Promise,I="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,c=!I&&!Ka&&"object"==typeof window&&"object"==typeof document,A=d,Gu=Ku,P=m,p=co,Bu=T,a=w,qu=c,$u=I,Xu=Or,Yu=(Gu&&Gu.prototype,a("species")),Wu=!1,Ju=P(A.PromiseRejectionEvent),T={CONSTRUCTOR:p("Promise",function(){var e=Bu(Gu),t=e!==String(Gu);if(!t&&66===Xu)return!0;if(!Xu||Xu<51||!/native code/.test(e)){var e=new Gu(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[Yu]=r,!(Wu=e.then(function(){})instanceof r))return!0}return!t&&(qu||$u)&&!Ju}),REJECTION_EVENT:Ju,SUBCLASSING:Wu},c={},Zu=rr;c.f=function(e){return new ku(e)};function Qu(e,t){var r,n,o,i,a=t.value,s=1==t.state,u=s?e.ok:e.fail,c=e.resolve,l=e.reject,f=e.domain;try{u?(s||(2===t.rejection&&(i=t,ic(fc,oc,function(){var e=i.facade;nc?Oc.emit("rejectionHandled",e):Ic("rejectionhandled",e,i.value)})),t.rejection=1),!0===u?r=a:(f&&f.enter(),r=u(a),f&&(f.exit(),o=!0)),r===e.promise?l(Tc("Promise-chain cycle")):(n=Nc(r))?ic(n,r,c,l):c(r)):l(a)}catch(e){f&&!o&&f.exit(),l(e)}}var ec,tc,rc,I=C,nc=Ka,oc=d,ic=o,a=Vn,P=Ti,A=is,p=Ms,ac=rr,sc=m,uc=Qt,cc=Us,lc=tu,fc=N.set,pc=S,dc=Au,hc=i,N=E,S=Ku,i=c,yc=T.CONSTRUCTOR,vc=T.REJECTION_EVENT,mc=T.SUBCLASSING,gc=N.getterFor("Promise"),wc=N.set,N=S&&S.prototype,Ec=S,bc=N,Tc=oc.TypeError,Rc=oc.document,Oc=oc.process,_c=i.f,Cc=_c,Sc=!!(Rc&&Rc.createEvent&&oc.dispatchEvent),Nc=function(e){var t;return!(!uc(e)||!sc(t=e.then))&&t},Ac=function(r,o){r.notified||(r.notified=!0,pc(function(){for(var e,n,t=r.reactions;e=t.get();)Qu(e,r);r.notified=!1,o&&!r.rejection&&(n=r,ic(fc,oc,function(){var e,t=n.facade,r=n.value;if(kc(n)&&(e=dc(function(){nc?Oc.emit("unhandledRejection",r,t):Ic("unhandledrejection",t,r)}),n.rejection=nc||kc(n)?2:1,e.error))throw e.value}))}))},Ic=function(e,t,r){var n;Sc?((n=Rc.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),oc.dispatchEvent(n)):n={promise:t,reason:r},!vc&&(t=oc["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=zu.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},kc=function(e){return 1!==e.rejection&&!e.parent},xc=function(t,r,n){return function(e){t(r,e,n)}},Pc=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,Ac(e,!0))},Dc=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw Tc("Promise can't be resolved itself");var n=Nc(e);n?pc(function(){var t={done:!1};try{ic(n,e,xc(Dc,t,r),xc(Pc,t,r))}catch(e){Pc(t,e,r)}}):(r.value=e,r.state=1,Ac(r,!1))}catch(e){Pc({done:!1},e,r)}}};if(yc&&(bc=(Ec=function(e){cc(this,bc),ac(e),ic(ec,this);var t=gc(this);try{e(xc(Dc,t),xc(Pc,t))}catch(e){Pc(t,e)}}).prototype,(ec=function(e){wc(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new hc,rejection:!1,state:0,value:void 0})}).prototype=a(bc,"then",function(e,t){var r=gc(this),n=_c(lc(this,Ec));return r.parent=!0,n.ok=!sc(e)||e,n.fail=sc(t)&&t,n.domain=nc?Oc.domain:void 0,0==r.state?r.reactions.add(n):pc(function(){Qu(n,r)}),n.promise}),tc=function(){var e=new ec,t=gc(e);this.promise=e,this.resolve=xc(Dc,t),this.reject=xc(Pc,t)},i.f=_c=function(e){return e===Ec||void 0===e?new tc:Cc(e)},sc(S)&&N!==Object.prototype)){rc=N.then,mc||a(N,"then",function(e,t){var r=this;return new Ec(function(e,t){ic(rc,r,e,t)}).then(e,t)},{unsafe:!0});try{delete N.constructor}catch(Xg){}P&&P(N,bc)}I({global:!0,constructor:!0,wrap:!0,forced:yc},{Promise:Ec}),A(Ec,"Promise",!1),p("Promise");var Mc=w("iterator"),Uc=!1;try{var jc=0,Lc={next:function(){return{done:!!jc++}},return:function(){Uc=!0}};Lc[Mc]=function(){return this},Array.from(Lc,function(){throw 2})}catch(Xg){}function Fc(e,t){if(!t&&!Uc)return!1;var r=!1;try{var n={};n[Mc]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function Vc(e,t){return nl(e),ol(t)&&t.constructor===e?t:((0,(e=il.f(e)).resolve)(t),e.promise)}function Hc(o){return function(e,t){var r,e=Ol(_l(e)),t=Rl(t),n=e.length;return t<0||n<=t?o?"":void 0:(r=Sl(e,t))<55296||56319<r||t+1===n||(n=Sl(e,t+1))<56320||57343<n?o?Cl(e,t):r:o?Nl(e,t,t+2):n-56320+(r-55296<<10)+65536}}function Kc(e,t){if(e){if(e[jl]!==Fl)try{Ul(e,jl,Fl)}catch(t){e[jl]=Fl}if(e[Ll]||Ul(e,Ll,t),Dl[t])for(var r in Ml)if(e[r]!==Ml[r])try{Ul(e,r,Ml[r])}catch(t){e[r]=Ml[r]}}}var zc,Gc=Ku,i=T.CONSTRUCTOR||!Fc(function(e){Gc.all(e).then(void 0,function(){})}),Bc=o,qc=rr,$c=c,Xc=Au,Yc=Li,S=(C({target:"Promise",stat:!0,forced:i},{all:function(e){var s=this,t=$c.f(s),u=t.resolve,c=t.reject,r=Xc(function(){var n=qc(s.resolve),o=[],i=0,a=1;Yc(e,function(e){var t=i++,r=!1;a++,Bc(n,s,e).then(function(e){r||(r=!0,o[t]=e,--a||u(o))},c)}),--a||u(o)});return r.error&&c(r.value),t.promise}}),C),mc=Ku,a=er,P=m,N=Vn,I=mc&&mc.prototype,Wc=(S({target:"Promise",proto:!0,forced:T.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),P(mc)&&(yc=a("Promise").prototype.catch,I.catch!==yc&&N(I,"catch",yc,{unsafe:!0})),o),Jc=rr,Zc=c,Qc=Au,el=Li,tl=(C({target:"Promise",stat:!0,forced:i},{race:function(e){var r=this,n=Zc.f(r),o=n.reject,t=Qc(function(){var t=Jc(r.resolve);el(e,function(e){Wc(t,r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}}),o),rl=c,nl=(C({target:"Promise",stat:!0,forced:T.CONSTRUCTOR},{reject:function(e){var t=rl.f(this);return tl(t.reject,void 0,e),t.promise}}),ur),ol=Qt,il=c,A=C,p=T.CONSTRUCTOR,al=Vc,sl=(er("Promise"),A({target:"Promise",stat:!0,forced:p},{resolve:function(e){return al(this,e)}}),o),ul=rr,cl=c,ll=Au,fl=Li,pl=(C({target:"Promise",stat:!0},{allSettled:function(e){var s=this,t=cl.f(s),u=t.resolve,r=t.reject,n=ll(function(){var n=ul(s.resolve),o=[],i=0,a=1;fl(e,function(e){var t=i++,r=!1;a++,sl(n,s,e).then(function(e){r||(r=!0,o[t]={status:"fulfilled",value:e},--a||u(o))},function(e){r||(r=!0,o[t]={status:"rejected",reason:e},--a||u(o))})}),--a||u(o)});return n.error&&r(n.value),t.promise}}),o),dl=rr,hl=er,yl=c,vl=Au,ml=Li,Lc=(C({target:"Promise",stat:!0},{any:function(e){var u=this,c=hl("AggregateError"),t=yl.f(u),l=t.resolve,f=t.reject,r=vl(function(){var n=dl(u.resolve),o=[],i=0,a=1,s=!1;ml(e,function(e){var t=i++,r=!1;a++,pl(n,u,e).then(function(e){r||s||(s=!0,l(e))},function(e){r||s||(r=!0,o[t]=e,--a||f(new c(o,"No one promise resolved")))})}),--a||f(new c(o,"No one promise resolved"))});return r.error&&f(r.value),t.promise}}),C),S=Ku,P=v,gl=er,wl=m,El=tu,bl=Vc,mc=Vn,Tl=S&&S.prototype,N=(Lc({target:"Promise",proto:!0,real:!0,forced:!!S&&P(function(){Tl.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=El(this,gl("Promise")),e=wl(t);return this.then(e?function(e){return bl(r,t()).then(function(){return e})}:t,e?function(e){return bl(r,t()).then(function(){throw e})}:t)}}),wl(S)&&(a=gl("Promise").prototype.finally,Tl.finally!==a&&mc(Tl,"finally",a,{unsafe:!0})),e),Rl=Hn,Ol=Fi,_l=Jt,Cl=N("".charAt),Sl=N("".charCodeAt),Nl=N("".slice),Al=(Hc(!1),Hc(!0)),Il=Fi,I=E,yc=ss,kl=I.set,xl=I.getterFor("String Iterator"),i=(yc(String,"String",function(e){kl(this,{type:"String Iterator",string:Il(e),index:0})},function(){var e=xl(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=Al(t,r),e.index+=t.length,{value:t,done:!1})}),d),T=(i.Promise,sr("span").classList),A=T&&T.constructor&&T.constructor.prototype,p=A===Object.prototype?void 0:A,Pl=d,Dl={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},Ku=p,Ml=us,Ul=en,Lc=w,jl=Lc("iterator"),Ll=Lc("toStringTag"),Fl=Ml.values;for(zc in Dl)Kc(Pl[zc]&&Pl[zc].prototype,zc);Kc(Ku,"DOMTokenList");function Vl(e,t,r){(t=pf(t))in e?df.f(e,t,hf(0,r)):e[t]=r}function Hl(e){if(9007199254740991<e)throw xf("Maximum allowed index exceeded");return e}function Kl(e,t){return Pf(e=e)&&(r=e.constructor,(Df(r)&&(r===jf||Pf(r.prototype))||Mf(r)&&null===(r=r[Uf]))&&(r=void 0)),new(void 0===r?jf:r)(0===t?0:t);var r}function zl(t){return 51<=Ff||!Lf(function(){var e=[];return(e.constructor={})[Vf]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function Gl(e,t){if(!delete e[t])throw Wf("Cannot delete property "+Yf(t)+" of "+Yf(e))}function Bl(p){var d=1==p,h=2==p,y=3==p,v=4==p,m=6==p,g=7==p,w=5==p||m;return function(e,t,r,n){for(var o,i,a=op(e),s=np(a),u=rp(t,r),c=ip(s),l=0,t=n||ap,f=d?t(e,c):h||g?t(e,0):void 0;l<c;l++)if((w||l in s)&&(i=u(o=s[l],l,a),p))if(d)f[l]=i;else if(i)switch(p){case 3:return!0;case 5:return o;case 6:return l;case 2:sp(f,o)}else switch(p){case 4:return!1;case 7:sp(f,o)}return m?-1:y||v?v:f}}function ql(e,t){var r=[][e];return!!r&&up(function(){r.call(null,t||function(){return 1},1)})}function $l(u){var c=1==u;return function(e,t,r){for(var n,o=Ep(e),i=wp(o),a=gp(t,r),s=bp(i);0<s--;)if(a(n=i[s],s,o))switch(u){case 0:return n;case 1:return s}return c?-1:void 0}}function Xl(e,t,r,n,o,i,a,s){for(var u,c,l=o,f=0,p=!!a&&Sp(a,s);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<i&&Op(u)?(c=_p(u),l=Xl(e,t,u,c,l,i-1)-1):(Cp(l+1),e[l]=u),l++),f++;return l}function Yl(c){return function(e,t,r,n){rd(t);var o=nd(e),i=od(o),a=id(o),s=c?a-1:0,u=c?-1:1;if(r<2)for(;;){if(s in i){n=i[s],s+=u;break}if(s+=u,c?s<0:a<=s)throw ad("Reduce of empty array with no initial value")}for(;c?0<=s:s<a;s+=u)s in i&&(n=t(n,i[s],s,o));return n}}function Wl(e,t,r){for(var n=Od(e),o=Rd(t,n),i=Rd(void 0===r?n:r,n),a=Cd(Sd(i-o,0)),s=0;o<i;o++,s++)_d(a,s,e[o]);return a.length=s,a}function Jl(e,t){var r=e.length,n=Ad(r/2);if(r<8){for(var o,i,a=e,s=t,u=a.length,c=1;c<u;){for(o=a[i=c];i&&0<s(a[i-1],o);)a[i]=a[--i];i!==c++&&(a[i]=o)}return a}for(var l=e,f=Jl(Nd(e,0,n),t),p=Jl(Nd(e,n),t),d=t,h=f.length,y=p.length,v=0,m=0;v<h||m<y;)l[v+m]=v<h&&m<y?d(f[v],p[m])<=0?f[v++]:p[m++]:v<h?f[v++]:p[m++];return l}function Zl(e){mh(e,Rh,{value:{objectID:"O"+Oh++,weakData:{}}})}function Ql(e,t,r){for(var n in t)Dh(e,n,t[n],r);return e}var ef,tf,rf,nf,of,af,sf,uf=c,cf=Au,lf=(C({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=uf.f(this),e=cf(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),ur),ff=Ui,pf=ar,df=Zr,hf=Yt,yf=xi,vf=o,mf=g,gf=Pi,wf=k,Ef=_,bf=Vl,Tf=Mi,Rf=Di,Of=Array,_f=(C({target:"Array",stat:!0,forced:!Fc(function(e){Array.from(e)})},{from:function(e){var t=mf(e),e=wf(this),r=arguments.length,n=1<r?arguments[1]:void 0,o=void 0!==n;o&&(n=yf(n,2<r?arguments[2]:void 0));var i,a,s,u,c,l,r=Rf(t),f=0;if(!r||this===Of&&gf(r))for(i=Ef(t),a=e?new this(i):Of(i);f<i;f++)l=o?n(t[f],f):t[f],bf(a,f,l);else for(c=(u=Tf(t,r)).next,a=e?new this:[];!(s=vf(c,u)).done;f++)l=o?function(e,t,r,n){try{return n?t(lf(r)[0],r[1]):t(r)}catch(t){ff(e,"throw",t)}}(u,n,[s.value,f],!0):s.value,bf(a,f,l);return a.length=f,a}}),Wt),P=Array.isArray||function(e){return"Array"==_f(e)},Cf=(C({target:"Array",stat:!0},{isArray:P}),k),Sf=Vl,Nf=Array,Af=(C({target:"Array",stat:!0,forced:v(function(){function e(){}return!(Nf.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(Cf(this)?this:Nf)(t);e<t;)Sf(r,e,arguments[e++]);return r.length=t,r}}),g),If=_,kf=Hn,S=x,xf=(C({target:"Array",proto:!0},{at:function(e){var t=Af(this),r=If(t),e=kf(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),S("at"),TypeError),Pf=P,Df=k,Mf=Qt,Uf=w("species"),jf=Array,Lf=v,Ff=Or,Vf=w("species"),mc=C,a=v,Hf=P,Kf=Qt,zf=g,Gf=_,Bf=Hl,qf=Vl,$f=Kl,N=zl,I=Or,Xf=w("isConcatSpreadable"),yc=51<=I||!a(function(){var e=[];return e[Xf]=!1,e.concat()[0]!==e}),T=N("concat"),Yf=(mc({target:"Array",proto:!0,arity:1,forced:!yc||!T},{concat:function(e){for(var t,r,n,o=zf(this),i=$f(o,0),a=0,s=-1,u=arguments.length;s<u;s++)if(function(e){if(!Kf(e))return!1;var t=e[Xf];return void 0!==t?!!t:Hf(e)}(n=-1===s?o:arguments[s]))for(r=Gf(n),Bf(a+r),t=0;t<r;t++,a++)t in n&&qf(i,a,n[t]);else Bf(a+1),qf(i,a++,n);return i.length=a,i}}),tr),Wf=TypeError,Jf=g,Zf=Kn,Qf=_,ep=Gl,tp=Math.min,A=x,rp=(C({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=Jf(this),n=Qf(r),o=Zf(e,n),i=Zf(t,n),e=2<arguments.length?arguments[2]:void 0,a=tp((void 0===e?n:Zf(e,n))-i,n-o),s=1;for(i<o&&o<i+a&&(s=-1,i+=a-1,o+=a-1);0<a--;)i in r?r[o]=r[i]:ep(r,o),o+=s,i+=s;return r}}),A("copyWithin"),xi),np=cr,op=g,ip=_,ap=Kl,sp=e([].push),p={forEach:Bl(0),map:Bl(1),filter:Bl(2),some:Bl(3),every:Bl(4),find:Bl(5),findIndex:Bl(6),filterReject:Bl(7)},up=v,cp=p.every,lp=(C({target:"Array",proto:!0,forced:!ql("every")},{every:function(e){return cp(this,e,1<arguments.length?arguments[1]:void 0)}}),g),fp=Kn,pp=_,us=x,dp=(C({target:"Array",proto:!0},{fill:function(e){for(var t=lp(this),r=pp(t),n=arguments.length,o=fp(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,i=void 0===n?r:fp(n,r);o<i;)t[o++]=e;return t}}),us("fill"),p.filter),en=(C({target:"Array",proto:!0,forced:!zl("filter")},{filter:function(e){return dp(this,e,1<arguments.length?arguments[1]:void 0)}}),C),hp=p.find,Lc=x,yp=!0,Ku=("find"in[]&&Array(1).find(function(){yp=!1}),en({target:"Array",proto:!0,forced:yp},{find:function(e){return hp(this,e,1<arguments.length?arguments[1]:void 0)}}),Lc("find"),C),vp=p.findIndex,c=x,mp=!0,gp=("findIndex"in[]&&Array(1).findIndex(function(){mp=!1}),Ku({target:"Array",proto:!0,forced:mp},{findIndex:function(e){return vp(this,e,1<arguments.length?arguments[1]:void 0)}}),c("findIndex"),xi),wp=cr,Ep=g,bp=_,S={findLast:$l(0),findLastIndex:$l(1)},Tp=S.findLast,I=x,Rp=(C({target:"Array",proto:!0},{findLast:function(e){return Tp(this,e,1<arguments.length?arguments[1]:void 0)}}),I("findLast"),S.findLastIndex),a=x,Op=(C({target:"Array",proto:!0},{findLastIndex:function(e){return Rp(this,e,1<arguments.length?arguments[1]:void 0)}}),a("findLastIndex"),P),_p=_,Cp=Hl,Sp=xi,N=Xl,Np=N,Ap=g,Ip=_,kp=Hn,xp=Kl,Pp=(C({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Ap(this),r=Ip(t),n=xp(t,0);return n.length=Np(n,t,t,r,0,void 0===e?1:kp(e)),n}}),N),Dp=rr,Mp=g,Up=_,jp=Kl,Lp=(C({target:"Array",proto:!0},{flatMap:function(e){var t,r=Mp(this),n=Up(r);return Dp(e),(t=jp(r,0)).length=Pp(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),p.forEach),mc=ql("forEach")?[].forEach:function(e){return Lp(this,e,1<arguments.length?arguments[1]:void 0)},Fp=(C({target:"Array",proto:!0,forced:[].forEach!=mc},{forEach:mc}),so.includes),yc=x,T=(C({target:"Array",proto:!0,forced:v(function(){return!Array(1).includes()})},{includes:function(e){return Fp(this,e,1<arguments.length?arguments[1]:void 0)}}),yc("includes"),C),Vp=so.indexOf,A=ql,Hp=e([].indexOf),Kp=!!Hp&&1/Hp([1],1,-0)<0,us=A("indexOf"),en=(T({target:"Array",proto:!0,forced:Kp||!us},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return Kp?Hp(this,e,t)||0:Vp(this,e,t)}}),C),Lc=cr,zp=Zt,Ku=ql,Gp=e([].join),c=Lc!=Object,I=Ku("join",","),Bp=(en({target:"Array",proto:!0,forced:c||!I},{join:function(e){return Gp(zp(this),void 0===e?",":e)}}),qa),qp=Zt,$p=Hn,Xp=_,S=ql,Yp=Math.min,Wp=[].lastIndexOf,Jp=!!Wp&&1/[1].lastIndexOf(1,-0)<0,a=S("lastIndexOf"),N=Jp||!a?function(e){if(Jp)return Bp(Wp,this,arguments)||0;var t=qp(this),r=Xp(t),n=r-1;for((n=1<arguments.length?Yp(n,$p(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:Wp,Zp=(C({target:"Array",proto:!0,forced:N!==[].lastIndexOf},{lastIndexOf:N}),p.map),mc=(C({target:"Array",proto:!0,forced:!zl("map")},{map:function(e){return Zp(this,e,1<arguments.length?arguments[1]:void 0)}}),C),Qp=g,ed=_,td=Hl,yc=v(function(){return 4294967297!==[].push.call({length:4294967296},1)}),so=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),rd=(mc({target:"Array",proto:!0,arity:1,forced:yc||so},{push:function(e){var t=Qp(this),r=ed(t),n=arguments.length;td(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return t.length=r}}),rr),nd=g,od=cr,id=_,ad=TypeError,A={left:Yl(!1),right:Yl(!0)},sd=A.left,T=Or,us=Ka,ud=(C({target:"Array",proto:!0,forced:!ql("reduce")||!us&&79<T&&T<83},{reduce:function(e){var t=arguments.length;return sd(this,e,t,1<t?arguments[1]:void 0)}}),A.right),Lc=Or,Ku=Ka,en=(C({target:"Array",proto:!0,forced:!ql("reduceRight")||!Ku&&79<Lc&&Lc<83},{reduceRight:function(e){return ud(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),C),cd=P,ld=e([].reverse),c=[1,2],I=(en({target:"Array",proto:!0,forced:String(c)===String(c.reverse())},{reverse:function(){return cd(this)&&(this.length=this.length),ld(this)}}),C),fd=P,pd=k,dd=Qt,hd=Kn,yd=_,vd=Zt,md=Vl,qa=w,gd=Xr,S=zl("slice"),wd=qa("species"),Ed=Array,bd=Math.max,Td=(I({target:"Array",proto:!0,forced:!S},{slice:function(e,t){var r,n,o,i=vd(this),a=yd(i),s=hd(e,a),u=hd(void 0===t?a:t,a);if(fd(i)&&(r=i.constructor,(r=pd(r)&&(r===Ed||fd(r.prototype))||dd(r)&&null===(r=r[wd])?void 0:r)===Ed||void 0===r))return gd(i,s,u);for(n=new(void 0===r?Ed:r)(bd(u-s,0)),o=0;s<u;s++,o++)s in i&&md(n,o,i[s]);return n.length=o,n}}),p.some),Rd=(C({target:"Array",proto:!0,forced:!ql("some")},{some:function(e){return Td(this,e,1<arguments.length?arguments[1]:void 0)}}),Kn),Od=_,_d=Vl,Cd=Array,Sd=Math.max,Nd=Wl,Ad=Math.floor,a=Jl,N=Rr.match(/firefox\/(\d+)/i),mc=!!N&&+N[1],yc=/MSIE|Trident/.test(Rr),so=Rr.match(/AppleWebKit\/(\d+)\./),us=!!so&&+so[1],T=C,A=e,Id=rr,kd=g,xd=_,Pd=Gl,Dd=Fi,Ka=v,Md=a,Ku=ql,Ud=mc,jd=yc,Ld=Or,Fd=us,Vd=[],Hd=A(Vd.sort),Kd=A(Vd.push),Lc=Ka(function(){Vd.sort(void 0)}),en=Ka(function(){Vd.sort(null)}),c=Ku("sort"),zd=!Ka(function(){if(Ld)return Ld<70;if(!(Ud&&3<Ud)){if(jd)return!0;if(Fd)return Fd<603;for(var e,t,r,n="",o=65;o<76;o++){switch(e=String.fromCharCode(o),o){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++)Vd.push({k:e+r,v:t})}for(Vd.sort(function(e,t){return t.v-e.v}),r=0;r<Vd.length;r++)e=Vd[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),Xr=(T({target:"Array",proto:!0,forced:Lc||!en||!c||!zd},{sort:function(e){void 0!==e&&Id(e);var t=kd(this);if(zd)return void 0===e?Hd(t):Hd(t,e);for(var r,n,o=[],i=xd(t),a=0;a<i;a++)a in t&&Kd(o,t[a]);for(Md(o,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:Dd(e)>Dd(t)?1:-1})),r=o.length,a=0;a<r;)t[a]=o[a++];for(;a<i;)Pd(t,a++);return t}}),Ms("Array"),C),Gd=g,Bd=Kn,qd=Hn,$d=_,Xd=Hl,Yd=Kl,Wd=Vl,Jd=Gl,qa=zl("splice"),Zd=Math.max,Qd=Math.min,I=(Xr({target:"Array",proto:!0,forced:!qa},{splice:function(e,t){var r,n,o,i,a,s,u=Gd(this),c=$d(u),l=Bd(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,Qd(Zd(qd(t),0),c-l)),Xd(c+r-n),o=Yd(u,n),i=0;i<n;i++)(a=l+i)in u&&Wd(o,i,u[a]);if(r<(o.length=n)){for(i=l;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:Jd(u,s);for(i=c;c-n+r<i;i--)Jd(u,i-1)}else if(n<r)for(i=c-n;l<i;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:Jd(u,s);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return u.length=c-n+r,o}}),x("flat"),x("flatMap"),C),eh=g,th=_,rh=Gl,nh=Hl,S=1!==[].unshift(0),N=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),Rr=(I({target:"Array",proto:!0,arity:1,forced:S||N},{unshift:function(e){var t=eh(this),r=th(t),n=arguments.length;if(n){nh(r+n);for(var o=r;o--;){var i=o+n;o in t?t[i]=t[o]:rh(t,i)}for(var a=0;a<n;a++)t[a]=arguments[a]}return t.length=r+n}}),i.Array,{exports:{}}),so={},oh=Wt,ih=Zt,ah=b.f,sh=Wl,uh="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=(so.f=function(e){if(!uh||"Window"!=oh(e))return ah(ih(e));var t=e;try{return ah(t)}catch(t){return sh(uh)}},v(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),mc=v,ch=Qt,lh=Wt,fh=a,ph=Object.isExtensible,yc=mc(function(){ph(1)})||fh?function(e){return!!ch(e)&&(!fh||"ArrayBuffer"!=lh(e))&&(!ph||ph(e))}:ph,Or=!v(function(){return Object.isExtensible(Object.preventExtensions({}))}),dh=C,hh=e,us=to,yh=Qt,vh=$r,mh=Zr.f,gh=b,wh=so,Eh=yc,bh=Or,Th=!1,Rh=ir("meta"),Oh=0,_h=Rr.exports={enable:function(){_h.enable=function(){},Th=!0;var o=gh.f,i=hh([].splice),e={};e[Rh]=1,o(e).length&&(gh.f=function(e){for(var t=o(e),r=0,n=t.length;r<n;r++)if(t[r]===Rh){i(t,r,1);break}return t},dh({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:wh.f}))},fastKey:function(e,t){if(!yh(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!vh(e,Rh)){if(!Eh(e))return"F";if(!t)return"E";Zl(e)}return e[Rh].objectID},getWeakData:function(e,t){if(!vh(e,Rh)){if(!Eh(e))return!0;if(!t)return!1;Zl(e)}return e[Rh].weakData},onFreeze:function(e){return bh&&Th&&Eh(e)&&!vh(e,Rh)&&Zl(e),e}},Ch=(us[Rh]=!0,m),Sh=Qt,Nh=Ti,A=C,Ku=d,Ah=e,Ka=co,Ih=Vn,T=Rr.exports,kh=Li,xh=Us,Lc=m,Ph=Qt,en=v,c=Fc,Xr=is,Dh=Vn,Mh=Zr.f,Uh=Ri,jh=Ql,Lh=xi,Fh=Us,Vh=Li,Hh=ss,Kh=Ms,zh=n,Gh=Rr.exports.fastKey,Bh=E.set,qh=E.getterFor;function $h(e){var r=Ah(af[e]);Ih(af,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(rf&&!Ph(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return rf&&!Ph(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(rf&&!Ph(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}qa=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},I={getConstructor:function(e,r,n,o){function i(e,t,r){var n,o=u(e),i=a(e,t);return i?i.value=r:(o.last=i={index:n=Gh(t,!0),key:t,value:r,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),zh?o.size++:e.size++,"F"!==n&&(o.index[n]=i)),e}function a(e,t){var r,e=u(e),n=Gh(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){Fh(e,s),Bh(e,{type:r,index:Uh(null),first:void 0,last:void 0,size:0}),zh||(e.size=0),null!=t&&Vh(t,e[o],{that:e,AS_ENTRIES:n})}),s=e.prototype,u=qh(r);return jh(s,{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,zh?e.size=0:this.size=0},delete:function(e){var t,r,n=u(this),e=a(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),zh?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=Lh(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!!a(this,e)}}),jh(s,n?{get:function(e){e=a(this,e);return e&&e.value},set:function(e,t){return i(this,0===e?0:e,t)}}:{add:function(e){return i(this,e=0===e?0:e,e)}}),zh&&Mh(s,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",o=qh(t),i=qh(n);Hh(e,t,function(e,t){Bh(this,{type:n,target:e,state:o(e),kind:t,last:void 0})},function(){for(var e=i(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),Kh(t)}},tf=-1!==(S="Map").indexOf("Map"),rf=-1!==S.indexOf("Weak"),nf=tf?"set":"add",of=Ku.Map,af=of&&of.prototype,N={},Ka(S,!Lc(sf=of)||!(rf||af.forEach&&!en(function(){(new of).entries().next()})))?(sf=I.getConstructor(qa,S,tf,nf),T.enable()):Ka(S,!0)&&(i=(ef=new sf)[nf](rf?{}:-0,1)!=ef,a=en(function(){ef.has(1)}),mc=c(function(e){new of(e)}),to=!rf&&en(function(){for(var e=new of,t=5;t--;)e[nf](t,t);return!e.has(-0)}),mc||(((sf=qa(function(e,t){xh(e,af);r=new of,e=e,n=sf,Nh&&Ch(e=e.constructor)&&e!==n&&Sh(e=e.prototype)&&e!==n.prototype&&Nh(r,e);var r,n=r;return null!=t&&kh(t,n[nf],{that:n,AS_ENTRIES:tf}),n})).prototype=af).constructor=sf),(a||to)&&($h("delete"),$h("has"),tf&&$h("get")),(to||i)&&$h(nf),rf&&af.clear&&delete af.clear),N.Map=sf,A({global:!0,constructor:!0,forced:sf!=of},N),Xr(sf,S),rf||I.setStrong(sf,S,tf);function Xh(e,t){for(var r=0,n=Zh(t),o=new e(n);r<n;)o[r]=t[r++];return o}function Yh(e,t,r,n){for(var o,i,a,s=ty(e),u=ey(s),c=Qh(t,r),l=oy(null),f=ny(u),p=0;p<f;p++)a=u[p],(i=ry(c(a,p,s)))in l?sy(l[i],a):l[i]=[a];if(n&&(o=n(s))!==ay)for(i in l)l[i]=iy(o,l[i]);return l}function Wh(e){for(var t,r,n=py(this),o=fy(n),i=ly(e,1<arguments.length?arguments[1]:void 0),a=new hy,s=dy(o),u=0;u<s;u++)t=i(r=o[u],u,n),vy(a,t)?gy(yy(a,t),r):my(a,t,[r]);return a}function Jh(e){return Ty[e].prototype}var Zh=_,Qh=xi,ey=cr,ty=g,ry=ar,ny=_,oy=Ri,iy=Xh,ay=Array,sy=e([].push),uy=Yh,$r=x,cy=(C({target:"Array",proto:!0},{group:function(e){return uy(this,e,1<arguments.length?arguments[1]:void 0)}}),$r("group"),Yh),b=x,ly=(C({target:"Array",proto:!0,forced:!ql("groupBy")},{groupBy:function(e){return cy(this,e,1<arguments.length?arguments[1]:void 0)}}),b("groupBy"),xi),so=e,fy=cr,py=g,dy=_,hy=er("Map"),yc=hy.prototype,yy=so(yc.get),vy=so(yc.has),my=so(yc.set),gy=so([].push),Or=x,us=Wh,Ti=(C({target:"Array",proto:!0,name:"groupToMap",forced:!ql("groupByToMap")},{groupByToMap:us}),Or("groupByToMap"),x),wy=(C({target:"Array",proto:!0},{groupToMap:Wh}),Ti("groupToMap"),_),Ey=Zt,co=x,by=Array,Ty=(C({target:"Array",proto:!0},{toReversed:function(){for(var e=Ey(this),t=by,r=wy(e),n=new t(r),o=0;o<r;o++)n[o]=e[r-o-1];return n}}),co("toReversed"),d),Rr=C,Ry=rr,Oy=Zt,_y=Xh,Ku=x,Cy=Array,Sy=e(Jh("Array").sort),Ka=(Rr({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&Ry(e);var t=Oy(this),t=_y(Cy,t);return Sy(t,e)}}),Ku("toSorted"),C),c=x,Ny=Hl,Ay=_,Iy=Kn,ky=Zt,xy=Hn,Py=Array,Dy=Math.max,My=Math.min,Uy=(Ka({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,o,i,a=ky(this),s=Ay(a),u=Iy(e,s),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,s-u):(r=e-2,My(Dy(xy(t),0),s-u)),o=Ny(s+r-n),i=Py(o);c<u;c++)i[c]=a[c];for(;c<u+r;c++)i[c]=arguments[c-u+2];for(;c<o;c++)i[c]=a[c+n-r];return i}}),c("toSpliced"),_),jy=Hn,Ly=RangeError,Fy=Zt,Vy=Array;C({target:"Array",proto:!0},{with:function(e,t){var r=Fy(this),n=Vy,o=t,i=Uy(r),a=(e=jy(e))<0?i+e:e;if(i<=a||a<0)throw Ly("Incorrect index");for(var s=new n(i),u=0;u<i;u++)s[u]=u===a?o:r[u];return s}});en=d,mc=Hr,qa=m,a=O,to=Vn,i=w("asyncIterator"),A=en.AsyncIterator,N=mc.AsyncIteratorPrototype;if(N)sm=N;else if(qa(A))sm=A.prototype;else if(mc.USE_FUNCTION_CONSTRUCTOR||en.USE_FUNCTION_CONSTRUCTOR)try{am=a(a(a(Function("return async function*(){}()")()))),a(am)===Object.prototype&&(sm=am)}catch(Xg){}qa((sm=sm||{})[i])||to(sm,i,function(){return this});function Hy(e,t,r){var n=e.done;Wy.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function Ky(e){Jy(this,{type:"AsyncFromSyncIterator",iterator:Xy(e),next:e.next})}function zy(e,t,r,n){try{var o=cv(e,"return");if(o)return uv("Promise").resolve(sv(o,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function Gy(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,a,s){var e={iterator:e,next:iv(av(e).next)},u=hv("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==a;return!f&&p||fv(a),new u(function(r,n){var o=function(e){zy(c,n,e,n)},i=function(){try{if(p&&f)try{dv(l)}catch(e){o(e)}u.resolve(pv(lv(t,c))).then(function(e){try{if(pv(e).done)p?(s.length=l,r(s)):r(!y&&(h||void 0));else{var t=e.value;try{f?u.resolve(p?a(t,l):a(t)).then(function(e){if(d)i();else if(h)e?i():zy(c,r,!1,n);else if(p)try{s[l++]=e,i()}catch(e){o(e)}else e?zy(c,r,y||t,n):i()},o):(s[l++]=t,i())}catch(e){o(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};i()})}}function By(e,t){if(!Av||!Nv(e)||!Av(e))return!1;for(var r,n=0,o=e.length;n<o;)if(!("string"==typeof(r=e[n++])||t&&void 0===r))return!1;return 0!==o}function qy(e,t,r){r.get&&Iv(r.get,t,{getter:!0}),r.set&&Iv(r.set,t,{setter:!0}),kv.f(e,t,r)}var $y=o,Xy=ur,Xr=Ri,Yy=nr,I=Ql,S=E,$r=sm,Wy=er("Promise"),Jy=S.set,Zy=S.getterFor("AsyncFromSyncIterator"),b=(Ky.prototype=I(Xr($r),{next:function(){var n=Zy(this);return new Wy(function(e,t){var r=Xy($y(n.next,n.iterator));Hy(r,e,t)})},return:function(){var n=Zy(this).iterator;return new Wy(function(e,t){var r=Yy(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=Xy($y(r,n));Hy(r,e,t)})}}),Ky),Qy=o,ev=b,tv=ur,rv=Mi,nv=nr,ov=w("asyncIterator"),iv=rr,av=ur,sv=o,uv=er,cv=nr,lv=o,fv=rr,pv=ur,dv=Hl,hv=er,cr={toArray:Gy(0),forEach:Gy(1),every:Gy(2),some:Gy(3),find:Gy(4)},yv=xi,vv=g,mv=k,gv=Mi,wv=Di,Ev=nr,yc=Jh,bv=er,Tv=b,Rv=cr.toArray,Ov=w("asyncIterator"),_v=yc("Array").values,Cv=(C({target:"Array",stat:!0,forced:!0},{fromAsync:function(i){var a=this,e=arguments.length,s=1<e?arguments[1]:void 0,u=2<e?arguments[2]:void 0;return new(bv("Promise"))(function(e){var t=vv(i),r=(void 0!==s&&(s=yv(s,u)),Ev(t,Ov)),n=r?void 0:wv(t)||_v,o=mv(a)?new a:[],r=r?function(e,t){t=arguments.length<2?nv(e,ov):t;return t?tv(Qy(t,e)):new ev(rv(e))}(t,r):new Tv(gv(t,n));e(Rv(r,s,o))})}}),p.filterReject),so=x,Sv=(C({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return Cv(this,e,1<arguments.length?arguments[1]:void 0)}}),so("filterOut"),p.filterReject),us=x,Or=(C({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return Sv(this,e,1<arguments.length?arguments[1]:void 0)}}),us("filterReject"),C),Nv=P,Av=Object.isFrozen,Iv=(Or({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!By(e,!0))return!1;var t=e.raw;return t.length===e.length&&By(t,!1)}}),R.exports),kv=Zr,Ti=x,xv=g,Pv=_,co=(n&&(qy(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=xv(this),t=Pv(e);return 0==t?void 0:e[t-1]},set:function(e){var t=xv(this),r=Pv(t);return t[0==r?0:r-1]=e}}),Ti("lastItem")),x),Dv=g,Mv=_,Rr=(n&&(qy(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=Dv(this),e=Mv(e);return 0==e?0:e-1}}),co("lastIndex")),e),Uv=rr,jv=_,Lv=g,Fv=Kl,Vv=er("Map"),Ku=Vv.prototype,Hv=Rr(Ku.forEach),Kv=Rr(Ku.has),zv=Rr(Ku.set),Gv=Rr([].push),Ka=x;C({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=Lv(this),o=jv(n),i=Fv(n,0),a=new Vv,s=null!=e?Uv(e):function(e){return e},u=0;u<o;u++)r=s(t=n[u]),Kv(a,r)||zv(a,r,t);return Hv(a,function(e){Gv(i,e)}),i}}),Ka("uniqueBy");Ag.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},Ag.prototype.refresh=function(){this.stop(),this.start()},Ag.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var Bv,qv=Ag,$v=(Ng.prototype.start=function(){this.started=!0},Ng.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},Ng.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},Ng.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},Ng.prototype.close=function(){this.stop()},Ng),Xv=(Sg.prototype.isClientError=function(e){return!!(e&&400<=e.statusCode&&e.statusCode<500)},Sg.prototype.drainRepository=function(i){var e=this;return new Promise(function(o){return V(e,void 0,void 0,function(){var t,r,n=this;return H(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?i?this.eventDispatcher.dispatchXhrOrBeacon(t,function(){var e;o(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?o(null==(e=n.repository)?void 0:e.delete(t)):o()}):this.eventDispatcher.dispatch(t,function(){var e;o(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?o(null==(e=n.repository)?void 0:e.delete(t)):o()}):o(),[2]}})})})},Sg.prototype.drainQueue=function(o,i){var e=this,a=o.map(function(e){return e.toDto()});return new Promise(function(n){return V(e,void 0,void 0,function(){var t,r=this;return H(this,function(e){return 0===o.length?n():i?(null!=(t=this.repository)&&t.add(a),this.eventDispatcher.dispatchXhrOrBeacon(o,function(){var e;n(null==(e=r.repository)?void 0:e.delete(a))},function(e){r.isClientError(e)?n(null==(e=r.repository)?void 0:e.delete(a)):n()})):this.eventDispatcher.dispatch(o,function(){n()},function(e){r.isClientError(e)?n():n(null==(e=r.repository)?void 0:e.add(a))}),[2]})})})},Sg.prototype.process=function(e){this.queue.enqueue(e)},Sg.prototype.start=function(){return V(this,void 0,void 0,function(){return H(this,function(e){return this.queue.start(),[2]})})},Sg.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},Sg.prototype.flush=function(){this.queue.flush()},Sg.prototype.close=function(){this.stop()},Sg),Yv=(Cg.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]})},Cg),Wv=(_g.prototype.process=function(e){this.exposureEventDedupDeterminer.isDedupTarget(e)||this.delegate.process(e)},_g.prototype.close=function(){this.delegate.close()},_g.prototype.flush=function(){this.delegate.flush()},_g.prototype.start=function(){return this.delegate.start()},_g),Jv=(Og.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!ht.isExposure(e))return!1;Yv.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)},Og),Zv=(Rg.toEvent=function(e){var t;return{key:Rg.EVENT_KEY,properties:{level:Rg.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:Rg._stacktrace(e)}}},Rg._stacktrace=function(e){return s.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,Rg.STACK_TRACK_LIMIT).join("\n")},Rg.EVENT_KEY="$trace",Rg.LEVEL_ERROR="error",Rg.STACK_TRACK_LIMIT=30,Rg),Qv=K.log,em=(Tg.prototype._experiment=function(e,t,r){if(!e)return Qv.error("experimentKey must not be empty"),pe.of(r,u.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return Qv.warn("SDK not ready."),pe.of(r,u.SDK_NOT_READY);e=n.getExperimentOrNull(e);if(!e)return Qv.warn("Experiment does not exist."),pe.of(r,u.EXPERIMENT_NOT_FOUND);n=this.evaluator.evaluate(n,e,t,r),this.eventProcessor.process(ht.exposure(e,t,n)),e=null!=(r=n.config)?r:new ye;return pe.of(n.variationKey,n.reason,e)},Tg.prototype._featureFlag=function(e,t){if(!e)return Qv.error("featureKey must not be empty"),de.off(u.INVALID_INPUT);var r=this.workspaceFetcher.get();if(!r)return Qv.warn("SDK not ready."),de.off(u.SDK_NOT_READY);var e=r.getFeatureFlagOrNull(e);if(!e)return Qv.warn("FeatureFlag does not exist."),de.off(u.FEATURE_FLAG_NOT_FOUND);r=this.evaluator.evaluate(r,e,t,"A"),this.eventProcessor.process(ht.exposure(e,t,r)),t=null!=(e=r.config)?e:new ye;return"A"===r.variationKey?de.off(r.reason,t):de.on(r.reason,t)},Tg.prototype._track=function(e,t){var r;e?"object"==typeof e?"object"!=typeof e||e.key&&"string"==typeof e.key?(r=(null==(r=this.workspaceFetcher.get())?void 0:r.getEventTypeOrNull(e.key))||new J(0,e.key),this.eventProcessor.process(ht.track(r,e,t))):Qv.warn("Event key must be not null. or event key must be string type."):Qv.warn("Event must be event type."):Qv.warn("event must not be null.")},Tg.prototype._trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=Zv.toEvent(e),this._flush(),this._track(e,t),this._flush())},Tg.prototype._flush=function(){this.eventProcessor.flush()},Tg.prototype._remoteConfig=function(e,t,r,n){var o=this.workspaceFetcher.get();if(s.isNullOrUndefined(o))return Qv.warn("SDK not ready."),fe.of(n,u.SDK_NOT_READY);e=o.getRemoteConfigParameterOrNull(e);if(s.isNullOrUndefined(e))return Qv.warn("Remote config parameter does not exist."),fe.of(n,u.REMOTE_CONFIG_PARAMETER_NOT_FOUND);o=this.evaluator.remoteConfigEvaluate(o,e,t,r,n);return this.eventProcessor.process(ht.remoteConfig(e,t,o)),fe.of(o.value,o.reason)},Tg.prototype._onReady=function(e,t){this._onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},Tg.prototype._onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(Qv.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?Qv.debug("HackleClient onInitialized Success"):e.error instanceof Error?Qv.error("HackleClient onInitialized Failed. ".concat(e.error.message)):Qv.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},Tg.prototype._close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},Tg),tm=(bg.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},bg.prototype._isSameError=function(e,t){return!s.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},bg),rm=(Eg.of=function(e,t,r,n){t=t._getVariationByKeyOrNull(r);return s.isNotNullOrUndefined(t)?Eg.withVariation(e,t,n):new Eg(void 0,r,n,void 0)},Eg.withVariation=function(e,t,r){e=this.config(e,t);return new Eg(t.id,t.key,r,e)},Eg.config=function(e,t){if(!s.isNullOrUndefined(t.parameterConfigurationId))return s.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},Eg),nm=(wg.withRemoteConfigParameterValue=function(e,t,r,n,o){var i=null;switch(r){case"STRING":"string"==typeof e.rawValue&&(i=e.rawValue);break;case"NUMBER":"number"==typeof e.rawValue&&(i=e.rawValue);break;case"BOOLEAN":"boolean"==typeof e.rawValue&&(i=e.rawValue)}return s.isNotNullOrUndefined(i)?(o.returnValue=i,new wg(e.id,i,t,o)):new wg(void 0,o.returnValue=n,u.TYPE_MISMATCH,o)},wg),om=(gg.prototype.evaluate=function(e,t,r,n){return this.evaluationFlowFactory.getFlow(t.type).evaluate(e,t,r,n)},gg.prototype.remoteConfigEvaluate=function(e,t,r,n,o){var i={};if(i.requestValueType=n,i.requestDefaultValue=o,s.isNullOrUndefined(r.identifiers[t.identifierType]))return new nm(void 0,o,u.IDENTIFIER_NOT_FOUND,i);e=this.evaluationFlowFactory.getRemoteConfigParameterTargetRuleDeterminer().determineTargetRuleOrNull(e,t,r);return e?(i.targetRuleKey=e.key,i.targetRuleName=e.name,nm.withRemoteConfigParameterValue(e.value,u.TARGET_RULE_MATCH,n,o,i)):nm.withRemoteConfigParameterValue(t.defaultValue,u.DEFAULT_RULE,n,o,i)},gg),im=(mg.prototype.matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n._matches(e,t,r)})},mg.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(e.key.type).matches(e,t,r)},mg),c=(vg.prototype.matches=function(t,e){var r=this.valueMatcherFactory.getMatcher(e.valueType),n=this.operatorMatcherFactory.getMatcher(e.operator),o=e.values.some(function(e){return r.matches(n,t,e)});return this._matches(e.type,o)},vg.prototype._matches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},vg),d=(yg.prototype.booleanMatches=function(e,t){return e===t},yg.prototype.numberMatches=function(e,t){return e===t},yg.prototype.stringMatches=function(e,t){return e===t},yg.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},yg),Hr=(hg.prototype.booleanMatches=function(e,t){return!1},hg.prototype.numberMatches=function(e,t){return!1},hg.prototype.stringMatches=function(e,t){return e.includes(t)},hg.prototype.versionMatches=function(e,t){return!1},hg),O=(dg.prototype.booleanMatches=function(e,t){return!1},dg.prototype.numberMatches=function(e,t){return!1},dg.prototype.stringMatches=function(e,t){return e.startsWith(t)},dg.prototype.versionMatches=function(e,t){return!1},dg),N=(pg.prototype.booleanMatches=function(e,t){return!1},pg.prototype.numberMatches=function(e,t){return!1},pg.prototype.stringMatches=function(e,t){return e.endsWith(t)},pg.prototype.versionMatches=function(e,t){return!1},pg),A=(fg.prototype.booleanMatches=function(e,t){return!1},fg.prototype.numberMatches=function(e,t){return t<e},fg.prototype.stringMatches=function(e,t){return!1},fg.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},fg),mc=(lg.prototype.booleanMatches=function(e,t){return!1},lg.prototype.numberMatches=function(e,t){return t<=e},lg.prototype.stringMatches=function(e,t){return!1},lg.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},lg),en=(cg.prototype.booleanMatches=function(e,t){return!1},cg.prototype.numberMatches=function(e,t){return e<t},cg.prototype.stringMatches=function(e,t){return!1},cg.prototype.versionMatches=function(e,t){return e.isLessThan(t)},cg),a=(ug.prototype.booleanMatches=function(e,t){return!1},ug.prototype.numberMatches=function(e,t){return e<=t},ug.prototype.stringMatches=function(e,t){return!1},ug.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},ug),am=(sg.prototype.getMatcher=function(e){switch(e){case"IN":return sg.IN_MATCHER;case"CONTAINS":return sg.CONTAINS_MATCHER;case"STARTS_WITH":return sg.STARTS_WITH_MATCHER;case"ENDS_WITH":return sg.ENDS_WITH_MATCHER;case"GT":return sg.GT_MATCHER;case"GTE":return sg.GTE_MATCHER;case"LT":return sg.LT_MATCHER;case"LTE":return sg.LTE_MATCHER}},sg.IN_MATCHER=new d,sg.CONTAINS_MATCHER=new Hr,sg.STARTS_WITH_MATCHER=new O,sg.ENDS_WITH_MATCHER=new N,sg.GT_MATCHER=new A,sg.GTE_MATCHER=new mc,sg.LT_MATCHER=new en,sg.LTE_MATCHER=new a,sg),qa=(ag.prototype.matches=function(e,t,r){return"string"==typeof t&&"string"==typeof r&&e.stringMatches(t,r)},ag),to=(ig.prototype.matches=function(e,t,r){return"number"==typeof t&&"number"==typeof r&&e.numberMatches(t,r)},ig),i=(og.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},og),Ri=(ng.prototype.matches=function(e,t,r){t=Me.tryParse(t),r=Me.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},ng),E=(rg.prototype.getMatcher=function(e){switch(e){case"STRING":case"JSON":return rg.STRING_MATCHER;case"NUMBER":return rg.NUMBER_MATCHER;case"BOOLEAN":return rg.BOOLEAN_MATCHER;case"VERSION":return rg.VERSION_MATCHER}},rg.STRING_MATCHER=new qa,rg.NUMBER_MATCHER=new to,rg.BOOLEAN_MATCHER=new i,rg.VERSION_MATCHER=new Ri,rg),sm=(tg.prototype.matches=function(e,t,r){r=this.userValueResolver.resolveOrNull(r,e.key);return!s.isNullOrUndefined(r)&&this.valueOperatorMatcher.matches(r,e.match)},tg),S=(eg.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":throw new Error("Unsupported TargetKeyType [".concat(t.type,"]"))}},eg),I=(Qm.prototype.matches=function(e,t,r){var n=this;if("SEGMENT"!=e.key.type)throw new Error("Unsupported TargetKeyType [".concat(e.key.type,"]"));var o=e.match.values.some(function(e){return n._matches(e,t,r)});switch(e.match.type){case"MATCH":return o;case"NOT_MATCH":return!o}},Qm.prototype._matches=function(e,t,r){if("string"!=typeof e)throw new Error("SegmentKey[".concat(e,"]"));var n=t.getSegmentOrNull(e);if(n)return this.segmentMatcher.matches(n,t,r);throw new Error("Segment[".concat(e,"]"))},Qm),Xr=(Zm.prototype.matches=function(e,t,r){var n=this;return e.targets.some(function(e){return n._matches(e,t,r)})},Zm.prototype._matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(e,t,r)})},Zm),um=(Jm.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return Jm.USER_CONDITION_MATCHER;case"SEGMENT":return Jm.SEGMENT_CONDITION_MATCHER}},Jm.USER_CONDITION_MATCHER=new sm(new S,new c(new E,new am)),Jm.SEGMENT_CONDITION_MATCHER=new I(new Xr(Jm.USER_CONDITION_MATCHER)),Jm),cm=(Wm.prototype.resolveOrNull=function(e,t,r,n){switch(e.type){case"VARIATION":return this._resolveVariation(e,r);case"BUCKET":return this._resolveBucket(e,t,r,n)}},Wm.prototype._resolveVariation=function(e,t){return t._getVariationByIdOrNull(e.variationId)},Wm.prototype._resolveBucket=function(e,t,r,n){t=t.getBucketOrNull(e.bucketId),e=n.identifiers[r.identifierType];if(e){n=this.bucketer.bucketing(t,e);if(n)return r._getVariationByIdOrNull(n.variationId)}},Wm),lm={murmurhash3_x86_32:function(e,t,r,n){for(var o,i=3432918353,a=461845907,s=-4&(n=void 0===n?e.length:n),u=t,c=0;c<s;c+=4)o=255&e.charCodeAt(c)|(255&e.charCodeAt(c+1))<<8|(255&e.charCodeAt(c+2))<<16|(255&e.charCodeAt(c+3))<<24,o=(131071&(o=this.mul32(o,i)))<<15|o>>>17,u=5*((524287&(u^=o=this.mul32(o,a)))<<13|u>>>19)+3864292196|0;switch(o=0,n%4){case 3:o=(255&e.charCodeAt(2+s))<<16;case 2:o|=(255&e.charCodeAt(1+s))<<8;case 1:o|=255&e.charCodeAt(s),o=(131071&(o=this.mul32(o,i)))<<15|o>>>17,u^=o=this.mul32(o,a)}return u=this.mul32(u=(u^=n)^u>>>16,2246822507),(u=this.mul32(u^=u>>>13,3266489909))^u>>>16},mul32:function(e,t){var r=65535&t;return((t-r)*e|0)+(r*e|0)|0}},fm=(Ym.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},Ym.prototype.calculateSlotNumber=function(e,t,r){r=lm.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},Ym),pm=(Xm.prototype.evaluate=function(e,t,r,n){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,r,n,this.nextFlow):rm.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},Xm.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new Xm,n=0,o=e.reverse();n<o.length;n++)r=new Xm(o[n],r);return r},Xm),dm=($m.prototype.evaluate=function(e,t,r,n,o){var i=this.overrideResolver.resolveOrNull(e,t,r);if(!i)return o.evaluate(e,t,r,n);switch(t.type){case"AB_TEST":return rm.withVariation(e,i,u.OVERRIDDEN);case"FEATURE_FLAG":return rm.withVariation(e,i,u.INDIVIDUAL_TARGET_MATCH)}},$m),hm=(qm.prototype.evaluate=function(e,t,r,n,o){return"DRAFT"===t.status?rm.of(e,t,n,u.EXPERIMENT_DRAFT):o.evaluate(e,t,r,n)},qm),ym=(Bm.prototype.evaluate=function(e,t,r,n,o){if("PAUSED"!==t.status)return o.evaluate(e,t,r,n);switch(t.type){case"AB_TEST":return rm.of(e,t,n,u.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return rm.of(e,t,n,u.FEATURE_FLAG_INACTIVE)}},Bm),vm=(Gm.prototype.evaluate=function(e,t,r,n,o){if("COMPLETED"!==t.status)return o.evaluate(e,t,r,n);o=t._winnerVariationOrNull();if(o)return rm.withVariation(e,o,u.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(t.id,"]"))},Gm),mm=(zm.prototype.evaluate=function(e,t,r,n,o){if("AB_TEST"!==t.type)throw new Error("experiment type must be AB_TEST [".concat(t.id,"]"));return this.experimentTargetDeterminer.isUserInExperimentTarget(e,t,r)?o.evaluate(e,t,r,n):rm.of(e,t,n,u.NOT_IN_EXPERIMENT_TARGET)},zm),gm=(Km.prototype.evaluate=function(e,t,r,n,o){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("AB_TEST"!==t.type)throw new Error("experiment type must be AB_TEST [".concat(t.id,"]"));r=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);return r?r.isDropped?rm.of(e,t,n,u.VARIATION_DROPPED):rm.withVariation(e,r,u.TRAFFIC_ALLOCATED):rm.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},Km),wm=(Hm.prototype.evaluate=function(e,t,r,n,o){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("FEATURE_FLAG"!==t.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(t.id,"]"));if(!r.identifiers[t.identifierType])return o.evaluate(e,t,r,n);var i=this.targetRuleDeterminer.determineTargetRuleOrNull(e,t,r);if(!i)return o.evaluate(e,t,r,n);o=this.actionResolver.resolveOrNull(i.action,e,t,r);if(o)return rm.withVariation(e,o,u.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},Hm),Em=(Vm.prototype.evaluate=function(e,t,r,n,o){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("FEATURE_FLAG"!==t.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(t.id,"]"));if(!r.identifiers[t.identifierType])return rm.of(e,t,n,u.DEFAULT_RULE);n=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);if(n)return rm.withVariation(e,n,u.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},Vm),bm=(Fm.prototype.evaluate=function(e,t,r,n,o){var i=t.containerId;if(!i)return o.evaluate(e,t,r,n);var a=e.getContainerOrNull(i);if(!a)throw new Error("container[".concat(i,"]"));i=e.getBucketOrNull(a.bucketId);if(i)return this.containerResolver.isUserInContainerGroup(a,i,t,r)?o.evaluate(e,t,r,n):rm.of(e,t,n,u.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("bucket[".concat(a.bucketId,"]"))},Fm),Tm=(Lm.prototype.evaluate=function(e,t,r,n,o){return r.identifiers[t.identifierType]?o.evaluate(e,t,r,n):rm.of(e,t,n,u.IDENTIFIER_NOT_FOUND)},Lm),Rm=(jm.prototype.isUserInExperimentTarget=function(t,e,r){var n=this;return 0===e.targetAudiences.length||e.targetAudiences.some(function(e){return n.targetMatcher.matches(e,t,r)})},jm),Om=(Um.prototype.determineTargetRuleOrNull=function(t,e,r){var n=this;return e.targetRules.find(function(e){return n.targetMatcher.matches(e.target,t,r)})},Um),_m=(Mm.prototype.resolveOrNull=function(e,t,r){return this._resolveUserOverride(t,r)||this._resolveSegmentOverride(e,t,r)},Mm.prototype._resolveUserOverride=function(e,t){t=t.identifiers[e.identifierType];if(t){t=e.userOverrides.get(t);if(t)return e._getVariationByIdOrNull(t)}},Mm.prototype._resolveSegmentOverride=function(t,e,r){var n=this,o=e.segmentOverrides.find(function(e){return n.targetMatcher.matches(e.target,t,r)});if(o)return this.actionResolver.resolveOrNull(o.action,t,e,r)},Mm),Cm=(Dm.prototype.isUserInContainerGroup=function(e,t,r,n){n=n.identifiers[r.identifierType];if(!n)return!1;t=this.bucketer.bucketing(t,n);if(!t)return!1;n=e.getGroupOrNull(t.variationId);if(n)return n.experiments.includes(r.id);throw new Error("ContainerGroup[".concat(t.variationId,"]"))},Dm),Sm=(Pm.prototype.determineTargetRuleOrNull=function(t,r,n){var o=this;return r.targetRules.find(function(e){return o.matches(e,t,r,n)})},Pm.prototype.matches=function(e,t,r,n){if(!this.targetMatcher.matches(e.target,t,n))return!1;n=n.identifiers[r.identifierType];if(s.isNullOrUndefined(n))return!1;r=t.getBucketOrNull(e.bucketId);if(s.isNullOrUndefined(r))throw new Error("bucket[".concat(e.bucketId,"]"));return s.isNotNullOrUndefined(this.bucketer.bucketing(r,n))},Pm),Nm=(xm.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},xm.prototype.getRemoteConfigParameterTargetRuleDeterminer=function(){return this.remoteConfigParameterTargetRuleDeterminer},xm),Am=(km.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},km.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},km),Im=null;function km(){this._installed=[],this._installations={onerror:Ig,onunhandledrejection:kg}}function xm(){var e=new fm,t=new im(new um),r=new cm(e),n=new _m(t,r),o=new Cm(e);this.abTestFlow=pm.of(new dm(n),new Tm,new bm(o),new mm(new Rm(t)),new hm,new ym,new vm,new gm(r)),this.featureFlagFlow=pm.of(new hm,new ym,new vm,new dm(n),new Tm,new wm(new Om(t),r),new Em(r)),this.remoteConfigParameterTargetRuleDeterminer=new Sm(t,e)}function Pm(e,t){this.targetMatcher=e,this.bucketer=t}function Dm(e){this.bucketer=e}function Mm(e,t){this.targetMatcher=e,this.actionResolver=t}function Um(e){this.targetMatcher=e}function jm(e){this.targetMatcher=e}function Lm(){}function Fm(e){this.containerResolver=e}function Vm(e){this.actionResolver=e}function Hm(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function Km(e){this.actionResolver=e}function zm(e){this.experimentTargetDeterminer=e}function Gm(){}function Bm(){}function qm(){}function $m(e){this.overrideResolver=e}function Xm(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function Ym(){}function Wm(e){this.bucketer=e}function Jm(){}function Zm(e){this.userConditionMatcher=e}function Qm(e){this.segmentMatcher=e}function eg(){}function tg(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function rg(){}function ng(){}function og(){}function ig(){}function ag(){}function sg(){}function ug(){}function cg(){}function lg(){}function fg(){}function pg(){}function dg(){}function hg(){}function yg(){}function vg(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function mg(e){this.conditionMatcherFactory=e}function gg(e){this.evaluationFlowFactory=e}function wg(e,t,r,n){this.valueId=e,this.value=t,this.reason=r,this.properties=n}function Eg(e,t,r,n){this.variationId=e,this.variationKey=t,this.reason=r,this.config=n}function bg(){}function Tg(e,t,r,n){this.workspaceFetcher=e,this.eventProcessor=t,this.evaluator=r,this.errorDedupDeterminer=n,this.workspaceFetcher.start(),this.eventProcessor.start(),this.readyPromise=this.workspaceFetcher.onReady().then(function(){return{success:!0}},function(e){return{success:!1,error:e}})}function Rg(){}function Og(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function _g(e,t){this.delegate=e,this.exposureEventDedupDeterminer=t}function Cg(){}function Sg(e,t,r,n){void 0===n&&(n=null),this.eventDispatcher=e,this.flushInterval=r,this.queue=new $v(this.drainQueue.bind(this),t,r),this.repository=n}function Ng(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new qv({callback:this.flush.bind(this),timeout:r}),this.started=!1}function Ag(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function Ig(i,a){Im=window.onerror,window.onerror=function(e,t,r,n,o){s.isNotNullOrUndefined(o)&&i._trackException(o,a.resolveAnonymousUser()),Im&&Im.apply(this,arguments)}}function kg(r,n){Bv=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.resolveAnonymousUser()),Bv&&Bv.apply(this,arguments)}}Ug.prototype.read=function(){var r=this;return new Promise(function(e){var t=r.storage.getItem(r.storageKey);t&&e(JSON.parse(t)),e([])})},Ug.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()})},Ug.prototype.add=function(t){var r=this;return this.read().then(function(e){return r.save(e.concat(t).slice(-r.maxSize))})},Ug.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)})},Ug.prototype.clear=function(){var t=this;return new Promise(function(e){localStorage.removeItem(t.storageKey),e()})};var xg=Ug,Pg=K.log,Dg=null,Mg={debug:!1,log_disabled:!1,auto_track_page_view:!1,pollingIntervalMillis:-1,exposureEventDedupIntervalMillis:-1,SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.7.0"};function Ug(e,t,r){this.storage=e,this.storageKey=t,this.maxSize=r}function jg(e,t){t=F(F({},Mg),t);if(t.log_disabled?K.setLogLevel(0):t.debug&&K.setLogLevel(4),Pg.debug("sdkKey : "+e),e||Pg.error("SDK Key must not be null"),Dg)return Pg.debug("use already exists hackleClient"),Dg;var r=!1,r=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&Pg.debug("support sendBeacon API"),new Ot(e,ce,{dispatchUrl:"https://event.hackle.io/api/v2/w/events",beaconDispatchUrl:"".concat("https://event.hackle.io/api/v2/w/").concat(e).concat("/events"),useBeacon:r,headers:((r={})["X-HACKLE-SDK-NAME"]=t.SDK_NAME_HEADER,r["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,r)})),n=-1,n=(void 0!==t.pollingIntervalMillis&&"number"==typeof t.pollingIntervalMillis&&0<t.pollingIntervalMillis&&(n=Math.max(t.pollingIntervalMillis,3e4)),new St(e,ce,{fetchUrl:"".concat("https://client-sdk.hackle.io/api/v2/w/").concat(e).concat("/w"),updateInterval:n,headers:((n={})["X-HACKLE-SDK-NAME"]=t.SDK_NAME_HEADER,n["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,n)})),o=-1;void 0!==t.exposureEventDedupIntervalMillis&&"number"==typeof t.exposureEventDedupIntervalMillis&&-1!==t.exposureEventDedupIntervalMillis&&(o=t.exposureEventDedupIntervalMillis<1e3||36e5<t.exposureEventDedupIntervalMillis?(Pg.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis);function i(){u.drainRepository()}var a,s,e=new xg(window.localStorage,"".concat("hackle-repository-storage","_").concat(e),100),u=new Xv(r,100,500,e),r=new Jv(o),e=new Wv(u,r),o=new em(n,e,new om(new Nm),new tm),r=new kt,c=new Xe(o,r);Dg=c,t.auto_track_page_view&&(s=function(){return a.trackPageView({user:{id:Vt()}})},(a=c).onReady(function(){function t(e){if("function"==typeof window.Event)return new Event(e);var t=!1,r=!1,n=void 0,o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t,r,n),o}s();try{history.pushState=(n=history.pushState,function(){try{var e=n.apply(this,arguments);return window.dispatchEvent(t("locationchange")),e}catch(e){if(e instanceof Error)Pg.error(e);else try{Pg.error(e)}catch(e){}}}),history.replaceState=(r=history.replaceState,function(){try{var e=r.apply(this,arguments);return window.dispatchEvent(t("locationchange")),e}catch(e){if(e instanceof Error)Pg.error(e);else try{Pg.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)Pg.error(e);else try{Pg.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{s()}catch(e){if(e instanceof Error)Pg.error(e);else try{Pg.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)Pg.error(t);else try{Pg.error(t)}catch(t){}}var r,n})),(new Am).install(o,r);return document.addEventListener("visibilitychange",function(){document.hidden||i()}),window.addEventListener("pageshow",i),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){Kt(),c.close()}),c}var $r={createInstance:jg,getUserId:Vt,setUserId:Ht,removeUserId:Kt,Logger:K},Lg=(f.Bucket=t.Bucket=W,f.Container=t.Container=Ee,f.ContainerGroup=t.ContainerGroup=ie,f.CoreVersion=t.CoreVersion=Ue,f.Decision=t.Decision=pe,f.DecisionReason=t.DecisionReason=u,f.EmptyHackleRemoteConfig=t.EmptyHackleRemoteConfig=he,f.EmptyParameterConfig=t.EmptyParameterConfig=ye,f.EventType=t.EventType=J,f.Experiment=t.Experiment=ve,f.FeatureFlagDecision=t.FeatureFlagDecision=de,f.IdentifierType=t.IdentifierType=ge,f.IdentifiersBuilder=t.IdentifiersBuilder=we,f.Logger=t.Logger=K,f.MATCH_OPERATORS=t.MATCH_OPERATORS=Ve,f.MATCH_TYPES=t.MATCH_TYPES=Le,f.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=Fe,f.MetaVersion=t.MetaVersion=je,f.ParameterConfiguration=t.ParameterConfiguration=be,f.RemoteConfigDecision=t.RemoteConfigDecision=fe,f.RemoteConfigParameter=t.RemoteConfigParameter=ae,f.RemoteConfigParameterValue=t.RemoteConfigParameterValue=ue,f.RemoteConfigTargetRule=t.RemoteConfigTargetRule=se,f.SEGMENT_TYPES=t.SEGMENT_TYPES=ze,f.Segment=t.Segment=oe,f.Slot=t.Slot=me,f.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=He,f.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=Ke,f.Target=t.Target=Z,f.TargetAction=t.TargetAction=re,f.TargetCondition=t.TargetCondition=Q,f.TargetKey=t.TargetKey=ee,f.TargetMatch=t.TargetMatch=te,f.TargetRule=t.TargetRule=ne,f.TargetingType=t.TargetingType=Ge,f.Variation=t.Variation=Y,f.Version=t.Version=Me,U=t.createInstance=jg,t.default=$r,f.getUserId=t.getUserId=Vt,f.removeUserId=t.removeUserId=Kt,f.setUserId=t.setUserId=Ht,function(){return(Lg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)});function Fg(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}Hg.prototype.variation=function(e,t,r){return this.client.variation(e,t,r)},Hg.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t,r)},Hg.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t)},Hg.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t)},Hg.prototype.track=function(e,t){this.client.track(e,t)},Hg.prototype.trackPageView=function(e){this.client.trackPageView(e)},Hg.prototype.remoteConfig=function(e){return this.client.remoteConfig(e)},Hg.prototype.onReady=function(e,t){this.client.onReady(e,t)},Hg.prototype.onInitialized=function(e){return this.client.onInitialized(e)};var Vg=Hg;function Hg(e,t){this.client=U(e,Lg(Lg({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.7.0"}))}var D={exports:{}},o={},Kg=Object.getOwnPropertySymbols,zg=Object.prototype.hasOwnProperty,Gg=Object.prototype.propertyIsEnumerable;var k=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),o=1;o<arguments.length;o++){for(var i in r=Object(arguments[o]))zg.call(r,i)&&(n[i]=r[i]);if(Kg)for(var a=Kg(r),s=0;s<a.length;s++)Gg.call(r,a[s])&&(n[a[s]]=r[a[s]])}return n},Bg=k,b="function"==typeof Symbol&&Symbol.for,qg=b?Symbol.for("react.element"):60103,$g=b?Symbol.for("react.portal"):60106,cr=b?Symbol.for("react.fragment"):60107,Xg=b?Symbol.for("react.strict_mode"):60108,yc=b?Symbol.for("react.profiler"):60114,Yg=b?Symbol.for("react.provider"):60109,Wg=b?Symbol.for("react.context"):60110,Jg=b?Symbol.for("react.forward_ref"):60112,so=b?Symbol.for("react.suspense"):60113,Zg=b?Symbol.for("react.memo"):60115,Qg=b?Symbol.for("react.lazy"):60116,e0="function"==typeof Symbol&&Symbol.iterator;function t0(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 r0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},n0={};function o0(e,t,r){this.props=e,this.context=t,this.refs=n0,this.updater=r||r0}function i0(){}function a0(e,t,r){this.props=e,this.context=t,this.refs=n0,this.updater=r||r0}o0.prototype.isReactComponent={},o0.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(t0(85));this.updater.enqueueSetState(this,e,t,"setState")},o0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},i0.prototype=o0.prototype;var p=a0.prototype=new i0,s0=(p.constructor=a0,Bg(p,o0.prototype),p.isPureReactComponent=!0,{current:null}),u0=Object.prototype.hasOwnProperty,c0={key:!0,ref:!0,__self:!0,__source:!0};function l0(e,t,r){var n,o={},i=null,a=null;if(null!=t)for(n in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)u0.call(t,n)&&!c0.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===o[n]&&(o[n]=s[n]);return{$$typeof:qg,type:e,key:i,ref:a,props:o,_owner:s0.current}}function f0(e){return"object"==typeof e&&null!==e&&e.$$typeof===qg}var p0=/\/+/g,d0=[];function h0(e,t,r,n){var o;return d0.length?((o=d0.pop()).result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o):{result:e,keyPrefix:t,func:r,context:n,count:0}}function y0(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,d0.length<10&&d0.push(e)}function v0(e,t,r){return null==e?0:function e(t,r,n,o){var i=!1;if(null===(t="undefined"!=(s=typeof t)&&"boolean"!==s?t:null))i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case qg:case $g:i=!0}}if(i)return n(o,t,""===r?"."+m0(t,0):r),1;if(i=0,r=""===r?".":r+":",Array.isArray(t))for(var a=0;a<t.length;a++){var s,u=r+m0(s=t[a],a);i+=e(s,u,n,o)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=e0&&t[e0]||t["@@iterator"])?u:null))for(t=u.call(t),a=0;!(s=t.next()).done;)i+=e(s=s.value,u=r+m0(s,a++),n,o);else if("object"===s)throw n=""+t,Error(t0(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return i}(e,"",t,r)}function m0(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 g0(e,t){e.func.call(e.context,t,e.count++)}function w0(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?E0(e,n,r,function(e){return e}):null!=e&&(f0(e)&&(t=o+(!(o=e).key||t&&t.key===e.key?"":(""+e.key).replace(p0,"$&/")+"/")+r,e={$$typeof:qg,type:o.type,key:t,ref:o.ref,props:o.props,_owner:o._owner}),n.push(e))}function E0(e,t,r,n,o){var i="";v0(e,w0,t=h0(t,i=null!=r?(""+r).replace(p0,"$&/")+"/":i,n,o)),y0(t)}var b0={current:null};function T0(){var e=b0.current;if(null===e)throw Error(t0(321));return e}var R0,O0,_0,us={ReactCurrentDispatcher:b0,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:s0,IsSomeRendererActing:{current:!1},assign:Bg},P=(o.Children={map:function(e,t,r){if(null==e)return e;var n=[];return E0(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;v0(e,g0,t=h0(null,null,t,r)),y0(t)},count:function(e){return v0(e,function(){return null},null)},toArray:function(e){var t=[];return E0(e,t,null,function(e){return e}),t},only:function(e){if(f0(e))return e;throw Error(t0(143))}},o.Component=o0,o.Fragment=cr,o.Profiler=yc,o.PureComponent=a0,o.StrictMode=Xg,o.Suspense=so,o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=us,o.cloneElement=function(e,t,r){if(null==e)throw Error(t0(267,e));var n=Bg({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t)for(s in void 0!==t.ref&&(i=t.ref,a=s0.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)u0.call(t,s)&&!c0.hasOwnProperty(s)&&(n[s]=(void 0===t[s]&&void 0!==u?u:t)[s]);var s=arguments.length-2;if(1===s)n.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];n.children=u}return{$$typeof:qg,type:e.type,key:o,ref:i,props:n,_owner:a}},o.createContext=function(e,t){return(e={$$typeof:Wg,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:Yg,_context:e},e.Consumer=e},o.createElement=l0,o.createFactory=function(e){var t=l0.bind(null,e);return t.type=e,t},o.createRef=function(){return{current:null}},o.forwardRef=function(e){return{$$typeof:Jg,render:e}},o.isValidElement=f0,o.lazy=function(e){return{$$typeof:Qg,_ctor:e,_status:-1,_result:null}},o.memo=function(e,t){return{$$typeof:Zg,type:e,compare:void 0===t?null:t}},o.useCallback=function(e,t){return T0().useCallback(e,t)},o.useContext=function(e,t){return T0().useContext(e,t)},o.useDebugValue=function(){},o.useEffect=function(e,t){return T0().useEffect(e,t)},o.useImperativeHandle=function(e,t,r){return T0().useImperativeHandle(e,t,r)},o.useLayoutEffect=function(e,t){return T0().useLayoutEffect(e,t)},o.useMemo=function(e,t){return T0().useMemo(e,t)},o.useReducer=function(e,t,r){return T0().useReducer(e,t,r)},o.useRef=function(e){return T0().useRef(e)},o.useState=function(e){return T0().useState(e)},o.version="16.14.0",{}),Or=Function.call.bind(Object.prototype.hasOwnProperty),C0=function(){};function S0(e,t,r,n,o){if("production"!==production)for(var i in e)if(_0(e,i)){var a,s;try{if("function"!=typeof e[i])throw(s=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.")).name="Invariant Violation",s;a=e[i](t,i,n,r,null,R0)}catch(e){a=e}!a||a instanceof Error||C0((n||"React class")+": type specification of "+r+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in O0)&&(O0[a.message]=!0,i=o?o():"",C0("Failed "+r+" type: "+a.message+(null!=i?i:"")))}}if("production"!==production&&(R0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",O0={},_0=Or,C0=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),S0.resetWarningCache=function(){"production"!==production&&(O0={})},"production"!==production){var N0=k,A0=S0,R="function"==typeof Symbol&&Symbol.for,I0=R?Symbol.for("react.element"):60103,k0=R?Symbol.for("react.portal"):60106,x0=R?Symbol.for("react.fragment"):60107,P0=R?Symbol.for("react.strict_mode"):60108,D0=R?Symbol.for("react.profiler"):60114,M0=R?Symbol.for("react.provider"):60109,U0=R?Symbol.for("react.context"):60110,j0=R?Symbol.for("react.concurrent_mode"):60111,L0=R?Symbol.for("react.forward_ref"):60112,F0=R?Symbol.for("react.suspense"):60113,V0=R?Symbol.for("react.suspense_list"):60120,H0=R?Symbol.for("react.memo"):60115,K0=R?Symbol.for("react.lazy"):60116,z0=R?Symbol.for("react.block"):60121,G0=R?Symbol.for("react.fundamental"):60117,B0=R?Symbol.for("react.responder"):60118,q0=R?Symbol.for("react.scope"):60119,$0="function"==typeof Symbol&&Symbol.iterator,X0="@@iterator";function Y0(e){if(null===e||"object"!=typeof e)return null;e=$0&&e[$0]||e[X0];return"function"==typeof e?e:null}var W0={current:null},J0={current:null},Z0=/^(.*)[\\\/]/,Q0=1;function ew(e){if(null==e)return null;if("number"==typeof e.tag&&M("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x0:return"Fragment";case k0:return"Portal";case D0:return"Profiler";case P0:return"StrictMode";case F0:return"Suspense";case V0:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case U0:return"Context.Consumer";case M0:return"Context.Provider";case L0:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case H0:return ew(e.type);case z0:return ew(e.render);case K0:r=(t=e)._status===Q0?t._result:null;if(r)return ew(r)}var t,r;return null}var tw={},rw=null;function nw(e){rw=e}tw.getCurrentStack=null,tw.getStackAddendum=function(){var e,t,r,n,o,i="",a=(rw&&(e=ew(rw.type),r=rw._owner,i+=(e=e,t=rw._source,r=r&&ew(r.type),o="",t?(n=(a=t.fileName).replace(Z0,""),o=" (at "+(n=/^index\./.test(n)&&(a=a.match(Z0))&&(a=a[1])?a.replace(Z0,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(o=" (created by "+r+")"),"\n in "+(e||"Unknown")+o)),tw.getCurrentStack);return a&&(i+=a()||""),i};var ow={ReactCurrentDispatcher:W0,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:J0,IsSomeRendererActing:{current:!1},assign:N0};function iw(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];aw("warn",e,r)}function M(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];aw("error",e,r)}function aw(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=ow.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 o=0,i="Warning: "+t.replace(/%s/g,function(){return r[o++]});throw new Error(i)}catch(e){}}N0(ow,{ReactDebugCurrentFrame:tw,ReactComponentTreeHook:{}});var sw={};function uw(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;sw[r]||(M("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),sw[r]=!0)}var cw={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){uw(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){uw(e,"replaceState")},enqueueSetState:function(e,t,r,n){uw(e,"setState")}},lw={};function fw(e,t,r){this.props=e,this.context=t,this.refs=lw,this.updater=r||cw}Object.freeze(lw),fw.prototype.isReactComponent={},fw.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")},fw.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var pw,dw={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(pw in dw)dw.hasOwnProperty(pw)&&!function(e,t){Object.defineProperty(fw.prototype,e,{get:function(){iw("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(pw,dw[pw]);function hw(){}function yw(e,t,r){this.props=e,this.context=t,this.refs=lw,this.updater=r||cw}hw.prototype=fw.prototype,(R=yw.prototype=new hw).constructor=yw,N0(R,fw.prototype),R.isPureReactComponent=!0;var vw,mw,gw=Object.prototype.hasOwnProperty,ww={key:!0,ref:!0,__self:!0,__source:!0};function Ew(e){if(gw.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function bw(e){if(gw.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var Tw={},Rw=function(e,t,r,n,o,i,a){e={$$typeof:I0,type:e,key:t,ref:r,props:a,_owner:i,_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:o}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e};function Ow(e,t,r){var n,o={},i=null,a=null,s=null,u=null;if(null!=t)for(n in Ew(t)&&(a=t.ref,"string"==typeof(c=t).ref&&J0.current&&c.__self&&J0.current.stateNode!==c.__self&&(f=ew(J0.current.type),Tw[f]||(M('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',ew(J0.current.type),c.ref),Tw[f]=!0))),bw(t)&&(i=""+t.key),s=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)gw.call(t,n)&&!ww.hasOwnProperty(n)&&(o[n]=t[n]);var c,l,f,p,d=arguments.length-2;if(1==d)o.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),o.children=h}if(e&&e.defaultProps){var v=e.defaultProps;for(n in v)void 0===o[n]&&(o[n]=v[n])}function m(){mw||(mw=!0,M("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",l))}function g(){vw||(vw=!0,M("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",p))}return(i||a)&&(c="function"==typeof e?e.displayName||e.name||"Unknown":e,i&&(f=o,p=c,g.isReactWarning=!0,Object.defineProperty(f,"key",{get:g,configurable:!0})),a&&(r=o,l=c,m.isReactWarning=!0,Object.defineProperty(r,"ref",{get:m,configurable:!0}))),Rw(e,i,a,s,u,J0.current,o)}function _w(e){return"object"==typeof e&&null!==e&&e.$$typeof===I0}var Cw=".",Sw=":",Nw=!1,Aw=/\/+/g;function Iw(e){return(""+e).replace(Aw,"$&/")}var kw=10,xw=[];function Pw(e,t,r,n){var o;return xw.length?((o=xw.pop()).result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o):{result:e,keyPrefix:t,func:r,context:n,count:0}}function Dw(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,xw.length<kw&&xw.push(e)}function Mw(e,t,r){return null==e?0:function e(t,r,n,o){var i,a=typeof t,s=!1;if(null===(t="undefined"!=a&&"boolean"!=a?t:null))s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case I0:case k0:s=!0}}if(s)return n(o,t,""===r?Cw+Uw(t,0):r),1;var u=0,c=""===r?Cw:r+Sw;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(i=t[l],c+Uw(i,l),n,o);else if("function"==typeof(r=Y0(t))){r===t.entries&&(Nw||iw("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."),Nw=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(i=f.value,c+Uw(i,d++),n,o)}else if("object"==a)throw r="",r=" If you meant to render a collection of children, use an array instead."+tw.getStackAddendum(),a=""+t,Error("Objects are not valid as a React child (found: "+("[object Object]"==a?"object with keys {"+Object.keys(t).join(", ")+"}":a)+")."+r);return u}(e,"",t,r)}function Uw(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 jw(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function Lw(e,t,r){var n=e.result,o=e.keyPrefix,i=e.func,a=e.context,i=i.call(a,t,e.count++);Array.isArray(i)?Fw(i,n,r,function(e){return e}):null!=i&&(_w(i)&&(e=o+(!(a=i).key||t&&t.key===i.key?"":Iw(i.key)+"/")+r,i=Rw(a.type,e,a.ref,a._self,a._source,a._owner,a.props)),n.push(i))}function Fw(e,t,r,n,o){var i="",t=Pw(t,i=null!=r?Iw(r)+"/":i,n,o);Mw(e,Lw,t),Dw(t)}function Vw(e){return"string"==typeof e||"function"==typeof e||e===x0||e===j0||e===D0||e===P0||e===F0||e===V0||"object"==typeof e&&null!==e&&(e.$$typeof===K0||e.$$typeof===H0||e.$$typeof===M0||e.$$typeof===U0||e.$$typeof===L0||e.$$typeof===G0||e.$$typeof===B0||e.$$typeof===q0||e.$$typeof===z0)}function Hw(){var e=W0.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 Kw(){if(J0.current){var e=ew(J0.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var zw=!1,Gw={};function Bw(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=Kw())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),Gw[t=r]||(Gw[t]=!0,r="",e&&e._owner&&e._owner!==J0.current&&(r=" It was passed a child from "+ew(e._owner.type)+"."),nw(e),M('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',t,r),nw(null)))}function qw(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];_w(n)&&Bw(n,t)}else if(_w(e))e._store&&(e._store.validated=!0);else if(e){var o=Y0(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)_w(i.value)&&Bw(i.value,t)}}function $w(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=ew(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==L0&&t.$$typeof!==H0)return;r=t.propTypes}r?(nw(e),A0(r,e.props,"prop",n,tw.getStackAddendum),nw(null)):void 0===t.PropTypes||zw||(zw=!0,M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xw(e,t,r){var n,o=Vw(e),t=(o||(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+".":"")||Kw(),null===e?a="null":Array.isArray(e)?a="array":void 0!==e&&e.$$typeof===I0?(a="<"+(ew(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,M("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",a,n)),Ow.apply(this,arguments));if(null==t)return t;if(o)for(var i=2;i<arguments.length;i++)qw(arguments[i],e);if(e===x0){var a=t;nw(a);for(var s=Object.keys(a.props),u=0;u<s.length;u++){var c=s[u];if("children"!==c&&"key"!==c){M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==a.ref&&M("Invalid attribute `ref` supplied to `React.Fragment`."),nw(null)}else $w(t);return t}var Yw=!1;try{var Ww=Object.freeze({}),Jw=new Map([[Ww,null]]),Zw=new Set([Ww]);Jw.set(0,0),Zw.add(0)}catch(e){}function Qw(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,o,i=N0({},e.props),a=e.key,s=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in Ew(t)&&(s=t.ref,l=J0.current),bw(t)&&(a=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)gw.call(t,n)&&!ww.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?i[n]=o[n]:i[n]=t[n]);var f=arguments.length-2;if(1==f)i.children=r;else if(1<f){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];i.children=p}return Rw(e.type,a,s,u,c,l,i)}.apply(this,arguments),o=2;o<arguments.length;o++)qw(arguments[o],n.type);return $w(n),n}function eE(e){var t=Xw.bind(null,e);return t.type=e,Yw||(Yw=!0,iw("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 iw("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}R=Xw,P.Children={map:function(e,t,r){if(null==e)return e;var n=[];return Fw(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=Pw(null,null,t,r),Mw(e,jw,t),Dw(t)},count:function(e){return Mw(e,function(){return null},null)},toArray:function(e){var t=[];return Fw(e,t,null,function(e){return e}),t},only:function(e){if(_w(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},P.Component=fw,P.Fragment=x0,P.Profiler=D0,P.PureComponent=yw,P.StrictMode=P0,P.Suspense=F0,P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ow,P.cloneElement=Qw,P.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&M("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:U0,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:M0,_context:r}),o=!1,t={$$typeof:U0,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return o||(o=!0,M("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,M("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}}}),r.Consumer=t,r._currentRenderer=null,r._currentRenderer2=null,r},P.createElement=R,P.createFactory=eE,P.createRef=function(){var e={current:null};return Object.seal(e),e},P.forwardRef=function(e){return null!=e&&e.$$typeof===H0?M("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?M("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&M("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null==e||null==e.defaultProps&&null==e.propTypes||M("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:L0,render:e}},P.isValidElement=_w,P.lazy=function(e){var t,r,n={$$typeof:K0,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){M("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){M("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},P.memo=function(e,t){return Vw(e)||M("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:H0,type:e,compare:void 0===t?null:t}},P.useCallback=function(e,t){return Hw().useCallback(e,t)},P.useContext=function(e,t){var r,n=Hw();return void 0!==t&&M("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context&&((r=e._context).Consumer===e?M("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&M("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},P.useDebugValue=function(e,t){return Hw().useDebugValue(e,t)},P.useEffect=function(e,t){return Hw().useEffect(e,t)},P.useImperativeHandle=function(e,t,r){return Hw().useImperativeHandle(e,t,r)},P.useLayoutEffect=function(e,t){return Hw().useLayoutEffect(e,t)},P.useMemo=function(e,t){return Hw().useMemo(e,t)},P.useReducer=function(e,t,r){return Hw().useReducer(e,t,r)},P.useRef=function(e){return Hw().useRef(e)},P.useState=function(e){return Hw().useState(e)},P.version="16.14.0"}"production"===production?D.exports=o:D.exports=P;var tE=D.exports,rE=D.exports.createContext({hackle:void 0,user:void 0,initialized:!1}),Zr=rE.Consumer,nE=rE.Provider;var oE=f.Logger.log;function iE(e,t){e=aE(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function aE(e,t){void 0===t&&(t="A");var r=D.exports.useContext(rE),n=r.hackle,o=r.user,i=r.initialized,a=D.exports.useCallback(function(){return i?(null==n?void 0:n.variationDetail(e,o))||f.Decision.of(t,f.DecisionReason.EXCEPTION):f.Decision.of(t,f.DecisionReason.SDK_NOT_READY)},[t,e,o,n,i]),r=Fg(D.exports.useState(function(){return n?a():(oE.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2),s=r[0],r=r[1],u={key:e,user:o,initialized:i},c=Fg(D.exports.useState(u),2),l=c[0],c=c[1];return cE(l,u)||(c(u),r(a())),{isLoading:!i,decision:s}}function sE(e){e=uE(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function uE(e){var t=D.exports.useContext(rE),r=t.hackle,n=t.user,o=t.initialized,i=D.exports.useCallback(function(){return o?(null==r?void 0:r.featureFlagDetail(e,n))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION):f.FeatureFlagDecision.off(f.DecisionReason.SDK_NOT_READY)},[e,n,r,o]),t=Fg(D.exports.useState(function(){return r?i():(oE.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2),a=t[0],t=t[1],s={key:e,user:n,initialized:o},u=Fg(D.exports.useState(s),2),c=u[0],u=u[1];return cE(c,s)||(u(s),t(i())),{isLoading:!o,decision:a}}function cE(e,t){var r,n,o;return e.initialized===t.initialized&&e.key===t.key&&(null==(r=e.user)?void 0:r.id)===(null==(r=t.user)?void 0:r.id)&&(e=null==(r=e.user)?void 0:r.properties,t=null==(r=t.user)?void 0:r.properties,n=lE(e),o=lE(t),e=Object.keys(n),t=Object.keys(o),e.length===t.length&&e.every(function(e){return e in o&&n[e]===o[e]}))}function lE(e){return"object"==typeof e&&null!==e?e:{}}function fE(e){var t,r=e.experimentKey,e=e.children,n=(r=iE(r)).isLoading,o=r.variation;return n?null:e&&"function"==typeof e?e(o):(D.exports.Children.forEach(e,function(e){D.exports.isValidElement(e)&&(e.props.variation?o===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?D.exports.cloneElement(t,{variation:o}):null)}function pE(e){return e.variation,e=e.children,D.exports.createElement(D.exports.Fragment,null,e)}function dE(e){var t=(r=sE(e.featureKey)).isLoading,r=r.isOn;return t?null:tE.createElement(tE.Fragment,null,e.children(r))}f.HackleContext=rE,f.HackleContextConsumer=Zr,f.HackleContextProvider=nE,f.HackleExperiment=fE,f.HackleFeature=dE,f.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(o=e.timeout)?3e3:o,o=void 0!==(o=e.supportSSR)&&o,e=e.children,i=Fg(D.exports.useState({hackle:t,user:r,initialized:!1}),2),a=i[0],s=i[1];return D.exports.useEffect(function(){s(function(e){return Lg(Lg({},e),{user:r})})},[r]),D.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){s(function(e){return Lg(Lg({},e),{initialized:!0})})},function(){s(function(e){return Lg(Lg({},e),{initialized:!0})})}).catch(function(){s(function(e){return Lg(Lg({},e),{initialized:!0})})})},[t]),o||a.initialized?tE.createElement(nE,{value:a},e):null},f.HackleVariation=pE,f.createInstance=function(e,t){return new Vg(e,t)},f.useFeature=function(e){var t=(n=D.exports.useContext(rE)).hackle,r=n.user,n=n.initialized,o=D.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e,r))||!1},[e,r,t,n]),i=(a=Fg(D.exports.useState(function(){return t?o():("undefined"!=typeof window&&oE.error("HackleClient is not existed"),!1)}),2))[0],a=a[1],n={key:e,user:r,initialized:n},s=(u=Fg(D.exports.useState(n),2))[0],u=u[1];return cE(s,n)||(u(n),a(o())),i},f.useFeatureFlagDetail=function(e){var t=(n=D.exports.useContext(rE)).hackle,r=n.user,n=n.initialized,o=D.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e,r))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION)},[e,r,t,n]),i=(a=Fg(D.exports.useState(function(){return t?o():("undefined"!=typeof window&&oE.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,user:r,initialized:n},s=(u=Fg(D.exports.useState(n),2))[0],u=u[1];return cE(s,n)||(u(n),a(o())),i},f.useLoadableFeature=sE,f.useLoadableFeatureDetail=uE,f.useLoadableRemoteConfig=function(){var e=(i=D.exports.useContext(rE)).hackle,t=i.user,r=i.initialized,n=D.exports.useCallback(function(){return r&&(null==e?void 0:e.remoteConfig(t))||new f.EmptyHackleRemoteConfig},[t,e,r]),o=(i=Fg(D.exports.useState(function(){return e||oE.error("HackleClient is not existed"),n()}),2))[0],i=i[1],a={user:t,initialized:r},s=(u=Fg(D.exports.useState(a),2))[0],u=u[1];return cE(s,a)||(u(a),i(n())),{isLoading:!r,remoteConfig:o}},f.useLoadableVariation=iE,f.useLoadableVariationDetail=aE,f.useRemoteConfig=function(){var e=(r=D.exports.useContext(rE)).hackle,t=r.user,r=r.initialized,n=D.exports.useCallback(function(){return(null==e?void 0:e.remoteConfig(t))||new f.EmptyHackleRemoteConfig},[t,e,r]),o=(i=Fg(D.exports.useState(function(){return e||oE.error("HackleClient is not existed"),n()}),2))[0],i=i[1],r={user:t,initialized:r},a=(s=Fg(D.exports.useState(r),2))[0],s=s[1];return cE(a,r)||(s(r),i(n())),o},f.useTrack=function(){var e=D.exports.useContext(rE),t=e.hackle,r=e.user;return t?function(e){return null==t?void 0:t.track(e,r)}:(oE.error("HackleClient is not existed"),function(){})},f.useVariation=function(e,t){void 0===t&&(t="A");var r=(s=D.exports.useContext(rE)).hackle,n=s.user,o=s.initialized,i=D.exports.useCallback(function(){return o&&(null==r?void 0:r.variation(e,n))||t},[t,e,n,r,o]),a=(s=Fg(D.exports.useState(function(){return r?i():("undefined"!=typeof window&&oE.error("HackleClient is not existed"),t)}),2))[0],s=s[1],u={key:e,user:n,initialized:o},c=(l=Fg(D.exports.useState(u),2))[0],l=l[1];return cE(c,u)||(l(u),s(i())),a},f.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(o=D.exports.useContext(rE)).hackle,n=o.user,o=o.initialized,i=D.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e,n))||f.Decision.of(t,f.DecisionReason.EXCEPTION)},[t,e,n,r,o]),a=(s=Fg(D.exports.useState(function(){return r?i():("undefined"!=typeof window&&oE.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2))[0],s=s[1],o={key:e,user:n,initialized:o},u=(c=Fg(D.exports.useState(o),2))[0],c=c[1];return cE(u,o)||(c(o),s(i())),a},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(f){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function U(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={},j=new Uint8Array(16);function F(){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(j);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 $=0,X=0;function Y(e){if(!H(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}function W(e,a,s){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?Y(t):t).length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var o=new Uint8Array(16+e.length);if(o.set(t),o.set(e,t.length),(o=s(o))[6]=15&o[6]|a,o[8]=63&o[8]|128,r){n=n||0;for(var i=0;i<16;++i)r[n+i]=o[i];return r}return q(o)}try{t.name=e}catch(e){}return t.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",t}function J(e){return 14+(e+64>>>9<<4)+1}function 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,o,i){return Z((t=Z(Z(t,e),Z(n,i)))<<o|t>>>32-o,r)}function ee(e,t,r,n,o,i,a){return Q(t&r|~t&n,e,t,o,i,a)}function te(e,t,r,n,o,i,a){return Q(t&n|r&~n,e,t,o,i,a)}function re(e,t,r,n,o,i,a){return Q(t^r^n,e,t,o,i,a)}function ne(e,t,r,n,o,i,a){return Q(r^(t|~n),e,t,o,i,a)}var r=W("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}for(var n=function(e,t){e[t>>5]|=128<<t%32,e[J(t)-1]=t;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=r,u=n,c=o,l=i;r=ee(r,n,o,i,e[a],7,-680876936),i=ee(i,r,n,o,e[a+1],12,-389564586),o=ee(o,i,r,n,e[a+2],17,606105819),n=ee(n,o,i,r,e[a+3],22,-1044525330),r=ee(r,n,o,i,e[a+4],7,-176418897),i=ee(i,r,n,o,e[a+5],12,1200080426),o=ee(o,i,r,n,e[a+6],17,-1473231341),n=ee(n,o,i,r,e[a+7],22,-45705983),r=ee(r,n,o,i,e[a+8],7,1770035416),i=ee(i,r,n,o,e[a+9],12,-1958414417),o=ee(o,i,r,n,e[a+10],17,-42063),n=ee(n,o,i,r,e[a+11],22,-1990404162),r=ee(r,n,o,i,e[a+12],7,1804603682),i=ee(i,r,n,o,e[a+13],12,-40341101),o=ee(o,i,r,n,e[a+14],17,-1502002290),n=ee(n,o,i,r,e[a+15],22,1236535329),r=te(r,n,o,i,e[a+1],5,-165796510),i=te(i,r,n,o,e[a+6],9,-1069501632),o=te(o,i,r,n,e[a+11],14,643717713),n=te(n,o,i,r,e[a],20,-373897302),r=te(r,n,o,i,e[a+5],5,-701558691),i=te(i,r,n,o,e[a+10],9,38016083),o=te(o,i,r,n,e[a+15],14,-660478335),n=te(n,o,i,r,e[a+4],20,-405537848),r=te(r,n,o,i,e[a+9],5,568446438),i=te(i,r,n,o,e[a+14],9,-1019803690),o=te(o,i,r,n,e[a+3],14,-187363961),n=te(n,o,i,r,e[a+8],20,1163531501),r=te(r,n,o,i,e[a+13],5,-1444681467),i=te(i,r,n,o,e[a+2],9,-51403784),o=te(o,i,r,n,e[a+7],14,1735328473),n=te(n,o,i,r,e[a+12],20,-1926607734),r=re(r,n,o,i,e[a+5],4,-378558),i=re(i,r,n,o,e[a+8],11,-2022574463),o=re(o,i,r,n,e[a+11],16,1839030562),n=re(n,o,i,r,e[a+14],23,-35309556),r=re(r,n,o,i,e[a+1],4,-1530992060),i=re(i,r,n,o,e[a+4],11,1272893353),o=re(o,i,r,n,e[a+7],16,-155497632),n=re(n,o,i,r,e[a+10],23,-1094730640),r=re(r,n,o,i,e[a+13],4,681279174),i=re(i,r,n,o,e[a],11,-358537222),o=re(o,i,r,n,e[a+3],16,-722521979),n=re(n,o,i,r,e[a+6],23,76029189),r=re(r,n,o,i,e[a+9],4,-640364487),i=re(i,r,n,o,e[a+12],11,-421815835),o=re(o,i,r,n,e[a+15],16,530742520),n=re(n,o,i,r,e[a+2],23,-995338651),r=ne(r,n,o,i,e[a],6,-198630844),i=ne(i,r,n,o,e[a+7],10,1126891415),o=ne(o,i,r,n,e[a+14],15,-1416354905),n=ne(n,o,i,r,e[a+5],21,-57434055),r=ne(r,n,o,i,e[a+12],6,1700485571),i=ne(i,r,n,o,e[a+3],10,-1894986606),o=ne(o,i,r,n,e[a+10],15,-1051523),n=ne(n,o,i,r,e[a+1],21,-2054922799),r=ne(r,n,o,i,e[a+8],6,1873313359),i=ne(i,r,n,o,e[a+15],10,-30611744),o=ne(o,i,r,n,e[a+6],15,-1560198380),n=ne(n,o,i,r,e[a+13],21,1309151649),r=ne(r,n,o,i,e[a+4],6,-145523070),i=ne(i,r,n,o,e[a+11],10,-1120210379),o=ne(o,i,r,n,e[a+2],15,718787259),n=ne(n,o,i,r,e[a+9],21,-343485551),r=Z(r,s),n=Z(n,u),o=Z(o,c),i=Z(i,l)}return[r,n,o,i]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(J(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length),o=[],i=32*n.length,a="0123456789abcdef",s=0;s<i;s+=8){var u=n[s>>5]>>>s%32&255,u=parseInt(a.charAt(u>>>4&15)+a.charAt(15&u),16);o.push(u)}return o});function oe(e,t){return e<<t|e>>>32-t}var ie=W("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var o=0;o<n.length;++o)e.push(n.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a),u=0;u<a;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*u+4*l]<<24|e[64*u+4*l+1]<<16|e[64*u+4*l+2]<<8|e[64*u+4*l+3];s[u]=c}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<a;++f){for(var p=new Uint32Array(80),d=0;d<16;++d)p[d]=s[f][d];for(var h=16;h<80;++h)p[h]=oe(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);for(var y=r[0],v=r[1],g=r[2],m=r[3],w=r[4],E=0;E<80;++E)var b=Math.floor(E/20),b=oe(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}}(b,v,g,m)+w+t[b]+p[E]>>>0,w=m,m=g,g=oe(v,30)>>>0,v=y,y=b;r[0]=r[0]+y>>>0,r[1]=r[1]+v>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+m>>>0,r[4]=r[4]+w>>>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 ae,r=U(Object.freeze({__proto__:null,v1:function(e,t,r){var n=t&&r||0,o=t||new Array(16),i=(e=e||{}).node||K,r=void 0!==e.clockseq?e.clockseq:z,a=(null!=i&&null!=r||(a=e.random||(e.rng||F)(),null==i&&(i=K=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==r&&(r=z=16383&(a[6]<<8|a[7]))),void 0!==e.msecs?e.msecs:Date.now()),s=void 0!==e.nsecs?e.nsecs:X+1,u=a-$+(s-X)/1e4;if(u<0&&void 0===e.clockseq&&(r=r+1&16383),1e4<=(s=(u<0||$<a)&&void 0===e.nsecs?0:s))throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");$=a,z=r,u=(1e4*(268435455&(a+=122192928e5))+(X=s))%4294967296,o[n++]=u>>>24&255,o[n++]=u>>>16&255,o[n++]=u>>>8&255,o[n++]=255&u,e=a/4294967296*1e4&268435455,o[n++]=e>>>8&255,o[n++]=255&e,o[n++]=e>>>24&15|16,o[n++]=e>>>16&255,o[n++]=r>>>8|128,o[n++]=255&r;for(var c=0;c<6;++c)o[n+c]=i[c];return t||q(o)},v3:r,v4:function(e,t,r){var n=(e=e||{}).random||(e.rng||F)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return q(n)},v5:ie,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:Y})),se=(f.setUserId=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.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.IdentifiersBuilder=void 0,f.IdentifierType=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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function ce(e,t){function r(){this.constructor=e}ue(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var le=function(){return(le=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function fe(e,a,s,u){return new(s=s||Promise)(function(r,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function o(e){try{i(u.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(n,o)}i((u=u.apply(e,a||[])).next())})}function pe(n,o){var i,a,s,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[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(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,a=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(!((s=0<(s=u.trys).length&&s[s.length-1])||6!==t[0]&&2!==t[0])){u=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3])){u.label=t[1];break}if(6===t[0]&&u.label<s[1]){u.label=s[1],s=t;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(t);break}s[2]&&u.ops.pop(),u.trys.pop();continue}t=o.call(n,u)}catch(e){t=[6,e],a=0}finally{i=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}}me.setLogLevel=function(e){this.logLevel=e=void 0===e?3:e},me._log=function(e,t){var r;switch(e){case"WARN":r="orange";break;case"ERROR":r="red";break;default:r="#AAAAAA"}if(t instanceof Error)he.log(e,r,t.message,t);else try{he.log(e,r,t)}catch(e){}},me.logLevel=3,me.log={error:function(e){1<=me.logLevel&&me._log("ERROR",e)},warn:function(e){2<=me.logLevel&&me._log("WARN",e)},info:function(e){3<=me.logLevel&&me._log("INFO",e)},debug:function(e){4<=me.logLevel&&me._log("DEBUG",e)}};var de=me,he=(ge.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},ge),ye=[0,8,16,32,64,128,256,512],ve=de.log;function ge(){}function me(){}function we(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function Ee(e,t,r,n){this.id=e,this.key=t,this.isDropped=r,this.parameterConfigurationId=n}function be(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function Te(e,t){this.id=e,this.key=t}function Re(e){this.conditions=e}function _e(e,t){this.key=e,this.match=t}function Oe(e,t){this.type=e,this.name=t}function Ce(e,t,r,n){this.type=e,this.operator=t,this.valueType=r,this.values=n}function Ne(e,t,r){this.type=e,this.variationId=t,this.bucketId=r}function Ae(e,t){this.target=e,this.action=t}function Se(e,t,r,n){this.id=e,this.key=t,this.type=r,this.targets=n}function Ie(e,t){this.id=e,this.experiments=t}function ke(e,t,r,n,o,i){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.targetRules=o,this.defaultValue=i}function xe(e,t,r,n,o){this.key=e,this.name=t,this.target=r,this.bucketId=n,this.value=o}function Pe(e,t){this.id=e,this.rawValue=t}var De={getRequest:function(n,o){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"),we(r,o),r.send()})}},postRequest:function(e,t,r,n,o){var t=JSON.stringify(t),i=new XMLHttpRequest;i.open("POST",e),i.onreadystatechange=function(){i.readyState===i.DONE&&(200<=i.status&&i.status<400?n({statusCode:i.status}):o&&o({statusCode:i.status}))},i.setRequestHeader("content-type","application/json"),we(i,r),i.send(t)},sendBeacon:function(e,t,r,n,o){var i=!1;(i="undefined"!=typeof window?window&&window.navigator&&window.navigator.sendBeacon&&!0:i)?(i=JSON.stringify(t),(t=new URLSearchParams).append("sdkName",r["X-HACKLE-SDK-NAME"]),t.append("sdkVersion",r["X-HACKLE-SDK-VERSION"]),t.append("data",i),window.navigator.sendBeacon(e,t),n()):(ve.error("Does not support sendBeacon"),o())}},s=(nt.isNotNullOrUndefined=function(e){return null!=e},nt.isNullOrUndefined=function(e){return null==e},nt.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},nt),Me=de.log,Ue=(rt.of=function(e,t){return new rt(e,t)},rt),Le=(tt.of=function(e,t,r){return new tt(e,t,r=void 0===r?new Fe:r)},tt.prototype.get=function(e,t){return this.config.get(e,t)},tt),je=(et.on=function(e,t){return new et(!0,e,t=void 0===t?new Fe:t)},et.off=function(e,t){return new et(!1,e,t=void 0===t?new Fe:t)},et.prototype.get=function(e,t){return this.config.get(e,t)},et),ie=(Qe.prototype.get=function(e,t){return t},Qe),Fe=(Ze.prototype.get=function(e,t){return t},Ze),u=(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.NOT_IN_EXPERIMENT_TARGET="NOT_IN_EXPERIMENT_TARGET",n.FEATURE_FLAG_NOT_FOUND="FEATURE_FLAG_NOT_FOUND",n.FEATURE_FLAG_INACTIVE="FEATURE_FLAG_INACTIVE",n.INDIVIDUAL_TARGET_MATCH="INDIVIDUAL_TARGET_MATCH",n.TARGET_RULE_MATCH="TARGET_RULE_MATCH",n.DEFAULT_RULE="DEFAULT_RULE",n.REMOTE_CONFIG_PARAMETER_NOT_FOUND="REMOTE_CONFIG_PARAMETER_NOT_FOUND",n.TYPE_MISMATCH="TYPE_MISMATCH",n),Ve=(Je.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},Je.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},Je.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},Je),He=(We.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},We),Ke=(Ye.ID="$id",Ye.USER="$userId",Ye.DEVICE="$deviceId",Ye),ze=(Xe.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},Xe.prototype.add=function(e,t){return t&&this._isValid(e,t)?this.identifiers[e]=t:Me.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},Xe.prototype._isValid=function(e,t){return!(!e||"string"!=typeof e||128<e.length||!t||"string"!=typeof t||512<t.length)},Xe.prototype.build=function(){return this.identifiers},Xe),Ge=($e.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},$e),Be=(qe.prototype.get=function(e,t){e=this.parameters.get(e);return!s.isNullOrUndefined(e)&&(s.isNullOrUndefined(t)||typeof e==typeof t)?e:t},qe);function qe(e,t){this.id=e,this.parameters=t}function $e(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function Xe(){this.identifiers={}}function Ye(){}function We(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function Je(e,t,r,n,o,i,a,s,u,c,l,f,p,d){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.status=o,this.version=i,this.variations=a,this.userOverrides=s,this.segmentOverrides=u,this.targetAudiences=c,this.targetRules=l,this.defaultRule=f,this.containerId=p,this._winnerVariationId=d}function n(){}function Ze(){}function Qe(){}function et(e,t,r){this.isOn=e,this.reason=t,this.config=r}function tt(e,t,r){this.variation=e,this.reason=t,this.config=r}function rt(e,t){this.value=e,this.reason=t}function nt(){}Ut.tryParse=function(e){var t,r,n,o,e=Ut.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,o=e[4],e=e[5],new Ut(new ut(parseInt(t,10),parseInt(r,10),parseInt(n,10)),ct.parse(o),ct.parse(e))},Ut.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},Ut.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},Ut.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},Ut.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},Ut.prototype.isLessThan=function(e){return this.compareTo(e)<0},Ut.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},Ut.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 ot,it,at,st=Ut,ut=(Mt.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},Mt),ct=(Dt.parse=function(e){return e?new Dt(e.split(".")):Dt.EMPTY},Dt.prototype.isEmpty=function(){return 0===this.identifiers.length},Dt.prototype.isNotEmpty=function(){return!this.isEmpty()},Dt.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},Dt.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=Dt.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},Dt.compareIdentifiers=function(e,t){return Dt.numericIdentifierRegExp.test(e)&&Dt.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},Dt.EMPTY=new Dt([]),Dt.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,Dt),lt=["MATCH","NOT_MATCH"],ft=["STRING","NUMBER","BOOLEAN","VERSION","JSON","NULL","UNKNOWN"],pt=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],dt=["VARIATION","BUCKET"],ht=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT"],yt=["USER_ID","USER_PROPERTY"],vt=(Pt.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},Pt.IDENTIFIER=new Pt("SEGMENT"),Pt.PROPERTY=new Pt("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY"),Pt.SEGMENT=new Pt("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),Pt),gt=de.log,mt=(xt.prototype.get=function(e,t){if(s.isNullOrUndefined(t))return this._get(e,"NULL",t).value;switch(typeof t){case"string":return this._get(e,"STRING",t).value;case"number":return this._get(e,"NUMBER",t).value;case"boolean":return this._get(e,"BOOLEAN",t).value;default:return this._get(e,"UNKNOWN",t).value}},xt.prototype._get=function(e,t,r){try{var n=this.hackleUserResolver.resolveOrNull(this.user);return s.isNullOrUndefined(n)?Ue.of(r,u.INVALID_INPUT):s.isNullOrUndefined(e)?(gt.error("parameterKey must not be empty"),Ue.of(r,u.INVALID_INPUT)):this.hackleInternalClient._remoteConfig(e,n,t,r)}catch(t){return gt.error("Unexpected exception while deciding remote config parameter[".concat(e,"]. Returning default value. : ").concat(t)),Ue.of(r,u.EXCEPTION)}},xt),wt=de.log,Et=(kt.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},kt.prototype.variationDetail=function(e,t,r){r=r||"A";try{var n=this.hackleUserResolver.resolveOrNull(t);return n?this.hackleInternalClient._experiment(e,n,r):Le.of(r,u.INVALID_INPUT)}catch(t){return wt.error("Unexpected exception while deciding variation for experiment[".concat(e,"]. Returning default variation[").concat(r,"] : ").concat(t)),Le.of(r,u.EXCEPTION)}},kt.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},kt.prototype.featureFlagDetail=function(e,t){try{var r=this.hackleUserResolver.resolveOrNull(t);return r?this.hackleInternalClient._featureFlag(e,r):je.off(u.INVALID_INPUT)}catch(t){return wt.error('"Unexpected exception while deciding feature flag['.concat(e,"]. Returning default value[false] : ").concat(t)),je.off(u.EXCEPTION)}},kt.prototype.track=function(e,t){wt.debug("track event : ".concat(JSON.stringify(e)));e=this._convertEvent(e),t=this.hackleUserResolver.resolveOrNull(t);t&&this.hackleInternalClient._track(e,t)},kt.prototype.trackPageView=function(e){wt.debug("tracking page view");e=this.hackleUserResolver.resolveOrNull(null==e?void 0:e.user);e&&this.hackleInternalClient._track({key:"$page_view"},e)},kt.prototype.remoteConfig=function(e){return new mt(this.hackleInternalClient,this.hackleUserResolver,e)},kt.prototype.onReady=function(e,t){this.hackleInternalClient._onReady(e,t=void 0===t?3e3:t)},kt.prototype.onInitialized=function(e){return this.hackleInternalClient._onInitialized({timeout:null==e?void 0:e.timeout})},kt.prototype.close=function(){wt.debug("Hackle Client is closing"),this.hackleInternalClient._close()},kt.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},kt),bt=(It.filteredProperties=function(r){var n=this;return Object.keys(r).filter(function(e){return n.validProperty(e,r[e])}).reduce(function(e,t){return le(le({},e),((e={})[t]=n.filteredPropertiesValue(t,r[t]),e))},{})},It.filteredPropertiesValue=function(e,t){return!e.startsWith(It.SYSTEM_PROPERTY_KEY_PREFIX)&&"string"==typeof t&&1024<t.length?t.slice(0,1024):t},It.validProperty=function(e,t){return!!e&&"string"==typeof e&&!(128<e.length)&&("string"==typeof t||"boolean"==typeof t||"number"==typeof t&&!isNaN(t)&&isFinite(t))},It.SYSTEM_PROPERTY_KEY_PREFIX="$",It),Tt=(St.exposure=function(e,t,r){return new Rt((new Date).getTime(),t,e,r.variationId,r.variationKey,r.reason,this.exposureProperties(r))},St.exposureProperties=function(e){return s.isNotNullOrUndefined(e.config)?{$parameterConfigurationId:e.config.id}:{}},St.track=function(e,t,r){return new _t((new Date).getTime(),r,e,t)},St.remoteConfig=function(e,t,r){return new Ot((new Date).getTime(),t,e,r)},St.isExposure=function(e){return void 0!==e.experiment},St.isTrack=function(e){return void 0!==e.eventType},St.isRemoteConfig=function(e){return void 0!==e.remoteConfigParameter},St.isExposureDto=function(e){return"experimentId"in e&&void 0!==e.experimentId},St.isTrackDto=function(e){return"eventTypeId"in e&&void 0!==e.eventTypeId},St.isRemoteConfigDto=function(e){return"parameterId"in e&&void 0!==e.parameterId},St.prototype.toDto=function(){return{insertId:this.insertId,timestamp:this.timestamp,userId:this.user.identifiers[Ke.ID],identifiers:this.user.identifiers,userProperties:bt.filteredProperties(this.user.properties),hackleProperties:bt.filteredProperties(this.user.hackleProperties)}},St),Rt=(ce(At,at=Tt),At.prototype.toDto=function(){return le(le({},at.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})},At),_t=(ce(Nt,it=Tt),Nt.prototype.toDto=function(){return le(le({},it.prototype.toDto.call(this)),{eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:bt.filteredProperties(this.event.properties||{})})},Nt),Ot=(ce(Ct,ot=Tt),Ct.prototype.toDto=function(){return le(le({},ot.prototype.toDto.call(this)),{parameterId:this.remoteConfigParameter.id,parameterKey:this.remoteConfigParameter.key,parameterType:this.remoteConfigParameter.type,valueId:this.evaluation.valueId,decisionReason:this.evaluation.reason.toString(),properties:bt.filteredProperties(this.evaluation.properties)})},Ct);function Ct(e,t,r,n){e=ot.call(this,e,t)||this;return e.remoteConfigParameter=r,e.evaluation=n,e}function Nt(e,t,r,n){e=it.call(this,e,t)||this;return e.eventType=r,e.event=n,e}function At(e,t,r,n,o,i,a){e=at.call(this,e,t)||this;return e.experiment=r,e.variationId=n,e.variationKey=o,e.decisionReason=i,e.properties=a,e}function St(e,t,r){void 0===r&&(r=se.v4()),this.timestamp=e,this.user=t,this.insertId=r}function It(){}function kt(e,t){this.hackleInternalClient=e,this.hackleUserResolver=t}function xt(e,t,r){this.hackleInternalClient=e,this.hackleUserResolver=t,this.user=r}function Pt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function Dt(e){this.identifiers=e}function Mt(e,t,r){this.major=e,this.minor=t,this.patch=r}function Ut(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}function Lt(e){var t=new Array,r=new Array,n=new Array;return e.forEach(function(e){e instanceof Tt?Tt.isExposure(e)?t.push(e.toDto()):Tt.isTrack(e)?r.push(e.toDto()):Tt.isRemoteConfig(e)&&n.push(e.toDto()):Tt.isExposureDto(e)?t.push(e):Tt.isTrackDto(e)?r.push(e):Tt.isRemoteConfigDto(e)&&n.push(e)}),{exposureEvents:t,trackEvents:r,remoteConfigEvents:n}}Qt.prototype.dispatch=function(e,t,r){var n={},e=(n["X-HACKLE-SDK-KEY"]=this.sdkKey,n["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),Lt(e));this.httpRequest.postRequest(this.dispatchUrl,e,n,t,r)},Qt.prototype.dispatchXhrOrBeacon=function(e,t,r){var n,o;this.useBeacon?((n={})["X-HACKLE-SDK-KEY"]=this.sdkKey,n["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],n["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],n["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),o=Lt(e),this.httpRequest.sendBeacon(this.beaconDispatchUrl,o,n,t,r)):this.dispatch(e,t,r)};var jt=Qt,l=(Zt.mapNotNullOrUndefined=function(e,t){for(var r=Array(),n=0,o=e;n<o.length;n++){var i=t(o[n]);s.isNotNullOrUndefined(i)&&r.push(i)}return r},Zt.associateTo=function(e,t,r){for(var n=0,o=e;n<o.length;n++){var i=r(o[n]);t.set(i[0],i[1])}return t},Zt.associate=function(e,t){return this.associateTo(e,new Map,t)},Zt.associateBy=function(e,t){return this.associate(e,function(e){return[t(e),e]})},Zt),Ft=de.log,Vt=(y.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},y.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},y.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},y.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},y.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},y.prototype.getContainerOrNull=function(e){return this.containers.get(e)},y.prototype.getParameterConfigurationOrNull=function(e){return this.parameterConfigurations.get(e)},y.prototype.getRemoteConfigParameterOrNull=function(e){return this.remoteConfigParameters.get(e)},y.from=function(e){var t=this,r=l.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]});return new y(l.associateBy(l.mapNotNullOrUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),l.associateBy(l.mapNotNullOrUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),r,l.associate(e.events,function(e){return[e.key,new Te(e.id,e.key)]}),l.associateBy(l.mapNotNullOrUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),l.associate(e.containers,function(e){return[e.id,t.toContainer(e)]}),l.associate(e.parameterConfigurations,function(e){return[e.id,t.toParameterConfiguration(e)]}),l.associateBy(l.mapNotNullOrUndefined(e.remoteConfigParameters,function(e){return t.toRemoteConfigParameterOrNull(e)}),function(e){return e.key}))},y.toBucket=function(e){return new be(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new He(t,r,e)}))},y.toExperimentOrNull=function(e,t){var r=this,n=this.experimentStatusOrNull(t.execution.status),o=t.variations.map(function(e){return new Ee(e.id,e.key,"DROPPED"===e.status,e.parameterConfigurationId)}),i=l.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),a=l.mapNotNullOrUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,vt.IDENTIFIER)}),s=l.mapNotNullOrUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,vt.PROPERTY)}),u=l.mapNotNullOrUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,vt.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new Ve(t.id,t.key,e,t.identifierType,n,t.version,o,i,a,s,u,c,t.containerId,t.winnerVariationId)},y.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void Ft.debug("Unsupported status [".concat(e,"]"))}},y.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new Ae(t,e)},y.toTargetActionOrNull=function(e){var t=this.parseOrNull(dt,e.type);return t&&new Ne(t,e.variationId,e.bucketId)},y.toTargetOrNull=function(e,t){var r=this,e=l.mapNotNullOrUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new Re(e)},y.toConditionOrNull=function(e,t){var r=this.toTargetKeyOrNull(e.key);if(r&&t.supports(r.type))return(t=this.toTargetMatchOrNull(e.match))&&new _e(r,t)},y.toTargetKeyOrNull=function(e){var t=this.parseOrNull(ht,e.type);return t&&new Oe(t,e.name)},y.toTargetMatchOrNull=function(e){var t=this.parseOrNull(lt,e.type),r=this.parseOrNull(pt,e.operator),n=this.parseOrNull(ft,e.valueType);return t&&r&&n&&new Ce(t,r,n,e.values)},y.toSegmentOrNull=function(e){var t=this,r=this.parseOrNull(yt,e.type);return r&&new Se(e.id,e.key,r,l.mapNotNullOrUndefined(e.targets,function(e){return t.toTargetOrNull(e,vt.SEGMENT)}))},y.toContainer=function(e){var t=this;return new Ge(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},y.toContainerGroup=function(e){return new Ie(e.id,e.experiments)},y.toParameterConfiguration=function(e){return new Be(e.id,l.associate(e.parameters,function(e){return[e.key,e.value]}))},y.toRemoteConfigParameterOrNull=function(e){var t=this,r=this.parseOrNull(ft,e.type),n=l.mapNotNullOrUndefined(e.targetRules,function(e){return t.toRemoteConfigTargetRuleOrNull(e,vt.PROPERTY)}),o=this.toRemoteConfigParameterValueOrNull(e.defaultValue);return r&&new ke(e.id,e.key,r,e.identifierType,n,o)},y.toRemoteConfigTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t);return t&&new xe(e.key,e.name,t,e.bucketId,this.toRemoteConfigParameterValueOrNull(e.value))},y.toRemoteConfigParameterValueOrNull=function(e){return new Pe(e.id,e.value)},y.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||Ft.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},y),Ht=(Jt.prototype.onReady=function(){return this.readyPromise},Jt.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},Jt.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()},Jt.prototype.get=function(){return this.workspace},Jt.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)},Jt.prototype.fetch=function(){var e,t=this;(e={})["X-HACKLE-SDK-KEY"]=this.sdkKey,e["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),e["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],e["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"];function r(){t.onRequestComplete()}this.currentRequest=this.httpRequest.getRequest(this.fetchUrl,e);this.currentRequest.responsePromise.then(function(e){t.onRequestResolved(e)},function(e){t.onRequestRejected(e)}).then(r,r),0<this.updateInterval&&this.scheduleNextUpdate()},Jt.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},Jt.prototype.onRequestResolved=function(e){if(this.isStarted){if(void 0!==e.statusCode&&200<=e.statusCode&&e.statusCode<400)this.errorRetryController.reset();else{if(401===e.statusCode||403===e.statusCode)return void this.readyPromiseRejecter(new Error("Invalid key provided."));this.errorRetryController.countError()}e.body&&(e=JSON.parse(e.body),this.workspace=Vt.from(e),this.readyPromiseResolver())}},Jt.prototype.onRequestRejected=function(e){this.isStarted&&(this.errorRetryController.countError(),console.error("Error fetching data",e))},Jt.prototype.close=function(){this.stop()},Jt),Kt=(Wt.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*ye[Math.min(ye.length-1,this.errorCount)]+Math.round(1e3*Math.random())},Wt.prototype.countError=function(){this.errorCount<ye.length-1&&this.errorCount++},Wt.prototype.reset=function(){this.errorCount=0},Wt),r="model",o="name",i="type",a="vendor",c="version",p="mobile",d="tablet",zt=(h.parse=function(e){return{browser:h.getBrowser(e),cpu:h.getCPU(e),device:h.getDevice(e),engine:h.getEngine(e),os:h.getOS(e)}},h.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return h.mapper.rgx.call(t,e,h.regexes.browser),t.major=h.util.major(t.version),t},h.getCPU=function(e){var t={architecture:void 0};return h.mapper.rgx.call(t,e,h.regexes.cpu),t},h.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return h.mapper.rgx.call(t,e,h.regexes.device),t},h.getEngine=function(e){var t={name:void 0,version:void 0};return h.mapper.rgx.call(t,e,h.regexes.os),t},h.getOS=function(e){var t={name:void 0,version:void 0};return h.mapper.rgx.call(t,e,h.regexes.os),t},h.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,"")}},h.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[o,c],[/(opios)[\/\s]+([\w\.]+)/i],[[o,"Opera Mini"],c],[/\s(opr)\/([\w\.]+)/i],[[o,"Opera"],c],[/(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,c],[/(konqueror)\/([\w\.]+)/i],[[o,"Konqueror"],c],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[o,"IE"],c],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[o,"Edge"],c],[/(yabrowser)\/([\w\.]+)/i],[[o,"Yandex"],c],[/(Avast)\/([\w\.]+)/i],[[o,"Avast Secure Browser"],c],[/(AVG)\/([\w\.]+)/i],[[o,"AVG Secure Browser"],c],[/(puffin)\/([\w\.]+)/i],[[o,"Puffin"],c],[/(focus)\/([\w\.]+)/i],[[o,"Firefox Focus"],c],[/(opt)\/([\w\.]+)/i],[[o,"Opera Touch"],c],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[o,"UCBrowser"],c],[/(comodo_dragon)\/([\w\.]+)/i],[[o,/_/g," "],c],[/(windowswechat qbcore)\/([\w\.]+)/i],[[o,"WeChat(Win) Desktop"],c],[/(micromessenger)\/([\w\.]+)/i],[[o,"WeChat"],c],[/(brave)\/([\w\.]+)/i],[[o,"Brave"],c],[/(whale)\/([\w\.]+)/i],[[o,"Whale"],c],[/(qqbrowserlite)\/([\w\.]+)/i],[o,c],[/(QQ)\/([\d\.]+)/i],[o,c],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[o,c],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[o,c],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[o,c],[/(MetaSr)[\/\s]?([\w\.]+)/i],[o],[/(LBBROWSER)/i],[o],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[c,[o,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[c,[o,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[o,c],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[c,[o,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[o,/(.+)/,"$1 WebView"],c],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[o,/(.+(?:g|us))(.+)/,"$1 $2"],c],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[o,"Chrome Mobile"],c],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[c,[o,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[o,"Sailfish Browser"],c],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[o,c],[/(dolfin)\/([\w\.]+)/i],[[o,"Dolphin"],c],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[o,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[o,"Opera Coast"],c],[/fxios\/([\w\.-]+)/i],[c,[o,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[c,[o,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[c,o],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[o,"GSA"],c],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[o,[c,(h.mapper={rgx:function(e,t){for(var r,n,o,i,a,s=0;s<t.length&&!i;){for(var u=t[s],c=t[s+1],l=r=0;l<u.length&&!i;)if(i=u[l++].exec(e))for(n=0;n<c.length;n++)a=i[++r],"object"==typeof(o=c[n])&&0<o.length?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,a):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=a?a.replace(o[1],o[2]):void 0:this[o[0]]=a?o[1].call(this,a,o[2]):void 0:4==o.length&&(this[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):void 0):this[o]=a||void 0;s+=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(h.util.has(t[r][n],e))return"?"===r?void 0:r}else if(h.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(h.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,c],[/(navigator|netscape)\/([\w\.-]+)/i],[[o,"Netscape"],c],[/(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,c]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",h.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",h.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",h.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[r,a,[i,d]],[/applecoremedia\/[\w\.]+ \((ipad)/],[r,[a,"Apple"],[i,d]],[/(apple\s{0,1}tv)/i],[[r,"Apple TV"],[a,"Apple"],[i,"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],[a,r,[i,d]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[r,[a,"Amazon"],[i,d]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[r,h.mapper.str,h.maps.device.amazon.model],[a,"Amazon"],[i,p]],[/android.+aft([bms])\sbuild/i],[r,[a,"Amazon"],[i,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[r,a,[i,p]],[/\((ip[honed|\s\w*]+);/i],[r,[a,"Apple"],[i,p]],[/(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],[a,r,[i,p]],[/\(bb10;\s(\w+)/i],[r,[a,"BlackBerry"],[i,p]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[r,[a,"Asus"],[i,d]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[a,"Sony"],[r,"Xperia Tablet"],[i,d]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[a,"Sony"],[i,p]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[a,r,[i,"console"]],[/android.+;\s(shield)\sbuild/i],[r,[a,"Nvidia"],[i,"console"]],[/(playstation\s[34portablevi]+)/i],[r,[a,"Sony"],[i,"console"]],[/(sprint\s(\w+))/i],[[a,h.mapper.str,h.maps.device.sprint.vendor],[r,h.mapper.str,h.maps.device.sprint.model],[i,p]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[a,[r,/_/g," "],[i,p]],[/(nexus\s9)/i],[r,[a,"HTC"],[i,d]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[r,[a,"Huawei"],[i,p]],[/android.+(bah2?-a?[lw]\d{2})/i],[r,[a,"Huawei"],[i,d]],[/(microsoft);\s(lumia[\s\w]+)/i],[a,r,[i,p]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[r,[a,"Microsoft"],[i,"console"]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[a,"Microsoft"],[i,p]],[/\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,[a,"Motorola"],[i,p]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[r,[a,"Motorola"],[i,d]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[a,h.util.trim],[r,h.util.trim],[i,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[a,"Samsung"],[i,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[r,[a,"Sharp"],[i,"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],[[a,"Samsung"],r,[i,d]],[/smart-tv.+(samsung)/i],[a,[i,"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],[[a,"Samsung"],r,[i,p]],[/sie-(\w*)/i],[r,[a,"Siemens"],[i,p]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[a,"Nokia"],r,[i,p]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[r,[a,"Acer"],[i,d]],[/android.+([vl]k\-?\d{3})\s+build/i],[r,[a,"LG"],[i,d]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[a,"LG"],r,[i,d]],[/(lg) netcast\.tv/i],[a,r,[i,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[r,[a,"LG"],[i,p]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[a,r,[i,d]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[r,[a,"Lenovo"],[i,d]],[/(lenovo)[_\s-]?([\w-]+)/i],[a,r,[i,p]],[/linux;.+((jolla));/i],[a,r,[i,p]],[/((pebble))app\/[\d\.]+\s/i],[a,r,[i,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[a,r,[i,p]],[/crkey/i],[[r,"Chromecast"],[a,"Google"],[i,"smarttv"]],[/android.+;\s(glass)\s\d/i],[r,[a,"Google"],[i,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[r,[a,"Google"],[i,d]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[r,[a,"Google"],[i,p]],[/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," "],[a,"Xiaomi"],[i,p]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[r,/_/g," "],[a,"Xiaomi"],[i,d]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[r,[a,"Meizu"],[i,p]],[/(mz)-([\w-]{2,})/i],[[a,"Meizu"],r,[i,p]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[r,[a,"OnePlus"],[i,p]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[r,[a,"RCA"],[i,d]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[r,[a,"Dell"],[i,d]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[r,[a,"Verizon"],[i,d]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[a,"Barnes & Noble"],r,[i,d]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[r,[a,"NuVision"],[i,d]],[/android.+;\s(k88)\sbuild/i],[r,[a,"ZTE"],[i,d]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[r,[a,"Swiss"],[i,p]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[r,[a,"Swiss"],[i,d]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[r,[a,"Zeki"],[i,d]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[a,"Dragon Touch"],r,[i,d]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[r,[a,"Insignia"],[i,d]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[r,[a,"NextBook"],[i,d]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[a,"Voice"],r,[i,p]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[a,"LvTel"],r,[i,p]],[/android.+;\s(PH-1)\s/i],[r,[a,"Essential"],[i,p]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[r,[a,"Envizen"],[i,d]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[a,r,[i,d]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[r,[a,"MachSpeed"],[i,d]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[a,r,[i,d]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[r,[a,"Rotor"],[i,d]],[/android.+(KS(.+))\s+build/i],[r,[a,"Amazon"],[i,d]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[a,r,[i,d]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[i,h.util.lowerize],a,r],[/[\s\/\(](smart-?tv)[;\)]/i],[[i,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[r,[a,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[c,[o,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[c,[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,c],[/rv\:([\w\.]{1,9}).+(gecko)/i],[c,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[o,c],[/(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,h.mapper.str,h.maps.os.windows],[c,h.mapper.str,h.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[o,"Windows"],[c,h.mapper.str,h.maps.os.windows.version]],[/\((bb)(10);/i],[[o,"BlackBerry"],c],[/(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,c],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[o,"Symbian"],c],[/\((series40);/i],[o],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[o,"Firefox OS"],c],[/(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"],c],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[o,"Chromium OS"],c],[/(sunos)\s?([\w\.\d]*)/i],[[o,"Solaris"],c],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[o,"Linux"],c],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPhone"],[c,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[o,"iPad"],[c,/_/g,"."]],[/(haiku)\s(\w+)/i],[o,c],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[c,/_/g,"."],[o,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[o,"Mac"],[c,/_/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,c]]},h),Gt=(Yt.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=zt.parse(t.navigator.userAgent),n=r.browser,o=r.os,r=r.device,i=r.type?"mobile"===r.type?"Mobile":"ETC":"Web",a=(t.location.protocol||"").replace(":",""),s=t.screen,u="";try{u=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}return{platform:i||"",browserName:n.name||"",browserMajorVersion:n.major||"",browserVersion:n.version||"",osName:o.name||"",osVersion:o.version||"",deviceModel:r.model||"",deviceType:r.type||"",deviceVendor:r.vendor||"",language:(null==(i=t.navigator.languages)?void 0:i[0])||"",userAgent:t.navigator.userAgent||"",pagePath:t.location.pathname||"",pageTitle:t.document.title||"",host:t.location.host||"",protocol:a,referrer:t.document.referrer||"",queryParameter:t.location.search||"",screenWidth:s.width||"",screenHeight:s.height||"",timeZone:u||""}},Yt),Bt=(Xt.prototype.resolveOrNull=function(e){e=this._resolveUser(e);return this._resolveHackleUserOrNull(e)},Xt.prototype.resolveAnonymousUser=function(){return{identifiers:{},properties:{},hackleProperties:this._getHackleProperties()}},Xt.prototype._resolveUser=function(e){return e?"string"==typeof e?{id:e}:e:{id:er()}},Xt.prototype._resolveHackleUserOrNull=function(e){var t=new ze,t=(t.addIdentifiers(e.identifiers||{}),e.id&&t.add(Ke.ID,e.id),e.userId&&t.add(Ke.USER,e.userId),t.add(Ke.DEVICE,e.deviceId||er()),t.build());if(0!==Object.keys(t).length)return{identifiers:t,properties:e.properties||{},hackleProperties:this._getHackleProperties()}},Xt.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?Gt.generate(window):e)||{}},Xt),qt=($t.initialize=function(){ir.get("_hackle_hid")||nr()},$t.reInitialize=function(){nr()},$t);function $t(){}function Xt(){qt.initialize()}function Yt(){}function h(){}function Wt(){this.errorCount=0}function Jt(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 Kt,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function y(e,t,r,n,o,i,a,s){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n,this.segments=o,this.containers=i,this.parameterConfigurations=a,this.remoteConfigParameters=s}function Zt(){}function Qt(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 er(){var e=ir.get("_hackle_id");return e||ir.get("_hackle_hid")||nr()}function tr(e){ir.set("_hackle_id",e,3650,!0)}function rr(){ir.remove("_hackle_id",!0)}function nr(){var e=se.v4();return ir.set("_hackle_hid",e,3650,!0),e}function or(e){return e&&e.Math==Math&&e}function v(e){try{return!!e()}catch(e){return!0}}ur.get=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "==o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return null},ur.set=function(e,t,r,n,o,i){var a="",s="",u="",r=(n&&(a=(n=ur.extractDomain(document.location.hostname))?"; domain=."+n:""),r&&((n=new Date).setTime(n.getTime()+24*r*60*60*1e3),s="; expires="+n.toUTCString()),i&&(o=!0,u="; SameSite=None"),o&&(u+="; secure"),e+"="+encodeURIComponent(t)+s+"; path=/"+a+u);return document.cookie=r},ur.remove=function(e,t){ur.set(e,"",-1,t,!1,!1)},ur.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]:""};var ir=ur,p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},d=or("object"==typeof globalThis&&globalThis)||or("object"==typeof window&&window)||or("object"==typeof self&&self)||or("object"==typeof p&&p)||function(){return this}()||Function("return this")(),i={},r=!v(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),a=!v(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),ar=Function.prototype.call,o=a?ar.bind(ar):function(){return ar.apply(ar,arguments)},c={},e={}.propertyIsEnumerable,sr=Object.getOwnPropertyDescriptor,p=sr&&!e.call({1:2},1);function ur(){}c.f=p?function(e){e=sr(this,e);return!!e&&e.enumerable}:e;function cr(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function lr(e){return Cr(Or(e),8,-1)}function fr(e){if(null==e)throw Ir("Can't call method on "+e);return e}function pr(e){return kr(xr(e))}function g(e){return"function"==typeof e}function dr(e){return"object"==typeof e?null!==e:Pr(e)}function hr(e,t){return arguments.length<2?(r=Dr[e],Mr(r)?r:void 0):Dr[e]&&Dr[e][t];var r}function yr(e){try{return Gr(e)}catch(e){return"Object"}}function vr(e){if(Br(e))return e;throw $r(qr(e)+" is not a function")}function gr(e,t){return null==(e=e[t])?void 0:Xr(e)}function mr(t,r){try{en(Qr,t,{value:r,configurable:!0,writable:!0})}catch(e){Qr[t]=r}return r}function m(e){return on(nn(e))}function wr(e){return"Symbol("+(void 0===e?"":e)+")_"+pn(++ln+fn,36)}function w(e){var t;return dn(gn,e)&&(yn||"string"==typeof gn[e])||(t="Symbol."+e,yn&&dn(mn,e)?gn[e]=mn[e]:gn[e]=(vn&&wn?wn:En)(t)),gn[e]}function Er(e){return e=function(e,t){if(!Tn(e)||Rn(e))return e;var r=_n(e,Nn);if(r){if(r=bn(r,e,t=void 0===t?"default":t),!Tn(r)||Rn(r))return r;throw Cn("Can't convert object to primitive value")}return On(e,t=void 0===t?"number":t)}(e,"string"),An(e)?e:e+""}function br(e){return In?Sn.createElement(e):{}}function Tr(e){if(Vn(e))return e;throw Kn(Hn(e)+" is not an object")}var p=a,e=Function.prototype,E=e.bind,Rr=e.call,_r=p&&E.bind(Rr,Rr),e=p?function(e){return e&&_r(e)}:function(e){return e&&function(){return Rr.apply(e,arguments)}},E=e,Or=E({}.toString),Cr=E("".slice),p=v,Nr=lr,Ar=Object,Sr=e("".split),E=p(function(){return!Ar("z").propertyIsEnumerable(0)})?function(e){return"String"==Nr(e)?Sr(e,""):Ar(e)}:Ar,Ir=TypeError,kr=E,xr=fr,Pr=g,Dr=d,Mr=g,p=e({}.isPrototypeOf),Ur=hr("navigator","userAgent")||"",b=Ur,T=d.process,Lr=d.Deno,T=T&&T.versions||Lr&&Lr.version,Lr=T&&T.v8,T=zr=!(zr=Lr?0<(R=Lr.split("."))[0]&&R[0]<4?1:+(R[0]+R[1]):zr)&&b&&(!(R=b.match(/Edge\/(\d+)/))||74<=R[1])&&(R=b.match(/Chrome\/(\d+)/))?+R[1]:zr,jr=T,Lr=v,b=!!Object.getOwnPropertySymbols&&!Lr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&jr&&jr<41}),R=b&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Fr=hr,Vr=g,Hr=p,Kr=Object,zr=R?function(e){return"symbol"==typeof e}:function(e){var t=Fr("Symbol");return Vr(t)&&Hr(t.prototype,Kr(e))},Gr=String,Br=g,qr=yr,$r=TypeError,Xr=vr,Yr=o,Wr=g,Jr=dr,Zr=TypeError,Lr={exports:{}},Qr=d,en=Object.defineProperty,tn=mr,tn=d["__core-js_shared__"]||tn("__core-js_shared__",{}),rn=tn,nn=((Lr.exports=function(e,t){return rn[e]||(rn[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"}),fr),on=Object,an=m,sn=e({}.hasOwnProperty),un=Object.hasOwn||function(e,t){return sn(an(e),t)},cn=e,ln=0,fn=Math.random(),pn=cn(1..toString),cn=d,_=Lr.exports,dn=un,hn=wr,yn=b,vn=R,gn=_("wks"),mn=cn.Symbol,wn=mn&&mn.for,En=vn?mn:mn&&mn.withoutSetter||hn,bn=o,Tn=dr,Rn=zr,_n=gr,On=function(e,t){var r,n;if("string"===t&&Wr(r=e.toString)&&!Jr(n=Yr(r,e)))return n;if(Wr(r=e.valueOf)&&!Jr(n=Yr(r,e)))return n;if("string"!==t&&Wr(r=e.toString)&&!Jr(n=Yr(r,e)))return n;throw Zr("Can't convert object to primitive value")},Cn=TypeError,Nn=w("toPrimitive"),An=zr,b=dr,Sn=d.document,In=b(Sn)&&b(Sn.createElement),kn=br,R=!r&&!v(function(){return 7!=Object.defineProperty(kn("div"),"a",{get:function(){return 7}}).a}),xn=o,Pn=c,Dn=cr,Mn=pr,Un=Er,Ln=un,jn=R,Fn=Object.getOwnPropertyDescriptor,_=(i.f=r?Fn:function(e,t){if(e=Mn(e),t=Un(t),jn)try{return Fn(e,t)}catch(e){}if(Ln(e,t))return Dn(!xn(Pn.f,e,t),e[t])},{}),cn=r&&v(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Vn=dr,Hn=String,Kn=TypeError,zn=R,Gn=Tr,Bn=Er,qn=TypeError,$n=Object.defineProperty,Xn=Object.getOwnPropertyDescriptor,Yn=(_.f=r?cn?function(e,t,r){var n;return Gn(e),t=Bn(t),Gn(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=Xn(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}),$n(e,t,r)}:$n:function(e,t,r){if(Gn(e),t=Bn(t),Gn(r),zn)try{return $n(e,t,r)}catch(e){}if("get"in r||"set"in r)throw qn("Accessors not supported");return"value"in r&&(e[t]=r.value),e},_),Wn=cr,hn=r?function(e,t,r){return Yn.f(e,t,Wn(1,r))}:function(e,t,r){return e[t]=r,e},zr={exports:{}},b=r,c=un,R=Function.prototype,Jn=b&&Object.getOwnPropertyDescriptor,c=c(R,"name"),c={EXISTS:c,PROPER:c&&"something"===function(){}.name,CONFIGURABLE:c&&(!b||Jn(R,"name").configurable)},b=g,Jn=tn,Zn=e(Function.toString);b(Jn.inspectSource)||(Jn.inspectSource=function(e){return Zn(e)});function Qn(e){return mo[e]||(mo[e]=go(e))}function eo(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(Mo(r)&&Lo(r,i,n),n.global)o?e[t]=r:jo(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:Uo.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function to(e){return(e=+e)!=e||0==e?0:Ho(e)}function ro(e,t){return(e=Ko(e))<0?zo(e+t,0):Go(e,t)}function O(e){return 0<(e=e.length)?qo(Bo(e),9007199254740991):0}function no(s){return function(e,t,r){var n,o=$o(e),i=Yo(o),a=Xo(r,i);if(s&&t!=t){for(;a<i;)if((n=o[a++])!=n)return!0}else for(;a<i;a++)if((s||a in o)&&o[a]===t)return s||a||0;return!s&&-1}}function oo(e,t){var r,n=Jo(e),o=0,i=[];for(r in n)!Wo(Qo,r)&&Wo(n,r)&&ei(i,r);for(;t.length>o;)!Wo(n,r=t[o++])||~Zo(i,r)||ei(i,r);return i}function io(e,t,r){for(var n=ui(t),o=li.f,i=ci.f,a=0;a<n.length;a++){var s=n[a];si(e,s)||r&&si(r,s)||o(e,s,i(t,s))}}function ao(e,t){return(e=yi[hi(e)])==gi||e!=vi&&(pi(t)?fi(t):!!t)}function C(e,t){var r,n,o,i,a=e.target,s=e.global,u=e.stat;if(r=s?mi:u?mi[a]||Ti(a,{}):(mi[a]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(i=wi(r,n))&&i.value:r[n],!_i(s?n:a+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;Ri(o,i)}(e.sham||i&&i.sham)&&Ei(o,"sham",!0),bi(r,n,o,e)}}var so,uo,co,lo,fo,po,ho,yo,R=Jn.inspectSource,b=g,Jn=R,vo=d.WeakMap,b=b(vo)&&/native code/.test(Jn(vo)),Jn=Lr.exports,go=wr,mo=Jn("keys"),vo={},Lr=e,wo=dr,Eo=hn,bo=un,Jn=tn,N=Qn,To=vo,Ro=d.TypeError,_o=d.WeakMap,b=(ho=b||Jn.state?(so=Jn.state||(Jn.state=new _o),uo=Lr(so.get),co=Lr(so.has),lo=Lr(so.set),fo=function(e,t){if(co(so,e))throw new Ro("Object already initialized");return t.facade=e,lo(so,e,t),t},po=function(e){return uo(so,e)||{}},function(e){return co(so,e)}):(To[yo=N("state")]=!0,fo=function(e,t){if(bo(e,yo))throw new Ro("Object already initialized");return t.facade=e,Eo(e,yo,t),t},po=function(e){return bo(e,yo)?e[yo]:{}},function(e){return bo(e,yo)}),{set:fo,get:po,has:ho,enforce:function(e){return ho(e)?po(e):fo(e,{})},getterFor:function(t){return function(e){if(wo(e)&&(e=po(e)).type===t)return e;throw Ro("Incompatible receiver, "+t+" required")}}}),Jn=v,Oo=g,Co=un,No=r,Ao=c.CONFIGURABLE,So=R,Io=b.enforce,ko=b.get,xo=Object.defineProperty,Po=No&&!Jn(function(){return 8!==xo(function(){},"length",{value:8}).length}),Do=String(String).split("String"),_o=zr.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Co(e,"name")||Ao&&e.name!==t)&&(No?xo(e,"name",{value:t,configurable:!0}):e.name=t),Po&&r&&Co(r,"arity")&&e.length!==r.arity&&xo(e,"length",{value:r.arity});try{r&&Co(r,"constructor")&&r.constructor?No&&xo(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=Io(e);return Co(r,"source")||(r.source=Do.join("string"==typeof t?t:"")),e},Mo=(Function.prototype.toString=_o(function(){return Oo(this)&&ko(this).source||So(this)},"toString"),g),Uo=_,Lo=zr.exports,jo=mr,Lr={},Fo=Math.ceil,Vo=Math.floor,Ho=Math.trunc||function(e){e=+e;return(0<e?Vo:Fo)(e)},Ko=to,zo=Math.max,Go=Math.min,Bo=to,qo=Math.min,$o=pr,Xo=ro,Yo=O,To={includes:no(!0),indexOf:no(!1)},Wo=un,Jo=pr,Zo=To.indexOf,Qo=vo,ei=e([].push),N=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ti=oo,ri=N.concat("length","prototype"),Jn=(Lr.f=Object.getOwnPropertyNames||function(e){return ti(e,ri)},{}),_o=(Jn.f=Object.getOwnPropertySymbols,hr),ni=Lr,oi=Jn,ii=Tr,ai=e([].concat),Jn=_o("Reflect","ownKeys")||function(e){var t=ni.f(ii(e)),r=oi.f;return r?ai(t,r(e)):t},si=un,ui=Jn,ci=i,li=_,fi=v,pi=g,di=/#|\.prototype\./,hi=ao.normalize=function(e){return String(e).replace(di,".").toLowerCase()},yi=ao.data={},vi=ao.NATIVE="N",gi=ao.POLYFILL="P",_o=ao,mi=d,wi=i.f,Ei=hn,bi=eo,Ti=mr,Ri=io,_i=_o,Jn=!v(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),Oi=un,Ci=g,Ni=m,Ai=Qn("IE_PROTO"),Si=Object,Ii=Si.prototype,Jn=Jn?Si.getPrototypeOf:function(e){e=Ni(e);if(Oi(e,Ai))return e[Ai];var t=e.constructor;return Ci(t)&&e instanceof t?t.prototype:e instanceof Si?Ii:null},ki=g,xi=String,Pi=TypeError,Di=e,Mi=Tr,Ui=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=Di(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return Mi(e),function(e){if("object"==typeof e||ki(e))return;throw Pi("Can't set "+xi(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),Li={},ji=oo,Fi=N,A=Object.keys||function(e){return ji(e,Fi)},Vi=_,Hi=Tr,Ki=pr,zi=A;Li.f=r&&!cn?Object.defineProperties:function(e,t){Hi(e);for(var r,n=Ki(t),o=zi(t),i=o.length,a=0;a<i;)Vi.f(e,r=o[a++],n[r]);return e};function Gi(){}function Bi(e){e.write(ua("")),e.close();var t=e.parentWindow.Object;return e=null,t}function qi(e,t){return va(e),void 0===t?e:ga?ma(e,t):function(){return e.apply(t,arguments)}}function $i(e){return void 0!==e&&(wa.Array===e||ba[Ea]===e)}function Xi(e){if(null!=e)return Aa(e,Ia)||Aa(e,"@@iterator")||Sa[Na(e)]}function Yi(e,t){if(t=arguments.length<2?Ma(e):t,xa(t))return Pa(ka(t,e));throw Ua(Da(e)+" is not iterable")}function Wi(e,t,r){var n,o;ja(e);try{if(!(n=Fa(e,"return"))){if("throw"===t)throw r;return r}n=La(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return ja(n),r}function Ji(e,t){this.stopped=e,this.result=t}function Zi(e,t,r){function n(e){return i&&Ya(i,"normal",e),new Ji(!0,e)}function o(e){return p?(Ka(e),y?v(e[0],e[1],n):v(e[0],e[1])):y?v(e,n):v(e)}var i,a,s,u,c,l,f=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),v=Va(t,f);if(d)i=e.iterator;else if(h)i=e;else{if(!(r=Xa(e)))throw Wa(za(e)+" is not iterable");if(Ga(r)){for(a=0,s=Ba(e);a<s;a++)if((u=o(e[a]))&&qa(Ja,u))return u;return new Ji(!1)}i=$a(e,r)}for(c=(d?e:i).next;!(l=Ha(c,i)).done;){try{u=o(l.value)}catch(e){Ya(i,"throw",e)}if("object"==typeof u&&u&&qa(Ja,u))return u}return new Ji(!1)}function Qi(e){if("Symbol"===Za(e))throw TypeError("Cannot convert a Symbol value to a string");return Qa(e)}function ea(e,t){var r,n=2<arguments.length?arguments[2]:void 0,o=ns(hs,this);return is?r=is(new ps,o?os(this):hs):(r=o?this:ss(hs),us(r,fs,"Error")),void 0!==t&&us(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:es(e)}(t)),ls&&us(r,"stack",function(e,t){if(da&&"string"==typeof e&&!la.prepareStackTrace)for(;t--;)e=fa(e,pa,"");return e}(r.stack,1)),o=r,ha(t=n)&&"cause"in t&&ya(o,"cause",t.cause),cs(e,ds,{that:n=[]}),us(r,"errors",n),r}var ta,A=hr("document","documentElement"),ra=Tr,na=Li,oa=N,cn=vo,ia=A,aa=br,sa=Qn("IE_PROTO"),ua=function(e){return"<script>"+e+"<\/script>"},ca=function(){try{ta=new ActiveXObject("htmlfile")}catch(e){}var e,t;ca="undefined"==typeof document||document.domain&&ta?Bi(ta):((t=aa("iframe")).style.display="none",ia.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ua("document.F=Object")),e.close(),e.F);for(var r=oa.length;r--;)delete ca.prototype[oa[r]];return ca()},Li=(cn[sa]=!0,Object.create||function(e,t){var r;return null!==e?(Gi.prototype=ra(e),r=new Gi,Gi.prototype=null,r[sa]=e):r=ca(),void 0===t?r:na.f(r,t)}),la=Error,fa=e("".replace),N=String(la("zxcasd").stack),pa=/\n\s*at [^:]*:[^\n]*/,da=pa.test(N),ha=dr,ya=hn,va=vr,ga=a,ma=e(e.bind),cn={},wa=cn,Ea=w("iterator"),ba=Array.prototype,N={},N=(N[w("toStringTag")]="z","[object z]"===String(N)),S=N,Ta=g,Ra=lr,_a=w("toStringTag"),Oa=Object,Ca="Arguments"==Ra(function(){return arguments}()),S=S?Ra: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=Oa(e),_a))?t:Ca?Ra(e):"Object"==(t=Ra(e))&&Ta(e.callee)?"Arguments":t},Na=S,Aa=gr,Sa=cn,Ia=w("iterator"),ka=o,xa=vr,Pa=Tr,Da=yr,Ma=Xi,Ua=TypeError,La=o,ja=Tr,Fa=gr,Va=qi,Ha=o,Ka=Tr,za=yr,Ga=$i,Ba=O,qa=p,$a=Yi,Xa=Xi,Ya=Wi,Wa=TypeError,Ja=Ji.prototype,Za=S,Qa=String,es=Qi,ts=cr,I=!v(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",ts(1,7)),7!==e.stack)}),rs=C,ns=p,os=Jn,is=Ui,as=io,ss=Li,us=hn,k=cr,cs=Zi,ls=I,fs=w("toStringTag"),ps=Error,ds=[].push,hs=(is?is(ea,ps):as(ea,ps,{name:!0}),ea.prototype=ss(ps.prototype,{constructor:k(1,ea),message:k(1,""),name:k(1,"AggregateError")})),I=(rs({global:!0,constructor:!0,arity:2},{AggregateError:ea}),w),as=Li,k=_.f,ys=I("unscopables"),vs=Array.prototype;null==vs[ys]&&k(vs,ys,{configurable:!0,value:as(null)});function x(e){vs[ys][e]=!0}var gs,rs=v,I=g,k=Jn,as=eo,ms=w("iterator"),P=!1;[].keys&&("next"in(Ts=[].keys())?(k=k(k(Ts)))!==Object.prototype&&(gs=k):P=!0);function ws(e,t,r){(e=e&&!r?e.prototype:e)&&!_s(e,Os)&&Rs(e,Os,{configurable:!0,value:t})}function Es(){return this}function bs(e,t,r,n,o,i,a){var s=r,u=t,c=void 0;function l(e){if(e===o&&v)return v;if(!Gs&&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",s.prototype=Ns(Cs,{next:As(+!c,n)}),Ss(s,u,!1),Is[u]=ks;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[Bs]||h["@@iterator"]||o&&h[o],v=!Gs&&y||l(o);if((n="Array"==t&&h.entries||y)&&(s=Ms(n.call(new e)))!==Object.prototype&&s.next&&(Ms(s)!==zs&&(Us?Us(s,zs):Ds(s[Bs])||Fs(s,Bs,Es)),Ls(s,c,!0)),Hs&&"values"==o&&y&&"values"!==y.name&&(Ks?js(h,"name","values"):(d=!0,v=function(){return Ps(y,this)})),o)if(f={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(p in f)!Gs&&!d&&p in h||Fs(h,p,f[p]);else xs({target:t,proto:!0,forced:Gs||d},f);return h[Bs]!==v&&Fs(h,Bs,v,{name:o}),Vs[t]=v,f}I((gs=null==gs||rs(function(){var e={};return gs[ms].call(e)!==e})?{}:gs)[ms])||as(gs,ms,function(){return this});var Ts={IteratorPrototype:gs,BUGGY_SAFARI_ITERATORS:P},Rs=_.f,_s=un,Os=w("toStringTag"),Cs=Ts.IteratorPrototype,Ns=Li,As=cr,Ss=ws,Is=cn,ks=function(){return this},xs=C,Ps=o,Ds=g,Ms=Jn,Us=Ui,Ls=ws,js=hn,Fs=eo,Vs=cn,Hs=c.PROPER,Ks=c.CONFIGURABLE,zs=Ts.IteratorPrototype,Gs=Ts.BUGGY_SAFARI_ITERATORS,Bs=w("iterator"),qs=pr,k=x,I=cn,rs=b,as=_.f,P=bs,c=r,$s=rs.set,Xs=rs.getterFor("Array Iterator"),Ts=P(Array,"Array",function(e,t){$s(this,{type:"Array Iterator",target:qs(e),index:0,kind:t})},function(){var e=Xs(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"),cn=I.Arguments=I.Array;if(k("keys"),k("values"),k("entries"),c&&"values"!==cn.name)try{as(cn,"name",{value:"values"})}catch(u0){}function Ys(e){var e=tu(e),t=ru.f;nu&&e&&!e[ou]&&t(e,ou,{configurable:!0,get:function(){return this}})}function Ws(e,t){if(iu(t,e))return e;throw au("Incorrect invocation")}function Js(){}function Zs(e){if(!su(e))return!1;try{return fu(Js,lu,e),!0}catch(e){return!1}}function Qs(e){if(!su(e))return!1;switch(uu(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return hu||!!du(pu,cu(e))}catch(e){return!0}}var eu=S,rs=(N||eo(Object.prototype,"toString",N?{}.toString:function(){return"[object "+eu(this)+"]"},{unsafe:!0}),"process"==lr(d.process)),tu=hr,ru=_,nu=r,ou=w("species"),iu=p,au=TypeError,P=e,I=v,su=g,uu=S,cu=R,lu=[],fu=hr("Reflect","construct"),pu=/^\s*(?:class|function)\b/,du=P(pu.exec),hu=!pu.exec(Js);Qs.sham=!0;function yu(e,t){var r,e=bu(e).constructor;if(void 0===e||null==(r=bu(e)[Tu]))return t;if(mu(e=r))return e;throw Eu(wu(e)+" is not a constructor")}var vu,gu,k=!fu||I(function(){var e;return Zs(Zs.call)||!Zs(Object)||!Zs(function(){e=!0})||e})?Qs:Zs,mu=k,wu=yr,Eu=TypeError,bu=Tr,Tu=w("species"),c=Function.prototype,Ru=c.apply,_u=c.call,as="object"==typeof Reflect&&Reflect.apply||(a?_u.bind(Ru):function(){return _u.apply(Ru,arguments)}),cn=e([].slice),Ou=TypeError,N=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ur),Cu=d,Nu=as,p=qi,Au=g,Su=un,S=v,Iu=A,ku=cn,xu=br,P=N,I=rs,c=Cu.setImmediate,a=Cu.clearImmediate,Pu=Cu.process,Du=Cu.Dispatch,Mu=Cu.Function,A=Cu.MessageChannel,Uu=Cu.String,Lu=0,ju={};try{vu=Cu.location}catch(u0){}function Fu(e){return function(){Ku(e)}}function Vu(e){Ku(e.data)}function Hu(e){Cu.postMessage(Uu(e),vu.protocol+"//"+vu.host)}var Ku=function(e){var t;Su(ju,e)&&(t=ju[e],delete ju[e],t())};c&&a||(c=function(e){var t=arguments.length,r=1;if(t<r)throw Ou("Not enough arguments");var n=Au(e)?e:Mu(e),o=ku(arguments,1);return ju[++Lu]=function(){Nu(n,void 0,o)},gu(Lu),Lu},a=function(e){delete ju[e]},I?gu=function(e){Pu.nextTick(Fu(e))}:Du&&Du.now?gu=function(e){Du.now(Fu(e))}:A&&!P?(P=(I=new A).port2,I.port1.onmessage=Vu,gu=p(P.postMessage,P)):Cu.addEventListener&&Au(Cu.postMessage)&&!Cu.importScripts&&vu&&"file:"!==vu.protocol&&!S(Hu)?(gu=Hu,Cu.addEventListener("message",Vu,!1)):gu="onreadystatechange"in xu("script")?function(e){Iu.appendChild(xu("script")).onreadystatechange=function(){Iu.removeChild(this),Ku(e)}}:function(e){setTimeout(Fu(e),0)});function zu(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function Gu(){this.head=null,this.tail=null}function Bu(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=pc(r),this.reject=pc(n)}var qu,$u,Xu,Yu,Wu,Ju,Zu,A={set:c,clear:a},I=d,p=/ipad|iphone|ipod/i.test(Ur)&&void 0!==I.Pebble,P=/web0s(?!.*chrome)/i.test(Ur),S=d,c=qi,a=i.f,Qu=A.set,I=N,i=p,N=P,ec=rs,p=S.MutationObserver||S.WebKitMutationObserver,P=S.document,tc=S.process,rc=S.Promise,a=a(S,"queueMicrotask"),a=a&&a.value,N=(a||(qu=function(){var e,t;for(ec&&(e=tc.domain)&&e.exit();$u;){t=$u.fn,$u=$u.next;try{t()}catch(e){throw $u?Yu():Xu=void 0,e}}Xu=void 0,e&&e.enter()},Yu=I||ec||N||!p||!P?!i&&rc&&rc.resolve?((I=rc.resolve(void 0)).constructor=rc,Zu=c(I.then,I),function(){Zu(qu)}):ec?function(){tc.nextTick(qu)}:(Qu=c(Qu,S),function(){Qu(qu)}):(Wu=!0,Ju=P.createTextNode(""),new p(qu).observe(Ju,{characterData:!0}),function(){Ju.data=Wu=!Wu})),a||function(e){e={fn:e,next:void 0};Xu&&(Xu.next=e),$u||($u=e,Yu()),Xu=e}),nc=d,i=(Gu.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}},Gu),rc=d.Promise,I="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,c=!I&&!rs&&"object"==typeof window&&"object"==typeof document,S=d,oc=rc,P=g,p=_o,ic=R,a=w,ac=c,sc=I,uc=T,cc=(oc&&oc.prototype,a("species")),lc=!1,fc=P(S.PromiseRejectionEvent),R={CONSTRUCTOR:p("Promise",function(){var e=ic(oc),t=e!==String(oc);if(!t&&66===uc)return!0;if(!uc||uc<51||!/native code/.test(e)){var e=new oc(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[cc]=r,!(lc=e.then(function(){})instanceof r))return!0}return!t&&(ac||sc)&&!fc}),REJECTION_EVENT:fc,SUBCLASSING:lc},c={},pc=vr;c.f=function(e){return new Bu(e)};function dc(e,t){var r,n,o,i,a=t.value,s=1==t.state,u=s?e.ok:e.fail,c=e.resolve,l=e.reject,f=e.domain;try{u?(s||(2===t.rejection&&(i=t,wc(Oc,mc,function(){var e=i.facade;gc?jc.emit("rejectionHandled",e):Gc("rejectionhandled",e,i.value)})),t.rejection=1),!0===u?r=a:(f&&f.enter(),r=u(a),f&&(f.exit(),o=!0)),r===e.promise?l(Uc("Promise-chain cycle")):(n=Kc(r))?wc(n,r,c,l):c(r)):l(a)}catch(e){f&&!o&&f.exit(),l(e)}}var hc,yc,vc,I=C,gc=rs,mc=d,wc=o,a=eo,P=Ui,S=ws,p=Ys,Ec=vr,bc=g,Tc=dr,Rc=Ws,_c=yu,Oc=A.set,Cc=N,Nc=zu,Ac=i,A=b,N=rc,i=c,Sc=R.CONSTRUCTOR,Ic=R.REJECTION_EVENT,kc=R.SUBCLASSING,xc=A.getterFor("Promise"),Pc=A.set,A=N&&N.prototype,Dc=N,Mc=A,Uc=mc.TypeError,Lc=mc.document,jc=mc.process,Fc=i.f,Vc=Fc,Hc=!!(Lc&&Lc.createEvent&&mc.dispatchEvent),Kc=function(e){var t;return!(!Tc(e)||!bc(t=e.then))&&t},zc=function(r,o){r.notified||(r.notified=!0,Cc(function(){for(var e,n,t=r.reactions;e=t.get();)dc(e,r);r.notified=!1,o&&!r.rejection&&(n=r,wc(Oc,mc,function(){var e,t=n.facade,r=n.value;if(Bc(n)&&(e=Nc(function(){gc?jc.emit("unhandledRejection",r,t):Gc("unhandledrejection",t,r)}),n.rejection=gc||Bc(n)?2:1,e.error))throw e.value}))}))},Gc=function(e,t,r){var n;Hc?((n=Lc.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),mc.dispatchEvent(n)):n={promise:t,reason:r},!Ic&&(t=mc["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=nc.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},Bc=function(e){return 1!==e.rejection&&!e.parent},qc=function(t,r,n){return function(e){t(r,e,n)}},$c=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,zc(e,!0))},Xc=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw Uc("Promise can't be resolved itself");var n=Kc(e);n?Cc(function(){var t={done:!1};try{wc(n,e,qc(Xc,t,r),qc($c,t,r))}catch(e){$c(t,e,r)}}):(r.value=e,r.state=1,zc(r,!1))}catch(e){$c({done:!1},e,r)}}};if(Sc&&(Mc=(Dc=function(e){Rc(this,Mc),Ec(e),wc(hc,this);var t=xc(this);try{e(qc(Xc,t),qc($c,t))}catch(e){$c(t,e)}}).prototype,(hc=function(e){Pc(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Ac,rejection:!1,state:0,value:void 0})}).prototype=a(Mc,"then",function(e,t){var r=xc(this),n=Fc(_c(this,Dc));return r.parent=!0,n.ok=!bc(e)||e,n.fail=bc(t)&&t,n.domain=gc?jc.domain:void 0,0==r.state?r.reactions.add(n):Cc(function(){dc(n,r)}),n.promise}),yc=function(){var e=new hc,t=xc(e);this.promise=e,this.resolve=qc(Xc,t),this.reject=qc($c,t)},i.f=Fc=function(e){return e===Dc||void 0===e?new yc:Vc(e)},bc(N)&&A!==Object.prototype)){vc=A.then,kc||a(A,"then",function(e,t){var r=this;return new Dc(function(e,t){wc(vc,r,e,t)}).then(e,t)},{unsafe:!0});try{delete A.constructor}catch(u0){}P&&P(A,Mc)}I({global:!0,constructor:!0,wrap:!0,forced:Sc},{Promise:Dc}),S(Dc,"Promise",!1),p("Promise");var Yc=w("iterator"),Wc=!1;try{var Jc=0,Zc={next:function(){return{done:!!Jc++}},return:function(){Wc=!0}};Zc[Yc]=function(){return this},Array.from(Zc,function(){throw 2})}catch(u0){}function Qc(e,t){if(!t&&!Wc)return!1;var r=!1;try{var n={};n[Yc]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function el(e,t){return gl(e),ml(t)&&t.constructor===e?t:((0,(e=wl.f(e)).resolve)(t),e.promise)}function tl(o){return function(e,t){var r,e=jl(Fl(e)),t=Ll(t),n=e.length;return t<0||n<=t?o?"":void 0:(r=Hl(e,t))<55296||56319<r||t+1===n||(n=Hl(e,t+1))<56320||57343<n?o?Vl(e,t):r:o?Kl(e,t,t+2):n-56320+(r-55296<<10)+65536}}function rl(e,t){if(e){if(e[Jl]!==Ql)try{Wl(e,Jl,Ql)}catch(t){e[Jl]=Ql}if(e[Zl]||Wl(e,Zl,t),Xl[t])for(var r in Yl)if(e[r]!==Yl[r])try{Wl(e,r,Yl[r])}catch(t){e[r]=Yl[r]}}}var nl,ol=rc,i=R.CONSTRUCTOR||!Qc(function(e){ol.all(e).then(void 0,function(){})}),il=o,al=vr,sl=c,ul=zu,cl=Zi,N=(C({target:"Promise",stat:!0,forced:i},{all:function(e){var s=this,t=sl.f(s),u=t.resolve,c=t.reject,r=ul(function(){var n=al(s.resolve),o=[],i=0,a=1;cl(e,function(e){var t=i++,r=!1;a++,il(n,s,e).then(function(e){r||(r=!0,o[t]=e,--a||u(o))},c)}),--a||u(o)});return r.error&&c(r.value),t.promise}}),C),kc=rc,a=hr,P=g,A=eo,I=kc&&kc.prototype,ll=(N({target:"Promise",proto:!0,forced:R.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),P(kc)&&(Sc=a("Promise").prototype.catch,I.catch!==Sc&&A(I,"catch",Sc,{unsafe:!0})),o),fl=vr,pl=c,dl=zu,hl=Zi,yl=(C({target:"Promise",stat:!0,forced:i},{race:function(e){var r=this,n=pl.f(r),o=n.reject,t=dl(function(){var t=fl(r.resolve);hl(e,function(e){ll(t,r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}}),o),vl=c,gl=(C({target:"Promise",stat:!0,forced:R.CONSTRUCTOR},{reject:function(e){var t=vl.f(this);return yl(t.reject,void 0,e),t.promise}}),Tr),ml=dr,wl=c,S=C,p=R.CONSTRUCTOR,El=el,bl=(hr("Promise"),S({target:"Promise",stat:!0,forced:p},{resolve:function(e){return El(this,e)}}),o),Tl=vr,Rl=c,_l=zu,Ol=Zi,Cl=(C({target:"Promise",stat:!0},{allSettled:function(e){var s=this,t=Rl.f(s),u=t.resolve,r=t.reject,n=_l(function(){var n=Tl(s.resolve),o=[],i=0,a=1;Ol(e,function(e){var t=i++,r=!1;a++,bl(n,s,e).then(function(e){r||(r=!0,o[t]={status:"fulfilled",value:e},--a||u(o))},function(e){r||(r=!0,o[t]={status:"rejected",reason:e},--a||u(o))})}),--a||u(o)});return n.error&&r(n.value),t.promise}}),o),Nl=vr,Al=hr,Sl=c,Il=zu,kl=Zi,Zc=(C({target:"Promise",stat:!0},{any:function(e){var u=this,c=Al("AggregateError"),t=Sl.f(u),l=t.resolve,f=t.reject,r=Il(function(){var n=Nl(u.resolve),o=[],i=0,a=1,s=!1;kl(e,function(e){var t=i++,r=!1;a++,Cl(n,u,e).then(function(e){r||s||(s=!0,l(e))},function(e){r||s||(r=!0,o[t]=e,--a||f(new c(o,"No one promise resolved")))})}),--a||f(new c(o,"No one promise resolved"))});return r.error&&f(r.value),t.promise}}),C),N=rc,P=v,xl=hr,Pl=g,Dl=yu,Ml=el,kc=eo,Ul=N&&N.prototype,A=(Zc({target:"Promise",proto:!0,real:!0,forced:!!N&&P(function(){Ul.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=Dl(this,xl("Promise")),e=Pl(t);return this.then(e?function(e){return Ml(r,t()).then(function(){return e})}:t,e?function(e){return Ml(r,t()).then(function(){throw e})}:t)}}),Pl(N)&&(a=xl("Promise").prototype.finally,Ul.finally!==a&&kc(Ul,"finally",a,{unsafe:!0})),e),Ll=to,jl=Qi,Fl=fr,Vl=A("".charAt),Hl=A("".charCodeAt),Kl=A("".slice),zl=(tl(!1),tl(!0)),Gl=Qi,I=b,Sc=bs,Bl=I.set,ql=I.getterFor("String Iterator"),i=(Sc(String,"String",function(e){Bl(this,{type:"String Iterator",string:Gl(e),index:0})},function(){var e=ql(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=zl(t,r),e.index+=t.length,{value:t,done:!1})}),d),R=(i.Promise,br("span").classList),S=R&&R.constructor&&R.constructor.prototype,p=S===Object.prototype?void 0:S,$l=d,Xl={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},rc=p,Yl=Ts,Wl=hn,Zc=w,Jl=Zc("iterator"),Zl=Zc("toStringTag"),Ql=Yl.values;for(nl in Xl)rl($l[nl]&&$l[nl].prototype,nl);rl(rc,"DOMTokenList");function ef(e,t,r){(t=Cf(t))in e?Nf.f(e,t,Af(0,r)):e[t]=r}function tf(e){if(9007199254740991<e)throw qf("Maximum allowed index exceeded");return e}function rf(e,t){return $f(e=e)&&(r=e.constructor,(Xf(r)&&(r===Jf||$f(r.prototype))||Yf(r)&&null===(r=r[Wf]))&&(r=void 0)),new(void 0===r?Jf:r)(0===t?0:t);var r}function nf(t){return 51<=Qf||!Zf(function(){var e=[];return(e.constructor={})[ep]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function of(e,t){if(!delete e[t])throw lp("Cannot delete property "+cp(t)+" of "+cp(e))}function af(p){var d=1==p,h=2==p,y=3==p,v=4==p,g=6==p,m=7==p,w=5==p||g;return function(e,t,r,n){for(var o,i,a=mp(e),s=gp(a),u=vp(t,r),c=wp(s),l=0,t=n||Ep,f=d?t(e,c):h||m?t(e,0):void 0;l<c;l++)if((w||l in s)&&(i=u(o=s[l],l,a),p))if(d)f[l]=i;else if(i)switch(p){case 3:return!0;case 5:return o;case 6:return l;case 2:bp(f,o)}else switch(p){case 4:return!1;case 7:bp(f,o)}return g?-1:y||v?v:f}}function sf(e,t){var r=[][e];return!!r&&Tp(function(){r.call(null,t||function(){return 1},1)})}function uf(u){var c=1==u;return function(e,t,r){for(var n,o=Dp(e),i=Pp(o),a=xp(t,r),s=Mp(i);0<s--;)if(a(n=i[s],s,o))switch(u){case 0:return n;case 1:return s}return c?-1:void 0}}function cf(e,t,r,n,o,i,a,s){for(var u,c,l=o,f=0,p=!!a&&Hp(a,s);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<i&&jp(u)?(c=Fp(u),l=cf(e,t,u,c,l,i-1)-1):(Vp(l+1),e[l]=u),l++),f++;return l}function lf(c){return function(e,t,r,n){vd(t);var o=gd(e),i=md(o),a=wd(o),s=c?a-1:0,u=c?-1:1;if(r<2)for(;;){if(s in i){n=i[s],s+=u;break}if(s+=u,c?s<0:a<=s)throw Ed("Reduce of empty array with no initial value")}for(;c?0<=s:s<a;s+=u)s in i&&(n=t(n,i[s],s,o));return n}}function ff(e,t,r){for(var n=jd(e),o=Ld(t,n),i=Ld(void 0===r?n:r,n),a=Vd(Hd(i-o,0)),s=0;o<i;o++,s++)Fd(a,s,e[o]);return a.length=s,a}function pf(e,t){var r=e.length,n=zd(r/2);if(r<8){for(var o,i,a=e,s=t,u=a.length,c=1;c<u;){for(o=a[i=c];i&&0<s(a[i-1],o);)a[i]=a[--i];i!==c++&&(a[i]=o)}return a}for(var l=e,f=pf(Kd(e,0,n),t),p=pf(Kd(e,n),t),d=t,h=f.length,y=p.length,v=0,g=0;v<h||g<y;)l[v+g]=v<h&&g<y?d(f[v],p[g])<=0?f[v++]:p[g++]:v<h?f[v++]:p[g++];return l}function df(e){kh(e,Lh,{value:{objectID:"O"+jh++,weakData:{}}})}function hf(e,t,r){for(var n in t)Xh(e,n,t[n],r);return e}var yf,vf,gf,mf,wf,Ef,bf,Tf=c,Rf=zu,_f=(C({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=Tf.f(this),e=Rf(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),Tr),Of=Wi,Cf=Er,Nf=_,Af=cr,Sf=qi,If=o,kf=m,xf=$i,Pf=k,Df=O,Mf=ef,Uf=Yi,Lf=Xi,jf=Array,Ff=(C({target:"Array",stat:!0,forced:!Qc(function(e){Array.from(e)})},{from:function(e){var t=kf(e),e=Pf(this),r=arguments.length,n=1<r?arguments[1]:void 0,o=void 0!==n;o&&(n=Sf(n,2<r?arguments[2]:void 0));var i,a,s,u,c,l,r=Lf(t),f=0;if(!r||this===jf&&xf(r))for(i=Df(t),a=e?new this(i):jf(i);f<i;f++)l=o?n(t[f],f):t[f],Mf(a,f,l);else for(c=(u=Uf(t,r)).next,a=e?new this:[];!(s=If(c,u)).done;f++)l=o?function(e,t,r,n){try{return n?t(_f(r)[0],r[1]):t(r)}catch(t){Of(e,"throw",t)}}(u,n,[s.value,f],!0):s.value,Mf(a,f,l);return a.length=f,a}}),lr),P=Array.isArray||function(e){return"Array"==Ff(e)},Vf=(C({target:"Array",stat:!0},{isArray:P}),k),Hf=ef,Kf=Array,zf=(C({target:"Array",stat:!0,forced:v(function(){function e(){}return!(Kf.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(Vf(this)?this:Kf)(t);e<t;)Hf(r,e,arguments[e++]);return r.length=t,r}}),m),Gf=O,Bf=to,N=x,qf=(C({target:"Array",proto:!0},{at:function(e){var t=zf(this),r=Gf(t),e=Bf(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),N("at"),TypeError),$f=P,Xf=k,Yf=dr,Wf=w("species"),Jf=Array,Zf=v,Qf=T,ep=w("species"),kc=C,a=v,tp=P,rp=dr,np=m,op=O,ip=tf,ap=ef,sp=rf,A=nf,I=T,up=w("isConcatSpreadable"),Sc=51<=I||!a(function(){var e=[];return e[up]=!1,e.concat()[0]!==e}),R=A("concat"),cp=(kc({target:"Array",proto:!0,arity:1,forced:!Sc||!R},{concat:function(e){for(var t,r,n,o=np(this),i=sp(o,0),a=0,s=-1,u=arguments.length;s<u;s++)if(function(e){if(!rp(e))return!1;var t=e[up];return void 0!==t?!!t:tp(e)}(n=-1===s?o:arguments[s]))for(r=op(n),ip(a+r),t=0;t<r;t++,a++)t in n&&ap(i,a,n[t]);else ip(a+1),ap(i,a++,n);return i.length=a,i}}),yr),lp=TypeError,fp=m,pp=ro,dp=O,hp=of,yp=Math.min,S=x,vp=(C({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=fp(this),n=dp(r),o=pp(e,n),i=pp(t,n),e=2<arguments.length?arguments[2]:void 0,a=yp((void 0===e?n:pp(e,n))-i,n-o),s=1;for(i<o&&o<i+a&&(s=-1,i+=a-1,o+=a-1);0<a--;)i in r?r[o]=r[i]:hp(r,o),o+=s,i+=s;return r}}),S("copyWithin"),qi),gp=E,mp=m,wp=O,Ep=rf,bp=e([].push),p={forEach:af(0),map:af(1),filter:af(2),some:af(3),every:af(4),find:af(5),findIndex:af(6),filterReject:af(7)},Tp=v,Rp=p.every,_p=(C({target:"Array",proto:!0,forced:!sf("every")},{every:function(e){return Rp(this,e,1<arguments.length?arguments[1]:void 0)}}),m),Op=ro,Cp=O,Ts=x,Np=(C({target:"Array",proto:!0},{fill:function(e){for(var t=_p(this),r=Cp(t),n=arguments.length,o=Op(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,i=void 0===n?r:Op(n,r);o<i;)t[o++]=e;return t}}),Ts("fill"),p.filter),hn=(C({target:"Array",proto:!0,forced:!nf("filter")},{filter:function(e){return Np(this,e,1<arguments.length?arguments[1]:void 0)}}),C),Ap=p.find,Zc=x,Sp=!0,rc=("find"in[]&&Array(1).find(function(){Sp=!1}),hn({target:"Array",proto:!0,forced:Sp},{find:function(e){return Ap(this,e,1<arguments.length?arguments[1]:void 0)}}),Zc("find"),C),Ip=p.findIndex,c=x,kp=!0,xp=("findIndex"in[]&&Array(1).findIndex(function(){kp=!1}),rc({target:"Array",proto:!0,forced:kp},{findIndex:function(e){return Ip(this,e,1<arguments.length?arguments[1]:void 0)}}),c("findIndex"),qi),Pp=E,Dp=m,Mp=O,N={findLast:uf(0),findLastIndex:uf(1)},Up=N.findLast,I=x,Lp=(C({target:"Array",proto:!0},{findLast:function(e){return Up(this,e,1<arguments.length?arguments[1]:void 0)}}),I("findLast"),N.findLastIndex),a=x,jp=(C({target:"Array",proto:!0},{findLastIndex:function(e){return Lp(this,e,1<arguments.length?arguments[1]:void 0)}}),a("findLastIndex"),P),Fp=O,Vp=tf,Hp=qi,A=cf,Kp=A,zp=m,Gp=O,Bp=to,qp=rf,$p=(C({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=zp(this),r=Gp(t),n=qp(t,0);return n.length=Kp(n,t,t,r,0,void 0===e?1:Bp(e)),n}}),A),Xp=vr,Yp=m,Wp=O,Jp=rf,Zp=(C({target:"Array",proto:!0},{flatMap:function(e){var t,r=Yp(this),n=Wp(r);return Xp(e),(t=Jp(r,0)).length=$p(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),p.forEach),kc=sf("forEach")?[].forEach:function(e){return Zp(this,e,1<arguments.length?arguments[1]:void 0)},Qp=(C({target:"Array",proto:!0,forced:[].forEach!=kc},{forEach:kc}),To.includes),Sc=x,R=(C({target:"Array",proto:!0,forced:v(function(){return!Array(1).includes()})},{includes:function(e){return Qp(this,e,1<arguments.length?arguments[1]:void 0)}}),Sc("includes"),C),ed=To.indexOf,S=sf,td=e([].indexOf),rd=!!td&&1/td([1],1,-0)<0,Ts=S("indexOf"),hn=(R({target:"Array",proto:!0,forced:rd||!Ts},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return rd?td(this,e,t)||0:ed(this,e,t)}}),C),Zc=E,nd=pr,rc=sf,od=e([].join),c=Zc!=Object,I=rc("join",","),id=(hn({target:"Array",proto:!0,forced:c||!I},{join:function(e){return od(nd(this),void 0===e?",":e)}}),as),ad=pr,sd=to,ud=O,N=sf,cd=Math.min,ld=[].lastIndexOf,fd=!!ld&&1/[1].lastIndexOf(1,-0)<0,a=N("lastIndexOf"),A=fd||!a?function(e){if(fd)return id(ld,this,arguments)||0;var t=ad(this),r=ud(t),n=r-1;for((n=1<arguments.length?cd(n,sd(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:ld,pd=(C({target:"Array",proto:!0,forced:A!==[].lastIndexOf},{lastIndexOf:A}),p.map),kc=(C({target:"Array",proto:!0,forced:!nf("map")},{map:function(e){return pd(this,e,1<arguments.length?arguments[1]:void 0)}}),C),dd=m,hd=O,yd=tf,Sc=v(function(){return 4294967297!==[].push.call({length:4294967296},1)}),To=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),vd=(kc({target:"Array",proto:!0,arity:1,forced:Sc||To},{push:function(e){var t=dd(this),r=hd(t),n=arguments.length;yd(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return t.length=r}}),vr),gd=m,md=E,wd=O,Ed=TypeError,S={left:lf(!1),right:lf(!0)},bd=S.left,R=T,Ts=rs,Td=(C({target:"Array",proto:!0,forced:!sf("reduce")||!Ts&&79<R&&R<83},{reduce:function(e){var t=arguments.length;return bd(this,e,t,1<t?arguments[1]:void 0)}}),S.right),Zc=T,rc=rs,hn=(C({target:"Array",proto:!0,forced:!sf("reduceRight")||!rc&&79<Zc&&Zc<83},{reduceRight:function(e){return Td(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),C),Rd=P,_d=e([].reverse),c=[1,2],I=(hn({target:"Array",proto:!0,forced:String(c)===String(c.reverse())},{reverse:function(){return Rd(this)&&(this.length=this.length),_d(this)}}),C),Od=P,Cd=k,Nd=dr,Ad=ro,Sd=O,Id=pr,kd=ef,as=w,xd=cn,N=nf("slice"),Pd=as("species"),Dd=Array,Md=Math.max,Ud=(I({target:"Array",proto:!0,forced:!N},{slice:function(e,t){var r,n,o,i=Id(this),a=Sd(i),s=Ad(e,a),u=Ad(void 0===t?a:t,a);if(Od(i)&&(r=i.constructor,(r=Cd(r)&&(r===Dd||Od(r.prototype))||Nd(r)&&null===(r=r[Pd])?void 0:r)===Dd||void 0===r))return xd(i,s,u);for(n=new(void 0===r?Dd:r)(Md(u-s,0)),o=0;s<u;s++,o++)s in i&&kd(n,o,i[s]);return n.length=o,n}}),p.some),Ld=(C({target:"Array",proto:!0,forced:!sf("some")},{some:function(e){return Ud(this,e,1<arguments.length?arguments[1]:void 0)}}),ro),jd=O,Fd=ef,Vd=Array,Hd=Math.max,Kd=ff,zd=Math.floor,a=pf,A=Ur.match(/firefox\/(\d+)/i),kc=!!A&&+A[1],Sc=/MSIE|Trident/.test(Ur),To=Ur.match(/AppleWebKit\/(\d+)\./),Ts=!!To&&+To[1],R=C,S=e,Gd=vr,Bd=m,qd=O,$d=of,Xd=Qi,rs=v,Yd=a,rc=sf,Wd=kc,Jd=Sc,Zd=T,Qd=Ts,eh=[],th=S(eh.sort),rh=S(eh.push),Zc=rs(function(){eh.sort(void 0)}),hn=rs(function(){eh.sort(null)}),c=rc("sort"),nh=!rs(function(){if(Zd)return Zd<70;if(!(Wd&&3<Wd)){if(Jd)return!0;if(Qd)return Qd<603;for(var e,t,r,n="",o=65;o<76;o++){switch(e=String.fromCharCode(o),o){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++)eh.push({k:e+r,v:t})}for(eh.sort(function(e,t){return t.v-e.v}),r=0;r<eh.length;r++)e=eh[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),cn=(R({target:"Array",proto:!0,forced:Zc||!hn||!c||!nh},{sort:function(e){void 0!==e&&Gd(e);var t=Bd(this);if(nh)return void 0===e?th(t):th(t,e);for(var r,n,o=[],i=qd(t),a=0;a<i;a++)a in t&&rh(o,t[a]);for(Yd(o,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:Xd(e)>Xd(t)?1:-1})),r=o.length,a=0;a<r;)t[a]=o[a++];for(;a<i;)$d(t,a++);return t}}),Ys("Array"),C),oh=m,ih=ro,ah=to,sh=O,uh=tf,ch=rf,lh=ef,fh=of,as=nf("splice"),ph=Math.max,dh=Math.min,I=(cn({target:"Array",proto:!0,forced:!as},{splice:function(e,t){var r,n,o,i,a,s,u=oh(this),c=sh(u),l=ih(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,dh(ph(ah(t),0),c-l)),uh(c+r-n),o=ch(u,n),i=0;i<n;i++)(a=l+i)in u&&lh(o,i,u[a]);if(r<(o.length=n)){for(i=l;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:fh(u,s);for(i=c;c-n+r<i;i--)fh(u,i-1)}else if(n<r)for(i=c-n;l<i;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:fh(u,s);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return u.length=c-n+r,o}}),x("flat"),x("flatMap"),C),hh=m,yh=O,vh=of,gh=tf,N=1!==[].unshift(0),A=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),Ur=(I({target:"Array",proto:!0,arity:1,forced:N||A},{unshift:function(e){var t=hh(this),r=yh(t),n=arguments.length;if(n){gh(r+n);for(var o=r;o--;){var i=o+n;o in t?t[i]=t[o]:vh(t,i)}for(var a=0;a<n;a++)t[a]=arguments[a]}return t.length=r+n}}),i.Array,{exports:{}}),To={},mh=lr,wh=pr,Eh=Lr.f,bh=ff,Th="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=(To.f=function(e){if(!Th||"Window"!=mh(e))return Eh(wh(e));var t=e;try{return Eh(t)}catch(t){return bh(Th)}},v(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),kc=v,Rh=dr,_h=lr,Oh=a,Ch=Object.isExtensible,Sc=kc(function(){Ch(1)})||Oh?function(e){return!!Rh(e)&&(!Oh||"ArrayBuffer"!=_h(e))&&(!Ch||Ch(e))}:Ch,T=!v(function(){return Object.isExtensible(Object.preventExtensions({}))}),Nh=C,Ah=e,Ts=vo,Sh=dr,Ih=un,kh=_.f,xh=Lr,Ph=To,Dh=Sc,Mh=T,Uh=!1,Lh=wr("meta"),jh=0,Fh=Ur.exports={enable:function(){Fh.enable=function(){},Uh=!0;var o=xh.f,i=Ah([].splice),e={};e[Lh]=1,o(e).length&&(xh.f=function(e){for(var t=o(e),r=0,n=t.length;r<n;r++)if(t[r]===Lh){i(t,r,1);break}return t},Nh({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ph.f}))},fastKey:function(e,t){if(!Sh(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Ih(e,Lh)){if(!Dh(e))return"F";if(!t)return"E";df(e)}return e[Lh].objectID},getWeakData:function(e,t){if(!Ih(e,Lh)){if(!Dh(e))return!0;if(!t)return!1;df(e)}return e[Lh].weakData},onFreeze:function(e){return Mh&&Uh&&Dh(e)&&!Ih(e,Lh)&&df(e),e}},Vh=(Ts[Lh]=!0,g),Hh=dr,Kh=Ui,S=C,rc=d,zh=e,rs=_o,Gh=eo,R=Ur.exports,Bh=Zi,qh=Ws,Zc=g,$h=dr,hn=v,c=Qc,cn=ws,Xh=eo,Yh=_.f,Wh=Li,Jh=hf,Zh=qi,Qh=Ws,ey=Zi,ty=bs,ry=Ys,ny=r,oy=Ur.exports.fastKey,iy=b.set,ay=b.getterFor;function sy(e){var r=zh(Ef[e]);Gh(Ef,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(gf&&!$h(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return gf&&!$h(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(gf&&!$h(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}as=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},I={getConstructor:function(e,r,n,o){function i(e,t,r){var n,o=u(e),i=a(e,t);return i?i.value=r:(o.last=i={index:n=oy(t,!0),key:t,value:r,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),ny?o.size++:e.size++,"F"!==n&&(o.index[n]=i)),e}function a(e,t){var r,e=u(e),n=oy(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){Qh(e,s),iy(e,{type:r,index:Wh(null),first:void 0,last:void 0,size:0}),ny||(e.size=0),null!=t&&ey(t,e[o],{that:e,AS_ENTRIES:n})}),s=e.prototype,u=ay(r);return Jh(s,{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,ny?e.size=0:this.size=0},delete:function(e){var t,r,n=u(this),e=a(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),ny?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=Zh(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!!a(this,e)}}),Jh(s,n?{get:function(e){e=a(this,e);return e&&e.value},set:function(e,t){return i(this,0===e?0:e,t)}}:{add:function(e){return i(this,e=0===e?0:e,e)}}),ny&&Yh(s,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",o=ay(t),i=ay(n);ty(e,t,function(e,t){iy(this,{type:n,target:e,state:o(e),kind:t,last:void 0})},function(){for(var e=i(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),ry(t)}},vf=-1!==(N="Map").indexOf("Map"),gf=-1!==N.indexOf("Weak"),mf=vf?"set":"add",wf=rc.Map,Ef=wf&&wf.prototype,A={},rs(N,!Zc(bf=wf)||!(gf||Ef.forEach&&!hn(function(){(new wf).entries().next()})))?(bf=I.getConstructor(as,N,vf,mf),R.enable()):rs(N,!0)&&(i=(yf=new bf)[mf](gf?{}:-0,1)!=yf,a=hn(function(){yf.has(1)}),kc=c(function(e){new wf(e)}),vo=!gf&&hn(function(){for(var e=new wf,t=5;t--;)e[mf](t,t);return!e.has(-0)}),kc||(((bf=as(function(e,t){qh(e,Ef);r=new wf,e=e,n=bf,Kh&&Vh(e=e.constructor)&&e!==n&&Hh(e=e.prototype)&&e!==n.prototype&&Kh(r,e);var r,n=r;return null!=t&&Bh(t,n[mf],{that:n,AS_ENTRIES:vf}),n})).prototype=Ef).constructor=bf),(a||vo)&&(sy("delete"),sy("has"),vf&&sy("get")),(vo||i)&&sy(mf),gf&&Ef.clear&&delete Ef.clear),A.Map=bf,S({global:!0,constructor:!0,forced:bf!=wf},A),cn(bf,N),gf||I.setStrong(bf,N,vf);function uy(e,t){for(var r=0,n=py(t),o=new e(n);r<n;)o[r]=t[r++];return o}function cy(e,t,r,n){for(var o,i,a,s=yy(e),u=hy(s),c=dy(t,r),l=my(null),f=gy(u),p=0;p<f;p++)a=u[p],(i=vy(c(a,p,s)))in l?by(l[i],a):l[i]=[a];if(n&&(o=n(s))!==Ey)for(i in l)l[i]=wy(o,l[i]);return l}function ly(e){for(var t,r,n=Cy(this),o=Oy(n),i=_y(e,1<arguments.length?arguments[1]:void 0),a=new Ay,s=Ny(o),u=0;u<s;u++)t=i(r=o[u],u,n),Iy(a,t)?xy(Sy(a,t),r):ky(a,t,[r]);return a}function fy(e){return Uy[e].prototype}var py=O,dy=qi,hy=E,yy=m,vy=Er,gy=O,my=Li,wy=uy,Ey=Array,by=e([].push),Ty=cy,un=x,Ry=(C({target:"Array",proto:!0},{group:function(e){return Ty(this,e,1<arguments.length?arguments[1]:void 0)}}),un("group"),cy),Lr=x,_y=(C({target:"Array",proto:!0,forced:!sf("groupBy")},{groupBy:function(e){return Ry(this,e,1<arguments.length?arguments[1]:void 0)}}),Lr("groupBy"),qi),To=e,Oy=E,Cy=m,Ny=O,Ay=hr("Map"),Sc=Ay.prototype,Sy=To(Sc.get),Iy=To(Sc.has),ky=To(Sc.set),xy=To([].push),T=x,Ts=ly,Ui=(C({target:"Array",proto:!0,name:"groupToMap",forced:!sf("groupByToMap")},{groupByToMap:Ts}),T("groupByToMap"),x),Py=(C({target:"Array",proto:!0},{groupToMap:ly}),Ui("groupToMap"),O),Dy=pr,_o=x,My=Array,Uy=(C({target:"Array",proto:!0},{toReversed:function(){for(var e=Dy(this),t=My,r=Py(e),n=new t(r),o=0;o<r;o++)n[o]=e[r-o-1];return n}}),_o("toReversed"),d),Ur=C,Ly=vr,jy=pr,Fy=uy,rc=x,Vy=Array,Hy=e(fy("Array").sort),rs=(Ur({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&Ly(e);var t=jy(this),t=Fy(Vy,t);return Hy(t,e)}}),rc("toSorted"),C),c=x,Ky=tf,zy=O,Gy=ro,By=pr,qy=to,$y=Array,Xy=Math.max,Yy=Math.min,Wy=(rs({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,o,i,a=By(this),s=zy(a),u=Gy(e,s),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,s-u):(r=e-2,Yy(Xy(qy(t),0),s-u)),o=Ky(s+r-n),i=$y(o);c<u;c++)i[c]=a[c];for(;c<u+r;c++)i[c]=arguments[c-u+2];for(;c<o;c++)i[c]=a[c+n-r];return i}}),c("toSpliced"),O),Jy=to,Zy=RangeError,Qy=pr,ev=Array;C({target:"Array",proto:!0},{with:function(e,t){var r=Qy(this),n=ev,o=t,i=Wy(r),a=(e=Jy(e))<0?i+e:e;if(i<=a||a<0)throw Zy("Incorrect index");for(var s=new n(i),u=0;u<i;u++)s[u]=u===a?o:r[u];return s}});hn=d,kc=tn,as=g,a=Jn,vo=eo,i=w("asyncIterator"),S=hn.AsyncIterator,A=kc.AsyncIteratorPrototype;if(A)bg=A;else if(as(S))bg=S.prototype;else if(kc.USE_FUNCTION_CONSTRUCTOR||hn.USE_FUNCTION_CONSTRUCTOR)try{Eg=a(a(a(Function("return async function*(){}()")()))),a(Eg)===Object.prototype&&(bg=Eg)}catch(u0){}as((bg=bg||{})[i])||vo(bg,i,function(){return this});function tv(e,t,r){var n=e.done;lv.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function rv(e){fv(this,{type:"AsyncFromSyncIterator",iterator:uv(e),next:e.next})}function nv(e,t,r,n){try{var o=Rv(e,"return");if(o)return Tv("Promise").resolve(bv(o,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function ov(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,a,s){var e={iterator:e,next:wv(Ev(e).next)},u=Av("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==a;return!f&&p||Ov(a),new u(function(r,n){var o=function(e){nv(c,n,e,n)},i=function(){try{if(p&&f)try{Nv(l)}catch(e){o(e)}u.resolve(Cv(_v(t,c))).then(function(e){try{if(Cv(e).done)p?(s.length=l,r(s)):r(!y&&(h||void 0));else{var t=e.value;try{f?u.resolve(p?a(t,l):a(t)).then(function(e){if(d)i();else if(h)e?i():nv(c,r,!1,n);else if(p)try{s[l++]=e,i()}catch(e){o(e)}else e?nv(c,r,y||t,n):i()},o):(s[l++]=t,i())}catch(e){o(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};i()})}}function iv(e,t){if(!zv||!Kv(e)||!zv(e))return!1;for(var r,n=0,o=e.length;n<o;)if(!("string"==typeof(r=e[n++])||t&&void 0===r))return!1;return 0!==o}function av(e,t,r){r.get&&Gv(r.get,t,{getter:!0}),r.set&&Gv(r.set,t,{setter:!0}),Bv.f(e,t,r)}var sv=o,uv=Tr,cn=Li,cv=gr,I=hf,N=b,un=bg,lv=hr("Promise"),fv=N.set,pv=N.getterFor("AsyncFromSyncIterator"),Lr=(rv.prototype=I(cn(un),{next:function(){var n=pv(this);return new lv(function(e,t){var r=uv(sv(n.next,n.iterator));tv(r,e,t)})},return:function(){var n=pv(this).iterator;return new lv(function(e,t){var r=cv(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=uv(sv(r,n));tv(r,e,t)})}}),rv),dv=o,hv=Lr,yv=Tr,vv=Yi,gv=gr,mv=w("asyncIterator"),wv=vr,Ev=Tr,bv=o,Tv=hr,Rv=gr,_v=o,Ov=vr,Cv=Tr,Nv=tf,Av=hr,E={toArray:ov(0),forEach:ov(1),every:ov(2),some:ov(3),find:ov(4)},Sv=qi,Iv=m,kv=k,xv=Yi,Pv=Xi,Dv=gr,Sc=fy,Mv=hr,Uv=Lr,Lv=E.toArray,jv=w("asyncIterator"),Fv=Sc("Array").values,Vv=(C({target:"Array",stat:!0,forced:!0},{fromAsync:function(i){var a=this,e=arguments.length,s=1<e?arguments[1]:void 0,u=2<e?arguments[2]:void 0;return new(Mv("Promise"))(function(e){var t=Iv(i),r=(void 0!==s&&(s=Sv(s,u)),Dv(t,jv)),n=r?void 0:Pv(t)||Fv,o=kv(a)?new a:[],r=r?function(e,t){t=arguments.length<2?gv(e,mv):t;return t?yv(dv(t,e)):new hv(vv(e))}(t,r):new Uv(xv(t,n));e(Lv(r,s,o))})}}),p.filterReject),To=x,Hv=(C({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return Vv(this,e,1<arguments.length?arguments[1]:void 0)}}),To("filterOut"),p.filterReject),Ts=x,T=(C({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return Hv(this,e,1<arguments.length?arguments[1]:void 0)}}),Ts("filterReject"),C),Kv=P,zv=Object.isFrozen,Gv=(T({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!iv(e,!0))return!1;var t=e.raw;return t.length===e.length&&iv(t,!1)}}),zr.exports),Bv=_,Ui=x,qv=m,$v=O,_o=(r&&(av(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=qv(this),t=$v(e);return 0==t?void 0:e[t-1]},set:function(e){var t=qv(this),r=$v(t);return t[0==r?0:r-1]=e}}),Ui("lastItem")),x),Xv=m,Yv=O,Ur=(r&&(av(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=Xv(this),e=Yv(e);return 0==e?0:e-1}}),_o("lastIndex")),e),Wv=vr,Jv=O,Zv=m,Qv=rf,eg=hr("Map"),rc=eg.prototype,tg=Ur(rc.forEach),rg=Ur(rc.has),ng=Ur(rc.set),og=Ur([].push),rs=x;C({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=Zv(this),o=Jv(n),i=Qv(n,0),a=new eg,s=null!=e?Wv(e):function(e){return e},u=0;u<o;u++)r=s(t=n[u]),rg(a,r)||ng(a,r,t);return tg(a,function(e){og(i,e)}),i}}),rs("uniqueBy");function ig(e,t,r,n){this.valueId=e,this.value=t,this.reason=r,this.properties=n}zm.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},zm.prototype.refresh=function(){this.stop(),this.start()},zm.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)};var ag,sg=zm,ug=(Km.prototype.start=function(){this.started=!0},Km.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},Km.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},Km.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},Km.prototype.close=function(){this.stop()},Km),cg=(Hm.prototype.isClientError=function(e){return!!(e&&400<=e.statusCode&&e.statusCode<500)},Hm.prototype.drainRepository=function(i){var e=this;return new Promise(function(o){return fe(e,void 0,void 0,function(){var t,r,n=this;return pe(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?i?this.eventDispatcher.dispatchXhrOrBeacon(t,function(){var e;o(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?o(null==(e=n.repository)?void 0:e.delete(t)):o()}):this.eventDispatcher.dispatch(t,function(){var e;o(null==(e=n.repository)?void 0:e.delete(t))},function(e){n.isClientError(e)?o(null==(e=n.repository)?void 0:e.delete(t)):o()}):o(),[2]}})})})},Hm.prototype.drainQueue=function(o,i){var e=this,a=o.map(function(e){return e.toDto()});return new Promise(function(n){return fe(e,void 0,void 0,function(){var t,r=this;return pe(this,function(e){return 0===o.length?n():i?(null!=(t=this.repository)&&t.add(a),this.eventDispatcher.dispatchXhrOrBeacon(o,function(){var e;n(null==(e=r.repository)?void 0:e.delete(a))},function(e){r.isClientError(e)?n(null==(e=r.repository)?void 0:e.delete(a)):n()})):this.eventDispatcher.dispatch(o,function(){n()},function(e){r.isClientError(e)?n():n(null==(e=r.repository)?void 0:e.add(a))}),[2]})})})},Hm.prototype.process=function(e){this.queue.enqueue(e)},Hm.prototype.start=function(){return fe(this,void 0,void 0,function(){return pe(this,function(e){return this.queue.start(),[2]})})},Hm.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},Hm.prototype.flush=function(){this.queue.flush()},Hm.prototype.close=function(){this.stop()},Hm),lg=(Vm.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]})},Vm),fg=(Fm.prototype.process=function(e){this.exposureEventDedupDeterminer.isDedupTarget(e)||this.delegate.process(e)},Fm.prototype.close=function(){this.delegate.close()},Fm.prototype.flush=function(){this.delegate.flush()},Fm.prototype.start=function(){return this.delegate.start()},Fm),pg=(jm.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!Tt.isExposure(e))return!1;lg.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)},jm),dg=(Lm.toEvent=function(e){var t;return{key:Lm.EVENT_KEY,properties:{level:Lm.LEVEL_ERROR,type:e.name,message:null!=(t=e.message)?t:"",$stacktrace:Lm._stacktrace(e)}}},Lm._stacktrace=function(e){return s.isNullOrUndefined(e.stack)?"":e.stack.split("\n").slice(0,Lm.STACK_TRACK_LIMIT).join("\n")},Lm.EVENT_KEY="$trace",Lm.LEVEL_ERROR="error",Lm.STACK_TRACK_LIMIT=30,Lm),hg=de.log,yg=(Um.prototype._experiment=function(e,t,r){if(!e)return hg.error("experimentKey must not be empty"),Le.of(r,u.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return hg.warn("SDK not ready."),Le.of(r,u.SDK_NOT_READY);e=n.getExperimentOrNull(e);if(!e)return hg.warn("Experiment does not exist."),Le.of(r,u.EXPERIMENT_NOT_FOUND);n=this.evaluator.evaluate(n,e,t,r),this.eventProcessor.process(Tt.exposure(e,t,n)),e=null!=(r=n.config)?r:new Fe;return Le.of(n.variationKey,n.reason,e)},Um.prototype._featureFlag=function(e,t){if(!e)return hg.error("featureKey must not be empty"),je.off(u.INVALID_INPUT);var r=this.workspaceFetcher.get();if(!r)return hg.warn("SDK not ready."),je.off(u.SDK_NOT_READY);var e=r.getFeatureFlagOrNull(e);if(!e)return hg.warn("FeatureFlag does not exist."),je.off(u.FEATURE_FLAG_NOT_FOUND);r=this.evaluator.evaluate(r,e,t,"A"),this.eventProcessor.process(Tt.exposure(e,t,r)),t=null!=(e=r.config)?e:new Fe;return"A"===r.variationKey?je.off(r.reason,t):je.on(r.reason,t)},Um.prototype._track=function(e,t){var r;e?"object"==typeof e?"object"!=typeof e||e.key&&"string"==typeof e.key?(r=(null==(r=this.workspaceFetcher.get())?void 0:r.getEventTypeOrNull(e.key))||new Te(0,e.key),this.eventProcessor.process(Tt.track(r,e,t))):hg.warn("Event key must be not null. or event key must be string type."):hg.warn("Event must be event type."):hg.warn("event must not be null.")},Um.prototype._trackException=function(e,t){this.errorDedupDeterminer.isDedupTarget(e)||(e=dg.toEvent(e),this._flush(),this._track(e,t),this._flush())},Um.prototype._flush=function(){this.eventProcessor.flush()},Um.prototype._remoteConfig=function(e,t,r,n){var o=this.workspaceFetcher.get();if(s.isNullOrUndefined(o))return hg.warn("SDK not ready."),Ue.of(n,u.SDK_NOT_READY);e=o.getRemoteConfigParameterOrNull(e);if(s.isNullOrUndefined(e))return hg.warn("Remote config parameter does not exist."),Ue.of(n,u.REMOTE_CONFIG_PARAMETER_NOT_FOUND);o=this.evaluator.remoteConfigEvaluate(o,e,t,r,n);return this.eventProcessor.process(Tt.remoteConfig(e,t,o)),Ue.of(o.value,o.reason)},Um.prototype._onReady=function(e,t){this._onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},Um.prototype._onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(hg.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?hg.debug("HackleClient onInitialized Success"):e.error instanceof Error?hg.error("HackleClient onInitialized Failed. ".concat(e.error.message)):hg.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},Um.prototype._close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},Um),vg=(Mm.prototype.isDedupTarget=function(e){return!!this._isSameError(e,this.previous)||(this.previous=e,!1)},Mm.prototype._isSameError=function(e,t){return!s.isNullOrUndefined(t)&&e.name===t.name&&e.message===t.message&&e.stack===t.stack},Mm),gg=(Dm.of=function(e,t,r,n){t=t._getVariationByKeyOrNull(r);return s.isNotNullOrUndefined(t)?Dm.withVariation(e,t,n):new Dm(void 0,r,n,void 0)},Dm.withVariation=function(e,t,r){e=this.config(e,t);return new Dm(t.id,t.key,r,e)},Dm.config=function(e,t){if(!s.isNullOrUndefined(t.parameterConfigurationId))return s.requiredNotNullOrUndefined(e.getParameterConfigurationOrNull(t.parameterConfigurationId),function(){return"ParameterConfiguration[".concat(t.parameterConfigurationId,"]")})},Dm),mg=(Pm.prototype.evaluate=function(e,t,r,n){return this.evaluationFlowFactory.getFlow(t.type).evaluate(e,t,r,n)},Pm.prototype.remoteConfigEvaluate=function(e,t,r,n,o){var i={};if(i.requestValueType=n,i.requestDefaultValue=o,s.isNullOrUndefined(r.identifiers[t.identifierType]))return new ig(void 0,o,u.IDENTIFIER_NOT_FOUND,i);e=this.evaluationFlowFactory.getRemoteConfigParameterTargetRuleDeterminer().determineTargetRuleOrNull(e,t,r);return e?(i.targetRuleKey=e.key,i.targetRuleName=e.name,this.getRemoteConfigEvaluationWithTypeCheck(e.value,u.TARGET_RULE_MATCH,n,o,i)):this.getRemoteConfigEvaluationWithTypeCheck(t.defaultValue,u.DEFAULT_RULE,n,o,i)},Pm.prototype.getRemoteConfigEvaluationWithTypeCheck=function(e,t,r,n,o){return"UNKNOWN"===r||"NULL"!==r&&typeof n!=typeof e.rawValue?(o.returnValue=n,new ig(void 0,n,u.TYPE_MISMATCH,o)):(o.returnValue=e.rawValue,new ig(e.id,e.rawValue,t,o))},Pm),wg=(xm.prototype.matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n._matches(e,t,r)})},xm.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(e.key.type).matches(e,t,r)},xm),c=(km.prototype.matches=function(t,e){var r=this.valueMatcherFactory.getMatcher(e.valueType),n=this.operatorMatcherFactory.getMatcher(e.operator),o=e.values.some(function(e){return r.matches(n,t,e)});return this._matches(e.type,o)},km.prototype._matches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},km),d=(Im.prototype.booleanMatches=function(e,t){return e===t},Im.prototype.numberMatches=function(e,t){return e===t},Im.prototype.stringMatches=function(e,t){return e===t},Im.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},Im),tn=(Sm.prototype.booleanMatches=function(e,t){return!1},Sm.prototype.numberMatches=function(e,t){return!1},Sm.prototype.stringMatches=function(e,t){return e.includes(t)},Sm.prototype.versionMatches=function(e,t){return!1},Sm),Jn=(Am.prototype.booleanMatches=function(e,t){return!1},Am.prototype.numberMatches=function(e,t){return!1},Am.prototype.stringMatches=function(e,t){return e.startsWith(t)},Am.prototype.versionMatches=function(e,t){return!1},Am),A=(Nm.prototype.booleanMatches=function(e,t){return!1},Nm.prototype.numberMatches=function(e,t){return!1},Nm.prototype.stringMatches=function(e,t){return e.endsWith(t)},Nm.prototype.versionMatches=function(e,t){return!1},Nm),S=(Cm.prototype.booleanMatches=function(e,t){return!1},Cm.prototype.numberMatches=function(e,t){return t<e},Cm.prototype.stringMatches=function(e,t){return!1},Cm.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},Cm),kc=(Om.prototype.booleanMatches=function(e,t){return!1},Om.prototype.numberMatches=function(e,t){return t<=e},Om.prototype.stringMatches=function(e,t){return!1},Om.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},Om),hn=(_m.prototype.booleanMatches=function(e,t){return!1},_m.prototype.numberMatches=function(e,t){return e<t},_m.prototype.stringMatches=function(e,t){return!1},_m.prototype.versionMatches=function(e,t){return e.isLessThan(t)},_m),a=(Rm.prototype.booleanMatches=function(e,t){return!1},Rm.prototype.numberMatches=function(e,t){return e<=t},Rm.prototype.stringMatches=function(e,t){return!1},Rm.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},Rm),Eg=(Tm.prototype.getMatcher=function(e){switch(e){case"IN":return Tm.IN_MATCHER;case"CONTAINS":return Tm.CONTAINS_MATCHER;case"STARTS_WITH":return Tm.STARTS_WITH_MATCHER;case"ENDS_WITH":return Tm.ENDS_WITH_MATCHER;case"GT":return Tm.GT_MATCHER;case"GTE":return Tm.GTE_MATCHER;case"LT":return Tm.LT_MATCHER;case"LTE":return Tm.LTE_MATCHER}},Tm.IN_MATCHER=new d,Tm.CONTAINS_MATCHER=new tn,Tm.STARTS_WITH_MATCHER=new Jn,Tm.ENDS_WITH_MATCHER=new A,Tm.GT_MATCHER=new S,Tm.GTE_MATCHER=new kc,Tm.LT_MATCHER=new hn,Tm.LTE_MATCHER=new a,Tm),as=(bm.prototype.matches=function(e,t,r){return"string"==typeof t&&"string"==typeof r&&e.stringMatches(t,r)},bm),vo=(Em.prototype.matches=function(e,t,r){return"number"==typeof t&&"number"==typeof r&&e.numberMatches(t,r)},Em),i=(wm.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},wm),Li=(mm.prototype.matches=function(e,t,r){t=st.tryParse(t),r=st.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},mm),b=(gm.prototype.matches=function(e,t,r){return!1},gm),bg=(vm.prototype.getMatcher=function(e){switch(e){case"STRING":case"JSON":return vm.STRING_MATCHER;case"NUMBER":return vm.NUMBER_MATCHER;case"BOOLEAN":return vm.BOOLEAN_MATCHER;case"VERSION":return vm.VERSION_MATCHER;case"NULL":case"UNKNOWN":return vm.NULL_MATCHER}},vm.STRING_MATCHER=new as,vm.NUMBER_MATCHER=new vo,vm.BOOLEAN_MATCHER=new i,vm.VERSION_MATCHER=new Li,vm.NULL_MATCHER=new b,vm),N=(ym.prototype.matches=function(e,t,r){r=this.userValueResolver.resolveOrNull(r,e.key);return!s.isNullOrUndefined(r)&&this.valueOperatorMatcher.matches(r,e.match)},ym),I=(hm.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":throw new Error("Unsupported TargetKeyType [".concat(t.type,"]"))}},hm),cn=(dm.prototype.matches=function(e,t,r){var n=this;if("SEGMENT"!=e.key.type)throw new Error("Unsupported TargetKeyType [".concat(e.key.type,"]"));var o=e.match.values.some(function(e){return n._matches(e,t,r)});switch(e.match.type){case"MATCH":return o;case"NOT_MATCH":return!o}},dm.prototype._matches=function(e,t,r){if("string"!=typeof e)throw new Error("SegmentKey[".concat(e,"]"));var n=t.getSegmentOrNull(e);if(n)return this.segmentMatcher.matches(n,t,r);throw new Error("Segment[".concat(e,"]"))},dm),un=(pm.prototype.matches=function(e,t,r){var n=this;return e.targets.some(function(e){return n._matches(e,t,r)})},pm.prototype._matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(e,t,r)})},pm),Tg=(fm.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return fm.USER_CONDITION_MATCHER;case"SEGMENT":return fm.SEGMENT_CONDITION_MATCHER}},fm.USER_CONDITION_MATCHER=new N(new I,new c(new bg,new Eg)),fm.SEGMENT_CONDITION_MATCHER=new cn(new un(fm.USER_CONDITION_MATCHER)),fm),Rg=(lm.prototype.resolveOrNull=function(e,t,r,n){switch(e.type){case"VARIATION":return this._resolveVariation(e,r);case"BUCKET":return this._resolveBucket(e,t,r,n)}},lm.prototype._resolveVariation=function(e,t){return t._getVariationByIdOrNull(e.variationId)},lm.prototype._resolveBucket=function(e,t,r,n){t=t.getBucketOrNull(e.bucketId),e=n.identifiers[r.identifierType];if(e){n=this.bucketer.bucketing(t,e);if(n)return r._getVariationByIdOrNull(n.variationId)}},lm),_g={murmurhash3_x86_32:function(e,t,r,n){for(var o,i=3432918353,a=461845907,s=-4&(n=void 0===n?e.length:n),u=t,c=0;c<s;c+=4)o=255&e.charCodeAt(c)|(255&e.charCodeAt(c+1))<<8|(255&e.charCodeAt(c+2))<<16|(255&e.charCodeAt(c+3))<<24,o=(131071&(o=this.mul32(o,i)))<<15|o>>>17,u=5*((524287&(u^=o=this.mul32(o,a)))<<13|u>>>19)+3864292196|0;switch(o=0,n%4){case 3:o=(255&e.charCodeAt(2+s))<<16;case 2:o|=(255&e.charCodeAt(1+s))<<8;case 1:o|=255&e.charCodeAt(s),o=(131071&(o=this.mul32(o,i)))<<15|o>>>17,u^=o=this.mul32(o,a)}return u=this.mul32(u=(u^=n)^u>>>16,2246822507),(u=this.mul32(u^=u>>>13,3266489909))^u>>>16},mul32:function(e,t){var r=65535&t;return((t-r)*e|0)+(r*e|0)|0}},Og=(cm.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},cm.prototype.calculateSlotNumber=function(e,t,r){r=_g.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},cm),Cg=(um.prototype.evaluate=function(e,t,r,n){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,r,n,this.nextFlow):gg.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},um.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new um,n=0,o=e.reverse();n<o.length;n++)r=new um(o[n],r);return r},um),Ng=(sm.prototype.evaluate=function(e,t,r,n,o){var i=this.overrideResolver.resolveOrNull(e,t,r);if(!i)return o.evaluate(e,t,r,n);switch(t.type){case"AB_TEST":return gg.withVariation(e,i,u.OVERRIDDEN);case"FEATURE_FLAG":return gg.withVariation(e,i,u.INDIVIDUAL_TARGET_MATCH)}},sm),Ag=(am.prototype.evaluate=function(e,t,r,n,o){return"DRAFT"===t.status?gg.of(e,t,n,u.EXPERIMENT_DRAFT):o.evaluate(e,t,r,n)},am),Sg=(im.prototype.evaluate=function(e,t,r,n,o){if("PAUSED"!==t.status)return o.evaluate(e,t,r,n);switch(t.type){case"AB_TEST":return gg.of(e,t,n,u.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return gg.of(e,t,n,u.FEATURE_FLAG_INACTIVE)}},im),Ig=(om.prototype.evaluate=function(e,t,r,n,o){if("COMPLETED"!==t.status)return o.evaluate(e,t,r,n);o=t._winnerVariationOrNull();if(o)return gg.withVariation(e,o,u.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(t.id,"]"))},om),kg=(nm.prototype.evaluate=function(e,t,r,n,o){if("AB_TEST"!==t.type)throw new Error("experiment type must be AB_TEST [".concat(t.id,"]"));return this.experimentTargetDeterminer.isUserInExperimentTarget(e,t,r)?o.evaluate(e,t,r,n):gg.of(e,t,n,u.NOT_IN_EXPERIMENT_TARGET)},nm),xg=(rm.prototype.evaluate=function(e,t,r,n,o){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("AB_TEST"!==t.type)throw new Error("experiment type must be AB_TEST [".concat(t.id,"]"));r=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);return r?r.isDropped?gg.of(e,t,n,u.VARIATION_DROPPED):gg.withVariation(e,r,u.TRAFFIC_ALLOCATED):gg.of(e,t,n,u.TRAFFIC_NOT_ALLOCATED)},rm),Pg=(tm.prototype.evaluate=function(e,t,r,n,o){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("FEATURE_FLAG"!==t.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(t.id,"]"));if(!r.identifiers[t.identifierType])return o.evaluate(e,t,r,n);var i=this.targetRuleDeterminer.determineTargetRuleOrNull(e,t,r);if(!i)return o.evaluate(e,t,r,n);o=this.actionResolver.resolveOrNull(i.action,e,t,r);if(o)return gg.withVariation(e,o,u.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},tm),Dg=(em.prototype.evaluate=function(e,t,r,n,o){if("RUNNING"!==t.status)throw new Error("experiment status must be RUNNING [".concat(t.id,"]"));if("FEATURE_FLAG"!==t.type)throw new Error("experiment type must be FEATURE_FLAG [".concat(t.id,"]"));if(!r.identifiers[t.identifierType])return gg.of(e,t,n,u.DEFAULT_RULE);n=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);if(n)return gg.withVariation(e,n,u.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},em),Mg=(Qg.prototype.evaluate=function(e,t,r,n,o){var i=t.containerId;if(!i)return o.evaluate(e,t,r,n);var a=e.getContainerOrNull(i);if(!a)throw new Error("container[".concat(i,"]"));i=e.getBucketOrNull(a.bucketId);if(i)return this.containerResolver.isUserInContainerGroup(a,i,t,r)?o.evaluate(e,t,r,n):gg.of(e,t,n,u.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("bucket[".concat(a.bucketId,"]"))},Qg),Ug=(Zg.prototype.evaluate=function(e,t,r,n,o){return r.identifiers[t.identifierType]?o.evaluate(e,t,r,n):gg.of(e,t,n,u.IDENTIFIER_NOT_FOUND)},Zg),Lg=(Jg.prototype.isUserInExperimentTarget=function(t,e,r){var n=this;return 0===e.targetAudiences.length||e.targetAudiences.some(function(e){return n.targetMatcher.matches(e,t,r)})},Jg),jg=(Wg.prototype.determineTargetRuleOrNull=function(t,e,r){var n=this;return e.targetRules.find(function(e){return n.targetMatcher.matches(e.target,t,r)})},Wg),Fg=(Yg.prototype.resolveOrNull=function(e,t,r){return this._resolveUserOverride(t,r)||this._resolveSegmentOverride(e,t,r)},Yg.prototype._resolveUserOverride=function(e,t){t=t.identifiers[e.identifierType];if(t){t=e.userOverrides.get(t);if(t)return e._getVariationByIdOrNull(t)}},Yg.prototype._resolveSegmentOverride=function(t,e,r){var n=this,o=e.segmentOverrides.find(function(e){return n.targetMatcher.matches(e.target,t,r)});if(o)return this.actionResolver.resolveOrNull(o.action,t,e,r)},Yg),Vg=(Xg.prototype.isUserInContainerGroup=function(e,t,r,n){n=n.identifiers[r.identifierType];if(!n)return!1;t=this.bucketer.bucketing(t,n);if(!t)return!1;n=e.getGroupOrNull(t.variationId);if(n)return n.experiments.includes(r.id);throw new Error("ContainerGroup[".concat(t.variationId,"]"))},Xg),Hg=($g.prototype.determineTargetRuleOrNull=function(t,r,n){var o=this;return r.targetRules.find(function(e){return o.matches(e,t,r,n)})},$g.prototype.matches=function(e,t,r,n){if(!this.targetMatcher.matches(e.target,t,n))return!1;n=n.identifiers[r.identifierType];if(s.isNullOrUndefined(n))return!1;r=t.getBucketOrNull(e.bucketId);if(s.isNullOrUndefined(r))throw new Error("bucket[".concat(e.bucketId,"]"));return s.isNotNullOrUndefined(this.bucketer.bucketing(r,n))},$g),Kg=(qg.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},qg.prototype.getRemoteConfigParameterTargetRuleDeterminer=function(){return this.remoteConfigParameterTargetRuleDeterminer},qg),zg=(Bg.prototype.install=function(e,t){this._install("onerror",e,t),this._install("onunhandledrejection",e,t)},Bg.prototype._install=function(e,t,r){e in this._installed||((0,this._installations[e])(t,r),this._installed.push(e))},Bg),Gg=null;function Bg(){this._installed=[],this._installations={onerror:Gm,onunhandledrejection:Bm}}function qg(){var e=new Og,t=new wg(new Tg),r=new Rg(e),n=new Fg(t,r),o=new Vg(e);this.abTestFlow=Cg.of(new Ng(n),new Ug,new Mg(o),new kg(new Lg(t)),new Ag,new Sg,new Ig,new xg(r)),this.featureFlagFlow=Cg.of(new Ag,new Sg,new Ig,new Ng(n),new Ug,new Pg(new jg(t),r),new Dg(r)),this.remoteConfigParameterTargetRuleDeterminer=new Hg(t,e)}function $g(e,t){this.targetMatcher=e,this.bucketer=t}function Xg(e){this.bucketer=e}function Yg(e,t){this.targetMatcher=e,this.actionResolver=t}function Wg(e){this.targetMatcher=e}function Jg(e){this.targetMatcher=e}function Zg(){}function Qg(e){this.containerResolver=e}function em(e){this.actionResolver=e}function tm(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function rm(e){this.actionResolver=e}function nm(e){this.experimentTargetDeterminer=e}function om(){}function im(){}function am(){}function sm(e){this.overrideResolver=e}function um(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function cm(){}function lm(e){this.bucketer=e}function fm(){}function pm(e){this.userConditionMatcher=e}function dm(e){this.segmentMatcher=e}function hm(){}function ym(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function vm(){}function gm(){}function mm(){}function wm(){}function Em(){}function bm(){}function Tm(){}function Rm(){}function _m(){}function Om(){}function Cm(){}function Nm(){}function Am(){}function Sm(){}function Im(){}function km(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function xm(e){this.conditionMatcherFactory=e}function Pm(e){this.evaluationFlowFactory=e}function Dm(e,t,r,n){this.variationId=e,this.variationKey=t,this.reason=r,this.config=n}function Mm(){}function Um(e,t,r,n){this.workspaceFetcher=e,this.eventProcessor=t,this.evaluator=r,this.errorDedupDeterminer=n,this.workspaceFetcher.start(),this.eventProcessor.start(),this.readyPromise=this.workspaceFetcher.onReady().then(function(){return{success:!0}},function(e){return{success:!1,error:e}})}function Lm(){}function jm(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function Fm(e,t){this.delegate=e,this.exposureEventDedupDeterminer=t}function Vm(){}function Hm(e,t,r,n){void 0===n&&(n=null),this.eventDispatcher=e,this.flushInterval=r,this.queue=new ug(this.drainQueue.bind(this),t,r),this.repository=n}function Km(e,t,r){this.buffer=[],this.sink=e,this.maxQueueSize=t,this.timer=new sg({callback:this.flush.bind(this),timeout:r}),this.started=!1}function zm(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function Gm(i,a){Gg=window.onerror,window.onerror=function(e,t,r,n,o){s.isNotNullOrUndefined(o)&&i._trackException(o,a.resolveAnonymousUser()),Gg&&Gg.apply(this,arguments)}}function Bm(r,n){ag=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.resolveAnonymousUser()),ag&&ag.apply(this,arguments)}}Wm.prototype.read=function(){var r=this;return new Promise(function(e){var t=r.storage.getItem(r.storageKey);t&&e(JSON.parse(t)),e([])})},Wm.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()})},Wm.prototype.add=function(t){var r=this;return this.read().then(function(e){return r.save(e.concat(t).slice(-r.maxSize))})},Wm.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)})},Wm.prototype.clear=function(){var t=this;return new Promise(function(e){localStorage.removeItem(t.storageKey),e()})};var qm=Wm,$m=de.log,Xm=null,Ym={debug:!1,log_disabled:!1,auto_track_page_view:!1,pollingIntervalMillis:-1,exposureEventDedupIntervalMillis:-1,SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.7.3"};function Wm(e,t,r){this.storage=e,this.storageKey=t,this.maxSize=r}function Jm(e,t){t=le(le({},Ym),t);if(t.log_disabled?de.setLogLevel(0):t.debug&&de.setLogLevel(4),$m.debug("sdkKey : "+e),e||$m.error("SDK Key must not be null"),Xm)return $m.debug("use already exists hackleClient"),Xm;var r=!1,r=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&$m.debug("support sendBeacon API"),new jt(e,De,{dispatchUrl:"https://event.hackle.io/api/v2/w/events",beaconDispatchUrl:"".concat("https://event.hackle.io/api/v2/w/").concat(e).concat("/events"),useBeacon:r,headers:((r={})["X-HACKLE-SDK-NAME"]=t.SDK_NAME_HEADER,r["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,r)})),n=-1,n=(void 0!==t.pollingIntervalMillis&&"number"==typeof t.pollingIntervalMillis&&0<t.pollingIntervalMillis&&(n=Math.max(t.pollingIntervalMillis,3e4)),new Ht(e,De,{fetchUrl:"".concat("https://client-sdk.hackle.io/api/v2/w/").concat(e).concat("/w"),updateInterval:n,headers:((n={})["X-HACKLE-SDK-NAME"]=t.SDK_NAME_HEADER,n["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,n)})),o=-1;void 0!==t.exposureEventDedupIntervalMillis&&"number"==typeof t.exposureEventDedupIntervalMillis&&-1!==t.exposureEventDedupIntervalMillis&&(o=t.exposureEventDedupIntervalMillis<1e3||36e5<t.exposureEventDedupIntervalMillis?($m.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis);function i(){u.drainRepository()}var a,s,e=new qm(window.localStorage,"".concat("hackle-repository-storage","_").concat(e),100),u=new cg(r,100,500,e),r=new pg(o),e=new fg(u,r),o=new yg(n,e,new mg(new Kg),new vg),r=new Bt,c=new Et(o,r);Xm=c,t.auto_track_page_view&&(s=function(){return a.trackPageView({user:{id:er()}})},(a=c).onReady(function(){function t(e){if("function"==typeof window.Event)return new Event(e);var t=!1,r=!1,n=void 0,o=document.createEvent("CustomEvent");return o.initCustomEvent(e,t,r,n),o}s();try{history.pushState=(n=history.pushState,function(){try{var e=n.apply(this,arguments);return window.dispatchEvent(t("locationchange")),e}catch(e){if(e instanceof Error)$m.error(e);else try{$m.error(e)}catch(e){}}}),history.replaceState=(r=history.replaceState,function(){try{var e=r.apply(this,arguments);return window.dispatchEvent(t("locationchange")),e}catch(e){if(e instanceof Error)$m.error(e);else try{$m.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)$m.error(e);else try{$m.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{s()}catch(e){if(e instanceof Error)$m.error(e);else try{$m.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)$m.error(t);else try{$m.error(t)}catch(t){}}var r,n})),(new zg).install(o,r);return document.addEventListener("visibilitychange",function(){document.hidden||i()}),window.addEventListener("pageshow",i),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){rr(),c.close()}),c}var o={createInstance:Jm,getUserId:er,setUserId:tr,removeUserId:rr,Logger:de},Zm=(f.Bucket=t.Bucket=be,f.Container=t.Container=Ge,f.ContainerGroup=t.ContainerGroup=Ie,f.CoreVersion=t.CoreVersion=ut,f.Decision=t.Decision=Le,f.DecisionReason=t.DecisionReason=u,f.EmptyHackleRemoteConfig=t.EmptyHackleRemoteConfig=ie,f.EmptyParameterConfig=t.EmptyParameterConfig=Fe,f.EventType=t.EventType=Te,f.Experiment=t.Experiment=Ve,f.FeatureFlagDecision=t.FeatureFlagDecision=je,f.IdentifierType=t.IdentifierType=Ke,f.IdentifiersBuilder=t.IdentifiersBuilder=ze,f.Logger=t.Logger=de,f.MATCH_OPERATORS=t.MATCH_OPERATORS=pt,f.MATCH_TYPES=t.MATCH_TYPES=lt,f.MATCH_VALUE_TYPES=t.MATCH_VALUE_TYPES=ft,f.MetaVersion=t.MetaVersion=ct,f.ParameterConfiguration=t.ParameterConfiguration=Be,f.RemoteConfigDecision=t.RemoteConfigDecision=Ue,f.RemoteConfigParameter=t.RemoteConfigParameter=ke,f.RemoteConfigParameterValue=t.RemoteConfigParameterValue=Pe,f.RemoteConfigTargetRule=t.RemoteConfigTargetRule=xe,f.SEGMENT_TYPES=t.SEGMENT_TYPES=yt,f.Segment=t.Segment=Se,f.Slot=t.Slot=He,f.TARGET_ACTION_TYPES=t.TARGET_ACTION_TYPES=dt,f.TARGET_KEY_TYPES=t.TARGET_KEY_TYPES=ht,f.Target=t.Target=Re,f.TargetAction=t.TargetAction=Ne,f.TargetCondition=t.TargetCondition=_e,f.TargetKey=t.TargetKey=Oe,f.TargetMatch=t.TargetMatch=Ce,f.TargetRule=t.TargetRule=Ae,f.TargetingType=t.TargetingType=vt,f.Variation=t.Variation=Ee,f.Version=t.Version=st,ae=t.createInstance=Jm,t.default=o,f.getUserId=t.getUserId=er,f.removeUserId=t.removeUserId=rr,f.setUserId=t.setUserId=tr,function(){return(Zm=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)});function Qm(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}t0.prototype.variation=function(e,t,r){return this.client.variation(e,t,r)},t0.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t,r)},t0.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t)},t0.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t)},t0.prototype.track=function(e,t){this.client.track(e,t)},t0.prototype.trackPageView=function(e){this.client.trackPageView(e)},t0.prototype.remoteConfig=function(e){return this.client.remoteConfig(e)},t0.prototype.onReady=function(e,t){this.client.onReady(e,t)},t0.prototype.onInitialized=function(e){return this.client.onInitialized(e)};var e0=t0;function t0(e,t){this.client=ae(e,Zm(Zm({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.7.3"}))}var D={exports:{}},k={},r0=Object.getOwnPropertySymbols,n0=Object.prototype.hasOwnProperty,o0=Object.prototype.propertyIsEnumerable;var Lr=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),o=1;o<arguments.length;o++){for(var i in r=Object(arguments[o]))n0.call(r,i)&&(n[i]=r[i]);if(r0)for(var a=r0(r),s=0;s<a.length;s++)o0.call(r,a[s])&&(n[a[s]]=r[a[s]])}return n},i0=Lr,E="function"==typeof Symbol&&Symbol.for,a0=E?Symbol.for("react.element"):60103,s0=E?Symbol.for("react.portal"):60106,Sc=E?Symbol.for("react.fragment"):60107,u0=E?Symbol.for("react.strict_mode"):60108,To=E?Symbol.for("react.profiler"):60114,c0=E?Symbol.for("react.provider"):60109,l0=E?Symbol.for("react.context"):60110,f0=E?Symbol.for("react.forward_ref"):60112,p=E?Symbol.for("react.suspense"):60113,p0=E?Symbol.for("react.memo"):60115,d0=E?Symbol.for("react.lazy"):60116,h0="function"==typeof Symbol&&Symbol.iterator;function y0(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 v0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g0={};function m0(e,t,r){this.props=e,this.context=t,this.refs=g0,this.updater=r||v0}function w0(){}function E0(e,t,r){this.props=e,this.context=t,this.refs=g0,this.updater=r||v0}m0.prototype.isReactComponent={},m0.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(y0(85));this.updater.enqueueSetState(this,e,t,"setState")},m0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w0.prototype=m0.prototype;var Ts=E0.prototype=new w0,b0=(Ts.constructor=E0,i0(Ts,m0.prototype),Ts.isPureReactComponent=!0,{current:null}),T0=Object.prototype.hasOwnProperty,R0={key:!0,ref:!0,__self:!0,__source:!0};function _0(e,t,r){var n,o={},i=null,a=null;if(null!=t)for(n in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(i=""+t.key),t)T0.call(t,n)&&!R0.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===o[n]&&(o[n]=s[n]);return{$$typeof:a0,type:e,key:i,ref:a,props:o,_owner:b0.current}}function O0(e){return"object"==typeof e&&null!==e&&e.$$typeof===a0}var C0=/\/+/g,N0=[];function A0(e,t,r,n){var o;return N0.length?((o=N0.pop()).result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o):{result:e,keyPrefix:t,func:r,context:n,count:0}}function S0(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,N0.length<10&&N0.push(e)}function I0(e,t,r){return null==e?0:function e(t,r,n,o){var i=!1;if(null===(t="undefined"!=(s=typeof t)&&"boolean"!==s?t:null))i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case a0:case s0:i=!0}}if(i)return n(o,t,""===r?"."+k0(t,0):r),1;if(i=0,r=""===r?".":r+":",Array.isArray(t))for(var a=0;a<t.length;a++){var s,u=r+k0(s=t[a],a);i+=e(s,u,n,o)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=h0&&t[h0]||t["@@iterator"])?u:null))for(t=u.call(t),a=0;!(s=t.next()).done;)i+=e(s=s.value,u=r+k0(s,a++),n,o);else if("object"===s)throw n=""+t,Error(y0(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return i}(e,"",t,r)}function k0(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 x0(e,t){e.func.call(e.context,t,e.count++)}function P0(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?D0(e,n,r,function(e){return e}):null!=e&&(O0(e)&&(t=o+(!(o=e).key||t&&t.key===e.key?"":(""+e.key).replace(C0,"$&/")+"/")+r,e={$$typeof:a0,type:o.type,key:t,ref:o.ref,props:o.props,_owner:o._owner}),n.push(e))}function D0(e,t,r,n,o){var i="";I0(e,P0,t=A0(t,i=null!=r?(""+r).replace(C0,"$&/")+"/":i,n,o)),S0(t)}var M0={current:null};function U0(){var e=M0.current;if(null===e)throw Error(y0(321));return e}var L0,j0,F0,P={ReactCurrentDispatcher:M0,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:b0,IsSomeRendererActing:{current:!1},assign:i0},T=(k.Children={map:function(e,t,r){if(null==e)return e;var n=[];return D0(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;I0(e,x0,t=A0(null,null,t,r)),S0(t)},count:function(e){return I0(e,function(){return null},null)},toArray:function(e){var t=[];return D0(e,t,null,function(e){return e}),t},only:function(e){if(O0(e))return e;throw Error(y0(143))}},k.Component=m0,k.Fragment=Sc,k.Profiler=To,k.PureComponent=E0,k.StrictMode=u0,k.Suspense=p,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,k.cloneElement=function(e,t,r){if(null==e)throw Error(y0(267,e));var n=i0({},e.props),o=e.key,i=e.ref,a=e._owner;if(null!=t)for(s in void 0!==t.ref&&(i=t.ref,a=b0.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)T0.call(t,s)&&!R0.hasOwnProperty(s)&&(n[s]=(void 0===t[s]&&void 0!==u?u:t)[s]);var s=arguments.length-2;if(1===s)n.children=r;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];n.children=u}return{$$typeof:a0,type:e.type,key:o,ref:i,props:n,_owner:a}},k.createContext=function(e,t){return(e={$$typeof:l0,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c0,_context:e},e.Consumer=e},k.createElement=_0,k.createFactory=function(e){var t=_0.bind(null,e);return t.type=e,t},k.createRef=function(){return{current:null}},k.forwardRef=function(e){return{$$typeof:f0,render:e}},k.isValidElement=O0,k.lazy=function(e){return{$$typeof:d0,_ctor:e,_status:-1,_result:null}},k.memo=function(e,t){return{$$typeof:p0,type:e,compare:void 0===t?null:t}},k.useCallback=function(e,t){return U0().useCallback(e,t)},k.useContext=function(e,t){return U0().useContext(e,t)},k.useDebugValue=function(){},k.useEffect=function(e,t){return U0().useEffect(e,t)},k.useImperativeHandle=function(e,t,r){return U0().useImperativeHandle(e,t,r)},k.useLayoutEffect=function(e,t){return U0().useLayoutEffect(e,t)},k.useMemo=function(e,t){return U0().useMemo(e,t)},k.useReducer=function(e,t,r){return U0().useReducer(e,t,r)},k.useRef=function(e){return U0().useRef(e)},k.useState=function(e){return U0().useState(e)},k.version="16.14.0",{}),zr=Function.call.bind(Object.prototype.hasOwnProperty),V0=function(){};function H0(e,t,r,n,o){if("production"!==production)for(var i in e)if(F0(e,i)){var a,s;try{if("function"!=typeof e[i])throw(s=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.")).name="Invariant Violation",s;a=e[i](t,i,n,r,null,L0)}catch(e){a=e}!a||a instanceof Error||V0((n||"React class")+": type specification of "+r+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in j0)&&(j0[a.message]=!0,i=o?o():"",V0("Failed "+r+" type: "+a.message+(null!=i?i:"")))}}if("production"!==production&&(L0="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",j0={},F0=zr,V0=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),H0.resetWarningCache=function(){"production"!==production&&(j0={})},"production"!==production){var K0=Lr,z0=H0,_="function"==typeof Symbol&&Symbol.for,G0=_?Symbol.for("react.element"):60103,B0=_?Symbol.for("react.portal"):60106,q0=_?Symbol.for("react.fragment"):60107,$0=_?Symbol.for("react.strict_mode"):60108,X0=_?Symbol.for("react.profiler"):60114,Y0=_?Symbol.for("react.provider"):60109,W0=_?Symbol.for("react.context"):60110,J0=_?Symbol.for("react.concurrent_mode"):60111,Z0=_?Symbol.for("react.forward_ref"):60112,Q0=_?Symbol.for("react.suspense"):60113,ew=_?Symbol.for("react.suspense_list"):60120,tw=_?Symbol.for("react.memo"):60115,rw=_?Symbol.for("react.lazy"):60116,nw=_?Symbol.for("react.block"):60121,ow=_?Symbol.for("react.fundamental"):60117,iw=_?Symbol.for("react.responder"):60118,aw=_?Symbol.for("react.scope"):60119,sw="function"==typeof Symbol&&Symbol.iterator,uw="@@iterator";function cw(e){if(null===e||"object"!=typeof e)return null;e=sw&&e[sw]||e[uw];return"function"==typeof e?e:null}var lw={current:null},fw={current:null},pw=/^(.*)[\\\/]/,dw=1;function hw(e){if(null==e)return null;if("number"==typeof e.tag&&M("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case q0:return"Fragment";case B0:return"Portal";case X0:return"Profiler";case $0:return"StrictMode";case Q0:return"Suspense";case ew:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case W0:return"Context.Consumer";case Y0:return"Context.Provider";case Z0:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case tw:return hw(e.type);case nw:return hw(e.render);case rw:r=(t=e)._status===dw?t._result:null;if(r)return hw(r)}var t,r;return null}var yw={},vw=null;function gw(e){vw=e}yw.getCurrentStack=null,yw.getStackAddendum=function(){var e,t,r,n,o,i="",a=(vw&&(e=hw(vw.type),r=vw._owner,i+=(e=e,t=vw._source,r=r&&hw(r.type),o="",t?(n=(a=t.fileName).replace(pw,""),o=" (at "+(n=/^index\./.test(n)&&(a=a.match(pw))&&(a=a[1])?a.replace(pw,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(o=" (created by "+r+")"),"\n in "+(e||"Unknown")+o)),yw.getCurrentStack);return a&&(i+=a()||""),i};var mw={ReactCurrentDispatcher:lw,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:fw,IsSomeRendererActing:{current:!1},assign:K0};function ww(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];Ew("warn",e,r)}function M(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];Ew("error",e,r)}function Ew(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=mw.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 o=0,i="Warning: "+t.replace(/%s/g,function(){return r[o++]});throw new Error(i)}catch(e){}}K0(mw,{ReactDebugCurrentFrame:yw,ReactComponentTreeHook:{}});var bw={};function Tw(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;bw[r]||(M("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),bw[r]=!0)}var Rw={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){Tw(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){Tw(e,"replaceState")},enqueueSetState:function(e,t,r,n){Tw(e,"setState")}},_w={};function Ow(e,t,r){this.props=e,this.context=t,this.refs=_w,this.updater=r||Rw}Object.freeze(_w),Ow.prototype.isReactComponent={},Ow.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")},Ow.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var Cw,Nw={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(Cw in Nw)Nw.hasOwnProperty(Cw)&&!function(e,t){Object.defineProperty(Ow.prototype,e,{get:function(){ww("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(Cw,Nw[Cw]);function Aw(){}function Sw(e,t,r){this.props=e,this.context=t,this.refs=_w,this.updater=r||Rw}Aw.prototype=Ow.prototype,(_=Sw.prototype=new Aw).constructor=Sw,K0(_,Ow.prototype),_.isPureReactComponent=!0;var Iw,kw,xw=Object.prototype.hasOwnProperty,Pw={key:!0,ref:!0,__self:!0,__source:!0};function Dw(e){if(xw.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function Mw(e){if(xw.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var Uw={},Lw=function(e,t,r,n,o,i,a){e={$$typeof:G0,type:e,key:t,ref:r,props:a,_owner:i,_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:o}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e};function jw(e,t,r){var n,o={},i=null,a=null,s=null,u=null;if(null!=t)for(n in Dw(t)&&(a=t.ref,"string"==typeof(c=t).ref&&fw.current&&c.__self&&fw.current.stateNode!==c.__self&&(f=hw(fw.current.type),Uw[f]||(M('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',hw(fw.current.type),c.ref),Uw[f]=!0))),Mw(t)&&(i=""+t.key),s=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)xw.call(t,n)&&!Pw.hasOwnProperty(n)&&(o[n]=t[n]);var c,l,f,p,d=arguments.length-2;if(1==d)o.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),o.children=h}if(e&&e.defaultProps){var v=e.defaultProps;for(n in v)void 0===o[n]&&(o[n]=v[n])}function g(){kw||(kw=!0,M("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",l))}function m(){Iw||(Iw=!0,M("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",p))}return(i||a)&&(c="function"==typeof e?e.displayName||e.name||"Unknown":e,i&&(f=o,p=c,m.isReactWarning=!0,Object.defineProperty(f,"key",{get:m,configurable:!0})),a&&(r=o,l=c,g.isReactWarning=!0,Object.defineProperty(r,"ref",{get:g,configurable:!0}))),Lw(e,i,a,s,u,fw.current,o)}function Fw(e){return"object"==typeof e&&null!==e&&e.$$typeof===G0}var Vw=".",Hw=":",Kw=!1,zw=/\/+/g;function Gw(e){return(""+e).replace(zw,"$&/")}var Bw=10,qw=[];function $w(e,t,r,n){var o;return qw.length?((o=qw.pop()).result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o):{result:e,keyPrefix:t,func:r,context:n,count:0}}function Xw(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,qw.length<Bw&&qw.push(e)}function Yw(e,t,r){return null==e?0:function e(t,r,n,o){var i,a=typeof t,s=!1;if(null===(t="undefined"!=a&&"boolean"!=a?t:null))s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case G0:case B0:s=!0}}if(s)return n(o,t,""===r?Vw+Ww(t,0):r),1;var u=0,c=""===r?Vw:r+Hw;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(i=t[l],c+Ww(i,l),n,o);else if("function"==typeof(r=cw(t))){r===t.entries&&(Kw||ww("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."),Kw=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(i=f.value,c+Ww(i,d++),n,o)}else if("object"==a)throw r="",r=" If you meant to render a collection of children, use an array instead."+yw.getStackAddendum(),a=""+t,Error("Objects are not valid as a React child (found: "+("[object Object]"==a?"object with keys {"+Object.keys(t).join(", ")+"}":a)+")."+r);return u}(e,"",t,r)}function Ww(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 Jw(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function Zw(e,t,r){var n=e.result,o=e.keyPrefix,i=e.func,a=e.context,i=i.call(a,t,e.count++);Array.isArray(i)?Qw(i,n,r,function(e){return e}):null!=i&&(Fw(i)&&(e=o+(!(a=i).key||t&&t.key===i.key?"":Gw(i.key)+"/")+r,i=Lw(a.type,e,a.ref,a._self,a._source,a._owner,a.props)),n.push(i))}function Qw(e,t,r,n,o){var i="",t=$w(t,i=null!=r?Gw(r)+"/":i,n,o);Yw(e,Zw,t),Xw(t)}function e1(e){return"string"==typeof e||"function"==typeof e||e===q0||e===J0||e===X0||e===$0||e===Q0||e===ew||"object"==typeof e&&null!==e&&(e.$$typeof===rw||e.$$typeof===tw||e.$$typeof===Y0||e.$$typeof===W0||e.$$typeof===Z0||e.$$typeof===ow||e.$$typeof===iw||e.$$typeof===aw||e.$$typeof===nw)}function t1(){var e=lw.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 r1(){if(fw.current){var e=hw(fw.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var n1=!1,o1={};function i1(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=r1())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),o1[t=r]||(o1[t]=!0,r="",e&&e._owner&&e._owner!==fw.current&&(r=" It was passed a child from "+hw(e._owner.type)+"."),gw(e),M('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',t,r),gw(null)))}function a1(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];Fw(n)&&i1(n,t)}else if(Fw(e))e._store&&(e._store.validated=!0);else if(e){var o=cw(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)Fw(i.value)&&i1(i.value,t)}}function s1(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=hw(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==Z0&&t.$$typeof!==tw)return;r=t.propTypes}r?(gw(e),z0(r,e.props,"prop",n,yw.getStackAddendum),gw(null)):void 0===t.PropTypes||n1||(n1=!0,M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function u1(e,t,r){var n,o=e1(e),t=(o||(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+".":"")||r1(),null===e?a="null":Array.isArray(e)?a="array":void 0!==e&&e.$$typeof===G0?(a="<"+(hw(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,M("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",a,n)),jw.apply(this,arguments));if(null==t)return t;if(o)for(var i=2;i<arguments.length;i++)a1(arguments[i],e);if(e===q0){var a=t;gw(a);for(var s=Object.keys(a.props),u=0;u<s.length;u++){var c=s[u];if("children"!==c&&"key"!==c){M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==a.ref&&M("Invalid attribute `ref` supplied to `React.Fragment`."),gw(null)}else s1(t);return t}var c1=!1;try{var l1=Object.freeze({}),f1=new Map([[l1,null]]),p1=new Set([l1]);f1.set(0,0),p1.add(0)}catch(e){}function d1(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,o,i=K0({},e.props),a=e.key,s=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in Dw(t)&&(s=t.ref,l=fw.current),Mw(t)&&(a=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)xw.call(t,n)&&!Pw.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?i[n]=o[n]:i[n]=t[n]);var f=arguments.length-2;if(1==f)i.children=r;else if(1<f){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];i.children=p}return Lw(e.type,a,s,u,c,l,i)}.apply(this,arguments),o=2;o<arguments.length;o++)a1(arguments[o],n.type);return s1(n),n}function h1(e){var t=u1.bind(null,e);return t.type=e,c1||(c1=!0,ww("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 ww("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}_=u1,T.Children={map:function(e,t,r){if(null==e)return e;var n=[];return Qw(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=$w(null,null,t,r),Yw(e,Jw,t),Xw(t)},count:function(e){return Yw(e,function(){return null},null)},toArray:function(e){var t=[];return Qw(e,t,null,function(e){return e}),t},only:function(e){if(Fw(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},T.Component=Ow,T.Fragment=q0,T.Profiler=X0,T.PureComponent=Sw,T.StrictMode=$0,T.Suspense=Q0,T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mw,T.cloneElement=d1,T.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&M("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:W0,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:Y0,_context:r}),o=!1,t={$$typeof:W0,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return o||(o=!0,M("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,M("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}}}),r.Consumer=t,r._currentRenderer=null,r._currentRenderer2=null,r},T.createElement=_,T.createFactory=h1,T.createRef=function(){var e={current:null};return Object.seal(e),e},T.forwardRef=function(e){return null!=e&&e.$$typeof===tw?M("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?M("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&M("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null==e||null==e.defaultProps&&null==e.propTypes||M("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:Z0,render:e}},T.isValidElement=Fw,T.lazy=function(e){var t,r,n={$$typeof:rw,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){M("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){M("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},T.memo=function(e,t){return e1(e)||M("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:tw,type:e,compare:void 0===t?null:t}},T.useCallback=function(e,t){return t1().useCallback(e,t)},T.useContext=function(e,t){var r,n=t1();return void 0!==t&&M("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context&&((r=e._context).Consumer===e?M("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&M("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},T.useDebugValue=function(e,t){return t1().useDebugValue(e,t)},T.useEffect=function(e,t){return t1().useEffect(e,t)},T.useImperativeHandle=function(e,t,r){return t1().useImperativeHandle(e,t,r)},T.useLayoutEffect=function(e,t){return t1().useLayoutEffect(e,t)},T.useMemo=function(e,t){return t1().useMemo(e,t)},T.useReducer=function(e,t,r){return t1().useReducer(e,t,r)},T.useRef=function(e){return t1().useRef(e)},T.useState=function(e){return t1().useState(e)},T.version="16.14.0"}"production"===production?D.exports=k:D.exports=T;var y1=D.exports,v1=D.exports.createContext({hackle:void 0,user:void 0,initialized:!1}),Ui=v1.Consumer,g1=v1.Provider;var m1=f.Logger.log;function w1(e,t){e=E1(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function E1(e,t){void 0===t&&(t="A");var r=D.exports.useContext(v1),n=r.hackle,o=r.user,i=r.initialized,a=D.exports.useCallback(function(){return i?(null==n?void 0:n.variationDetail(e,o))||f.Decision.of(t,f.DecisionReason.EXCEPTION):f.Decision.of(t,f.DecisionReason.SDK_NOT_READY)},[t,e,o,n,i]),r=Qm(D.exports.useState(function(){return n?a():(m1.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2),s=r[0],r=r[1],u={key:e,user:o,initialized:i},c=Qm(D.exports.useState(u),2),l=c[0],c=c[1];return R1(l,u)||(c(u),r(a())),{isLoading:!i,decision:s}}function b1(e){e=T1(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function T1(e){var t=D.exports.useContext(v1),r=t.hackle,n=t.user,o=t.initialized,i=D.exports.useCallback(function(){return o?(null==r?void 0:r.featureFlagDetail(e,n))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION):f.FeatureFlagDecision.off(f.DecisionReason.SDK_NOT_READY)},[e,n,r,o]),t=Qm(D.exports.useState(function(){return r?i():(m1.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2),a=t[0],t=t[1],s={key:e,user:n,initialized:o},u=Qm(D.exports.useState(s),2),c=u[0],u=u[1];return R1(c,s)||(u(s),t(i())),{isLoading:!o,decision:a}}function R1(e,t){var r,n,o;return e.initialized===t.initialized&&e.key===t.key&&(null==(r=e.user)?void 0:r.id)===(null==(r=t.user)?void 0:r.id)&&(e=null==(r=e.user)?void 0:r.properties,t=null==(r=t.user)?void 0:r.properties,n=_1(e),o=_1(t),e=Object.keys(n),t=Object.keys(o),e.length===t.length&&e.every(function(e){return e in o&&n[e]===o[e]}))}function _1(e){return"object"==typeof e&&null!==e?e:{}}function O1(e){var t,r=e.experimentKey,e=e.children,n=(r=w1(r)).isLoading,o=r.variation;return n?null:e&&"function"==typeof e?e(o):(D.exports.Children.forEach(e,function(e){D.exports.isValidElement(e)&&(e.props.variation?o===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?D.exports.cloneElement(t,{variation:o}):null)}function C1(e){return e.variation,e=e.children,D.exports.createElement(D.exports.Fragment,null,e)}function N1(e){var t=(r=b1(e.featureKey)).isLoading,r=r.isOn;return t?null:y1.createElement(y1.Fragment,null,e.children(r))}f.HackleContext=v1,f.HackleContextConsumer=Ui,f.HackleContextProvider=g1,f.HackleExperiment=O1,f.HackleFeature=N1,f.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(o=e.timeout)?3e3:o,o=void 0!==(o=e.supportSSR)&&o,e=e.children,i=Qm(D.exports.useState({hackle:t,user:r,initialized:!1}),2),a=i[0],s=i[1];return D.exports.useEffect(function(){s(function(e){return Zm(Zm({},e),{user:r})})},[r]),D.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){s(function(e){return Zm(Zm({},e),{initialized:!0})})},function(){s(function(e){return Zm(Zm({},e),{initialized:!0})})}).catch(function(){s(function(e){return Zm(Zm({},e),{initialized:!0})})})},[t]),o||a.initialized?y1.createElement(g1,{value:a},e):null},f.HackleVariation=C1,f.createInstance=function(e,t){return new e0(e,t)},f.useFeature=function(e){var t=(n=D.exports.useContext(v1)).hackle,r=n.user,n=n.initialized,o=D.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e,r))||!1},[e,r,t,n]),i=(a=Qm(D.exports.useState(function(){return t?o():("undefined"!=typeof window&&m1.error("HackleClient is not existed"),!1)}),2))[0],a=a[1],n={key:e,user:r,initialized:n},s=(u=Qm(D.exports.useState(n),2))[0],u=u[1];return R1(s,n)||(u(n),a(o())),i},f.useFeatureFlagDetail=function(e){var t=(n=D.exports.useContext(v1)).hackle,r=n.user,n=n.initialized,o=D.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e,r))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION)},[e,r,t,n]),i=(a=Qm(D.exports.useState(function(){return t?o():("undefined"!=typeof window&&m1.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,user:r,initialized:n},s=(u=Qm(D.exports.useState(n),2))[0],u=u[1];return R1(s,n)||(u(n),a(o())),i},f.useLoadableFeature=b1,f.useLoadableFeatureDetail=T1,f.useLoadableRemoteConfig=function(){var e=(i=D.exports.useContext(v1)).hackle,t=i.user,r=i.initialized,n=D.exports.useCallback(function(){return r&&(null==e?void 0:e.remoteConfig(t))||new f.EmptyHackleRemoteConfig},[t,e,r]),o=(i=Qm(D.exports.useState(function(){return e||m1.error("HackleClient is not existed"),n()}),2))[0],i=i[1],a={user:t,initialized:r},s=(u=Qm(D.exports.useState(a),2))[0],u=u[1];return R1(s,a)||(u(a),i(n())),{isLoading:!r,remoteConfig:o}},f.useLoadableVariation=w1,f.useLoadableVariationDetail=E1,f.useRemoteConfig=function(){var e=(r=D.exports.useContext(v1)).hackle,t=r.user,r=r.initialized,n=D.exports.useCallback(function(){return(null==e?void 0:e.remoteConfig(t))||new f.EmptyHackleRemoteConfig},[t,e,r]),o=(i=Qm(D.exports.useState(function(){return e||m1.error("HackleClient is not existed"),n()}),2))[0],i=i[1],r={user:t,initialized:r},a=(s=Qm(D.exports.useState(r),2))[0],s=s[1];return R1(a,r)||(s(r),i(n())),o},f.useTrack=function(){var e=D.exports.useContext(v1),t=e.hackle,r=e.user;return t?function(e){return null==t?void 0:t.track(e,r)}:(m1.error("HackleClient is not existed"),function(){})},f.useVariation=function(e,t){void 0===t&&(t="A");var r=(s=D.exports.useContext(v1)).hackle,n=s.user,o=s.initialized,i=D.exports.useCallback(function(){return o&&(null==r?void 0:r.variation(e,n))||t},[t,e,n,r,o]),a=(s=Qm(D.exports.useState(function(){return r?i():("undefined"!=typeof window&&m1.error("HackleClient is not existed"),t)}),2))[0],s=s[1],u={key:e,user:n,initialized:o},c=(l=Qm(D.exports.useState(u),2))[0],l=l[1];return R1(c,u)||(l(u),s(i())),a},f.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(o=D.exports.useContext(v1)).hackle,n=o.user,o=o.initialized,i=D.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e,n))||f.Decision.of(t,f.DecisionReason.EXCEPTION)},[t,e,n,r,o]),a=(s=Qm(D.exports.useState(function(){return r?i():("undefined"!=typeof window&&m1.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2))[0],s=s[1],o={key:e,user:n,initialized:o},u=(c=Qm(D.exports.useState(o),2))[0],c=c[1];return R1(u,o)||(c(o),s(i())),a},Object.defineProperty(f,"__esModule",{value:!0})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hackler/react-sdk",
3
- "version": "11.7.0",
3
+ "version": "11.7.3",
4
4
  "description": "React SDK for Hackle",
5
5
  "author": {
6
6
  "name": "Hackle",
@@ -39,7 +39,7 @@
39
39
  "url": "https://github.com/hackle-io/hackle-javascript-sdk/issues"
40
40
  },
41
41
  "dependencies": {
42
- "@hackler/javascript-sdk": "11.7.0"
42
+ "@hackler/javascript-sdk": "11.7.3"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": ">=16.8.0"
package/CHANGELOG.md DELETED
@@ -1,6 +0,0 @@
1
- # ChangeLog
2
-
3
- ## 1.0.6 - 2020-12-21
4
-
5
- #### Changed
6
- - Variation 호출 최적화