@hackler/react-sdk 11.1.0 → 11.2.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/index.umd.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).hackleReactSDK={})}(this,function(l){"use strict";var j,F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e={},L=(l.setUserId=void 0,l.removeUserId=void 0,l.getUserId=void 0,l.Version=void 0,l.Variation=void 0,l.TargetingType=void 0,l.TargetRule=void 0,l.TargetMatch=void 0,l.TargetKey=void 0,l.TargetCondition=void 0,l.TargetAction=void 0,l.Target=void 0,l.TARGET_KEY_TYPES=void 0,l.TARGET_ACTION_TYPES=void 0,l.Slot=void 0,l.Segment=void 0,l.SEGMENT_TYPES=void 0,l.MetaVersion=void 0,l.MATCH_VALUE_TYPES=void 0,l.MATCH_TYPES=void 0,l.MATCH_OPERATORS=void 0,l.Logger=void 0,l.IdentifiersBuilder=void 0,l.IdentifierType=void 0,l.FeatureFlagDecision=void 0,l.Experiment=void 0,l.EventType=void 0,l.DecisionReason=void 0,l.Decision=void 0,l.CoreVersion=void 0,l.ContainerGroup=void 0,l.Container=void 0,l.Bucket=void 0,Object.defineProperty(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}}}}$.setLogLevel=function(e){this.logLevel=e=void 0===e?3:e},$._log=function(e,t){var r;switch(e){case"WARN":r="orange";break;case"ERROR":r="red";break;default:r="#AAAAAA"}if(t instanceof Error)G.log(e,r,t.message,t);else try{G.log(e,r,t)}catch(e){}},$.logLevel=3,$.log={error:function(e){1<=$.logLevel&&$._log("ERROR",e)},warn:function(e){2<=$.logLevel&&$._log("WARN",e)},info:function(e){3<=$.logLevel&&$._log("INFO",e)},debug:function(e){4<=$.logLevel&&$._log("DEBUG",e)}};var K=$,G=(q.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},q),B=[0,8,16,32,64,128,256,512],z=K.log;function q(){}function $(){}function X(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function Y(e,t,r){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&&(0===r.status?t(new Error("Request error")):e({statusCode:r.status,body:r.responseText}))},r.onerror=function(){t()},r.setRequestHeader("content-type","application/json"),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),le=(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),fe=(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,l,f,p,d){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.status=o,this.version=i,this.variations=a,this.userOverrides=s,this.segmentOverrides=u,this.targetAudiences=c,this.targetRules=l,this.defaultRule=f,this.containerId=p,this._winnerVariationId=d}function t(){}function be(e,t){this.isOn=e,this.reason=t}function Ee(e,t){this.variation=e,this.reason=t}fr.tryParse=function(e){var t,r,n,o,e=fr.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 fr(new Ae(parseInt(t,10),parseInt(r,10),parseInt(n,10)),Se.parse(o),Se.parse(e))},fr.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},fr.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},fr.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},fr.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},fr.prototype.isLessThan=function(e){return this.compareTo(e)<0},fr.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},fr.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=fr,Ae=(lr.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},lr),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),Ie=["MATCH","NOT_MATCH"],ke=["STRING","NUMBER","BOOLEAN","VERSION"],Ce=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],xe=["VARIATION","BUCKET"],Ne=["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),f=($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.isLessThan(t)},$t),p=(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.isLessThanOrEqualTo(t)},qt),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 f,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),f=(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 f(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}},qe=(Nt.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},Nt.prototype.calculateSlotNumber=function(e,t,r){r=ze.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},Nt),$e=(xt.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)},xt.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new xt,n=0,o=e.reverse();n<o.length;n++)r=new xt(o[n],r);return r},xt),Xe=(Ct.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)}},Ct),Ye=(kt.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)},kt),We=(It.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)}},It),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,lt=(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",f="type",p="vendor",r="version",c="mobile",n="tablet",ft=(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],l=r=0;l<u.length&&!i;)if(i=u[l++].exec(e))for(n=0;n<c.length;n++)a=i[++r],"object"==typeof(o=c[n])&&0<o.length?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,a):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=a?a.replace(o[1],o[2]):void 0:this[o[0]]=a?o[1].call(this,a,o[2]):void 0:4==o.length&&(this[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):void 0):this[o]=a||void 0;s+=2}},str:function(e,t){for(var r in t)if("object"==typeof t[r]&&0<t[r].length){for(var n=0;n<t[r].length;n++)if(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,[f,n]],[/applecoremedia\/[\w\.]+ \((ipad)/],[a,[p,"Apple"],[f,n]],[/(apple\s{0,1}tv)/i],[[a,"Apple TV"],[p,"Apple"],[f,"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,[f,n]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[a,[p,"Amazon"],[f,n]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[a,d.mapper.str,d.maps.device.amazon.model],[p,"Amazon"],[f,c]],[/android.+aft([bms])\sbuild/i],[a,[p,"Amazon"],[f,"smarttv"]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[a,p,[f,c]],[/\((ip[honed|\s\w*]+);/i],[a,[p,"Apple"],[f,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,[f,c]],[/\(bb10;\s(\w+)/i],[a,[p,"BlackBerry"],[f,c]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[a,[p,"Asus"],[f,n]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[p,"Sony"],[a,"Xperia Tablet"],[f,n]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[p,"Sony"],[f,c]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[p,a,[f,"console"]],[/android.+;\s(shield)\sbuild/i],[a,[p,"Nvidia"],[f,"console"]],[/(playstation\s[34portablevi]+)/i],[a,[p,"Sony"],[f,"console"]],[/(sprint\s(\w+))/i],[[p,d.mapper.str,d.maps.device.sprint.vendor],[a,d.mapper.str,d.maps.device.sprint.model],[f,c]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[p,[a,/_/g," "],[f,c]],[/(nexus\s9)/i],[a,[p,"HTC"],[f,n]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[a,[p,"Huawei"],[f,c]],[/android.+(bah2?-a?[lw]\d{2})/i],[a,[p,"Huawei"],[f,n]],[/(microsoft);\s(lumia[\s\w]+)/i],[p,a,[f,c]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[a,[p,"Microsoft"],[f,"console"]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[p,"Microsoft"],[f,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"],[f,c]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[a,[p,"Motorola"],[f,n]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[p,d.util.trim],[a,d.util.trim],[f,"smarttv"]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[p,"Samsung"],[f,"smarttv"]],[/\(dtv[\);].+(aquos)/i],[a,[p,"Sharp"],[f,"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,[f,n]],[/smart-tv.+(samsung)/i],[p,[f,"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,[f,c]],[/sie-(\w*)/i],[a,[p,"Siemens"],[f,c]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[p,"Nokia"],a,[f,c]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[a,[p,"Acer"],[f,n]],[/android.+([vl]k\-?\d{3})\s+build/i],[a,[p,"LG"],[f,n]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[p,"LG"],a,[f,n]],[/(lg) netcast\.tv/i],[p,a,[f,"smarttv"]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[a,[p,"LG"],[f,c]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[p,a,[f,n]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[a,[p,"Lenovo"],[f,n]],[/(lenovo)[_\s-]?([\w-]+)/i],[p,a,[f,c]],[/linux;.+((jolla));/i],[p,a,[f,c]],[/((pebble))app\/[\d\.]+\s/i],[p,a,[f,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[p,a,[f,c]],[/crkey/i],[[a,"Chromecast"],[p,"Google"],[f,"smarttv"]],[/android.+;\s(glass)\s\d/i],[a,[p,"Google"],[f,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[a,[p,"Google"],[f,n]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[a,[p,"Google"],[f,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"],[f,c]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[a,/_/g," "],[p,"Xiaomi"],[f,n]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[a,[p,"Meizu"],[f,c]],[/(mz)-([\w-]{2,})/i],[[p,"Meizu"],a,[f,c]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[a,[p,"OnePlus"],[f,c]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[a,[p,"RCA"],[f,n]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[a,[p,"Dell"],[f,n]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[a,[p,"Verizon"],[f,n]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[p,"Barnes & Noble"],a,[f,n]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[a,[p,"NuVision"],[f,n]],[/android.+;\s(k88)\sbuild/i],[a,[p,"ZTE"],[f,n]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[a,[p,"Swiss"],[f,c]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[a,[p,"Swiss"],[f,n]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[a,[p,"Zeki"],[f,n]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[p,"Dragon Touch"],a,[f,n]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[a,[p,"Insignia"],[f,n]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[a,[p,"NextBook"],[f,n]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[p,"Voice"],a,[f,c]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[p,"LvTel"],a,[f,c]],[/android.+;\s(PH-1)\s/i],[a,[p,"Essential"],[f,c]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[a,[p,"Envizen"],[f,n]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[p,a,[f,n]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[a,[p,"MachSpeed"],[f,n]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[p,a,[f,n]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[a,[p,"Rotor"],[f,n]],[/android.+(KS(.+))\s+build/i],[a,[p,"Amazon"],[f,n]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[p,a,[f,n]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[f,d.util.lowerize],p,a],[/[\s\/\(](smart-?tv)[;\)]/i],[[f,"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=ft.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 qe,t=new He(new Ge),r=new Be(e),n=new at(t,r),e=new st(e);this.abTestFlow=$e.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=$e.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 It(){}function kt(){}function Ct(e){this.overrideResolver=e}function xt(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function Nt(){}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 qt(){}function $t(){}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 lr(e,t,r){this.major=e,this.minor=t,this.patch=r}function fr(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}xr.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},xr.set=function(e,t,r,n,o,i){var a="",s="",u="",r=(n&&(a=(n=xr.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},xr.remove=function(e,t){xr.set(e,"",-1,t,!1,!1)},xr.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=xr,Ir=K.log,kr=(Cr.prototype.variation=function(e,t,r){return this.variationDetail(e,t,r).variation},Cr.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 Ir.error("Unexpected exception while deciding variation for experiment[".concat(e,"]. Returning default variation[").concat(r,"] : ").concat(t)),ue.of(r,s.EXCEPTION)}},Cr.prototype.isFeatureOn=function(e,t){return this.featureFlagDetail(e,t).isOn},Cr.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 Ir.error('"Unexpected exception while deciding feature flag['.concat(e,"]. Returning default value[false] : ").concat(t)),ce.off(s.EXCEPTION)}},Cr.prototype.track=function(e,t){Ir.debug("track event : ".concat(JSON.stringify(e)));e=this._convertEvent(e),t=this.hackleUserResolver.resolveOrNull(t);t&&this.hackleInternalClient._track(e,t)},Cr.prototype.trackPageView=function(e){Ir.debug("tracking page view");e=this.hackleUserResolver.resolveOrNull(null==e?void 0:e.user);e&&this.hackleInternalClient._track({key:"$page_view"},e)},Cr.prototype.onReady=function(e,t){this.hackleInternalClient._onReady(e,t=void 0===t?3e3:t)},Cr.prototype.onInitialized=function(e){return this.hackleInternalClient._onInitialized({timeout:null==e?void 0:e.timeout})},Cr.prototype.close=function(){Ir.debug("Hackle Client is closing"),this.hackleInternalClient._close()},Cr.prototype._convertEvent=function(e){return"string"==typeof e?{key:e}:e},Cr);function Cr(e,t){this.hackleInternalClient=new lt(e,t),this.hackleUserResolver=new wr}function xr(){}function Nr(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}}function Pr(e){return e&&e.Math==Math&&e}function h(e){try{return!!e()}catch(e){return!0}}Gr.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(),Nr(e));this.httpRequest.postRequest(this.dispatchUrl,e,r,t)},Gr.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=Nr(e),this.httpRequest.sendBeacon(this.beaconDispatchUrl,n,r,t)):this.dispatch(e,t)};var Mr=Gr,Dr=K.log,jr=(y.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},y.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},y.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},y.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},y.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},y.prototype.getContainerOrNull=function(e){return this.containers.get(e)},y.from=function(e){var t=this,r=y.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]}),n=y.associateBy(y.mapNotUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),o=y.associateBy(y.mapNotUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),i=y.associate(e.events,function(e){return[e.key,new Z(e.id,e.key)]}),a=y.associateBy(y.mapNotUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),e=y.associate(e.containers,function(e){return[e.id,t.toContainer(e)]});return new y(n,o,r,i,a,e)},y.toBucket=function(e){return new W(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new fe(t,r,e)}))},y.toExperimentOrNull=function(e,t){var r=this,n=this.experimentStatusOrNull(t.execution.status),o=t.variations.map(function(e){return new Y(e.id,e.key,"DROPPED"===e.status)}),i=y.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),a=y.mapNotUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,Me.IDENTIFIER)}),s=y.mapNotUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,Me.PROPERTY)}),u=y.mapNotUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,Me.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new le(t.id,t.key,e,t.identifierType,n,t.version,o,i,a,s,u,c,t.containerId,t.winnerVariationId)},y.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void Dr.debug("Unsupported status [".concat(e,"]"))}},y.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new ne(t,e)},y.toTargetActionOrNull=function(e){var t=this.parseOrNull(xe,e.type);return t&&new re(t,e.variationId,e.bucketId)},y.toTargetOrNull=function(e,t){var r=this,e=y.mapNotUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new J(e)},y.toConditionOrNull=function(e,t){var r=this.toTargetKeyOrNull(e.key);if(r&&t.supports(r.type))return(t=this.toTargetMatchOrNull(e.match))&&new Q(r,t)},y.toTargetKeyOrNull=function(e){var t=this.parseOrNull(Ne,e.type);return t&&new ee(t,e.name)},y.toTargetMatchOrNull=function(e){var t=this.parseOrNull(Ie,e.type),r=this.parseOrNull(Ce,e.operator),n=this.parseOrNull(ke,e.valueType);return t&&r&&n&&new te(t,r,n,e.values)},y.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)}))},y.toContainer=function(e){var t=this;return new he(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},y.toContainerGroup=function(e){return new ie(e.id,e.experiments)},y.parseOrNull=function(e,t){e=e.find(function(e){return e===t});return e||Dr.debug("Unsupported type [".concat(t,"]. Please use the latest version of sdk.")),e},y.mapNotUndefined=function(e,r){return e.reduce(function(e,t){t=r(t);return t&&e.push(t),e},Array())},y.associateTo=function(e,t,r){return e.reduce(function(e,t){t=r(t);return e.set(t[0],t[1]),e},t)},y.associate=function(e,t){return y.associateTo(e,new Map,t)},y.associateBy=function(e,t){return this.associateTo(e,new Map,function(e){return[t(e),e]})},y),Fr=(Kr.prototype.onReady=function(){return this.readyPromise},Kr.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},Kr.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()},Kr.prototype.get=function(){return this.workspace},Kr.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)},Kr.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()},Kr.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},Kr.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=jr.from(e),this.readyPromiseResolver())}},Kr.prototype.onRequestRejected=function(e){this.isStarted&&(this.errorRetryController.countError(),console.error("Error fetching data",e),this.readyPromiseRejecter(e))},Kr.prototype.close=function(){this.stop()},Kr),Lr=(Hr.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*B[Math.min(B.length-1,this.errorCount)]+Math.round(1e3*Math.random())},Hr.prototype.countError=function(){this.errorCount<B.length-1&&this.errorCount++},Hr.prototype.reset=function(){this.errorCount=0},Hr),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==F?F:"undefined"!=typeof self?self:{},i=Pr("object"==typeof globalThis&&globalThis)||Pr("object"==typeof window&&window)||Pr("object"==typeof self&&self)||Pr("object"==typeof o&&o)||function(){return this}()||Function("return this")(),c={},n=!h(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),f=!h(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Ur=Function.prototype.call,a=f?Ur.bind(Ur):function(){return Ur.apply(Ur,arguments)},p={},u={}.propertyIsEnumerable,Vr=Object.getOwnPropertyDescriptor,r=Vr&&!u.call({1:2},1);function Hr(){this.errorCount=0}function Kr(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 Lr,this.currentRequest=null,this.syncOnCurrentRequestComplete=!1,this.isReadyPromiseSettled=!1}function y(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 Gr(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}p.f=r?function(e){e=Vr(this,e);return!!e&&e.enumerable}:u;function Br(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function zr(e){return un(sn(e),8,-1)}function qr(e){if(null==e)throw pn("Can't call method on "+e);return e}function $r(e){return dn(hn(e))}function v(e){return"function"==typeof e}function Xr(e){return"object"==typeof e?null!==e:yn(e)}function Yr(e,t){return arguments.length<2?(r=vn[e],mn(r)?r:void 0):vn[e]&&vn[e][t];var r}function Wr(e){try{return An(e)}catch(e){return"Object"}}function Zr(e){if(Sn(e))return e;throw kn(In(e)+" is not a function")}function Jr(e,t){return null==(e=e[t])?void 0:Cn(e)}function Qr(t,r){try{jn(Dn,t,{value:r,configurable:!0,writable:!0})}catch(e){Dn[t]=r}return r}function m(e){return Vn(Un(e))}function en(e){return"Symbol("+(void 0===e?"":e)+")_"+$n(++zn+qn,36)}function g(e){var t;return Yn(Jn,e)&&(Wn||"string"==typeof Jn[e])||(t="Symbol."+e,Wn&&Yn(Qn,e)?Jn[e]=Qn[e]:Jn[e]=(Zn&&eo?eo:to)(t)),Jn[e]}function tn(e){return e=function(e,t){if(!no(e)||oo(e))return e;var r=io(e,uo);if(r){if(r=ro(r,e,t=void 0===t?"default":t),!no(r)||oo(r))return r;throw so("Can't convert object to primitive value")}return ao(e,t=void 0===t?"number":t)}(e,"string"),co(e)?e:e+""}function rn(e){return fo?lo.createElement(e):{}}function nn(e){if(To(e))return e;throw Ro(_o(e)+" is not an object")}var F=f,o=Function.prototype,r=o.bind,on=o.call,an=F&&r.bind(on,on),u=F?function(e){return e&&an(e)}:function(e){return e&&function(){return on.apply(e,arguments)}},o=u,sn=o({}.toString),un=o("".slice),r=h,cn=zr,ln=Object,fn=u("".split),F=r(function(){return!ln("z").propertyIsEnumerable(0)})?function(e){return"String"==cn(e)?fn(e,""):ln(e)}:ln,pn=TypeError,dn=F,hn=qr,yn=v,vn=i,mn=v,o=u({}.isPrototypeOf),r=Yr("navigator","userAgent")||"",w=r,gn=i.process,wn=i.Deno,gn=gn&&gn.versions||wn&&wn.version,wn=gn&&gn.v8,gn=On=!(On=wn?0<(b=wn.split("."))[0]&&b[0]<4?1:+(b[0]+b[1]):On)&&w&&(!(b=w.match(/Edge\/(\d+)/))||74<=b[1])&&(b=w.match(/Chrome\/(\d+)/))?+b[1]:On,bn=gn,wn=h,w=!!Object.getOwnPropertySymbols&&!wn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bn&&bn<41}),b=w&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,En=Yr,Tn=v,_n=o,Rn=Object,On=b?function(e){return"symbol"==typeof e}:function(e){var t=En("Symbol");return Tn(t)&&_n(t.prototype,Rn(e))},An=String,Sn=v,In=Wr,kn=TypeError,Cn=Zr,xn=a,Nn=v,Pn=Xr,Mn=TypeError,wn={exports:{}},Dn=i,jn=Object.defineProperty,Fn=Qr,Fn=i["__core-js_shared__"]||Fn("__core-js_shared__",{}),Ln=Fn,Un=((wn.exports=function(e,t){return Ln[e]||(Ln[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),Vn=Object,Hn=m,Kn=u({}.hasOwnProperty),Gn=Object.hasOwn||function(e,t){return Kn(Hn(e),t)},Bn=u,zn=0,qn=Math.random(),$n=Bn(1..toString),Bn=i,Xn=wn.exports,Yn=Gn,E=en,Wn=w,Zn=b,Jn=Xn("wks"),Qn=Bn.Symbol,eo=Qn&&Qn.for,to=Zn?Qn:Qn&&Qn.withoutSetter||E,ro=a,no=Xr,oo=On,io=Jr,ao=function(e,t){var r,n;if("string"===t&&Nn(r=e.toString)&&!Pn(n=xn(r,e)))return n;if(Nn(r=e.valueOf)&&!Pn(n=xn(r,e)))return n;if("string"!==t&&Nn(r=e.toString)&&!Pn(n=xn(r,e)))return n;throw Mn("Can't convert object to primitive value")},so=TypeError,uo=g("toPrimitive"),co=On,w=Xr,lo=i.document,fo=w(lo)&&w(lo.createElement),po=rn,b=!n&&!h(function(){return 7!=Object.defineProperty(po("div"),"a",{get:function(){return 7}}).a}),ho=a,yo=p,vo=Br,mo=$r,go=tn,wo=Gn,bo=b,Eo=Object.getOwnPropertyDescriptor,Xn=(c.f=n?Eo:function(e,t){if(e=mo(e),t=go(t),bo)try{return Eo(e,t)}catch(e){}if(wo(e,t))return vo(!ho(yo.f,e,t),e[t])},{}),Bn=n&&h(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),To=Xr,_o=String,Ro=TypeError,Oo=b,Ao=nn,So=tn,Io=TypeError,ko=Object.defineProperty,Co=Object.getOwnPropertyDescriptor,xo=(Xn.f=n?Bn?function(e,t,r){var n;return Ao(e),t=So(t),Ao(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=Co(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}),ko(e,t,r)}:ko:function(e,t,r){if(Ao(e),t=So(t),Ao(r),Oo)try{return ko(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Io("Accessors not supported");return"value"in r&&(e[t]=r.value),e},Xn),No=Br,E=n?function(e,t,r){return xo.f(e,t,No(1,r))}:function(e,t,r){return e[t]=r,e},On={exports:{}},w=n,p=Gn,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=Fn,Po=u(Function.toString);w(T.inspectSource)||(T.inspectSource=function(e){return Po(e)});function Mo(e){return Zo[e]||(Zo[e]=Wo(e))}function Do(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(hi(r)&&vi(r,i,n),n.global)o?e[t]=r:mi(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:yi.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function jo(e){return(e=+e)!=e||0==e?0:bi(e)}function Fo(e,t){return(e=Ei(e))<0?Ti(e+t,0):_i(e,t)}function _(e){return 0<(e=e.length)?Oi(Ri(e),9007199254740991):0}function Lo(s){return function(e,t,r){var n,o=Ai(e),i=Ii(o),a=Si(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 Uo(e,t){var r,n=Ci(e),o=0,i=[];for(r in n)!ki(Ni,r)&&ki(n,r)&&Pi(i,r);for(;t.length>o;)!ki(n,r=t[o++])||~xi(i,r)||Pi(i,r);return i}function Vo(e,t,r){for(var n=Hi(t),o=Gi.f,i=Ki.f,a=0;a<n.length;a++){var s=n[a];Vi(e,s)||r&&Vi(r,s)||o(e,s,i(t,s))}}function Ho(e,t){return(e=Xi[$i(e)])==Wi||e!=Yi&&(zi(t)?Bi(t):!!t)}function R(e,t){var r,n,o,i,a=e.target,s=e.global,u=e.stat;if(r=s?Zi:u?Zi[a]||ta(a,{}):(Zi[a]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(i=Ji(r,n))&&i.value:r[n],!na(s?n:a+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;ra(o,i)}(e.sham||i&&i.sham)&&Qi(o,"sham",!0),ea(r,n,o,e)}}var Ko,Go,Bo,zo,qo,$o,Xo,Yo,b=T.inspectSource,w=v,T=b,O=i.WeakMap,w=w(O)&&/native code/.test(T(O)),T=wn.exports,Wo=en,Zo=T("keys"),O={},wn=u,Jo=Xr,Qo=E,ei=Gn,T=Fn,A=Mo,ti=O,ri=i.TypeError,ni=i.WeakMap,w=(Xo=w||T.state?(Ko=T.state||(T.state=new ni),Go=wn(Ko.get),Bo=wn(Ko.has),zo=wn(Ko.set),qo=function(e,t){if(Bo(Ko,e))throw new ri("Object already initialized");return t.facade=e,zo(Ko,e,t),t},$o=function(e){return Go(Ko,e)||{}},function(e){return Bo(Ko,e)}):(ti[Yo=A("state")]=!0,qo=function(e,t){if(ei(e,Yo))throw new ri("Object already initialized");return t.facade=e,Qo(e,Yo,t),t},$o=function(e){return ei(e,Yo)?e[Yo]:{}},function(e){return ei(e,Yo)}),{set:qo,get:$o,has:Xo,enforce:function(e){return Xo(e)?$o(e):qo(e,{})},getterFor:function(t){return function(e){if(Jo(e)&&(e=$o(e)).type===t)return e;throw ri("Incompatible receiver, "+t+" required")}}}),T=h,oi=v,ii=Gn,ai=n,si=p.CONFIGURABLE,ui=b,ci=w.enforce,li=w.get,fi=Object.defineProperty,pi=ai&&!T(function(){return 8!==fi(function(){},"length",{value:8}).length}),di=String(String).split("String"),ni=On.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),(!ii(e,"name")||si&&e.name!==t)&&(ai?fi(e,"name",{value:t,configurable:!0}):e.name=t),pi&&r&&ii(r,"arity")&&e.length!==r.arity&&fi(e,"length",{value:r.arity});try{r&&ii(r,"constructor")&&r.constructor?ai&&fi(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=ci(e);return ii(r,"source")||(r.source=di.join("string"==typeof t?t:"")),e},hi=(Function.prototype.toString=ni(function(){return oi(this)&&li(this).source||ui(this)},"toString"),v),yi=Xn,vi=On.exports,mi=Qr,wn={},gi=Math.ceil,wi=Math.floor,bi=Math.trunc||function(e){e=+e;return(0<e?wi:gi)(e)},Ei=jo,Ti=Math.max,_i=Math.min,Ri=jo,Oi=Math.min,Ai=$r,Si=Fo,Ii=_,ti={includes:Lo(!0),indexOf:Lo(!1)},ki=Gn,Ci=$r,xi=ti.indexOf,Ni=O,Pi=u([].push),A=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mi=Uo,Di=A.concat("length","prototype"),T=(wn.f=Object.getOwnPropertyNames||function(e){return Mi(e,Di)},{}),ni=(T.f=Object.getOwnPropertySymbols,Yr),ji=wn,Fi=T,Li=nn,Ui=u([].concat),T=ni("Reflect","ownKeys")||function(e){var t=ji.f(Li(e)),r=Fi.f;return r?Ui(t,r(e)):t},Vi=Gn,Hi=T,Ki=c,Gi=Xn,Bi=h,zi=v,qi=/#|\.prototype\./,$i=Ho.normalize=function(e){return String(e).replace(qi,".").toLowerCase()},Xi=Ho.data={},Yi=Ho.NATIVE="N",Wi=Ho.POLYFILL="P",ni=Ho,Zi=i,Ji=c.f,Qi=E,ea=Do,ta=Qr,ra=Vo,na=ni,T=!h(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),oa=Gn,ia=v,aa=m,sa=Mo("IE_PROTO"),ua=Object,ca=ua.prototype,T=T?ua.getPrototypeOf:function(e){e=aa(e);if(oa(e,sa))return e[sa];var t=e.constructor;return ia(t)&&e instanceof t?t.prototype:e instanceof ua?ca:null},la=v,fa=String,pa=TypeError,da=u,ha=nn,ya=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=da(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return ha(e),function(e){if("object"==typeof e||la(e))return;throw pa("Can't set "+fa(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),va={},ma=Uo,ga=A,S=Object.keys||function(e){return ma(e,ga)},wa=Xn,ba=nn,Ea=$r,Ta=S;va.f=n&&!Bn?Object.defineProperties:function(e,t){ba(e);for(var r,n=Ea(t),o=Ta(t),i=o.length,a=0;a<i;)wa.f(e,r=o[a++],n[r]);return e};function _a(){}function Ra(e){e.write(Ha("")),e.close();var t=e.parentWindow.Object;return e=null,t}function Oa(e,t){return Ya(e),void 0===t?e:Wa?Za(e,t):function(){return e.apply(t,arguments)}}function Aa(e){return void 0!==e&&(Ja.Array===e||es[Qa]===e)}function Sa(e){if(null!=e)return ss(e,cs)||ss(e,"@@iterator")||us[as(e)]}function Ia(e,t){if(t=arguments.length<2?hs(e):t,fs(t))return ps(ls(t,e));throw ys(ds(e)+" is not iterable")}function ka(e,t,r){var n,o;ms(e);try{if(!(n=gs(e,"return"))){if("throw"===t)throw r;return r}n=vs(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return ms(n),r}function Ca(e,t){this.stopped=e,this.result=t}function xa(e,t,r){function n(e){return i&&Is(i,"normal",e),new Ca(!0,e)}function o(e){return p?(Es(e),y?v(e[0],e[1],n):v(e[0],e[1])):y?v(e,n):v(e)}var i,a,s,u,c,l,f=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),v=ws(t,f);if(d)i=e.iterator;else if(h)i=e;else{if(!(r=Ss(e)))throw ks(Ts(e)+" is not iterable");if(_s(r)){for(a=0,s=Rs(e);a<s;a++)if((u=o(e[a]))&&Os(Cs,u))return u;return new Ca(!1)}i=As(e,r)}for(c=(d?e:i).next;!(l=bs(c,i)).done;){try{u=o(l.value)}catch(e){Is(i,"throw",e)}if("object"==typeof u&&u&&Os(Cs,u))return u}return new Ca(!1)}function Na(e){if("Symbol"===xs(e))throw TypeError("Cannot convert a Symbol value to a string");return Ns(e)}function Pa(e,t){var r,n=2<arguments.length?arguments[2]:void 0,o=js(Xs,this);return Ls?r=Ls(new qs,o?Fs(this):Xs):(r=o?this:Vs(Xs),Hs(r,zs,"Error")),void 0!==t&&Hs(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:Ps(e)}(t)),Bs&&Hs(r,"stack",function(e,t){if(qa&&"string"==typeof e&&!Ga.prepareStackTrace)for(;t--;)e=Ba(e,za,"");return e}(r.stack,1)),o=r,$a(t=n)&&"cause"in t&&Xa(o,"cause",t.cause),Gs(e,$s,{that:n=[]}),Hs(r,"errors",n),r}var Ma,S=Yr("document","documentElement"),Da=nn,ja=va,Fa=A,Bn=O,La=S,Ua=rn,Va=Mo("IE_PROTO"),Ha=function(e){return"<script>"+e+"<\/script>"},Ka=function(){try{Ma=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ka="undefined"==typeof document||document.domain&&Ma?Ra(Ma):((t=Ua("iframe")).style.display="none",La.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ha("document.F=Object")),e.close(),e.F);for(var r=Fa.length;r--;)delete Ka.prototype[Fa[r]];return Ka()},va=(Bn[Va]=!0,Object.create||function(e,t){var r;return null!==e?(_a.prototype=Da(e),r=new _a,_a.prototype=null,r[Va]=e):r=Ka(),void 0===t?r:ja.f(r,t)}),Ga=Error,Ba=u("".replace),A=String(Ga("zxcasd").stack),za=/\n\s*at [^:]*:[^\n]*/,qa=za.test(A),$a=Xr,Xa=E,Ya=Zr,Wa=f,Za=u(u.bind),Bn={},Ja=Bn,Qa=g("iterator"),es=Array.prototype,A={},A=(A[g("toStringTag")]="z","[object z]"===String(A)),I=A,ts=v,rs=zr,ns=g("toStringTag"),os=Object,is="Arguments"==rs(function(){return arguments}()),I=I?rs: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=os(e),ns))?t:is?rs(e):"Object"==(t=rs(e))&&ts(e.callee)?"Arguments":t},as=I,ss=Jr,us=Bn,cs=g("iterator"),ls=a,fs=Zr,ps=nn,ds=Wr,hs=Sa,ys=TypeError,vs=a,ms=nn,gs=Jr,ws=Oa,bs=a,Es=nn,Ts=Wr,_s=Aa,Rs=_,Os=o,As=Ia,Ss=Sa,Is=ka,ks=TypeError,Cs=Ca.prototype,xs=I,Ns=String,Ps=Na,Ms=Br,k=!h(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ms(1,7)),7!==e.stack)}),Ds=R,js=o,Fs=T,Ls=ya,Us=Vo,Vs=va,Hs=E,Ks=Br,Gs=xa,Bs=k,zs=g("toStringTag"),qs=Error,$s=[].push,Xs=(Ls?Ls(Pa,qs):Us(Pa,qs,{name:!0}),Pa.prototype=Vs(qs.prototype,{constructor:Ks(1,Pa),message:Ks(1,""),name:Ks(1,"AggregateError")})),k=(Ds({global:!0,constructor:!0,arity:2},{AggregateError:Pa}),g),Us=va,Ks=Xn.f,Ys=k("unscopables"),Ws=Array.prototype;null==Ws[Ys]&&Ks(Ws,Ys,{configurable:!0,value:Us(null)});function C(e){Ws[Ys][e]=!0}var Zs,Ds=h,k=v,Ks=T,Us=Do,Js=g("iterator"),x=!1;[].keys&&("next"in(ru=[].keys())?(Ks=Ks(Ks(ru)))!==Object.prototype&&(Zs=Ks):x=!0);function Qs(e,t,r){(e=e&&!r?e.prototype:e)&&!ou(e,iu)&&nu(e,iu,{configurable:!0,value:t})}function eu(){return this}function tu(e,t,r,n,o,i,a){var s=r,u=t,c=void 0;function l(e){if(e===o&&v)return v;if(!Ru&&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=su(au,{next:uu(+!c,n)}),cu(s,u,!1),lu[u]=fu;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[Ou]||h["@@iterator"]||o&&h[o],v=!Ru&&y||l(o);if((n="Array"==t&&h.entries||y)&&(s=yu(n.call(new e)))!==Object.prototype&&s.next&&(yu(s)!==_u&&(vu?vu(s,_u):hu(s[Ou])||wu(s,Ou,eu)),mu(s,c,!0)),Eu&&"values"==o&&y&&"values"!==y.name&&(Tu?gu(h,"name","values"):(d=!0,v=function(){return du(y,this)})),o)if(f={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(p in f)!Ru&&!d&&p in h||wu(h,p,f[p]);else pu({target:t,proto:!0,forced:Ru||d},f);return h[Ou]!==v&&wu(h,Ou,v,{name:o}),bu[t]=v,f}k((Zs=null==Zs||Ds(function(){var e={};return Zs[Js].call(e)!==e})?{}:Zs)[Js])||Us(Zs,Js,function(){return this});var ru={IteratorPrototype:Zs,BUGGY_SAFARI_ITERATORS:x},nu=Xn.f,ou=Gn,iu=g("toStringTag"),au=ru.IteratorPrototype,su=va,uu=Br,cu=Qs,lu=Bn,fu=function(){return this},pu=R,du=a,hu=v,yu=T,vu=ya,mu=Qs,gu=E,wu=Do,bu=Bn,Eu=p.PROPER,Tu=p.CONFIGURABLE,_u=ru.IteratorPrototype,Ru=ru.BUGGY_SAFARI_ITERATORS,Ou=g("iterator"),Au=$r,Ks=C,k=Bn,Ds=w,Us=Xn.f,x=tu,p=n,Su=Ds.set,Iu=Ds.getterFor("Array Iterator"),ru=x(Array,"Array",function(e,t){Su(this,{type:"Array Iterator",target:Au(e),index:0,kind:t})},function(){var e=Iu(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"),Bn=k.Arguments=k.Array;if(Ks("keys"),Ks("values"),Ks("entries"),p&&"values"!==Bn.name)try{Us(Bn,"name",{value:"values"})}catch(pg){}function ku(e){var e=Du(e),t=ju.f;Fu&&e&&!e[Lu]&&t(e,Lu,{configurable:!0,get:function(){return this}})}function Cu(e,t){if(Uu(t,e))return e;throw Vu("Incorrect invocation")}function xu(){}function Nu(e){if(!Hu(e))return!1;try{return zu(xu,Bu,e),!0}catch(e){return!1}}function Pu(e){if(!Hu(e))return!1;switch(Ku(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Xu||!!$u(qu,Gu(e))}catch(e){return!0}}var Mu=I,Ds=(A||Do(Object.prototype,"toString",A?{}.toString:function(){return"[object "+Mu(this)+"]"},{unsafe:!0}),"process"==zr(i.process)),Du=Yr,ju=Xn,Fu=n,Lu=g("species"),Uu=o,Vu=TypeError,x=u,k=h,Hu=v,Ku=I,Gu=b,Bu=[],zu=Yr("Reflect","construct"),qu=/^\s*(?:class|function)\b/,$u=x(qu.exec),Xu=!qu.exec(xu);Pu.sham=!0;function Yu(e,t){var r,e=tc(e).constructor;if(void 0===e||null==(r=tc(e)[rc]))return t;if(Ju(e=r))return e;throw ec(Qu(e)+" is not a constructor")}var Wu,Zu,Ks=!zu||k(function(){var e;return Nu(Nu.call)||!Nu(Object)||!Nu(function(){e=!0})||e})?Pu:Nu,Ju=Ks,Qu=Wr,ec=TypeError,tc=nn,rc=g("species"),p=Function.prototype,nc=p.apply,oc=p.call,Us="object"==typeof Reflect&&Reflect.apply||(f?oc.bind(nc):function(){return oc.apply(nc,arguments)}),Bn=u([].slice),ic=TypeError,A=/(?:ipad|iphone|ipod).*applewebkit/i.test(r),ac=i,sc=Us,o=Oa,uc=v,cc=Gn,I=h,lc=S,fc=Bn,pc=rn,x=A,k=Ds,p=ac.setImmediate,f=ac.clearImmediate,dc=ac.process,hc=ac.Dispatch,yc=ac.Function,S=ac.MessageChannel,vc=ac.String,mc=0,gc={};try{Wu=ac.location}catch(pg){}function wc(e){return function(){Tc(e)}}function bc(e){Tc(e.data)}function Ec(e){ac.postMessage(vc(e),Wu.protocol+"//"+Wu.host)}var Tc=function(e){var t;cc(gc,e)&&(t=gc[e],delete gc[e],t())};p&&f||(p=function(e){var t=arguments.length,r=1;if(t<r)throw ic("Not enough arguments");var n=uc(e)?e:yc(e),o=fc(arguments,1);return gc[++mc]=function(){sc(n,void 0,o)},Zu(mc),mc},f=function(e){delete gc[e]},k?Zu=function(e){dc.nextTick(wc(e))}:hc&&hc.now?Zu=function(e){hc.now(wc(e))}:S&&!x?(x=(k=new S).port2,k.port1.onmessage=bc,Zu=o(x.postMessage,x)):ac.addEventListener&&uc(ac.postMessage)&&!ac.importScripts&&Wu&&"file:"!==Wu.protocol&&!I(Ec)?(Zu=Ec,ac.addEventListener("message",bc,!1)):Zu="onreadystatechange"in pc("script")?function(e){lc.appendChild(pc("script")).onreadystatechange=function(){lc.removeChild(this),Tc(e)}}:function(e){setTimeout(wc(e),0)});function _c(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function Rc(){this.head=null,this.tail=null}function Oc(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=zc(r),this.reject=zc(n)}var Ac,Sc,Ic,kc,Cc,xc,Nc,S={set:p,clear:f},k=i,o=/ipad|iphone|ipod/i.test(r)&&void 0!==k.Pebble,x=/web0s(?!.*chrome)/i.test(r),I=i,p=Oa,f=c.f,Pc=S.set,k=A,c=o,A=x,Mc=Ds,o=I.MutationObserver||I.WebKitMutationObserver,x=I.document,Dc=I.process,N=I.Promise,f=f(I,"queueMicrotask"),f=f&&f.value,A=(f||(Ac=function(){var e,t;for(Mc&&(e=Dc.domain)&&e.exit();Sc;){t=Sc.fn,Sc=Sc.next;try{t()}catch(e){throw Sc?kc():Ic=void 0,e}}Ic=void 0,e&&e.enter()},kc=k||Mc||A||!o||!x?!c&&N&&N.resolve?((k=N.resolve(void 0)).constructor=N,Nc=p(k.then,k),function(){Nc(Ac)}):Mc?function(){Dc.nextTick(Ac)}:(Pc=p(Pc,I),function(){Pc(Ac)}):(Cc=!0,xc=x.createTextNode(""),new o(Ac).observe(xc,{characterData:!0}),function(){xc.data=Cc=!Cc})),f||function(e){e={fn:e,next:void 0};Ic&&(Ic.next=e),Sc||(Sc=e,kc()),Ic=e}),jc=i,c=(Rc.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}},Rc),N=i.Promise,k="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,p=!k&&!Ds&&"object"==typeof window&&"object"==typeof document,I=i,Fc=N,x=v,o=ni,Lc=b,f=g,Uc=p,Vc=k,Hc=gn,Kc=(Fc&&Fc.prototype,f("species")),Gc=!1,Bc=x(I.PromiseRejectionEvent),b={CONSTRUCTOR:o("Promise",function(){var e=Lc(Fc),t=e!==String(Fc);if(!t&&66===Hc)return!0;if(!Hc||Hc<51||!/native code/.test(e)){var e=new Fc(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[Kc]=r,!(Gc=e.then(function(){})instanceof r))return!0}return!t&&(Uc||Vc)&&!Bc}),REJECTION_EVENT:Bc,SUBCLASSING:Gc},p={},zc=Zr;p.f=function(e){return new Oc(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,l=e.reject,f=e.domain;try{u?(s||(2===t.rejection&&(i=t,Jc(ol,Zc,function(){var e=i.facade;Wc?ml.emit("rejectionHandled",e):_l("rejectionhandled",e,i.value)})),t.rejection=1),!0===u?r=a:(f&&f.enter(),r=u(a),f&&(f.exit(),o=!0)),r===e.promise?l(yl("Promise-chain cycle")):(n=El(r))?Jc(n,r,c,l):c(r)):l(a)}catch(e){f&&!o&&f.exit(),l(e)}}var $c,Xc,Yc,k=R,Wc=Ds,Zc=i,Jc=a,f=Do,x=ya,I=Qs,o=ku,Qc=Zr,el=v,tl=Xr,rl=Cu,nl=Yu,ol=S.set,il=A,al=_c,sl=c,S=w,A=N,c=p,ul=b.CONSTRUCTOR,cl=b.REJECTION_EVENT,ll=b.SUBCLASSING,fl=S.getterFor("Promise"),pl=S.set,S=A&&A.prototype,dl=A,hl=S,yl=Zc.TypeError,vl=Zc.document,ml=Zc.process,gl=c.f,wl=gl,bl=!!(vl&&vl.createEvent&&Zc.dispatchEvent),El=function(e){var t;return!(!tl(e)||!el(t=e.then))&&t},Tl=function(r,o){r.notified||(r.notified=!0,il(function(){for(var e,n,t=r.reactions;e=t.get();)qc(e,r);r.notified=!1,o&&!r.rejection&&(n=r,Jc(ol,Zc,function(){var e,t=n.facade,r=n.value;if(Rl(n)&&(e=al(function(){Wc?ml.emit("unhandledRejection",r,t):_l("unhandledrejection",t,r)}),n.rejection=Wc||Rl(n)?2:1,e.error))throw e.value}))}))},_l=function(e,t,r){var n;bl?((n=vl.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Zc.dispatchEvent(n)):n={promise:t,reason:r},!cl&&(t=Zc["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=jc.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},Rl=function(e){return 1!==e.rejection&&!e.parent},Ol=function(t,r,n){return function(e){t(r,e,n)}},Al=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,Tl(e,!0))},Sl=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw yl("Promise can't be resolved itself");var n=El(e);n?il(function(){var t={done:!1};try{Jc(n,e,Ol(Sl,t,r),Ol(Al,t,r))}catch(e){Al(t,e,r)}}):(r.value=e,r.state=1,Tl(r,!1))}catch(e){Al({done:!1},e,r)}}};if(ul&&(hl=(dl=function(e){rl(this,hl),Qc(e),Jc($c,this);var t=fl(this);try{e(Ol(Sl,t),Ol(Al,t))}catch(e){Al(t,e)}}).prototype,($c=function(e){pl(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new sl,rejection:!1,state:0,value:void 0})}).prototype=f(hl,"then",function(e,t){var r=fl(this),n=gl(nl(this,dl));return r.parent=!0,n.ok=!el(e)||e,n.fail=el(t)&&t,n.domain=Wc?ml.domain:void 0,0==r.state?r.reactions.add(n):il(function(){qc(n,r)}),n.promise}),Xc=function(){var e=new $c,t=fl(e);this.promise=e,this.resolve=Ol(Sl,t),this.reject=Ol(Al,t)},c.f=gl=function(e){return e===dl||void 0===e?new Xc:wl(e)},el(A)&&S!==Object.prototype)){Yc=S.then,ll||f(S,"then",function(e,t){var r=this;return new dl(function(e,t){Jc(Yc,r,e,t)}).then(e,t)},{unsafe:!0});try{delete S.constructor}catch(pg){}x&&x(S,hl)}k({global:!0,constructor:!0,wrap:!0,forced:ul},{Promise:dl}),I(dl,"Promise",!1),o("Promise");var Il=g("iterator"),kl=!1;try{var Cl=0,xl={next:function(){return{done:!!Cl++}},return:function(){kl=!0}};xl[Il]=function(){return this},Array.from(xl,function(){throw 2})}catch(pg){}function Nl(e,t){if(!t&&!kl)return!1;var r=!1;try{var n={};n[Il]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function Pl(e,t){return Wl(e),Zl(t)&&t.constructor===e?t:((0,(e=Jl.f(e)).resolve)(t),e.promise)}function Ml(o){return function(e,t){var r,e=gf(wf(e)),t=mf(t),n=e.length;return t<0||n<=t?o?"":void 0:(r=Ef(e,t))<55296||56319<r||t+1===n||(n=Ef(e,t+1))<56320||57343<n?o?bf(e,t):r:o?Tf(e,t,t+2):n-56320+(r-55296<<10)+65536}}function Dl(e,t){if(e){if(e[xf]!==Pf)try{Cf(e,xf,Pf)}catch(t){e[xf]=Pf}if(e[Nf]||Cf(e,Nf,t),If[t])for(var r in kf)if(e[r]!==kf[r])try{Cf(e,r,kf[r])}catch(t){e[r]=kf[r]}}}var jl,Fl=N,c=b.CONSTRUCTOR||!Nl(function(e){Fl.all(e).then(void 0,function(){})}),Ll=a,Ul=Zr,Vl=p,Hl=_c,Kl=xa,A=(R({target:"Promise",stat:!0,forced:c},{all:function(e){var s=this,t=Vl.f(s),u=t.resolve,c=t.reject,r=Hl(function(){var n=Ul(s.resolve),o=[],i=0,a=1;Kl(e,function(e){var t=i++,r=!1;a++,Ll(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),ll=N,f=Yr,x=v,S=Do,k=ll&&ll.prototype,Gl=(A({target:"Promise",proto:!0,forced:b.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),x(ll)&&(ul=f("Promise").prototype.catch,k.catch!==ul&&S(k,"catch",ul,{unsafe:!0})),a),Bl=Zr,zl=p,ql=_c,$l=xa,Xl=(R({target:"Promise",stat:!0,forced:c},{race:function(e){var r=this,n=zl.f(r),o=n.reject,t=ql(function(){var t=Bl(r.resolve);$l(e,function(e){Gl(t,r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}}),a),Yl=p,Wl=(R({target:"Promise",stat:!0,forced:b.CONSTRUCTOR},{reject:function(e){var t=Yl.f(this);return Xl(t.reject,void 0,e),t.promise}}),nn),Zl=Xr,Jl=p,I=R,o=b.CONSTRUCTOR,Ql=Pl,ef=(Yr("Promise"),I({target:"Promise",stat:!0,forced:o},{resolve:function(e){return Ql(this,e)}}),a),tf=Zr,rf=p,nf=_c,of=xa,af=(R({target:"Promise",stat:!0},{allSettled:function(e){var s=this,t=rf.f(s),u=t.resolve,r=t.reject,n=nf(function(){var n=tf(s.resolve),o=[],i=0,a=1;of(e,function(e){var t=i++,r=!1;a++,ef(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),sf=Zr,uf=Yr,cf=p,lf=_c,ff=xa,xl=(R({target:"Promise",stat:!0},{any:function(e){var u=this,c=uf("AggregateError"),t=cf.f(u),l=t.resolve,f=t.reject,r=lf(function(){var n=sf(u.resolve),o=[],i=0,a=1,s=!1;ff(e,function(e){var t=i++,r=!1;a++,af(n,u,e).then(function(e){r||s||(s=!0,l(e))},function(e){r||s||(r=!0,o[t]=e,--a||f(new c(o,"No one promise resolved")))})}),--a||f(new c(o,"No one promise resolved"))});return r.error&&f(r.value),t.promise}}),R),A=N,x=h,pf=Yr,df=v,hf=Yu,yf=Pl,ll=Do,vf=A&&A.prototype,S=(xl({target:"Promise",proto:!0,real:!0,forced:!!A&&x(function(){vf.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=hf(this,pf("Promise")),e=df(t);return this.then(e?function(e){return yf(r,t()).then(function(){return e})}:t,e?function(e){return yf(r,t()).then(function(){throw e})}:t)}}),df(A)&&(f=pf("Promise").prototype.finally,vf.finally!==f&&ll(vf,"finally",f,{unsafe:!0})),u),mf=jo,gf=Na,wf=qr,bf=S("".charAt),Ef=S("".charCodeAt),Tf=S("".slice),_f=(Ml(!1),Ml(!0)),Rf=Na,k=w,ul=tu,Of=k.set,Af=k.getterFor("String Iterator"),c=(ul(String,"String",function(e){Of(this,{type:"String Iterator",string:Rf(e),index:0})},function(){var e=Af(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=_f(t,r),e.index+=t.length,{value:t,done:!1})}),i),b=(c.Promise,rn("span").classList),I=b&&b.constructor&&b.constructor.prototype,o=I===Object.prototype?void 0:I,Sf=i,If={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},N=o,kf=ru,Cf=E,xl=g,xf=xl("iterator"),Nf=xl("toStringTag"),Pf=kf.values;for(jl in If)Dl(Sf[jl]&&Sf[jl].prototype,jl);Dl(N,"DOMTokenList");function Mf(e,t,r){(t=ip(t))in e?ap.f(e,t,sp(0,r)):e[t]=r}function Df(e){if(9007199254740991<e)throw Op("Maximum allowed index exceeded");return e}function jf(e,t){return Ap(e=e)&&(r=e.constructor,(Sp(r)&&(r===Cp||Ap(r.prototype))||Ip(r)&&null===(r=r[kp]))&&(r=void 0)),new(void 0===r?Cp:r)(0===t?0:t);var r}function Ff(t){return 51<=Np||!xp(function(){var e=[];return(e.constructor={})[Pp]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function Lf(e,t){if(!delete e[t])throw Gp("Cannot delete property "+Kp(t)+" of "+Kp(e))}function Uf(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=Zp(e),s=Wp(a),u=Yp(t,r),c=Jp(s),l=0,t=n||Qp,f=d?t(e,c):h||g?t(e,0):void 0;l<c;l++)if((w||l in s)&&(i=u(o=s[l],l,a),p))if(d)f[l]=i;else if(i)switch(p){case 3:return!0;case 5:return o;case 6:return l;case 2:ed(f,o)}else switch(p){case 4:return!1;case 7:ed(f,o)}return m?-1:y||v?v:f}}function Vf(e,t){var r=[][e];return!!r&&td(function(){r.call(null,t||function(){return 1},1)})}function Hf(u){var c=1==u;return function(e,t,r){for(var n,o=dd(e),i=pd(o),a=fd(t,r),s=hd(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 Kf(e,t,r,n,o,i,a,s){for(var u,c,l=o,f=0,p=!!a&&bd(a,s);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<i&&md(u)?(c=gd(u),l=Kf(e,t,u,c,l,i-1)-1):(wd(l+1),e[l]=u),l++),f++;return l}function Gf(c){return function(e,t,r,n){Yd(t);var o=Wd(e),i=Zd(o),a=Jd(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 Qd("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 Bf(e,t,r){for(var n=mh(e),o=vh(t,n),i=vh(void 0===r?n:r,n),a=wh(bh(i-o,0)),s=0;o<i;o++,s++)gh(a,s,e[o]);return a.length=s,a}function zf(e,t){var r=e.length,n=Th(r/2);if(r<8){for(var o,i,a=e,s=t,u=a.length,c=1;c<u;){for(o=a[i=c];i&&0<s(a[i-1],o);)a[i]=a[--i];i!==c++&&(a[i]=o)}return a}for(var l=e,f=zf(Eh(e,0,n),t),p=zf(Eh(e,n),t),d=t,h=f.length,y=p.length,v=0,m=0;v<h||m<y;)l[v+m]=v<h&&m<y?d(f[v],p[m])<=0?f[v++]:p[m++]:v<h?f[v++]:p[m++];return l}function qf(e){ly(e,vy,{value:{objectID:"O"+my++,weakData:{}}})}function $f(e,t,r){for(var n in t)Sy(e,n,t[n],r);return e}var Xf,Yf,Wf,Zf,Jf,Qf,ep,tp=p,rp=_c,np=(R({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=tp.f(this),e=rp(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),nn),op=ka,ip=tn,ap=Xn,sp=Br,up=Oa,cp=a,lp=m,fp=Aa,pp=Ks,dp=_,hp=Mf,yp=Ia,vp=Sa,mp=Array,gp=(R({target:"Array",stat:!0,forced:!Nl(function(e){Array.from(e)})},{from:function(e){var t=lp(e),e=pp(this),r=arguments.length,n=1<r?arguments[1]:void 0,o=void 0!==n;o&&(n=up(n,2<r?arguments[2]:void 0));var i,a,s,u,c,l,r=vp(t),f=0;if(!r||this===mp&&fp(r))for(i=dp(t),a=e?new this(i):mp(i);f<i;f++)l=o?n(t[f],f):t[f],hp(a,f,l);else for(c=(u=yp(t,r)).next,a=e?new this:[];!(s=cp(c,u)).done;f++)l=o?function(e,t,r,n){try{return n?t(np(r)[0],r[1]):t(r)}catch(t){op(e,"throw",t)}}(u,n,[s.value,f],!0):s.value,hp(a,f,l);return a.length=f,a}}),zr),x=Array.isArray||function(e){return"Array"==gp(e)},wp=(R({target:"Array",stat:!0},{isArray:x}),Ks),bp=Mf,Ep=Array,Tp=(R({target:"Array",stat:!0,forced:h(function(){function e(){}return!(Ep.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(wp(this)?this:Ep)(t);e<t;)bp(r,e,arguments[e++]);return r.length=t,r}}),m),_p=_,Rp=jo,A=C,Op=(R({target:"Array",proto:!0},{at:function(e){var t=Tp(this),r=_p(t),e=Rp(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),A("at"),TypeError),Ap=x,Sp=Ks,Ip=Xr,kp=g("species"),Cp=Array,xp=h,Np=gn,Pp=g("species"),ll=R,f=h,Mp=x,Dp=Xr,jp=m,Fp=_,Lp=Df,Up=Mf,Vp=jf,S=Ff,k=gn,Hp=g("isConcatSpreadable"),ul=51<=k||!f(function(){var e=[];return e[Hp]=!1,e.concat()[0]!==e}),b=S("concat"),Kp=(ll({target:"Array",proto:!0,arity:1,forced:!ul||!b},{concat:function(e){for(var t,r,n,o=jp(this),i=Vp(o,0),a=0,s=-1,u=arguments.length;s<u;s++)if(function(e){if(!Dp(e))return!1;var t=e[Hp];return void 0!==t?!!t:Mp(e)}(n=-1===s?o:arguments[s]))for(r=Fp(n),Lp(a+r),t=0;t<r;t++,a++)t in n&&Up(i,a,n[t]);else Lp(a+1),Up(i,a++,n);return i.length=a,i}}),Wr),Gp=TypeError,Bp=m,zp=Fo,qp=_,$p=Lf,Xp=Math.min,I=C,Yp=(R({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=Bp(this),n=qp(r),o=zp(e,n),i=zp(t,n),e=2<arguments.length?arguments[2]:void 0,a=Xp((void 0===e?n:zp(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]:$p(r,o),o+=s,i+=s;return r}}),I("copyWithin"),Oa),Wp=F,Zp=m,Jp=_,Qp=jf,ed=u([].push),o={forEach:Uf(0),map:Uf(1),filter:Uf(2),some:Uf(3),every:Uf(4),find:Uf(5),findIndex:Uf(6),filterReject:Uf(7)},td=h,rd=o.every,nd=(R({target:"Array",proto:!0,forced:!Vf("every")},{every:function(e){return rd(this,e,1<arguments.length?arguments[1]:void 0)}}),m),od=Fo,id=_,ru=C,ad=(R({target:"Array",proto:!0},{fill:function(e){for(var t=nd(this),r=id(t),n=arguments.length,o=od(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,i=void 0===n?r:od(n,r);o<i;)t[o++]=e;return t}}),ru("fill"),o.filter),E=(R({target:"Array",proto:!0,forced:!Ff("filter")},{filter:function(e){return ad(this,e,1<arguments.length?arguments[1]:void 0)}}),R),sd=o.find,xl=C,ud=!0,N=("find"in[]&&Array(1).find(function(){ud=!1}),E({target:"Array",proto:!0,forced:ud},{find:function(e){return sd(this,e,1<arguments.length?arguments[1]:void 0)}}),xl("find"),R),cd=o.findIndex,p=C,ld=!0,fd=("findIndex"in[]&&Array(1).findIndex(function(){ld=!1}),N({target:"Array",proto:!0,forced:ld},{findIndex:function(e){return cd(this,e,1<arguments.length?arguments[1]:void 0)}}),p("findIndex"),Oa),pd=F,dd=m,hd=_,A={findLast:Hf(0),findLastIndex:Hf(1)},yd=A.findLast,k=C,vd=(R({target:"Array",proto:!0},{findLast:function(e){return yd(this,e,1<arguments.length?arguments[1]:void 0)}}),k("findLast"),A.findLastIndex),f=C,md=(R({target:"Array",proto:!0},{findLastIndex:function(e){return vd(this,e,1<arguments.length?arguments[1]:void 0)}}),f("findLastIndex"),x),gd=_,wd=Df,bd=Oa,S=Kf,Ed=S,Td=m,_d=_,Rd=jo,Od=jf,Ad=(R({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Td(this),r=_d(t),n=Od(t,0);return n.length=Ed(n,t,t,r,0,void 0===e?1:Rd(e)),n}}),S),Sd=Zr,Id=m,kd=_,Cd=jf,xd=(R({target:"Array",proto:!0},{flatMap:function(e){var t,r=Id(this),n=kd(r);return Sd(e),(t=Cd(r,0)).length=Ad(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),o.forEach),ll=Vf("forEach")?[].forEach:function(e){return xd(this,e,1<arguments.length?arguments[1]:void 0)},Nd=(R({target:"Array",proto:!0,forced:[].forEach!=ll},{forEach:ll}),ti.includes),ul=C,b=(R({target:"Array",proto:!0,forced:h(function(){return!Array(1).includes()})},{includes:function(e){return Nd(this,e,1<arguments.length?arguments[1]:void 0)}}),ul("includes"),R),Pd=ti.indexOf,I=Vf,Md=u([].indexOf),Dd=!!Md&&1/Md([1],1,-0)<0,ru=I("indexOf"),E=(b({target:"Array",proto:!0,forced:Dd||!ru},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return Dd?Md(this,e,t)||0:Pd(this,e,t)}}),R),xl=F,jd=$r,N=Vf,Fd=u([].join),p=xl!=Object,k=N("join",","),Ld=(E({target:"Array",proto:!0,forced:p||!k},{join:function(e){return Fd(jd(this),void 0===e?",":e)}}),Us),Ud=$r,Vd=jo,Hd=_,A=Vf,Kd=Math.min,Gd=[].lastIndexOf,Bd=!!Gd&&1/[1].lastIndexOf(1,-0)<0,f=A("lastIndexOf"),S=Bd||!f?function(e){if(Bd)return Ld(Gd,this,arguments)||0;var t=Ud(this),r=Hd(t),n=r-1;for((n=1<arguments.length?Kd(n,Vd(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:Gd,zd=(R({target:"Array",proto:!0,forced:S!==[].lastIndexOf},{lastIndexOf:S}),o.map),ll=(R({target:"Array",proto:!0,forced:!Ff("map")},{map:function(e){return zd(this,e,1<arguments.length?arguments[1]:void 0)}}),R),qd=m,$d=_,Xd=Df,ul=h(function(){return 4294967297!==[].push.call({length:4294967296},1)}),ti=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),Yd=(ll({target:"Array",proto:!0,arity:1,forced:ul||ti},{push:function(e){var t=qd(this),r=$d(t),n=arguments.length;Xd(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return t.length=r}}),Zr),Wd=m,Zd=F,Jd=_,Qd=TypeError,I={left:Gf(!1),right:Gf(!0)},eh=I.left,b=gn,ru=Ds,th=(R({target:"Array",proto:!0,forced:!Vf("reduce")||!ru&&79<b&&b<83},{reduce:function(e){var t=arguments.length;return eh(this,e,t,1<t?arguments[1]:void 0)}}),I.right),xl=gn,N=Ds,E=(R({target:"Array",proto:!0,forced:!Vf("reduceRight")||!N&&79<xl&&xl<83},{reduceRight:function(e){return th(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),R),rh=x,nh=u([].reverse),p=[1,2],k=(E({target:"Array",proto:!0,forced:String(p)===String(p.reverse())},{reverse:function(){return rh(this)&&(this.length=this.length),nh(this)}}),R),oh=x,ih=Ks,ah=Xr,sh=Fo,uh=_,ch=$r,lh=Mf,Us=g,fh=Bn,A=Ff("slice"),ph=Us("species"),dh=Array,hh=Math.max,yh=(k({target:"Array",proto:!0,forced:!A},{slice:function(e,t){var r,n,o,i=ch(this),a=uh(i),s=sh(e,a),u=sh(void 0===t?a:t,a);if(oh(i)&&(r=i.constructor,(r=ih(r)&&(r===dh||oh(r.prototype))||ah(r)&&null===(r=r[ph])?void 0:r)===dh||void 0===r))return fh(i,s,u);for(n=new(void 0===r?dh:r)(hh(u-s,0)),o=0;s<u;s++,o++)s in i&&lh(n,o,i[s]);return n.length=o,n}}),o.some),vh=(R({target:"Array",proto:!0,forced:!Vf("some")},{some:function(e){return yh(this,e,1<arguments.length?arguments[1]:void 0)}}),Fo),mh=_,gh=Mf,wh=Array,bh=Math.max,Eh=Bf,Th=Math.floor,f=zf,S=r.match(/firefox\/(\d+)/i),ll=!!S&&+S[1],ul=/MSIE|Trident/.test(r),ti=r.match(/AppleWebKit\/(\d+)\./),ru=!!ti&&+ti[1],b=R,I=u,_h=Zr,Rh=m,Oh=_,Ah=Lf,Sh=Na,Ds=h,Ih=f,N=Vf,kh=ll,Ch=ul,xh=gn,Nh=ru,Ph=[],Mh=I(Ph.sort),Dh=I(Ph.push),xl=Ds(function(){Ph.sort(void 0)}),E=Ds(function(){Ph.sort(null)}),p=N("sort"),jh=!Ds(function(){if(xh)return xh<70;if(!(kh&&3<kh)){if(Ch)return!0;if(Nh)return Nh<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++)Ph.push({k:e+r,v:t})}for(Ph.sort(function(e,t){return t.v-e.v}),r=0;r<Ph.length;r++)e=Ph[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),Bn=(b({target:"Array",proto:!0,forced:xl||!E||!p||!jh},{sort:function(e){void 0!==e&&_h(e);var t=Rh(this);if(jh)return void 0===e?Mh(t):Mh(t,e);for(var r,n,o=[],i=Oh(t),a=0;a<i;a++)a in t&&Dh(o,t[a]);for(Ih(o,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:Sh(e)>Sh(t)?1:-1})),r=o.length,a=0;a<r;)t[a]=o[a++];for(;a<i;)Ah(t,a++);return t}}),ku("Array"),R),Fh=m,Lh=Fo,Uh=jo,Vh=_,Hh=Df,Kh=jf,Gh=Mf,Bh=Lf,Us=Ff("splice"),zh=Math.max,qh=Math.min,k=(Bn({target:"Array",proto:!0,forced:!Us},{splice:function(e,t){var r,n,o,i,a,s,u=Fh(this),c=Vh(u),l=Lh(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,qh(zh(Uh(t),0),c-l)),Hh(c+r-n),o=Kh(u,n),i=0;i<n;i++)(a=l+i)in u&&Gh(o,i,u[a]);if(r<(o.length=n)){for(i=l;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:Bh(u,s);for(i=c;c-n+r<i;i--)Bh(u,i-1)}else if(n<r)for(i=c-n;l<i;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:Bh(u,s);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return u.length=c-n+r,o}}),C("flat"),C("flatMap"),R),$h=m,Xh=_,Yh=Lf,Wh=Df,A=1!==[].unshift(0),S=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),r=(k({target:"Array",proto:!0,arity:1,forced:A||S},{unshift:function(e){var t=$h(this),r=Xh(t),n=arguments.length;if(n){Wh(r+n);for(var o=r;o--;){var i=o+n;o in t?t[i]=t[o]:Yh(t,i)}for(var a=0;a<n;a++)t[a]=arguments[a]}return t.length=r+n}}),c.Array,{exports:{}}),ti={},Zh=zr,Jh=$r,Qh=wn.f,ey=Bf,ty="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=(ti.f=function(e){if(!ty||"Window"!=Zh(e))return Qh(Jh(e));var t=e;try{return Qh(t)}catch(t){return ey(ty)}},h(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),ll=h,ry=Xr,ny=zr,oy=f,iy=Object.isExtensible,ul=ll(function(){iy(1)})||oy?function(e){return!!ry(e)&&(!oy||"ArrayBuffer"!=ny(e))&&(!iy||iy(e))}:iy,gn=!h(function(){return Object.isExtensible(Object.preventExtensions({}))}),ay=R,sy=u,ru=O,uy=Xr,cy=Gn,ly=Xn.f,fy=wn,py=ti,dy=ul,hy=gn,yy=!1,vy=en("meta"),my=0,gy=r.exports={enable:function(){gy.enable=function(){},yy=!0;var o=fy.f,i=sy([].splice),e={};e[vy]=1,o(e).length&&(fy.f=function(e){for(var t=o(e),r=0,n=t.length;r<n;r++)if(t[r]===vy){i(t,r,1);break}return t},ay({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:py.f}))},fastKey:function(e,t){if(!uy(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!cy(e,vy)){if(!dy(e))return"F";if(!t)return"E";qf(e)}return e[vy].objectID},getWeakData:function(e,t){if(!cy(e,vy)){if(!dy(e))return!0;if(!t)return!1;qf(e)}return e[vy].weakData},onFreeze:function(e){return hy&&yy&&dy(e)&&!cy(e,vy)&&qf(e),e}},wy=(ru[vy]=!0,v),by=Xr,Ey=ya,I=R,N=i,Ty=u,Ds=ni,_y=Do,b=r.exports,Ry=xa,Oy=Cu,xl=v,Ay=Xr,E=h,p=Nl,Bn=Qs,Sy=Do,Iy=Xn.f,ky=va,Cy=$f,xy=Oa,Ny=Cu,Py=xa,My=tu,Dy=ku,jy=n,Fy=r.exports.fastKey,Ly=w.set,Uy=w.getterFor;function Vy(e){var r=Ty(Qf[e]);_y(Qf,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(Wf&&!Ay(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return Wf&&!Ay(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(Wf&&!Ay(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}Us=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},k={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=Fy(t,!0),key:t,value:r,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),jy?o.size++:e.size++,"F"!==n&&(o.index[n]=i)),e}function a(e,t){var r,e=u(e),n=Fy(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){Ny(e,s),Ly(e,{type:r,index:ky(null),first:void 0,last:void 0,size:0}),jy||(e.size=0),null!=t&&Py(t,e[o],{that:e,AS_ENTRIES:n})}),s=e.prototype,u=Uy(r);return Cy(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,jy?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),jy?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=xy(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)}}),Cy(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)}}),jy&&Iy(s,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",o=Uy(t),i=Uy(n);My(e,t,function(e,t){Ly(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),Dy(t)}},Yf=-1!==(A="Map").indexOf("Map"),Wf=-1!==A.indexOf("Weak"),Zf=Yf?"set":"add",Jf=N.Map,Qf=Jf&&Jf.prototype,S={},Ds(A,!xl(ep=Jf)||!(Wf||Qf.forEach&&!E(function(){(new Jf).entries().next()})))?(ep=k.getConstructor(Us,A,Yf,Zf),b.enable()):Ds(A,!0)&&(c=(Xf=new ep)[Zf](Wf?{}:-0,1)!=Xf,f=E(function(){Xf.has(1)}),ll=p(function(e){new Jf(e)}),O=!Wf&&E(function(){for(var e=new Jf,t=5;t--;)e[Zf](t,t);return!e.has(-0)}),ll||(((ep=Us(function(e,t){Oy(e,Qf);r=new Jf,e=e,n=ep,Ey&&wy(e=e.constructor)&&e!==n&&by(e=e.prototype)&&e!==n.prototype&&Ey(r,e);var r,n=r;return null!=t&&Ry(t,n[Zf],{that:n,AS_ENTRIES:Yf}),n})).prototype=Qf).constructor=ep),(f||O)&&(Vy("delete"),Vy("has"),Yf&&Vy("get")),(O||c)&&Vy(Zf),Wf&&Qf.clear&&delete Qf.clear),S.Map=ep,I({global:!0,constructor:!0,forced:ep!=Jf},S),Bn(ep,A),Wf||k.setStrong(ep,A,Yf);function Hy(e,t){for(var r=0,n=zy(t),o=new e(n);r<n;)o[r]=t[r++];return o}function Ky(e,t,r,n){for(var o,i,a,s=Xy(e),u=$y(s),c=qy(t,r),l=Zy(null),f=Wy(u),p=0;p<f;p++)a=u[p],(i=Yy(c(a,p,s)))in l?ev(l[i],a):l[i]=[a];if(n&&(o=n(s))!==Qy)for(i in l)l[i]=Jy(o,l[i]);return l}function Gy(e){for(var t,r,n=iv(this),o=ov(n),i=nv(e,1<arguments.length?arguments[1]:void 0),a=new sv,s=av(o),u=0;u<s;u++)t=i(r=o[u],u,n),cv(a,t)?fv(uv(a,t),r):lv(a,t,[r]);return a}function By(e){return yv[e].prototype}var zy=_,qy=Oa,$y=F,Xy=m,Yy=tn,Wy=_,Zy=va,Jy=Hy,Qy=Array,ev=u([].push),tv=Ky,Gn=C,rv=(R({target:"Array",proto:!0},{group:function(e){return tv(this,e,1<arguments.length?arguments[1]:void 0)}}),Gn("group"),Ky),wn=C,nv=(R({target:"Array",proto:!0,forced:!Vf("groupBy")},{groupBy:function(e){return rv(this,e,1<arguments.length?arguments[1]:void 0)}}),wn("groupBy"),Oa),ti=u,ov=F,iv=m,av=_,sv=Yr("Map"),ul=sv.prototype,uv=ti(ul.get),cv=ti(ul.has),lv=ti(ul.set),fv=ti([].push),gn=C,ru=Gy,ya=(R({target:"Array",proto:!0,name:"groupToMap",forced:!Vf("groupByToMap")},{groupByToMap:ru}),gn("groupByToMap"),C),pv=(R({target:"Array",proto:!0},{groupToMap:Gy}),ya("groupToMap"),_),dv=$r,ni=C,hv=Array,yv=(R({target:"Array",proto:!0},{toReversed:function(){for(var e=dv(this),t=hv,r=pv(e),n=new t(r),o=0;o<r;o++)n[o]=e[r-o-1];return n}}),ni("toReversed"),i),r=R,vv=Zr,mv=$r,gv=Hy,N=C,wv=Array,bv=u(By("Array").sort),Ds=(r({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&vv(e);var t=mv(this),t=gv(wv,t);return bv(t,e)}}),N("toSorted"),R),p=C,Ev=Df,Tv=_,_v=Fo,Rv=$r,Ov=jo,Av=Array,Sv=Math.max,Iv=Math.min,kv=(Ds({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,o,i,a=Rv(this),s=Tv(a),u=_v(e,s),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,s-u):(r=e-2,Iv(Sv(Ov(t),0),s-u)),o=Ev(s+r-n),i=Av(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"),_),Cv=jo,xv=RangeError,Nv=$r,Pv=Array;R({target:"Array",proto:!0},{with:function(e,t){var r=Nv(this),n=Pv,o=t,i=kv(r),a=(e=Cv(e))<0?i+e:e;if(i<=a||a<0)throw xv("Incorrect index");for(var s=new n(i),u=0;u<i;u++)s[u]=u===a?o:r[u];return s}});var Mv,E=i,ll=Fn,Us=v,f=T,O=Do,c=g("asyncIterator"),I=E.AsyncIterator,S=ll.AsyncIteratorPrototype;if(S)Mv=S;else if(Us(I))Mv=I.prototype;else if(ll.USE_FUNCTION_CONSTRUCTOR||E.USE_FUNCTION_CONSTRUCTOR)try{M=f(f(f(Function("return async function*(){}()")()))),f(M)===Object.prototype&&(Mv=M)}catch(pg){}Us((Mv=Mv||{})[c])||O(Mv,c,function(){return this});function Dv(e,t,r){var n=e.done;Bv.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function jv(e){zv(this,{type:"AsyncFromSyncIterator",iterator:Kv(e),next:e.next})}function Fv(e,t,r,n){try{var o=nm(e,"return");if(o)return rm("Promise").resolve(tm(o,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function Lv(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,a,s){var e={iterator:e,next:Qv(em(e).next)},u=um("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==a;return!f&&p||im(a),new u(function(r,n){var o=function(e){Fv(c,n,e,n)},i=function(){try{if(p&&f)try{sm(l)}catch(e){o(e)}u.resolve(am(om(t,c))).then(function(e){try{if(am(e).done)p?(s.length=l,r(s)):r(!y&&(h||void 0));else{var t=e.value;try{f?u.resolve(p?a(t,l):a(t)).then(function(e){if(d)i();else if(h)e?i():Fv(c,r,!1,n);else if(p)try{s[l++]=e,i()}catch(e){o(e)}else e?Fv(c,r,y||t,n):i()},o):(s[l++]=t,i())}catch(e){o(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};i()})}}function Uv(e,t){if(!_m||!Tm(e)||!_m(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 Vv(e,t,r){r.get&&Rm(r.get,t,{getter:!0}),r.set&&Rm(r.set,t,{setter:!0}),Om.f(e,t,r)}var Hv=a,Kv=nn,Bn=va,Gv=Jr,k=$f,A=w,Gn=Mv,Bv=Yr("Promise"),zv=A.set,qv=A.getterFor("AsyncFromSyncIterator"),wn=(jv.prototype=k(Bn(Gn),{next:function(){var n=qv(this);return new Bv(function(e,t){var r=Kv(Hv(n.next,n.iterator));Dv(r,e,t)})},return:function(){var n=qv(this).iterator;return new Bv(function(e,t){var r=Gv(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=Kv(Hv(r,n));Dv(r,e,t)})}}),jv),$v=a,Xv=wn,Yv=nn,Wv=Ia,Zv=Jr,Jv=g("asyncIterator"),Qv=Zr,em=nn,tm=a,rm=Yr,nm=Jr,om=a,im=Zr,am=nn,sm=Df,um=Yr,F={toArray:Lv(0),forEach:Lv(1),every:Lv(2),some:Lv(3),find:Lv(4)},cm=Oa,lm=m,fm=Ks,pm=Ia,dm=Sa,hm=Jr,ul=By,ym=Yr,vm=wn,mm=F.toArray,gm=g("asyncIterator"),wm=ul("Array").values,bm=(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(ym("Promise"))(function(e){var t=lm(i),r=(void 0!==s&&(s=cm(s,u)),hm(t,gm)),n=r?void 0:dm(t)||wm,o=fm(a)?new a:[],r=r?function(e,t){t=arguments.length<2?Zv(e,Jv):t;return t?Yv($v(t,e)):new Xv(Wv(e))}(t,r):new vm(pm(t,n));e(mm(r,s,o))})}}),o.filterReject),ti=C,Em=(R({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return bm(this,e,1<arguments.length?arguments[1]:void 0)}}),ti("filterOut"),o.filterReject),ru=C,gn=(R({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return Em(this,e,1<arguments.length?arguments[1]:void 0)}}),ru("filterReject"),R),Tm=x,_m=Object.isFrozen,Rm=(gn({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!Uv(e,!0))return!1;var t=e.raw;return t.length===e.length&&Uv(t,!1)}}),On.exports),Om=Xn,ya=C,Am=m,Sm=_,ni=(n&&(Vv(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=Am(this),t=Sm(e);return 0==t?void 0:e[t-1]},set:function(e){var t=Am(this),r=Sm(t);return t[0==r?0:r-1]=e}}),ya("lastItem")),C),Im=m,km=_,r=(n&&(Vv(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=Im(this),e=km(e);return 0==e?0:e-1}}),ni("lastIndex")),u),Cm=Zr,xm=_,Nm=m,Pm=jf,Mm=Yr("Map"),N=Mm.prototype,Dm=r(N.forEach),jm=r(N.has),Fm=r(N.set),Lm=r([].push),Ds=C,Um=(R({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=Nm(this),o=xm(n),i=Pm(n,0),a=new Mm,s=null!=e?Cm(e):function(e){return e},u=0;u<o;u++)r=s(t=n[u]),jm(a,r)||Fm(a,r,t);return Dm(a,function(e){Lm(i,e)}),i}}),Ds("uniqueBy"),Bm.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},Bm.prototype.refresh=function(){this.stop(),this.start()},Bm.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)},Bm),Vm=(Gm.prototype.start=function(){this.started=!0},Gm.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},Gm.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},Gm.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},Gm.prototype.close=function(){this.stop()},Gm),Hm=(Km.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()})},Km.prototype.process=function(e){this.queue.enqueue(e)},Km.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},Km.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},Km.prototype.close=function(){this.stop()},Km);function Km(e,t,r){this.eventDispatcher=e,this.flushInterval=r,this.queue=new Vm(this.drainQueue.bind(this),zm,t,r)}function Gm(e,t,r,n){this.buffer=[],this.sink=e,this.maxQueueSize=r,this.batchComparator=t,this.timer=new Um({callback:this.flush.bind(this),timeout:n}),this.started=!1}function Bm(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function zm(e,t){return e.timestamp==t.timestamp&&e.user.identifiers==t.user.identifiers&&e.user.properties==t.user.properties}eg.isEquals=function(t,r){if(null==r)return!1;var e=Object.keys(t);return e.length===Object.keys(r).length&&e.every(function(e){return t[e]===r[e]})};var qm=eg,$m=(Qm.prototype.process=function(e){this.exposureEventDedupDeterminer.isDedupTarget(e)||this.delegate.process(e)},Qm.prototype.close=function(){this.delegate.close()},Qm.prototype.start=function(){return this.delegate.start()},Qm),Xm=(Jm.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!je.isExposure(e))return!1;qm.isEquals(e.user.identifiers,null==(t=this.currentUser)?void 0:t.identifiers)||(this.currentUser=e.user,this.cache=new Map);var t=[e.experiment.id,e.variationId,e.variationKey,e.decisionReason].join("-"),e=(new Date).getTime(),r=this.cache.get(t);return void 0!==r&&e-r<=this.exposureEventDedupIntervalMillis||(this.cache.set(t,e),!1)},Jm),Ym=K.log,Wm=null,Zm={debug:!1,log_disabled:!1,auto_track_page_view:!1,pollingIntervalMillis:-1,exposureEventDedupIntervalMillis:-1,SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.1.0"};function Jm(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function Qm(e,t){this.delegate=e,this.exposureEventDedupDeterminer=t}function eg(){}function tg(e,t){t=V(V({},Zm),t);if(t.log_disabled?K.setLogLevel(0):t.debug&&K.setLogLevel(4),Ym.debug("sdkKey : "+e),e||Ym.error("SDK Key must not be null"),Wm)return Ym.debug("use already exists hackleClient"),Wm;var o,r=!1,r=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&Ym.debug("support sendBeacon API"),new Mr(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)})),n=-1,n=(void 0!==t.pollingIntervalMillis&&"number"==typeof t.pollingIntervalMillis&&0<t.pollingIntervalMillis&&(n=Math.max(t.pollingIntervalMillis,3e4)),new Fr(e,ae,{fetchUrl:"".concat("https://sdk.hackle.io/api/v2/w/").concat(e).concat("/w"),updateInterval:n,headers:((e={})["X-HACKLE-SDK-NAME"]=t.SDK_NAME_HEADER,e["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,e)})),e=-1,r=(void 0!==t.exposureEventDedupIntervalMillis&&"number"==typeof t.exposureEventDedupIntervalMillis&&-1!==t.exposureEventDedupIntervalMillis&&(e=t.exposureEventDedupIntervalMillis<1e3||36e5<t.exposureEventDedupIntervalMillis?(Ym.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis),new Hm(r,100,500)),e=new Xm(e),r=new $m(r,e),i=new kr(n,r);return Wm=i,t.auto_track_page_view&&(o=function(){return i.trackPageView({user:{id:_r()}})},i.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)Ym.error(e);else try{Ym.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)Ym.error(e);else try{Ym.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)Ym.error(e);else try{Ym.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{o()}catch(e){if(e instanceof Error)Ym.error(e);else try{Ym.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)Ym.error(t);else try{Ym.error(t)}catch(t){}}var r,n})),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){Or(),i.close()}),i}var p={createInstance:tg,getUserId:_r,setUserId:Rr,removeUserId:Or,Logger:K},rg=(l.Bucket=e.Bucket=W,l.Container=e.Container=he,l.ContainerGroup=e.ContainerGroup=ie,l.CoreVersion=e.CoreVersion=Ae,l.Decision=e.Decision=ue,l.DecisionReason=e.DecisionReason=s,l.EventType=e.EventType=Z,l.Experiment=e.Experiment=le,l.FeatureFlagDecision=e.FeatureFlagDecision=ce,l.IdentifierType=e.IdentifierType=pe,l.IdentifiersBuilder=e.IdentifiersBuilder=de,l.Logger=e.Logger=K,l.MATCH_OPERATORS=e.MATCH_OPERATORS=Ce,l.MATCH_TYPES=e.MATCH_TYPES=Ie,l.MATCH_VALUE_TYPES=e.MATCH_VALUE_TYPES=ke,l.MetaVersion=e.MetaVersion=Se,l.SEGMENT_TYPES=e.SEGMENT_TYPES=Pe,l.Segment=e.Segment=oe,l.Slot=e.Slot=fe,l.TARGET_ACTION_TYPES=e.TARGET_ACTION_TYPES=xe,l.TARGET_KEY_TYPES=e.TARGET_KEY_TYPES=Ne,l.Target=e.Target=J,l.TargetAction=e.TargetAction=re,l.TargetCondition=e.TargetCondition=Q,l.TargetKey=e.TargetKey=ee,l.TargetMatch=e.TargetMatch=te,l.TargetRule=e.TargetRule=ne,l.TargetingType=e.TargetingType=Me,l.Variation=e.Variation=Y,l.Version=e.Version=Oe,j=e.createInstance=tg,e.default=p,l.getUserId=e.getUserId=_r,l.removeUserId=e.removeUserId=Or,l.setUserId=e.setUserId=Rr,function(){return(rg=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 ng(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}ig.prototype.variation=function(e,t,r){return this.client.variation(e,t,r)},ig.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t,r)},ig.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t)},ig.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t)},ig.prototype.track=function(e,t){this.client.track(e,t)},ig.prototype.trackPageView=function(e){this.client.trackPageView(e)},ig.prototype.onReady=function(e,t){this.client.onReady(e,t)},ig.prototype.onInitialized=function(e){return this.client.onInitialized(e)};var og=ig;function ig(e,t){this.client=j(e,rg(rg({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.1.0"}))}var P={exports:{}},i={},ag=Object.getOwnPropertySymbols,sg=Object.prototype.hasOwnProperty,ug=Object.prototype.propertyIsEnumerable;var Fn=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]))sg.call(r,i)&&(n[i]=r[i]);if(ag)for(var a=ag(r),s=0;s<a.length;s++)ug.call(r,a[s])&&(n[a[s]]=r[a[s]])}return n},cg=Fn,T="function"==typeof Symbol&&Symbol.for,lg=T?Symbol.for("react.element"):60103,fg=T?Symbol.for("react.portal"):60106,S=T?Symbol.for("react.fragment"):60107,pg=T?Symbol.for("react.strict_mode"):60108,I=T?Symbol.for("react.profiler"):60114,dg=T?Symbol.for("react.provider"):60109,hg=T?Symbol.for("react.context"):60110,yg=T?Symbol.for("react.forward_ref"):60112,ll=T?Symbol.for("react.suspense"):60113,vg=T?Symbol.for("react.memo"):60115,mg=T?Symbol.for("react.lazy"):60116,gg="function"==typeof Symbol&&Symbol.iterator;function wg(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 bg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Eg={};function Tg(e,t,r){this.props=e,this.context=t,this.refs=Eg,this.updater=r||bg}function _g(){}function Rg(e,t,r){this.props=e,this.context=t,this.refs=Eg,this.updater=r||bg}Tg.prototype.isReactComponent={},Tg.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(wg(85));this.updater.enqueueSetState(this,e,t,"setState")},Tg.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_g.prototype=Tg.prototype;var E=Rg.prototype=new _g,Og=(E.constructor=Rg,cg(E,Tg.prototype),E.isPureReactComponent=!0,{current:null}),Ag=Object.prototype.hasOwnProperty,Sg={key:!0,ref:!0,__self:!0,__source:!0};function Ig(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)Ag.call(t,n)&&!Sg.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:lg,type:e,key:i,ref:a,props:o,_owner:Og.current}}function kg(e){return"object"==typeof e&&null!==e&&e.$$typeof===lg}var Cg=/\/+/g,xg=[];function Ng(e,t,r,n){var o;return xg.length?((o=xg.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 Pg(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,xg.length<10&&xg.push(e)}function Mg(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 lg:case fg:i=!0}}if(i)return n(o,t,""===r?"."+Dg(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+Dg(s=t[a],a);i+=e(s,u,n,o)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=gg&&t[gg]||t["@@iterator"])?u:null))for(t=u.call(t),a=0;!(s=t.next()).done;)i+=e(s=s.value,u=r+Dg(s,a++),n,o);else if("object"===s)throw n=""+t,Error(wg(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return i}(e,"",t,r)}function Dg(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 jg(e,t){e.func.call(e.context,t,e.count++)}function Fg(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Lg(e,n,r,function(e){return e}):null!=e&&(kg(e)&&(t=o+(!(o=e).key||t&&t.key===e.key?"":(""+e.key).replace(Cg,"$&/")+"/")+r,e={$$typeof:lg,type:o.type,key:t,ref:o.ref,props:o.props,_owner:o._owner}),n.push(e))}function Lg(e,t,r,n,o){var i="";Mg(e,Fg,t=Ng(t,i=null!=r?(""+r).replace(Cg,"$&/")+"/":i,n,o)),Pg(t)}var Ug={current:null};function Vg(){var e=Ug.current;if(null===e)throw Error(wg(321));return e}var Hg,Kg,Gg,f={ReactCurrentDispatcher:Ug,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Og,IsSomeRendererActing:{current:!1},assign:cg},M=(i.Children={map:function(e,t,r){if(null==e)return e;var n=[];return Lg(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;Mg(e,jg,t=Ng(null,null,t,r)),Pg(t)},count:function(e){return Mg(e,function(){return null},null)},toArray:function(e){var t=[];return Lg(e,t,null,function(e){return e}),t},only:function(e){if(kg(e))return e;throw Error(wg(143))}},i.Component=Tg,i.Fragment=S,i.Profiler=I,i.PureComponent=Rg,i.StrictMode=pg,i.Suspense=ll,i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f,i.cloneElement=function(e,t,r){if(null==e)throw Error(wg(267,e));var n=cg({},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=Og.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)Ag.call(t,s)&&!Sg.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:lg,type:e.type,key:o,ref:i,props:n,_owner:a}},i.createContext=function(e,t){return(e={$$typeof:hg,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:dg,_context:e},e.Consumer=e},i.createElement=Ig,i.createFactory=function(e){var t=Ig.bind(null,e);return t.type=e,t},i.createRef=function(){return{current:null}},i.forwardRef=function(e){return{$$typeof:yg,render:e}},i.isValidElement=kg,i.lazy=function(e){return{$$typeof:mg,_ctor:e,_status:-1,_result:null}},i.memo=function(e,t){return{$$typeof:vg,type:e,compare:void 0===t?null:t}},i.useCallback=function(e,t){return Vg().useCallback(e,t)},i.useContext=function(e,t){return Vg().useContext(e,t)},i.useDebugValue=function(){},i.useEffect=function(e,t){return Vg().useEffect(e,t)},i.useImperativeHandle=function(e,t,r){return Vg().useImperativeHandle(e,t,r)},i.useLayoutEffect=function(e,t){return Vg().useLayoutEffect(e,t)},i.useMemo=function(e,t){return Vg().useMemo(e,t)},i.useReducer=function(e,t,r){return Vg().useReducer(e,t,r)},i.useRef=function(e){return Vg().useRef(e)},i.useState=function(e){return Vg().useState(e)},i.version="16.14.0",{}),Us=Function.call.bind(Object.prototype.hasOwnProperty),Bg=function(){};function zg(e,t,r,n,o){if("production"!==production)for(var i in e)if(Gg(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,Hg)}catch(e){a=e}!a||a instanceof Error||Bg((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 Kg)&&(Kg[a.message]=!0,i=o?o():"",Bg("Failed "+r+" type: "+a.message+(null!=i?i:"")))}}if("production"!==production&&(Hg="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Kg={},Gg=Us,Bg=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),zg.resetWarningCache=function(){"production"!==production&&(Kg={})},"production"!==production){var qg=Fn,$g=zg,O="function"==typeof Symbol&&Symbol.for,Xg=O?Symbol.for("react.element"):60103,Yg=O?Symbol.for("react.portal"):60106,Wg=O?Symbol.for("react.fragment"):60107,Zg=O?Symbol.for("react.strict_mode"):60108,Jg=O?Symbol.for("react.profiler"):60114,Qg=O?Symbol.for("react.provider"):60109,e0=O?Symbol.for("react.context"):60110,t0=O?Symbol.for("react.concurrent_mode"):60111,r0=O?Symbol.for("react.forward_ref"):60112,n0=O?Symbol.for("react.suspense"):60113,o0=O?Symbol.for("react.suspense_list"):60120,i0=O?Symbol.for("react.memo"):60115,a0=O?Symbol.for("react.lazy"):60116,s0=O?Symbol.for("react.block"):60121,u0=O?Symbol.for("react.fundamental"):60117,c0=O?Symbol.for("react.responder"):60118,l0=O?Symbol.for("react.scope"):60119,f0="function"==typeof Symbol&&Symbol.iterator,p0="@@iterator";function d0(e){if(null===e||"object"!=typeof e)return null;e=f0&&e[f0]||e[p0];return"function"==typeof e?e:null}var h0={current:null},y0={current:null},v0=/^(.*)[\\\/]/,m0=1;function g0(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 Wg:return"Fragment";case Yg:return"Portal";case Jg:return"Profiler";case Zg:return"StrictMode";case n0:return"Suspense";case o0:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case e0:return"Context.Consumer";case Qg:return"Context.Provider";case r0:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case i0:return g0(e.type);case s0:return g0(e.render);case a0:r=(t=e)._status===m0?t._result:null;if(r)return g0(r)}var t,r;return null}var w0={},b0=null;function E0(e){b0=e}w0.getCurrentStack=null,w0.getStackAddendum=function(){var e,t,r,n,o,i="",a=(b0&&(e=g0(b0.type),r=b0._owner,i+=(e=e,t=b0._source,r=r&&g0(r.type),o="",t?(n=(a=t.fileName).replace(v0,""),o=" (at "+(n=/^index\./.test(n)&&(a=a.match(v0))&&(a=a[1])?a.replace(v0,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(o=" (created by "+r+")"),"\n in "+(e||"Unknown")+o)),w0.getCurrentStack);return a&&(i+=a()||""),i};var T0={ReactCurrentDispatcher:h0,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:y0,IsSomeRendererActing:{current:!1},assign:qg};function _0(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];R0("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];R0("error",e,r)}function R0(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=T0.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){}}qg(T0,{ReactDebugCurrentFrame:w0,ReactComponentTreeHook:{}});var O0={};function A0(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;O0[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),O0[r]=!0)}var S0={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){A0(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){A0(e,"replaceState")},enqueueSetState:function(e,t,r,n){A0(e,"setState")}},I0={};function k0(e,t,r){this.props=e,this.context=t,this.refs=I0,this.updater=r||S0}Object.freeze(I0),k0.prototype.isReactComponent={},k0.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")},k0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var C0,x0={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(C0 in x0)x0.hasOwnProperty(C0)&&!function(e,t){Object.defineProperty(k0.prototype,e,{get:function(){_0("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(C0,x0[C0]);function N0(){}function P0(e,t,r){this.props=e,this.context=t,this.refs=I0,this.updater=r||S0}N0.prototype=k0.prototype,(O=P0.prototype=new N0).constructor=P0,qg(O,k0.prototype),O.isPureReactComponent=!0;var M0,D0,j0=Object.prototype.hasOwnProperty,F0={key:!0,ref:!0,__self:!0,__source:!0};function L0(e){if(j0.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function U0(e){if(j0.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var V0={},H0=function(e,t,r,n,o,i,a){e={$$typeof:Xg,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 K0(e,t,r){var n,o={},i=null,a=null,s=null,u=null;if(null!=t)for(n in L0(t)&&(a=t.ref,"string"==typeof(c=t).ref&&y0.current&&c.__self&&y0.current.stateNode!==c.__self&&(f=g0(y0.current.type),V0[f]||(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',g0(y0.current.type),c.ref),V0[f]=!0))),U0(t)&&(i=""+t.key),s=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)j0.call(t,n)&&!F0.hasOwnProperty(n)&&(o[n]=t[n]);var c,l,f,p,d=arguments.length-2;if(1==d)o.children=r;else if(1<d){for(var h=Array(d),y=0;y<d;y++)h[y]=arguments[y+2];Object.freeze&&Object.freeze(h),o.children=h}if(e&&e.defaultProps){var v=e.defaultProps;for(n in v)void 0===o[n]&&(o[n]=v[n])}function m(){D0||(D0=!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)",l))}function g(){M0||(M0=!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&&(f=o,p=c,g.isReactWarning=!0,Object.defineProperty(f,"key",{get:g,configurable:!0})),a&&(r=o,l=c,m.isReactWarning=!0,Object.defineProperty(r,"ref",{get:m,configurable:!0}))),H0(e,i,a,s,u,y0.current,o)}function G0(e){return"object"==typeof e&&null!==e&&e.$$typeof===Xg}var B0=".",z0=":",q0=!1,$0=/\/+/g;function X0(e){return(""+e).replace($0,"$&/")}var Y0=10,W0=[];function Z0(e,t,r,n){var o;return W0.length?((o=W0.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 J0(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,W0.length<Y0&&W0.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 Xg:case Yg:s=!0}}if(s)return n(o,t,""===r?B0+ew(t,0):r),1;var u=0,c=""===r?B0:r+z0;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(i=t[l],c+ew(i,l),n,o);else if("function"==typeof(r=d0(t))){r===t.entries&&(q0||_0("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."),q0=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(i=f.value,c+ew(i,d++),n,o)}else if("object"==a)throw r="",r=" If you meant to render a collection of children, use an array instead."+w0.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 ew(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 tw(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function rw(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)?nw(i,n,r,function(e){return e}):null!=i&&(G0(i)&&(e=o+(!(a=i).key||t&&t.key===i.key?"":X0(i.key)+"/")+r,i=H0(a.type,e,a.ref,a._self,a._source,a._owner,a.props)),n.push(i))}function nw(e,t,r,n,o){var i="",t=Z0(t,i=null!=r?X0(r)+"/":i,n,o);Q0(e,rw,t),J0(t)}function ow(e){return"string"==typeof e||"function"==typeof e||e===Wg||e===t0||e===Jg||e===Zg||e===n0||e===o0||"object"==typeof e&&null!==e&&(e.$$typeof===a0||e.$$typeof===i0||e.$$typeof===Qg||e.$$typeof===e0||e.$$typeof===r0||e.$$typeof===u0||e.$$typeof===c0||e.$$typeof===l0||e.$$typeof===s0)}function iw(){var e=h0.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 aw(){if(y0.current){var e=g0(y0.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var sw=!1,uw={};function cw(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=aw())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),uw[t=r]||(uw[t]=!0,r="",e&&e._owner&&e._owner!==y0.current&&(r=" It was passed a child from "+g0(e._owner.type)+"."),E0(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),E0(null)))}function lw(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];G0(n)&&cw(n,t)}else if(G0(e))e._store&&(e._store.validated=!0);else if(e){var o=d0(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)G0(i.value)&&cw(i.value,t)}}function fw(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=g0(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==r0&&t.$$typeof!==i0)return;r=t.propTypes}r?(E0(e),$g(r,e.props,"prop",n,w0.getStackAddendum),E0(null)):void 0===t.PropTypes||sw||(sw=!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 pw(e,t,r){var n,o=ow(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+".":"")||aw(),null===e?a="null":Array.isArray(e)?a="array":void 0!==e&&e.$$typeof===Xg?(a="<"+(g0(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)),K0.apply(this,arguments));if(null==t)return t;if(o)for(var i=2;i<arguments.length;i++)lw(arguments[i],e);if(e===Wg){var a=t;E0(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`."),E0(null)}else fw(t);return t}var dw=!1;try{var hw=Object.freeze({}),yw=new Map([[hw,null]]),vw=new Set([hw]);yw.set(0,0),vw.add(0)}catch(e){}function mw(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=qg({},e.props),a=e.key,s=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in L0(t)&&(s=t.ref,l=y0.current),U0(t)&&(a=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)j0.call(t,n)&&!F0.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?i[n]=o[n]:i[n]=t[n]);var f=arguments.length-2;if(1==f)i.children=r;else if(1<f){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];i.children=p}return H0(e.type,a,s,u,c,l,i)}.apply(this,arguments),o=2;o<arguments.length;o++)lw(arguments[o],n.type);return fw(n),n}function gw(e){var t=pw.bind(null,e);return t.type=e,dw||(dw=!0,_0("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 _0("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}O=pw,M.Children={map:function(e,t,r){if(null==e)return e;var n=[];return nw(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=Z0(null,null,t,r),Q0(e,tw,t),J0(t)},count:function(e){return Q0(e,function(){return null},null)},toArray:function(e){var t=[];return nw(e,t,null,function(e){return e}),t},only:function(e){if(G0(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},M.Component=k0,M.Fragment=Wg,M.Profiler=Jg,M.PureComponent=P0,M.StrictMode=Zg,M.Suspense=n0,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T0,M.cloneElement=mw,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:e0,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:Qg,_context:r}),o=!1,t={$$typeof:e0,_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=gw,M.createRef=function(){var e={current:null};return Object.seal(e),e},M.forwardRef=function(e){return null!=e&&e.$$typeof===i0?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:r0,render:e}},M.isValidElement=G0,M.lazy=function(e){var t,r,n={$$typeof:a0,_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 ow(e)||D("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:i0,type:e,compare:void 0===t?null:t}},M.useCallback=function(e,t){return iw().useCallback(e,t)},M.useContext=function(e,t){var r,n=iw();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 iw().useDebugValue(e,t)},M.useEffect=function(e,t){return iw().useEffect(e,t)},M.useImperativeHandle=function(e,t,r){return iw().useImperativeHandle(e,t,r)},M.useLayoutEffect=function(e,t){return iw().useLayoutEffect(e,t)},M.useMemo=function(e,t){return iw().useMemo(e,t)},M.useReducer=function(e,t,r){return iw().useReducer(e,t,r)},M.useRef=function(e){return iw().useRef(e)},M.useState=function(e){return iw().useState(e)},M.version="16.14.0"}"production"===production?P.exports=i:P.exports=M;var ww=P.exports,bw=P.exports.createContext({hackle:void 0,user:void 0}),c=bw.Consumer,Ew=bw.Provider;var Tw=l.Logger.log;function _w(e,t){void 0===t&&(t="A");var r=P.exports.useContext(bw),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=ng(P.exports.useState(function(){return n?i():("undefined"!=typeof window&&Tw.error("HackleClient is not existed"),t)}),2),a=r[0],r=r[1],s={key:e,user:o},u=ng(P.exports.useState(s),2),c=u[0],u=u[1];return Ow(c,s)||(u(s),r(i())),a}function Rw(e){var t=P.exports.useContext(bw),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=ng(P.exports.useState(function(){return r?o():("undefined"!=typeof window&&Tw.error("HackleClient is not existed"),!1)}),2),i=t[0],t=t[1],a={key:e,user:n},s=ng(P.exports.useState(a),2),u=s[0],s=s[1];return Ow(u,a)||(s(a),t(o())),i}function Ow(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=Aw(e),o=Aw(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 Aw(e){return"object"==typeof e&&null!==e?e:{}}function Sw(e){var t,r=e.experimentKey,e=e.children,n=_w(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 Iw(e){return e.variation,e=e.children,P.exports.createElement(P.exports.Fragment,null,e)}function kw(e){var t=Rw(e.featureKey);return ww.createElement(ww.Fragment,null,e.children(t))}l.HackleContext=bw,l.HackleContextConsumer=c,l.HackleContextProvider=Ew,l.HackleExperiment=Sw,l.HackleFeature=kw,l.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=ng(P.exports.useState(!1),2),a=i[0],s=i[1],e=(i=ng(P.exports.useState(e),2))[0],u=i[1];return P.exports.useEffect(function(){u(function(e){return rg(rg({},e),{user:r})})},[r]),P.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){s(!0)},function(){s(!0)})},[t]),a?ww.createElement(Ew,{value:e},o):null},l.HackleVariation=Iw,l.createInstance=function(e,t){return new og(e,t)},l.useFeature=Rw,l.useFeatureFlagDetail=function(e){var t=(i=P.exports.useContext(bw)).hackle,r=i.user,n=P.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e,r))||l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION)},[e,r,t]),o=(i=ng(P.exports.useState(function(){return t?n():("undefined"!=typeof window&&Tw.error("HackleClient is not existed"),l.FeatureFlagDecision.off(l.DecisionReason.EXCEPTION))}),2))[0],i=i[1],a={key:e,user:r},s=(u=ng(P.exports.useState(a),2))[0],u=u[1];return Ow(s,a)||(u(a),i(n())),o},l.useTrack=function(){var e=P.exports.useContext(bw),t=e.hackle,r=e.user;return t?function(e){return null==t?void 0:t.track(e,r)}:("undefined"!=typeof window&&Tw.error("HackleClient is not existed"),function(){})},l.useVariation=_w,l.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(a=P.exports.useContext(bw)).hackle,n=a.user,o=P.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e,n))||l.Decision.of(t,l.DecisionReason.EXCEPTION)},[t,e,n,r]),i=(a=ng(P.exports.useState(function(){return r?o():("undefined"!=typeof window&&Tw.error("HackleClient is not existed"),l.Decision.of(t,l.DecisionReason.EXCEPTION))}),2))[0],a=a[1],s={key:e,user:n},u=(c=ng(P.exports.useState(s),2))[0],c=c[1];return Ow(u,s)||(c(s),a(o())),i},Object.defineProperty(l,"__esModule",{value:!0})});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).hackleReactSDK={})}(this,function(f){"use strict";var j,L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e={},F=(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(F=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}F(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}}}}$.setLogLevel=function(e){this.logLevel=e=void 0===e?3:e},$._log=function(e,t){var r;switch(e){case"WARN":r="orange";break;case"ERROR":r="red";break;default:r="#AAAAAA"}if(t instanceof Error)z.log(e,r,t.message,t);else try{z.log(e,r,t)}catch(e){}},$.logLevel=3,$.log={error:function(e){1<=$.logLevel&&$._log("ERROR",e)},warn:function(e){2<=$.logLevel&&$._log("WARN",e)},info:function(e){3<=$.logLevel&&$._log("INFO",e)},debug:function(e){4<=$.logLevel&&$._log("DEBUG",e)}};var K=$,z=(q.log=function(e,t,r,n){try{console.log("%c[".concat(e,"] Hackle: ").concat(r),"color: ".concat(t))}catch(e){}},q),G=[0,8,16,32,64,128,256,512],B=K.log;function q(){}function $(){}function X(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])}function Y(e,t,r){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&&(0===r.status?t(new Error("Request error")):e({statusCode:r.status,body:r.responseText}))},r.onerror=function(){t()},r.setRequestHeader("content-type","application/json"),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)):B.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),le=(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),fe=(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,l,f,p,d){this.id=e,this.key=t,this.type=r,this.identifierType=n,this.status=o,this.version=i,this.variations=a,this.userOverrides=s,this.segmentOverrides=u,this.targetAudiences=c,this.targetRules=l,this.defaultRule=f,this.containerId=p,this._winnerVariationId=d}function t(){}function be(e,t){this.isOn=e,this.reason=t}function Ee(e,t){this.variation=e,this.reason=t}fr.tryParse=function(e){var t,r,n,o,e=fr.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 fr(new Se(parseInt(t,10),parseInt(r,10),parseInt(n,10)),Ae.parse(o),Ae.parse(e))},fr.prototype.compareTo=function(e){return this.coreVersion.compareTo(e.coreVersion)||this.prerelease.compareTo(e.prerelease)},fr.prototype.isEqualTo=function(e){return 0===this.compareTo(e)},fr.prototype.isGreaterThan=function(e){return 0<this.compareTo(e)},fr.prototype.isGreaterThanOrEqualTo=function(e){return 0<=this.compareTo(e)},fr.prototype.isLessThan=function(e){return this.compareTo(e)<0},fr.prototype.isLessThanOrEqualTo=function(e){return this.compareTo(e)<=0},fr.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=fr,Se=(lr.prototype.compareTo=function(e){return this.major-e.major||this.minor-e.minor||this.patch-e.patch},lr),Ae=(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),Ie=["MATCH","NOT_MATCH"],Ce=["STRING","NUMBER","BOOLEAN","VERSION"],ke=["IN","CONTAINS","STARTS_WITH","ENDS_WITH","GT","GTE","LT","LTE"],xe=["VARIATION","BUCKET"],Ne=["USER_ID","USER_PROPERTY","HACKLE_PROPERTY","SEGMENT"],Pe=["USER_ID","USER_PROPERTY"],De=(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),Me=(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 Le((new Date).getTime(),t,e,r.variationId,r.variationKey,r.reason)},ar.track=function(e,t,r){return new Fe((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),Le=(U(ir,Re=je),ir.prototype.toDto=function(){return{timestamp:this.timestamp,userId:this.user.identifiers[pe.ID],identifiers:this.user.identifiers,userProperties:Me.filteredProperties(this.user.properties||{}),hackleProperties:Me.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),Fe=(U(or,_e=je),or.prototype.toDto=function(){return{timestamp:this.timestamp,userId:this.user.identifiers[pe.ID],identifiers:this.user.identifiers,userProperties:Me.filteredProperties(this.user.properties||{}),hackleProperties:Me.filteredProperties(this.user.hackleProperties||{}),eventTypeId:this.eventType.id,eventTypeKey:this.eventType.key,value:this.event.value||0,properties:Me.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=($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.isLessThan(t)},$t),p=(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.isLessThanOrEqualTo(t)},qt),n=(Bt.prototype.getMatcher=function(e){switch(e){case"IN":return Bt.IN_MATCHER;case"CONTAINS":return Bt.CONTAINS_MATCHER;case"STARTS_WITH":return Bt.STARTS_WITH_MATCHER;case"ENDS_WITH":return Bt.ENDS_WITH_MATCHER;case"GT":return Bt.GT_MATCHER;case"GTE":return Bt.GTE_MATCHER;case"LT":return Bt.LT_MATCHER;case"LTE":return Bt.LTE_MATCHER}},Bt.IN_MATCHER=new n,Bt.CONTAINS_MATCHER=new o,Bt.STARTS_WITH_MATCHER=new i,Bt.ENDS_WITH_MATCHER=new a,Bt.GT_MATCHER=new u,Bt.GTE_MATCHER=new c,Bt.LT_MATCHER=new l,Bt.LTE_MATCHER=new p,Bt),o=(Gt.prototype.matches=function(e,t,r){return"string"==typeof t&&"string"==typeof r&&e.stringMatches(t,r)},Gt),i=(zt.prototype.matches=function(e,t,r){return"number"==typeof t&&"number"==typeof r&&e.numberMatches(t,r)},zt),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=(Ft.prototype.matches=function(e,t,r){r=this.userValueResolver.resolveOrNull(r,e.key);return!Ke.isNullOrUndefined(r)&&this.valueOperatorMatcher.matches(r,e.match)},Ft),p=(Lt.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,"]"))}},Lt),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=(Mt.prototype.matches=function(e,t,r){var n=this;return e.targets.some(function(e){return n._matches(e,t,r)})},Mt.prototype._matches=function(e,t,r){var n=this;return e.conditions.every(function(e){return n.userConditionMatcher.matches(e,t,r)})},Mt),ze=(Dt.prototype.getMatcher=function(e){switch(e){case"USER_ID":case"USER_PROPERTY":case"HACKLE_PROPERTY":return Dt.USER_CONDITION_MATCHER;case"SEGMENT":return Dt.SEGMENT_CONDITION_MATCHER}},Dt.USER_CONDITION_MATCHER=new l(new p,new r(new c,new n)),Dt.SEGMENT_CONDITION_MATCHER=new o(new i(Dt.USER_CONDITION_MATCHER)),Dt),Ge=(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),Be={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}},qe=(Nt.prototype.bucketing=function(e,t){var r=this.calculateSlotNumber(e.seed,e.slotSize,t);return e.slots.find(function(e){return e.contains(r)})},Nt.prototype.calculateSlotNumber=function(e,t,r){r=Be.murmurhash3_x86_32(r,e);return Math.abs(r)%Math.abs(t)},Nt),$e=(xt.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)},xt.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=new xt,n=0,o=e.reverse();n<o.length;n++)r=new xt(o[n],r);return r},xt),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=(Ct.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)},Ct),We=(It.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)}},It),Ze=(At.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,"]"))},At),Je=(St.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)},St),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,lt=(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",ft=(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],l=r=0;l<u.length&&!i;)if(i=u[l++].exec(e))for(n=0;n<c.length;n++)a=i[++r],"object"==typeof(o=c[n])&&0<o.length?2==o.length?"function"==typeof o[1]?this[o[0]]=o[1].call(this,a):this[o[0]]=o[1]:3==o.length?"function"!=typeof o[1]||o[1].exec&&o[1].test?this[o[0]]=a?a.replace(o[1],o[2]):void 0:this[o[0]]=a?o[1].call(this,a,o[2]):void 0:4==o.length&&(this[o[0]]=a?o[3].call(this,a.replace(o[1],o[2])):void 0):this[o]=a||void 0;s+=2}},str:function(e,t){for(var r in t)if("object"==typeof t[r]&&0<t[r].length){for(var n=0;n<t[r].length;n++)if(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=ft.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 qe,t=new He(new ze),r=new Ge(e),n=new at(t,r),e=new st(e);this.abTestFlow=$e.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=$e.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 St(e){this.experimentTargetDeterminer=e}function At(){}function It(){}function Ct(){}function kt(e){this.overrideResolver=e}function xt(e,t){void 0===t&&(t=void 0),this.flowEvaluator=e=void 0===e?void 0:e,this.nextFlow=t}function Nt(){}function Pt(e){this.bucketer=e}function Dt(){}function Mt(e){this.userConditionMatcher=e}function jt(e){this.segmentMatcher=e}function Lt(){}function Ft(e,t){this.userValueResolver=e,this.valueOperatorMatcher=t}function Ut(){}function Vt(){}function Ht(){}function Kt(){}function zt(){}function Gt(){}function Bt(){}function qt(){}function $t(){}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 lr(e,t,r){this.major=e,this.minor=t,this.patch=r}function fr(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(){Ar.get("_hackle_hid")||Sr()},Er.reInitialize=function(){Sr()},Er);function Er(){}function Tr(){br.initialize()}function _r(){var e=Ar.get("_hackle_id");return e||Ar.get("_hackle_hid")||Sr()}function Rr(e){Ar.set("_hackle_id",e,3650,!0)}function Or(){Ar.remove("_hackle_id",!0)}function Sr(){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 Ar.set("_hackle_hid",e,3650,!0),e}xr.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},xr.set=function(e,t,r,n,o,i){var a="",s="",u="",r=(n&&(a=(n=xr.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},xr.remove=function(e,t){xr.set(e,"",-1,t,!1,!1)},xr.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 Ar=xr,Ir=K.log,Cr=(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 Ir.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 Ir.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){Ir.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){Ir.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(){Ir.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 lt(e,t),this.hackleUserResolver=new wr}function xr(){}function Nr(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}}function Pr(e){return e&&e.Math==Math&&e}function h(e){try{return!!e()}catch(e){return!0}}zr.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(),Nr(e));this.httpRequest.postRequest(this.dispatchUrl,e,r,t)},zr.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=Nr(e),this.httpRequest.sendBeacon(this.beaconDispatchUrl,n,r,t)):this.dispatch(e,t)};var Dr=zr,Mr=K.log,jr=(y.prototype.getExperimentOrNull=function(e){return this.experiments.get(e)},y.prototype.getFeatureFlagOrNull=function(e){return this.featureFlags.get(e)},y.prototype.getBucketOrNull=function(e){return this.buckets.get(e)},y.prototype.getEventTypeOrNull=function(e){return this.eventTypes.get(e)},y.prototype.getSegmentOrNull=function(e){return this.segments.get(e)},y.prototype.getContainerOrNull=function(e){return this.containers.get(e)},y.from=function(e){var t=this,r=y.associate(e.buckets,function(e){return[e.id,t.toBucket(e)]}),n=y.associateBy(y.mapNotUndefined(e.experiments,function(e){return t.toExperimentOrNull("AB_TEST",e)}),function(e){return e.key}),o=y.associateBy(y.mapNotUndefined(e.featureFlags,function(e){return t.toExperimentOrNull("FEATURE_FLAG",e)}),function(e){return e.key}),i=y.associate(e.events,function(e){return[e.key,new Z(e.id,e.key)]}),a=y.associateBy(y.mapNotUndefined(e.segments,function(e){return t.toSegmentOrNull(e)}),function(e){return e.key}),e=y.associate(e.containers,function(e){return[e.id,t.toContainer(e)]});return new y(n,o,r,i,a,e)},y.toBucket=function(e){return new W(e.seed,e.slotSize,e.slots.map(function(e){var t=e.startInclusive,r=e.endExclusive,e=e.variationId;return new fe(t,r,e)}))},y.toExperimentOrNull=function(e,t){var r=this,n=this.experimentStatusOrNull(t.execution.status),o=t.variations.map(function(e){return new Y(e.id,e.key,"DROPPED"===e.status)}),i=y.associate(t.execution.userOverrides,function(e){return[e.userId,e.variationId]}),a=y.mapNotUndefined(t.execution.segmentOverrides,function(e){return r.toTargetRuleOrNull(e,De.IDENTIFIER)}),s=y.mapNotUndefined(t.execution.targetAudiences,function(e){return r.toTargetOrNull(e,De.PROPERTY)}),u=y.mapNotUndefined(t.execution.targetRules,function(e){return r.toTargetRuleOrNull(e,De.PROPERTY)}),c=this.toTargetActionOrNull(t.execution.defaultRule);return n&&c&&new le(t.id,t.key,e,t.identifierType,n,t.version,o,i,a,s,u,c,t.containerId,t.winnerVariationId)},y.experimentStatusOrNull=function(e){switch(e){case"READY":return"DRAFT";case"RUNNING":return"RUNNING";case"PAUSED":return"PAUSED";case"STOPPED":return"COMPLETED";default:return void Mr.debug("Unsupported status [".concat(e,"]"))}},y.toTargetRuleOrNull=function(e,t){t=this.toTargetOrNull(e.target,t),e=this.toTargetActionOrNull(e.action);return t&&e&&new ne(t,e)},y.toTargetActionOrNull=function(e){var t=this.parseOrNull(xe,e.type);return t&&new re(t,e.variationId,e.bucketId)},y.toTargetOrNull=function(e,t){var r=this,e=y.mapNotUndefined(e.conditions,function(e){return r.toConditionOrNull(e,t)});return new J(e)},y.toConditionOrNull=function(e,t){var r=this.toTargetKeyOrNull(e.key);if(r&&t.supports(r.type))return(t=this.toTargetMatchOrNull(e.match))&&new Q(r,t)},y.toTargetKeyOrNull=function(e){var t=this.parseOrNull(Ne,e.type);return t&&new ee(t,e.name)},y.toTargetMatchOrNull=function(e){var t=this.parseOrNull(Ie,e.type),r=this.parseOrNull(ke,e.operator),n=this.parseOrNull(Ce,e.valueType);return t&&r&&n&&new te(t,r,n,e.values)},y.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,De.SEGMENT)}))},y.toContainer=function(e){var t=this;return new he(e.id,e.bucketId,e.groups.map(function(e){return t.toContainerGroup(e)}))},y.toContainerGroup=function(e){return new ie(e.id,e.experiments)},y.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},y.mapNotUndefined=function(e,r){return e.reduce(function(e,t){t=r(t);return t&&e.push(t),e},Array())},y.associateTo=function(e,t,r){return e.reduce(function(e,t){t=r(t);return e.set(t[0],t[1]),e},t)},y.associate=function(e,t){return y.associateTo(e,new Map,t)},y.associateBy=function(e,t){return this.associateTo(e,new Map,function(e){return[t(e),e]})},y),Lr=(Kr.prototype.onReady=function(){return this.readyPromise},Kr.prototype.start=function(){this.isStarted||(this.isStarted=!0,this.errorRetryController.reset(),this.fetch())},Kr.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()},Kr.prototype.get=function(){return this.workspace},Kr.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)},Kr.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()},Kr.prototype.onRequestComplete=function(){this.isStarted&&(this.currentRequest=null,this.syncOnCurrentRequestComplete&&this.fetch(),this.syncOnCurrentRequestComplete=!1)},Kr.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=jr.from(e),this.readyPromiseResolver())}},Kr.prototype.onRequestRejected=function(e){this.isStarted&&(this.errorRetryController.countError(),console.error("Error fetching data",e))},Kr.prototype.close=function(){this.stop()},Kr),Fr=(Hr.prototype.getDelay=function(){return 0===this.errorCount?0:1e3*G[Math.min(G.length-1,this.errorCount)]+Math.round(1e3*Math.random())},Hr.prototype.countError=function(){this.errorCount<G.length-1&&this.errorCount++},Hr.prototype.reset=function(){this.errorCount=0},Hr),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==L?L:"undefined"!=typeof self?self:{},i=Pr("object"==typeof globalThis&&globalThis)||Pr("object"==typeof window&&window)||Pr("object"==typeof self&&self)||Pr("object"==typeof o&&o)||function(){return this}()||Function("return this")(),c={},n=!h(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),l=!h(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),Ur=Function.prototype.call,a=l?Ur.bind(Ur):function(){return Ur.apply(Ur,arguments)},p={},u={}.propertyIsEnumerable,Vr=Object.getOwnPropertyDescriptor,r=Vr&&!u.call({1:2},1);function Hr(){this.errorCount=0}function Kr(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 y(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 zr(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}p.f=r?function(e){e=Vr(this,e);return!!e&&e.enumerable}:u;function Gr(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function Br(e){return un(sn(e),8,-1)}function qr(e){if(null==e)throw pn("Can't call method on "+e);return e}function $r(e){return dn(hn(e))}function v(e){return"function"==typeof e}function Xr(e){return"object"==typeof e?null!==e:yn(e)}function Yr(e,t){return arguments.length<2?(r=vn[e],mn(r)?r:void 0):vn[e]&&vn[e][t];var r}function Wr(e){try{return Sn(e)}catch(e){return"Object"}}function Zr(e){if(An(e))return e;throw Cn(In(e)+" is not a function")}function Jr(e,t){return null==(e=e[t])?void 0:kn(e)}function Qr(t,r){try{jn(Mn,t,{value:r,configurable:!0,writable:!0})}catch(e){Mn[t]=r}return r}function m(e){return Vn(Un(e))}function en(e){return"Symbol("+(void 0===e?"":e)+")_"+$n(++Bn+qn,36)}function g(e){var t;return Yn(Jn,e)&&(Wn||"string"==typeof Jn[e])||(t="Symbol."+e,Wn&&Yn(Qn,e)?Jn[e]=Qn[e]:Jn[e]=(Zn&&eo?eo:to)(t)),Jn[e]}function tn(e){return e=function(e,t){if(!no(e)||oo(e))return e;var r=io(e,uo);if(r){if(r=ro(r,e,t=void 0===t?"default":t),!no(r)||oo(r))return r;throw so("Can't convert object to primitive value")}return ao(e,t=void 0===t?"number":t)}(e,"string"),co(e)?e:e+""}function rn(e){return fo?lo.createElement(e):{}}function nn(e){if(To(e))return e;throw Ro(_o(e)+" is not an object")}var L=l,o=Function.prototype,r=o.bind,on=o.call,an=L&&r.bind(on,on),u=L?function(e){return e&&an(e)}:function(e){return e&&function(){return on.apply(e,arguments)}},o=u,sn=o({}.toString),un=o("".slice),r=h,cn=Br,ln=Object,fn=u("".split),L=r(function(){return!ln("z").propertyIsEnumerable(0)})?function(e){return"String"==cn(e)?fn(e,""):ln(e)}:ln,pn=TypeError,dn=L,hn=qr,yn=v,vn=i,mn=v,o=u({}.isPrototypeOf),r=Yr("navigator","userAgent")||"",w=r,gn=i.process,wn=i.Deno,gn=gn&&gn.versions||wn&&wn.version,wn=gn&&gn.v8,gn=On=!(On=wn?0<(b=wn.split("."))[0]&&b[0]<4?1:+(b[0]+b[1]):On)&&w&&(!(b=w.match(/Edge\/(\d+)/))||74<=b[1])&&(b=w.match(/Chrome\/(\d+)/))?+b[1]:On,bn=gn,wn=h,w=!!Object.getOwnPropertySymbols&&!wn(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bn&&bn<41}),b=w&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,En=Yr,Tn=v,_n=o,Rn=Object,On=b?function(e){return"symbol"==typeof e}:function(e){var t=En("Symbol");return Tn(t)&&_n(t.prototype,Rn(e))},Sn=String,An=v,In=Wr,Cn=TypeError,kn=Zr,xn=a,Nn=v,Pn=Xr,Dn=TypeError,wn={exports:{}},Mn=i,jn=Object.defineProperty,Ln=Qr,Ln=i["__core-js_shared__"]||Ln("__core-js_shared__",{}),Fn=Ln,Un=((wn.exports=function(e,t){return Fn[e]||(Fn[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),Vn=Object,Hn=m,Kn=u({}.hasOwnProperty),zn=Object.hasOwn||function(e,t){return Kn(Hn(e),t)},Gn=u,Bn=0,qn=Math.random(),$n=Gn(1..toString),Gn=i,Xn=wn.exports,Yn=zn,E=en,Wn=w,Zn=b,Jn=Xn("wks"),Qn=Gn.Symbol,eo=Qn&&Qn.for,to=Zn?Qn:Qn&&Qn.withoutSetter||E,ro=a,no=Xr,oo=On,io=Jr,ao=function(e,t){var r,n;if("string"===t&&Nn(r=e.toString)&&!Pn(n=xn(r,e)))return n;if(Nn(r=e.valueOf)&&!Pn(n=xn(r,e)))return n;if("string"!==t&&Nn(r=e.toString)&&!Pn(n=xn(r,e)))return n;throw Dn("Can't convert object to primitive value")},so=TypeError,uo=g("toPrimitive"),co=On,w=Xr,lo=i.document,fo=w(lo)&&w(lo.createElement),po=rn,b=!n&&!h(function(){return 7!=Object.defineProperty(po("div"),"a",{get:function(){return 7}}).a}),ho=a,yo=p,vo=Gr,mo=$r,go=tn,wo=zn,bo=b,Eo=Object.getOwnPropertyDescriptor,Xn=(c.f=n?Eo:function(e,t){if(e=mo(e),t=go(t),bo)try{return Eo(e,t)}catch(e){}if(wo(e,t))return vo(!ho(yo.f,e,t),e[t])},{}),Gn=n&&h(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),To=Xr,_o=String,Ro=TypeError,Oo=b,So=nn,Ao=tn,Io=TypeError,Co=Object.defineProperty,ko=Object.getOwnPropertyDescriptor,xo=(Xn.f=n?Gn?function(e,t,r){var n;return So(e),t=Ao(t),So(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable&&(n=ko(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}),Co(e,t,r)}:Co:function(e,t,r){if(So(e),t=Ao(t),So(r),Oo)try{return Co(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Io("Accessors not supported");return"value"in r&&(e[t]=r.value),e},Xn),No=Gr,E=n?function(e,t,r){return xo.f(e,t,No(1,r))}:function(e,t,r){return e[t]=r,e},On={exports:{}},w=n,p=zn,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=Ln,Po=u(Function.toString);w(T.inspectSource)||(T.inspectSource=function(e){return Po(e)});function Do(e){return Zo[e]||(Zo[e]=Wo(e))}function Mo(e,t,r,n){var o=(n=n||{}).enumerable,i=void 0!==n.name?n.name:t;if(hi(r)&&vi(r,i,n),n.global)o?e[t]=r:mi(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:yi.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}function jo(e){return(e=+e)!=e||0==e?0:bi(e)}function Lo(e,t){return(e=Ei(e))<0?Ti(e+t,0):_i(e,t)}function _(e){return 0<(e=e.length)?Oi(Ri(e),9007199254740991):0}function Fo(s){return function(e,t,r){var n,o=Si(e),i=Ii(o),a=Ai(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 Uo(e,t){var r,n=ki(e),o=0,i=[];for(r in n)!Ci(Ni,r)&&Ci(n,r)&&Pi(i,r);for(;t.length>o;)!Ci(n,r=t[o++])||~xi(i,r)||Pi(i,r);return i}function Vo(e,t,r){for(var n=Hi(t),o=zi.f,i=Ki.f,a=0;a<n.length;a++){var s=n[a];Vi(e,s)||r&&Vi(r,s)||o(e,s,i(t,s))}}function Ho(e,t){return(e=Xi[$i(e)])==Wi||e!=Yi&&(Bi(t)?Gi(t):!!t)}function R(e,t){var r,n,o,i,a=e.target,s=e.global,u=e.stat;if(r=s?Zi:u?Zi[a]||ta(a,{}):(Zi[a]||{}).prototype)for(n in t){if(o=t[n],i=e.dontCallGetSet?(i=Ji(r,n))&&i.value:r[n],!na(s?n:a+(u?".":"#")+n,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;ra(o,i)}(e.sham||i&&i.sham)&&Qi(o,"sham",!0),ea(r,n,o,e)}}var Ko,zo,Go,Bo,qo,$o,Xo,Yo,b=T.inspectSource,w=v,T=b,O=i.WeakMap,w=w(O)&&/native code/.test(T(O)),T=wn.exports,Wo=en,Zo=T("keys"),O={},wn=u,Jo=Xr,Qo=E,ei=zn,T=Ln,S=Do,ti=O,ri=i.TypeError,ni=i.WeakMap,w=(Xo=w||T.state?(Ko=T.state||(T.state=new ni),zo=wn(Ko.get),Go=wn(Ko.has),Bo=wn(Ko.set),qo=function(e,t){if(Go(Ko,e))throw new ri("Object already initialized");return t.facade=e,Bo(Ko,e,t),t},$o=function(e){return zo(Ko,e)||{}},function(e){return Go(Ko,e)}):(ti[Yo=S("state")]=!0,qo=function(e,t){if(ei(e,Yo))throw new ri("Object already initialized");return t.facade=e,Qo(e,Yo,t),t},$o=function(e){return ei(e,Yo)?e[Yo]:{}},function(e){return ei(e,Yo)}),{set:qo,get:$o,has:Xo,enforce:function(e){return Xo(e)?$o(e):qo(e,{})},getterFor:function(t){return function(e){if(Jo(e)&&(e=$o(e)).type===t)return e;throw ri("Incompatible receiver, "+t+" required")}}}),T=h,oi=v,ii=zn,ai=n,si=p.CONFIGURABLE,ui=b,ci=w.enforce,li=w.get,fi=Object.defineProperty,pi=ai&&!T(function(){return 8!==fi(function(){},"length",{value:8}).length}),di=String(String).split("String"),ni=On.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),(!ii(e,"name")||si&&e.name!==t)&&(ai?fi(e,"name",{value:t,configurable:!0}):e.name=t),pi&&r&&ii(r,"arity")&&e.length!==r.arity&&fi(e,"length",{value:r.arity});try{r&&ii(r,"constructor")&&r.constructor?ai&&fi(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}r=ci(e);return ii(r,"source")||(r.source=di.join("string"==typeof t?t:"")),e},hi=(Function.prototype.toString=ni(function(){return oi(this)&&li(this).source||ui(this)},"toString"),v),yi=Xn,vi=On.exports,mi=Qr,wn={},gi=Math.ceil,wi=Math.floor,bi=Math.trunc||function(e){e=+e;return(0<e?wi:gi)(e)},Ei=jo,Ti=Math.max,_i=Math.min,Ri=jo,Oi=Math.min,Si=$r,Ai=Lo,Ii=_,ti={includes:Fo(!0),indexOf:Fo(!1)},Ci=zn,ki=$r,xi=ti.indexOf,Ni=O,Pi=u([].push),S=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Di=Uo,Mi=S.concat("length","prototype"),T=(wn.f=Object.getOwnPropertyNames||function(e){return Di(e,Mi)},{}),ni=(T.f=Object.getOwnPropertySymbols,Yr),ji=wn,Li=T,Fi=nn,Ui=u([].concat),T=ni("Reflect","ownKeys")||function(e){var t=ji.f(Fi(e)),r=Li.f;return r?Ui(t,r(e)):t},Vi=zn,Hi=T,Ki=c,zi=Xn,Gi=h,Bi=v,qi=/#|\.prototype\./,$i=Ho.normalize=function(e){return String(e).replace(qi,".").toLowerCase()},Xi=Ho.data={},Yi=Ho.NATIVE="N",Wi=Ho.POLYFILL="P",ni=Ho,Zi=i,Ji=c.f,Qi=E,ea=Mo,ta=Qr,ra=Vo,na=ni,T=!h(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),oa=zn,ia=v,aa=m,sa=Do("IE_PROTO"),ua=Object,ca=ua.prototype,T=T?ua.getPrototypeOf:function(e){e=aa(e);if(oa(e,sa))return e[sa];var t=e.constructor;return ia(t)&&e instanceof t?t.prototype:e instanceof ua?ca:null},la=v,fa=String,pa=TypeError,da=u,ha=nn,ya=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=da(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(r){}return function(e,t){return ha(e),function(e){if("object"==typeof e||la(e))return;throw pa("Can't set "+fa(e)+" as a prototype")}(t),n?r(e,t):e.__proto__=t,e}}():void 0),va={},ma=Uo,ga=S,A=Object.keys||function(e){return ma(e,ga)},wa=Xn,ba=nn,Ea=$r,Ta=A;va.f=n&&!Gn?Object.defineProperties:function(e,t){ba(e);for(var r,n=Ea(t),o=Ta(t),i=o.length,a=0;a<i;)wa.f(e,r=o[a++],n[r]);return e};function _a(){}function Ra(e){e.write(Ha("")),e.close();var t=e.parentWindow.Object;return e=null,t}function Oa(e,t){return Ya(e),void 0===t?e:Wa?Za(e,t):function(){return e.apply(t,arguments)}}function Sa(e){return void 0!==e&&(Ja.Array===e||es[Qa]===e)}function Aa(e){if(null!=e)return ss(e,cs)||ss(e,"@@iterator")||us[as(e)]}function Ia(e,t){if(t=arguments.length<2?hs(e):t,fs(t))return ps(ls(t,e));throw ys(ds(e)+" is not iterable")}function Ca(e,t,r){var n,o;ms(e);try{if(!(n=gs(e,"return"))){if("throw"===t)throw r;return r}n=vs(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return ms(n),r}function ka(e,t){this.stopped=e,this.result=t}function xa(e,t,r){function n(e){return i&&Is(i,"normal",e),new ka(!0,e)}function o(e){return p?(Es(e),y?v(e[0],e[1],n):v(e[0],e[1])):y?v(e,n):v(e)}var i,a,s,u,c,l,f=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),v=ws(t,f);if(d)i=e.iterator;else if(h)i=e;else{if(!(r=As(e)))throw Cs(Ts(e)+" is not iterable");if(_s(r)){for(a=0,s=Rs(e);a<s;a++)if((u=o(e[a]))&&Os(ks,u))return u;return new ka(!1)}i=Ss(e,r)}for(c=(d?e:i).next;!(l=bs(c,i)).done;){try{u=o(l.value)}catch(e){Is(i,"throw",e)}if("object"==typeof u&&u&&Os(ks,u))return u}return new ka(!1)}function Na(e){if("Symbol"===xs(e))throw TypeError("Cannot convert a Symbol value to a string");return Ns(e)}function Pa(e,t){var r,n=2<arguments.length?arguments[2]:void 0,o=js(Xs,this);return Fs?r=Fs(new qs,o?Ls(this):Xs):(r=o?this:Vs(Xs),Hs(r,Bs,"Error")),void 0!==t&&Hs(r,"message",function(e,t){return void 0===e?arguments.length<2?"":t:Ps(e)}(t)),Gs&&Hs(r,"stack",function(e,t){if(qa&&"string"==typeof e&&!za.prepareStackTrace)for(;t--;)e=Ga(e,Ba,"");return e}(r.stack,1)),o=r,$a(t=n)&&"cause"in t&&Xa(o,"cause",t.cause),zs(e,$s,{that:n=[]}),Hs(r,"errors",n),r}var Da,A=Yr("document","documentElement"),Ma=nn,ja=va,La=S,Gn=O,Fa=A,Ua=rn,Va=Do("IE_PROTO"),Ha=function(e){return"<script>"+e+"<\/script>"},Ka=function(){try{Da=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ka="undefined"==typeof document||document.domain&&Da?Ra(Da):((t=Ua("iframe")).style.display="none",Fa.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ha("document.F=Object")),e.close(),e.F);for(var r=La.length;r--;)delete Ka.prototype[La[r]];return Ka()},va=(Gn[Va]=!0,Object.create||function(e,t){var r;return null!==e?(_a.prototype=Ma(e),r=new _a,_a.prototype=null,r[Va]=e):r=Ka(),void 0===t?r:ja.f(r,t)}),za=Error,Ga=u("".replace),S=String(za("zxcasd").stack),Ba=/\n\s*at [^:]*:[^\n]*/,qa=Ba.test(S),$a=Xr,Xa=E,Ya=Zr,Wa=l,Za=u(u.bind),Gn={},Ja=Gn,Qa=g("iterator"),es=Array.prototype,S={},S=(S[g("toStringTag")]="z","[object z]"===String(S)),I=S,ts=v,rs=Br,ns=g("toStringTag"),os=Object,is="Arguments"==rs(function(){return arguments}()),I=I?rs: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=os(e),ns))?t:is?rs(e):"Object"==(t=rs(e))&&ts(e.callee)?"Arguments":t},as=I,ss=Jr,us=Gn,cs=g("iterator"),ls=a,fs=Zr,ps=nn,ds=Wr,hs=Aa,ys=TypeError,vs=a,ms=nn,gs=Jr,ws=Oa,bs=a,Es=nn,Ts=Wr,_s=Sa,Rs=_,Os=o,Ss=Ia,As=Aa,Is=Ca,Cs=TypeError,ks=ka.prototype,xs=I,Ns=String,Ps=Na,Ds=Gr,C=!h(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Ds(1,7)),7!==e.stack)}),Ms=R,js=o,Ls=T,Fs=ya,Us=Vo,Vs=va,Hs=E,Ks=Gr,zs=xa,Gs=C,Bs=g("toStringTag"),qs=Error,$s=[].push,Xs=(Fs?Fs(Pa,qs):Us(Pa,qs,{name:!0}),Pa.prototype=Vs(qs.prototype,{constructor:Ks(1,Pa),message:Ks(1,""),name:Ks(1,"AggregateError")})),C=(Ms({global:!0,constructor:!0,arity:2},{AggregateError:Pa}),g),Us=va,Ks=Xn.f,Ys=C("unscopables"),Ws=Array.prototype;null==Ws[Ys]&&Ks(Ws,Ys,{configurable:!0,value:Us(null)});function k(e){Ws[Ys][e]=!0}var Zs,Ms=h,C=v,Ks=T,Us=Mo,Js=g("iterator"),x=!1;[].keys&&("next"in(ru=[].keys())?(Ks=Ks(Ks(ru)))!==Object.prototype&&(Zs=Ks):x=!0);function Qs(e,t,r){(e=e&&!r?e.prototype:e)&&!ou(e,iu)&&nu(e,iu,{configurable:!0,value:t})}function eu(){return this}function tu(e,t,r,n,o,i,a){var s=r,u=t,c=void 0;function l(e){if(e===o&&v)return v;if(!Ru&&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=su(au,{next:uu(+!c,n)}),cu(s,u,!1),lu[u]=fu;var f,p,c=t+" Iterator",d=!1,h=e.prototype,y=h[Ou]||h["@@iterator"]||o&&h[o],v=!Ru&&y||l(o);if((n="Array"==t&&h.entries||y)&&(s=yu(n.call(new e)))!==Object.prototype&&s.next&&(yu(s)!==_u&&(vu?vu(s,_u):hu(s[Ou])||wu(s,Ou,eu)),mu(s,c,!0)),Eu&&"values"==o&&y&&"values"!==y.name&&(Tu?gu(h,"name","values"):(d=!0,v=function(){return du(y,this)})),o)if(f={values:l("values"),keys:i?v:l("keys"),entries:l("entries")},a)for(p in f)!Ru&&!d&&p in h||wu(h,p,f[p]);else pu({target:t,proto:!0,forced:Ru||d},f);return h[Ou]!==v&&wu(h,Ou,v,{name:o}),bu[t]=v,f}C((Zs=null==Zs||Ms(function(){var e={};return Zs[Js].call(e)!==e})?{}:Zs)[Js])||Us(Zs,Js,function(){return this});var ru={IteratorPrototype:Zs,BUGGY_SAFARI_ITERATORS:x},nu=Xn.f,ou=zn,iu=g("toStringTag"),au=ru.IteratorPrototype,su=va,uu=Gr,cu=Qs,lu=Gn,fu=function(){return this},pu=R,du=a,hu=v,yu=T,vu=ya,mu=Qs,gu=E,wu=Mo,bu=Gn,Eu=p.PROPER,Tu=p.CONFIGURABLE,_u=ru.IteratorPrototype,Ru=ru.BUGGY_SAFARI_ITERATORS,Ou=g("iterator"),Su=$r,Ks=k,C=Gn,Ms=w,Us=Xn.f,x=tu,p=n,Au=Ms.set,Iu=Ms.getterFor("Array Iterator"),ru=x(Array,"Array",function(e,t){Au(this,{type:"Array Iterator",target:Su(e),index:0,kind:t})},function(){var e=Iu(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"),Gn=C.Arguments=C.Array;if(Ks("keys"),Ks("values"),Ks("entries"),p&&"values"!==Gn.name)try{Us(Gn,"name",{value:"values"})}catch(pg){}function Cu(e){var e=Mu(e),t=ju.f;Lu&&e&&!e[Fu]&&t(e,Fu,{configurable:!0,get:function(){return this}})}function ku(e,t){if(Uu(t,e))return e;throw Vu("Incorrect invocation")}function xu(){}function Nu(e){if(!Hu(e))return!1;try{return Bu(xu,Gu,e),!0}catch(e){return!1}}function Pu(e){if(!Hu(e))return!1;switch(Ku(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Xu||!!$u(qu,zu(e))}catch(e){return!0}}var Du=I,Ms=(S||Mo(Object.prototype,"toString",S?{}.toString:function(){return"[object "+Du(this)+"]"},{unsafe:!0}),"process"==Br(i.process)),Mu=Yr,ju=Xn,Lu=n,Fu=g("species"),Uu=o,Vu=TypeError,x=u,C=h,Hu=v,Ku=I,zu=b,Gu=[],Bu=Yr("Reflect","construct"),qu=/^\s*(?:class|function)\b/,$u=x(qu.exec),Xu=!qu.exec(xu);Pu.sham=!0;function Yu(e,t){var r,e=tc(e).constructor;if(void 0===e||null==(r=tc(e)[rc]))return t;if(Ju(e=r))return e;throw ec(Qu(e)+" is not a constructor")}var Wu,Zu,Ks=!Bu||C(function(){var e;return Nu(Nu.call)||!Nu(Object)||!Nu(function(){e=!0})||e})?Pu:Nu,Ju=Ks,Qu=Wr,ec=TypeError,tc=nn,rc=g("species"),p=Function.prototype,nc=p.apply,oc=p.call,Us="object"==typeof Reflect&&Reflect.apply||(l?oc.bind(nc):function(){return oc.apply(nc,arguments)}),Gn=u([].slice),ic=TypeError,S=/(?:ipad|iphone|ipod).*applewebkit/i.test(r),ac=i,sc=Us,o=Oa,uc=v,cc=zn,I=h,lc=A,fc=Gn,pc=rn,x=S,C=Ms,p=ac.setImmediate,l=ac.clearImmediate,dc=ac.process,hc=ac.Dispatch,yc=ac.Function,A=ac.MessageChannel,vc=ac.String,mc=0,gc={};try{Wu=ac.location}catch(pg){}function wc(e){return function(){Tc(e)}}function bc(e){Tc(e.data)}function Ec(e){ac.postMessage(vc(e),Wu.protocol+"//"+Wu.host)}var Tc=function(e){var t;cc(gc,e)&&(t=gc[e],delete gc[e],t())};p&&l||(p=function(e){var t=arguments.length,r=1;if(t<r)throw ic("Not enough arguments");var n=uc(e)?e:yc(e),o=fc(arguments,1);return gc[++mc]=function(){sc(n,void 0,o)},Zu(mc),mc},l=function(e){delete gc[e]},C?Zu=function(e){dc.nextTick(wc(e))}:hc&&hc.now?Zu=function(e){hc.now(wc(e))}:A&&!x?(x=(C=new A).port2,C.port1.onmessage=bc,Zu=o(x.postMessage,x)):ac.addEventListener&&uc(ac.postMessage)&&!ac.importScripts&&Wu&&"file:"!==Wu.protocol&&!I(Ec)?(Zu=Ec,ac.addEventListener("message",bc,!1)):Zu="onreadystatechange"in pc("script")?function(e){lc.appendChild(pc("script")).onreadystatechange=function(){lc.removeChild(this),Tc(e)}}:function(e){setTimeout(wc(e),0)});function _c(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}function Rc(){this.head=null,this.tail=null}function Oc(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=Bc(r),this.reject=Bc(n)}var Sc,Ac,Ic,Cc,kc,xc,Nc,A={set:p,clear:l},C=i,o=/ipad|iphone|ipod/i.test(r)&&void 0!==C.Pebble,x=/web0s(?!.*chrome)/i.test(r),I=i,p=Oa,l=c.f,Pc=A.set,C=S,c=o,S=x,Dc=Ms,o=I.MutationObserver||I.WebKitMutationObserver,x=I.document,Mc=I.process,N=I.Promise,l=l(I,"queueMicrotask"),l=l&&l.value,S=(l||(Sc=function(){var e,t;for(Dc&&(e=Mc.domain)&&e.exit();Ac;){t=Ac.fn,Ac=Ac.next;try{t()}catch(e){throw Ac?Cc():Ic=void 0,e}}Ic=void 0,e&&e.enter()},Cc=C||Dc||S||!o||!x?!c&&N&&N.resolve?((C=N.resolve(void 0)).constructor=N,Nc=p(C.then,C),function(){Nc(Sc)}):Dc?function(){Mc.nextTick(Sc)}:(Pc=p(Pc,I),function(){Pc(Sc)}):(kc=!0,xc=x.createTextNode(""),new o(Sc).observe(xc,{characterData:!0}),function(){xc.data=kc=!kc})),l||function(e){e={fn:e,next:void 0};Ic&&(Ic.next=e),Ac||(Ac=e,Cc()),Ic=e}),jc=i,c=(Rc.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}},Rc),N=i.Promise,C="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,p=!C&&!Ms&&"object"==typeof window&&"object"==typeof document,I=i,Lc=N,x=v,o=ni,Fc=b,l=g,Uc=p,Vc=C,Hc=gn,Kc=(Lc&&Lc.prototype,l("species")),zc=!1,Gc=x(I.PromiseRejectionEvent),b={CONSTRUCTOR:o("Promise",function(){var e=Fc(Lc),t=e!==String(Lc);if(!t&&66===Hc)return!0;if(!Hc||Hc<51||!/native code/.test(e)){var e=new Lc(function(e){e(1)}),r=function(e){e(function(){},function(){})};if((e.constructor={})[Kc]=r,!(zc=e.then(function(){})instanceof r))return!0}return!t&&(Uc||Vc)&&!Gc}),REJECTION_EVENT:Gc,SUBCLASSING:zc},p={},Bc=Zr;p.f=function(e){return new Oc(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,l=e.reject,f=e.domain;try{u?(s||(2===t.rejection&&(i=t,Jc(ol,Zc,function(){var e=i.facade;Wc?ml.emit("rejectionHandled",e):_l("rejectionhandled",e,i.value)})),t.rejection=1),!0===u?r=a:(f&&f.enter(),r=u(a),f&&(f.exit(),o=!0)),r===e.promise?l(yl("Promise-chain cycle")):(n=El(r))?Jc(n,r,c,l):c(r)):l(a)}catch(e){f&&!o&&f.exit(),l(e)}}var $c,Xc,Yc,C=R,Wc=Ms,Zc=i,Jc=a,l=Mo,x=ya,I=Qs,o=Cu,Qc=Zr,el=v,tl=Xr,rl=ku,nl=Yu,ol=A.set,il=S,al=_c,sl=c,A=w,S=N,c=p,ul=b.CONSTRUCTOR,cl=b.REJECTION_EVENT,ll=b.SUBCLASSING,fl=A.getterFor("Promise"),pl=A.set,A=S&&S.prototype,dl=S,hl=A,yl=Zc.TypeError,vl=Zc.document,ml=Zc.process,gl=c.f,wl=gl,bl=!!(vl&&vl.createEvent&&Zc.dispatchEvent),El=function(e){var t;return!(!tl(e)||!el(t=e.then))&&t},Tl=function(r,o){r.notified||(r.notified=!0,il(function(){for(var e,n,t=r.reactions;e=t.get();)qc(e,r);r.notified=!1,o&&!r.rejection&&(n=r,Jc(ol,Zc,function(){var e,t=n.facade,r=n.value;if(Rl(n)&&(e=al(function(){Wc?ml.emit("unhandledRejection",r,t):_l("unhandledrejection",t,r)}),n.rejection=Wc||Rl(n)?2:1,e.error))throw e.value}))}))},_l=function(e,t,r){var n;bl?((n=vl.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Zc.dispatchEvent(n)):n={promise:t,reason:r},!cl&&(t=Zc["on"+e])?t(n):"unhandledrejection"===e&&function(e,t){var r=jc.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},Rl=function(e){return 1!==e.rejection&&!e.parent},Ol=function(t,r,n){return function(e){t(r,e,n)}},Sl=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=2,Tl(e,!0))},Al=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw yl("Promise can't be resolved itself");var n=El(e);n?il(function(){var t={done:!1};try{Jc(n,e,Ol(Al,t,r),Ol(Sl,t,r))}catch(e){Sl(t,e,r)}}):(r.value=e,r.state=1,Tl(r,!1))}catch(e){Sl({done:!1},e,r)}}};if(ul&&(hl=(dl=function(e){rl(this,hl),Qc(e),Jc($c,this);var t=fl(this);try{e(Ol(Al,t),Ol(Sl,t))}catch(e){Sl(t,e)}}).prototype,($c=function(e){pl(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new sl,rejection:!1,state:0,value:void 0})}).prototype=l(hl,"then",function(e,t){var r=fl(this),n=gl(nl(this,dl));return r.parent=!0,n.ok=!el(e)||e,n.fail=el(t)&&t,n.domain=Wc?ml.domain:void 0,0==r.state?r.reactions.add(n):il(function(){qc(n,r)}),n.promise}),Xc=function(){var e=new $c,t=fl(e);this.promise=e,this.resolve=Ol(Al,t),this.reject=Ol(Sl,t)},c.f=gl=function(e){return e===dl||void 0===e?new Xc:wl(e)},el(S)&&A!==Object.prototype)){Yc=A.then,ll||l(A,"then",function(e,t){var r=this;return new dl(function(e,t){Jc(Yc,r,e,t)}).then(e,t)},{unsafe:!0});try{delete A.constructor}catch(pg){}x&&x(A,hl)}C({global:!0,constructor:!0,wrap:!0,forced:ul},{Promise:dl}),I(dl,"Promise",!1),o("Promise");var Il=g("iterator"),Cl=!1;try{var kl=0,xl={next:function(){return{done:!!kl++}},return:function(){Cl=!0}};xl[Il]=function(){return this},Array.from(xl,function(){throw 2})}catch(pg){}function Nl(e,t){if(!t&&!Cl)return!1;var r=!1;try{var n={};n[Il]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}function Pl(e,t){return Wl(e),Zl(t)&&t.constructor===e?t:((0,(e=Jl.f(e)).resolve)(t),e.promise)}function Dl(o){return function(e,t){var r,e=gf(wf(e)),t=mf(t),n=e.length;return t<0||n<=t?o?"":void 0:(r=Ef(e,t))<55296||56319<r||t+1===n||(n=Ef(e,t+1))<56320||57343<n?o?bf(e,t):r:o?Tf(e,t,t+2):n-56320+(r-55296<<10)+65536}}function Ml(e,t){if(e){if(e[xf]!==Pf)try{kf(e,xf,Pf)}catch(t){e[xf]=Pf}if(e[Nf]||kf(e,Nf,t),If[t])for(var r in Cf)if(e[r]!==Cf[r])try{kf(e,r,Cf[r])}catch(t){e[r]=Cf[r]}}}var jl,Ll=N,c=b.CONSTRUCTOR||!Nl(function(e){Ll.all(e).then(void 0,function(){})}),Fl=a,Ul=Zr,Vl=p,Hl=_c,Kl=xa,S=(R({target:"Promise",stat:!0,forced:c},{all:function(e){var s=this,t=Vl.f(s),u=t.resolve,c=t.reject,r=Hl(function(){var n=Ul(s.resolve),o=[],i=0,a=1;Kl(e,function(e){var t=i++,r=!1;a++,Fl(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),ll=N,l=Yr,x=v,A=Mo,C=ll&&ll.prototype,zl=(S({target:"Promise",proto:!0,forced:b.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),x(ll)&&(ul=l("Promise").prototype.catch,C.catch!==ul&&A(C,"catch",ul,{unsafe:!0})),a),Gl=Zr,Bl=p,ql=_c,$l=xa,Xl=(R({target:"Promise",stat:!0,forced:c},{race:function(e){var r=this,n=Bl.f(r),o=n.reject,t=ql(function(){var t=Gl(r.resolve);$l(e,function(e){zl(t,r,e).then(n.resolve,o)})});return t.error&&o(t.value),n.promise}}),a),Yl=p,Wl=(R({target:"Promise",stat:!0,forced:b.CONSTRUCTOR},{reject:function(e){var t=Yl.f(this);return Xl(t.reject,void 0,e),t.promise}}),nn),Zl=Xr,Jl=p,I=R,o=b.CONSTRUCTOR,Ql=Pl,ef=(Yr("Promise"),I({target:"Promise",stat:!0,forced:o},{resolve:function(e){return Ql(this,e)}}),a),tf=Zr,rf=p,nf=_c,of=xa,af=(R({target:"Promise",stat:!0},{allSettled:function(e){var s=this,t=rf.f(s),u=t.resolve,r=t.reject,n=nf(function(){var n=tf(s.resolve),o=[],i=0,a=1;of(e,function(e){var t=i++,r=!1;a++,ef(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),sf=Zr,uf=Yr,cf=p,lf=_c,ff=xa,xl=(R({target:"Promise",stat:!0},{any:function(e){var u=this,c=uf("AggregateError"),t=cf.f(u),l=t.resolve,f=t.reject,r=lf(function(){var n=sf(u.resolve),o=[],i=0,a=1,s=!1;ff(e,function(e){var t=i++,r=!1;a++,af(n,u,e).then(function(e){r||s||(s=!0,l(e))},function(e){r||s||(r=!0,o[t]=e,--a||f(new c(o,"No one promise resolved")))})}),--a||f(new c(o,"No one promise resolved"))});return r.error&&f(r.value),t.promise}}),R),S=N,x=h,pf=Yr,df=v,hf=Yu,yf=Pl,ll=Mo,vf=S&&S.prototype,A=(xl({target:"Promise",proto:!0,real:!0,forced:!!S&&x(function(){vf.finally.call({then:function(){}},function(){})})},{finally:function(t){var r=hf(this,pf("Promise")),e=df(t);return this.then(e?function(e){return yf(r,t()).then(function(){return e})}:t,e?function(e){return yf(r,t()).then(function(){throw e})}:t)}}),df(S)&&(l=pf("Promise").prototype.finally,vf.finally!==l&&ll(vf,"finally",l,{unsafe:!0})),u),mf=jo,gf=Na,wf=qr,bf=A("".charAt),Ef=A("".charCodeAt),Tf=A("".slice),_f=(Dl(!1),Dl(!0)),Rf=Na,C=w,ul=tu,Of=C.set,Sf=C.getterFor("String Iterator"),c=(ul(String,"String",function(e){Of(this,{type:"String Iterator",string:Rf(e),index:0})},function(){var e=Sf(this),t=e.string,r=e.index;return r>=t.length?{value:void 0,done:!0}:(t=_f(t,r),e.index+=t.length,{value:t,done:!1})}),i),b=(c.Promise,rn("span").classList),I=b&&b.constructor&&b.constructor.prototype,o=I===Object.prototype?void 0:I,Af=i,If={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},N=o,Cf=ru,kf=E,xl=g,xf=xl("iterator"),Nf=xl("toStringTag"),Pf=Cf.values;for(jl in If)Ml(Af[jl]&&Af[jl].prototype,jl);Ml(N,"DOMTokenList");function Df(e,t,r){(t=ip(t))in e?ap.f(e,t,sp(0,r)):e[t]=r}function Mf(e){if(9007199254740991<e)throw Op("Maximum allowed index exceeded");return e}function jf(e,t){return Sp(e=e)&&(r=e.constructor,(Ap(r)&&(r===kp||Sp(r.prototype))||Ip(r)&&null===(r=r[Cp]))&&(r=void 0)),new(void 0===r?kp:r)(0===t?0:t);var r}function Lf(t){return 51<=Np||!xp(function(){var e=[];return(e.constructor={})[Pp]=function(){return{foo:1}},1!==e[t](Boolean).foo})}function Ff(e,t){if(!delete e[t])throw zp("Cannot delete property "+Kp(t)+" of "+Kp(e))}function Uf(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=Zp(e),s=Wp(a),u=Yp(t,r),c=Jp(s),l=0,t=n||Qp,f=d?t(e,c):h||g?t(e,0):void 0;l<c;l++)if((w||l in s)&&(i=u(o=s[l],l,a),p))if(d)f[l]=i;else if(i)switch(p){case 3:return!0;case 5:return o;case 6:return l;case 2:ed(f,o)}else switch(p){case 4:return!1;case 7:ed(f,o)}return m?-1:y||v?v:f}}function Vf(e,t){var r=[][e];return!!r&&td(function(){r.call(null,t||function(){return 1},1)})}function Hf(u){var c=1==u;return function(e,t,r){for(var n,o=dd(e),i=pd(o),a=fd(t,r),s=hd(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 Kf(e,t,r,n,o,i,a,s){for(var u,c,l=o,f=0,p=!!a&&bd(a,s);f<n;)f in r&&(u=p?p(r[f],f,t):r[f],0<i&&md(u)?(c=gd(u),l=Kf(e,t,u,c,l,i-1)-1):(wd(l+1),e[l]=u),l++),f++;return l}function zf(c){return function(e,t,r,n){Yd(t);var o=Wd(e),i=Zd(o),a=Jd(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 Qd("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 Gf(e,t,r){for(var n=mh(e),o=vh(t,n),i=vh(void 0===r?n:r,n),a=wh(bh(i-o,0)),s=0;o<i;o++,s++)gh(a,s,e[o]);return a.length=s,a}function Bf(e,t){var r=e.length,n=Th(r/2);if(r<8){for(var o,i,a=e,s=t,u=a.length,c=1;c<u;){for(o=a[i=c];i&&0<s(a[i-1],o);)a[i]=a[--i];i!==c++&&(a[i]=o)}return a}for(var l=e,f=Bf(Eh(e,0,n),t),p=Bf(Eh(e,n),t),d=t,h=f.length,y=p.length,v=0,m=0;v<h||m<y;)l[v+m]=v<h&&m<y?d(f[v],p[m])<=0?f[v++]:p[m++]:v<h?f[v++]:p[m++];return l}function qf(e){ly(e,vy,{value:{objectID:"O"+my++,weakData:{}}})}function $f(e,t,r){for(var n in t)Ay(e,n,t[n],r);return e}var Xf,Yf,Wf,Zf,Jf,Qf,ep,tp=p,rp=_c,np=(R({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=tp.f(this),e=rp(e);return(e.error?t.reject:t.resolve)(e.value),t.promise}}),nn),op=Ca,ip=tn,ap=Xn,sp=Gr,up=Oa,cp=a,lp=m,fp=Sa,pp=Ks,dp=_,hp=Df,yp=Ia,vp=Aa,mp=Array,gp=(R({target:"Array",stat:!0,forced:!Nl(function(e){Array.from(e)})},{from:function(e){var t=lp(e),e=pp(this),r=arguments.length,n=1<r?arguments[1]:void 0,o=void 0!==n;o&&(n=up(n,2<r?arguments[2]:void 0));var i,a,s,u,c,l,r=vp(t),f=0;if(!r||this===mp&&fp(r))for(i=dp(t),a=e?new this(i):mp(i);f<i;f++)l=o?n(t[f],f):t[f],hp(a,f,l);else for(c=(u=yp(t,r)).next,a=e?new this:[];!(s=cp(c,u)).done;f++)l=o?function(e,t,r,n){try{return n?t(np(r)[0],r[1]):t(r)}catch(t){op(e,"throw",t)}}(u,n,[s.value,f],!0):s.value,hp(a,f,l);return a.length=f,a}}),Br),x=Array.isArray||function(e){return"Array"==gp(e)},wp=(R({target:"Array",stat:!0},{isArray:x}),Ks),bp=Df,Ep=Array,Tp=(R({target:"Array",stat:!0,forced:h(function(){function e(){}return!(Ep.of.call(e)instanceof e)})},{of:function(){for(var e=0,t=arguments.length,r=new(wp(this)?this:Ep)(t);e<t;)bp(r,e,arguments[e++]);return r.length=t,r}}),m),_p=_,Rp=jo,S=k,Op=(R({target:"Array",proto:!0},{at:function(e){var t=Tp(this),r=_p(t),e=Rp(e),e=0<=e?e:r+e;return e<0||r<=e?void 0:t[e]}}),S("at"),TypeError),Sp=x,Ap=Ks,Ip=Xr,Cp=g("species"),kp=Array,xp=h,Np=gn,Pp=g("species"),ll=R,l=h,Dp=x,Mp=Xr,jp=m,Lp=_,Fp=Mf,Up=Df,Vp=jf,A=Lf,C=gn,Hp=g("isConcatSpreadable"),ul=51<=C||!l(function(){var e=[];return e[Hp]=!1,e.concat()[0]!==e}),b=A("concat"),Kp=(ll({target:"Array",proto:!0,arity:1,forced:!ul||!b},{concat:function(e){for(var t,r,n,o=jp(this),i=Vp(o,0),a=0,s=-1,u=arguments.length;s<u;s++)if(function(e){if(!Mp(e))return!1;var t=e[Hp];return void 0!==t?!!t:Dp(e)}(n=-1===s?o:arguments[s]))for(r=Lp(n),Fp(a+r),t=0;t<r;t++,a++)t in n&&Up(i,a,n[t]);else Fp(a+1),Up(i,a++,n);return i.length=a,i}}),Wr),zp=TypeError,Gp=m,Bp=Lo,qp=_,$p=Ff,Xp=Math.min,I=k,Yp=(R({target:"Array",proto:!0},{copyWithin:[].copyWithin||function(e,t){var r=Gp(this),n=qp(r),o=Bp(e,n),i=Bp(t,n),e=2<arguments.length?arguments[2]:void 0,a=Xp((void 0===e?n:Bp(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]:$p(r,o),o+=s,i+=s;return r}}),I("copyWithin"),Oa),Wp=L,Zp=m,Jp=_,Qp=jf,ed=u([].push),o={forEach:Uf(0),map:Uf(1),filter:Uf(2),some:Uf(3),every:Uf(4),find:Uf(5),findIndex:Uf(6),filterReject:Uf(7)},td=h,rd=o.every,nd=(R({target:"Array",proto:!0,forced:!Vf("every")},{every:function(e){return rd(this,e,1<arguments.length?arguments[1]:void 0)}}),m),od=Lo,id=_,ru=k,ad=(R({target:"Array",proto:!0},{fill:function(e){for(var t=nd(this),r=id(t),n=arguments.length,o=od(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,i=void 0===n?r:od(n,r);o<i;)t[o++]=e;return t}}),ru("fill"),o.filter),E=(R({target:"Array",proto:!0,forced:!Lf("filter")},{filter:function(e){return ad(this,e,1<arguments.length?arguments[1]:void 0)}}),R),sd=o.find,xl=k,ud=!0,N=("find"in[]&&Array(1).find(function(){ud=!1}),E({target:"Array",proto:!0,forced:ud},{find:function(e){return sd(this,e,1<arguments.length?arguments[1]:void 0)}}),xl("find"),R),cd=o.findIndex,p=k,ld=!0,fd=("findIndex"in[]&&Array(1).findIndex(function(){ld=!1}),N({target:"Array",proto:!0,forced:ld},{findIndex:function(e){return cd(this,e,1<arguments.length?arguments[1]:void 0)}}),p("findIndex"),Oa),pd=L,dd=m,hd=_,S={findLast:Hf(0),findLastIndex:Hf(1)},yd=S.findLast,C=k,vd=(R({target:"Array",proto:!0},{findLast:function(e){return yd(this,e,1<arguments.length?arguments[1]:void 0)}}),C("findLast"),S.findLastIndex),l=k,md=(R({target:"Array",proto:!0},{findLastIndex:function(e){return vd(this,e,1<arguments.length?arguments[1]:void 0)}}),l("findLastIndex"),x),gd=_,wd=Mf,bd=Oa,A=Kf,Ed=A,Td=m,_d=_,Rd=jo,Od=jf,Sd=(R({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Td(this),r=_d(t),n=Od(t,0);return n.length=Ed(n,t,t,r,0,void 0===e?1:Rd(e)),n}}),A),Ad=Zr,Id=m,Cd=_,kd=jf,xd=(R({target:"Array",proto:!0},{flatMap:function(e){var t,r=Id(this),n=Cd(r);return Ad(e),(t=kd(r,0)).length=Sd(t,r,r,n,0,1,e,1<arguments.length?arguments[1]:void 0),t}}),o.forEach),ll=Vf("forEach")?[].forEach:function(e){return xd(this,e,1<arguments.length?arguments[1]:void 0)},Nd=(R({target:"Array",proto:!0,forced:[].forEach!=ll},{forEach:ll}),ti.includes),ul=k,b=(R({target:"Array",proto:!0,forced:h(function(){return!Array(1).includes()})},{includes:function(e){return Nd(this,e,1<arguments.length?arguments[1]:void 0)}}),ul("includes"),R),Pd=ti.indexOf,I=Vf,Dd=u([].indexOf),Md=!!Dd&&1/Dd([1],1,-0)<0,ru=I("indexOf"),E=(b({target:"Array",proto:!0,forced:Md||!ru},{indexOf:function(e){var t=1<arguments.length?arguments[1]:void 0;return Md?Dd(this,e,t)||0:Pd(this,e,t)}}),R),xl=L,jd=$r,N=Vf,Ld=u([].join),p=xl!=Object,C=N("join",","),Fd=(E({target:"Array",proto:!0,forced:p||!C},{join:function(e){return Ld(jd(this),void 0===e?",":e)}}),Us),Ud=$r,Vd=jo,Hd=_,S=Vf,Kd=Math.min,zd=[].lastIndexOf,Gd=!!zd&&1/[1].lastIndexOf(1,-0)<0,l=S("lastIndexOf"),A=Gd||!l?function(e){if(Gd)return Fd(zd,this,arguments)||0;var t=Ud(this),r=Hd(t),n=r-1;for((n=1<arguments.length?Kd(n,Vd(arguments[1])):n)<0&&(n=r+n);0<=n;n--)if(n in t&&t[n]===e)return n||0;return-1}:zd,Bd=(R({target:"Array",proto:!0,forced:A!==[].lastIndexOf},{lastIndexOf:A}),o.map),ll=(R({target:"Array",proto:!0,forced:!Lf("map")},{map:function(e){return Bd(this,e,1<arguments.length?arguments[1]:void 0)}}),R),qd=m,$d=_,Xd=Mf,ul=h(function(){return 4294967297!==[].push.call({length:4294967296},1)}),ti=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}(),Yd=(ll({target:"Array",proto:!0,arity:1,forced:ul||ti},{push:function(e){var t=qd(this),r=$d(t),n=arguments.length;Xd(r+n);for(var o=0;o<n;o++)t[r]=arguments[o],r++;return t.length=r}}),Zr),Wd=m,Zd=L,Jd=_,Qd=TypeError,I={left:zf(!1),right:zf(!0)},eh=I.left,b=gn,ru=Ms,th=(R({target:"Array",proto:!0,forced:!Vf("reduce")||!ru&&79<b&&b<83},{reduce:function(e){var t=arguments.length;return eh(this,e,t,1<t?arguments[1]:void 0)}}),I.right),xl=gn,N=Ms,E=(R({target:"Array",proto:!0,forced:!Vf("reduceRight")||!N&&79<xl&&xl<83},{reduceRight:function(e){return th(this,e,arguments.length,1<arguments.length?arguments[1]:void 0)}}),R),rh=x,nh=u([].reverse),p=[1,2],C=(E({target:"Array",proto:!0,forced:String(p)===String(p.reverse())},{reverse:function(){return rh(this)&&(this.length=this.length),nh(this)}}),R),oh=x,ih=Ks,ah=Xr,sh=Lo,uh=_,ch=$r,lh=Df,Us=g,fh=Gn,S=Lf("slice"),ph=Us("species"),dh=Array,hh=Math.max,yh=(C({target:"Array",proto:!0,forced:!S},{slice:function(e,t){var r,n,o,i=ch(this),a=uh(i),s=sh(e,a),u=sh(void 0===t?a:t,a);if(oh(i)&&(r=i.constructor,(r=ih(r)&&(r===dh||oh(r.prototype))||ah(r)&&null===(r=r[ph])?void 0:r)===dh||void 0===r))return fh(i,s,u);for(n=new(void 0===r?dh:r)(hh(u-s,0)),o=0;s<u;s++,o++)s in i&&lh(n,o,i[s]);return n.length=o,n}}),o.some),vh=(R({target:"Array",proto:!0,forced:!Vf("some")},{some:function(e){return yh(this,e,1<arguments.length?arguments[1]:void 0)}}),Lo),mh=_,gh=Df,wh=Array,bh=Math.max,Eh=Gf,Th=Math.floor,l=Bf,A=r.match(/firefox\/(\d+)/i),ll=!!A&&+A[1],ul=/MSIE|Trident/.test(r),ti=r.match(/AppleWebKit\/(\d+)\./),ru=!!ti&&+ti[1],b=R,I=u,_h=Zr,Rh=m,Oh=_,Sh=Ff,Ah=Na,Ms=h,Ih=l,N=Vf,Ch=ll,kh=ul,xh=gn,Nh=ru,Ph=[],Dh=I(Ph.sort),Mh=I(Ph.push),xl=Ms(function(){Ph.sort(void 0)}),E=Ms(function(){Ph.sort(null)}),p=N("sort"),jh=!Ms(function(){if(xh)return xh<70;if(!(Ch&&3<Ch)){if(kh)return!0;if(Nh)return Nh<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++)Ph.push({k:e+r,v:t})}for(Ph.sort(function(e,t){return t.v-e.v}),r=0;r<Ph.length;r++)e=Ph[r].k.charAt(0),n.charAt(n.length-1)!==e&&(n+=e);return"DGBEFHACIJK"!==n}}),Gn=(b({target:"Array",proto:!0,forced:xl||!E||!p||!jh},{sort:function(e){void 0!==e&&_h(e);var t=Rh(this);if(jh)return void 0===e?Dh(t):Dh(t,e);for(var r,n,o=[],i=Oh(t),a=0;a<i;a++)a in t&&Mh(o,t[a]);for(Ih(o,(n=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==n?+n(e,t)||0:Ah(e)>Ah(t)?1:-1})),r=o.length,a=0;a<r;)t[a]=o[a++];for(;a<i;)Sh(t,a++);return t}}),Cu("Array"),R),Lh=m,Fh=Lo,Uh=jo,Vh=_,Hh=Mf,Kh=jf,zh=Df,Gh=Ff,Us=Lf("splice"),Bh=Math.max,qh=Math.min,C=(Gn({target:"Array",proto:!0,forced:!Us},{splice:function(e,t){var r,n,o,i,a,s,u=Lh(this),c=Vh(u),l=Fh(e,c),e=arguments.length;for(0===e?r=n=0:n=1===e?(r=0,c-l):(r=e-2,qh(Bh(Uh(t),0),c-l)),Hh(c+r-n),o=Kh(u,n),i=0;i<n;i++)(a=l+i)in u&&zh(o,i,u[a]);if(r<(o.length=n)){for(i=l;i<c-n;i++)s=i+r,(a=i+n)in u?u[s]=u[a]:Gh(u,s);for(i=c;c-n+r<i;i--)Gh(u,i-1)}else if(n<r)for(i=c-n;l<i;i--)s=i+r-1,(a=i+n-1)in u?u[s]=u[a]:Gh(u,s);for(i=0;i<r;i++)u[i+l]=arguments[i+2];return u.length=c-n+r,o}}),k("flat"),k("flatMap"),R),$h=m,Xh=_,Yh=Ff,Wh=Mf,S=1!==[].unshift(0),A=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}(),r=(C({target:"Array",proto:!0,arity:1,forced:S||A},{unshift:function(e){var t=$h(this),r=Xh(t),n=arguments.length;if(n){Wh(r+n);for(var o=r;o--;){var i=o+n;o in t?t[i]=t[o]:Yh(t,i)}for(var a=0;a<n;a++)t[a]=arguments[a]}return t.length=r+n}}),c.Array,{exports:{}}),ti={},Zh=Br,Jh=$r,Qh=wn.f,ey=Gf,ty="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=(ti.f=function(e){if(!ty||"Window"!=Zh(e))return Qh(Jh(e));var t=e;try{return Qh(t)}catch(t){return ey(ty)}},h(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})),ll=h,ry=Xr,ny=Br,oy=l,iy=Object.isExtensible,ul=ll(function(){iy(1)})||oy?function(e){return!!ry(e)&&(!oy||"ArrayBuffer"!=ny(e))&&(!iy||iy(e))}:iy,gn=!h(function(){return Object.isExtensible(Object.preventExtensions({}))}),ay=R,sy=u,ru=O,uy=Xr,cy=zn,ly=Xn.f,fy=wn,py=ti,dy=ul,hy=gn,yy=!1,vy=en("meta"),my=0,gy=r.exports={enable:function(){gy.enable=function(){},yy=!0;var o=fy.f,i=sy([].splice),e={};e[vy]=1,o(e).length&&(fy.f=function(e){for(var t=o(e),r=0,n=t.length;r<n;r++)if(t[r]===vy){i(t,r,1);break}return t},ay({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:py.f}))},fastKey:function(e,t){if(!uy(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!cy(e,vy)){if(!dy(e))return"F";if(!t)return"E";qf(e)}return e[vy].objectID},getWeakData:function(e,t){if(!cy(e,vy)){if(!dy(e))return!0;if(!t)return!1;qf(e)}return e[vy].weakData},onFreeze:function(e){return hy&&yy&&dy(e)&&!cy(e,vy)&&qf(e),e}},wy=(ru[vy]=!0,v),by=Xr,Ey=ya,I=R,N=i,Ty=u,Ms=ni,_y=Mo,b=r.exports,Ry=xa,Oy=ku,xl=v,Sy=Xr,E=h,p=Nl,Gn=Qs,Ay=Mo,Iy=Xn.f,Cy=va,ky=$f,xy=Oa,Ny=ku,Py=xa,Dy=tu,My=Cu,jy=n,Ly=r.exports.fastKey,Fy=w.set,Uy=w.getterFor;function Vy(e){var r=Ty(Qf[e]);_y(Qf,e,"add"==e?function(e){return r(this,0===e?0:e),this}:"delete"==e?function(e){return!(Wf&&!Sy(e))&&r(this,0===e?0:e)}:"get"==e?function(e){return Wf&&!Sy(e)?void 0:r(this,0===e?0:e)}:"has"==e?function(e){return!(Wf&&!Sy(e))&&r(this,0===e?0:e)}:function(e,t){return r(this,0===e?0:e,t),this})}Us=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},C={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=Ly(t,!0),key:t,value:r,previous:t=o.last,next:void 0,removed:!1},o.first||(o.first=i),t&&(t.next=i),jy?o.size++:e.size++,"F"!==n&&(o.index[n]=i)),e}function a(e,t){var r,e=u(e),n=Ly(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){Ny(e,s),Fy(e,{type:r,index:Cy(null),first:void 0,last:void 0,size:0}),jy||(e.size=0),null!=t&&Py(t,e[o],{that:e,AS_ENTRIES:n})}),s=e.prototype,u=Uy(r);return ky(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,jy?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),jy?n.size--:this.size--),!!e},forEach:function(e){for(var t,r=u(this),n=xy(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)}}),ky(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)}}),jy&&Iy(s,"size",{get:function(){return u(this).size}}),e},setStrong:function(e,t,r){var n=t+" Iterator",o=Uy(t),i=Uy(n);Dy(e,t,function(e,t){Fy(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),My(t)}},Yf=-1!==(S="Map").indexOf("Map"),Wf=-1!==S.indexOf("Weak"),Zf=Yf?"set":"add",Jf=N.Map,Qf=Jf&&Jf.prototype,A={},Ms(S,!xl(ep=Jf)||!(Wf||Qf.forEach&&!E(function(){(new Jf).entries().next()})))?(ep=C.getConstructor(Us,S,Yf,Zf),b.enable()):Ms(S,!0)&&(c=(Xf=new ep)[Zf](Wf?{}:-0,1)!=Xf,l=E(function(){Xf.has(1)}),ll=p(function(e){new Jf(e)}),O=!Wf&&E(function(){for(var e=new Jf,t=5;t--;)e[Zf](t,t);return!e.has(-0)}),ll||(((ep=Us(function(e,t){Oy(e,Qf);r=new Jf,e=e,n=ep,Ey&&wy(e=e.constructor)&&e!==n&&by(e=e.prototype)&&e!==n.prototype&&Ey(r,e);var r,n=r;return null!=t&&Ry(t,n[Zf],{that:n,AS_ENTRIES:Yf}),n})).prototype=Qf).constructor=ep),(l||O)&&(Vy("delete"),Vy("has"),Yf&&Vy("get")),(O||c)&&Vy(Zf),Wf&&Qf.clear&&delete Qf.clear),A.Map=ep,I({global:!0,constructor:!0,forced:ep!=Jf},A),Gn(ep,S),Wf||C.setStrong(ep,S,Yf);function Hy(e,t){for(var r=0,n=By(t),o=new e(n);r<n;)o[r]=t[r++];return o}function Ky(e,t,r,n){for(var o,i,a,s=Xy(e),u=$y(s),c=qy(t,r),l=Zy(null),f=Wy(u),p=0;p<f;p++)a=u[p],(i=Yy(c(a,p,s)))in l?ev(l[i],a):l[i]=[a];if(n&&(o=n(s))!==Qy)for(i in l)l[i]=Jy(o,l[i]);return l}function zy(e){for(var t,r,n=iv(this),o=ov(n),i=nv(e,1<arguments.length?arguments[1]:void 0),a=new sv,s=av(o),u=0;u<s;u++)t=i(r=o[u],u,n),cv(a,t)?fv(uv(a,t),r):lv(a,t,[r]);return a}function Gy(e){return yv[e].prototype}var By=_,qy=Oa,$y=L,Xy=m,Yy=tn,Wy=_,Zy=va,Jy=Hy,Qy=Array,ev=u([].push),tv=Ky,zn=k,rv=(R({target:"Array",proto:!0},{group:function(e){return tv(this,e,1<arguments.length?arguments[1]:void 0)}}),zn("group"),Ky),wn=k,nv=(R({target:"Array",proto:!0,forced:!Vf("groupBy")},{groupBy:function(e){return rv(this,e,1<arguments.length?arguments[1]:void 0)}}),wn("groupBy"),Oa),ti=u,ov=L,iv=m,av=_,sv=Yr("Map"),ul=sv.prototype,uv=ti(ul.get),cv=ti(ul.has),lv=ti(ul.set),fv=ti([].push),gn=k,ru=zy,ya=(R({target:"Array",proto:!0,name:"groupToMap",forced:!Vf("groupByToMap")},{groupByToMap:ru}),gn("groupByToMap"),k),pv=(R({target:"Array",proto:!0},{groupToMap:zy}),ya("groupToMap"),_),dv=$r,ni=k,hv=Array,yv=(R({target:"Array",proto:!0},{toReversed:function(){for(var e=dv(this),t=hv,r=pv(e),n=new t(r),o=0;o<r;o++)n[o]=e[r-o-1];return n}}),ni("toReversed"),i),r=R,vv=Zr,mv=$r,gv=Hy,N=k,wv=Array,bv=u(Gy("Array").sort),Ms=(r({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&vv(e);var t=mv(this),t=gv(wv,t);return bv(t,e)}}),N("toSorted"),R),p=k,Ev=Mf,Tv=_,_v=Lo,Rv=$r,Ov=jo,Sv=Array,Av=Math.max,Iv=Math.min,Cv=(Ms({target:"Array",proto:!0},{toSpliced:function(e,t){var r,n,o,i,a=Rv(this),s=Tv(a),u=_v(e,s),e=arguments.length,c=0;for(0===e?r=n=0:n=1===e?(r=0,s-u):(r=e-2,Iv(Av(Ov(t),0),s-u)),o=Ev(s+r-n),i=Sv(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"),_),kv=jo,xv=RangeError,Nv=$r,Pv=Array;R({target:"Array",proto:!0},{with:function(e,t){var r=Nv(this),n=Pv,o=t,i=Cv(r),a=(e=kv(e))<0?i+e:e;if(i<=a||a<0)throw xv("Incorrect index");for(var s=new n(i),u=0;u<i;u++)s[u]=u===a?o:r[u];return s}});var Dv,E=i,ll=Ln,Us=v,l=T,O=Mo,c=g("asyncIterator"),I=E.AsyncIterator,A=ll.AsyncIteratorPrototype;if(A)Dv=A;else if(Us(I))Dv=I.prototype;else if(ll.USE_FUNCTION_CONSTRUCTOR||E.USE_FUNCTION_CONSTRUCTOR)try{D=l(l(l(Function("return async function*(){}()")()))),l(D)===Object.prototype&&(Dv=D)}catch(pg){}Us((Dv=Dv||{})[c])||O(Dv,c,function(){return this});function Mv(e,t,r){var n=e.done;Gv.resolve(e.value).then(function(e){t({done:n,value:e})},r)}function jv(e){Bv(this,{type:"AsyncFromSyncIterator",iterator:Kv(e),next:e.next})}function Lv(e,t,r,n){try{var o=nm(e,"return");if(o)return rm("Promise").resolve(tm(o,e)).then(function(){t(r)},function(e){n(e)})}catch(e){return n(e)}t(r)}function Fv(e){var p=0==e,d=1==e,h=2==e,y=3==e;return function(e,a,s){var e={iterator:e,next:Qv(em(e).next)},u=um("Promise"),c=e.iterator,t=e.next,l=0,f=void 0!==a;return!f&&p||im(a),new u(function(r,n){var o=function(e){Lv(c,n,e,n)},i=function(){try{if(p&&f)try{sm(l)}catch(e){o(e)}u.resolve(am(om(t,c))).then(function(e){try{if(am(e).done)p?(s.length=l,r(s)):r(!y&&(h||void 0));else{var t=e.value;try{f?u.resolve(p?a(t,l):a(t)).then(function(e){if(d)i();else if(h)e?i():Lv(c,r,!1,n);else if(p)try{s[l++]=e,i()}catch(e){o(e)}else e?Lv(c,r,y||t,n):i()},o):(s[l++]=t,i())}catch(e){o(e)}}}catch(e){n(e)}},n)}catch(e){n(e)}};i()})}}function Uv(e,t){if(!_m||!Tm(e)||!_m(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 Vv(e,t,r){r.get&&Rm(r.get,t,{getter:!0}),r.set&&Rm(r.set,t,{setter:!0}),Om.f(e,t,r)}var Hv=a,Kv=nn,Gn=va,zv=Jr,C=$f,S=w,zn=Dv,Gv=Yr("Promise"),Bv=S.set,qv=S.getterFor("AsyncFromSyncIterator"),wn=(jv.prototype=C(Gn(zn),{next:function(){var n=qv(this);return new Gv(function(e,t){var r=Kv(Hv(n.next,n.iterator));Mv(r,e,t)})},return:function(){var n=qv(this).iterator;return new Gv(function(e,t){var r=zv(n,"return");if(void 0===r)return e({done:!0,value:void 0});r=Kv(Hv(r,n));Mv(r,e,t)})}}),jv),$v=a,Xv=wn,Yv=nn,Wv=Ia,Zv=Jr,Jv=g("asyncIterator"),Qv=Zr,em=nn,tm=a,rm=Yr,nm=Jr,om=a,im=Zr,am=nn,sm=Mf,um=Yr,L={toArray:Fv(0),forEach:Fv(1),every:Fv(2),some:Fv(3),find:Fv(4)},cm=Oa,lm=m,fm=Ks,pm=Ia,dm=Aa,hm=Jr,ul=Gy,ym=Yr,vm=wn,mm=L.toArray,gm=g("asyncIterator"),wm=ul("Array").values,bm=(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(ym("Promise"))(function(e){var t=lm(i),r=(void 0!==s&&(s=cm(s,u)),hm(t,gm)),n=r?void 0:dm(t)||wm,o=fm(a)?new a:[],r=r?function(e,t){t=arguments.length<2?Zv(e,Jv):t;return t?Yv($v(t,e)):new Xv(Wv(e))}(t,r):new vm(pm(t,n));e(mm(r,s,o))})}}),o.filterReject),ti=k,Em=(R({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return bm(this,e,1<arguments.length?arguments[1]:void 0)}}),ti("filterOut"),o.filterReject),ru=k,gn=(R({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return Em(this,e,1<arguments.length?arguments[1]:void 0)}}),ru("filterReject"),R),Tm=x,_m=Object.isFrozen,Rm=(gn({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!Uv(e,!0))return!1;var t=e.raw;return t.length===e.length&&Uv(t,!1)}}),On.exports),Om=Xn,ya=k,Sm=m,Am=_,ni=(n&&(Vv(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=Sm(this),t=Am(e);return 0==t?void 0:e[t-1]},set:function(e){var t=Sm(this),r=Am(t);return t[0==r?0:r-1]=e}}),ya("lastItem")),k),Im=m,Cm=_,r=(n&&(Vv(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=Im(this),e=Cm(e);return 0==e?0:e-1}}),ni("lastIndex")),u),km=Zr,xm=_,Nm=m,Pm=jf,Dm=Yr("Map"),N=Dm.prototype,Mm=r(N.forEach),jm=r(N.has),Lm=r(N.set),Fm=r([].push),Ms=k,Um=(R({target:"Array",proto:!0,forced:!0},{uniqueBy:function(e){for(var t,r,n=Nm(this),o=xm(n),i=Pm(n,0),a=new Dm,s=null!=e?km(e):function(e){return e},u=0;u<o;u++)r=s(t=n[u]),jm(a,r)||Lm(a,r,t);return Mm(a,function(e){Fm(i,e)}),i}}),Ms("uniqueBy"),Gm.prototype.start=function(){this.timeoutId=setTimeout(this.callback,this.timeout)},Gm.prototype.refresh=function(){this.stop(),this.start()},Gm.prototype.stop=function(){this.timeoutId&&clearTimeout(this.timeoutId)},Gm),Vm=(zm.prototype.start=function(){this.started=!0},zm.prototype.stop=function(){this.started=!1;var e=this.sink(this.buffer,!0);return this.buffer=[],this.timer.stop(),e},zm.prototype.enqueue=function(e){this.started&&(0===this.buffer.length&&this.timer.refresh(),this.buffer.push(e),this.buffer.length>=this.maxQueueSize&&this.flush())},zm.prototype.flush=function(){this.sink(this.buffer),this.buffer=[],this.timer.stop()},zm.prototype.close=function(){this.stop()},zm),Hm=(Km.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()})},Km.prototype.process=function(e){this.queue.enqueue(e)},Km.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},Km.prototype.stop=function(){try{this.queue.close()}catch(e){}return Promise.resolve()},Km.prototype.close=function(){this.stop()},Km);function Km(e,t,r){this.eventDispatcher=e,this.flushInterval=r,this.queue=new Vm(this.drainQueue.bind(this),Bm,t,r)}function zm(e,t,r,n){this.buffer=[],this.sink=e,this.maxQueueSize=r,this.batchComparator=t,this.timer=new Um({callback:this.flush.bind(this),timeout:n}),this.started=!1}function Gm(e){var t=e.timeout,e=e.callback;this.timeout=Math.max(t,0),this.callback=e}function Bm(e,t){return e.timestamp==t.timestamp&&e.user.identifiers==t.user.identifiers&&e.user.properties==t.user.properties}eg.isEquals=function(t,r){if(null==r)return!1;var e=Object.keys(t);return e.length===Object.keys(r).length&&e.every(function(e){return t[e]===r[e]})};var qm=eg,$m=(Qm.prototype.process=function(e){this.exposureEventDedupDeterminer.isDedupTarget(e)||this.delegate.process(e)},Qm.prototype.close=function(){this.delegate.close()},Qm.prototype.start=function(){return this.delegate.start()},Qm),Xm=(Jm.prototype.isDedupTarget=function(e){if(-1===this.exposureEventDedupIntervalMillis)return!1;if(!je.isExposure(e))return!1;qm.isEquals(e.user.identifiers,null==(t=this.currentUser)?void 0:t.identifiers)||(this.currentUser=e.user,this.cache=new Map);var t=[e.experiment.id,e.variationId,e.variationKey,e.decisionReason].join("-"),e=(new Date).getTime(),r=this.cache.get(t);return void 0!==r&&e-r<=this.exposureEventDedupIntervalMillis||(this.cache.set(t,e),!1)},Jm),Ym=K.log,Wm=null,Zm={debug:!1,log_disabled:!1,auto_track_page_view:!1,pollingIntervalMillis:-1,exposureEventDedupIntervalMillis:-1,SDK_NAME_HEADER:"javascript-sdk_browser",SDK_VERSION_HEADER:"11.2.1"};function Jm(e){this.cache=new Map,this.exposureEventDedupIntervalMillis=e}function Qm(e,t){this.delegate=e,this.exposureEventDedupDeterminer=t}function eg(){}function tg(e,t){t=V(V({},Zm),t);if(t.log_disabled?K.setLogLevel(0):t.debug&&K.setLogLevel(4),Ym.debug("sdkKey : "+e),e||Ym.error("SDK Key must not be null"),Wm)return Ym.debug("use already exists hackleClient"),Wm;var o,r=!1,r=("undefined"!=typeof window&&(r=window&&window.navigator&&window.navigator.sendBeacon&&!0)&&Ym.debug("support sendBeacon API"),new Dr(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)})),n=-1,n=(void 0!==t.pollingIntervalMillis&&"number"==typeof t.pollingIntervalMillis&&0<t.pollingIntervalMillis&&(n=Math.max(t.pollingIntervalMillis,3e4)),new Lr(e,ae,{fetchUrl:"".concat("https://sdk.hackle.io/api/v2/w/").concat(e).concat("/w"),updateInterval:n,headers:((e={})["X-HACKLE-SDK-NAME"]=t.SDK_NAME_HEADER,e["X-HACKLE-SDK-VERSION"]=t.SDK_VERSION_HEADER,e)})),e=-1,r=(void 0!==t.exposureEventDedupIntervalMillis&&"number"==typeof t.exposureEventDedupIntervalMillis&&-1!==t.exposureEventDedupIntervalMillis&&(e=t.exposureEventDedupIntervalMillis<1e3||36e5<t.exposureEventDedupIntervalMillis?(Ym.warn("Exposure event dedup interval is outside allowed range[1_000ms..3_600_000ms]. Setting to default value[no dedup]."),-1):t.exposureEventDedupIntervalMillis),new Hm(r,100,500)),e=new Xm(e),r=new $m(r,e),i=new Cr(n,r);return Wm=i,t.auto_track_page_view&&(o=function(){return i.trackPageView({user:{id:_r()}})},i.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)Ym.error(e);else try{Ym.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)Ym.error(e);else try{Ym.error(e)}catch(e){}}}),window.addEventListener("popstate",function(){try{window.dispatchEvent(t("locationchange"))}catch(e){if(e instanceof Error)Ym.error(e);else try{Ym.error(e)}catch(e){}}}),window.addEventListener("locationchange",function(){try{o()}catch(e){if(e instanceof Error)Ym.error(e);else try{Ym.error(e)}catch(e){}}})}catch(t){if(t instanceof Error)Ym.error(t);else try{Ym.error(t)}catch(t){}}var r,n})),window.addEventListener("onpagehide"in window?"pagehide":"unload",function(){Or(),i.close()}),i}var p={createInstance:tg,getUserId:_r,setUserId:Rr,removeUserId:Or,Logger:K},rg=(f.Bucket=e.Bucket=W,f.Container=e.Container=he,f.ContainerGroup=e.ContainerGroup=ie,f.CoreVersion=e.CoreVersion=Se,f.Decision=e.Decision=ue,f.DecisionReason=e.DecisionReason=s,f.EventType=e.EventType=Z,f.Experiment=e.Experiment=le,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=Ie,f.MATCH_VALUE_TYPES=e.MATCH_VALUE_TYPES=Ce,f.MetaVersion=e.MetaVersion=Ae,f.SEGMENT_TYPES=e.SEGMENT_TYPES=Pe,f.Segment=e.Segment=oe,f.Slot=e.Slot=fe,f.TARGET_ACTION_TYPES=e.TARGET_ACTION_TYPES=xe,f.TARGET_KEY_TYPES=e.TARGET_KEY_TYPES=Ne,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=De,f.Variation=e.Variation=Y,f.Version=e.Version=Oe,j=e.createInstance=tg,e.default=p,f.getUserId=e.getUserId=_r,f.removeUserId=e.removeUserId=Or,f.setUserId=e.setUserId=Rr,function(){return(rg=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 ng(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}ig.prototype.variation=function(e,t,r){return this.client.variation(e,t,r)},ig.prototype.variationDetail=function(e,t,r){return this.client.variationDetail(e,t,r)},ig.prototype.isFeatureOn=function(e,t){return this.client.isFeatureOn(e,t)},ig.prototype.featureFlagDetail=function(e,t){return this.client.featureFlagDetail(e,t)},ig.prototype.track=function(e,t){this.client.track(e,t)},ig.prototype.trackPageView=function(e){this.client.trackPageView(e)},ig.prototype.onReady=function(e,t){this.client.onReady(e,t)},ig.prototype.onInitialized=function(e){return this.client.onInitialized(e)};var og=ig;function ig(e,t){this.client=j(e,rg(rg({},t),{SDK_NAME_HEADER:"react-sdk",SDK_VERSION_HEADER:"11.2.1"}))}var P={exports:{}},i={},ag=Object.getOwnPropertySymbols,sg=Object.prototype.hasOwnProperty,ug=Object.prototype.propertyIsEnumerable;var Ln=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]))sg.call(r,i)&&(n[i]=r[i]);if(ag)for(var a=ag(r),s=0;s<a.length;s++)ug.call(r,a[s])&&(n[a[s]]=r[a[s]])}return n},cg=Ln,T="function"==typeof Symbol&&Symbol.for,lg=T?Symbol.for("react.element"):60103,fg=T?Symbol.for("react.portal"):60106,A=T?Symbol.for("react.fragment"):60107,pg=T?Symbol.for("react.strict_mode"):60108,I=T?Symbol.for("react.profiler"):60114,dg=T?Symbol.for("react.provider"):60109,hg=T?Symbol.for("react.context"):60110,yg=T?Symbol.for("react.forward_ref"):60112,ll=T?Symbol.for("react.suspense"):60113,vg=T?Symbol.for("react.memo"):60115,mg=T?Symbol.for("react.lazy"):60116,gg="function"==typeof Symbol&&Symbol.iterator;function wg(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 bg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Eg={};function Tg(e,t,r){this.props=e,this.context=t,this.refs=Eg,this.updater=r||bg}function _g(){}function Rg(e,t,r){this.props=e,this.context=t,this.refs=Eg,this.updater=r||bg}Tg.prototype.isReactComponent={},Tg.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(wg(85));this.updater.enqueueSetState(this,e,t,"setState")},Tg.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_g.prototype=Tg.prototype;var E=Rg.prototype=new _g,Og=(E.constructor=Rg,cg(E,Tg.prototype),E.isPureReactComponent=!0,{current:null}),Sg=Object.prototype.hasOwnProperty,Ag={key:!0,ref:!0,__self:!0,__source:!0};function Ig(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)Sg.call(t,n)&&!Ag.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:lg,type:e,key:i,ref:a,props:o,_owner:Og.current}}function Cg(e){return"object"==typeof e&&null!==e&&e.$$typeof===lg}var kg=/\/+/g,xg=[];function Ng(e,t,r,n){var o;return xg.length?((o=xg.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 Pg(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,xg.length<10&&xg.push(e)}function Dg(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 lg:case fg:i=!0}}if(i)return n(o,t,""===r?"."+Mg(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+Mg(s=t[a],a);i+=e(s,u,n,o)}else if("function"==typeof(u=null!==t&&"object"==typeof t&&"function"==typeof(u=gg&&t[gg]||t["@@iterator"])?u:null))for(t=u.call(t),a=0;!(s=t.next()).done;)i+=e(s=s.value,u=r+Mg(s,a++),n,o);else if("object"===s)throw n=""+t,Error(wg(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return i}(e,"",t,r)}function Mg(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 jg(e,t){e.func.call(e.context,t,e.count++)}function Lg(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?Fg(e,n,r,function(e){return e}):null!=e&&(Cg(e)&&(t=o+(!(o=e).key||t&&t.key===e.key?"":(""+e.key).replace(kg,"$&/")+"/")+r,e={$$typeof:lg,type:o.type,key:t,ref:o.ref,props:o.props,_owner:o._owner}),n.push(e))}function Fg(e,t,r,n,o){var i="";Dg(e,Lg,t=Ng(t,i=null!=r?(""+r).replace(kg,"$&/")+"/":i,n,o)),Pg(t)}var Ug={current:null};function Vg(){var e=Ug.current;if(null===e)throw Error(wg(321));return e}var Hg,Kg,zg,l={ReactCurrentDispatcher:Ug,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Og,IsSomeRendererActing:{current:!1},assign:cg},D=(i.Children={map:function(e,t,r){if(null==e)return e;var n=[];return Fg(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;Dg(e,jg,t=Ng(null,null,t,r)),Pg(t)},count:function(e){return Dg(e,function(){return null},null)},toArray:function(e){var t=[];return Fg(e,t,null,function(e){return e}),t},only:function(e){if(Cg(e))return e;throw Error(wg(143))}},i.Component=Tg,i.Fragment=A,i.Profiler=I,i.PureComponent=Rg,i.StrictMode=pg,i.Suspense=ll,i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=l,i.cloneElement=function(e,t,r){if(null==e)throw Error(wg(267,e));var n=cg({},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=Og.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)Sg.call(t,s)&&!Ag.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:lg,type:e.type,key:o,ref:i,props:n,_owner:a}},i.createContext=function(e,t){return(e={$$typeof:hg,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:dg,_context:e},e.Consumer=e},i.createElement=Ig,i.createFactory=function(e){var t=Ig.bind(null,e);return t.type=e,t},i.createRef=function(){return{current:null}},i.forwardRef=function(e){return{$$typeof:yg,render:e}},i.isValidElement=Cg,i.lazy=function(e){return{$$typeof:mg,_ctor:e,_status:-1,_result:null}},i.memo=function(e,t){return{$$typeof:vg,type:e,compare:void 0===t?null:t}},i.useCallback=function(e,t){return Vg().useCallback(e,t)},i.useContext=function(e,t){return Vg().useContext(e,t)},i.useDebugValue=function(){},i.useEffect=function(e,t){return Vg().useEffect(e,t)},i.useImperativeHandle=function(e,t,r){return Vg().useImperativeHandle(e,t,r)},i.useLayoutEffect=function(e,t){return Vg().useLayoutEffect(e,t)},i.useMemo=function(e,t){return Vg().useMemo(e,t)},i.useReducer=function(e,t,r){return Vg().useReducer(e,t,r)},i.useRef=function(e){return Vg().useRef(e)},i.useState=function(e){return Vg().useState(e)},i.version="16.14.0",{}),Us=Function.call.bind(Object.prototype.hasOwnProperty),Gg=function(){};function Bg(e,t,r,n,o){if("production"!==production)for(var i in e)if(zg(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,Hg)}catch(e){a=e}!a||a instanceof Error||Gg((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 Kg)&&(Kg[a.message]=!0,i=o?o():"",Gg("Failed "+r+" type: "+a.message+(null!=i?i:"")))}}if("production"!==production&&(Hg="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Kg={},zg=Us,Gg=function(e){e="Warning: "+e;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(e){}}),Bg.resetWarningCache=function(){"production"!==production&&(Kg={})},"production"!==production){var qg=Ln,$g=Bg,O="function"==typeof Symbol&&Symbol.for,Xg=O?Symbol.for("react.element"):60103,Yg=O?Symbol.for("react.portal"):60106,Wg=O?Symbol.for("react.fragment"):60107,Zg=O?Symbol.for("react.strict_mode"):60108,Jg=O?Symbol.for("react.profiler"):60114,Qg=O?Symbol.for("react.provider"):60109,e0=O?Symbol.for("react.context"):60110,t0=O?Symbol.for("react.concurrent_mode"):60111,r0=O?Symbol.for("react.forward_ref"):60112,n0=O?Symbol.for("react.suspense"):60113,o0=O?Symbol.for("react.suspense_list"):60120,i0=O?Symbol.for("react.memo"):60115,a0=O?Symbol.for("react.lazy"):60116,s0=O?Symbol.for("react.block"):60121,u0=O?Symbol.for("react.fundamental"):60117,c0=O?Symbol.for("react.responder"):60118,l0=O?Symbol.for("react.scope"):60119,f0="function"==typeof Symbol&&Symbol.iterator,p0="@@iterator";function d0(e){if(null===e||"object"!=typeof e)return null;e=f0&&e[f0]||e[p0];return"function"==typeof e?e:null}var h0={current:null},y0={current:null},v0=/^(.*)[\\\/]/,m0=1;function g0(e){if(null==e)return null;if("number"==typeof e.tag&&M("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Wg:return"Fragment";case Yg:return"Portal";case Jg:return"Profiler";case Zg:return"StrictMode";case n0:return"Suspense";case o0:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case e0:return"Context.Consumer";case Qg:return"Context.Provider";case r0:return t=e.render,r="ForwardRef",t=t.displayName||t.name||"",e.displayName||(""!==t?r+"("+t+")":r);case i0:return g0(e.type);case s0:return g0(e.render);case a0:r=(t=e)._status===m0?t._result:null;if(r)return g0(r)}var t,r;return null}var w0={},b0=null;function E0(e){b0=e}w0.getCurrentStack=null,w0.getStackAddendum=function(){var e,t,r,n,o,i="",a=(b0&&(e=g0(b0.type),r=b0._owner,i+=(e=e,t=b0._source,r=r&&g0(r.type),o="",t?(n=(a=t.fileName).replace(v0,""),o=" (at "+(n=/^index\./.test(n)&&(a=a.match(v0))&&(a=a[1])?a.replace(v0,"")+"/"+n:n)+":"+t.lineNumber+")"):r&&(o=" (created by "+r+")"),"\n in "+(e||"Unknown")+o)),w0.getCurrentStack);return a&&(i+=a()||""),i};var T0={ReactCurrentDispatcher:h0,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:y0,IsSomeRendererActing:{current:!1},assign:qg};function _0(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];R0("warn",e,r)}function M(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];R0("error",e,r)}function R0(e,t,r){0<r.length&&"string"==typeof r[r.length-1]&&0===r[r.length-1].indexOf("\n in")||""!==(n=T0.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){}}qg(T0,{ReactDebugCurrentFrame:w0,ReactComponentTreeHook:{}});var O0={};function S0(e,t){var e=e.constructor,e=e&&(e.displayName||e.name)||"ReactClass",r=e+"."+t;O0[r]||(M("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),O0[r]=!0)}var A0={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){S0(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){S0(e,"replaceState")},enqueueSetState:function(e,t,r,n){S0(e,"setState")}},I0={};function C0(e,t,r){this.props=e,this.context=t,this.refs=I0,this.updater=r||A0}Object.freeze(I0),C0.prototype.isReactComponent={},C0.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")},C0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var k0,x0={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(k0 in x0)x0.hasOwnProperty(k0)&&!function(e,t){Object.defineProperty(C0.prototype,e,{get:function(){_0("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(k0,x0[k0]);function N0(){}function P0(e,t,r){this.props=e,this.context=t,this.refs=I0,this.updater=r||A0}N0.prototype=C0.prototype,(O=P0.prototype=new N0).constructor=P0,qg(O,C0.prototype),O.isPureReactComponent=!0;var D0,M0,j0=Object.prototype.hasOwnProperty,L0={key:!0,ref:!0,__self:!0,__source:!0};function F0(e){if(j0.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function U0(e){if(j0.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var V0={},H0=function(e,t,r,n,o,i,a){e={$$typeof:Xg,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 K0(e,t,r){var n,o={},i=null,a=null,s=null,u=null;if(null!=t)for(n in F0(t)&&(a=t.ref,"string"==typeof(c=t).ref&&y0.current&&c.__self&&y0.current.stateNode!==c.__self&&(f=g0(y0.current.type),V0[f]||(M('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',g0(y0.current.type),c.ref),V0[f]=!0))),U0(t)&&(i=""+t.key),s=void 0===t.__self?null:t.__self,u=void 0===t.__source?null:t.__source,t)j0.call(t,n)&&!L0.hasOwnProperty(n)&&(o[n]=t[n]);var c,l,f,p,d=arguments.length-2;if(1==d)o.children=r;else if(1<d){for(var h=Array(d),y=0;y<d;y++)h[y]=arguments[y+2];Object.freeze&&Object.freeze(h),o.children=h}if(e&&e.defaultProps){var v=e.defaultProps;for(n in v)void 0===o[n]&&(o[n]=v[n])}function m(){M0||(M0=!0,M("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",l))}function g(){D0||(D0=!0,M("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",p))}return(i||a)&&(c="function"==typeof e?e.displayName||e.name||"Unknown":e,i&&(f=o,p=c,g.isReactWarning=!0,Object.defineProperty(f,"key",{get:g,configurable:!0})),a&&(r=o,l=c,m.isReactWarning=!0,Object.defineProperty(r,"ref",{get:m,configurable:!0}))),H0(e,i,a,s,u,y0.current,o)}function z0(e){return"object"==typeof e&&null!==e&&e.$$typeof===Xg}var G0=".",B0=":",q0=!1,$0=/\/+/g;function X0(e){return(""+e).replace($0,"$&/")}var Y0=10,W0=[];function Z0(e,t,r,n){var o;return W0.length?((o=W0.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 J0(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,W0.length<Y0&&W0.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 Xg:case Yg:s=!0}}if(s)return n(o,t,""===r?G0+ew(t,0):r),1;var u=0,c=""===r?G0:r+B0;if(Array.isArray(t))for(var l=0;l<t.length;l++)u+=e(i=t[l],c+ew(i,l),n,o);else if("function"==typeof(r=d0(t))){r===t.entries&&(q0||_0("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."),q0=!0);for(var f,p=r.call(t),d=0;!(f=p.next()).done;)u+=e(i=f.value,c+ew(i,d++),n,o)}else if("object"==a)throw r="",r=" If you meant to render a collection of children, use an array instead."+w0.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 ew(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 tw(e,t,r){var n=e.func,o=e.context;n.call(o,t,e.count++)}function rw(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)?nw(i,n,r,function(e){return e}):null!=i&&(z0(i)&&(e=o+(!(a=i).key||t&&t.key===i.key?"":X0(i.key)+"/")+r,i=H0(a.type,e,a.ref,a._self,a._source,a._owner,a.props)),n.push(i))}function nw(e,t,r,n,o){var i="",t=Z0(t,i=null!=r?X0(r)+"/":i,n,o);Q0(e,rw,t),J0(t)}function ow(e){return"string"==typeof e||"function"==typeof e||e===Wg||e===t0||e===Jg||e===Zg||e===n0||e===o0||"object"==typeof e&&null!==e&&(e.$$typeof===a0||e.$$typeof===i0||e.$$typeof===Qg||e.$$typeof===e0||e.$$typeof===r0||e.$$typeof===u0||e.$$typeof===c0||e.$$typeof===l0||e.$$typeof===s0)}function iw(){var e=h0.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 aw(){if(y0.current){var e=g0(y0.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var sw=!1,uw={};function cw(e,t){var r;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,t=t,(r=aw())||(t="string"==typeof t?t:t.displayName||t.name)&&(r="\n\nCheck the top-level render call using <"+t+">."),uw[t=r]||(uw[t]=!0,r="",e&&e._owner&&e._owner!==y0.current&&(r=" It was passed a child from "+g0(e._owner.type)+"."),E0(e),M('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',t,r),E0(null)))}function lw(e,t){if("object"==typeof e)if(Array.isArray(e))for(var r=0;r<e.length;r++){var n=e[r];z0(n)&&cw(n,t)}else if(z0(e))e._store&&(e._store.validated=!0);else if(e){var o=d0(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)z0(i.value)&&cw(i.value,t)}}function fw(e){var t=e.type;if(null!=t&&"string"!=typeof t){var r,n=g0(t);if("function"==typeof t)r=t.propTypes;else{if("object"!=typeof t||t.$$typeof!==r0&&t.$$typeof!==i0)return;r=t.propTypes}r?(E0(e),$g(r,e.props,"prop",n,w0.getStackAddendum),E0(null)):void 0===t.PropTypes||sw||(sw=!0,M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",n||"Unknown")),"function"!=typeof t.getDefaultProps||t.getDefaultProps.isReactClassApproved||M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pw(e,t,r){var n,o=ow(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+".":"")||aw(),null===e?a="null":Array.isArray(e)?a="array":void 0!==e&&e.$$typeof===Xg?(a="<"+(g0(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,M("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",a,n)),K0.apply(this,arguments));if(null==t)return t;if(o)for(var i=2;i<arguments.length;i++)lw(arguments[i],e);if(e===Wg){var a=t;E0(a);for(var s=Object.keys(a.props),u=0;u<s.length;u++){var c=s[u];if("children"!==c&&"key"!==c){M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",c);break}}null!==a.ref&&M("Invalid attribute `ref` supplied to `React.Fragment`."),E0(null)}else fw(t);return t}var dw=!1;try{var hw=Object.freeze({}),yw=new Map([[hw,null]]),vw=new Set([hw]);yw.set(0,0),vw.add(0)}catch(e){}function mw(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=qg({},e.props),a=e.key,s=e.ref,u=e._self,c=e._source,l=e._owner;if(null!=t)for(n in F0(t)&&(s=t.ref,l=y0.current),U0(t)&&(a=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)j0.call(t,n)&&!L0.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?i[n]=o[n]:i[n]=t[n]);var f=arguments.length-2;if(1==f)i.children=r;else if(1<f){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];i.children=p}return H0(e.type,a,s,u,c,l,i)}.apply(this,arguments),o=2;o<arguments.length;o++)lw(arguments[o],n.type);return fw(n),n}function gw(e){var t=pw.bind(null,e);return t.type=e,dw||(dw=!0,_0("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 _0("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t}O=pw,D.Children={map:function(e,t,r){if(null==e)return e;var n=[];return nw(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;t=Z0(null,null,t,r),Q0(e,tw,t),J0(t)},count:function(e){return Q0(e,function(){return null},null)},toArray:function(e){var t=[];return nw(e,t,null,function(e){return e}),t},only:function(e){if(z0(e))return e;throw Error("React.Children.only expected to receive a single React element child.")}},D.Component=C0,D.Fragment=Wg,D.Profiler=Jg,D.PureComponent=P0,D.StrictMode=Zg,D.Suspense=n0,D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T0,D.cloneElement=mw,D.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&M("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var r={$$typeof:e0,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},n=!(r.Provider={$$typeof:Qg,_context:r}),o=!1,t={$$typeof:e0,_context:r,_calculateChangedBits:r._calculateChangedBits};return Object.defineProperties(t,{Provider:{get:function(){return o||(o=!0,M("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),r.Provider},set:function(e){r.Provider=e}},_currentValue:{get:function(){return r._currentValue},set:function(e){r._currentValue=e}},_currentValue2:{get:function(){return r._currentValue2},set:function(e){r._currentValue2=e}},_threadCount:{get:function(){return r._threadCount},set:function(e){r._threadCount=e}},Consumer:{get:function(){return n||(n=!0,M("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),r.Consumer}}}),r.Consumer=t,r._currentRenderer=null,r._currentRenderer2=null,r},D.createElement=O,D.createFactory=gw,D.createRef=function(){var e={current:null};return Object.seal(e),e},D.forwardRef=function(e){return null!=e&&e.$$typeof===i0?M("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?M("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&M("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null==e||null==e.defaultProps&&null==e.propTypes||M("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"),{$$typeof:r0,render:e}},D.isValidElement=z0,D.lazy=function(e){var t,r,n={$$typeof:a0,_ctor:e,_status:-1,_result:null};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){M("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){M("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},D.memo=function(e,t){return ow(e)||M("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e),{$$typeof:i0,type:e,compare:void 0===t?null:t}},D.useCallback=function(e,t){return iw().useCallback(e,t)},D.useContext=function(e,t){var r,n=iw();return void 0!==t&&M("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==e._context&&((r=e._context).Consumer===e?M("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&M("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),n.useContext(e,t)},D.useDebugValue=function(e,t){return iw().useDebugValue(e,t)},D.useEffect=function(e,t){return iw().useEffect(e,t)},D.useImperativeHandle=function(e,t,r){return iw().useImperativeHandle(e,t,r)},D.useLayoutEffect=function(e,t){return iw().useLayoutEffect(e,t)},D.useMemo=function(e,t){return iw().useMemo(e,t)},D.useReducer=function(e,t,r){return iw().useReducer(e,t,r)},D.useRef=function(e){return iw().useRef(e)},D.useState=function(e){return iw().useState(e)},D.version="16.14.0"}"production"===production?P.exports=i:P.exports=D;var ww=P.exports,bw=P.exports.createContext({hackle:void 0,user:void 0,initialized:!1}),c=bw.Consumer,Ew=bw.Provider;var Tw=f.Logger.log;function _w(e,t){e=Rw(e,t=void 0===t?"A":t);return{isLoading:e.isLoading,variation:e.decision.variation}}function Rw(e,t){void 0===t&&(t="A");var r=P.exports.useContext(bw),n=r.hackle,o=r.user,i=r.initialized,a=P.exports.useCallback(function(){return i?(null==n?void 0:n.variationDetail(e,o))||f.Decision.of(t,f.DecisionReason.EXCEPTION):f.Decision.of(t,f.DecisionReason.SDK_NOT_READY)},[t,e,o,n,i]),r=ng(P.exports.useState(function(){return n?a():(Tw.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2),s=r[0],r=r[1],u={key:e,user:o,initialized:i},c=ng(P.exports.useState(u),2),l=c[0],c=c[1];return Aw(l,u)||(c(u),r(a())),{isLoading:!i,decision:s}}function Ow(e){e=Sw(e);return{isLoading:e.isLoading,isOn:e.decision.isOn}}function Sw(e){var t=P.exports.useContext(bw),r=t.hackle,n=t.user,o=t.initialized,i=P.exports.useCallback(function(){return o?(null==r?void 0:r.featureFlagDetail(e,n))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION):f.FeatureFlagDecision.off(f.DecisionReason.SDK_NOT_READY)},[e,n,r,o]),t=ng(P.exports.useState(function(){return r?i():(Tw.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2),a=t[0],t=t[1],s={key:e,user:n,initialized:o},u=ng(P.exports.useState(s),2),c=u[0],u=u[1];return Aw(c,s)||(u(s),t(i())),{isLoading:!o,decision:a}}function Aw(e,t){var r,n,o;return e.initialized===t.initialized&&e.key===t.key&&(null==(r=e.user)?void 0:r.id)===(null==(r=t.user)?void 0:r.id)&&(e=null==(r=e.user)?void 0:r.properties,t=null==(r=t.user)?void 0:r.properties,n=Iw(e),o=Iw(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 Iw(e){return"object"==typeof e&&null!==e?e:{}}function Cw(e){var t,r=e.experimentKey,e=e.children,n=(r=_w(r)).isLoading,o=r.variation;return n?null:e&&"function"==typeof e?e(o):(P.exports.Children.forEach(e,function(e){P.exports.isValidElement(e)&&(e.props.variation?o===e.props.variation&&(t=e):e.props.default&&(t=e))}),t?P.exports.cloneElement(t,{variation:o}):null)}function kw(e){return e.variation,e=e.children,P.exports.createElement(P.exports.Fragment,null,e)}function xw(e){var t=(r=Ow(e.featureKey)).isLoading,r=r.isOn;return t?null:ww.createElement(ww.Fragment,null,e.children(r))}f.HackleContext=bw,f.HackleContextConsumer=c,f.HackleContextProvider=Ew,f.HackleExperiment=Cw,f.HackleFeature=xw,f.HackleProvider=function(e){var t=e.hackleClient,r=e.user,n=void 0===(o=e.timeout)?3e3:o,o=void 0!==(o=e.supportSSR)&&o,e=e.children,i=ng(P.exports.useState({hackle:t,user:r,initialized:!1}),2),a=i[0],s=i[1];return P.exports.useEffect(function(){s(function(e){return rg(rg({},e),{user:r})})},[r]),P.exports.useEffect(function(){t.onInitialized({timeout:n}).then(function(){s(function(e){return rg(rg({},e),{initialized:!0})})},function(){s(function(e){return rg(rg({},e),{initialized:!0})})}).catch(function(){s(function(e){return rg(rg({},e),{initialized:!0})})})},[t]),o||a.initialized?ww.createElement(Ew,{value:a},e):null},f.HackleVariation=kw,f.createInstance=function(e,t){return new og(e,t)},f.useFeature=function(e){var t=(n=P.exports.useContext(bw)).hackle,r=n.user,n=n.initialized,o=P.exports.useCallback(function(){return(null==t?void 0:t.isFeatureOn(e,r))||!1},[e,r,t,n]),i=(a=ng(P.exports.useState(function(){return t?o():("undefined"!=typeof window&&Tw.error("HackleClient is not existed"),!1)}),2))[0],a=a[1],n={key:e,user:r,initialized:n},s=(u=ng(P.exports.useState(n),2))[0],u=u[1];return Aw(s,n)||(u(n),a(o())),i},f.useFeatureFlagDetail=function(e){var t=(n=P.exports.useContext(bw)).hackle,r=n.user,n=n.initialized,o=P.exports.useCallback(function(){return(null==t?void 0:t.featureFlagDetail(e,r))||f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION)},[e,r,t,n]),i=(a=ng(P.exports.useState(function(){return t?o():("undefined"!=typeof window&&Tw.error("HackleClient is not existed"),f.FeatureFlagDecision.off(f.DecisionReason.EXCEPTION))}),2))[0],a=a[1],n={key:e,user:r,initialized:n},s=(u=ng(P.exports.useState(n),2))[0],u=u[1];return Aw(s,n)||(u(n),a(o())),i},f.useLoadableFeature=Ow,f.useLoadableFeatureDetail=Sw,f.useLoadableVariation=_w,f.useLoadableVariationDetail=Rw,f.useTrack=function(){var e=P.exports.useContext(bw),t=e.hackle,r=e.user;return t?function(e){return null==t?void 0:t.track(e,r)}:(Tw.error("HackleClient is not existed"),function(){})},f.useVariation=function(e,t){void 0===t&&(t="A");var r=(s=P.exports.useContext(bw)).hackle,n=s.user,o=s.initialized,i=P.exports.useCallback(function(){return o&&(null==r?void 0:r.variation(e,n))||t},[t,e,n,r,o]),a=(s=ng(P.exports.useState(function(){return r?i():("undefined"!=typeof window&&Tw.error("HackleClient is not existed"),t)}),2))[0],s=s[1],u={key:e,user:n,initialized:o},c=(l=ng(P.exports.useState(u),2))[0],l=l[1];return Aw(c,u)||(l(u),s(i())),a},f.useVariationDetail=function(e,t){void 0===t&&(t="A");var r=(o=P.exports.useContext(bw)).hackle,n=o.user,o=o.initialized,i=P.exports.useCallback(function(){return(null==r?void 0:r.variationDetail(e,n))||f.Decision.of(t,f.DecisionReason.EXCEPTION)},[t,e,n,r,o]),a=(s=ng(P.exports.useState(function(){return r?i():("undefined"!=typeof window&&Tw.error("HackleClient is not existed"),f.Decision.of(t,f.DecisionReason.EXCEPTION))}),2))[0],s=s[1],o={key:e,user:n,initialized:o},u=(c=ng(P.exports.useState(o),2))[0],c=c[1];return Aw(u,o)||(c(o),s(i())),a},Object.defineProperty(f,"__esModule",{value:!0})});