@hackler/react-sdk 11.0.0 → 11.0.1

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.0.0";
2
+ export declare const SDK_VERSION_HEADER = "11.0.1";
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.0.0";
51
+ var SDK_VERSION_HEADER = "11.0.1";
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.0.0";
76
+ var SDK_VERSION_HEADER = "11.0.1";
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 j,F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e={},L=(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.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.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(e,"__esModule",{value:!0}),function(e,t){return(L=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 U(e,t){function r(){this.constructor=e}L(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var V=function(){return(V=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 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}}}}q.setLogLevel=function(e){this.logLevel=e=void 0===e?3:e},q._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)G.log(e,r,t.message,t);else try{G.log(e,r,t)}catch(e){}},q.logLevel=3,q.log={error:function(e){1<=q.logLevel&&q._log("ERROR",e)},warn:function(e){2<=q.logLevel&&q._log("WARN",e)},info:function(e){3<=q.logLevel&&q._log("INFO",e)},debug:function(e){4<=q.logLevel&&q._log("DEBUG",e)}};var K=q,G=($.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},$),B=[0,8,16,32,64,128,256,512],z=K.log;function $(){}function q(){}function X(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function Y(e,t,r){this.id=e,this.key=t,this.isDropped=r}function W(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function Z(e,t){this.id=e,this.key=t}function J(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}var ae={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&&200<=r.status&&r.status<400&&e({statusCode:r.status,body:r.responseText})},r.setRequestHeader("content-type","application/json"),r.withCredentials=!0,X(r,o),r.send()})}},postRequest:function(e,t,r,n){var t=JSON.stringify(t),o=new XMLHttpRequest;o.open("POST",e),o.onreadystatechange=function(){o.readyState===o.DONE&&200<=o.status&&o.status<400&&n(o)},o.setRequestHeader("content-type","application/json"),o.withCredentials=!0,X(o,r),o.send(t)},sendBeacon:function(e,t,r,n){var o=!1;(o="undefined"!=typeof window?window&&window.navigator&&window.navigator.sendBeacon&&!0:o)?(o=JSON.stringify(t),(t=new URLSearchParams).append("sdkName",r["X-HACKLE-SDK-NAME"]),t.append("sdkVersion",r["X-HACKLE-SDK-VERSION"]),t.append("data",o),window.navigator.sendBeacon(e,t)):z.error("Does not support sendBeacon"),n()}},se=K.log,ue=(Ee.of=function(e,t){return new Ee(e,t)},Ee),ce=(be.on=function(e){return new be(!0,e)},be.off=function(e){return new be(!1,e)},be),s=(t.SDK_NOT_READY="SDK_NOT_READY",t.EXCEPTION="EXCEPTION",t.INVALID_INPUT="INVALID_INPUT",t.EXPERIMENT_NOT_FOUND="EXPERIMENT_NOT_FOUND",t.EXPERIMENT_DRAFT="EXPERIMENT_DRAFT",t.EXPERIMENT_PAUSED="EXPERIMENT_PAUSED",t.EXPERIMENT_COMPLETED="EXPERIMENT_COMPLETED",t.OVERRIDDEN="OVERRIDDEN",t.TRAFFIC_NOT_ALLOCATED="TRAFFIC_NOT_ALLOCATED",t.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT="NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT",t.IDENTIFIER_NOT_FOUND="IDENTIFIER_NOT_FOUND",t.VARIATION_DROPPED="VARIATION_DROPPED",t.TRAFFIC_ALLOCATED="TRAFFIC_ALLOCATED",t.NOT_IN_EXPERIMENT_TARGET="NOT_IN_EXPERIMENT_TARGET",t.FEATURE_FLAG_NOT_FOUND="FEATURE_FLAG_NOT_FOUND",t.FEATURE_FLAG_INACTIVE="FEATURE_FLAG_INACTIVE",t.INDIVIDUAL_TARGET_MATCH="INDIVIDUAL_TARGET_MATCH",t.TARGET_RULE_MATCH="TARGET_RULE_MATCH",t.DEFAULT_RULE="DEFAULT_RULE",t),fe=(we.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},we.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},we.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},we),le=(ge.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},ge),pe=(me.ID="$id",me.USER="$userId",me.DEVICE="$deviceId",me),de=(ve.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},ve.prototype.add=function(e,t){return t&&this._isValid(e,t)?this.identifiers[e]=t:se.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},ve.prototype._isValid=function(e,t){return!(!e||"string"!=typeof e||128<e.length||!t||"string"!=typeof t||512<t.length)},ve.prototype.build=function(){return this.identifiers},ve),he=(ye.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},ye);function ye(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function ve(){this.identifiers={}}function me(){}function ge(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function we(e,t,r,n,o,i,a,s,u,c,f,l,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=f,this.defaultRule=l,this.containerId=p,this._winnerVariationId=d}function t(){}function be(e,t){this.isOn=e,this.reason=t}function Ee(e,t){this.variation=e,this.reason=t}lr.tryParse=function(e){var t,r,n,o,e=lr.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 lr(new Ae(parseInt(t,10),parseInt(r,10),parseInt(n,10)),Se.parse(o),Se.parse(e))},lr.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},lr.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},lr.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},lr.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},lr.prototype.isLessThan=function(e){return this.compareTo(e)<0},lr.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},lr.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 Te,_e,Re,Oe=lr,Ae=(fr.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},fr),Se=(cr.parse=function(e){return e?new cr(e.split(".")):cr.EMPTY},cr.prototype.isEmpty=function(){return 0===this.identifiers.length},cr.prototype.isNotEmpty=function(){return!this.isEmpty()},cr.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},cr.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=cr.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},cr.compareIdentifiers=function(e,t){return cr.numericIdentifierRegExp.test(e)&&cr.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},cr.EMPTY=new cr([]),cr.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,cr),Ce=["MATCH","NOT_MATCH"],Ie=["STRING","NUMBER","BOOLEAN","VERSION"],ke=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],Ne=["VARIATION","BUCKET"],xe=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT"],Pe=["USER_ID","USER_PROPERTY"],Me=(ur.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},ur.IDENTIFIER=new ur("SEGMENT"),ur.PROPERTY=new ur("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY"),ur.SEGMENT=new ur("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),ur),De=(sr.validate=function(e){if(e){if("object"!=typeof e)return!1;for(var t in e)if(!this.validProperty(t,e[t]))return!1}return!0},sr.filteredProperties=function(r){var n=this;return Object.keys(r).filter(function(e){return n.validProperty(e,r[e])}).reduce(function(e,t){return V(V({},e),((e={})[t]=n.filteredPropertiesValue(r[t]),e))},{})},sr.filteredPropertiesValue=function(e){return"string"==typeof e&&1024<e.length?e.slice(0,1024):e},sr.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))},sr),je=(ar.exposure=function(e,t,r){return new Fe((new Date).getTime(),t,e,r.variationId,r.variationKey,r.reason)},ar.track=function(e,t,r){return new Le((new Date).getTime(),r,e,t)},ar.isExposure=function(e){return void 0!==e.experiment},ar.isTrack=function(e){return void 0!==e.eventType},ar),Fe=(U(ir,Re=je),ir.prototype.toDto=function(){return{timestamp:this.timestamp,userId:this.user.identifiers[pe.ID],identifiers:this.user.identifiers,userProperties:De.filteredProperties(this.user.properties||{}),hackleProperties:De.filteredProperties(this.user.hackleProperties||{}),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()}},ir),Le=(U(or,_e=je),or.prototype.toDto=function(){return{timestamp:this.timestamp,userId:this.user.identifiers[pe.ID],identifiers:this.user.identifiers,userProperties:De.filteredProperties(this.user.properties||{}),hackleProperties:De.filteredProperties(this.user.hackleProperties||{}),eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:De.filteredProperties(this.event.properties||{})}},or),Ue=(nr.withVariation=function(e,t){return new nr(e.id,e.key,t)},nr.withKey=function(e,t){return new nr(void 0,e,t)},nr.of=function(e,t,r){e=e._getVariationByKeyOrNull(t);return e?nr.withVariation(e,r):nr.withKey(t,r)},nr),Ve=(rr.prototype.evaluate=function(e,t,r,n){return this.evaluationFlowFactory.getFlow(t.type).evaluate(e,t,r,n)},rr),He=(tr.prototype.matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n._matches(e,t,r)})},tr.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(e.key.type).matches(e,t,r)},tr),r=(er.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)},er.prototype._matches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},er),n=(Qt.prototype.booleanMatches=function(e,t){return e===t},Qt.prototype.numberMatches=function(e,t){return e===t},Qt.prototype.stringMatches=function(e,t){return e===t},Qt.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},Qt),o=(Jt.prototype.booleanMatches=function(e,t){return!1},Jt.prototype.numberMatches=function(e,t){return!1},Jt.prototype.stringMatches=function(e,t){return e.includes(t)},Jt.prototype.versionMatches=function(e,t){return!1},Jt),i=(Zt.prototype.booleanMatches=function(e,t){return!1},Zt.prototype.numberMatches=function(e,t){return!1},Zt.prototype.stringMatches=function(e,t){return e.startsWith(t)},Zt.prototype.versionMatches=function(e,t){return!1},Zt),a=(Wt.prototype.booleanMatches=function(e,t){return!1},Wt.prototype.numberMatches=function(e,t){return!1},Wt.prototype.stringMatches=function(e,t){return e.endsWith(t)},Wt.prototype.versionMatches=function(e,t){return!1},Wt),u=(Yt.prototype.booleanMatches=function(e,t){return!1},Yt.prototype.numberMatches=function(e,t){return t<e},Yt.prototype.stringMatches=function(e,t){return!1},Yt.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},Yt),c=(Xt.prototype.booleanMatches=function(e,t){return!1},Xt.prototype.numberMatches=function(e,t){return t<=e},Xt.prototype.stringMatches=function(e,t){return!1},Xt.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},Xt),l=(qt.prototype.booleanMatches=function(e,t){return!1},qt.prototype.numberMatches=function(e,t){return e<t},qt.prototype.stringMatches=function(e,t){return!1},qt.prototype.versionMatches=function(e,t){return e.isLessThan(t)},qt),p=($t.prototype.booleanMatches=function(e,t){return!1},$t.prototype.numberMatches=function(e,t){return e<=t},$t.prototype.stringMatches=function(e,t){return!1},$t.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},$t),n=(zt.prototype.getMatcher=function(e){switch(e){case"IN":return zt.IN_MATCHER;case"CONTAINS":return zt.CONTAINS_MATCHER;case"STARTS_WITH":return zt.STARTS_WITH_MATCHER;case"ENDS_WITH":return zt.ENDS_WITH_MATCHER;case"GT":return zt.GT_MATCHER;case"GTE":return zt.GTE_MATCHER;case"LT":return zt.LT_MATCHER;case"LTE":return zt.LTE_MATCHER}},zt.IN_MATCHER=new n,zt.CONTAINS_MATCHER=new o,zt.STARTS_WITH_MATCHER=new i,zt.ENDS_WITH_MATCHER=new a,zt.GT_MATCHER=new u,zt.GTE_MATCHER=new c,zt.LT_MATCHER=new l,zt.LTE_MATCHER=new p,zt),o=(Bt.prototype.matches=function(e,t,r){return"string"==typeof t&&"string"==typeof r&&e.stringMatches(t,r)},Bt),i=(Gt.prototype.matches=function(e,t,r){return"number"==typeof t&&"number"==typeof r&&e.numberMatches(t,r)},Gt),a=(Kt.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},Kt),u=(Ht.prototype.matches=function(e,t,r){t=Oe.tryParse(t),r=Oe.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},Ht),c=(Vt.prototype.getMatcher=function(e){switch(e){case"STRING":return Vt.STRING_MATCHER;case"NUMBER":return Vt.NUMBER_MATCHER;case"BOOLEAN":return Vt.BOOLEAN_MATCHER;case"VERSION":return Vt.VERSION_MATCHER}},Vt.STRING_MATCHER=new o,Vt.NUMBER_MATCHER=new i,Vt.BOOLEAN_MATCHER=new a,Vt.VERSION_MATCHER=new u,Vt),Ke=(Ut.isNullOrUndefined=function(e){return null==e},Ut),l=(Lt.prototype.matches=function(e,t,r){r=this.userValueResolver.resolveOrNull(r,e.key);return!Ke.isNullOrUndefined(r)&&this.valueOperatorMatcher.matches(r,e.match)},Lt),p=(Ft.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,"]"))}},Ft),o=(jt.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}},jt.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,"]"))},jt),i=(Dt.prototype.matches=function(e,t,r){var n=this;return e.targets.some(function(e){return n._matches(e,t,r)})},Dt.prototype._matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(e,t,r)})},Dt),Ge=(Mt.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return Mt.USER_CONDITION_MATCHER;case"SEGMENT":return Mt.SEGMENT_CONDITION_MATCHER}},Mt.USER_CONDITION_MATCHER=new l(new p,new r(new c,new n)),Mt.SEGMENT_CONDITION_MATCHER=new o(new i(Mt.USER_CONDITION_MATCHER)),Mt),Be=(Pt.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)}},Pt.prototype._resolveVariation=function(e,t){return t._getVariationByIdOrNull(e.variationId)},Pt.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)}},Pt),ze={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}},$e=(xt.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},xt.prototype.calculateSlotNumber=function(e,t,r){r=ze.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},xt),qe=(Nt.prototype.evaluate=function(e,t,r,n){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,r,n,this.nextFlow):Ue.of(t,n,s.TRAFFIC_NOT_ALLOCATED)},Nt.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new Nt,n=0,o=e.reverse();n<o.length;n++)r=new Nt(o[n],r);return r},Nt),Xe=(kt.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 Ue.withVariation(i,s.OVERRIDDEN);case"FEATURE_FLAG":return Ue.withVariation(i,s.INDIVIDUAL_TARGET_MATCH)}},kt),Ye=(It.prototype.evaluate=function(e,t,r,n,o){return"DRAFT"===t.status?Ue.of(t,n,s.EXPERIMENT_DRAFT):o.evaluate(e,t,r,n)},It),We=(Ct.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 Ue.of(t,n,s.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return Ue.of(t,n,s.FEATURE_FLAG_INACTIVE)}},Ct),Ze=(St.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 Ue.withVariation(o,s.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(t.id,"]"))},St),Je=(At.prototype.evaluate=function(e,t,r,n,o){if("AB_TEST"!==t.type)throw new Error("experiment type bust be AB_TEST [".concat(t.id,"]"));return this.experimentTargetDeterminer.isUserInExperimentTarget(e,t,r)?o.evaluate(e,t,r,n):Ue.of(t,n,s.NOT_IN_EXPERIMENT_TARGET)},At),Qe=(Ot.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 bust be AB_TEST [".concat(t.id,"]"));e=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);return e?e.isDropped?Ue.of(t,n,s.VARIATION_DROPPED):Ue.withVariation(e,s.TRAFFIC_ALLOCATED):Ue.of(t,n,s.TRAFFIC_NOT_ALLOCATED)},Ot),et=(Rt.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 bust 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 Ue.withVariation(o,s.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},Rt),tt=(_t.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 bust be FEATURE_FLAG [".concat(t.id,"]"));if(!r.identifiers[t.identifierType])return Ue.of(t,n,s.DEFAULT_RULE);n=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);if(n)return Ue.withVariation(n,s.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},_t),rt=(Tt.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):Ue.of(t,n,s.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("bucket[".concat(a.bucketId,"]"))},Tt),nt=(Et.prototype.evaluate=function(e,t,r,n,o){return r.identifiers[t.identifierType]?o.evaluate(e,t,r,n):Ue.of(t,n,s.IDENTIFIER_NOT_FOUND)},Et),ot=(bt.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)})},bt),it=(wt.prototype.determineTargetRuleOrNull=function(t,e,r){var n=this;return e.targetRules.find(function(e){return n.targetMatcher.matches(e.target,t,r)})},wt),at=(gt.prototype.resolveOrNull=function(e,t,r){return this._resolveUserOverride(t,r)||this._resolveSegmentOverride(e,t,r)},gt.prototype._resolveUserOverride=function(e,t){t=t.identifiers[e.identifierType];if(t){t=e.userOverrides.get(t);if(t)return e._getVariationByIdOrNull(t)}},gt.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)},gt),st=(mt.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,"]"))},mt),ut=(vt.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},vt),ct=K.log,ft=(yt.prototype._experiment=function(e,t,r){if(!e)return ct.error("experimentKey must not be empty"),ue.of(r,s.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return ct.warn("SDK not ready."),ue.of(r,s.SDK_NOT_READY);e=n.getExperimentOrNull(e);if(!e)return ct.warn("Experiment does not exist."),ue.of(r,s.EXPERIMENT_NOT_FOUND);n=this.evaluator.evaluate(n,e,t,r);return this.eventProcessor.process(je.exposure(e,t,n)),ue.of(n.variationKey,n.reason)},yt.prototype._featureFlag=function(e,t){if(!e)return ct.error("featureKey must not be empty"),ce.off(s.INVALID_INPUT);var r=this.workspaceFetcher.get();if(!r)return ct.warn("SDK not ready."),ce.off(s.SDK_NOT_READY);e=r.getFeatureFlagOrNull(e);if(!e)return ct.warn("FeatureFlag does not exist."),ce.off(s.FEATURE_FLAG_NOT_FOUND);r=this.evaluator.evaluate(r,e,t,"A");return this.eventProcessor.process(je.exposure(e,t,r)),"A"===r.variationKey?ce.off(r.reason):ce.on(r.reason)},yt.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 Z(0,e.key),this.eventProcessor.process(je.track(r,e,t))):ct.warn("Event key must be not null. or event key must be string type."):ct.warn("Event must be event type."):ct.warn("event must not be null.")},yt.prototype._onReady=function(e,t){this._onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},yt.prototype._onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(ct.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?ct.debug("HackleClient onInitialized Success"):e.error instanceof Error?ct.error("HackleClient onInitialized Failed. ".concat(e.error.message)):ct.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},yt.prototype._close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},yt),a="model",u="name",l="type",p="vendor",r="version",c="mobile",n="tablet",lt=(d.parse=function(e){return{browser:d.getBrowser(e),cpu:d.getCPU(e),device:d.getDevice(e),engine:d.getEngine(e),os:d.getOS(e)}},d.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return d.mapper.rgx.call(t,e,d.regexes.browser),t.major=d.util.major(t.version),t},d.getCPU=function(e){var t={architecture:void 0};return d.mapper.rgx.call(t,e,d.regexes.cpu),t},d.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return d.mapper.rgx.call(t,e,d.regexes.device),t},d.getEngine=function(e){var t={name:void 0,version:void 0};return d.mapper.rgx.call(t,e,d.regexes.os),t},d.getOS=function(e){var t={name:void 0,version:void 0};return d.mapper.rgx.call(t,e,d.regexes.os),t},d.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,"")}},d.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[u,r],[/(opios)[\/\s]+([\w\.]+)/i],[[u,"Opera Mini"],r],[/\s(opr)\/([\w\.]+)/i],[[u,"Opera"],r],[/(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],[u,r],[/(konqueror)\/([\w\.]+)/i],[[u,"Konqueror"],r],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[u,"IE"],r],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[u,"Edge"],r],[/(yabrowser)\/([\w\.]+)/i],[[u,"Yandex"],r],[/(Avast)\/([\w\.]+)/i],[[u,"Avast Secure Browser"],r],[/(AVG)\/([\w\.]+)/i],[[u,"AVG Secure Browser"],r],[/(puffin)\/([\w\.]+)/i],[[u,"Puffin"],r],[/(focus)\/([\w\.]+)/i],[[u,"Firefox Focus"],r],[/(opt)\/([\w\.]+)/i],[[u,"Opera Touch"],r],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[u,"UCBrowser"],r],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],r],[/(windowswechat qbcore)\/([\w\.]+)/i],[[u,"WeChat(Win) Desktop"],r],[/(micromessenger)\/([\w\.]+)/i],[[u,"WeChat"],r],[/(brave)\/([\w\.]+)/i],[[u,"Brave"],r],[/(whale)\/([\w\.]+)/i],[[u,"Whale"],r],[/(qqbrowserlite)\/([\w\.]+)/i],[u,r],[/(QQ)\/([\d\.]+)/i],[u,r],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[u,r],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[u,r],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[u,r],[/(MetaSr)[\/\s]?([\w\.]+)/i],[u],[/(LBBROWSER)/i],[u],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[r,[u,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[r,[u,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[u,r],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[r,[u,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[u,/(.+)/,"$1 WebView"],r],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[u,/(.+(?:g|us))(.+)/,"$1 $2"],r],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[u,"Chrome Mobile"],r],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[r,[u,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[u,"Sailfish Browser"],r],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[u,r],[/(dolfin)\/([\w\.]+)/i],[[u,"Dolphin"],r],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[u,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[u,"Opera Coast"],r],[/fxios\/([\w\.-]+)/i],[r,[u,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[r,[u,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[r,u],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[u,"GSA"],r],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[u,[r,(d.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],f=r=0;f<u.length&&!i;)if(i=u[f++].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(d.util.has(t[r][n],e))return"?"===r?void 0:r}else if(d.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(d.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],[u,r],[/(navigator|netscape)\/([\w\.-]+)/i],[[u,"Netscape"],r],[/(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],[u,r]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",d.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",d.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",d.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[a,p,[l,n]],[/applecoremedia\/[\w\.]+ \((ipad)/],[a,[p,"Apple"],[l,n]],[/(apple\s{0,1}tv)/i],[[a,"Apple TV"],[p,"Apple"],[l,"smarttv"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[p,a,[l,n]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[a,[p,"Amazon"],[l,n]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[a,d.mapper.str,d.maps.device.amazon.model],[p,"Amazon"],[l,c]],[/android.+aft([bms])\sbuild/i],[a,[p,"Amazon"],[l,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[a,p,[l,c]],[/\((ip[honed|\s\w*]+);/i],[a,[p,"Apple"],[l,c]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[p,a,[l,c]],[/\(bb10;\s(\w+)/i],[a,[p,"BlackBerry"],[l,c]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[a,[p,"Asus"],[l,n]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[p,"Sony"],[a,"Xperia Tablet"],[l,n]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[p,"Sony"],[l,c]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[p,a,[l,"console"]],[/android.+;\s(shield)\sbuild/i],[a,[p,"Nvidia"],[l,"console"]],[/(playstation\s[34portablevi]+)/i],[a,[p,"Sony"],[l,"console"]],[/(sprint\s(\w+))/i],[[p,d.mapper.str,d.maps.device.sprint.vendor],[a,d.mapper.str,d.maps.device.sprint.model],[l,c]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[p,[a,/_/g," "],[l,c]],[/(nexus\s9)/i],[a,[p,"HTC"],[l,n]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[a,[p,"Huawei"],[l,c]],[/android.+(bah2?-a?[lw]\d{2})/i],[a,[p,"Huawei"],[l,n]],[/(microsoft);\s(lumia[\s\w]+)/i],[p,a,[l,c]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[a,[p,"Microsoft"],[l,"console"]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[p,"Microsoft"],[l,c]],[/\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],[a,[p,"Motorola"],[l,c]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[a,[p,"Motorola"],[l,n]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[p,d.util.trim],[a,d.util.trim],[l,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[p,"Samsung"],[l,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[a,[p,"Sharp"],[l,"smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[p,"Samsung"],a,[l,n]],[/smart-tv.+(samsung)/i],[p,[l,"smarttv"],a],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[p,"Samsung"],a,[l,c]],[/sie-(\w*)/i],[a,[p,"Siemens"],[l,c]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[p,"Nokia"],a,[l,c]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[a,[p,"Acer"],[l,n]],[/android.+([vl]k\-?\d{3})\s+build/i],[a,[p,"LG"],[l,n]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[p,"LG"],a,[l,n]],[/(lg) netcast\.tv/i],[p,a,[l,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[a,[p,"LG"],[l,c]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[p,a,[l,n]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[a,[p,"Lenovo"],[l,n]],[/(lenovo)[_\s-]?([\w-]+)/i],[p,a,[l,c]],[/linux;.+((jolla));/i],[p,a,[l,c]],[/((pebble))app\/[\d\.]+\s/i],[p,a,[l,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[p,a,[l,c]],[/crkey/i],[[a,"Chromecast"],[p,"Google"],[l,"smarttv"]],[/android.+;\s(glass)\s\d/i],[a,[p,"Google"],[l,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[a,[p,"Google"],[l,n]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[a,[p,"Google"],[l,c]],[/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],[[a,/_/g," "],[p,"Xiaomi"],[l,c]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[a,/_/g," "],[p,"Xiaomi"],[l,n]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[a,[p,"Meizu"],[l,c]],[/(mz)-([\w-]{2,})/i],[[p,"Meizu"],a,[l,c]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[a,[p,"OnePlus"],[l,c]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[a,[p,"RCA"],[l,n]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[a,[p,"Dell"],[l,n]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[a,[p,"Verizon"],[l,n]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[p,"Barnes & Noble"],a,[l,n]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[a,[p,"NuVision"],[l,n]],[/android.+;\s(k88)\sbuild/i],[a,[p,"ZTE"],[l,n]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[a,[p,"Swiss"],[l,c]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[a,[p,"Swiss"],[l,n]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[a,[p,"Zeki"],[l,n]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[p,"Dragon Touch"],a,[l,n]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[a,[p,"Insignia"],[l,n]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[a,[p,"NextBook"],[l,n]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[p,"Voice"],a,[l,c]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[p,"LvTel"],a,[l,c]],[/android.+;\s(PH-1)\s/i],[a,[p,"Essential"],[l,c]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[a,[p,"Envizen"],[l,n]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[p,a,[l,n]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[a,[p,"MachSpeed"],[l,n]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[p,a,[l,n]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[a,[p,"Rotor"],[l,n]],[/android.+(KS(.+))\s+build/i],[a,[p,"Amazon"],[l,n]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[p,a,[l,n]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[l,d.util.lowerize],p,a],[/[\s\/\(](smart-?tv)[;\)]/i],[[l,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[a,[p,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[r,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[r,[u,"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],[u,r],[/rv\:([\w\.]{1,9}).+(gecko)/i],[r,u]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[u,r],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[[u,d.mapper.str,d.maps.os.windows],[r,d.mapper.str,d.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[u,"Windows"],[r,d.mapper.str,d.maps.os.windows.version]],[/\((bb)(10);/i],[[u,"BlackBerry"],r],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[u,r],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[u,"Symbian"],r],[/\((series40);/i],[u],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[u,"Firefox OS"],r],[/(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],[[u,"Linux"],r],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[u,"Chromium OS"],r],[/(sunos)\s?([\w\.\d]*)/i],[[u,"Solaris"],r],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[u,"Linux"],r],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[u,"iPhone"],[r,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[u,"iPad"],[r,/_/g,"."]],[/(haiku)\s(\w+)/i],[u,r],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[r,/_/g,"."],[u,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[u,"Mac"],[r,/_/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],[u,r]]},d),pt=(ht.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=lt.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||""}},ht),dt=new Uint8Array(16);function ht(){}function d(){}function yt(e,t){this.evaluator=new Ve(new ut),this.workspaceFetcher=e,this.eventProcessor=t,this.workspaceFetcher.start(),this.eventProcessor.start(),this.readyPromise=this.workspaceFetcher.onReady().then(function(){return{success:!0}},function(e){return{success:!1,error:e}})}function vt(){var e=new $e,t=new He(new Ge),r=new Be(e),n=new at(t,r),e=new st(e);this.abTestFlow=qe.of(new Xe(n),new nt,new rt(e),new Je(new ot(t)),new Ye,new We,new Ze,new Qe(r)),this.featureFlagFlow=qe.of(new Ye,new We,new Ze,new Xe(n),new nt,new et(new it(t),r),new tt(r))}function mt(e){this.bucketer=e}function gt(e,t){this.targetMatcher=e,this.actionResolver=t}function wt(e){this.targetMatcher=e}function bt(e){this.targetMatcher=e}function Et(){}function Tt(e){this.containerResolver=e}function _t(e){this.actionResolver=e}function Rt(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function Ot(e){this.actionResolver=e}function At(e){this.experimentTargetDeterminer=e}function St(){}function Ct(){}function It(){}function kt(e){this.overrideResolver=e}function Nt(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function xt(){}function Pt(e){this.bucketer=e}function Mt(){}function Dt(e){this.userConditionMatcher=e}function jt(e){this.segmentMatcher=e}function Ft(){}function Lt(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function Ut(){}function Vt(){}function Ht(){}function Kt(){}function Gt(){}function Bt(){}function zt(){}function $t(){}function qt(){}function Xt(){}function Yt(){}function Wt(){}function Zt(){}function Jt(){}function Qt(){}function er(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function tr(e){this.conditionMatcherFactory=e}function rr(e){this.evaluationFlowFactory=e}function nr(e,t,r){this.variationId=e,this.variationKey=t,this.reason=r}function or(e,t,r,n){e=_e.call(this,e,t)||this;return e.eventType=r,e.event=n,e}function ir(e,t,r,n,o,i){e=Re.call(this,e,t)||this;return e.experiment=r,e.variationId=n,e.variationKey=o,e.decisionReason=i,e}function ar(e,t){this.timestamp=e,this.user=t}function sr(){}function ur(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function cr(e){this.identifiers=e}function fr(e,t,r){this.major=e,this.minor=t,this.patch=r}function lr(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}function pr(){if(Te=Te||"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))return Te(dt);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}var dr=/^(?:[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 hr(e){return"string"==typeof e&&dr.test(e)}for(var yr=[],vr=0;vr<256;++vr)yr.push((vr+256).toString(16).substr(1));function mr(e,t){t=1<arguments.length&&void 0!==t?t:0,e=(yr[e[t+0]]+yr[e[t+1]]+yr[e[t+2]]+yr[e[t+3]]+"-"+yr[e[t+4]]+yr[e[t+5]]+"-"+yr[e[t+6]]+yr[e[t+7]]+"-"+yr[e[t+8]]+yr[e[t+9]]+"-"+yr[e[t+10]]+yr[e[t+11]]+yr[e[t+12]]+yr[e[t+13]]+yr[e[t+14]]+yr[e[t+15]]).toLowerCase();if(hr(e))return e;throw TypeError("Stringified UUID is invalid")}function gr(){try{0}catch(e){}}gr(),gr();Tr.prototype.resolveOrNull=function(e){e=this._resolveUser(e);return this._resolveHackleUserOrNull(e)},Tr.prototype._resolveUser=function(e){return e?"string"==typeof e?{id:e}:e:{id:_r()}},Tr.prototype._resolveHackleUserOrNull=function(e){var t=new de,t=(t.addIdentifiers(e.identifiers||{}),e.id&&t.add(pe.ID,e.id),e.userId&&t.add(pe.USER,e.userId),t.add(pe.DEVICE,e.deviceId||_r()),t.build());if(0!==Object.keys(t).length)return{identifiers:t,properties:e.properties||{},hackleProperties:this._getHackleProperties()}},Tr.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?pt.generate(window):e)||{}};var wr=Tr,br=(Er.initialize=function(){Sr.get("_hackle_hid")||Ar()},Er.reInitialize=function(){Ar()},Er);function Er(){}function Tr(){br.initialize()}function _r(){var e=Sr.get("_hackle_id");return e||Sr.get("_hackle_hid")||Ar()}function Rr(e){Sr.set("_hackle_id",e,3650,!0)}function Or(){Sr.remove("_hackle_id",!0)}function Ar(){var e=function(e,t,r){var n=(e=e||{}).random||(e.rng||pr)();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 mr(n)}();return Sr.set("_hackle_hid",e,3650,!0),e}Nr.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},Nr.set=function(e,t,r,n,o,i){var a="",s="",u="",r=(n&&(a=(n=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},Nr.remove=function(e,t){Nr.set(e,"",-1,t,!1,!1)},Nr.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 Sr=Nr,Cr=K.log,Ir=(kr.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},kr.prototype.variationDetail=function(e,t,r){r=r||"A";try{var n=this.hackleUserResolver.resolveOrNull(t);return n?this.hackleInternalClient._experiment(e,n,r):ue.of(r,s.INVALID_INPUT)}catch(t){return Cr.error("Unexpected exception while deciding variation for experiment[".concat(e,"]. Returning default variation[").concat(r,"] : ").concat(t)),ue.of(r,s.EXCEPTION)}},kr.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},kr.prototype.featureFlagDetail=function(e,t){try{var r=this.hackleUserResolver.resolveOrNull(t);return r?this.hackleInternalClient._featureFlag(e,r):ce.off(s.INVALID_INPUT)}catch(t){return Cr.error('"Unexpected exception while deciding feature flag['.concat(e,"]. Returning default value[false] : ").concat(t)),ce.off(s.EXCEPTION)}},kr.prototype.track=function(e,t){Cr.debug("track event : ".concat(JSON.stringify(e)));e=this._convertEvent(e),t=this.hackleUserResolver.resolveOrNull(t);t&&this.hackleInternalClient._track(e,t)},kr.prototype.trackPageView=function(e){Cr.debug("tracking page view");e=this.hackleUserResolver.resolveOrNull(null==e?void 0:e.user);e&&this.hackleInternalClient._track({key:"$page_view"},e)},kr.prototype.onReady=function(e,t){this.hackleInternalClient._onReady(e,t=void 0===t?3e3:t)},kr.prototype.onInitialized=function(e){return this.hackleInternalClient._onInitialized({timeout:null==e?void 0:e.timeout})},kr.prototype.close=function(){Cr.debug("Hackle Client is closing"),this.hackleInternalClient._close()},kr.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},kr);function kr(e,t){this.hackleInternalClient=new ft(e,t),this.hackleUserResolver=new wr}function Nr(){}function xr(e){var t=new Array,r=new Array;return e.forEach(function(e){je.isExposure(e)?t.push(e.toDto()):je.isTrack(e)&&r.push(e.toDto())}),{exposureEvents:t,trackEvents:r}}$r.prototype.dispatch=function(e,t){var r={},e=(r["X-HACKLE-SDK-KEY"]=this.sdkKey,r["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],r["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],r["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),xr(e));this.httpRequest.postRequest(this.dispatchUrl,e,r,t)},$r.prototype.dispatchXhrOrBeacon=function(e,t){var r,n;this.useBeacon?((r={})["X-HACKLE-SDK-KEY"]=this.sdkKey,r["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],r["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],r["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),n=xr(e),this.httpRequest.sendBeacon(this.beaconDispatchUrl,n,r,t)):this.dispatch(e,t)};var Pr=$r,Mr=K.log,Dr=(h.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},h.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},h.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},h.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},h.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},h.prototype.getContainerOrNull=function(e){return this.containers.get(e)},h.from=function(e){var t=this,r=h.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]}),n=h.associateBy(h.mapNotUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),o=h.associateBy(h.mapNotUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),i=h.associate(e.events,function(e){return[e.key,new Z(e.id,e.key)]}),a=h.associateBy(h.mapNotUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),e=h.associate(e.containers,function(e){return[e.id,t.toContainer(e)]});return new h(n,o,r,i,a,e)},h.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 le(t,r,e)}))},h.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)}),i=h.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),a=h.mapNotUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,Me.IDENTIFIER)}),s=h.mapNotUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,Me.PROPERTY)}),u=h.mapNotUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,Me.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new fe(t.id,t.key,e,t.identifierType,n,t.version,o,i,a,s,u,c,t.containerId,t.winnerVariationId)},h.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void Mr.debug("Unsupported status [".concat(e,"]"))}},h.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new ne(t,e)},h.toTargetActionOrNull=function(e){var t=this.parseOrNull(Ne,e.type);return t&&new re(t,e.variationId,e.bucketId)},h.toTargetOrNull=function(e,t){var r=this,e=h.mapNotUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new J(e)},h.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)},h.toTargetKeyOrNull=function(e){var t=this.parseOrNull(xe,e.type);return t&&new ee(t,e.name)},h.toTargetMatchOrNull=function(e){var t=this.parseOrNull(Ce,e.type),r=this.parseOrNull(ke,e.operator),n=this.parseOrNull(Ie,e.valueType);return t&&r&&n&&new te(t,r,n,e.values)},h.toSegmentOrNull=function(e){var t=this,r=this.parseOrNull(Pe,e.type);return r&&new oe(e.id,e.key,r,this.mapNotUndefined(e.targets,function(e){return t.toTargetOrNull(e,Me.SEGMENT)}))},h.toContainer=function(e){var t=this;return new he(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},h.toContainerGroup=function(e){return new ie(e.id,e.experiments)},h.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||Mr.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},h.mapNotUndefined=function(e,r){return e.reduce(function(e,t){t=r(t);return t&&e.push(t),e},Array())},h.associateTo=function(e,t,r){return e.reduce(function(e,t){t=r(t);return e.set(t[0],t[1]),e},t)},h.associate=function(e,t){return h.associateTo(e,new Map,t)},h.associateBy=function(e,t){return this.associateTo(e,new Map,function(e){return[t(e),e]})},h),jr=(zr.prototype.onReady=function(){return this.readyPromise},zr.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},zr.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()},zr.prototype.get=function(){return this.workspace},zr.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)},zr.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()},zr.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},zr.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=Dr.from(e),this.readyPromiseResolver())}},zr.prototype.onRequestRejected=function(e){this.isStarted&&(this.errorRetryController.countError(),console.error("Error fetching data",e))},zr.prototype.close=function(){this.stop()},zr),Fr=(Br.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*B[Math.min(B.length-1,this.errorCount)]+Math.round(1e3*Math.random())},Br.prototype.countError=function(){this.errorCount<B.length-1&&this.errorCount++},Br.prototype.reset=function(){this.errorCount=0},Br),Lr=(Gr.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},Gr.prototype.refresh=function(){this.stop(),this.start()},Gr.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)},Gr),Ur=(Kr.prototype.start=function(){this.started=!0},Kr.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},Kr.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},Kr.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},Kr.prototype.close=function(){this.stop()},Kr),Vr=(Hr.prototype.drainQueue=function(t,r){var n=this;return new Promise(function(e){0!==t.length?r?n.eventDispatcher.dispatchXhrOrBeacon(t,function(){e()}):n.eventDispatcher.dispatch(t,function(){e()}):e()})},Hr.prototype.process=function(e){this.queue.enqueue(e)},Hr.prototype.start=function(){return e=this,u=function(){return H(this,function(e){return this.queue.start(),[2]})},new(s=(s=a=void 0)||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())});var e,a,s,u},Hr.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},Hr.prototype.close=function(){this.stop()},Hr);function Hr(e,t,r){this.eventDispatcher=e,this.flushInterval=r,this.queue=new Ur(this.drainQueue.bind(this),qr,t,r)}function Kr(e,t,r,n){this.buffer=[],this.sink=e,this.maxQueueSize=r,this.batchComparator=t,this.timer=new Lr({callback:this.flush.bind(this),timeout:n}),this.started=!1}function Gr(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function Br(){this.errorCount=0}function zr(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 Fr,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function h(e,t,r,n,o,i){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n,this.segments=o,this.containers=i}function $r(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 qr(e,t){return e.timestamp==t.timestamp&&e.user.identifiers==t.user.identifiers&&e.user.properties==t.user.properties}function Xr(e){return e&&e.Math==Math&&e}function y(e){try{return!!e()}catch(e){return!0}}var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==F?F:"undefined"!=typeof self?self:{},i=Xr("object"==typeof globalThis&&globalThis)||Xr("object"==typeof window&&window)||Xr("object"==typeof self&&self)||Xr("object"==typeof o&&o)||function(){return this}()||Function("return this")(),c={},n=!y(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),l=!y(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Yr=Function.prototype.call,a=l?Yr.bind(Yr):function(){return Yr.apply(Yr,arguments)},p={},u={}.propertyIsEnumerable,Wr=Object.getOwnPropertyDescriptor,r=Wr&&!u.call({1:2},1);p.f=r?function(e){e=Wr(this,e);return!!e&&e.enumerable}:u;function Zr(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function Jr(e){return yn(hn(e),8,-1)}function Qr(e){if(null==e)throw wn("Can't call method on "+e);return e}function en(e){return bn(En(e))}function v(e){return"function"==typeof e}function tn(e){return"object"==typeof e?null!==e:Tn(e)}function rn(e,t){return arguments.length<2?(r=_n[e],Rn(r)?r:void 0):_n[e]&&_n[e][t];var r}function nn(e){try{return Pn(e)}catch(e){return"Object"}}function on(e){if(Mn(e))return e;throw jn(Dn(e)+" is not a function")}function an(e,t){return null==(e=e[t])?void 0:Fn(e)}function sn(t,r){try{Gn(Kn,t,{value:r,configurable:!0,writable:!0})}catch(e){Kn[t]=r}return r}function m(e){return qn($n(e))}function un(e){return"Symbol("+(void 0===e?"":e)+")_"+eo(++Jn+Qn,36)}function g(e){var t;return ro(io,e)&&(no||"string"==typeof io[e])||(t="Symbol."+e,no&&ro(ao,e)?io[e]=ao[e]:io[e]=(oo&&so?so:uo)(t)),io[e]}function cn(e){return e=function(e,t){if(!fo(e)||lo(e))return e;var r=po(e,vo);if(r){if(r=co(r,e,t=void 0===t?"default":t),!fo(r)||lo(r))return r;throw yo("Can't convert object to primitive value")}return ho(e,t=void 0===t?"number":t)}(e,"string"),mo(e)?e:e+""}function fn(e){return wo?go.createElement(e):{}}function ln(e){if(Io(e))return e;throw No(ko(e)+" is not an object")}var F=l,o=Function.prototype,r=o.bind,pn=o.call,dn=F&&r.bind(pn,pn),u=F?function(e){return e&&dn(e)}:function(e){return e&&function(){return pn.apply(e,arguments)}},o=u,hn=o({}.toString),yn=o("".slice),r=y,vn=Jr,mn=Object,gn=u("".split),F=r(function(){return!mn("z").propertyIsEnumerable(0)})?function(e){return"String"==vn(e)?gn(e,""):mn(e)}:mn,wn=TypeError,bn=F,En=Qr,Tn=v,_n=i,Rn=v,o=u({}.isPrototypeOf),r=rn("navigator","userAgent")||"",w=r,On=i.process,An=i.Deno,On=On&&On.versions||An&&An.version,An=On&&On.v8,On=xn=!(xn=An?0<(b=An.split("."))[0]&&b[0]<4?1:+(b[0]+b[1]):xn)&&w&&(!(b=w.match(/Edge\/(\d+)/))||74<=b[1])&&(b=w.match(/Chrome\/(\d+)/))?+b[1]:xn,Sn=On,An=y,w=!!Object.getOwnPropertySymbols&&!An(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Sn&&Sn<41}),b=w&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Cn=rn,In=v,kn=o,Nn=Object,xn=b?function(e){return"symbol"==typeof e}:function(e){var t=Cn("Symbol");return In(t)&&kn(t.prototype,Nn(e))},Pn=String,Mn=v,Dn=nn,jn=TypeError,Fn=on,Ln=a,Un=v,Vn=tn,Hn=TypeError,An={exports:{}},Kn=i,Gn=Object.defineProperty,Bn=sn,Bn=i["__core-js_shared__"]||Bn("__core-js_shared__",{}),zn=Bn,$n=((An.exports=function(e,t){return zn[e]||(zn[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"}),Qr),qn=Object,Xn=m,Yn=u({}.hasOwnProperty),Wn=Object.hasOwn||function(e,t){return Yn(Xn(e),t)},Zn=u,Jn=0,Qn=Math.random(),eo=Zn(1..toString),Zn=i,to=An.exports,ro=Wn,E=un,no=w,oo=b,io=to("wks"),ao=Zn.Symbol,so=ao&&ao.for,uo=oo?ao:ao&&ao.withoutSetter||E,co=a,fo=tn,lo=xn,po=an,ho=function(e,t){var r,n;if("string"===t&&Un(r=e.toString)&&!Vn(n=Ln(r,e)))return n;if(Un(r=e.valueOf)&&!Vn(n=Ln(r,e)))return n;if("string"!==t&&Un(r=e.toString)&&!Vn(n=Ln(r,e)))return n;throw Hn("Can't convert object to primitive value")},yo=TypeError,vo=g("toPrimitive"),mo=xn,w=tn,go=i.document,wo=w(go)&&w(go.createElement),bo=fn,b=!n&&!y(function(){return 7!=Object.defineProperty(bo("div"),"a",{get:function(){return 7}}).a}),Eo=a,To=p,_o=Zr,Ro=en,Oo=cn,Ao=Wn,So=b,Co=Object.getOwnPropertyDescriptor,to=(c.f=n?Co:function(e,t){if(e=Ro(e),t=Oo(t),So)try{return Co(e,t)}catch(e){}if(Ao(e,t))return _o(!Eo(To.f,e,t),e[t])},{}),Zn=n&&y(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Io=tn,ko=String,No=TypeError,xo=b,Po=ln,Mo=cn,Do=TypeError,jo=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,Lo=(to.f=n?Zn?function(e,t,r){var n;return Po(e),t=Mo(t),Po(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=Fo(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}),jo(e,t,r)}:jo:function(e,t,r){if(Po(e),t=Mo(t),Po(r),xo)try{return jo(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Do("Accessors not supported");return"value"in r&&(e[t]=r.value),e},to),Uo=Zr,E=n?function(e,t,r){return Lo.f(e,t,Uo(1,r))}:function(e,t,r){return e[t]=r,e},xn={exports:{}},w=n,p=Wn,b=Function.prototype,T=w&&Object.getOwnPropertyDescriptor,p=p(b,"name"),p={EXISTS:p,PROPER:p&&"something"===function(){}.name,CONFIGURABLE:p&&(!w||T(b,"name").configurable)},w=v,T=Bn,Vo=u(Function.toString);w(T.inspectSource)||(T.inspectSource=function(e){return Vo(e)});function Ho(e){return oi[e]||(oi[e]=ni(e))}function Ko(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(Ei(r)&&_i(r,i,n),n.global)o?e[t]=r:Ri(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:Ti.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function Go(e){return(e=+e)!=e||0==e?0:Si(e)}function Bo(e,t){return(e=Ci(e))<0?Ii(e+t,0):ki(e,t)}function _(e){return 0<(e=e.length)?xi(Ni(e),9007199254740991):0}function zo(s){return function(e,t,r){var n,o=Pi(e),i=Di(o),a=Mi(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 $o(e,t){var r,n=Fi(e),o=0,i=[];for(r in n)!ji(Ui,r)&&ji(n,r)&&Vi(i,r);for(;t.length>o;)!ji(n,r=t[o++])||~Li(i,r)||Vi(i,r);return i}function qo(e,t,r){for(var n=Xi(t),o=Wi.f,i=Yi.f,a=0;a<n.length;a++){var s=n[a];qi(e,s)||r&&qi(r,s)||o(e,s,i(t,s))}}function Xo(e,t){return(e=ta[ea(e)])==na||e!=ra&&(Ji(t)?Zi(t):!!t)}function R(e,t){var r,n,o,i,a=e.target,s=e.global,u=e.stat;if(r=s?oa:u?oa[a]||ua(a,{}):(oa[a]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(i=ia(r,n))&&i.value:r[n],!fa(s?n:a+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;ca(o,i)}(e.sham||i&&i.sham)&&aa(o,"sham",!0),sa(r,n,o,e)}}var Yo,Wo,Zo,Jo,Qo,ei,ti,ri,b=T.inspectSource,w=v,T=b,O=i.WeakMap,w=w(O)&&/native code/.test(T(O)),T=An.exports,ni=un,oi=T("keys"),O={},An=u,ii=tn,ai=E,si=Wn,T=Bn,A=Ho,ui=O,ci=i.TypeError,fi=i.WeakMap,w=(ti=w||T.state?(Yo=T.state||(T.state=new fi),Wo=An(Yo.get),Zo=An(Yo.has),Jo=An(Yo.set),Qo=function(e,t){if(Zo(Yo,e))throw new ci("Object already initialized");return t.facade=e,Jo(Yo,e,t),t},ei=function(e){return Wo(Yo,e)||{}},function(e){return Zo(Yo,e)}):(ui[ri=A("state")]=!0,Qo=function(e,t){if(si(e,ri))throw new ci("Object already initialized");return t.facade=e,ai(e,ri,t),t},ei=function(e){return si(e,ri)?e[ri]:{}},function(e){return si(e,ri)}),{set:Qo,get:ei,has:ti,enforce:function(e){return ti(e)?ei(e):Qo(e,{})},getterFor:function(t){return function(e){if(ii(e)&&(e=ei(e)).type===t)return e;throw ci("Incompatible receiver, "+t+" required")}}}),T=y,li=v,pi=Wn,di=n,hi=p.CONFIGURABLE,yi=b,vi=w.enforce,mi=w.get,gi=Object.defineProperty,wi=di&&!T(function(){return 8!==gi(function(){},"length",{value:8}).length}),bi=String(String).split("String"),fi=xn.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!pi(e,"name")||hi&&e.name!==t)&&(di?gi(e,"name",{value:t,configurable:!0}):e.name=t),wi&&r&&pi(r,"arity")&&e.length!==r.arity&&gi(e,"length",{value:r.arity});try{r&&pi(r,"constructor")&&r.constructor?di&&gi(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=vi(e);return pi(r,"source")||(r.source=bi.join("string"==typeof t?t:"")),e},Ei=(Function.prototype.toString=fi(function(){return li(this)&&mi(this).source||yi(this)},"toString"),v),Ti=to,_i=xn.exports,Ri=sn,An={},Oi=Math.ceil,Ai=Math.floor,Si=Math.trunc||function(e){e=+e;return(0<e?Ai:Oi)(e)},Ci=Go,Ii=Math.max,ki=Math.min,Ni=Go,xi=Math.min,Pi=en,Mi=Bo,Di=_,ui={includes:zo(!0),indexOf:zo(!1)},ji=Wn,Fi=en,Li=ui.indexOf,Ui=O,Vi=u([].push),A=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Hi=$o,Ki=A.concat("length","prototype"),T=(An.f=Object.getOwnPropertyNames||function(e){return Hi(e,Ki)},{}),fi=(T.f=Object.getOwnPropertySymbols,rn),Gi=An,Bi=T,zi=ln,$i=u([].concat),T=fi("Reflect","ownKeys")||function(e){var t=Gi.f(zi(e)),r=Bi.f;return r?$i(t,r(e)):t},qi=Wn,Xi=T,Yi=c,Wi=to,Zi=y,Ji=v,Qi=/#|\.prototype\./,ea=Xo.normalize=function(e){return String(e).replace(Qi,".").toLowerCase()},ta=Xo.data={},ra=Xo.NATIVE="N",na=Xo.POLYFILL="P",fi=Xo,oa=i,ia=c.f,aa=E,sa=Ko,ua=sn,ca=qo,fa=fi,T=!y(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),la=Wn,pa=v,da=m,ha=Ho("IE_PROTO"),ya=Object,va=ya.prototype,T=T?ya.getPrototypeOf:function(e){e=da(e);if(la(e,ha))return e[ha];var t=e.constructor;return pa(t)&&e instanceof t?t.prototype:e instanceof ya?va:null},ma=v,ga=String,wa=TypeError,ba=u,Ea=ln,Ta=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=ba(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return Ea(e),function(e){if("object"==typeof e||ma(e))return;throw wa("Can't set "+ga(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),_a={},Ra=$o,Oa=A,S=Object.keys||function(e){return Ra(e,Oa)},Aa=to,Sa=ln,Ca=en,Ia=S;_a.f=n&&!Zn?Object.defineProperties:function(e,t){Sa(e);for(var r,n=Ca(t),o=Ia(t),i=o.length,a=0;a<i;)Aa.f(e,r=o[a++],n[r]);return e};function ka(){}function Na(e){e.write(Xa("")),e.close();var t=e.parentWindow.Object;return e=null,t}function xa(e,t){return rs(e),void 0===t?e:ns?os(e,t):function(){return e.apply(t,arguments)}}function Pa(e){return void 0!==e&&(is.Array===e||ss[as]===e)}function Ma(e){if(null!=e)return hs(e,vs)||hs(e,"@@iterator")||ys[ds(e)]}function Da(e,t){if(t=arguments.length<2?Es(e):t,gs(t))return ws(ms(t,e));throw Ts(bs(e)+" is not iterable")}function ja(e,t,r){var n,o;Rs(e);try{if(!(n=Os(e,"return"))){if("throw"===t)throw r;return r}n=_s(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return Rs(n),r}function Fa(e,t){this.stopped=e,this.result=t}function La(e,t,r){function n(e){return i&&Ds(i,"normal",e),new Fa(!0,e)}function o(e){return p?(Cs(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,f,l=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),v=As(t,l);if(d)i=e.iterator;else if(h)i=e;else{if(!(r=Ms(e)))throw js(Is(e)+" is not iterable");if(ks(r)){for(a=0,s=Ns(e);a<s;a++)if((u=o(e[a]))&&xs(Fs,u))return u;return new Fa(!1)}i=Ps(e,r)}for(c=(d?e:i).next;!(f=Ss(c,i)).done;){try{u=o(f.value)}catch(e){Ds(i,"throw",e)}if("object"==typeof u&&u&&xs(Fs,u))return u}return new Fa(!1)}function Ua(e){if("Symbol"===Ls(e))throw TypeError("Cannot convert a Symbol value to a string");return Us(e)}function Va(e,t){var r,n=2<arguments.length?arguments[2]:void 0,o=Gs(tu,this);return zs?r=zs(new Qs,o?Bs(this):tu):(r=o?this:qs(tu),Xs(r,Js,"Error")),void 0!==t&&Xs(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:Vs(e)}(t)),Zs&&Xs(r,"stack",function(e,t){if(Qa&&"string"==typeof e&&!Wa.prepareStackTrace)for(;t--;)e=Za(e,Ja,"");return e}(r.stack,1)),o=r,es(t=n)&&"cause"in t&&ts(o,"cause",t.cause),Ws(e,eu,{that:n=[]}),Xs(r,"errors",n),r}var Ha,S=rn("document","documentElement"),Ka=ln,Ga=_a,Ba=A,Zn=O,za=S,$a=fn,qa=Ho("IE_PROTO"),Xa=function(e){return"<script>"+e+"<\/script>"},Ya=function(){try{Ha=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ya="undefined"==typeof document||document.domain&&Ha?Na(Ha):((t=$a("iframe")).style.display="none",za.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Xa("document.F=Object")),e.close(),e.F);for(var r=Ba.length;r--;)delete Ya.prototype[Ba[r]];return Ya()},_a=(Zn[qa]=!0,Object.create||function(e,t){var r;return null!==e?(ka.prototype=Ka(e),r=new ka,ka.prototype=null,r[qa]=e):r=Ya(),void 0===t?r:Ga.f(r,t)}),Wa=Error,Za=u("".replace),A=String(Wa("zxcasd").stack),Ja=/\n\s*at [^:]*:[^\n]*/,Qa=Ja.test(A),es=tn,ts=E,rs=on,ns=l,os=u(u.bind),Zn={},is=Zn,as=g("iterator"),ss=Array.prototype,A={},A=(A[g("toStringTag")]="z","[object z]"===String(A)),C=A,us=v,cs=Jr,fs=g("toStringTag"),ls=Object,ps="Arguments"==cs(function(){return arguments}()),C=C?cs: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=ls(e),fs))?t:ps?cs(e):"Object"==(t=cs(e))&&us(e.callee)?"Arguments":t},ds=C,hs=an,ys=Zn,vs=g("iterator"),ms=a,gs=on,ws=ln,bs=nn,Es=Ma,Ts=TypeError,_s=a,Rs=ln,Os=an,As=xa,Ss=a,Cs=ln,Is=nn,ks=Pa,Ns=_,xs=o,Ps=Da,Ms=Ma,Ds=ja,js=TypeError,Fs=Fa.prototype,Ls=C,Us=String,Vs=Ua,Hs=Zr,I=!y(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Hs(1,7)),7!==e.stack)}),Ks=R,Gs=o,Bs=T,zs=Ta,$s=qo,qs=_a,Xs=E,Ys=Zr,Ws=La,Zs=I,Js=g("toStringTag"),Qs=Error,eu=[].push,tu=(zs?zs(Va,Qs):$s(Va,Qs,{name:!0}),Va.prototype=qs(Qs.prototype,{constructor:Ys(1,Va),message:Ys(1,""),name:Ys(1,"AggregateError")})),I=(Ks({global:!0,constructor:!0,arity:2},{AggregateError:Va}),g),$s=_a,Ys=to.f,ru=I("unscopables"),nu=Array.prototype;null==nu[ru]&&Ys(nu,ru,{configurable:!0,value:$s(null)});function k(e){nu[ru][e]=!0}var ou,Ks=y,I=v,Ys=T,$s=Ko,iu=g("iterator"),N=!1;[].keys&&("next"in(cu=[].keys())?(Ys=Ys(Ys(cu)))!==Object.prototype&&(ou=Ys):N=!0);function au(e,t,r){(e=e&&!r?e.prototype:e)&&!lu(e,pu)&&fu(e,pu,{configurable:!0,value:t})}function su(){return this}function uu(e,t,r,n,o,i,a){var s=r,u=t,c=void 0;function f(e){if(e===o&&v)return v;if(!Nu&&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=hu(du,{next:yu(+!c,n)}),vu(s,u,!1),mu[u]=gu;var l,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[xu]||h["@@iterator"]||o&&h[o],v=!Nu&&y||f(o);if((n="Array"==t&&h.entries||y)&&(s=Tu(n.call(new e)))!==Object.prototype&&s.next&&(Tu(s)!==ku&&(_u?_u(s,ku):Eu(s[xu])||Au(s,xu,su)),Ru(s,c,!0)),Cu&&"values"==o&&y&&"values"!==y.name&&(Iu?Ou(h,"name","values"):(d=!0,v=function(){return bu(y,this)})),o)if(l={values:f("values"),keys:i?v:f("keys"),entries:f("entries")},a)for(p in l)!Nu&&!d&&p in h||Au(h,p,l[p]);else wu({target:t,proto:!0,forced:Nu||d},l);return h[xu]!==v&&Au(h,xu,v,{name:o}),Su[t]=v,l}I((ou=null==ou||Ks(function(){var e={};return ou[iu].call(e)!==e})?{}:ou)[iu])||$s(ou,iu,function(){return this});var cu={IteratorPrototype:ou,BUGGY_SAFARI_ITERATORS:N},fu=to.f,lu=Wn,pu=g("toStringTag"),du=cu.IteratorPrototype,hu=_a,yu=Zr,vu=au,mu=Zn,gu=function(){return this},wu=R,bu=a,Eu=v,Tu=T,_u=Ta,Ru=au,Ou=E,Au=Ko,Su=Zn,Cu=p.PROPER,Iu=p.CONFIGURABLE,ku=cu.IteratorPrototype,Nu=cu.BUGGY_SAFARI_ITERATORS,xu=g("iterator"),Pu=en,Ys=k,I=Zn,Ks=w,$s=to.f,N=uu,p=n,Mu=Ks.set,Du=Ks.getterFor("Array Iterator"),cu=N(Array,"Array",function(e,t){Mu(this,{type:"Array Iterator",target:Pu(e),index:0,kind:t})},function(){var e=Du(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"),Zn=I.Arguments=I.Array;if(Ys("keys"),Ys("values"),Ys("entries"),p&&"values"!==Zn.name)try{$s(Zn,"name",{value:"values"})}catch(ag){}function ju(e){var e=Ku(e),t=Gu.f;Bu&&e&&!e[zu]&&t(e,zu,{configurable:!0,get:function(){return this}})}function Fu(e,t){if($u(t,e))return e;throw qu("Incorrect invocation")}function Lu(){}function Uu(e){if(!Xu(e))return!1;try{return Ju(Lu,Zu,e),!0}catch(e){return!1}}function Vu(e){if(!Xu(e))return!1;switch(Yu(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return tc||!!ec(Qu,Wu(e))}catch(e){return!0}}var Hu=C,Ks=(A||Ko(Object.prototype,"toString",A?{}.toString:function(){return"[object "+Hu(this)+"]"},{unsafe:!0}),"process"==Jr(i.process)),Ku=rn,Gu=to,Bu=n,zu=g("species"),$u=o,qu=TypeError,N=u,I=y,Xu=v,Yu=C,Wu=b,Zu=[],Ju=rn("Reflect","construct"),Qu=/^\s*(?:class|function)\b/,ec=N(Qu.exec),tc=!Qu.exec(Lu);Vu.sham=!0;function rc(e,t){var r,e=uc(e).constructor;if(void 0===e||null==(r=uc(e)[cc]))return t;if(ic(e=r))return e;throw sc(ac(e)+" is not a constructor")}var nc,oc,Ys=!Ju||I(function(){var e;return Uu(Uu.call)||!Uu(Object)||!Uu(function(){e=!0})||e})?Vu:Uu,ic=Ys,ac=nn,sc=TypeError,uc=ln,cc=g("species"),p=Function.prototype,fc=p.apply,lc=p.call,$s="object"==typeof Reflect&&Reflect.apply||(l?lc.bind(fc):function(){return lc.apply(fc,arguments)}),Zn=u([].slice),pc=TypeError,A=/(?:ipad|iphone|ipod).*applewebkit/i.test(r),dc=i,hc=$s,o=xa,yc=v,vc=Wn,C=y,mc=S,gc=Zn,wc=fn,N=A,I=Ks,p=dc.setImmediate,l=dc.clearImmediate,bc=dc.process,Ec=dc.Dispatch,Tc=dc.Function,S=dc.MessageChannel,_c=dc.String,Rc=0,Oc={};try{nc=dc.location}catch(ag){}function Ac(e){return function(){Ic(e)}}function Sc(e){Ic(e.data)}function Cc(e){dc.postMessage(_c(e),nc.protocol+"//"+nc.host)}var Ic=function(e){var t;vc(Oc,e)&&(t=Oc[e],delete Oc[e],t())};p&&l||(p=function(e){var t=arguments.length,r=1;if(t<r)throw pc("Not enough arguments");var n=yc(e)?e:Tc(e),o=gc(arguments,1);return Oc[++Rc]=function(){hc(n,void 0,o)},oc(Rc),Rc},l=function(e){delete Oc[e]},I?oc=function(e){bc.nextTick(Ac(e))}:Ec&&Ec.now?oc=function(e){Ec.now(Ac(e))}:S&&!N?(N=(I=new S).port2,I.port1.onmessage=Sc,oc=o(N.postMessage,N)):dc.addEventListener&&yc(dc.postMessage)&&!dc.importScripts&&nc&&"file:"!==nc.protocol&&!C(Cc)?(oc=Cc,dc.addEventListener("message",Sc,!1)):oc="onreadystatechange"in wc("script")?function(e){mc.appendChild(wc("script")).onreadystatechange=function(){mc.removeChild(this),Ic(e)}}:function(e){setTimeout(Ac(e),0)});function kc(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function Nc(){this.head=null,this.tail=null}function xc(e){var r,n;this.promise=new e(function(e,t){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=e,n=t}),this.resolve=Jc(r),this.reject=Jc(n)}var Pc,Mc,Dc,jc,Fc,Lc,Uc,S={set:p,clear:l},I=i,o=/ipad|iphone|ipod/i.test(r)&&void 0!==I.Pebble,N=/web0s(?!.*chrome)/i.test(r),C=i,p=xa,l=c.f,Vc=S.set,I=A,c=o,A=N,Hc=Ks,o=C.MutationObserver||C.WebKitMutationObserver,N=C.document,Kc=C.process,x=C.Promise,l=l(C,"queueMicrotask"),l=l&&l.value,A=(l||(Pc=function(){var e,t;for(Hc&&(e=Kc.domain)&&e.exit();Mc;){t=Mc.fn,Mc=Mc.next;try{t()}catch(e){throw Mc?jc():Dc=void 0,e}}Dc=void 0,e&&e.enter()},jc=I||Hc||A||!o||!N?!c&&x&&x.resolve?((I=x.resolve(void 0)).constructor=x,Uc=p(I.then,I),function(){Uc(Pc)}):Hc?function(){Kc.nextTick(Pc)}:(Vc=p(Vc,C),function(){Vc(Pc)}):(Fc=!0,Lc=N.createTextNode(""),new o(Pc).observe(Lc,{characterData:!0}),function(){Lc.data=Fc=!Fc})),l||function(e){e={fn:e,next:void 0};Dc&&(Dc.next=e),Mc||(Mc=e,jc()),Dc=e}),Gc=i,c=(Nc.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}},Nc),x=i.Promise,I="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,p=!I&&!Ks&&"object"==typeof window&&"object"==typeof document,C=i,Bc=x,N=v,o=fi,zc=b,l=g,$c=p,qc=I,Xc=On,Yc=(Bc&&Bc.prototype,l("species")),Wc=!1,Zc=N(C.PromiseRejectionEvent),b={CONSTRUCTOR:o("Promise",function(){var e=zc(Bc),t=e!==String(Bc);if(!t&&66===Xc)return!0;if(!Xc||Xc<51||!/native code/.test(e)){var e=new Bc(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[Yc]=r,!(Wc=e.then(function(){})instanceof r))return!0}return!t&&($c||qc)&&!Zc}),REJECTION_EVENT:Zc,SUBCLASSING:Wc},p={},Jc=on;p.f=function(e){return new xc(e)};function Qc(e,t){var r,n,o,i,a=t.value,s=1==t.state,u=s?e.ok:e.fail,c=e.resolve,f=e.reject,l=e.domain;try{u?(s||(2===t.rejection&&(i=t,af(pf,of,function(){var e=i.facade;nf?Of.emit("rejectionHandled",e):Nf("rejectionhandled",e,i.value)})),t.rejection=1),!0===u?r=a:(l&&l.enter(),r=u(a),l&&(l.exit(),o=!0)),r===e.promise?f(_f("Promise-chain cycle")):(n=If(r))?af(n,r,c,f):c(r)):f(a)}catch(e){l&&!o&&l.exit(),f(e)}}var ef,tf,rf,I=R,nf=Ks,of=i,af=a,l=Ko,N=Ta,C=au,o=ju,sf=on,uf=v,cf=tn,ff=Fu,lf=rc,pf=S.set,df=A,hf=kc,yf=c,S=w,A=x,c=p,vf=b.CONSTRUCTOR,mf=b.REJECTION_EVENT,gf=b.SUBCLASSING,wf=S.getterFor("Promise"),bf=S.set,S=A&&A.prototype,Ef=A,Tf=S,_f=of.TypeError,Rf=of.document,Of=of.process,Af=c.f,Sf=Af,Cf=!!(Rf&&Rf.createEvent&&of.dispatchEvent),If=function(e){var t;return!(!cf(e)||!uf(t=e.then))&&t},kf=function(r,o){r.notified||(r.notified=!0,df(function(){for(var e,n,t=r.reactions;e=t.get();)Qc(e,r);r.notified=!1,o&&!r.rejection&&(n=r,af(pf,of,function(){var e,t=n.facade,r=n.value;if(xf(n)&&(e=hf(function(){nf?Of.emit("unhandledRejection",r,t):Nf("unhandledrejection",t,r)}),n.rejection=nf||xf(n)?2:1,e.error))throw e.value}))}))},Nf=function(e,t,r){var n;Cf?((n=Rf.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),of.dispatchEvent(n)):n={promise:t,reason:r},!mf&&(t=of["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=Gc.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},xf=function(e){return 1!==e.rejection&&!e.parent},Pf=function(t,r,n){return function(e){t(r,e,n)}},Mf=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,kf(e,!0))},Df=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw _f("Promise can't be resolved itself");var n=If(e);n?df(function(){var t={done:!1};try{af(n,e,Pf(Df,t,r),Pf(Mf,t,r))}catch(e){Mf(t,e,r)}}):(r.value=e,r.state=1,kf(r,!1))}catch(e){Mf({done:!1},e,r)}}};if(vf&&(Tf=(Ef=function(e){ff(this,Tf),sf(e),af(ef,this);var t=wf(this);try{e(Pf(Df,t),Pf(Mf,t))}catch(e){Mf(t,e)}}).prototype,(ef=function(e){bf(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new yf,rejection:!1,state:0,value:void 0})}).prototype=l(Tf,"then",function(e,t){var r=wf(this),n=Af(lf(this,Ef));return r.parent=!0,n.ok=!uf(e)||e,n.fail=uf(t)&&t,n.domain=nf?Of.domain:void 0,0==r.state?r.reactions.add(n):df(function(){Qc(n,r)}),n.promise}),tf=function(){var e=new ef,t=wf(e);this.promise=e,this.resolve=Pf(Df,t),this.reject=Pf(Mf,t)},c.f=Af=function(e){return e===Ef||void 0===e?new tf:Sf(e)},uf(A)&&S!==Object.prototype)){rf=S.then,gf||l(S,"then",function(e,t){var r=this;return new Ef(function(e,t){af(rf,r,e,t)}).then(e,t)},{unsafe:!0});try{delete S.constructor}catch(ag){}N&&N(S,Tf)}I({global:!0,constructor:!0,wrap:!0,forced:vf},{Promise:Ef}),C(Ef,"Promise",!1),o("Promise");var jf=g("iterator"),Ff=!1;try{var Lf=0,Uf={next:function(){return{done:!!Lf++}},return:function(){Ff=!0}};Uf[jf]=function(){return this},Array.from(Uf,function(){throw 2})}catch(ag){}function Vf(e,t){if(!t&&!Ff)return!1;var r=!1;try{var n={};n[jf]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function Hf(e,t){return ol(e),il(t)&&t.constructor===e?t:((0,(e=al.f(e)).resolve)(t),e.promise)}function Kf(o){return function(e,t){var r,e=Ol(Al(e)),t=Rl(t),n=e.length;return t<0||n<=t?o?"":void 0:(r=Cl(e,t))<55296||56319<r||t+1===n||(n=Cl(e,t+1))<56320||57343<n?o?Sl(e,t):r:o?Il(e,t,t+2):n-56320+(r-55296<<10)+65536}}function Gf(e,t){if(e){if(e[Ll]!==Vl)try{Fl(e,Ll,Vl)}catch(t){e[Ll]=Vl}if(e[Ul]||Fl(e,Ul,t),Dl[t])for(var r in jl)if(e[r]!==jl[r])try{Fl(e,r,jl[r])}catch(t){e[r]=jl[r]}}}var Bf,zf=x,c=b.CONSTRUCTOR||!Vf(function(e){zf.all(e).then(void 0,function(){})}),$f=a,qf=on,Xf=p,Yf=kc,Wf=La,A=(R({target:"Promise",stat:!0,forced:c},{all:function(e){var s=this,t=Xf.f(s),u=t.resolve,c=t.reject,r=Yf(function(){var n=qf(s.resolve),o=[],i=0,a=1;Wf(e,function(e){var t=i++,r=!1;a++,$f(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}}),R),gf=x,l=rn,N=v,S=Ko,I=gf&&gf.prototype,Zf=(A({target:"Promise",proto:!0,forced:b.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),N(gf)&&(vf=l("Promise").prototype.catch,I.catch!==vf&&S(I,"catch",vf,{unsafe:!0})),a),Jf=on,Qf=p,el=kc,tl=La,rl=(R({target:"Promise",stat:!0,forced:c},{race:function(e){var r=this,n=Qf.f(r),o=n.reject,t=el(function(){var t=Jf(r.resolve);tl(e,function(e){Zf(t,r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}}),a),nl=p,ol=(R({target:"Promise",stat:!0,forced:b.CONSTRUCTOR},{reject:function(e){var t=nl.f(this);return rl(t.reject,void 0,e),t.promise}}),ln),il=tn,al=p,C=R,o=b.CONSTRUCTOR,sl=Hf,ul=(rn("Promise"),C({target:"Promise",stat:!0,forced:o},{resolve:function(e){return sl(this,e)}}),a),cl=on,fl=p,ll=kc,pl=La,dl=(R({target:"Promise",stat:!0},{allSettled:function(e){var s=this,t=fl.f(s),u=t.resolve,r=t.reject,n=ll(function(){var n=cl(s.resolve),o=[],i=0,a=1;pl(e,function(e){var t=i++,r=!1;a++,ul(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}}),a),hl=on,yl=rn,vl=p,ml=kc,gl=La,Uf=(R({target:"Promise",stat:!0},{any:function(e){var u=this,c=yl("AggregateError"),t=vl.f(u),f=t.resolve,l=t.reject,r=ml(function(){var n=hl(u.resolve),o=[],i=0,a=1,s=!1;gl(e,function(e){var t=i++,r=!1;a++,dl(n,u,e).then(function(e){r||s||(s=!0,f(e))},function(e){r||s||(r=!0,o[t]=e,--a||l(new c(o,"No one promise resolved")))})}),--a||l(new c(o,"No one promise resolved"))});return r.error&&l(r.value),t.promise}}),R),A=x,N=y,wl=rn,bl=v,El=rc,Tl=Hf,gf=Ko,_l=A&&A.prototype,S=(Uf({target:"Promise",proto:!0,real:!0,forced:!!A&&N(function(){_l.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=El(this,wl("Promise")),e=bl(t);return this.then(e?function(e){return Tl(r,t()).then(function(){return e})}:t,e?function(e){return Tl(r,t()).then(function(){throw e})}:t)}}),bl(A)&&(l=wl("Promise").prototype.finally,_l.finally!==l&&gf(_l,"finally",l,{unsafe:!0})),u),Rl=Go,Ol=Ua,Al=Qr,Sl=S("".charAt),Cl=S("".charCodeAt),Il=S("".slice),kl=(Kf(!1),Kf(!0)),Nl=Ua,I=w,vf=uu,xl=I.set,Pl=I.getterFor("String Iterator"),c=(vf(String,"String",function(e){xl(this,{type:"String Iterator",string:Nl(e),index:0})},function(){var e=Pl(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=kl(t,r),e.index+=t.length,{value:t,done:!1})}),i),b=(c.Promise,fn("span").classList),C=b&&b.constructor&&b.constructor.prototype,o=C===Object.prototype?void 0:C,Ml=i,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},x=o,jl=cu,Fl=E,Uf=g,Ll=Uf("iterator"),Ul=Uf("toStringTag"),Vl=jl.values;for(Bf in Dl)Gf(Ml[Bf]&&Ml[Bf].prototype,Bf);Gf(x,"DOMTokenList");function Hl(e,t,r){(t=pp(t))in e?dp.f(e,t,hp(0,r)):e[t]=r}function Kl(e){if(9007199254740991<e)throw xp("Maximum allowed index exceeded");return e}function Gl(e,t){return Pp(e=e)&&(r=e.constructor,(Mp(r)&&(r===Fp||Pp(r.prototype))||Dp(r)&&null===(r=r[jp]))&&(r=void 0)),new(void 0===r?Fp:r)(0===t?0:t);var r}function Bl(t){return 51<=Up||!Lp(function(){var e=[];return(e.constructor={})[Vp]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function zl(e,t){if(!delete e[t])throw Wp("Cannot delete property "+Yp(t)+" of "+Yp(e))}function $l(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=od(e),s=nd(a),u=rd(t,r),c=id(s),f=0,t=n||ad,l=d?t(e,c):h||g?t(e,0):void 0;f<c;f++)if((w||f in s)&&(i=u(o=s[f],f,a),p))if(d)l[f]=i;else if(i)switch(p){case 3:return!0;case 5:return o;case 6:return f;case 2:sd(l,o)}else switch(p){case 4:return!1;case 7:sd(l,o)}return m?-1:y||v?v:l}}function ql(e,t){var r=[][e];return!!r&&ud(function(){r.call(null,t||function(){return 1},1)})}function Xl(u){var c=1==u;return function(e,t,r){for(var n,o=bd(e),i=wd(o),a=gd(t,r),s=Ed(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 Yl(e,t,r,n,o,i,a,s){for(var u,c,f=o,l=0,p=!!a&&Sd(a,s);l<n;)l in r&&(u=p?p(r[l],l,t):r[l],0<i&&Rd(u)?(c=Od(u),f=Yl(e,t,u,c,f,i-1)-1):(Ad(f+1),e[f]=u),f++),l++;return f}function Wl(c){return function(e,t,r,n){rh(t);var o=nh(e),i=oh(o),a=ih(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 ah("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 Zl(e,t,r){for(var n=Rh(e),o=_h(t,n),i=_h(void 0===r?n:r,n),a=Ah(Sh(i-o,0)),s=0;o<i;o++,s++)Oh(a,s,e[o]);return a.length=s,a}function Jl(e,t){var r=e.length,n=Ih(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 f=e,l=Jl(Ch(e,0,n),t),p=Jl(Ch(e,n),t),d=t,h=l.length,y=p.length,v=0,m=0;v<h||m<y;)f[v+m]=v<h&&m<y?d(l[v],p[m])<=0?l[v++]:p[m++]:v<h?l[v++]:p[m++];return f}function Ql(e){my(e,_y,{value:{objectID:"O"+Ry++,weakData:{}}})}function ep(e,t,r){for(var n in t)My(e,n,t[n],r);return e}var tp,rp,np,op,ip,ap,sp,up=p,cp=kc,fp=(R({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=up.f(this),e=cp(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),ln),lp=ja,pp=cn,dp=to,hp=Zr,yp=xa,vp=a,mp=m,gp=Pa,wp=Ys,bp=_,Ep=Hl,Tp=Da,_p=Ma,Rp=Array,Op=(R({target:"Array",stat:!0,forced:!Vf(function(e){Array.from(e)})},{from:function(e){var t=mp(e),e=wp(this),r=arguments.length,n=1<r?arguments[1]:void 0,o=void 0!==n;o&&(n=yp(n,2<r?arguments[2]:void 0));var i,a,s,u,c,f,r=_p(t),l=0;if(!r||this===Rp&&gp(r))for(i=bp(t),a=e?new this(i):Rp(i);l<i;l++)f=o?n(t[l],l):t[l],Ep(a,l,f);else for(c=(u=Tp(t,r)).next,a=e?new this:[];!(s=vp(c,u)).done;l++)f=o?function(e,t,r,n){try{return n?t(fp(r)[0],r[1]):t(r)}catch(t){lp(e,"throw",t)}}(u,n,[s.value,l],!0):s.value,Ep(a,l,f);return a.length=l,a}}),Jr),N=Array.isArray||function(e){return"Array"==Op(e)},Ap=(R({target:"Array",stat:!0},{isArray:N}),Ys),Sp=Hl,Cp=Array,Ip=(R({target:"Array",stat:!0,forced:y(function(){function e(){}return!(Cp.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(Ap(this)?this:Cp)(t);e<t;)Sp(r,e,arguments[e++]);return r.length=t,r}}),m),kp=_,Np=Go,A=k,xp=(R({target:"Array",proto:!0},{at:function(e){var t=Ip(this),r=kp(t),e=Np(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),A("at"),TypeError),Pp=N,Mp=Ys,Dp=tn,jp=g("species"),Fp=Array,Lp=y,Up=On,Vp=g("species"),gf=R,l=y,Hp=N,Kp=tn,Gp=m,Bp=_,zp=Kl,$p=Hl,qp=Gl,S=Bl,I=On,Xp=g("isConcatSpreadable"),vf=51<=I||!l(function(){var e=[];return e[Xp]=!1,e.concat()[0]!==e}),b=S("concat"),Yp=(gf({target:"Array",proto:!0,arity:1,forced:!vf||!b},{concat:function(e){for(var t,r,n,o=Gp(this),i=qp(o,0),a=0,s=-1,u=arguments.length;s<u;s++)if(function(e){if(!Kp(e))return!1;var t=e[Xp];return void 0!==t?!!t:Hp(e)}(n=-1===s?o:arguments[s]))for(r=Bp(n),zp(a+r),t=0;t<r;t++,a++)t in n&&$p(i,a,n[t]);else zp(a+1),$p(i,a++,n);return i.length=a,i}}),nn),Wp=TypeError,Zp=m,Jp=Bo,Qp=_,ed=zl,td=Math.min,C=k,rd=(R({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=Zp(this),n=Qp(r),o=Jp(e,n),i=Jp(t,n),e=2<arguments.length?arguments[2]:void 0,a=td((void 0===e?n:Jp(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]:ed(r,o),o+=s,i+=s;return r}}),C("copyWithin"),xa),nd=F,od=m,id=_,ad=Gl,sd=u([].push),o={forEach:$l(0),map:$l(1),filter:$l(2),some:$l(3),every:$l(4),find:$l(5),findIndex:$l(6),filterReject:$l(7)},ud=y,cd=o.every,fd=(R({target:"Array",proto:!0,forced:!ql("every")},{every:function(e){return cd(this,e,1<arguments.length?arguments[1]:void 0)}}),m),ld=Bo,pd=_,cu=k,dd=(R({target:"Array",proto:!0},{fill:function(e){for(var t=fd(this),r=pd(t),n=arguments.length,o=ld(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,i=void 0===n?r:ld(n,r);o<i;)t[o++]=e;return t}}),cu("fill"),o.filter),E=(R({target:"Array",proto:!0,forced:!Bl("filter")},{filter:function(e){return dd(this,e,1<arguments.length?arguments[1]:void 0)}}),R),hd=o.find,Uf=k,yd=!0,x=("find"in[]&&Array(1).find(function(){yd=!1}),E({target:"Array",proto:!0,forced:yd},{find:function(e){return hd(this,e,1<arguments.length?arguments[1]:void 0)}}),Uf("find"),R),vd=o.findIndex,p=k,md=!0,gd=("findIndex"in[]&&Array(1).findIndex(function(){md=!1}),x({target:"Array",proto:!0,forced:md},{findIndex:function(e){return vd(this,e,1<arguments.length?arguments[1]:void 0)}}),p("findIndex"),xa),wd=F,bd=m,Ed=_,A={findLast:Xl(0),findLastIndex:Xl(1)},Td=A.findLast,I=k,_d=(R({target:"Array",proto:!0},{findLast:function(e){return Td(this,e,1<arguments.length?arguments[1]:void 0)}}),I("findLast"),A.findLastIndex),l=k,Rd=(R({target:"Array",proto:!0},{findLastIndex:function(e){return _d(this,e,1<arguments.length?arguments[1]:void 0)}}),l("findLastIndex"),N),Od=_,Ad=Kl,Sd=xa,S=Yl,Cd=S,Id=m,kd=_,Nd=Go,xd=Gl,Pd=(R({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Id(this),r=kd(t),n=xd(t,0);return n.length=Cd(n,t,t,r,0,void 0===e?1:Nd(e)),n}}),S),Md=on,Dd=m,jd=_,Fd=Gl,Ld=(R({target:"Array",proto:!0},{flatMap:function(e){var t,r=Dd(this),n=jd(r);return Md(e),(t=Fd(r,0)).length=Pd(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),o.forEach),gf=ql("forEach")?[].forEach:function(e){return Ld(this,e,1<arguments.length?arguments[1]:void 0)},Ud=(R({target:"Array",proto:!0,forced:[].forEach!=gf},{forEach:gf}),ui.includes),vf=k,b=(R({target:"Array",proto:!0,forced:y(function(){return!Array(1).includes()})},{includes:function(e){return Ud(this,e,1<arguments.length?arguments[1]:void 0)}}),vf("includes"),R),Vd=ui.indexOf,C=ql,Hd=u([].indexOf),Kd=!!Hd&&1/Hd([1],1,-0)<0,cu=C("indexOf"),E=(b({target:"Array",proto:!0,forced:Kd||!cu},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return Kd?Hd(this,e,t)||0:Vd(this,e,t)}}),R),Uf=F,Gd=en,x=ql,Bd=u([].join),p=Uf!=Object,I=x("join",","),zd=(E({target:"Array",proto:!0,forced:p||!I},{join:function(e){return Bd(Gd(this),void 0===e?",":e)}}),$s),$d=en,qd=Go,Xd=_,A=ql,Yd=Math.min,Wd=[].lastIndexOf,Zd=!!Wd&&1/[1].lastIndexOf(1,-0)<0,l=A("lastIndexOf"),S=Zd||!l?function(e){if(Zd)return zd(Wd,this,arguments)||0;var t=$d(this),r=Xd(t),n=r-1;for((n=1<arguments.length?Yd(n,qd(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:Wd,Jd=(R({target:"Array",proto:!0,forced:S!==[].lastIndexOf},{lastIndexOf:S}),o.map),gf=(R({target:"Array",proto:!0,forced:!Bl("map")},{map:function(e){return Jd(this,e,1<arguments.length?arguments[1]:void 0)}}),R),Qd=m,eh=_,th=Kl,vf=y(function(){return 4294967297!==[].push.call({length:4294967296},1)}),ui=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),rh=(gf({target:"Array",proto:!0,arity:1,forced:vf||ui},{push:function(e){var t=Qd(this),r=eh(t),n=arguments.length;th(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return t.length=r}}),on),nh=m,oh=F,ih=_,ah=TypeError,C={left:Wl(!1),right:Wl(!0)},sh=C.left,b=On,cu=Ks,uh=(R({target:"Array",proto:!0,forced:!ql("reduce")||!cu&&79<b&&b<83},{reduce:function(e){var t=arguments.length;return sh(this,e,t,1<t?arguments[1]:void 0)}}),C.right),Uf=On,x=Ks,E=(R({target:"Array",proto:!0,forced:!ql("reduceRight")||!x&&79<Uf&&Uf<83},{reduceRight:function(e){return uh(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),R),ch=N,fh=u([].reverse),p=[1,2],I=(E({target:"Array",proto:!0,forced:String(p)===String(p.reverse())},{reverse:function(){return ch(this)&&(this.length=this.length),fh(this)}}),R),lh=N,ph=Ys,dh=tn,hh=Bo,yh=_,vh=en,mh=Hl,$s=g,gh=Zn,A=Bl("slice"),wh=$s("species"),bh=Array,Eh=Math.max,Th=(I({target:"Array",proto:!0,forced:!A},{slice:function(e,t){var r,n,o,i=vh(this),a=yh(i),s=hh(e,a),u=hh(void 0===t?a:t,a);if(lh(i)&&(r=i.constructor,(r=ph(r)&&(r===bh||lh(r.prototype))||dh(r)&&null===(r=r[wh])?void 0:r)===bh||void 0===r))return gh(i,s,u);for(n=new(void 0===r?bh:r)(Eh(u-s,0)),o=0;s<u;s++,o++)s in i&&mh(n,o,i[s]);return n.length=o,n}}),o.some),_h=(R({target:"Array",proto:!0,forced:!ql("some")},{some:function(e){return Th(this,e,1<arguments.length?arguments[1]:void 0)}}),Bo),Rh=_,Oh=Hl,Ah=Array,Sh=Math.max,Ch=Zl,Ih=Math.floor,l=Jl,S=r.match(/firefox\/(\d+)/i),gf=!!S&&+S[1],vf=/MSIE|Trident/.test(r),ui=r.match(/AppleWebKit\/(\d+)\./),cu=!!ui&&+ui[1],b=R,C=u,kh=on,Nh=m,xh=_,Ph=zl,Mh=Ua,Ks=y,Dh=l,x=ql,jh=gf,Fh=vf,Lh=On,Uh=cu,Vh=[],Hh=C(Vh.sort),Kh=C(Vh.push),Uf=Ks(function(){Vh.sort(void 0)}),E=Ks(function(){Vh.sort(null)}),p=x("sort"),Gh=!Ks(function(){if(Lh)return Lh<70;if(!(jh&&3<jh)){if(Fh)return!0;if(Uh)return Uh<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++)Vh.push({k:e+r,v:t})}for(Vh.sort(function(e,t){return t.v-e.v}),r=0;r<Vh.length;r++)e=Vh[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),Zn=(b({target:"Array",proto:!0,forced:Uf||!E||!p||!Gh},{sort:function(e){void 0!==e&&kh(e);var t=Nh(this);if(Gh)return void 0===e?Hh(t):Hh(t,e);for(var r,n,o=[],i=xh(t),a=0;a<i;a++)a in t&&Kh(o,t[a]);for(Dh(o,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:Mh(e)>Mh(t)?1:-1})),r=o.length,a=0;a<r;)t[a]=o[a++];for(;a<i;)Ph(t,a++);return t}}),ju("Array"),R),Bh=m,zh=Bo,$h=Go,qh=_,Xh=Kl,Yh=Gl,Wh=Hl,Zh=zl,$s=Bl("splice"),Jh=Math.max,Qh=Math.min,I=(Zn({target:"Array",proto:!0,forced:!$s},{splice:function(e,t){var r,n,o,i,a,s,u=Bh(this),c=qh(u),f=zh(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-f):(r=e-2,Qh(Jh($h(t),0),c-f)),Xh(c+r-n),o=Yh(u,n),i=0;i<n;i++)(a=f+i)in u&&Wh(o,i,u[a]);if(r<(o.length=n)){for(i=f;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:Zh(u,s);for(i=c;c-n+r<i;i--)Zh(u,i-1)}else if(n<r)for(i=c-n;f<i;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:Zh(u,s);for(i=0;i<r;i++)u[i+f]=arguments[i+2];return u.length=c-n+r,o}}),k("flat"),k("flatMap"),R),ey=m,ty=_,ry=zl,ny=Kl,A=1!==[].unshift(0),S=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),r=(I({target:"Array",proto:!0,arity:1,forced:A||S},{unshift:function(e){var t=ey(this),r=ty(t),n=arguments.length;if(n){ny(r+n);for(var o=r;o--;){var i=o+n;o in t?t[i]=t[o]:ry(t,i)}for(var a=0;a<n;a++)t[a]=arguments[a]}return t.length=r+n}}),c.Array,{exports:{}}),ui={},oy=Jr,iy=en,ay=An.f,sy=Zl,uy="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=(ui.f=function(e){if(!uy||"Window"!=oy(e))return ay(iy(e));var t=e;try{return ay(t)}catch(t){return sy(uy)}},y(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),gf=y,cy=tn,fy=Jr,ly=l,py=Object.isExtensible,vf=gf(function(){py(1)})||ly?function(e){return!!cy(e)&&(!ly||"ArrayBuffer"!=fy(e))&&(!py||py(e))}:py,On=!y(function(){return Object.isExtensible(Object.preventExtensions({}))}),dy=R,hy=u,cu=O,yy=tn,vy=Wn,my=to.f,gy=An,wy=ui,by=vf,Ey=On,Ty=!1,_y=un("meta"),Ry=0,Oy=r.exports={enable:function(){Oy.enable=function(){},Ty=!0;var o=gy.f,i=hy([].splice),e={};e[_y]=1,o(e).length&&(gy.f=function(e){for(var t=o(e),r=0,n=t.length;r<n;r++)if(t[r]===_y){i(t,r,1);break}return t},dy({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:wy.f}))},fastKey:function(e,t){if(!yy(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!vy(e,_y)){if(!by(e))return"F";if(!t)return"E";Ql(e)}return e[_y].objectID},getWeakData:function(e,t){if(!vy(e,_y)){if(!by(e))return!0;if(!t)return!1;Ql(e)}return e[_y].weakData},onFreeze:function(e){return Ey&&Ty&&by(e)&&!vy(e,_y)&&Ql(e),e}},Ay=(cu[_y]=!0,v),Sy=tn,Cy=Ta,C=R,x=i,Iy=u,Ks=fi,ky=Ko,b=r.exports,Ny=La,xy=Fu,Uf=v,Py=tn,E=y,p=Vf,Zn=au,My=Ko,Dy=to.f,jy=_a,Fy=ep,Ly=xa,Uy=Fu,Vy=La,Hy=uu,Ky=ju,Gy=n,By=r.exports.fastKey,zy=w.set,$y=w.getterFor;function qy(e){var r=Iy(ap[e]);ky(ap,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(np&&!Py(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return np&&!Py(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(np&&!Py(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}$s=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=By(t,!0),key:t,value:r,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),Gy?o.size++:e.size++,"F"!==n&&(o.index[n]=i)),e}function a(e,t){var r,e=u(e),n=By(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){Uy(e,s),zy(e,{type:r,index:jy(null),first:void 0,last:void 0,size:0}),Gy||(e.size=0),null!=t&&Vy(t,e[o],{that:e,AS_ENTRIES:n})}),s=e.prototype,u=$y(r);return Fy(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,Gy?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),Gy?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=Ly(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)}}),Fy(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)}}),Gy&&Dy(s,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",o=$y(t),i=$y(n);Hy(e,t,function(e,t){zy(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),Ky(t)}},rp=-1!==(A="Map").indexOf("Map"),np=-1!==A.indexOf("Weak"),op=rp?"set":"add",ip=x.Map,ap=ip&&ip.prototype,S={},Ks(A,!Uf(sp=ip)||!(np||ap.forEach&&!E(function(){(new ip).entries().next()})))?(sp=I.getConstructor($s,A,rp,op),b.enable()):Ks(A,!0)&&(c=(tp=new sp)[op](np?{}:-0,1)!=tp,l=E(function(){tp.has(1)}),gf=p(function(e){new ip(e)}),O=!np&&E(function(){for(var e=new ip,t=5;t--;)e[op](t,t);return!e.has(-0)}),gf||(((sp=$s(function(e,t){xy(e,ap);r=new ip,e=e,n=sp,Cy&&Ay(e=e.constructor)&&e!==n&&Sy(e=e.prototype)&&e!==n.prototype&&Cy(r,e);var r,n=r;return null!=t&&Ny(t,n[op],{that:n,AS_ENTRIES:rp}),n})).prototype=ap).constructor=sp),(l||O)&&(qy("delete"),qy("has"),rp&&qy("get")),(O||c)&&qy(op),np&&ap.clear&&delete ap.clear),S.Map=sp,C({global:!0,constructor:!0,forced:sp!=ip},S),Zn(sp,A),np||I.setStrong(sp,A,rp);function Xy(e,t){for(var r=0,n=Jy(t),o=new e(n);r<n;)o[r]=t[r++];return o}function Yy(e,t,r,n){for(var o,i,a,s=tv(e),u=ev(s),c=Qy(t,r),f=ov(null),l=nv(u),p=0;p<l;p++)a=u[p],(i=rv(c(a,p,s)))in f?sv(f[i],a):f[i]=[a];if(n&&(o=n(s))!==av)for(i in f)f[i]=iv(o,f[i]);return f}function Wy(e){for(var t,r,n=pv(this),o=lv(n),i=fv(e,1<arguments.length?arguments[1]:void 0),a=new hv,s=dv(o),u=0;u<s;u++)t=i(r=o[u],u,n),vv(a,t)?gv(yv(a,t),r):mv(a,t,[r]);return a}function Zy(e){return Tv[e].prototype}var Jy=_,Qy=xa,ev=F,tv=m,rv=cn,nv=_,ov=_a,iv=Xy,av=Array,sv=u([].push),uv=Yy,Wn=k,cv=(R({target:"Array",proto:!0},{group:function(e){return uv(this,e,1<arguments.length?arguments[1]:void 0)}}),Wn("group"),Yy),An=k,fv=(R({target:"Array",proto:!0,forced:!ql("groupBy")},{groupBy:function(e){return cv(this,e,1<arguments.length?arguments[1]:void 0)}}),An("groupBy"),xa),ui=u,lv=F,pv=m,dv=_,hv=rn("Map"),vf=hv.prototype,yv=ui(vf.get),vv=ui(vf.has),mv=ui(vf.set),gv=ui([].push),On=k,cu=Wy,Ta=(R({target:"Array",proto:!0,name:"groupToMap",forced:!ql("groupByToMap")},{groupByToMap:cu}),On("groupByToMap"),k),wv=(R({target:"Array",proto:!0},{groupToMap:Wy}),Ta("groupToMap"),_),bv=en,fi=k,Ev=Array,Tv=(R({target:"Array",proto:!0},{toReversed:function(){for(var e=bv(this),t=Ev,r=wv(e),n=new t(r),o=0;o<r;o++)n[o]=e[r-o-1];return n}}),fi("toReversed"),i),r=R,_v=on,Rv=en,Ov=Xy,x=k,Av=Array,Sv=u(Zy("Array").sort),Ks=(r({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&_v(e);var t=Rv(this),t=Ov(Av,t);return Sv(t,e)}}),x("toSorted"),R),p=k,Cv=Kl,Iv=_,kv=Bo,Nv=en,xv=Go,Pv=Array,Mv=Math.max,Dv=Math.min,jv=(Ks({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,o,i,a=Nv(this),s=Iv(a),u=kv(e,s),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,s-u):(r=e-2,Dv(Mv(xv(t),0),s-u)),o=Cv(s+r-n),i=Pv(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}}),p("toSpliced"),_),Fv=Go,Lv=RangeError,Uv=en,Vv=Array;R({target:"Array",proto:!0},{with:function(e,t){var r=Uv(this),n=Vv,o=t,i=jv(r),a=(e=Fv(e))<0?i+e:e;if(i<=a||a<0)throw Lv("Incorrect index");for(var s=new n(i),u=0;u<i;u++)s[u]=u===a?o:r[u];return s}});var Hv,E=i,gf=Bn,$s=v,l=T,O=Ko,c=g("asyncIterator"),C=E.AsyncIterator,S=gf.AsyncIteratorPrototype;if(S)Hv=S;else if($s(C))Hv=C.prototype;else if(gf.USE_FUNCTION_CONSTRUCTOR||E.USE_FUNCTION_CONSTRUCTOR)try{M=l(l(l(Function("return async function*(){}()")()))),l(M)===Object.prototype&&(Hv=M)}catch(ag){}$s((Hv=Hv||{})[c])||O(Hv,c,function(){return this});function Kv(e,t,r){var n=e.done;Zv.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function Gv(e){Jv(this,{type:"AsyncFromSyncIterator",iterator:Yv(e),next:e.next})}function Bv(e,t,r,n){try{var o=fm(e,"return");if(o)return cm("Promise").resolve(um(o,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function zv(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,a,s){var e={iterator:e,next:am(sm(e).next)},u=ym("Promise"),c=e.iterator,t=e.next,f=0,l=void 0!==a;return!l&&p||pm(a),new u(function(r,n){var o=function(e){Bv(c,n,e,n)},i=function(){try{if(p&&l)try{hm(f)}catch(e){o(e)}u.resolve(dm(lm(t,c))).then(function(e){try{if(dm(e).done)p?(s.length=f,r(s)):r(!y&&(h||void 0));else{var t=e.value;try{l?u.resolve(p?a(t,f):a(t)).then(function(e){if(d)i();else if(h)e?i():Bv(c,r,!1,n);else if(p)try{s[f++]=e,i()}catch(e){o(e)}else e?Bv(c,r,y||t,n):i()},o):(s[f++]=t,i())}catch(e){o(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};i()})}}function $v(e,t){if(!km||!Im(e)||!km(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 qv(e,t,r){r.get&&Nm(r.get,t,{getter:!0}),r.set&&Nm(r.set,t,{setter:!0}),xm.f(e,t,r)}var Xv=a,Yv=ln,Zn=_a,Wv=an,I=ep,A=w,Wn=Hv,Zv=rn("Promise"),Jv=A.set,Qv=A.getterFor("AsyncFromSyncIterator"),An=(Gv.prototype=I(Zn(Wn),{next:function(){var n=Qv(this);return new Zv(function(e,t){var r=Yv(Xv(n.next,n.iterator));Kv(r,e,t)})},return:function(){var n=Qv(this).iterator;return new Zv(function(e,t){var r=Wv(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=Yv(Xv(r,n));Kv(r,e,t)})}}),Gv),em=a,tm=An,rm=ln,nm=Da,om=an,im=g("asyncIterator"),am=on,sm=ln,um=a,cm=rn,fm=an,lm=a,pm=on,dm=ln,hm=Kl,ym=rn,F={toArray:zv(0),forEach:zv(1),every:zv(2),some:zv(3),find:zv(4)},vm=xa,mm=m,gm=Ys,wm=Da,bm=Ma,Em=an,vf=Zy,Tm=rn,_m=An,Rm=F.toArray,Om=g("asyncIterator"),Am=vf("Array").values,Sm=(R({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(Tm("Promise"))(function(e){var t=mm(i),r=(void 0!==s&&(s=vm(s,u)),Em(t,Om)),n=r?void 0:bm(t)||Am,o=gm(a)?new a:[],r=r?function(e,t){t=arguments.length<2?om(e,im):t;return t?rm(em(t,e)):new tm(nm(e))}(t,r):new _m(wm(t,n));e(Rm(r,s,o))})}}),o.filterReject),ui=k,Cm=(R({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return Sm(this,e,1<arguments.length?arguments[1]:void 0)}}),ui("filterOut"),o.filterReject),cu=k,On=(R({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return Cm(this,e,1<arguments.length?arguments[1]:void 0)}}),cu("filterReject"),R),Im=N,km=Object.isFrozen,Nm=(On({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!$v(e,!0))return!1;var t=e.raw;return t.length===e.length&&$v(t,!1)}}),xn.exports),xm=to,Ta=k,Pm=m,Mm=_,fi=(n&&(qv(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=Pm(this),t=Mm(e);return 0==t?void 0:e[t-1]},set:function(e){var t=Pm(this),r=Mm(t);return t[0==r?0:r-1]=e}}),Ta("lastItem")),k),Dm=m,jm=_,r=(n&&(qv(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=Dm(this),e=jm(e);return 0==e?0:e-1}}),fi("lastIndex")),u),Fm=on,Lm=_,Um=m,Vm=Gl,Hm=rn("Map"),x=Hm.prototype,Km=r(x.forEach),Gm=r(x.has),Bm=r(x.set),zm=r([].push),Ks=k,$m=(R({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=Um(this),o=Lm(n),i=Vm(n,0),a=new Hm,s=null!=e?Fm(e):function(e){return e},u=0;u<o;u++)r=s(t=n[u]),Gm(a,r)||Bm(a,r,t);return Km(a,function(e){zm(i,e)}),i}}),Ks("uniqueBy"),K.log),qm=null,Xm={debug:!1,log_disabled:!1,auto_track_page_view:!1,SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.0.0"};function Ym(e,t){t=V(V({},Xm),t);if(t.log_disabled?K.setLogLevel(0):t.debug&&K.setLogLevel(4),$m.debug("sdkKey : "+e),e||$m.error("SDK Key must not be null"),qm)return $m.debug("use already exists hackleClient"),qm;var o,r=!1,r=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&$m.debug("support sendBeacon API"),new Pr(e,ae,{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)})),e=new jr(e,ae,{fetchUrl:"".concat("https://sdk.hackle.io/api/v2/w/").concat(e).concat("/w"),updateInterval:-1,headers:((e={})["X-HACKLE-SDK-NAME"]=t.SDK_NAME_HEADER,e["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,e)}),r=new Vr(r,100,500),n=new Ir(e,r);return qm=n,t.auto_track_page_view&&(o=function(){return n.trackPageView({user:{id:_r()}})},n.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}o();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{o()}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})),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){Or(),n.close()}),n}var p={createInstance:Ym,getUserId:_r,setUserId:Rr,removeUserId:Or,Logger:K},Wm=(f.Bucket=e.Bucket=W,f.Container=e.Container=he,f.ContainerGroup=e.ContainerGroup=ie,f.CoreVersion=e.CoreVersion=Ae,f.Decision=e.Decision=ue,f.DecisionReason=e.DecisionReason=s,f.EventType=e.EventType=Z,f.Experiment=e.Experiment=fe,f.FeatureFlagDecision=e.FeatureFlagDecision=ce,f.IdentifierType=e.IdentifierType=pe,f.IdentifiersBuilder=e.IdentifiersBuilder=de,f.Logger=e.Logger=K,f.MATCH_OPERATORS=e.MATCH_OPERATORS=ke,f.MATCH_TYPES=e.MATCH_TYPES=Ce,f.MATCH_VALUE_TYPES=e.MATCH_VALUE_TYPES=Ie,f.MetaVersion=e.MetaVersion=Se,f.SEGMENT_TYPES=e.SEGMENT_TYPES=Pe,f.Segment=e.Segment=oe,f.Slot=e.Slot=le,f.TARGET_ACTION_TYPES=e.TARGET_ACTION_TYPES=Ne,f.TARGET_KEY_TYPES=e.TARGET_KEY_TYPES=xe,f.Target=e.Target=J,f.TargetAction=e.TargetAction=re,f.TargetCondition=e.TargetCondition=Q,f.TargetKey=e.TargetKey=ee,f.TargetMatch=e.TargetMatch=te,f.TargetRule=e.TargetRule=ne,f.TargetingType=e.TargetingType=Me,f.Variation=e.Variation=Y,f.Version=e.Version=Oe,j=e.createInstance=Ym,e.default=p,f.getUserId=e.getUserId=_r,f.removeUserId=e.removeUserId=Or,f.setUserId=e.setUserId=Rr,function(){return(Wm=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 Zm(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}Qm.prototype.variation=function(e,t,r){return this.client.variation(e,t,r)},Qm.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t,r)},Qm.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t)},Qm.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t)},Qm.prototype.track=function(e,t){this.client.track(e,t)},Qm.prototype.trackPageView=function(e){this.client.trackPageView(e)},Qm.prototype.onReady=function(e,t){this.client.onReady(e,t)},Qm.prototype.onInitialized=function(e){return this.client.onInitialized(e)};var Jm=Qm;function Qm(e,t){this.client=j(e,Wm(Wm({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.0.0"}))}var P={exports:{}},i={},eg=Object.getOwnPropertySymbols,tg=Object.prototype.hasOwnProperty,rg=Object.prototype.propertyIsEnumerable;var Bn=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]))tg.call(r,i)&&(n[i]=r[i]);if(eg)for(var a=eg(r),s=0;s<a.length;s++)rg.call(r,a[s])&&(n[a[s]]=r[a[s]])}return n},ng=Bn,T="function"==typeof Symbol&&Symbol.for,og=T?Symbol.for("react.element"):60103,ig=T?Symbol.for("react.portal"):60106,S=T?Symbol.for("react.fragment"):60107,ag=T?Symbol.for("react.strict_mode"):60108,C=T?Symbol.for("react.profiler"):60114,sg=T?Symbol.for("react.provider"):60109,ug=T?Symbol.for("react.context"):60110,cg=T?Symbol.for("react.forward_ref"):60112,gf=T?Symbol.for("react.suspense"):60113,fg=T?Symbol.for("react.memo"):60115,lg=T?Symbol.for("react.lazy"):60116,pg="function"==typeof Symbol&&Symbol.iterator;function dg(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 hg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yg={};function vg(e,t,r){this.props=e,this.context=t,this.refs=yg,this.updater=r||hg}function mg(){}function gg(e,t,r){this.props=e,this.context=t,this.refs=yg,this.updater=r||hg}vg.prototype.isReactComponent={},vg.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(dg(85));this.updater.enqueueSetState(this,e,t,"setState")},vg.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},mg.prototype=vg.prototype;var E=gg.prototype=new mg,wg=(E.constructor=gg,ng(E,vg.prototype),E.isPureReactComponent=!0,{current:null}),bg=Object.prototype.hasOwnProperty,Eg={key:!0,ref:!0,__self:!0,__source:!0};function Tg(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)bg.call(t,n)&&!Eg.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:og,type:e,key:i,ref:a,props:o,_owner:wg.current}}function _g(e){return"object"==typeof e&&null!==e&&e.$$typeof===og}var Rg=/\/+/g,Og=[];function Ag(e,t,r,n){var o;return Og.length?((o=Og.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 Sg(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,Og.length<10&&Og.push(e)}function Cg(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 og:case ig:i=!0}}if(i)return n(o,t,""===r?"."+Ig(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+Ig(s=t[a],a);i+=e(s,u,n,o)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=pg&&t[pg]||t["@@iterator"])?u:null))for(t=u.call(t),a=0;!(s=t.next()).done;)i+=e(s=s.value,u=r+Ig(s,a++),n,o);else if("object"===s)throw n=""+t,Error(dg(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return i}(e,"",t,r)}function Ig(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 kg(e,t){e.func.call(e.context,t,e.count++)}function Ng(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?xg(e,n,r,function(e){return e}):null!=e&&(_g(e)&&(t=o+(!(o=e).key||t&&t.key===e.key?"":(""+e.key).replace(Rg,"$&/")+"/")+r,e={$$typeof:og,type:o.type,key:t,ref:o.ref,props:o.props,_owner:o._owner}),n.push(e))}function xg(e,t,r,n,o){var i="";Cg(e,Ng,t=Ag(t,i=null!=r?(""+r).replace(Rg,"$&/")+"/":i,n,o)),Sg(t)}var Pg={current:null};function Mg(){var e=Pg.current;if(null===e)throw Error(dg(321));return e}var Dg,jg,Fg,l={ReactCurrentDispatcher:Pg,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:wg,IsSomeRendererActing:{current:!1},assign:ng},M=(i.Children={map:function(e,t,r){if(null==e)return e;var n=[];return xg(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;Cg(e,kg,t=Ag(null,null,t,r)),Sg(t)},count:function(e){return Cg(e,function(){return null},null)},toArray:function(e){var t=[];return xg(e,t,null,function(e){return e}),t},only:function(e){if(_g(e))return e;throw Error(dg(143))}},i.Component=vg,i.Fragment=S,i.Profiler=C,i.PureComponent=gg,i.StrictMode=ag,i.Suspense=gf,i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=l,i.cloneElement=function(e,t,r){if(null==e)throw Error(dg(267,e));var n=ng({},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=wg.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)bg.call(t,s)&&!Eg.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:og,type:e.type,key:o,ref:i,props:n,_owner:a}},i.createContext=function(e,t){return(e={$$typeof:ug,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:sg,_context:e},e.Consumer=e},i.createElement=Tg,i.createFactory=function(e){var t=Tg.bind(null,e);return t.type=e,t},i.createRef=function(){return{current:null}},i.forwardRef=function(e){return{$$typeof:cg,render:e}},i.isValidElement=_g,i.lazy=function(e){return{$$typeof:lg,_ctor:e,_status:-1,_result:null}},i.memo=function(e,t){return{$$typeof:fg,type:e,compare:void 0===t?null:t}},i.useCallback=function(e,t){return Mg().useCallback(e,t)},i.useContext=function(e,t){return Mg().useContext(e,t)},i.useDebugValue=function(){},i.useEffect=function(e,t){return Mg().useEffect(e,t)},i.useImperativeHandle=function(e,t,r){return Mg().useImperativeHandle(e,t,r)},i.useLayoutEffect=function(e,t){return Mg().useLayoutEffect(e,t)},i.useMemo=function(e,t){return Mg().useMemo(e,t)},i.useReducer=function(e,t,r){return Mg().useReducer(e,t,r)},i.useRef=function(e){return Mg().useRef(e)},i.useState=function(e){return Mg().useState(e)},i.version="16.14.0",{}),$s=Function.call.bind(Object.prototype.hasOwnProperty),Lg=function(){};function Ug(e,t,r,n,o){if("production"!==production)for(var i in e)if(Fg(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,Dg)}catch(e){a=e}!a||a instanceof Error||Lg((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 jg)&&(jg[a.message]=!0,i=o?o():"",Lg("Failed "+r+" type: "+a.message+(null!=i?i:"")))}}if("production"!==production&&(Dg="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",jg={},Fg=$s,Lg=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),Ug.resetWarningCache=function(){"production"!==production&&(jg={})},"production"!==production){var Vg=Bn,Hg=Ug,O="function"==typeof Symbol&&Symbol.for,Kg=O?Symbol.for("react.element"):60103,Gg=O?Symbol.for("react.portal"):60106,Bg=O?Symbol.for("react.fragment"):60107,zg=O?Symbol.for("react.strict_mode"):60108,$g=O?Symbol.for("react.profiler"):60114,qg=O?Symbol.for("react.provider"):60109,Xg=O?Symbol.for("react.context"):60110,Yg=O?Symbol.for("react.concurrent_mode"):60111,Wg=O?Symbol.for("react.forward_ref"):60112,Zg=O?Symbol.for("react.suspense"):60113,Jg=O?Symbol.for("react.suspense_list"):60120,Qg=O?Symbol.for("react.memo"):60115,e0=O?Symbol.for("react.lazy"):60116,t0=O?Symbol.for("react.block"):60121,r0=O?Symbol.for("react.fundamental"):60117,n0=O?Symbol.for("react.responder"):60118,o0=O?Symbol.for("react.scope"):60119,i0="function"==typeof Symbol&&Symbol.iterator,a0="@@iterator";function s0(e){if(null===e||"object"!=typeof e)return null;e=i0&&e[i0]||e[a0];return"function"==typeof e?e:null}var u0={current:null},c0={current:null},f0=/^(.*)[\\\/]/,l0=1;function p0(e){if(null==e)return null;if("number"==typeof e.tag&&D("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 Bg:return"Fragment";case Gg:return"Portal";case $g:return"Profiler";case zg:return"StrictMode";case Zg:return"Suspense";case Jg:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Xg:return"Context.Consumer";case qg:return"Context.Provider";case Wg:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case Qg:return p0(e.type);case t0:return p0(e.render);case e0:r=(t=e)._status===l0?t._result:null;if(r)return p0(r)}var t,r;return null}var d0={},h0=null;function y0(e){h0=e}d0.getCurrentStack=null,d0.getStackAddendum=function(){var e,t,r,n,o,i="",a=(h0&&(e=p0(h0.type),r=h0._owner,i+=(e=e,t=h0._source,r=r&&p0(r.type),o="",t?(n=(a=t.fileName).replace(f0,""),o=" (at "+(n=/^index\./.test(n)&&(a=a.match(f0))&&(a=a[1])?a.replace(f0,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(o=" (created by "+r+")"),"\n in "+(e||"Unknown")+o)),d0.getCurrentStack);return a&&(i+=a()||""),i};var v0={ReactCurrentDispatcher:u0,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:c0,IsSomeRendererActing:{current:!1},assign:Vg};function m0(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];g0("warn",e,r)}function D(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];g0("error",e,r)}function g0(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=v0.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){}}Vg(v0,{ReactDebugCurrentFrame:d0,ReactComponentTreeHook:{}});var w0={};function b0(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;w0[r]||(D("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),w0[r]=!0)}var E0={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){b0(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){b0(e,"replaceState")},enqueueSetState:function(e,t,r,n){b0(e,"setState")}},T0={};function _0(e,t,r){this.props=e,this.context=t,this.refs=T0,this.updater=r||E0}Object.freeze(T0),_0.prototype.isReactComponent={},_0.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")},_0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var R0,O0={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(R0 in O0)O0.hasOwnProperty(R0)&&!function(e,t){Object.defineProperty(_0.prototype,e,{get:function(){m0("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(R0,O0[R0]);function A0(){}function S0(e,t,r){this.props=e,this.context=t,this.refs=T0,this.updater=r||E0}A0.prototype=_0.prototype,(O=S0.prototype=new A0).constructor=S0,Vg(O,_0.prototype),O.isPureReactComponent=!0;var C0,I0,k0=Object.prototype.hasOwnProperty,N0={key:!0,ref:!0,__self:!0,__source:!0};function x0(e){if(k0.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function P0(e){if(k0.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var M0={},D0=function(e,t,r,n,o,i,a){e={$$typeof:Kg,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 j0(e,t,r){var n,o={},i=null,a=null,s=null,u=null;if(null!=t)for(n in x0(t)&&(a=t.ref,"string"==typeof(c=t).ref&&c0.current&&c.__self&&c0.current.stateNode!==c.__self&&(l=p0(c0.current.type),M0[l]||(D('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',p0(c0.current.type),c.ref),M0[l]=!0))),P0(t)&&(i=""+t.key),s=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)k0.call(t,n)&&!N0.hasOwnProperty(n)&&(o[n]=t[n]);var c,f,l,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(){I0||(I0=!0,D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",f))}function g(){C0||(C0=!0,D("%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&&(l=o,p=c,g.isReactWarning=!0,Object.defineProperty(l,"key",{get:g,configurable:!0})),a&&(r=o,f=c,m.isReactWarning=!0,Object.defineProperty(r,"ref",{get:m,configurable:!0}))),D0(e,i,a,s,u,c0.current,o)}function F0(e){return"object"==typeof e&&null!==e&&e.$$typeof===Kg}var L0=".",U0=":",V0=!1,H0=/\/+/g;function K0(e){return(""+e).replace(H0,"$&/")}var G0=10,B0=[];function z0(e,t,r,n){var o;return B0.length?((o=B0.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 $0(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,B0.length<G0&&B0.push(e)}function q0(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 Kg:case Gg:s=!0}}if(s)return n(o,t,""===r?L0+X0(t,0):r),1;var u=0,c=""===r?L0:r+U0;if(Array.isArray(t))for(var f=0;f<t.length;f++)u+=e(i=t[f],c+X0(i,f),n,o);else if("function"==typeof(r=s0(t))){r===t.entries&&(V0||m0("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."),V0=!0);for(var l,p=r.call(t),d=0;!(l=p.next()).done;)u+=e(i=l.value,c+X0(i,d++),n,o)}else if("object"==a)throw r="",r=" If you meant to render a collection of children, use an array instead."+d0.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 X0(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 Y0(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function W0(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)?Z0(i,n,r,function(e){return e}):null!=i&&(F0(i)&&(e=o+(!(a=i).key||t&&t.key===i.key?"":K0(i.key)+"/")+r,i=D0(a.type,e,a.ref,a._self,a._source,a._owner,a.props)),n.push(i))}function Z0(e,t,r,n,o){var i="",t=z0(t,i=null!=r?K0(r)+"/":i,n,o);q0(e,W0,t),$0(t)}function J0(e){return"string"==typeof e||"function"==typeof e||e===Bg||e===Yg||e===$g||e===zg||e===Zg||e===Jg||"object"==typeof e&&null!==e&&(e.$$typeof===e0||e.$$typeof===Qg||e.$$typeof===qg||e.$$typeof===Xg||e.$$typeof===Wg||e.$$typeof===r0||e.$$typeof===n0||e.$$typeof===o0||e.$$typeof===t0)}function Q0(){var e=u0.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 ew(){if(c0.current){var e=p0(c0.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var tw=!1,rw={};function nw(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=ew())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),rw[t=r]||(rw[t]=!0,r="",e&&e._owner&&e._owner!==c0.current&&(r=" It was passed a child from "+p0(e._owner.type)+"."),y0(e),D('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),y0(null)))}function ow(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];F0(n)&&nw(n,t)}else if(F0(e))e._store&&(e._store.validated=!0);else if(e){var o=s0(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)F0(i.value)&&nw(i.value,t)}}function iw(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=p0(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==Wg&&t.$$typeof!==Qg)return;r=t.propTypes}r?(y0(e),Hg(r,e.props,"prop",n,d0.getStackAddendum),y0(null)):void 0===t.PropTypes||tw||(tw=!0,D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function aw(e,t,r){var n,o=J0(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+".":"")||ew(),null===e?a="null":Array.isArray(e)?a="array":void 0!==e&&e.$$typeof===Kg?(a="<"+(p0(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,D("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)),j0.apply(this,arguments));if(null==t)return t;if(o)for(var i=2;i<arguments.length;i++)ow(arguments[i],e);if(e===Bg){var a=t;y0(a);for(var s=Object.keys(a.props),u=0;u<s.length;u++){var c=s[u];if("children"!==c&&"key"!==c){D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==a.ref&&D("Invalid attribute `ref` supplied to `React.Fragment`."),y0(null)}else iw(t);return t}var sw=!1;try{var uw=Object.freeze({}),cw=new Map([[uw,null]]),fw=new Set([uw]);cw.set(0,0),fw.add(0)}catch(e){}function lw(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=Vg({},e.props),a=e.key,s=e.ref,u=e._self,c=e._source,f=e._owner;if(null!=t)for(n in x0(t)&&(s=t.ref,f=c0.current),P0(t)&&(a=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)k0.call(t,n)&&!N0.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?i[n]=o[n]:i[n]=t[n]);var l=arguments.length-2;if(1==l)i.children=r;else if(1<l){for(var p=Array(l),d=0;d<l;d++)p[d]=arguments[d+2];i.children=p}return D0(e.type,a,s,u,c,f,i)}.apply(this,arguments),o=2;o<arguments.length;o++)ow(arguments[o],n.type);return iw(n),n}function pw(e){var t=aw.bind(null,e);return t.type=e,sw||(sw=!0,m0("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 m0("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}O=aw,M.Children={map:function(e,t,r){if(null==e)return e;var n=[];return Z0(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=z0(null,null,t,r),q0(e,Y0,t),$0(t)},count:function(e){return q0(e,function(){return null},null)},toArray:function(e){var t=[];return Z0(e,t,null,function(e){return e}),t},only:function(e){if(F0(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},M.Component=_0,M.Fragment=Bg,M.Profiler=$g,M.PureComponent=S0,M.StrictMode=zg,M.Suspense=Zg,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=v0,M.cloneElement=lw,M.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&D("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:Xg,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:qg,_context:r}),o=!1,t={$$typeof:Xg,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return o||(o=!0,D("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,D("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},M.createElement=O,M.createFactory=pw,M.createRef=function(){var e={current:null};return Object.seal(e),e},M.forwardRef=function(e){return null!=e&&e.$$typeof===Qg?D("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?D("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&D("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||D("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:Wg,render:e}},M.isValidElement=F0,M.lazy=function(e){var t,r,n={$$typeof:e0,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){D("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){D("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},M.memo=function(e,t){return J0(e)||D("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:Qg,type:e,compare:void 0===t?null:t}},M.useCallback=function(e,t){return Q0().useCallback(e,t)},M.useContext=function(e,t){var r,n=Q0();return void 0!==t&&D("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?D("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&&D("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},M.useDebugValue=function(e,t){return Q0().useDebugValue(e,t)},M.useEffect=function(e,t){return Q0().useEffect(e,t)},M.useImperativeHandle=function(e,t,r){return Q0().useImperativeHandle(e,t,r)},M.useLayoutEffect=function(e,t){return Q0().useLayoutEffect(e,t)},M.useMemo=function(e,t){return Q0().useMemo(e,t)},M.useReducer=function(e,t,r){return Q0().useReducer(e,t,r)},M.useRef=function(e){return Q0().useRef(e)},M.useState=function(e){return Q0().useState(e)},M.version="16.14.0"}"production"===production?P.exports=i:P.exports=M;var dw=P.exports,hw=P.exports.createContext({hackle:void 0,user:void 0}),c=hw.Consumer,yw=hw.Provider;var vw=f.Logger.log;function mw(e,t){void 0===t&&(t="A");var r=P.exports.useContext(hw),n=r.hackle,o=r.user,i=P.exports.useCallback(function(){return(null==n?void 0:n.variation(e,o))||t},[t,e,o,n]),r=Zm(P.exports.useState(function(){return n?i():("undefined"!=typeof window&&vw.error("HackleClient is not existed"),t)}),2),a=r[0],r=r[1],s={key:e,user:o},u=Zm(P.exports.useState(s),2),c=u[0],u=u[1];return ww(c,s)||(u(s),r(i())),a}function gw(e){var t=P.exports.useContext(hw),r=t.hackle,n=t.user,o=P.exports.useCallback(function(){return(null==r?void 0:r.isFeatureOn(e,n))||!1},[e,n,r]),t=Zm(P.exports.useState(function(){return r?o():("undefined"!=typeof window&&vw.error("HackleClient is not existed"),!1)}),2),i=t[0],t=t[1],a={key:e,user:n},s=Zm(P.exports.useState(a),2),u=s[0],s=s[1];return ww(u,a)||(s(a),t(o())),i}function ww(e,t){var r,n,o;return 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=bw(e),o=bw(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 bw(e){return"object"==typeof e&&null!==e?e:{}}function Ew(e){var t,r=e.experimentKey,e=e.children,n=mw(r);return e&&"function"==typeof e?e(n):(P.exports.Children.forEach(e,function(e){P.exports.isValidElement(e)&&(e.props.variation?n===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?P.exports.cloneElement(t,{variation:n}):null)}function Tw(e){return e.variation,e=e.children,P.exports.createElement(P.exports.Fragment,null,e)}function _w(e){var t=gw(e.featureKey);return dw.createElement(dw.Fragment,null,e.children(t))}f.HackleContext=hw,f.HackleContextConsumer=c,f.HackleContextProvider=yw,f.HackleExperiment=Ew,f.HackleFeature=_w,f.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(o=e.timeout)?3e3:o,o=e.children,e={hackle:t,user:r},i=Zm(P.exports.useState(!1),2),a=i[0],s=i[1],e=(i=Zm(P.exports.useState(e),2))[0],u=i[1];return P.exports.useEffect(function(){u(function(e){return Wm(Wm({},e),{user:r})})},[r]),P.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){s(!0)},function(){s(!0)})},[t]),a?dw.createElement(yw,{value:e},o):null},f.HackleVariation=Tw,f.createInstance=function(e,t){return new Jm(e,t)},f.useFeature=gw,f.useFeatureFlagDetail=function(e){var t=(i=P.exports.useContext(hw)).hackle,r=i.user,n=P.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e,r))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION)},[e,r,t]),o=(i=Zm(P.exports.useState(function(){return t?n():("undefined"!=typeof window&&vw.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2))[0],i=i[1],a={key:e,user:r},s=(u=Zm(P.exports.useState(a),2))[0],u=u[1];return ww(s,a)||(u(a),i(n())),o},f.useTrack=function(){var e=P.exports.useContext(hw),t=e.hackle,r=e.user;return t?function(e){return null==t?void 0:t.track(e,r)}:("undefined"!=typeof window&&vw.error("HackleClient is not existed"),function(){})},f.useVariation=mw,f.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(a=P.exports.useContext(hw)).hackle,n=a.user,o=P.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e,n))||f.Decision.of(t,f.DecisionReason.EXCEPTION)},[t,e,n,r]),i=(a=Zm(P.exports.useState(function(){return r?o():("undefined"!=typeof window&&vw.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2))[0],a=a[1],s={key:e,user:n},u=(c=Zm(P.exports.useState(s),2))[0],c=c[1];return ww(u,s)||(c(s),a(o())),i},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 j,F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e={},L=(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.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.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(e,"__esModule",{value:!0}),function(e,t){return(L=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 U(e,t){function r(){this.constructor=e}L(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var V=function(){return(V=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 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}}}}q.setLogLevel=function(e){this.logLevel=e=void 0===e?3:e},q._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)G.log(e,r,t.message,t);else try{G.log(e,r,t)}catch(e){}},q.logLevel=3,q.log={error:function(e){1<=q.logLevel&&q._log("ERROR",e)},warn:function(e){2<=q.logLevel&&q._log("WARN",e)},info:function(e){3<=q.logLevel&&q._log("INFO",e)},debug:function(e){4<=q.logLevel&&q._log("DEBUG",e)}};var K=q,G=($.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},$),B=[0,8,16,32,64,128,256,512],z=K.log;function $(){}function q(){}function X(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function Y(e,t,r){this.id=e,this.key=t,this.isDropped=r}function W(e,t,r){this.seed=e,this.slotSize=t,this.slots=r}function Z(e,t){this.id=e,this.key=t}function J(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}var ae={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&&200<=r.status&&r.status<400&&e({statusCode:r.status,body:r.responseText})},r.setRequestHeader("content-type","application/json"),r.withCredentials=!0,X(r,o),r.send()})}},postRequest:function(e,t,r,n){var t=JSON.stringify(t),o=new XMLHttpRequest;o.open("POST",e),o.onreadystatechange=function(){o.readyState===o.DONE&&200<=o.status&&o.status<400&&n(o)},o.setRequestHeader("content-type","application/json"),o.withCredentials=!0,X(o,r),o.send(t)},sendBeacon:function(e,t,r,n){var o=!1;(o="undefined"!=typeof window?window&&window.navigator&&window.navigator.sendBeacon&&!0:o)?(o=JSON.stringify(t),(t=new URLSearchParams).append("sdkName",r["X-HACKLE-SDK-NAME"]),t.append("sdkVersion",r["X-HACKLE-SDK-VERSION"]),t.append("data",o),window.navigator.sendBeacon(e,t)):z.error("Does not support sendBeacon"),n()}},se=K.log,ue=(Ee.of=function(e,t){return new Ee(e,t)},Ee),ce=(be.on=function(e){return new be(!0,e)},be.off=function(e){return new be(!1,e)},be),s=(t.SDK_NOT_READY="SDK_NOT_READY",t.EXCEPTION="EXCEPTION",t.INVALID_INPUT="INVALID_INPUT",t.EXPERIMENT_NOT_FOUND="EXPERIMENT_NOT_FOUND",t.EXPERIMENT_DRAFT="EXPERIMENT_DRAFT",t.EXPERIMENT_PAUSED="EXPERIMENT_PAUSED",t.EXPERIMENT_COMPLETED="EXPERIMENT_COMPLETED",t.OVERRIDDEN="OVERRIDDEN",t.TRAFFIC_NOT_ALLOCATED="TRAFFIC_NOT_ALLOCATED",t.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT="NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT",t.IDENTIFIER_NOT_FOUND="IDENTIFIER_NOT_FOUND",t.VARIATION_DROPPED="VARIATION_DROPPED",t.TRAFFIC_ALLOCATED="TRAFFIC_ALLOCATED",t.NOT_IN_EXPERIMENT_TARGET="NOT_IN_EXPERIMENT_TARGET",t.FEATURE_FLAG_NOT_FOUND="FEATURE_FLAG_NOT_FOUND",t.FEATURE_FLAG_INACTIVE="FEATURE_FLAG_INACTIVE",t.INDIVIDUAL_TARGET_MATCH="INDIVIDUAL_TARGET_MATCH",t.TARGET_RULE_MATCH="TARGET_RULE_MATCH",t.DEFAULT_RULE="DEFAULT_RULE",t),fe=(we.prototype._winnerVariationOrNull=function(){if(this._winnerVariationId)return this._getVariationByIdOrNull(this._winnerVariationId)},we.prototype._getVariationByIdOrNull=function(t){return this.variations.find(function(e){return e.id===t})},we.prototype._getVariationByKeyOrNull=function(t){return this.variations.find(function(e){return e.key===t})},we),le=(ge.prototype.contains=function(e){return this.startInclusive<=e&&e<this.endExclusive},ge),pe=(me.ID="$id",me.USER="$userId",me.DEVICE="$deviceId",me),de=(ve.prototype.addIdentifiers=function(e){for(var t in e)this.add(t,e[t]);return this},ve.prototype.add=function(e,t){return t&&this._isValid(e,t)?this.identifiers[e]=t:se.warn("Invalid user identifier [type=".concat(e,", value=").concat(t,"]")),this},ve.prototype._isValid=function(e,t){return!(!e||"string"!=typeof e||128<e.length||!t||"string"!=typeof t||512<t.length)},ve.prototype.build=function(){return this.identifiers},ve),he=(ye.prototype.getGroupOrNull=function(t){return this.groups.find(function(e){return e.id===t})},ye);function ye(e,t,r){this.id=e,this.bucketId=t,this.groups=r}function ve(){this.identifiers={}}function me(){}function ge(e,t,r){this.startInclusive=e,this.endExclusive=t,this.variationId=r}function we(e,t,r,n,o,i,a,s,u,c,f,l,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=f,this.defaultRule=l,this.containerId=p,this._winnerVariationId=d}function t(){}function be(e,t){this.isOn=e,this.reason=t}function Ee(e,t){this.variation=e,this.reason=t}lr.tryParse=function(e){var t,r,n,o,e=lr.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 lr(new Ae(parseInt(t,10),parseInt(r,10),parseInt(n,10)),Se.parse(o),Se.parse(e))},lr.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},lr.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},lr.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},lr.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},lr.prototype.isLessThan=function(e){return this.compareTo(e)<0},lr.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},lr.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 Te,_e,Re,Oe=lr,Ae=(fr.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},fr),Se=(cr.parse=function(e){return e?new cr(e.split(".")):cr.EMPTY},cr.prototype.isEmpty=function(){return 0===this.identifiers.length},cr.prototype.isNotEmpty=function(){return!this.isEmpty()},cr.prototype.compareTo=function(e){return this.isEmpty()&&e.isEmpty()?0:this.isEmpty()&&e.isNotEmpty()?1:this.isNotEmpty()&&e.isEmpty()?-1:this.compareIdentifiers(e)},cr.prototype.compareIdentifiers=function(e){for(var t=Math.min(this.identifiers.length,e.identifiers.length),r=0;r<t;r++){var n=cr.compareIdentifiers(this.identifiers[r],e.identifiers[r]);if(0!==n)return n}return this.identifiers.length-e.identifiers.length},cr.compareIdentifiers=function(e,t){return cr.numericIdentifierRegExp.test(e)&&cr.numericIdentifierRegExp.test(t)?+e-+t:e===t?0:e<t?-1:1},cr.EMPTY=new cr([]),cr.numericIdentifierRegExp=/^(0|[1-9]\d*)$/,cr),Ce=["MATCH","NOT_MATCH"],Ie=["STRING","NUMBER","BOOLEAN","VERSION"],ke=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],Ne=["VARIATION","BUCKET"],xe=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT"],Pe=["USER_ID","USER_PROPERTY"],Me=(ur.prototype.supports=function(e){return this.supportedKeyTypes.includes(e)},ur.IDENTIFIER=new ur("SEGMENT"),ur.PROPERTY=new ur("SEGMENT","USER_PROPERTY","HACKLE_PROPERTY"),ur.SEGMENT=new ur("USER_ID","USER_PROPERTY","HACKLE_PROPERTY"),ur),De=(sr.validate=function(e){if(e){if("object"!=typeof e)return!1;for(var t in e)if(!this.validProperty(t,e[t]))return!1}return!0},sr.filteredProperties=function(r){var n=this;return Object.keys(r).filter(function(e){return n.validProperty(e,r[e])}).reduce(function(e,t){return V(V({},e),((e={})[t]=n.filteredPropertiesValue(r[t]),e))},{})},sr.filteredPropertiesValue=function(e){return"string"==typeof e&&1024<e.length?e.slice(0,1024):e},sr.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))},sr),je=(ar.exposure=function(e,t,r){return new Fe((new Date).getTime(),t,e,r.variationId,r.variationKey,r.reason)},ar.track=function(e,t,r){return new Le((new Date).getTime(),r,e,t)},ar.isExposure=function(e){return void 0!==e.experiment},ar.isTrack=function(e){return void 0!==e.eventType},ar),Fe=(U(ir,Re=je),ir.prototype.toDto=function(){return{timestamp:this.timestamp,userId:this.user.identifiers[pe.ID],identifiers:this.user.identifiers,userProperties:De.filteredProperties(this.user.properties||{}),hackleProperties:De.filteredProperties(this.user.hackleProperties||{}),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()}},ir),Le=(U(or,_e=je),or.prototype.toDto=function(){return{timestamp:this.timestamp,userId:this.user.identifiers[pe.ID],identifiers:this.user.identifiers,userProperties:De.filteredProperties(this.user.properties||{}),hackleProperties:De.filteredProperties(this.user.hackleProperties||{}),eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:De.filteredProperties(this.event.properties||{})}},or),Ue=(nr.withVariation=function(e,t){return new nr(e.id,e.key,t)},nr.withKey=function(e,t){return new nr(void 0,e,t)},nr.of=function(e,t,r){e=e._getVariationByKeyOrNull(t);return e?nr.withVariation(e,r):nr.withKey(t,r)},nr),Ve=(rr.prototype.evaluate=function(e,t,r,n){return this.evaluationFlowFactory.getFlow(t.type).evaluate(e,t,r,n)},rr),He=(tr.prototype.matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n._matches(e,t,r)})},tr.prototype._matches=function(e,t,r){return this.conditionMatcherFactory.getMatcher(e.key.type).matches(e,t,r)},tr),r=(er.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)},er.prototype._matches=function(e,t){switch(e){case"MATCH":return t;case"NOT_MATCH":return!t}},er),n=(Qt.prototype.booleanMatches=function(e,t){return e===t},Qt.prototype.numberMatches=function(e,t){return e===t},Qt.prototype.stringMatches=function(e,t){return e===t},Qt.prototype.versionMatches=function(e,t){return e.isEqualTo(t)},Qt),o=(Jt.prototype.booleanMatches=function(e,t){return!1},Jt.prototype.numberMatches=function(e,t){return!1},Jt.prototype.stringMatches=function(e,t){return e.includes(t)},Jt.prototype.versionMatches=function(e,t){return!1},Jt),i=(Zt.prototype.booleanMatches=function(e,t){return!1},Zt.prototype.numberMatches=function(e,t){return!1},Zt.prototype.stringMatches=function(e,t){return e.startsWith(t)},Zt.prototype.versionMatches=function(e,t){return!1},Zt),a=(Wt.prototype.booleanMatches=function(e,t){return!1},Wt.prototype.numberMatches=function(e,t){return!1},Wt.prototype.stringMatches=function(e,t){return e.endsWith(t)},Wt.prototype.versionMatches=function(e,t){return!1},Wt),u=(Yt.prototype.booleanMatches=function(e,t){return!1},Yt.prototype.numberMatches=function(e,t){return t<e},Yt.prototype.stringMatches=function(e,t){return!1},Yt.prototype.versionMatches=function(e,t){return e.isGreaterThan(t)},Yt),c=(Xt.prototype.booleanMatches=function(e,t){return!1},Xt.prototype.numberMatches=function(e,t){return t<=e},Xt.prototype.stringMatches=function(e,t){return!1},Xt.prototype.versionMatches=function(e,t){return e.isGreaterThanOrEqualTo(t)},Xt),l=(qt.prototype.booleanMatches=function(e,t){return!1},qt.prototype.numberMatches=function(e,t){return e<t},qt.prototype.stringMatches=function(e,t){return!1},qt.prototype.versionMatches=function(e,t){return e.isLessThan(t)},qt),p=($t.prototype.booleanMatches=function(e,t){return!1},$t.prototype.numberMatches=function(e,t){return e<=t},$t.prototype.stringMatches=function(e,t){return!1},$t.prototype.versionMatches=function(e,t){return e.isLessThanOrEqualTo(t)},$t),n=(zt.prototype.getMatcher=function(e){switch(e){case"IN":return zt.IN_MATCHER;case"CONTAINS":return zt.CONTAINS_MATCHER;case"STARTS_WITH":return zt.STARTS_WITH_MATCHER;case"ENDS_WITH":return zt.ENDS_WITH_MATCHER;case"GT":return zt.GT_MATCHER;case"GTE":return zt.GTE_MATCHER;case"LT":return zt.LT_MATCHER;case"LTE":return zt.LTE_MATCHER}},zt.IN_MATCHER=new n,zt.CONTAINS_MATCHER=new o,zt.STARTS_WITH_MATCHER=new i,zt.ENDS_WITH_MATCHER=new a,zt.GT_MATCHER=new u,zt.GTE_MATCHER=new c,zt.LT_MATCHER=new l,zt.LTE_MATCHER=new p,zt),o=(Bt.prototype.matches=function(e,t,r){return"string"==typeof t&&"string"==typeof r&&e.stringMatches(t,r)},Bt),i=(Gt.prototype.matches=function(e,t,r){return"number"==typeof t&&"number"==typeof r&&e.numberMatches(t,r)},Gt),a=(Kt.prototype.matches=function(e,t,r){return"boolean"==typeof t&&"boolean"==typeof r&&e.booleanMatches(t,r)},Kt),u=(Ht.prototype.matches=function(e,t,r){t=Oe.tryParse(t),r=Oe.tryParse(r);return!(!t||!r)&&e.versionMatches(t,r)},Ht),c=(Vt.prototype.getMatcher=function(e){switch(e){case"STRING":return Vt.STRING_MATCHER;case"NUMBER":return Vt.NUMBER_MATCHER;case"BOOLEAN":return Vt.BOOLEAN_MATCHER;case"VERSION":return Vt.VERSION_MATCHER}},Vt.STRING_MATCHER=new o,Vt.NUMBER_MATCHER=new i,Vt.BOOLEAN_MATCHER=new a,Vt.VERSION_MATCHER=new u,Vt),Ke=(Ut.isNullOrUndefined=function(e){return null==e},Ut),l=(Lt.prototype.matches=function(e,t,r){r=this.userValueResolver.resolveOrNull(r,e.key);return!Ke.isNullOrUndefined(r)&&this.valueOperatorMatcher.matches(r,e.match)},Lt),p=(Ft.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,"]"))}},Ft),o=(jt.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}},jt.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,"]"))},jt),i=(Dt.prototype.matches=function(e,t,r){var n=this;return e.targets.some(function(e){return n._matches(e,t,r)})},Dt.prototype._matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(e,t,r)})},Dt),Ge=(Mt.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return Mt.USER_CONDITION_MATCHER;case"SEGMENT":return Mt.SEGMENT_CONDITION_MATCHER}},Mt.USER_CONDITION_MATCHER=new l(new p,new r(new c,new n)),Mt.SEGMENT_CONDITION_MATCHER=new o(new i(Mt.USER_CONDITION_MATCHER)),Mt),Be=(Pt.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)}},Pt.prototype._resolveVariation=function(e,t){return t._getVariationByIdOrNull(e.variationId)},Pt.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)}},Pt),ze={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}},$e=(xt.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},xt.prototype.calculateSlotNumber=function(e,t,r){r=ze.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},xt),qe=(Nt.prototype.evaluate=function(e,t,r,n){return this.flowEvaluator&&this.nextFlow?this.flowEvaluator.evaluate(e,t,r,n,this.nextFlow):Ue.of(t,n,s.TRAFFIC_NOT_ALLOCATED)},Nt.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new Nt,n=0,o=e.reverse();n<o.length;n++)r=new Nt(o[n],r);return r},Nt),Xe=(kt.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 Ue.withVariation(i,s.OVERRIDDEN);case"FEATURE_FLAG":return Ue.withVariation(i,s.INDIVIDUAL_TARGET_MATCH)}},kt),Ye=(It.prototype.evaluate=function(e,t,r,n,o){return"DRAFT"===t.status?Ue.of(t,n,s.EXPERIMENT_DRAFT):o.evaluate(e,t,r,n)},It),We=(Ct.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 Ue.of(t,n,s.EXPERIMENT_PAUSED);case"FEATURE_FLAG":return Ue.of(t,n,s.FEATURE_FLAG_INACTIVE)}},Ct),Ze=(St.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 Ue.withVariation(o,s.EXPERIMENT_COMPLETED);throw new Error("winner variation [".concat(t.id,"]"))},St),Je=(At.prototype.evaluate=function(e,t,r,n,o){if("AB_TEST"!==t.type)throw new Error("experiment type bust be AB_TEST [".concat(t.id,"]"));return this.experimentTargetDeterminer.isUserInExperimentTarget(e,t,r)?o.evaluate(e,t,r,n):Ue.of(t,n,s.NOT_IN_EXPERIMENT_TARGET)},At),Qe=(Ot.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 bust be AB_TEST [".concat(t.id,"]"));e=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);return e?e.isDropped?Ue.of(t,n,s.VARIATION_DROPPED):Ue.withVariation(e,s.TRAFFIC_ALLOCATED):Ue.of(t,n,s.TRAFFIC_NOT_ALLOCATED)},Ot),et=(Rt.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 bust 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 Ue.withVariation(o,s.TARGET_RULE_MATCH);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},Rt),tt=(_t.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 bust be FEATURE_FLAG [".concat(t.id,"]"));if(!r.identifiers[t.identifierType])return Ue.of(t,n,s.DEFAULT_RULE);n=this.actionResolver.resolveOrNull(t.defaultRule,e,t,r);if(n)return Ue.withVariation(n,s.DEFAULT_RULE);throw new Error("FeatureFlag must decide the Variation [".concat(t.id,"]"))},_t),rt=(Tt.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):Ue.of(t,n,s.NOT_IN_MUTUAL_EXCLUSION_EXPERIMENT);throw new Error("bucket[".concat(a.bucketId,"]"))},Tt),nt=(Et.prototype.evaluate=function(e,t,r,n,o){return r.identifiers[t.identifierType]?o.evaluate(e,t,r,n):Ue.of(t,n,s.IDENTIFIER_NOT_FOUND)},Et),ot=(bt.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)})},bt),it=(wt.prototype.determineTargetRuleOrNull=function(t,e,r){var n=this;return e.targetRules.find(function(e){return n.targetMatcher.matches(e.target,t,r)})},wt),at=(gt.prototype.resolveOrNull=function(e,t,r){return this._resolveUserOverride(t,r)||this._resolveSegmentOverride(e,t,r)},gt.prototype._resolveUserOverride=function(e,t){t=t.identifiers[e.identifierType];if(t){t=e.userOverrides.get(t);if(t)return e._getVariationByIdOrNull(t)}},gt.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)},gt),st=(mt.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,"]"))},mt),ut=(vt.prototype.getFlow=function(e){switch(e){case"AB_TEST":return this.abTestFlow;case"FEATURE_FLAG":return this.featureFlagFlow}},vt),ct=K.log,ft=(yt.prototype._experiment=function(e,t,r){if(!e)return ct.error("experimentKey must not be empty"),ue.of(r,s.INVALID_INPUT);var n=this.workspaceFetcher.get();if(!n)return ct.warn("SDK not ready."),ue.of(r,s.SDK_NOT_READY);e=n.getExperimentOrNull(e);if(!e)return ct.warn("Experiment does not exist."),ue.of(r,s.EXPERIMENT_NOT_FOUND);n=this.evaluator.evaluate(n,e,t,r);return this.eventProcessor.process(je.exposure(e,t,n)),ue.of(n.variationKey,n.reason)},yt.prototype._featureFlag=function(e,t){if(!e)return ct.error("featureKey must not be empty"),ce.off(s.INVALID_INPUT);var r=this.workspaceFetcher.get();if(!r)return ct.warn("SDK not ready."),ce.off(s.SDK_NOT_READY);e=r.getFeatureFlagOrNull(e);if(!e)return ct.warn("FeatureFlag does not exist."),ce.off(s.FEATURE_FLAG_NOT_FOUND);r=this.evaluator.evaluate(r,e,t,"A");return this.eventProcessor.process(je.exposure(e,t,r)),"A"===r.variationKey?ce.off(r.reason):ce.on(r.reason)},yt.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 Z(0,e.key),this.eventProcessor.process(je.track(r,e,t))):ct.warn("Event key must be not null. or event key must be string type."):ct.warn("Event must be event type."):ct.warn("event must not be null.")},yt.prototype._onReady=function(e,t){this._onInitialized({timeout:t=void 0===t?3e3:t}).then(function(){return e()})},yt.prototype._onInitialized=function(e){var t,e=e.timeout,e=void 0===e?3e3:e,r=(ct.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?ct.debug("HackleClient onInitialized Success"):e.error instanceof Error?ct.error("HackleClient onInitialized Failed. ".concat(e.error.message)):ct.error("HackleClient onInitialized Failed. ".concat(e.error)),Promise.resolve({success:e.success})})},yt.prototype._close=function(){this.workspaceFetcher.close(),this.eventProcessor.close()},yt),a="model",u="name",l="type",p="vendor",r="version",c="mobile",n="tablet",lt=(d.parse=function(e){return{browser:d.getBrowser(e),cpu:d.getCPU(e),device:d.getDevice(e),engine:d.getEngine(e),os:d.getOS(e)}},d.getBrowser=function(e){var t={name:void 0,version:void 0,major:void 0};return d.mapper.rgx.call(t,e,d.regexes.browser),t.major=d.util.major(t.version),t},d.getCPU=function(e){var t={architecture:void 0};return d.mapper.rgx.call(t,e,d.regexes.cpu),t},d.getDevice=function(e){var t={model:void 0,type:void 0,vendor:void 0};return d.mapper.rgx.call(t,e,d.regexes.device),t},d.getEngine=function(e){var t={name:void 0,version:void 0};return d.mapper.rgx.call(t,e,d.regexes.os),t},d.getOS=function(e){var t={name:void 0,version:void 0};return d.mapper.rgx.call(t,e,d.regexes.os),t},d.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,"")}},d.regexes={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[u,r],[/(opios)[\/\s]+([\w\.]+)/i],[[u,"Opera Mini"],r],[/\s(opr)\/([\w\.]+)/i],[[u,"Opera"],r],[/(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],[u,r],[/(konqueror)\/([\w\.]+)/i],[[u,"Konqueror"],r],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[u,"IE"],r],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[u,"Edge"],r],[/(yabrowser)\/([\w\.]+)/i],[[u,"Yandex"],r],[/(Avast)\/([\w\.]+)/i],[[u,"Avast Secure Browser"],r],[/(AVG)\/([\w\.]+)/i],[[u,"AVG Secure Browser"],r],[/(puffin)\/([\w\.]+)/i],[[u,"Puffin"],r],[/(focus)\/([\w\.]+)/i],[[u,"Firefox Focus"],r],[/(opt)\/([\w\.]+)/i],[[u,"Opera Touch"],r],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[u,"UCBrowser"],r],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],r],[/(windowswechat qbcore)\/([\w\.]+)/i],[[u,"WeChat(Win) Desktop"],r],[/(micromessenger)\/([\w\.]+)/i],[[u,"WeChat"],r],[/(brave)\/([\w\.]+)/i],[[u,"Brave"],r],[/(whale)\/([\w\.]+)/i],[[u,"Whale"],r],[/(qqbrowserlite)\/([\w\.]+)/i],[u,r],[/(QQ)\/([\d\.]+)/i],[u,r],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[u,r],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[u,r],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[u,r],[/(MetaSr)[\/\s]?([\w\.]+)/i],[u],[/(LBBROWSER)/i],[u],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[r,[u,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[r,[u,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[u,r],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[r,[u,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[u,/(.+)/,"$1 WebView"],r],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[u,/(.+(?:g|us))(.+)/,"$1 $2"],r],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[u,"Chrome Mobile"],r],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[r,[u,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[u,"Sailfish Browser"],r],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[u,r],[/(dolfin)\/([\w\.]+)/i],[[u,"Dolphin"],r],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[u,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[u,"Opera Coast"],r],[/fxios\/([\w\.-]+)/i],[r,[u,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[r,[u,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[r,u],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[u,"GSA"],r],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[u,[r,(d.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],f=r=0;f<u.length&&!i;)if(i=u[f++].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(d.util.has(t[r][n],e))return"?"===r?void 0:r}else if(d.util.has(t[r],e))return"?"===r?void 0:r;return e}}).str,(d.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],[u,r],[/(navigator|netscape)\/([\w\.-]+)/i],[[u,"Netscape"],r],[/(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],[u,r]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",d.util.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",d.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",d.util.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[a,p,[l,n]],[/applecoremedia\/[\w\.]+ \((ipad)/],[a,[p,"Apple"],[l,n]],[/(apple\s{0,1}tv)/i],[[a,"Apple TV"],[p,"Apple"],[l,"smarttv"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[p,a,[l,n]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[a,[p,"Amazon"],[l,n]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[a,d.mapper.str,d.maps.device.amazon.model],[p,"Amazon"],[l,c]],[/android.+aft([bms])\sbuild/i],[a,[p,"Amazon"],[l,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[a,p,[l,c]],[/\((ip[honed|\s\w*]+);/i],[a,[p,"Apple"],[l,c]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[p,a,[l,c]],[/\(bb10;\s(\w+)/i],[a,[p,"BlackBerry"],[l,c]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[a,[p,"Asus"],[l,n]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[p,"Sony"],[a,"Xperia Tablet"],[l,n]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[p,"Sony"],[l,c]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[p,a,[l,"console"]],[/android.+;\s(shield)\sbuild/i],[a,[p,"Nvidia"],[l,"console"]],[/(playstation\s[34portablevi]+)/i],[a,[p,"Sony"],[l,"console"]],[/(sprint\s(\w+))/i],[[p,d.mapper.str,d.maps.device.sprint.vendor],[a,d.mapper.str,d.maps.device.sprint.model],[l,c]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[p,[a,/_/g," "],[l,c]],[/(nexus\s9)/i],[a,[p,"HTC"],[l,n]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[a,[p,"Huawei"],[l,c]],[/android.+(bah2?-a?[lw]\d{2})/i],[a,[p,"Huawei"],[l,n]],[/(microsoft);\s(lumia[\s\w]+)/i],[p,a,[l,c]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[a,[p,"Microsoft"],[l,"console"]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[p,"Microsoft"],[l,c]],[/\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],[a,[p,"Motorola"],[l,c]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[a,[p,"Motorola"],[l,n]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[p,d.util.trim],[a,d.util.trim],[l,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[p,"Samsung"],[l,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[a,[p,"Sharp"],[l,"smarttv"]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[p,"Samsung"],a,[l,n]],[/smart-tv.+(samsung)/i],[p,[l,"smarttv"],a],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[p,"Samsung"],a,[l,c]],[/sie-(\w*)/i],[a,[p,"Siemens"],[l,c]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[p,"Nokia"],a,[l,c]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[a,[p,"Acer"],[l,n]],[/android.+([vl]k\-?\d{3})\s+build/i],[a,[p,"LG"],[l,n]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[p,"LG"],a,[l,n]],[/(lg) netcast\.tv/i],[p,a,[l,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[a,[p,"LG"],[l,c]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[p,a,[l,n]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[a,[p,"Lenovo"],[l,n]],[/(lenovo)[_\s-]?([\w-]+)/i],[p,a,[l,c]],[/linux;.+((jolla));/i],[p,a,[l,c]],[/((pebble))app\/[\d\.]+\s/i],[p,a,[l,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[p,a,[l,c]],[/crkey/i],[[a,"Chromecast"],[p,"Google"],[l,"smarttv"]],[/android.+;\s(glass)\s\d/i],[a,[p,"Google"],[l,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[a,[p,"Google"],[l,n]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[a,[p,"Google"],[l,c]],[/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],[[a,/_/g," "],[p,"Xiaomi"],[l,c]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[a,/_/g," "],[p,"Xiaomi"],[l,n]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[a,[p,"Meizu"],[l,c]],[/(mz)-([\w-]{2,})/i],[[p,"Meizu"],a,[l,c]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[a,[p,"OnePlus"],[l,c]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[a,[p,"RCA"],[l,n]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[a,[p,"Dell"],[l,n]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[a,[p,"Verizon"],[l,n]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[p,"Barnes & Noble"],a,[l,n]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[a,[p,"NuVision"],[l,n]],[/android.+;\s(k88)\sbuild/i],[a,[p,"ZTE"],[l,n]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[a,[p,"Swiss"],[l,c]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[a,[p,"Swiss"],[l,n]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[a,[p,"Zeki"],[l,n]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[p,"Dragon Touch"],a,[l,n]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[a,[p,"Insignia"],[l,n]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[a,[p,"NextBook"],[l,n]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[p,"Voice"],a,[l,c]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[p,"LvTel"],a,[l,c]],[/android.+;\s(PH-1)\s/i],[a,[p,"Essential"],[l,c]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[a,[p,"Envizen"],[l,n]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[p,a,[l,n]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[a,[p,"MachSpeed"],[l,n]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[p,a,[l,n]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[a,[p,"Rotor"],[l,n]],[/android.+(KS(.+))\s+build/i],[a,[p,"Amazon"],[l,n]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[p,a,[l,n]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[l,d.util.lowerize],p,a],[/[\s\/\(](smart-?tv)[;\)]/i],[[l,"smarttv"]],[/(android[\w\.\s\-]{0,9});.+build/i],[a,[p,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[r,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[r,[u,"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],[u,r],[/rv\:([\w\.]{1,9}).+(gecko)/i],[r,u]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[u,r],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[[u,d.mapper.str,d.maps.os.windows],[r,d.mapper.str,d.maps.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[u,"Windows"],[r,d.mapper.str,d.maps.os.windows.version]],[/\((bb)(10);/i],[[u,"BlackBerry"],r],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[u,r],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[u,"Symbian"],r],[/\((series40);/i],[u],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[u,"Firefox OS"],r],[/(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],[[u,"Linux"],r],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[u,"Chromium OS"],r],[/(sunos)\s?([\w\.\d]*)/i],[[u,"Solaris"],r],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[u,"Linux"],r],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[u,"iPhone"],[r,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[u,"iPad"],[r,/_/g,"."]],[/(haiku)\s(\w+)/i],[u,r],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[r,/_/g,"."],[u,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[u,"Mac"],[r,/_/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],[u,r]]},d),pt=(ht.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=lt.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||""}},ht),dt=new Uint8Array(16);function ht(){}function d(){}function yt(e,t){this.evaluator=new Ve(new ut),this.workspaceFetcher=e,this.eventProcessor=t,this.workspaceFetcher.start(),this.eventProcessor.start(),this.readyPromise=this.workspaceFetcher.onReady().then(function(){return{success:!0}},function(e){return{success:!1,error:e}})}function vt(){var e=new $e,t=new He(new Ge),r=new Be(e),n=new at(t,r),e=new st(e);this.abTestFlow=qe.of(new Xe(n),new nt,new rt(e),new Je(new ot(t)),new Ye,new We,new Ze,new Qe(r)),this.featureFlagFlow=qe.of(new Ye,new We,new Ze,new Xe(n),new nt,new et(new it(t),r),new tt(r))}function mt(e){this.bucketer=e}function gt(e,t){this.targetMatcher=e,this.actionResolver=t}function wt(e){this.targetMatcher=e}function bt(e){this.targetMatcher=e}function Et(){}function Tt(e){this.containerResolver=e}function _t(e){this.actionResolver=e}function Rt(e,t){this.targetRuleDeterminer=e,this.actionResolver=t}function Ot(e){this.actionResolver=e}function At(e){this.experimentTargetDeterminer=e}function St(){}function Ct(){}function It(){}function kt(e){this.overrideResolver=e}function Nt(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function xt(){}function Pt(e){this.bucketer=e}function Mt(){}function Dt(e){this.userConditionMatcher=e}function jt(e){this.segmentMatcher=e}function Ft(){}function Lt(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function Ut(){}function Vt(){}function Ht(){}function Kt(){}function Gt(){}function Bt(){}function zt(){}function $t(){}function qt(){}function Xt(){}function Yt(){}function Wt(){}function Zt(){}function Jt(){}function Qt(){}function er(e,t){this.valueMatcherFactory=e,this.operatorMatcherFactory=t}function tr(e){this.conditionMatcherFactory=e}function rr(e){this.evaluationFlowFactory=e}function nr(e,t,r){this.variationId=e,this.variationKey=t,this.reason=r}function or(e,t,r,n){e=_e.call(this,e,t)||this;return e.eventType=r,e.event=n,e}function ir(e,t,r,n,o,i){e=Re.call(this,e,t)||this;return e.experiment=r,e.variationId=n,e.variationKey=o,e.decisionReason=i,e}function ar(e,t){this.timestamp=e,this.user=t}function sr(){}function ur(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.supportedKeyTypes=e}function cr(e){this.identifiers=e}function fr(e,t,r){this.major=e,this.minor=t,this.patch=r}function lr(e,t,r){this.coreVersion=e,this.prerelease=t,this.build=r}function pr(){if(Te=Te||"undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto))return Te(dt);throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}var dr=/^(?:[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 hr(e){return"string"==typeof e&&dr.test(e)}for(var yr=[],vr=0;vr<256;++vr)yr.push((vr+256).toString(16).substr(1));function mr(e,t){t=1<arguments.length&&void 0!==t?t:0,e=(yr[e[t+0]]+yr[e[t+1]]+yr[e[t+2]]+yr[e[t+3]]+"-"+yr[e[t+4]]+yr[e[t+5]]+"-"+yr[e[t+6]]+yr[e[t+7]]+"-"+yr[e[t+8]]+yr[e[t+9]]+"-"+yr[e[t+10]]+yr[e[t+11]]+yr[e[t+12]]+yr[e[t+13]]+yr[e[t+14]]+yr[e[t+15]]).toLowerCase();if(hr(e))return e;throw TypeError("Stringified UUID is invalid")}function gr(){try{0}catch(e){}}gr(),gr();Tr.prototype.resolveOrNull=function(e){e=this._resolveUser(e);return this._resolveHackleUserOrNull(e)},Tr.prototype._resolveUser=function(e){return e?"string"==typeof e?{id:e}:e:{id:_r()}},Tr.prototype._resolveHackleUserOrNull=function(e){var t=new de,t=(t.addIdentifiers(e.identifiers||{}),e.id&&t.add(pe.ID,e.id),e.userId&&t.add(pe.USER,e.userId),t.add(pe.DEVICE,e.deviceId||_r()),t.build());if(0!==Object.keys(t).length)return{identifiers:t,properties:e.properties||{},hackleProperties:this._getHackleProperties()}},Tr.prototype._getHackleProperties=function(){var e;return(e="undefined"!=typeof window?pt.generate(window):e)||{}};var wr=Tr,br=(Er.initialize=function(){Sr.get("_hackle_hid")||Ar()},Er.reInitialize=function(){Ar()},Er);function Er(){}function Tr(){br.initialize()}function _r(){var e=Sr.get("_hackle_id");return e||Sr.get("_hackle_hid")||Ar()}function Rr(e){Sr.set("_hackle_id",e,3650,!0)}function Or(){Sr.remove("_hackle_id",!0)}function Ar(){var e=function(e,t,r){var n=(e=e||{}).random||(e.rng||pr)();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 mr(n)}();return Sr.set("_hackle_hid",e,3650,!0),e}Nr.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},Nr.set=function(e,t,r,n,o,i){var a="",s="",u="",r=(n&&(a=(n=Nr.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},Nr.remove=function(e,t){Nr.set(e,"",-1,t,!1,!1)},Nr.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 Sr=Nr,Cr=K.log,Ir=(kr.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},kr.prototype.variationDetail=function(e,t,r){r=r||"A";try{var n=this.hackleUserResolver.resolveOrNull(t);return n?this.hackleInternalClient._experiment(e,n,r):ue.of(r,s.INVALID_INPUT)}catch(t){return Cr.error("Unexpected exception while deciding variation for experiment[".concat(e,"]. Returning default variation[").concat(r,"] : ").concat(t)),ue.of(r,s.EXCEPTION)}},kr.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},kr.prototype.featureFlagDetail=function(e,t){try{var r=this.hackleUserResolver.resolveOrNull(t);return r?this.hackleInternalClient._featureFlag(e,r):ce.off(s.INVALID_INPUT)}catch(t){return Cr.error('"Unexpected exception while deciding feature flag['.concat(e,"]. Returning default value[false] : ").concat(t)),ce.off(s.EXCEPTION)}},kr.prototype.track=function(e,t){Cr.debug("track event : ".concat(JSON.stringify(e)));e=this._convertEvent(e),t=this.hackleUserResolver.resolveOrNull(t);t&&this.hackleInternalClient._track(e,t)},kr.prototype.trackPageView=function(e){Cr.debug("tracking page view");e=this.hackleUserResolver.resolveOrNull(null==e?void 0:e.user);e&&this.hackleInternalClient._track({key:"$page_view"},e)},kr.prototype.onReady=function(e,t){this.hackleInternalClient._onReady(e,t=void 0===t?3e3:t)},kr.prototype.onInitialized=function(e){return this.hackleInternalClient._onInitialized({timeout:null==e?void 0:e.timeout})},kr.prototype.close=function(){Cr.debug("Hackle Client is closing"),this.hackleInternalClient._close()},kr.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},kr);function kr(e,t){this.hackleInternalClient=new ft(e,t),this.hackleUserResolver=new wr}function Nr(){}function xr(e){var t=new Array,r=new Array;return e.forEach(function(e){je.isExposure(e)?t.push(e.toDto()):je.isTrack(e)&&r.push(e.toDto())}),{exposureEvents:t,trackEvents:r}}$r.prototype.dispatch=function(e,t){var r={},e=(r["X-HACKLE-SDK-KEY"]=this.sdkKey,r["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],r["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],r["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),xr(e));this.httpRequest.postRequest(this.dispatchUrl,e,r,t)},$r.prototype.dispatchXhrOrBeacon=function(e,t){var r,n;this.useBeacon?((r={})["X-HACKLE-SDK-KEY"]=this.sdkKey,r["X-HACKLE-SDK-NAME"]=this.headers["X-HACKLE-SDK-NAME"],r["X-HACKLE-SDK-VERSION"]=this.headers["X-HACKLE-SDK-VERSION"],r["X-HACKLE-SDK-TIME"]=(new Date).getTime().toString(),n=xr(e),this.httpRequest.sendBeacon(this.beaconDispatchUrl,n,r,t)):this.dispatch(e,t)};var Pr=$r,Mr=K.log,Dr=(h.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},h.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},h.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},h.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},h.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},h.prototype.getContainerOrNull=function(e){return this.containers.get(e)},h.from=function(e){var t=this,r=h.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]}),n=h.associateBy(h.mapNotUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),o=h.associateBy(h.mapNotUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),i=h.associate(e.events,function(e){return[e.key,new Z(e.id,e.key)]}),a=h.associateBy(h.mapNotUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),e=h.associate(e.containers,function(e){return[e.id,t.toContainer(e)]});return new h(n,o,r,i,a,e)},h.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 le(t,r,e)}))},h.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)}),i=h.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),a=h.mapNotUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,Me.IDENTIFIER)}),s=h.mapNotUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,Me.PROPERTY)}),u=h.mapNotUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,Me.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new fe(t.id,t.key,e,t.identifierType,n,t.version,o,i,a,s,u,c,t.containerId,t.winnerVariationId)},h.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void Mr.debug("Unsupported status [".concat(e,"]"))}},h.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new ne(t,e)},h.toTargetActionOrNull=function(e){var t=this.parseOrNull(Ne,e.type);return t&&new re(t,e.variationId,e.bucketId)},h.toTargetOrNull=function(e,t){var r=this,e=h.mapNotUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new J(e)},h.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)},h.toTargetKeyOrNull=function(e){var t=this.parseOrNull(xe,e.type);return t&&new ee(t,e.name)},h.toTargetMatchOrNull=function(e){var t=this.parseOrNull(Ce,e.type),r=this.parseOrNull(ke,e.operator),n=this.parseOrNull(Ie,e.valueType);return t&&r&&n&&new te(t,r,n,e.values)},h.toSegmentOrNull=function(e){var t=this,r=this.parseOrNull(Pe,e.type);return r&&new oe(e.id,e.key,r,this.mapNotUndefined(e.targets,function(e){return t.toTargetOrNull(e,Me.SEGMENT)}))},h.toContainer=function(e){var t=this;return new he(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},h.toContainerGroup=function(e){return new ie(e.id,e.experiments)},h.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||Mr.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},h.mapNotUndefined=function(e,r){return e.reduce(function(e,t){t=r(t);return t&&e.push(t),e},Array())},h.associateTo=function(e,t,r){return e.reduce(function(e,t){t=r(t);return e.set(t[0],t[1]),e},t)},h.associate=function(e,t){return h.associateTo(e,new Map,t)},h.associateBy=function(e,t){return this.associateTo(e,new Map,function(e){return[t(e),e]})},h),jr=(zr.prototype.onReady=function(){return this.readyPromise},zr.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},zr.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()},zr.prototype.get=function(){return this.workspace},zr.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)},zr.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()},zr.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},zr.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=Dr.from(e),this.readyPromiseResolver())}},zr.prototype.onRequestRejected=function(e){this.isStarted&&(this.errorRetryController.countError(),console.error("Error fetching data",e))},zr.prototype.close=function(){this.stop()},zr),Fr=(Br.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*B[Math.min(B.length-1,this.errorCount)]+Math.round(1e3*Math.random())},Br.prototype.countError=function(){this.errorCount<B.length-1&&this.errorCount++},Br.prototype.reset=function(){this.errorCount=0},Br),Lr=(Gr.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},Gr.prototype.refresh=function(){this.stop(),this.start()},Gr.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)},Gr),Ur=(Kr.prototype.start=function(){this.started=!0},Kr.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},Kr.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},Kr.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},Kr.prototype.close=function(){this.stop()},Kr),Vr=(Hr.prototype.drainQueue=function(t,r){var n=this;return new Promise(function(e){0!==t.length?r?n.eventDispatcher.dispatchXhrOrBeacon(t,function(){e()}):n.eventDispatcher.dispatch(t,function(){e()}):e()})},Hr.prototype.process=function(e){this.queue.enqueue(e)},Hr.prototype.start=function(){return e=this,u=function(){return H(this,function(e){return this.queue.start(),[2]})},new(s=(s=a=void 0)||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())});var e,a,s,u},Hr.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},Hr.prototype.close=function(){this.stop()},Hr);function Hr(e,t,r){this.eventDispatcher=e,this.flushInterval=r,this.queue=new Ur(this.drainQueue.bind(this),qr,t,r)}function Kr(e,t,r,n){this.buffer=[],this.sink=e,this.maxQueueSize=r,this.batchComparator=t,this.timer=new Lr({callback:this.flush.bind(this),timeout:n}),this.started=!1}function Gr(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function Br(){this.errorCount=0}function zr(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 Fr,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function h(e,t,r,n,o,i){this.experiments=e,this.featureFlags=t,this.buckets=r,this.eventTypes=n,this.segments=o,this.containers=i}function $r(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 qr(e,t){return e.timestamp==t.timestamp&&e.user.identifiers==t.user.identifiers&&e.user.properties==t.user.properties}function Xr(e){return e&&e.Math==Math&&e}function y(e){try{return!!e()}catch(e){return!0}}var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==F?F:"undefined"!=typeof self?self:{},i=Xr("object"==typeof globalThis&&globalThis)||Xr("object"==typeof window&&window)||Xr("object"==typeof self&&self)||Xr("object"==typeof o&&o)||function(){return this}()||Function("return this")(),c={},n=!y(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),l=!y(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Yr=Function.prototype.call,a=l?Yr.bind(Yr):function(){return Yr.apply(Yr,arguments)},p={},u={}.propertyIsEnumerable,Wr=Object.getOwnPropertyDescriptor,r=Wr&&!u.call({1:2},1);p.f=r?function(e){e=Wr(this,e);return!!e&&e.enumerable}:u;function Zr(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function Jr(e){return yn(hn(e),8,-1)}function Qr(e){if(null==e)throw wn("Can't call method on "+e);return e}function en(e){return bn(En(e))}function v(e){return"function"==typeof e}function tn(e){return"object"==typeof e?null!==e:Tn(e)}function rn(e,t){return arguments.length<2?(r=_n[e],Rn(r)?r:void 0):_n[e]&&_n[e][t];var r}function nn(e){try{return Pn(e)}catch(e){return"Object"}}function on(e){if(Mn(e))return e;throw jn(Dn(e)+" is not a function")}function an(e,t){return null==(e=e[t])?void 0:Fn(e)}function sn(t,r){try{Gn(Kn,t,{value:r,configurable:!0,writable:!0})}catch(e){Kn[t]=r}return r}function m(e){return qn($n(e))}function un(e){return"Symbol("+(void 0===e?"":e)+")_"+eo(++Jn+Qn,36)}function g(e){var t;return ro(io,e)&&(no||"string"==typeof io[e])||(t="Symbol."+e,no&&ro(ao,e)?io[e]=ao[e]:io[e]=(oo&&so?so:uo)(t)),io[e]}function cn(e){return e=function(e,t){if(!fo(e)||lo(e))return e;var r=po(e,vo);if(r){if(r=co(r,e,t=void 0===t?"default":t),!fo(r)||lo(r))return r;throw yo("Can't convert object to primitive value")}return ho(e,t=void 0===t?"number":t)}(e,"string"),mo(e)?e:e+""}function fn(e){return wo?go.createElement(e):{}}function ln(e){if(Io(e))return e;throw No(ko(e)+" is not an object")}var F=l,o=Function.prototype,r=o.bind,pn=o.call,dn=F&&r.bind(pn,pn),u=F?function(e){return e&&dn(e)}:function(e){return e&&function(){return pn.apply(e,arguments)}},o=u,hn=o({}.toString),yn=o("".slice),r=y,vn=Jr,mn=Object,gn=u("".split),F=r(function(){return!mn("z").propertyIsEnumerable(0)})?function(e){return"String"==vn(e)?gn(e,""):mn(e)}:mn,wn=TypeError,bn=F,En=Qr,Tn=v,_n=i,Rn=v,o=u({}.isPrototypeOf),r=rn("navigator","userAgent")||"",w=r,On=i.process,An=i.Deno,On=On&&On.versions||An&&An.version,An=On&&On.v8,On=xn=!(xn=An?0<(b=An.split("."))[0]&&b[0]<4?1:+(b[0]+b[1]):xn)&&w&&(!(b=w.match(/Edge\/(\d+)/))||74<=b[1])&&(b=w.match(/Chrome\/(\d+)/))?+b[1]:xn,Sn=On,An=y,w=!!Object.getOwnPropertySymbols&&!An(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Sn&&Sn<41}),b=w&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Cn=rn,In=v,kn=o,Nn=Object,xn=b?function(e){return"symbol"==typeof e}:function(e){var t=Cn("Symbol");return In(t)&&kn(t.prototype,Nn(e))},Pn=String,Mn=v,Dn=nn,jn=TypeError,Fn=on,Ln=a,Un=v,Vn=tn,Hn=TypeError,An={exports:{}},Kn=i,Gn=Object.defineProperty,Bn=sn,Bn=i["__core-js_shared__"]||Bn("__core-js_shared__",{}),zn=Bn,$n=((An.exports=function(e,t){return zn[e]||(zn[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"}),Qr),qn=Object,Xn=m,Yn=u({}.hasOwnProperty),Wn=Object.hasOwn||function(e,t){return Yn(Xn(e),t)},Zn=u,Jn=0,Qn=Math.random(),eo=Zn(1..toString),Zn=i,to=An.exports,ro=Wn,E=un,no=w,oo=b,io=to("wks"),ao=Zn.Symbol,so=ao&&ao.for,uo=oo?ao:ao&&ao.withoutSetter||E,co=a,fo=tn,lo=xn,po=an,ho=function(e,t){var r,n;if("string"===t&&Un(r=e.toString)&&!Vn(n=Ln(r,e)))return n;if(Un(r=e.valueOf)&&!Vn(n=Ln(r,e)))return n;if("string"!==t&&Un(r=e.toString)&&!Vn(n=Ln(r,e)))return n;throw Hn("Can't convert object to primitive value")},yo=TypeError,vo=g("toPrimitive"),mo=xn,w=tn,go=i.document,wo=w(go)&&w(go.createElement),bo=fn,b=!n&&!y(function(){return 7!=Object.defineProperty(bo("div"),"a",{get:function(){return 7}}).a}),Eo=a,To=p,_o=Zr,Ro=en,Oo=cn,Ao=Wn,So=b,Co=Object.getOwnPropertyDescriptor,to=(c.f=n?Co:function(e,t){if(e=Ro(e),t=Oo(t),So)try{return Co(e,t)}catch(e){}if(Ao(e,t))return _o(!Eo(To.f,e,t),e[t])},{}),Zn=n&&y(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Io=tn,ko=String,No=TypeError,xo=b,Po=ln,Mo=cn,Do=TypeError,jo=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,Lo=(to.f=n?Zn?function(e,t,r){var n;return Po(e),t=Mo(t),Po(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=Fo(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}),jo(e,t,r)}:jo:function(e,t,r){if(Po(e),t=Mo(t),Po(r),xo)try{return jo(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Do("Accessors not supported");return"value"in r&&(e[t]=r.value),e},to),Uo=Zr,E=n?function(e,t,r){return Lo.f(e,t,Uo(1,r))}:function(e,t,r){return e[t]=r,e},xn={exports:{}},w=n,p=Wn,b=Function.prototype,T=w&&Object.getOwnPropertyDescriptor,p=p(b,"name"),p={EXISTS:p,PROPER:p&&"something"===function(){}.name,CONFIGURABLE:p&&(!w||T(b,"name").configurable)},w=v,T=Bn,Vo=u(Function.toString);w(T.inspectSource)||(T.inspectSource=function(e){return Vo(e)});function Ho(e){return oi[e]||(oi[e]=ni(e))}function Ko(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(Ei(r)&&_i(r,i,n),n.global)o?e[t]=r:Ri(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:Ti.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function Go(e){return(e=+e)!=e||0==e?0:Si(e)}function Bo(e,t){return(e=Ci(e))<0?Ii(e+t,0):ki(e,t)}function _(e){return 0<(e=e.length)?xi(Ni(e),9007199254740991):0}function zo(s){return function(e,t,r){var n,o=Pi(e),i=Di(o),a=Mi(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 $o(e,t){var r,n=Fi(e),o=0,i=[];for(r in n)!ji(Ui,r)&&ji(n,r)&&Vi(i,r);for(;t.length>o;)!ji(n,r=t[o++])||~Li(i,r)||Vi(i,r);return i}function qo(e,t,r){for(var n=Xi(t),o=Wi.f,i=Yi.f,a=0;a<n.length;a++){var s=n[a];qi(e,s)||r&&qi(r,s)||o(e,s,i(t,s))}}function Xo(e,t){return(e=ta[ea(e)])==na||e!=ra&&(Ji(t)?Zi(t):!!t)}function R(e,t){var r,n,o,i,a=e.target,s=e.global,u=e.stat;if(r=s?oa:u?oa[a]||ua(a,{}):(oa[a]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(i=ia(r,n))&&i.value:r[n],!fa(s?n:a+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;ca(o,i)}(e.sham||i&&i.sham)&&aa(o,"sham",!0),sa(r,n,o,e)}}var Yo,Wo,Zo,Jo,Qo,ei,ti,ri,b=T.inspectSource,w=v,T=b,O=i.WeakMap,w=w(O)&&/native code/.test(T(O)),T=An.exports,ni=un,oi=T("keys"),O={},An=u,ii=tn,ai=E,si=Wn,T=Bn,A=Ho,ui=O,ci=i.TypeError,fi=i.WeakMap,w=(ti=w||T.state?(Yo=T.state||(T.state=new fi),Wo=An(Yo.get),Zo=An(Yo.has),Jo=An(Yo.set),Qo=function(e,t){if(Zo(Yo,e))throw new ci("Object already initialized");return t.facade=e,Jo(Yo,e,t),t},ei=function(e){return Wo(Yo,e)||{}},function(e){return Zo(Yo,e)}):(ui[ri=A("state")]=!0,Qo=function(e,t){if(si(e,ri))throw new ci("Object already initialized");return t.facade=e,ai(e,ri,t),t},ei=function(e){return si(e,ri)?e[ri]:{}},function(e){return si(e,ri)}),{set:Qo,get:ei,has:ti,enforce:function(e){return ti(e)?ei(e):Qo(e,{})},getterFor:function(t){return function(e){if(ii(e)&&(e=ei(e)).type===t)return e;throw ci("Incompatible receiver, "+t+" required")}}}),T=y,li=v,pi=Wn,di=n,hi=p.CONFIGURABLE,yi=b,vi=w.enforce,mi=w.get,gi=Object.defineProperty,wi=di&&!T(function(){return 8!==gi(function(){},"length",{value:8}).length}),bi=String(String).split("String"),fi=xn.exports=function(e,t,r){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!pi(e,"name")||hi&&e.name!==t)&&(di?gi(e,"name",{value:t,configurable:!0}):e.name=t),wi&&r&&pi(r,"arity")&&e.length!==r.arity&&gi(e,"length",{value:r.arity});try{r&&pi(r,"constructor")&&r.constructor?di&&gi(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=vi(e);return pi(r,"source")||(r.source=bi.join("string"==typeof t?t:"")),e},Ei=(Function.prototype.toString=fi(function(){return li(this)&&mi(this).source||yi(this)},"toString"),v),Ti=to,_i=xn.exports,Ri=sn,An={},Oi=Math.ceil,Ai=Math.floor,Si=Math.trunc||function(e){e=+e;return(0<e?Ai:Oi)(e)},Ci=Go,Ii=Math.max,ki=Math.min,Ni=Go,xi=Math.min,Pi=en,Mi=Bo,Di=_,ui={includes:zo(!0),indexOf:zo(!1)},ji=Wn,Fi=en,Li=ui.indexOf,Ui=O,Vi=u([].push),A=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Hi=$o,Ki=A.concat("length","prototype"),T=(An.f=Object.getOwnPropertyNames||function(e){return Hi(e,Ki)},{}),fi=(T.f=Object.getOwnPropertySymbols,rn),Gi=An,Bi=T,zi=ln,$i=u([].concat),T=fi("Reflect","ownKeys")||function(e){var t=Gi.f(zi(e)),r=Bi.f;return r?$i(t,r(e)):t},qi=Wn,Xi=T,Yi=c,Wi=to,Zi=y,Ji=v,Qi=/#|\.prototype\./,ea=Xo.normalize=function(e){return String(e).replace(Qi,".").toLowerCase()},ta=Xo.data={},ra=Xo.NATIVE="N",na=Xo.POLYFILL="P",fi=Xo,oa=i,ia=c.f,aa=E,sa=Ko,ua=sn,ca=qo,fa=fi,T=!y(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),la=Wn,pa=v,da=m,ha=Ho("IE_PROTO"),ya=Object,va=ya.prototype,T=T?ya.getPrototypeOf:function(e){e=da(e);if(la(e,ha))return e[ha];var t=e.constructor;return pa(t)&&e instanceof t?t.prototype:e instanceof ya?va:null},ma=v,ga=String,wa=TypeError,ba=u,Ea=ln,Ta=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=ba(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return Ea(e),function(e){if("object"==typeof e||ma(e))return;throw wa("Can't set "+ga(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),_a={},Ra=$o,Oa=A,S=Object.keys||function(e){return Ra(e,Oa)},Aa=to,Sa=ln,Ca=en,Ia=S;_a.f=n&&!Zn?Object.defineProperties:function(e,t){Sa(e);for(var r,n=Ca(t),o=Ia(t),i=o.length,a=0;a<i;)Aa.f(e,r=o[a++],n[r]);return e};function ka(){}function Na(e){e.write(Xa("")),e.close();var t=e.parentWindow.Object;return e=null,t}function xa(e,t){return rs(e),void 0===t?e:ns?os(e,t):function(){return e.apply(t,arguments)}}function Pa(e){return void 0!==e&&(is.Array===e||ss[as]===e)}function Ma(e){if(null!=e)return hs(e,vs)||hs(e,"@@iterator")||ys[ds(e)]}function Da(e,t){if(t=arguments.length<2?Es(e):t,gs(t))return ws(ms(t,e));throw Ts(bs(e)+" is not iterable")}function ja(e,t,r){var n,o;Rs(e);try{if(!(n=Os(e,"return"))){if("throw"===t)throw r;return r}n=_s(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return Rs(n),r}function Fa(e,t){this.stopped=e,this.result=t}function La(e,t,r){function n(e){return i&&Ds(i,"normal",e),new Fa(!0,e)}function o(e){return p?(Cs(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,f,l=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),v=As(t,l);if(d)i=e.iterator;else if(h)i=e;else{if(!(r=Ms(e)))throw js(Is(e)+" is not iterable");if(ks(r)){for(a=0,s=Ns(e);a<s;a++)if((u=o(e[a]))&&xs(Fs,u))return u;return new Fa(!1)}i=Ps(e,r)}for(c=(d?e:i).next;!(f=Ss(c,i)).done;){try{u=o(f.value)}catch(e){Ds(i,"throw",e)}if("object"==typeof u&&u&&xs(Fs,u))return u}return new Fa(!1)}function Ua(e){if("Symbol"===Ls(e))throw TypeError("Cannot convert a Symbol value to a string");return Us(e)}function Va(e,t){var r,n=2<arguments.length?arguments[2]:void 0,o=Gs(tu,this);return zs?r=zs(new Qs,o?Bs(this):tu):(r=o?this:qs(tu),Xs(r,Js,"Error")),void 0!==t&&Xs(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:Vs(e)}(t)),Zs&&Xs(r,"stack",function(e,t){if(Qa&&"string"==typeof e&&!Wa.prepareStackTrace)for(;t--;)e=Za(e,Ja,"");return e}(r.stack,1)),o=r,es(t=n)&&"cause"in t&&ts(o,"cause",t.cause),Ws(e,eu,{that:n=[]}),Xs(r,"errors",n),r}var Ha,S=rn("document","documentElement"),Ka=ln,Ga=_a,Ba=A,Zn=O,za=S,$a=fn,qa=Ho("IE_PROTO"),Xa=function(e){return"<script>"+e+"<\/script>"},Ya=function(){try{Ha=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ya="undefined"==typeof document||document.domain&&Ha?Na(Ha):((t=$a("iframe")).style.display="none",za.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Xa("document.F=Object")),e.close(),e.F);for(var r=Ba.length;r--;)delete Ya.prototype[Ba[r]];return Ya()},_a=(Zn[qa]=!0,Object.create||function(e,t){var r;return null!==e?(ka.prototype=Ka(e),r=new ka,ka.prototype=null,r[qa]=e):r=Ya(),void 0===t?r:Ga.f(r,t)}),Wa=Error,Za=u("".replace),A=String(Wa("zxcasd").stack),Ja=/\n\s*at [^:]*:[^\n]*/,Qa=Ja.test(A),es=tn,ts=E,rs=on,ns=l,os=u(u.bind),Zn={},is=Zn,as=g("iterator"),ss=Array.prototype,A={},A=(A[g("toStringTag")]="z","[object z]"===String(A)),C=A,us=v,cs=Jr,fs=g("toStringTag"),ls=Object,ps="Arguments"==cs(function(){return arguments}()),C=C?cs: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=ls(e),fs))?t:ps?cs(e):"Object"==(t=cs(e))&&us(e.callee)?"Arguments":t},ds=C,hs=an,ys=Zn,vs=g("iterator"),ms=a,gs=on,ws=ln,bs=nn,Es=Ma,Ts=TypeError,_s=a,Rs=ln,Os=an,As=xa,Ss=a,Cs=ln,Is=nn,ks=Pa,Ns=_,xs=o,Ps=Da,Ms=Ma,Ds=ja,js=TypeError,Fs=Fa.prototype,Ls=C,Us=String,Vs=Ua,Hs=Zr,I=!y(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Hs(1,7)),7!==e.stack)}),Ks=R,Gs=o,Bs=T,zs=Ta,$s=qo,qs=_a,Xs=E,Ys=Zr,Ws=La,Zs=I,Js=g("toStringTag"),Qs=Error,eu=[].push,tu=(zs?zs(Va,Qs):$s(Va,Qs,{name:!0}),Va.prototype=qs(Qs.prototype,{constructor:Ys(1,Va),message:Ys(1,""),name:Ys(1,"AggregateError")})),I=(Ks({global:!0,constructor:!0,arity:2},{AggregateError:Va}),g),$s=_a,Ys=to.f,ru=I("unscopables"),nu=Array.prototype;null==nu[ru]&&Ys(nu,ru,{configurable:!0,value:$s(null)});function k(e){nu[ru][e]=!0}var ou,Ks=y,I=v,Ys=T,$s=Ko,iu=g("iterator"),N=!1;[].keys&&("next"in(cu=[].keys())?(Ys=Ys(Ys(cu)))!==Object.prototype&&(ou=Ys):N=!0);function au(e,t,r){(e=e&&!r?e.prototype:e)&&!lu(e,pu)&&fu(e,pu,{configurable:!0,value:t})}function su(){return this}function uu(e,t,r,n,o,i,a){var s=r,u=t,c=void 0;function f(e){if(e===o&&v)return v;if(!Nu&&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=hu(du,{next:yu(+!c,n)}),vu(s,u,!1),mu[u]=gu;var l,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[xu]||h["@@iterator"]||o&&h[o],v=!Nu&&y||f(o);if((n="Array"==t&&h.entries||y)&&(s=Tu(n.call(new e)))!==Object.prototype&&s.next&&(Tu(s)!==ku&&(_u?_u(s,ku):Eu(s[xu])||Au(s,xu,su)),Ru(s,c,!0)),Cu&&"values"==o&&y&&"values"!==y.name&&(Iu?Ou(h,"name","values"):(d=!0,v=function(){return bu(y,this)})),o)if(l={values:f("values"),keys:i?v:f("keys"),entries:f("entries")},a)for(p in l)!Nu&&!d&&p in h||Au(h,p,l[p]);else wu({target:t,proto:!0,forced:Nu||d},l);return h[xu]!==v&&Au(h,xu,v,{name:o}),Su[t]=v,l}I((ou=null==ou||Ks(function(){var e={};return ou[iu].call(e)!==e})?{}:ou)[iu])||$s(ou,iu,function(){return this});var cu={IteratorPrototype:ou,BUGGY_SAFARI_ITERATORS:N},fu=to.f,lu=Wn,pu=g("toStringTag"),du=cu.IteratorPrototype,hu=_a,yu=Zr,vu=au,mu=Zn,gu=function(){return this},wu=R,bu=a,Eu=v,Tu=T,_u=Ta,Ru=au,Ou=E,Au=Ko,Su=Zn,Cu=p.PROPER,Iu=p.CONFIGURABLE,ku=cu.IteratorPrototype,Nu=cu.BUGGY_SAFARI_ITERATORS,xu=g("iterator"),Pu=en,Ys=k,I=Zn,Ks=w,$s=to.f,N=uu,p=n,Mu=Ks.set,Du=Ks.getterFor("Array Iterator"),cu=N(Array,"Array",function(e,t){Mu(this,{type:"Array Iterator",target:Pu(e),index:0,kind:t})},function(){var e=Du(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"),Zn=I.Arguments=I.Array;if(Ys("keys"),Ys("values"),Ys("entries"),p&&"values"!==Zn.name)try{$s(Zn,"name",{value:"values"})}catch(ag){}function ju(e){var e=Ku(e),t=Gu.f;Bu&&e&&!e[zu]&&t(e,zu,{configurable:!0,get:function(){return this}})}function Fu(e,t){if($u(t,e))return e;throw qu("Incorrect invocation")}function Lu(){}function Uu(e){if(!Xu(e))return!1;try{return Ju(Lu,Zu,e),!0}catch(e){return!1}}function Vu(e){if(!Xu(e))return!1;switch(Yu(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return tc||!!ec(Qu,Wu(e))}catch(e){return!0}}var Hu=C,Ks=(A||Ko(Object.prototype,"toString",A?{}.toString:function(){return"[object "+Hu(this)+"]"},{unsafe:!0}),"process"==Jr(i.process)),Ku=rn,Gu=to,Bu=n,zu=g("species"),$u=o,qu=TypeError,N=u,I=y,Xu=v,Yu=C,Wu=b,Zu=[],Ju=rn("Reflect","construct"),Qu=/^\s*(?:class|function)\b/,ec=N(Qu.exec),tc=!Qu.exec(Lu);Vu.sham=!0;function rc(e,t){var r,e=uc(e).constructor;if(void 0===e||null==(r=uc(e)[cc]))return t;if(ic(e=r))return e;throw sc(ac(e)+" is not a constructor")}var nc,oc,Ys=!Ju||I(function(){var e;return Uu(Uu.call)||!Uu(Object)||!Uu(function(){e=!0})||e})?Vu:Uu,ic=Ys,ac=nn,sc=TypeError,uc=ln,cc=g("species"),p=Function.prototype,fc=p.apply,lc=p.call,$s="object"==typeof Reflect&&Reflect.apply||(l?lc.bind(fc):function(){return lc.apply(fc,arguments)}),Zn=u([].slice),pc=TypeError,A=/(?:ipad|iphone|ipod).*applewebkit/i.test(r),dc=i,hc=$s,o=xa,yc=v,vc=Wn,C=y,mc=S,gc=Zn,wc=fn,N=A,I=Ks,p=dc.setImmediate,l=dc.clearImmediate,bc=dc.process,Ec=dc.Dispatch,Tc=dc.Function,S=dc.MessageChannel,_c=dc.String,Rc=0,Oc={};try{nc=dc.location}catch(ag){}function Ac(e){return function(){Ic(e)}}function Sc(e){Ic(e.data)}function Cc(e){dc.postMessage(_c(e),nc.protocol+"//"+nc.host)}var Ic=function(e){var t;vc(Oc,e)&&(t=Oc[e],delete Oc[e],t())};p&&l||(p=function(e){var t=arguments.length,r=1;if(t<r)throw pc("Not enough arguments");var n=yc(e)?e:Tc(e),o=gc(arguments,1);return Oc[++Rc]=function(){hc(n,void 0,o)},oc(Rc),Rc},l=function(e){delete Oc[e]},I?oc=function(e){bc.nextTick(Ac(e))}:Ec&&Ec.now?oc=function(e){Ec.now(Ac(e))}:S&&!N?(N=(I=new S).port2,I.port1.onmessage=Sc,oc=o(N.postMessage,N)):dc.addEventListener&&yc(dc.postMessage)&&!dc.importScripts&&nc&&"file:"!==nc.protocol&&!C(Cc)?(oc=Cc,dc.addEventListener("message",Sc,!1)):oc="onreadystatechange"in wc("script")?function(e){mc.appendChild(wc("script")).onreadystatechange=function(){mc.removeChild(this),Ic(e)}}:function(e){setTimeout(Ac(e),0)});function kc(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function Nc(){this.head=null,this.tail=null}function xc(e){var r,n;this.promise=new e(function(e,t){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=e,n=t}),this.resolve=Jc(r),this.reject=Jc(n)}var Pc,Mc,Dc,jc,Fc,Lc,Uc,S={set:p,clear:l},I=i,o=/ipad|iphone|ipod/i.test(r)&&void 0!==I.Pebble,N=/web0s(?!.*chrome)/i.test(r),C=i,p=xa,l=c.f,Vc=S.set,I=A,c=o,A=N,Hc=Ks,o=C.MutationObserver||C.WebKitMutationObserver,N=C.document,Kc=C.process,x=C.Promise,l=l(C,"queueMicrotask"),l=l&&l.value,A=(l||(Pc=function(){var e,t;for(Hc&&(e=Kc.domain)&&e.exit();Mc;){t=Mc.fn,Mc=Mc.next;try{t()}catch(e){throw Mc?jc():Dc=void 0,e}}Dc=void 0,e&&e.enter()},jc=I||Hc||A||!o||!N?!c&&x&&x.resolve?((I=x.resolve(void 0)).constructor=x,Uc=p(I.then,I),function(){Uc(Pc)}):Hc?function(){Kc.nextTick(Pc)}:(Vc=p(Vc,C),function(){Vc(Pc)}):(Fc=!0,Lc=N.createTextNode(""),new o(Pc).observe(Lc,{characterData:!0}),function(){Lc.data=Fc=!Fc})),l||function(e){e={fn:e,next:void 0};Dc&&(Dc.next=e),Mc||(Mc=e,jc()),Dc=e}),Gc=i,c=(Nc.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}},Nc),x=i.Promise,I="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,p=!I&&!Ks&&"object"==typeof window&&"object"==typeof document,C=i,Bc=x,N=v,o=fi,zc=b,l=g,$c=p,qc=I,Xc=On,Yc=(Bc&&Bc.prototype,l("species")),Wc=!1,Zc=N(C.PromiseRejectionEvent),b={CONSTRUCTOR:o("Promise",function(){var e=zc(Bc),t=e!==String(Bc);if(!t&&66===Xc)return!0;if(!Xc||Xc<51||!/native code/.test(e)){var e=new Bc(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[Yc]=r,!(Wc=e.then(function(){})instanceof r))return!0}return!t&&($c||qc)&&!Zc}),REJECTION_EVENT:Zc,SUBCLASSING:Wc},p={},Jc=on;p.f=function(e){return new xc(e)};function Qc(e,t){var r,n,o,i,a=t.value,s=1==t.state,u=s?e.ok:e.fail,c=e.resolve,f=e.reject,l=e.domain;try{u?(s||(2===t.rejection&&(i=t,af(pf,of,function(){var e=i.facade;nf?Of.emit("rejectionHandled",e):Nf("rejectionhandled",e,i.value)})),t.rejection=1),!0===u?r=a:(l&&l.enter(),r=u(a),l&&(l.exit(),o=!0)),r===e.promise?f(_f("Promise-chain cycle")):(n=If(r))?af(n,r,c,f):c(r)):f(a)}catch(e){l&&!o&&l.exit(),f(e)}}var ef,tf,rf,I=R,nf=Ks,of=i,af=a,l=Ko,N=Ta,C=au,o=ju,sf=on,uf=v,cf=tn,ff=Fu,lf=rc,pf=S.set,df=A,hf=kc,yf=c,S=w,A=x,c=p,vf=b.CONSTRUCTOR,mf=b.REJECTION_EVENT,gf=b.SUBCLASSING,wf=S.getterFor("Promise"),bf=S.set,S=A&&A.prototype,Ef=A,Tf=S,_f=of.TypeError,Rf=of.document,Of=of.process,Af=c.f,Sf=Af,Cf=!!(Rf&&Rf.createEvent&&of.dispatchEvent),If=function(e){var t;return!(!cf(e)||!uf(t=e.then))&&t},kf=function(r,o){r.notified||(r.notified=!0,df(function(){for(var e,n,t=r.reactions;e=t.get();)Qc(e,r);r.notified=!1,o&&!r.rejection&&(n=r,af(pf,of,function(){var e,t=n.facade,r=n.value;if(xf(n)&&(e=hf(function(){nf?Of.emit("unhandledRejection",r,t):Nf("unhandledrejection",t,r)}),n.rejection=nf||xf(n)?2:1,e.error))throw e.value}))}))},Nf=function(e,t,r){var n;Cf?((n=Rf.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),of.dispatchEvent(n)):n={promise:t,reason:r},!mf&&(t=of["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=Gc.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},xf=function(e){return 1!==e.rejection&&!e.parent},Pf=function(t,r,n){return function(e){t(r,e,n)}},Mf=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,kf(e,!0))},Df=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw _f("Promise can't be resolved itself");var n=If(e);n?df(function(){var t={done:!1};try{af(n,e,Pf(Df,t,r),Pf(Mf,t,r))}catch(e){Mf(t,e,r)}}):(r.value=e,r.state=1,kf(r,!1))}catch(e){Mf({done:!1},e,r)}}};if(vf&&(Tf=(Ef=function(e){ff(this,Tf),sf(e),af(ef,this);var t=wf(this);try{e(Pf(Df,t),Pf(Mf,t))}catch(e){Mf(t,e)}}).prototype,(ef=function(e){bf(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new yf,rejection:!1,state:0,value:void 0})}).prototype=l(Tf,"then",function(e,t){var r=wf(this),n=Af(lf(this,Ef));return r.parent=!0,n.ok=!uf(e)||e,n.fail=uf(t)&&t,n.domain=nf?Of.domain:void 0,0==r.state?r.reactions.add(n):df(function(){Qc(n,r)}),n.promise}),tf=function(){var e=new ef,t=wf(e);this.promise=e,this.resolve=Pf(Df,t),this.reject=Pf(Mf,t)},c.f=Af=function(e){return e===Ef||void 0===e?new tf:Sf(e)},uf(A)&&S!==Object.prototype)){rf=S.then,gf||l(S,"then",function(e,t){var r=this;return new Ef(function(e,t){af(rf,r,e,t)}).then(e,t)},{unsafe:!0});try{delete S.constructor}catch(ag){}N&&N(S,Tf)}I({global:!0,constructor:!0,wrap:!0,forced:vf},{Promise:Ef}),C(Ef,"Promise",!1),o("Promise");var jf=g("iterator"),Ff=!1;try{var Lf=0,Uf={next:function(){return{done:!!Lf++}},return:function(){Ff=!0}};Uf[jf]=function(){return this},Array.from(Uf,function(){throw 2})}catch(ag){}function Vf(e,t){if(!t&&!Ff)return!1;var r=!1;try{var n={};n[jf]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function Hf(e,t){return ol(e),il(t)&&t.constructor===e?t:((0,(e=al.f(e)).resolve)(t),e.promise)}function Kf(o){return function(e,t){var r,e=Ol(Al(e)),t=Rl(t),n=e.length;return t<0||n<=t?o?"":void 0:(r=Cl(e,t))<55296||56319<r||t+1===n||(n=Cl(e,t+1))<56320||57343<n?o?Sl(e,t):r:o?Il(e,t,t+2):n-56320+(r-55296<<10)+65536}}function Gf(e,t){if(e){if(e[Ll]!==Vl)try{Fl(e,Ll,Vl)}catch(t){e[Ll]=Vl}if(e[Ul]||Fl(e,Ul,t),Dl[t])for(var r in jl)if(e[r]!==jl[r])try{Fl(e,r,jl[r])}catch(t){e[r]=jl[r]}}}var Bf,zf=x,c=b.CONSTRUCTOR||!Vf(function(e){zf.all(e).then(void 0,function(){})}),$f=a,qf=on,Xf=p,Yf=kc,Wf=La,A=(R({target:"Promise",stat:!0,forced:c},{all:function(e){var s=this,t=Xf.f(s),u=t.resolve,c=t.reject,r=Yf(function(){var n=qf(s.resolve),o=[],i=0,a=1;Wf(e,function(e){var t=i++,r=!1;a++,$f(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}}),R),gf=x,l=rn,N=v,S=Ko,I=gf&&gf.prototype,Zf=(A({target:"Promise",proto:!0,forced:b.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),N(gf)&&(vf=l("Promise").prototype.catch,I.catch!==vf&&S(I,"catch",vf,{unsafe:!0})),a),Jf=on,Qf=p,el=kc,tl=La,rl=(R({target:"Promise",stat:!0,forced:c},{race:function(e){var r=this,n=Qf.f(r),o=n.reject,t=el(function(){var t=Jf(r.resolve);tl(e,function(e){Zf(t,r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}}),a),nl=p,ol=(R({target:"Promise",stat:!0,forced:b.CONSTRUCTOR},{reject:function(e){var t=nl.f(this);return rl(t.reject,void 0,e),t.promise}}),ln),il=tn,al=p,C=R,o=b.CONSTRUCTOR,sl=Hf,ul=(rn("Promise"),C({target:"Promise",stat:!0,forced:o},{resolve:function(e){return sl(this,e)}}),a),cl=on,fl=p,ll=kc,pl=La,dl=(R({target:"Promise",stat:!0},{allSettled:function(e){var s=this,t=fl.f(s),u=t.resolve,r=t.reject,n=ll(function(){var n=cl(s.resolve),o=[],i=0,a=1;pl(e,function(e){var t=i++,r=!1;a++,ul(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}}),a),hl=on,yl=rn,vl=p,ml=kc,gl=La,Uf=(R({target:"Promise",stat:!0},{any:function(e){var u=this,c=yl("AggregateError"),t=vl.f(u),f=t.resolve,l=t.reject,r=ml(function(){var n=hl(u.resolve),o=[],i=0,a=1,s=!1;gl(e,function(e){var t=i++,r=!1;a++,dl(n,u,e).then(function(e){r||s||(s=!0,f(e))},function(e){r||s||(r=!0,o[t]=e,--a||l(new c(o,"No one promise resolved")))})}),--a||l(new c(o,"No one promise resolved"))});return r.error&&l(r.value),t.promise}}),R),A=x,N=y,wl=rn,bl=v,El=rc,Tl=Hf,gf=Ko,_l=A&&A.prototype,S=(Uf({target:"Promise",proto:!0,real:!0,forced:!!A&&N(function(){_l.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=El(this,wl("Promise")),e=bl(t);return this.then(e?function(e){return Tl(r,t()).then(function(){return e})}:t,e?function(e){return Tl(r,t()).then(function(){throw e})}:t)}}),bl(A)&&(l=wl("Promise").prototype.finally,_l.finally!==l&&gf(_l,"finally",l,{unsafe:!0})),u),Rl=Go,Ol=Ua,Al=Qr,Sl=S("".charAt),Cl=S("".charCodeAt),Il=S("".slice),kl=(Kf(!1),Kf(!0)),Nl=Ua,I=w,vf=uu,xl=I.set,Pl=I.getterFor("String Iterator"),c=(vf(String,"String",function(e){xl(this,{type:"String Iterator",string:Nl(e),index:0})},function(){var e=Pl(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=kl(t,r),e.index+=t.length,{value:t,done:!1})}),i),b=(c.Promise,fn("span").classList),C=b&&b.constructor&&b.constructor.prototype,o=C===Object.prototype?void 0:C,Ml=i,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},x=o,jl=cu,Fl=E,Uf=g,Ll=Uf("iterator"),Ul=Uf("toStringTag"),Vl=jl.values;for(Bf in Dl)Gf(Ml[Bf]&&Ml[Bf].prototype,Bf);Gf(x,"DOMTokenList");function Hl(e,t,r){(t=pp(t))in e?dp.f(e,t,hp(0,r)):e[t]=r}function Kl(e){if(9007199254740991<e)throw xp("Maximum allowed index exceeded");return e}function Gl(e,t){return Pp(e=e)&&(r=e.constructor,(Mp(r)&&(r===Fp||Pp(r.prototype))||Dp(r)&&null===(r=r[jp]))&&(r=void 0)),new(void 0===r?Fp:r)(0===t?0:t);var r}function Bl(t){return 51<=Up||!Lp(function(){var e=[];return(e.constructor={})[Vp]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function zl(e,t){if(!delete e[t])throw Wp("Cannot delete property "+Yp(t)+" of "+Yp(e))}function $l(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=od(e),s=nd(a),u=rd(t,r),c=id(s),f=0,t=n||ad,l=d?t(e,c):h||g?t(e,0):void 0;f<c;f++)if((w||f in s)&&(i=u(o=s[f],f,a),p))if(d)l[f]=i;else if(i)switch(p){case 3:return!0;case 5:return o;case 6:return f;case 2:sd(l,o)}else switch(p){case 4:return!1;case 7:sd(l,o)}return m?-1:y||v?v:l}}function ql(e,t){var r=[][e];return!!r&&ud(function(){r.call(null,t||function(){return 1},1)})}function Xl(u){var c=1==u;return function(e,t,r){for(var n,o=bd(e),i=wd(o),a=gd(t,r),s=Ed(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 Yl(e,t,r,n,o,i,a,s){for(var u,c,f=o,l=0,p=!!a&&Sd(a,s);l<n;)l in r&&(u=p?p(r[l],l,t):r[l],0<i&&Rd(u)?(c=Od(u),f=Yl(e,t,u,c,f,i-1)-1):(Ad(f+1),e[f]=u),f++),l++;return f}function Wl(c){return function(e,t,r,n){rh(t);var o=nh(e),i=oh(o),a=ih(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 ah("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 Zl(e,t,r){for(var n=Rh(e),o=_h(t,n),i=_h(void 0===r?n:r,n),a=Ah(Sh(i-o,0)),s=0;o<i;o++,s++)Oh(a,s,e[o]);return a.length=s,a}function Jl(e,t){var r=e.length,n=Ih(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 f=e,l=Jl(Ch(e,0,n),t),p=Jl(Ch(e,n),t),d=t,h=l.length,y=p.length,v=0,m=0;v<h||m<y;)f[v+m]=v<h&&m<y?d(l[v],p[m])<=0?l[v++]:p[m++]:v<h?l[v++]:p[m++];return f}function Ql(e){my(e,_y,{value:{objectID:"O"+Ry++,weakData:{}}})}function ep(e,t,r){for(var n in t)My(e,n,t[n],r);return e}var tp,rp,np,op,ip,ap,sp,up=p,cp=kc,fp=(R({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=up.f(this),e=cp(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),ln),lp=ja,pp=cn,dp=to,hp=Zr,yp=xa,vp=a,mp=m,gp=Pa,wp=Ys,bp=_,Ep=Hl,Tp=Da,_p=Ma,Rp=Array,Op=(R({target:"Array",stat:!0,forced:!Vf(function(e){Array.from(e)})},{from:function(e){var t=mp(e),e=wp(this),r=arguments.length,n=1<r?arguments[1]:void 0,o=void 0!==n;o&&(n=yp(n,2<r?arguments[2]:void 0));var i,a,s,u,c,f,r=_p(t),l=0;if(!r||this===Rp&&gp(r))for(i=bp(t),a=e?new this(i):Rp(i);l<i;l++)f=o?n(t[l],l):t[l],Ep(a,l,f);else for(c=(u=Tp(t,r)).next,a=e?new this:[];!(s=vp(c,u)).done;l++)f=o?function(e,t,r,n){try{return n?t(fp(r)[0],r[1]):t(r)}catch(t){lp(e,"throw",t)}}(u,n,[s.value,l],!0):s.value,Ep(a,l,f);return a.length=l,a}}),Jr),N=Array.isArray||function(e){return"Array"==Op(e)},Ap=(R({target:"Array",stat:!0},{isArray:N}),Ys),Sp=Hl,Cp=Array,Ip=(R({target:"Array",stat:!0,forced:y(function(){function e(){}return!(Cp.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(Ap(this)?this:Cp)(t);e<t;)Sp(r,e,arguments[e++]);return r.length=t,r}}),m),kp=_,Np=Go,A=k,xp=(R({target:"Array",proto:!0},{at:function(e){var t=Ip(this),r=kp(t),e=Np(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),A("at"),TypeError),Pp=N,Mp=Ys,Dp=tn,jp=g("species"),Fp=Array,Lp=y,Up=On,Vp=g("species"),gf=R,l=y,Hp=N,Kp=tn,Gp=m,Bp=_,zp=Kl,$p=Hl,qp=Gl,S=Bl,I=On,Xp=g("isConcatSpreadable"),vf=51<=I||!l(function(){var e=[];return e[Xp]=!1,e.concat()[0]!==e}),b=S("concat"),Yp=(gf({target:"Array",proto:!0,arity:1,forced:!vf||!b},{concat:function(e){for(var t,r,n,o=Gp(this),i=qp(o,0),a=0,s=-1,u=arguments.length;s<u;s++)if(function(e){if(!Kp(e))return!1;var t=e[Xp];return void 0!==t?!!t:Hp(e)}(n=-1===s?o:arguments[s]))for(r=Bp(n),zp(a+r),t=0;t<r;t++,a++)t in n&&$p(i,a,n[t]);else zp(a+1),$p(i,a++,n);return i.length=a,i}}),nn),Wp=TypeError,Zp=m,Jp=Bo,Qp=_,ed=zl,td=Math.min,C=k,rd=(R({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=Zp(this),n=Qp(r),o=Jp(e,n),i=Jp(t,n),e=2<arguments.length?arguments[2]:void 0,a=td((void 0===e?n:Jp(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]:ed(r,o),o+=s,i+=s;return r}}),C("copyWithin"),xa),nd=F,od=m,id=_,ad=Gl,sd=u([].push),o={forEach:$l(0),map:$l(1),filter:$l(2),some:$l(3),every:$l(4),find:$l(5),findIndex:$l(6),filterReject:$l(7)},ud=y,cd=o.every,fd=(R({target:"Array",proto:!0,forced:!ql("every")},{every:function(e){return cd(this,e,1<arguments.length?arguments[1]:void 0)}}),m),ld=Bo,pd=_,cu=k,dd=(R({target:"Array",proto:!0},{fill:function(e){for(var t=fd(this),r=pd(t),n=arguments.length,o=ld(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,i=void 0===n?r:ld(n,r);o<i;)t[o++]=e;return t}}),cu("fill"),o.filter),E=(R({target:"Array",proto:!0,forced:!Bl("filter")},{filter:function(e){return dd(this,e,1<arguments.length?arguments[1]:void 0)}}),R),hd=o.find,Uf=k,yd=!0,x=("find"in[]&&Array(1).find(function(){yd=!1}),E({target:"Array",proto:!0,forced:yd},{find:function(e){return hd(this,e,1<arguments.length?arguments[1]:void 0)}}),Uf("find"),R),vd=o.findIndex,p=k,md=!0,gd=("findIndex"in[]&&Array(1).findIndex(function(){md=!1}),x({target:"Array",proto:!0,forced:md},{findIndex:function(e){return vd(this,e,1<arguments.length?arguments[1]:void 0)}}),p("findIndex"),xa),wd=F,bd=m,Ed=_,A={findLast:Xl(0),findLastIndex:Xl(1)},Td=A.findLast,I=k,_d=(R({target:"Array",proto:!0},{findLast:function(e){return Td(this,e,1<arguments.length?arguments[1]:void 0)}}),I("findLast"),A.findLastIndex),l=k,Rd=(R({target:"Array",proto:!0},{findLastIndex:function(e){return _d(this,e,1<arguments.length?arguments[1]:void 0)}}),l("findLastIndex"),N),Od=_,Ad=Kl,Sd=xa,S=Yl,Cd=S,Id=m,kd=_,Nd=Go,xd=Gl,Pd=(R({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Id(this),r=kd(t),n=xd(t,0);return n.length=Cd(n,t,t,r,0,void 0===e?1:Nd(e)),n}}),S),Md=on,Dd=m,jd=_,Fd=Gl,Ld=(R({target:"Array",proto:!0},{flatMap:function(e){var t,r=Dd(this),n=jd(r);return Md(e),(t=Fd(r,0)).length=Pd(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),o.forEach),gf=ql("forEach")?[].forEach:function(e){return Ld(this,e,1<arguments.length?arguments[1]:void 0)},Ud=(R({target:"Array",proto:!0,forced:[].forEach!=gf},{forEach:gf}),ui.includes),vf=k,b=(R({target:"Array",proto:!0,forced:y(function(){return!Array(1).includes()})},{includes:function(e){return Ud(this,e,1<arguments.length?arguments[1]:void 0)}}),vf("includes"),R),Vd=ui.indexOf,C=ql,Hd=u([].indexOf),Kd=!!Hd&&1/Hd([1],1,-0)<0,cu=C("indexOf"),E=(b({target:"Array",proto:!0,forced:Kd||!cu},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return Kd?Hd(this,e,t)||0:Vd(this,e,t)}}),R),Uf=F,Gd=en,x=ql,Bd=u([].join),p=Uf!=Object,I=x("join",","),zd=(E({target:"Array",proto:!0,forced:p||!I},{join:function(e){return Bd(Gd(this),void 0===e?",":e)}}),$s),$d=en,qd=Go,Xd=_,A=ql,Yd=Math.min,Wd=[].lastIndexOf,Zd=!!Wd&&1/[1].lastIndexOf(1,-0)<0,l=A("lastIndexOf"),S=Zd||!l?function(e){if(Zd)return zd(Wd,this,arguments)||0;var t=$d(this),r=Xd(t),n=r-1;for((n=1<arguments.length?Yd(n,qd(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:Wd,Jd=(R({target:"Array",proto:!0,forced:S!==[].lastIndexOf},{lastIndexOf:S}),o.map),gf=(R({target:"Array",proto:!0,forced:!Bl("map")},{map:function(e){return Jd(this,e,1<arguments.length?arguments[1]:void 0)}}),R),Qd=m,eh=_,th=Kl,vf=y(function(){return 4294967297!==[].push.call({length:4294967296},1)}),ui=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),rh=(gf({target:"Array",proto:!0,arity:1,forced:vf||ui},{push:function(e){var t=Qd(this),r=eh(t),n=arguments.length;th(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return t.length=r}}),on),nh=m,oh=F,ih=_,ah=TypeError,C={left:Wl(!1),right:Wl(!0)},sh=C.left,b=On,cu=Ks,uh=(R({target:"Array",proto:!0,forced:!ql("reduce")||!cu&&79<b&&b<83},{reduce:function(e){var t=arguments.length;return sh(this,e,t,1<t?arguments[1]:void 0)}}),C.right),Uf=On,x=Ks,E=(R({target:"Array",proto:!0,forced:!ql("reduceRight")||!x&&79<Uf&&Uf<83},{reduceRight:function(e){return uh(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),R),ch=N,fh=u([].reverse),p=[1,2],I=(E({target:"Array",proto:!0,forced:String(p)===String(p.reverse())},{reverse:function(){return ch(this)&&(this.length=this.length),fh(this)}}),R),lh=N,ph=Ys,dh=tn,hh=Bo,yh=_,vh=en,mh=Hl,$s=g,gh=Zn,A=Bl("slice"),wh=$s("species"),bh=Array,Eh=Math.max,Th=(I({target:"Array",proto:!0,forced:!A},{slice:function(e,t){var r,n,o,i=vh(this),a=yh(i),s=hh(e,a),u=hh(void 0===t?a:t,a);if(lh(i)&&(r=i.constructor,(r=ph(r)&&(r===bh||lh(r.prototype))||dh(r)&&null===(r=r[wh])?void 0:r)===bh||void 0===r))return gh(i,s,u);for(n=new(void 0===r?bh:r)(Eh(u-s,0)),o=0;s<u;s++,o++)s in i&&mh(n,o,i[s]);return n.length=o,n}}),o.some),_h=(R({target:"Array",proto:!0,forced:!ql("some")},{some:function(e){return Th(this,e,1<arguments.length?arguments[1]:void 0)}}),Bo),Rh=_,Oh=Hl,Ah=Array,Sh=Math.max,Ch=Zl,Ih=Math.floor,l=Jl,S=r.match(/firefox\/(\d+)/i),gf=!!S&&+S[1],vf=/MSIE|Trident/.test(r),ui=r.match(/AppleWebKit\/(\d+)\./),cu=!!ui&&+ui[1],b=R,C=u,kh=on,Nh=m,xh=_,Ph=zl,Mh=Ua,Ks=y,Dh=l,x=ql,jh=gf,Fh=vf,Lh=On,Uh=cu,Vh=[],Hh=C(Vh.sort),Kh=C(Vh.push),Uf=Ks(function(){Vh.sort(void 0)}),E=Ks(function(){Vh.sort(null)}),p=x("sort"),Gh=!Ks(function(){if(Lh)return Lh<70;if(!(jh&&3<jh)){if(Fh)return!0;if(Uh)return Uh<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++)Vh.push({k:e+r,v:t})}for(Vh.sort(function(e,t){return t.v-e.v}),r=0;r<Vh.length;r++)e=Vh[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),Zn=(b({target:"Array",proto:!0,forced:Uf||!E||!p||!Gh},{sort:function(e){void 0!==e&&kh(e);var t=Nh(this);if(Gh)return void 0===e?Hh(t):Hh(t,e);for(var r,n,o=[],i=xh(t),a=0;a<i;a++)a in t&&Kh(o,t[a]);for(Dh(o,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:Mh(e)>Mh(t)?1:-1})),r=o.length,a=0;a<r;)t[a]=o[a++];for(;a<i;)Ph(t,a++);return t}}),ju("Array"),R),Bh=m,zh=Bo,$h=Go,qh=_,Xh=Kl,Yh=Gl,Wh=Hl,Zh=zl,$s=Bl("splice"),Jh=Math.max,Qh=Math.min,I=(Zn({target:"Array",proto:!0,forced:!$s},{splice:function(e,t){var r,n,o,i,a,s,u=Bh(this),c=qh(u),f=zh(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-f):(r=e-2,Qh(Jh($h(t),0),c-f)),Xh(c+r-n),o=Yh(u,n),i=0;i<n;i++)(a=f+i)in u&&Wh(o,i,u[a]);if(r<(o.length=n)){for(i=f;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:Zh(u,s);for(i=c;c-n+r<i;i--)Zh(u,i-1)}else if(n<r)for(i=c-n;f<i;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:Zh(u,s);for(i=0;i<r;i++)u[i+f]=arguments[i+2];return u.length=c-n+r,o}}),k("flat"),k("flatMap"),R),ey=m,ty=_,ry=zl,ny=Kl,A=1!==[].unshift(0),S=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),r=(I({target:"Array",proto:!0,arity:1,forced:A||S},{unshift:function(e){var t=ey(this),r=ty(t),n=arguments.length;if(n){ny(r+n);for(var o=r;o--;){var i=o+n;o in t?t[i]=t[o]:ry(t,i)}for(var a=0;a<n;a++)t[a]=arguments[a]}return t.length=r+n}}),c.Array,{exports:{}}),ui={},oy=Jr,iy=en,ay=An.f,sy=Zl,uy="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=(ui.f=function(e){if(!uy||"Window"!=oy(e))return ay(iy(e));var t=e;try{return ay(t)}catch(t){return sy(uy)}},y(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),gf=y,cy=tn,fy=Jr,ly=l,py=Object.isExtensible,vf=gf(function(){py(1)})||ly?function(e){return!!cy(e)&&(!ly||"ArrayBuffer"!=fy(e))&&(!py||py(e))}:py,On=!y(function(){return Object.isExtensible(Object.preventExtensions({}))}),dy=R,hy=u,cu=O,yy=tn,vy=Wn,my=to.f,gy=An,wy=ui,by=vf,Ey=On,Ty=!1,_y=un("meta"),Ry=0,Oy=r.exports={enable:function(){Oy.enable=function(){},Ty=!0;var o=gy.f,i=hy([].splice),e={};e[_y]=1,o(e).length&&(gy.f=function(e){for(var t=o(e),r=0,n=t.length;r<n;r++)if(t[r]===_y){i(t,r,1);break}return t},dy({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:wy.f}))},fastKey:function(e,t){if(!yy(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!vy(e,_y)){if(!by(e))return"F";if(!t)return"E";Ql(e)}return e[_y].objectID},getWeakData:function(e,t){if(!vy(e,_y)){if(!by(e))return!0;if(!t)return!1;Ql(e)}return e[_y].weakData},onFreeze:function(e){return Ey&&Ty&&by(e)&&!vy(e,_y)&&Ql(e),e}},Ay=(cu[_y]=!0,v),Sy=tn,Cy=Ta,C=R,x=i,Iy=u,Ks=fi,ky=Ko,b=r.exports,Ny=La,xy=Fu,Uf=v,Py=tn,E=y,p=Vf,Zn=au,My=Ko,Dy=to.f,jy=_a,Fy=ep,Ly=xa,Uy=Fu,Vy=La,Hy=uu,Ky=ju,Gy=n,By=r.exports.fastKey,zy=w.set,$y=w.getterFor;function qy(e){var r=Iy(ap[e]);ky(ap,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(np&&!Py(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return np&&!Py(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(np&&!Py(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}$s=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=By(t,!0),key:t,value:r,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),Gy?o.size++:e.size++,"F"!==n&&(o.index[n]=i)),e}function a(e,t){var r,e=u(e),n=By(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){Uy(e,s),zy(e,{type:r,index:jy(null),first:void 0,last:void 0,size:0}),Gy||(e.size=0),null!=t&&Vy(t,e[o],{that:e,AS_ENTRIES:n})}),s=e.prototype,u=$y(r);return Fy(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,Gy?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),Gy?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=Ly(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)}}),Fy(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)}}),Gy&&Dy(s,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",o=$y(t),i=$y(n);Hy(e,t,function(e,t){zy(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),Ky(t)}},rp=-1!==(A="Map").indexOf("Map"),np=-1!==A.indexOf("Weak"),op=rp?"set":"add",ip=x.Map,ap=ip&&ip.prototype,S={},Ks(A,!Uf(sp=ip)||!(np||ap.forEach&&!E(function(){(new ip).entries().next()})))?(sp=I.getConstructor($s,A,rp,op),b.enable()):Ks(A,!0)&&(c=(tp=new sp)[op](np?{}:-0,1)!=tp,l=E(function(){tp.has(1)}),gf=p(function(e){new ip(e)}),O=!np&&E(function(){for(var e=new ip,t=5;t--;)e[op](t,t);return!e.has(-0)}),gf||(((sp=$s(function(e,t){xy(e,ap);r=new ip,e=e,n=sp,Cy&&Ay(e=e.constructor)&&e!==n&&Sy(e=e.prototype)&&e!==n.prototype&&Cy(r,e);var r,n=r;return null!=t&&Ny(t,n[op],{that:n,AS_ENTRIES:rp}),n})).prototype=ap).constructor=sp),(l||O)&&(qy("delete"),qy("has"),rp&&qy("get")),(O||c)&&qy(op),np&&ap.clear&&delete ap.clear),S.Map=sp,C({global:!0,constructor:!0,forced:sp!=ip},S),Zn(sp,A),np||I.setStrong(sp,A,rp);function Xy(e,t){for(var r=0,n=Jy(t),o=new e(n);r<n;)o[r]=t[r++];return o}function Yy(e,t,r,n){for(var o,i,a,s=tv(e),u=ev(s),c=Qy(t,r),f=ov(null),l=nv(u),p=0;p<l;p++)a=u[p],(i=rv(c(a,p,s)))in f?sv(f[i],a):f[i]=[a];if(n&&(o=n(s))!==av)for(i in f)f[i]=iv(o,f[i]);return f}function Wy(e){for(var t,r,n=pv(this),o=lv(n),i=fv(e,1<arguments.length?arguments[1]:void 0),a=new hv,s=dv(o),u=0;u<s;u++)t=i(r=o[u],u,n),vv(a,t)?gv(yv(a,t),r):mv(a,t,[r]);return a}function Zy(e){return Tv[e].prototype}var Jy=_,Qy=xa,ev=F,tv=m,rv=cn,nv=_,ov=_a,iv=Xy,av=Array,sv=u([].push),uv=Yy,Wn=k,cv=(R({target:"Array",proto:!0},{group:function(e){return uv(this,e,1<arguments.length?arguments[1]:void 0)}}),Wn("group"),Yy),An=k,fv=(R({target:"Array",proto:!0,forced:!ql("groupBy")},{groupBy:function(e){return cv(this,e,1<arguments.length?arguments[1]:void 0)}}),An("groupBy"),xa),ui=u,lv=F,pv=m,dv=_,hv=rn("Map"),vf=hv.prototype,yv=ui(vf.get),vv=ui(vf.has),mv=ui(vf.set),gv=ui([].push),On=k,cu=Wy,Ta=(R({target:"Array",proto:!0,name:"groupToMap",forced:!ql("groupByToMap")},{groupByToMap:cu}),On("groupByToMap"),k),wv=(R({target:"Array",proto:!0},{groupToMap:Wy}),Ta("groupToMap"),_),bv=en,fi=k,Ev=Array,Tv=(R({target:"Array",proto:!0},{toReversed:function(){for(var e=bv(this),t=Ev,r=wv(e),n=new t(r),o=0;o<r;o++)n[o]=e[r-o-1];return n}}),fi("toReversed"),i),r=R,_v=on,Rv=en,Ov=Xy,x=k,Av=Array,Sv=u(Zy("Array").sort),Ks=(r({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&_v(e);var t=Rv(this),t=Ov(Av,t);return Sv(t,e)}}),x("toSorted"),R),p=k,Cv=Kl,Iv=_,kv=Bo,Nv=en,xv=Go,Pv=Array,Mv=Math.max,Dv=Math.min,jv=(Ks({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,o,i,a=Nv(this),s=Iv(a),u=kv(e,s),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,s-u):(r=e-2,Dv(Mv(xv(t),0),s-u)),o=Cv(s+r-n),i=Pv(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}}),p("toSpliced"),_),Fv=Go,Lv=RangeError,Uv=en,Vv=Array;R({target:"Array",proto:!0},{with:function(e,t){var r=Uv(this),n=Vv,o=t,i=jv(r),a=(e=Fv(e))<0?i+e:e;if(i<=a||a<0)throw Lv("Incorrect index");for(var s=new n(i),u=0;u<i;u++)s[u]=u===a?o:r[u];return s}});var Hv,E=i,gf=Bn,$s=v,l=T,O=Ko,c=g("asyncIterator"),C=E.AsyncIterator,S=gf.AsyncIteratorPrototype;if(S)Hv=S;else if($s(C))Hv=C.prototype;else if(gf.USE_FUNCTION_CONSTRUCTOR||E.USE_FUNCTION_CONSTRUCTOR)try{M=l(l(l(Function("return async function*(){}()")()))),l(M)===Object.prototype&&(Hv=M)}catch(ag){}$s((Hv=Hv||{})[c])||O(Hv,c,function(){return this});function Kv(e,t,r){var n=e.done;Zv.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function Gv(e){Jv(this,{type:"AsyncFromSyncIterator",iterator:Yv(e),next:e.next})}function Bv(e,t,r,n){try{var o=fm(e,"return");if(o)return cm("Promise").resolve(um(o,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function zv(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,a,s){var e={iterator:e,next:am(sm(e).next)},u=ym("Promise"),c=e.iterator,t=e.next,f=0,l=void 0!==a;return!l&&p||pm(a),new u(function(r,n){var o=function(e){Bv(c,n,e,n)},i=function(){try{if(p&&l)try{hm(f)}catch(e){o(e)}u.resolve(dm(lm(t,c))).then(function(e){try{if(dm(e).done)p?(s.length=f,r(s)):r(!y&&(h||void 0));else{var t=e.value;try{l?u.resolve(p?a(t,f):a(t)).then(function(e){if(d)i();else if(h)e?i():Bv(c,r,!1,n);else if(p)try{s[f++]=e,i()}catch(e){o(e)}else e?Bv(c,r,y||t,n):i()},o):(s[f++]=t,i())}catch(e){o(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};i()})}}function $v(e,t){if(!km||!Im(e)||!km(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 qv(e,t,r){r.get&&Nm(r.get,t,{getter:!0}),r.set&&Nm(r.set,t,{setter:!0}),xm.f(e,t,r)}var Xv=a,Yv=ln,Zn=_a,Wv=an,I=ep,A=w,Wn=Hv,Zv=rn("Promise"),Jv=A.set,Qv=A.getterFor("AsyncFromSyncIterator"),An=(Gv.prototype=I(Zn(Wn),{next:function(){var n=Qv(this);return new Zv(function(e,t){var r=Yv(Xv(n.next,n.iterator));Kv(r,e,t)})},return:function(){var n=Qv(this).iterator;return new Zv(function(e,t){var r=Wv(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=Yv(Xv(r,n));Kv(r,e,t)})}}),Gv),em=a,tm=An,rm=ln,nm=Da,om=an,im=g("asyncIterator"),am=on,sm=ln,um=a,cm=rn,fm=an,lm=a,pm=on,dm=ln,hm=Kl,ym=rn,F={toArray:zv(0),forEach:zv(1),every:zv(2),some:zv(3),find:zv(4)},vm=xa,mm=m,gm=Ys,wm=Da,bm=Ma,Em=an,vf=Zy,Tm=rn,_m=An,Rm=F.toArray,Om=g("asyncIterator"),Am=vf("Array").values,Sm=(R({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(Tm("Promise"))(function(e){var t=mm(i),r=(void 0!==s&&(s=vm(s,u)),Em(t,Om)),n=r?void 0:bm(t)||Am,o=gm(a)?new a:[],r=r?function(e,t){t=arguments.length<2?om(e,im):t;return t?rm(em(t,e)):new tm(nm(e))}(t,r):new _m(wm(t,n));e(Rm(r,s,o))})}}),o.filterReject),ui=k,Cm=(R({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return Sm(this,e,1<arguments.length?arguments[1]:void 0)}}),ui("filterOut"),o.filterReject),cu=k,On=(R({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return Cm(this,e,1<arguments.length?arguments[1]:void 0)}}),cu("filterReject"),R),Im=N,km=Object.isFrozen,Nm=(On({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!$v(e,!0))return!1;var t=e.raw;return t.length===e.length&&$v(t,!1)}}),xn.exports),xm=to,Ta=k,Pm=m,Mm=_,fi=(n&&(qv(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=Pm(this),t=Mm(e);return 0==t?void 0:e[t-1]},set:function(e){var t=Pm(this),r=Mm(t);return t[0==r?0:r-1]=e}}),Ta("lastItem")),k),Dm=m,jm=_,r=(n&&(qv(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=Dm(this),e=jm(e);return 0==e?0:e-1}}),fi("lastIndex")),u),Fm=on,Lm=_,Um=m,Vm=Gl,Hm=rn("Map"),x=Hm.prototype,Km=r(x.forEach),Gm=r(x.has),Bm=r(x.set),zm=r([].push),Ks=k,$m=(R({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=Um(this),o=Lm(n),i=Vm(n,0),a=new Hm,s=null!=e?Fm(e):function(e){return e},u=0;u<o;u++)r=s(t=n[u]),Gm(a,r)||Bm(a,r,t);return Km(a,function(e){zm(i,e)}),i}}),Ks("uniqueBy"),K.log),qm=null,Xm={debug:!1,log_disabled:!1,auto_track_page_view:!1,SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.0.1"};function Ym(e,t){t=V(V({},Xm),t);if(t.log_disabled?K.setLogLevel(0):t.debug&&K.setLogLevel(4),$m.debug("sdkKey : "+e),e||$m.error("SDK Key must not be null"),qm)return $m.debug("use already exists hackleClient"),qm;var o,r=!1,r=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&$m.debug("support sendBeacon API"),new Pr(e,ae,{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)})),e=new jr(e,ae,{fetchUrl:"".concat("https://sdk.hackle.io/api/v2/w/").concat(e).concat("/w"),updateInterval:-1,headers:((e={})["X-HACKLE-SDK-NAME"]=t.SDK_NAME_HEADER,e["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,e)}),r=new Vr(r,100,500),n=new Ir(e,r);return qm=n,t.auto_track_page_view&&(o=function(){return n.trackPageView({user:{id:_r()}})},n.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}o();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{o()}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})),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){Or(),n.close()}),n}var p={createInstance:Ym,getUserId:_r,setUserId:Rr,removeUserId:Or,Logger:K},Wm=(f.Bucket=e.Bucket=W,f.Container=e.Container=he,f.ContainerGroup=e.ContainerGroup=ie,f.CoreVersion=e.CoreVersion=Ae,f.Decision=e.Decision=ue,f.DecisionReason=e.DecisionReason=s,f.EventType=e.EventType=Z,f.Experiment=e.Experiment=fe,f.FeatureFlagDecision=e.FeatureFlagDecision=ce,f.IdentifierType=e.IdentifierType=pe,f.IdentifiersBuilder=e.IdentifiersBuilder=de,f.Logger=e.Logger=K,f.MATCH_OPERATORS=e.MATCH_OPERATORS=ke,f.MATCH_TYPES=e.MATCH_TYPES=Ce,f.MATCH_VALUE_TYPES=e.MATCH_VALUE_TYPES=Ie,f.MetaVersion=e.MetaVersion=Se,f.SEGMENT_TYPES=e.SEGMENT_TYPES=Pe,f.Segment=e.Segment=oe,f.Slot=e.Slot=le,f.TARGET_ACTION_TYPES=e.TARGET_ACTION_TYPES=Ne,f.TARGET_KEY_TYPES=e.TARGET_KEY_TYPES=xe,f.Target=e.Target=J,f.TargetAction=e.TargetAction=re,f.TargetCondition=e.TargetCondition=Q,f.TargetKey=e.TargetKey=ee,f.TargetMatch=e.TargetMatch=te,f.TargetRule=e.TargetRule=ne,f.TargetingType=e.TargetingType=Me,f.Variation=e.Variation=Y,f.Version=e.Version=Oe,j=e.createInstance=Ym,e.default=p,f.getUserId=e.getUserId=_r,f.removeUserId=e.removeUserId=Or,f.setUserId=e.setUserId=Rr,function(){return(Wm=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 Zm(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}Qm.prototype.variation=function(e,t,r){return this.client.variation(e,t,r)},Qm.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t,r)},Qm.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t)},Qm.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t)},Qm.prototype.track=function(e,t){this.client.track(e,t)},Qm.prototype.trackPageView=function(e){this.client.trackPageView(e)},Qm.prototype.onReady=function(e,t){this.client.onReady(e,t)},Qm.prototype.onInitialized=function(e){return this.client.onInitialized(e)};var Jm=Qm;function Qm(e,t){this.client=j(e,Wm(Wm({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.0.1"}))}var P={exports:{}},i={},eg=Object.getOwnPropertySymbols,tg=Object.prototype.hasOwnProperty,rg=Object.prototype.propertyIsEnumerable;var Bn=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]))tg.call(r,i)&&(n[i]=r[i]);if(eg)for(var a=eg(r),s=0;s<a.length;s++)rg.call(r,a[s])&&(n[a[s]]=r[a[s]])}return n},ng=Bn,T="function"==typeof Symbol&&Symbol.for,og=T?Symbol.for("react.element"):60103,ig=T?Symbol.for("react.portal"):60106,S=T?Symbol.for("react.fragment"):60107,ag=T?Symbol.for("react.strict_mode"):60108,C=T?Symbol.for("react.profiler"):60114,sg=T?Symbol.for("react.provider"):60109,ug=T?Symbol.for("react.context"):60110,cg=T?Symbol.for("react.forward_ref"):60112,gf=T?Symbol.for("react.suspense"):60113,fg=T?Symbol.for("react.memo"):60115,lg=T?Symbol.for("react.lazy"):60116,pg="function"==typeof Symbol&&Symbol.iterator;function dg(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 hg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yg={};function vg(e,t,r){this.props=e,this.context=t,this.refs=yg,this.updater=r||hg}function mg(){}function gg(e,t,r){this.props=e,this.context=t,this.refs=yg,this.updater=r||hg}vg.prototype.isReactComponent={},vg.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(dg(85));this.updater.enqueueSetState(this,e,t,"setState")},vg.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},mg.prototype=vg.prototype;var E=gg.prototype=new mg,wg=(E.constructor=gg,ng(E,vg.prototype),E.isPureReactComponent=!0,{current:null}),bg=Object.prototype.hasOwnProperty,Eg={key:!0,ref:!0,__self:!0,__source:!0};function Tg(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)bg.call(t,n)&&!Eg.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:og,type:e,key:i,ref:a,props:o,_owner:wg.current}}function _g(e){return"object"==typeof e&&null!==e&&e.$$typeof===og}var Rg=/\/+/g,Og=[];function Ag(e,t,r,n){var o;return Og.length?((o=Og.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 Sg(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,Og.length<10&&Og.push(e)}function Cg(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 og:case ig:i=!0}}if(i)return n(o,t,""===r?"."+Ig(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+Ig(s=t[a],a);i+=e(s,u,n,o)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=pg&&t[pg]||t["@@iterator"])?u:null))for(t=u.call(t),a=0;!(s=t.next()).done;)i+=e(s=s.value,u=r+Ig(s,a++),n,o);else if("object"===s)throw n=""+t,Error(dg(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return i}(e,"",t,r)}function Ig(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 kg(e,t){e.func.call(e.context,t,e.count++)}function Ng(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?xg(e,n,r,function(e){return e}):null!=e&&(_g(e)&&(t=o+(!(o=e).key||t&&t.key===e.key?"":(""+e.key).replace(Rg,"$&/")+"/")+r,e={$$typeof:og,type:o.type,key:t,ref:o.ref,props:o.props,_owner:o._owner}),n.push(e))}function xg(e,t,r,n,o){var i="";Cg(e,Ng,t=Ag(t,i=null!=r?(""+r).replace(Rg,"$&/")+"/":i,n,o)),Sg(t)}var Pg={current:null};function Mg(){var e=Pg.current;if(null===e)throw Error(dg(321));return e}var Dg,jg,Fg,l={ReactCurrentDispatcher:Pg,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:wg,IsSomeRendererActing:{current:!1},assign:ng},M=(i.Children={map:function(e,t,r){if(null==e)return e;var n=[];return xg(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;Cg(e,kg,t=Ag(null,null,t,r)),Sg(t)},count:function(e){return Cg(e,function(){return null},null)},toArray:function(e){var t=[];return xg(e,t,null,function(e){return e}),t},only:function(e){if(_g(e))return e;throw Error(dg(143))}},i.Component=vg,i.Fragment=S,i.Profiler=C,i.PureComponent=gg,i.StrictMode=ag,i.Suspense=gf,i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=l,i.cloneElement=function(e,t,r){if(null==e)throw Error(dg(267,e));var n=ng({},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=wg.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)bg.call(t,s)&&!Eg.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:og,type:e.type,key:o,ref:i,props:n,_owner:a}},i.createContext=function(e,t){return(e={$$typeof:ug,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:sg,_context:e},e.Consumer=e},i.createElement=Tg,i.createFactory=function(e){var t=Tg.bind(null,e);return t.type=e,t},i.createRef=function(){return{current:null}},i.forwardRef=function(e){return{$$typeof:cg,render:e}},i.isValidElement=_g,i.lazy=function(e){return{$$typeof:lg,_ctor:e,_status:-1,_result:null}},i.memo=function(e,t){return{$$typeof:fg,type:e,compare:void 0===t?null:t}},i.useCallback=function(e,t){return Mg().useCallback(e,t)},i.useContext=function(e,t){return Mg().useContext(e,t)},i.useDebugValue=function(){},i.useEffect=function(e,t){return Mg().useEffect(e,t)},i.useImperativeHandle=function(e,t,r){return Mg().useImperativeHandle(e,t,r)},i.useLayoutEffect=function(e,t){return Mg().useLayoutEffect(e,t)},i.useMemo=function(e,t){return Mg().useMemo(e,t)},i.useReducer=function(e,t,r){return Mg().useReducer(e,t,r)},i.useRef=function(e){return Mg().useRef(e)},i.useState=function(e){return Mg().useState(e)},i.version="16.14.0",{}),$s=Function.call.bind(Object.prototype.hasOwnProperty),Lg=function(){};function Ug(e,t,r,n,o){if("production"!==production)for(var i in e)if(Fg(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,Dg)}catch(e){a=e}!a||a instanceof Error||Lg((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 jg)&&(jg[a.message]=!0,i=o?o():"",Lg("Failed "+r+" type: "+a.message+(null!=i?i:"")))}}if("production"!==production&&(Dg="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",jg={},Fg=$s,Lg=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),Ug.resetWarningCache=function(){"production"!==production&&(jg={})},"production"!==production){var Vg=Bn,Hg=Ug,O="function"==typeof Symbol&&Symbol.for,Kg=O?Symbol.for("react.element"):60103,Gg=O?Symbol.for("react.portal"):60106,Bg=O?Symbol.for("react.fragment"):60107,zg=O?Symbol.for("react.strict_mode"):60108,$g=O?Symbol.for("react.profiler"):60114,qg=O?Symbol.for("react.provider"):60109,Xg=O?Symbol.for("react.context"):60110,Yg=O?Symbol.for("react.concurrent_mode"):60111,Wg=O?Symbol.for("react.forward_ref"):60112,Zg=O?Symbol.for("react.suspense"):60113,Jg=O?Symbol.for("react.suspense_list"):60120,Qg=O?Symbol.for("react.memo"):60115,e0=O?Symbol.for("react.lazy"):60116,t0=O?Symbol.for("react.block"):60121,r0=O?Symbol.for("react.fundamental"):60117,n0=O?Symbol.for("react.responder"):60118,o0=O?Symbol.for("react.scope"):60119,i0="function"==typeof Symbol&&Symbol.iterator,a0="@@iterator";function s0(e){if(null===e||"object"!=typeof e)return null;e=i0&&e[i0]||e[a0];return"function"==typeof e?e:null}var u0={current:null},c0={current:null},f0=/^(.*)[\\\/]/,l0=1;function p0(e){if(null==e)return null;if("number"==typeof e.tag&&D("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 Bg:return"Fragment";case Gg:return"Portal";case $g:return"Profiler";case zg:return"StrictMode";case Zg:return"Suspense";case Jg:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Xg:return"Context.Consumer";case qg:return"Context.Provider";case Wg:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case Qg:return p0(e.type);case t0:return p0(e.render);case e0:r=(t=e)._status===l0?t._result:null;if(r)return p0(r)}var t,r;return null}var d0={},h0=null;function y0(e){h0=e}d0.getCurrentStack=null,d0.getStackAddendum=function(){var e,t,r,n,o,i="",a=(h0&&(e=p0(h0.type),r=h0._owner,i+=(e=e,t=h0._source,r=r&&p0(r.type),o="",t?(n=(a=t.fileName).replace(f0,""),o=" (at "+(n=/^index\./.test(n)&&(a=a.match(f0))&&(a=a[1])?a.replace(f0,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(o=" (created by "+r+")"),"\n in "+(e||"Unknown")+o)),d0.getCurrentStack);return a&&(i+=a()||""),i};var v0={ReactCurrentDispatcher:u0,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:c0,IsSomeRendererActing:{current:!1},assign:Vg};function m0(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];g0("warn",e,r)}function D(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];g0("error",e,r)}function g0(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=v0.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){}}Vg(v0,{ReactDebugCurrentFrame:d0,ReactComponentTreeHook:{}});var w0={};function b0(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;w0[r]||(D("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),w0[r]=!0)}var E0={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){b0(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){b0(e,"replaceState")},enqueueSetState:function(e,t,r,n){b0(e,"setState")}},T0={};function _0(e,t,r){this.props=e,this.context=t,this.refs=T0,this.updater=r||E0}Object.freeze(T0),_0.prototype.isReactComponent={},_0.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")},_0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var R0,O0={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(R0 in O0)O0.hasOwnProperty(R0)&&!function(e,t){Object.defineProperty(_0.prototype,e,{get:function(){m0("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(R0,O0[R0]);function A0(){}function S0(e,t,r){this.props=e,this.context=t,this.refs=T0,this.updater=r||E0}A0.prototype=_0.prototype,(O=S0.prototype=new A0).constructor=S0,Vg(O,_0.prototype),O.isPureReactComponent=!0;var C0,I0,k0=Object.prototype.hasOwnProperty,N0={key:!0,ref:!0,__self:!0,__source:!0};function x0(e){if(k0.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function P0(e){if(k0.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var M0={},D0=function(e,t,r,n,o,i,a){e={$$typeof:Kg,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 j0(e,t,r){var n,o={},i=null,a=null,s=null,u=null;if(null!=t)for(n in x0(t)&&(a=t.ref,"string"==typeof(c=t).ref&&c0.current&&c.__self&&c0.current.stateNode!==c.__self&&(l=p0(c0.current.type),M0[l]||(D('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',p0(c0.current.type),c.ref),M0[l]=!0))),P0(t)&&(i=""+t.key),s=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)k0.call(t,n)&&!N0.hasOwnProperty(n)&&(o[n]=t[n]);var c,f,l,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(){I0||(I0=!0,D("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",f))}function g(){C0||(C0=!0,D("%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&&(l=o,p=c,g.isReactWarning=!0,Object.defineProperty(l,"key",{get:g,configurable:!0})),a&&(r=o,f=c,m.isReactWarning=!0,Object.defineProperty(r,"ref",{get:m,configurable:!0}))),D0(e,i,a,s,u,c0.current,o)}function F0(e){return"object"==typeof e&&null!==e&&e.$$typeof===Kg}var L0=".",U0=":",V0=!1,H0=/\/+/g;function K0(e){return(""+e).replace(H0,"$&/")}var G0=10,B0=[];function z0(e,t,r,n){var o;return B0.length?((o=B0.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 $0(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,B0.length<G0&&B0.push(e)}function q0(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 Kg:case Gg:s=!0}}if(s)return n(o,t,""===r?L0+X0(t,0):r),1;var u=0,c=""===r?L0:r+U0;if(Array.isArray(t))for(var f=0;f<t.length;f++)u+=e(i=t[f],c+X0(i,f),n,o);else if("function"==typeof(r=s0(t))){r===t.entries&&(V0||m0("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."),V0=!0);for(var l,p=r.call(t),d=0;!(l=p.next()).done;)u+=e(i=l.value,c+X0(i,d++),n,o)}else if("object"==a)throw r="",r=" If you meant to render a collection of children, use an array instead."+d0.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 X0(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 Y0(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function W0(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)?Z0(i,n,r,function(e){return e}):null!=i&&(F0(i)&&(e=o+(!(a=i).key||t&&t.key===i.key?"":K0(i.key)+"/")+r,i=D0(a.type,e,a.ref,a._self,a._source,a._owner,a.props)),n.push(i))}function Z0(e,t,r,n,o){var i="",t=z0(t,i=null!=r?K0(r)+"/":i,n,o);q0(e,W0,t),$0(t)}function J0(e){return"string"==typeof e||"function"==typeof e||e===Bg||e===Yg||e===$g||e===zg||e===Zg||e===Jg||"object"==typeof e&&null!==e&&(e.$$typeof===e0||e.$$typeof===Qg||e.$$typeof===qg||e.$$typeof===Xg||e.$$typeof===Wg||e.$$typeof===r0||e.$$typeof===n0||e.$$typeof===o0||e.$$typeof===t0)}function Q0(){var e=u0.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 ew(){if(c0.current){var e=p0(c0.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var tw=!1,rw={};function nw(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=ew())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),rw[t=r]||(rw[t]=!0,r="",e&&e._owner&&e._owner!==c0.current&&(r=" It was passed a child from "+p0(e._owner.type)+"."),y0(e),D('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),y0(null)))}function ow(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];F0(n)&&nw(n,t)}else if(F0(e))e._store&&(e._store.validated=!0);else if(e){var o=s0(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)F0(i.value)&&nw(i.value,t)}}function iw(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=p0(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==Wg&&t.$$typeof!==Qg)return;r=t.propTypes}r?(y0(e),Hg(r,e.props,"prop",n,d0.getStackAddendum),y0(null)):void 0===t.PropTypes||tw||(tw=!0,D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function aw(e,t,r){var n,o=J0(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+".":"")||ew(),null===e?a="null":Array.isArray(e)?a="array":void 0!==e&&e.$$typeof===Kg?(a="<"+(p0(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,D("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)),j0.apply(this,arguments));if(null==t)return t;if(o)for(var i=2;i<arguments.length;i++)ow(arguments[i],e);if(e===Bg){var a=t;y0(a);for(var s=Object.keys(a.props),u=0;u<s.length;u++){var c=s[u];if("children"!==c&&"key"!==c){D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==a.ref&&D("Invalid attribute `ref` supplied to `React.Fragment`."),y0(null)}else iw(t);return t}var sw=!1;try{var uw=Object.freeze({}),cw=new Map([[uw,null]]),fw=new Set([uw]);cw.set(0,0),fw.add(0)}catch(e){}function lw(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=Vg({},e.props),a=e.key,s=e.ref,u=e._self,c=e._source,f=e._owner;if(null!=t)for(n in x0(t)&&(s=t.ref,f=c0.current),P0(t)&&(a=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)k0.call(t,n)&&!N0.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?i[n]=o[n]:i[n]=t[n]);var l=arguments.length-2;if(1==l)i.children=r;else if(1<l){for(var p=Array(l),d=0;d<l;d++)p[d]=arguments[d+2];i.children=p}return D0(e.type,a,s,u,c,f,i)}.apply(this,arguments),o=2;o<arguments.length;o++)ow(arguments[o],n.type);return iw(n),n}function pw(e){var t=aw.bind(null,e);return t.type=e,sw||(sw=!0,m0("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 m0("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}O=aw,M.Children={map:function(e,t,r){if(null==e)return e;var n=[];return Z0(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=z0(null,null,t,r),q0(e,Y0,t),$0(t)},count:function(e){return q0(e,function(){return null},null)},toArray:function(e){var t=[];return Z0(e,t,null,function(e){return e}),t},only:function(e){if(F0(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},M.Component=_0,M.Fragment=Bg,M.Profiler=$g,M.PureComponent=S0,M.StrictMode=zg,M.Suspense=Zg,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=v0,M.cloneElement=lw,M.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&D("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:Xg,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:qg,_context:r}),o=!1,t={$$typeof:Xg,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return o||(o=!0,D("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,D("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},M.createElement=O,M.createFactory=pw,M.createRef=function(){var e={current:null};return Object.seal(e),e},M.forwardRef=function(e){return null!=e&&e.$$typeof===Qg?D("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?D("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&D("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||D("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:Wg,render:e}},M.isValidElement=F0,M.lazy=function(e){var t,r,n={$$typeof:e0,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){D("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){D("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},M.memo=function(e,t){return J0(e)||D("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:Qg,type:e,compare:void 0===t?null:t}},M.useCallback=function(e,t){return Q0().useCallback(e,t)},M.useContext=function(e,t){var r,n=Q0();return void 0!==t&&D("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?D("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&&D("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},M.useDebugValue=function(e,t){return Q0().useDebugValue(e,t)},M.useEffect=function(e,t){return Q0().useEffect(e,t)},M.useImperativeHandle=function(e,t,r){return Q0().useImperativeHandle(e,t,r)},M.useLayoutEffect=function(e,t){return Q0().useLayoutEffect(e,t)},M.useMemo=function(e,t){return Q0().useMemo(e,t)},M.useReducer=function(e,t,r){return Q0().useReducer(e,t,r)},M.useRef=function(e){return Q0().useRef(e)},M.useState=function(e){return Q0().useState(e)},M.version="16.14.0"}"production"===production?P.exports=i:P.exports=M;var dw=P.exports,hw=P.exports.createContext({hackle:void 0,user:void 0}),c=hw.Consumer,yw=hw.Provider;var vw=f.Logger.log;function mw(e,t){void 0===t&&(t="A");var r=P.exports.useContext(hw),n=r.hackle,o=r.user,i=P.exports.useCallback(function(){return(null==n?void 0:n.variation(e,o))||t},[t,e,o,n]),r=Zm(P.exports.useState(function(){return n?i():("undefined"!=typeof window&&vw.error("HackleClient is not existed"),t)}),2),a=r[0],r=r[1],s={key:e,user:o},u=Zm(P.exports.useState(s),2),c=u[0],u=u[1];return ww(c,s)||(u(s),r(i())),a}function gw(e){var t=P.exports.useContext(hw),r=t.hackle,n=t.user,o=P.exports.useCallback(function(){return(null==r?void 0:r.isFeatureOn(e,n))||!1},[e,n,r]),t=Zm(P.exports.useState(function(){return r?o():("undefined"!=typeof window&&vw.error("HackleClient is not existed"),!1)}),2),i=t[0],t=t[1],a={key:e,user:n},s=Zm(P.exports.useState(a),2),u=s[0],s=s[1];return ww(u,a)||(s(a),t(o())),i}function ww(e,t){var r,n,o;return 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=bw(e),o=bw(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 bw(e){return"object"==typeof e&&null!==e?e:{}}function Ew(e){var t,r=e.experimentKey,e=e.children,n=mw(r);return e&&"function"==typeof e?e(n):(P.exports.Children.forEach(e,function(e){P.exports.isValidElement(e)&&(e.props.variation?n===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?P.exports.cloneElement(t,{variation:n}):null)}function Tw(e){return e.variation,e=e.children,P.exports.createElement(P.exports.Fragment,null,e)}function _w(e){var t=gw(e.featureKey);return dw.createElement(dw.Fragment,null,e.children(t))}f.HackleContext=hw,f.HackleContextConsumer=c,f.HackleContextProvider=yw,f.HackleExperiment=Ew,f.HackleFeature=_w,f.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(o=e.timeout)?3e3:o,o=e.children,e={hackle:t,user:r},i=Zm(P.exports.useState(!1),2),a=i[0],s=i[1],e=(i=Zm(P.exports.useState(e),2))[0],u=i[1];return P.exports.useEffect(function(){u(function(e){return Wm(Wm({},e),{user:r})})},[r]),P.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){s(!0)},function(){s(!0)})},[t]),a?dw.createElement(yw,{value:e},o):null},f.HackleVariation=Tw,f.createInstance=function(e,t){return new Jm(e,t)},f.useFeature=gw,f.useFeatureFlagDetail=function(e){var t=(i=P.exports.useContext(hw)).hackle,r=i.user,n=P.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e,r))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION)},[e,r,t]),o=(i=Zm(P.exports.useState(function(){return t?n():("undefined"!=typeof window&&vw.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2))[0],i=i[1],a={key:e,user:r},s=(u=Zm(P.exports.useState(a),2))[0],u=u[1];return ww(s,a)||(u(a),i(n())),o},f.useTrack=function(){var e=P.exports.useContext(hw),t=e.hackle,r=e.user;return t?function(e){return null==t?void 0:t.track(e,r)}:("undefined"!=typeof window&&vw.error("HackleClient is not existed"),function(){})},f.useVariation=mw,f.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(a=P.exports.useContext(hw)).hackle,n=a.user,o=P.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e,n))||f.Decision.of(t,f.DecisionReason.EXCEPTION)},[t,e,n,r]),i=(a=Zm(P.exports.useState(function(){return r?o():("undefined"!=typeof window&&vw.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2))[0],a=a[1],s={key:e,user:n},u=(c=Zm(P.exports.useState(s),2))[0],c=c[1];return ww(u,s)||(c(s),a(o())),i},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.0.0",
3
+ "version": "11.0.1",
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.0.0"
42
+ "@hackler/javascript-sdk": "11.0.1"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": ">=16.8.0"