@flagship.io/react-sdk 3.0.3-alpha.4 → 3.0.4-alpha.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/README.md +14 -14
- package/dist/esm/Flag.js +7 -7
- package/dist/esm/FlagshipContext.js +31 -16
- package/dist/esm/FlagshipHooks.js +24 -24
- package/dist/esm/utils.js +0 -10
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/FlagshipContext.d.ts +1 -1
- package/dist/types/utils.d.ts +1 -2
- package/package.json +98 -99
- package/CONTRIBUTING.md +0 -65
- package/LICENSE +0 -201
- package/dist/es/Flag.js +0 -36
- package/dist/es/FlagshipContext.js +0 -230
- package/dist/es/FlagshipHooks.js +0 -372
- package/dist/es/constants.js +0 -2
- package/dist/es/index.js +0 -3
- package/dist/es/utils.js +0 -77
package/dist/index.browser.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(self,(function(){return(()=>{var t={3547:(t,e,n)=>{var r,i,o,a,s,c,u,f,l,h,p,v,g,d,y,m,b,k,x,w,O,I,E,_,C,S,A,M,R,N,j,P,T,D,L,F,V,G,H=n(1030);self,t.exports=(r=n(2419),i=n(1539),o=n(8674),a=n(4809),s=n(8309),c=n(4916),u=n(5306),f=n(4603),l=n(9714),h=n(7941),p=n(2526),v=n(7327),g=n(5003),d=n(4747),y=n(9337),m=n(2222),b=n(6992),k=n(1532),x=n(8783),w=n(3948),O=n(6699),I=n(2023),E=n(2479),_=n(3161),C=n(9653),S=n(3689),A=n(9720),M=n(1038),R=n(4723),N=n(1249),j=n(2087),P=n(7042),T=n(1817),D=n(2165),L=n(9826),F=n(6755),V=n(7852),G=n(7727),(()=>{var t={757:(t,e,n)=>{t.exports=n(666)},187:t=>{"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(n,r){function i(n){t.removeListener(e,o),r(n)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),n([].slice.call(arguments))}g(t,e,o,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&g(t,"error",e,{once:!0})}(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function u(t,e,n,r){var i,o,a,u;if(s(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),a=o[e]),void 0===a)a=o[e]=n,++t._eventsCount;else if("function"==typeof a?a=o[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=c(t))>0&&a.length>i&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=a.length,u=f,console&&console.warn&&console.warn(u)}return t}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function h(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):v(i,i.length)}function p(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function g(t,e,n,r){if("function"==typeof t.on)r.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function i(o){r.once&&t.removeEventListener(e,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");a=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[t];if(void 0===c)return!1;if("function"==typeof c)r(c,this,e);else{var u=c.length,f=v(c,u);for(n=0;n<u;++n)r(f[n],this,e)}return!0},o.prototype.addListener=function(t,e){return u(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return u(this,t,e,!0)},o.prototype.once=function(t,e){return s(e),this.on(t,l(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return s(e),this.prependListener(t,l(this,t,e)),this},o.prototype.removeListener=function(t,e){var n,r,i,o,a;if(s(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},o.prototype.listeners=function(t){return h(this,t,!0)},o.prototype.rawListeners=function(t){return h(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},666:t=>{var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof d?e:d,o=Object.create(i.prototype),a=new S(r||[]);return o._invoke=function(t,e,n){var r=l;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw o;return M()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=f(t,e,n);if("normal"===c.type){if(r=n.done?v:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=v,n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l="suspendedStart",h="suspendedYield",p="executing",v="completed",g={};function d(){}function y(){}function m(){}var b={};c(b,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(A([])));x&&x!==n&&r.call(x,o)&&(b=x);var w=m.prototype=d.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){function n(i,o,a,s){var c=f(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function E(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=f(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function A(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:M}}function M(){return{value:e,done:!0}}return y.prototype=m,c(w,"constructor",m),c(m,"constructor",y),y.displayName=c(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(I.prototype),c(I.prototype,a,(function(){return this})),t.AsyncIterator=I,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new I(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),c(w,s,"Generator"),c(w,o,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},794:t=>{"use strict";t.exports=m},714:t=>{"use strict";t.exports=v},389:t=>{"use strict";t.exports=L},282:t=>{"use strict";t.exports=M},632:t=>{"use strict";t.exports=O},647:t=>{"use strict";t.exports=b},720:t=>{"use strict";t.exports=N},518:t=>{"use strict";t.exports=P},165:t=>{"use strict";t.exports=s},468:t=>{"use strict";t.exports=k},218:t=>{"use strict";t.exports=S},99:t=>{"use strict";t.exports=C},204:t=>{"use strict";t.exports=_},864:t=>{"use strict";t.exports=A},92:t=>{"use strict";t.exports=g},436:t=>{"use strict";t.exports=y},493:t=>{"use strict";t.exports=h},381:t=>{"use strict";t.exports=i},377:t=>{"use strict";t.exports=E},401:t=>{"use strict";t.exports=G},24:t=>{"use strict";t.exports=o},646:t=>{"use strict";t.exports=r},202:t=>{"use strict";t.exports=f},76:t=>{"use strict";t.exports=c},926:t=>{"use strict";t.exports=j},655:t=>{"use strict";t.exports=l},225:t=>{"use strict";t.exports=V},254:t=>{"use strict";t.exports=I},718:t=>{"use strict";t.exports=x},785:t=>{"use strict";t.exports=R},575:t=>{"use strict";t.exports=u},386:t=>{"use strict";t.exports=F},350:t=>{"use strict";t.exports=T},507:t=>{"use strict";t.exports=D},920:t=>{"use strict";t.exports=p},390:t=>{"use strict";t.exports=d},536:t=>{"use strict";t.exports=w},786:t=>{"use strict";t.exports=a},854:()=>{},697:()=>{}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var B={};return(()=>{"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function r(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}function a(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}n.r(B),n.d(B,{APP_VERSION_CODE:()=>Yt,APP_VERSION_NAME:()=>Wt,CARRIER_NAME:()=>Ut,DEVICE_LOCALE:()=>Rt,DEVICE_MODEL:()=>jt,DEVICE_TYPE:()=>Nt,DecisionApiConfig:()=>J,DecisionMode:()=>D,Event:()=>st,EventCategory:()=>Z,FLAGSHIP_CLIENT:()=>$t,FLAGSHIP_CONTEXT:()=>qt,FLAGSHIP_VERSION:()=>Jt,FLAGSHIP_VISITOR:()=>Qt,Flag:()=>he,FlagMetadata:()=>ne,Flagship:()=>Ee,FlagshipStatus:()=>v,HitAbstract:()=>it,HitType:()=>g,INTERFACE_NAME:()=>zt,INTERNET_CONNECTION:()=>Kt,IP:()=>Vt,Item:()=>ft,LOCATION_CITY:()=>Pt,LOCATION_COUNTRY:()=>Dt,LOCATION_LAT:()=>Lt,LOCATION_LONG:()=>Ft,LOCATION_REGION:()=>Tt,LogLevel:()=>c,OS_NAME:()=>Gt,OS_VERSION_CODE:()=>Bt,OS_VERSION_NAME:()=>Ht,Page:()=>pt,Screen:()=>dt,Transaction:()=>bt,Visitor:()=>L,default:()=>_e}),n(646),n(381),n(24);var c,u=n(187),f={},l="undefined"==typeof window?n(786).default:window.fetch;if("undefined"==typeof window){var h=n(854).Agent,p=n(697).Agent;f.agent=function(t){return"http:"===t.protocol?new h({keepAlive:!0}):new p({keepAlive:!0})}}!function(t){t[t.NONE=0]="NONE",t[t.EMERGENCY=1]="EMERGENCY",t[t.ALERT=2]="ALERT",t[t.CRITICAL=3]="CRITICAL",t[t.ERROR=4]="ERROR",t[t.WARNING=5]="WARNING",t[t.NOTICE=6]="NOTICE",t[t.INFO=7]="INFO",t[t.DEBUG=8]="DEBUG",t[t.ALL=9]="ALL"}(c||(c={}));var v,g,d={name:"TypeScript"},y="https://decision.flagship.io/v2/",m="v3",b="ready",k="Key {0} must not be null. Default value is returned.",x="{0} must be a {1}",w="visitorId must not be null or empty",O="Method {0} is deactivated while SDK status is: {1}.",I="INITIALIZATION",E="UPDATE CONTEXT",_="GET MODIFICATION",C="GET MODIFICATION INFO",S="ACTIVE MODIFICATION",A="SEND HIT",M="cid",R="x-api-key",N="Content-Type",j="x-sdk-client",P="x-sdk-version",T="application/json";!function(t){t[t.NOT_READY=0]="NOT_READY",t[t.NOT_INITIALIZED=0]="NOT_INITIALIZED",t[t.STARTING=1]="STARTING",t[t.POLLING=2]="POLLING",t[t.READY_PANIC_ON=3]="READY_PANIC_ON",t[t.READY=4]="READY"}(v||(v={})),function(t){t.PAGE_VIEW="PAGEVIEW",t.PAGE="PAGEVIEW",t.SCREEN_VIEW="SCREENVIEW",t.SCREEN="SCREENVIEW",t.TRANSACTION="TRANSACTION",t.ITEM="ITEM",t.EVENT="EVENT"}(g||(g={}));var D,L=function(t){o(c,t);var e,n,i=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function c(t){var e;return(e=i.call(this)).visitorDelegate=t,e.visitorDelegate.on(b,(function(t){e.emit(b,t)})),e}return r(c,[{key:"getModificationsArray",value:function(){return this.visitorDelegate.getModificationsArray()}},{key:"getFlagsDataArray",value:function(){return this.visitorDelegate.getFlagsDataArray()}},{key:"visitorId",get:function(){return this.visitorDelegate.visitorId},set:function(t){this.visitorDelegate.visitorId=t}},{key:"anonymousId",get:function(){return this.visitorDelegate.anonymousId}},{key:"hasConsented",get:function(){return this.visitorDelegate.hasConsented}},{key:"setConsent",value:function(t){this.visitorDelegate.setConsent(t)}},{key:"config",get:function(){return this.visitorDelegate.config}},{key:"context",get:function(){return this.visitorDelegate.context}},{key:"flagsData",get:function(){return this.visitorDelegate.flagsData}},{key:"modifications",get:function(){return this.visitorDelegate.flagsData}},{key:"updateContext",value:function(t){this.visitorDelegate.updateContext(t)}},{key:"clearContext",value:function(){this.visitorDelegate.clearContext()}},{key:"getFlag",value:function(t,e){return this.visitorDelegate.getFlag(t,e)}},{key:"getModification",value:function(t){return this.visitorDelegate.getModification(t)}},{key:"getModificationSync",value:function(t){return this.visitorDelegate.getModificationSync(t)}},{key:"getModifications",value:function(t,e){return this.visitorDelegate.getModifications(t,e)}},{key:"getModificationsSync",value:function(t,e){return this.visitorDelegate.getModificationsSync(t,e)}},{key:"getModificationInfo",value:function(t){return this.visitorDelegate.getModificationInfo(t)}},{key:"getModificationInfoSync",value:function(t){return this.visitorDelegate.getModificationInfoSync(t)}},{key:"synchronizeModifications",value:function(){return this.visitorDelegate.synchronizeModifications()}},{key:"fetchFlags",value:function(){return this.visitorDelegate.fetchFlags()}},{key:"activateModification",value:function(t){return this.visitorDelegate.activateModification(t)}},{key:"activateModifications",value:function(t){return this.visitorDelegate.activateModifications(t)}},{key:"sendHit",value:function(t){return this.visitorDelegate.sendHit(t)}},{key:"sendHits",value:function(t){return this.visitorDelegate.sendHits(t)}},{key:"getAllModifications",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.visitorDelegate.getAllModifications(t)}},{key:"getModificationsForCampaign",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.visitorDelegate.getModificationsForCampaign(t,e)}},{key:"getAllFlagsData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.visitorDelegate.getAllFlagsData(t)}},{key:"getFlatsDataForCampaign",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.visitorDelegate.getFlatsDataForCampaign(t,e)}},{key:"authenticate",value:function(t){this.visitorDelegate.authenticate(t)}},{key:"unauthenticate",value:function(){this.visitorDelegate.unauthenticate()}}]),c}(u.EventEmitter);function F(t){for(var e=t,n=0;n<(arguments.length<=1?0:arguments.length-1);n++){var r=n+1<1||arguments.length<=n+1?void 0:arguments[n+1];e=e.replace(new RegExp("\\{".concat(n,"\\}"),"g"),r)}return e}function V(t,e,n){t&&t.logManager&&"function"==typeof t.logManager.error&&t.logLevel&&!(t.logLevel<c.ERROR)&&t.logManager.error(e,n)}function G(t,e,n){t&&t.logManager&&"function"==typeof t.logManager.info&&t.logLevel&&!(t.logLevel<c.INFO)&&t.logManager.info(e,n)}function U(){return"undefined"!=typeof window&&!("Deno"in window)}function K(e,n){return t(e)===t(n)&&("object"!==t(e)||"object"!==t(n)||Array.isArray(e)===Array.isArray(n))}n(165),n(76),n(575),n(202),n(655),function(t){t.DECISION_API="API",t.BUCKETING="BUCKETING"}(D||(D={}));var W=function(){function t(t){var e=t.envId,n=t.apiKey,r=t.timeout,i=t.logLevel,o=t.logManager,a=t.statusChangedCallback,s=t.fetchNow,u=t.decisionMode,f=t.enableClientCache,l=t.initialBucketing,h=t.decisionApiUrl,p=t.activateDeduplicationTime,v=t.hitDeduplicationTime,g=t.visitorCacheImplementation,m=t.hitCacheImplementation,b=t.disableCache;switch(t.language){case 1:d.name="ReactJS";break;case 2:d.name="React-Native";break;default:d.name="undefined"!=typeof window&&"Deno"in window?"Deno":"Typescript"}this.decisionApiUrl=h||y,this._envId=e,this._apiKey=n,this.logLevel=i||c.ALL,this.timeout=r||2,this.fetchNow=void 0===s||s,this.enableClientCache=void 0===f||f,this._decisionMode=u||D.DECISION_API,this._initialBucketing=l,this.activateDeduplicationTime=null!=p?p:2.5,this.hitDeduplicationTime=null!=v?v:2.5,this.disableCache=!!b,g&&(this.visitorCacheImplementation=g),m&&(this.hitCacheImplementation=m),o&&(this.logManager=o),this.statusChangedCallback=a}return r(t,[{key:"initialBucketing",get:function(){return this._initialBucketing},set:function(t){this._initialBucketing=t}},{key:"enableClientCache",get:function(){return this._enableClientCache},set:function(t){this._enableClientCache=t}},{key:"onBucketingSuccess",get:function(){return this._onBucketingSuccess},set:function(t){this._onBucketingSuccess=t}},{key:"onBucketingFail",get:function(){return this._onBucketingFail},set:function(t){this._onBucketingFail=t}},{key:"onBucketingUpdated",get:function(){return this._onBucketingUpdated},set:function(t){this._onBucketingUpdated=t}},{key:"envId",get:function(){return this._envId},set:function(t){this._envId=t}},{key:"apiKey",get:function(){return this._apiKey},set:function(t){this._apiKey=t}},{key:"decisionMode",get:function(){return this._decisionMode}},{key:"timeout",get:function(){return this._timeout},set:function(t){this._timeout=t}},{key:"logLevel",get:function(){return this._logLevel},set:function(t){this._logLevel=t}},{key:"fetchNow",get:function(){return this._fetchNow},set:function(t){this._fetchNow=t}},{key:"pollingInterval",get:function(){return this._pollingInterval},set:function(t){this._pollingInterval=t}},{key:"activateDeduplicationTime",get:function(){return this._activateDeduplicationTime},set:function(t){"number"==typeof t?this._activateDeduplicationTime=t:V(this,F(x,"activateDeduplicationTime","number"),"activateDeduplicationTime")}},{key:"hitDeduplicationTime",get:function(){return this._hitDeduplicationTime},set:function(t){"number"==typeof t?this._hitDeduplicationTime=t:V(this,F(x,"hitDeduplicationTime","number"),"hitDeduplicationTime")}},{key:"visitorCacheImplementation",get:function(){return this._visitorCacheImplementation},set:function(t){this._visitorCacheImplementation=t}},{key:"hitCacheImplementation",get:function(){return this._hitCacheImplementation},set:function(t){this._hitCacheImplementation=t}},{key:"disableCache",get:function(){return this._disableCache},set:function(t){this._disableCache=t}},{key:"statusChangedCallback",get:function(){return this._statusChangedCallback},set:function(t){"function"==typeof t?this._statusChangedCallback=t:V(this,"statusChangedCallback must be a function","statusChangedCallback")}},{key:"logManager",get:function(){return this._logManager},set:function(t){this._logManager=t}},{key:"decisionApiUrl",get:function(){return this._decisionApiUrl},set:function(t){"string"==typeof t?this._decisionApiUrl=t:V(this,F(x,"decisionApiUrl","string"),"decisionApiUrl")}}]),t}();function Y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n(493),n(920),n(714),n(92),n(390),n(436);var J=function(t){o(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function i(t){return r.call(this,$($({},t),{},{decisionMode:D.DECISION_API}))}return i}(W),Q=function(){function t(t,e,n){this._config=t,this._decisionManager=e,this._trackingManager=n}return r(t,[{key:"config",get:function(){return this._config},set:function(t){this._config=t}},{key:"decisionManager",get:function(){return this._decisionManager},set:function(t){this._decisionManager=t}},{key:"trackingManager",get:function(){return this._trackingManager},set:function(t){this._trackingManager=t}}]),t}();function q(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function X(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){q(o,r,i,a,s,"next",t)}function s(t){q(o,r,i,a,s,"throw",t)}a(void 0)}))}}var Z,tt=n(757),et=n.n(tt),nt=(n(794),n(647),n(468),n(718),n(536),function(){function t(t,e){Y(this,"_panic",!1),this._config=e,this._httpClient=t}var e;return r(t,[{key:"config",get:function(){return this._config}},{key:"panic",set:function(t){this.updateFlagshipStatus(t?v.READY_PANIC_ON:v.READY),this._panic=t}},{key:"statusChangedCallback",value:function(t){this._statusChangedCallback=t}},{key:"updateFlagshipStatus",value:function(t){"function"==typeof this._statusChangedCallback&&this._statusChangedCallback&&this._statusChangedCallback(t)}},{key:"getModifications",value:function(t){var e=new Map;return t.forEach((function(t){var n=t.variation.modifications.value;for(var r in n){var i=n[r];e.set(r,{key:r,campaignId:t.id,variationGroupId:t.variationGroupId,variationId:t.variation.id,isReference:t.variation.reference,campaignType:t.type,value:i})}})),e}},{key:"getCampaignsModificationsAsync",value:(e=X(et().mark((function t(e){var n=this;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getCampaignsAsync(e).then((function(t){return n.getModifications(t)})).catch((function(t){return V(n.config,t.message||t,"getCampaignsModificationsAsync"),new Map})));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"isPanic",value:function(){return this._panic}}]),t}()),rt=function(t){o(u,t);var e,n,i,c=(n=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(n);if(i){var r=s(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return a(this,t)});function u(){return c.apply(this,arguments)}return r(u,[{key:"getCampaignsAsync",value:(e=X(et().mark((function t(e){var n,r,i,o,a=this;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Y(n={},R,"".concat(this.config.apiKey)),Y(n,j,d.name),Y(n,P,m),Y(n,N,T),r=n,i={visitorId:e.visitorId,anonymousId:e.anonymousId,trigger_hit:!1,context:e.context},o="".concat(this.config.decisionApiUrl||y).concat(this.config.envId).concat("/campaigns","?").concat("exposeAllKeys","=true"),e.hasConsented||(o+="&".concat("sendContextEvent","=false")),t.abrupt("return",this._httpClient.postAsync(o,{headers:r,timeout:this.config.timeout,body:i}).then((function(t){a.panic=!!t.body.panic;var e=[];return t.body.campaigns&&(e=t.body.campaigns),e})).catch((function(t){return V(a.config,t.message||t,"GET CAMPAIGNS"),[]})));case 5:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),u}(nt),it=(n(632),n(254),n(377),n(204),n(99),function(){function t(t){var e=t.type,n=t.userIp,r=t.screenResolution,i=t.locale,o=t.sessionNumber;this._type=e,n&&(this.userIp=n),r&&(this.screenResolution=r),i&&(this.locale=i),o&&(this.sessionNumber=o),this._anonymousId=null}return r(t,[{key:"sessionNumber",get:function(){return this._sessionNumber},set:function(t){this._sessionNumber=t}},{key:"locale",get:function(){return this._locale},set:function(t){this._locale=t}},{key:"screenResolution",get:function(){return this._screenResolution},set:function(t){this._screenResolution=t}},{key:"userIp",get:function(){return this._userIp},set:function(t){this._userIp=t}},{key:"anonymousId",get:function(){return this._anonymousId},set:function(t){this._anonymousId=t}},{key:"visitorId",get:function(){return this._visitorId},set:function(t){this._visitorId=t}},{key:"ds",get:function(){return this._ds},set:function(t){this._ds=t}},{key:"type",get:function(){return this._type}},{key:"config",get:function(){return this._config},set:function(t){this._config=t}},{key:"isNotEmptyString",value:function(t,e){return!(!t||"string"!=typeof t)||(V(this.config,F(x,e,"string"),e),!1)}},{key:"isNumeric",value:function(t,e){return!(!t||"number"!=typeof t)||(V(this.config,F(x,e,"number"),e),!1)}},{key:"isInteger",value:function(t,e){return t&&"number"==typeof t?(Number.isInteger(t)||V(this.config,F("value of {0} is not an {1}, it will be truncated to {1}",e,"integer"),e),!0):(V(this.config,F(x,e,"integer"),e),!1)}},{key:"toApiKeys",value:function(){var t,e,n=(Y(e={},"vid",this.visitorId),Y(e,"ds",this.ds),Y(e,M,"".concat(null==(t=this.config)?void 0:t.envId)),Y(e,"t",this.type),e);return this.userIp&&(n.uip=this.userIp),this.screenResolution&&(n.sr=this.screenResolution),this.locale&&(n.ul=this.locale),this.sessionNumber&&(n.sn=this.sessionNumber),this.visitorId&&this._anonymousId?(n.vid=this._anonymousId,n.cuid=this.visitorId):(n.vid=this._anonymousId||this.visitorId,n.cuid=null),n}},{key:"toObject",value:function(){return{visitorId:this.visitorId,ds:this.ds,type:this.type,userIp:this.userIp,screenResolution:this.screenResolution,locale:this.locale,sessionNumber:this.sessionNumber,anonymousId:this.anonymousId}}},{key:"isReady",value:function(){return!!(this.visitorId&&this.ds&&this.config&&this.config.envId&&this.type)}}]),t}());function ot(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function at(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ot(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}!function(t){t.ACTION_TRACKING="Action Tracking",t.USER_ENGAGEMENT="User Engagement"}(Z||(Z={}));var st=function(t){o(c,t);var e,n,i=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function c(t){var e;e=i.call(this,{type:g.EVENT,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber});var n=t.category,r=t.action,o=t.label,a=t.value;return e.category=n,e.action=r,o&&(e.label=o),a&&(e.value=a),e}return r(c,[{key:"category",get:function(){return this._category},set:function(t){Object.values(Z).includes(t)?this._category=t:V(this.config,"The category value must be either EventCategory::ACTION_TRACKING or EventCategory::ACTION_TRACKING","category")}},{key:"action",get:function(){return this._action},set:function(t){this.isNotEmptyString(t,"action")&&(this._action=t)}},{key:"label",get:function(){return this._label},set:function(t){this.isNotEmptyString(t,"label")&&(this._label=t)}},{key:"value",get:function(){return this._value},set:function(t){this.isNumeric(t,"value")&&(this._value=t)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.ec=this.category,e.ea=this.action,this.label&&(e.el=this.label),this.value&&(e.ev=this.value),e}},{key:"toObject",value:function(){return at(at({},t.prototype.toObject.call(this)),{},{category:this.category,action:this.action,label:this.label,value:this.value})}},{key:"isReady",value:function(){return!((!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&!t.prototype.isReady.call(this)||!this.category||!this.action)}},{key:"getErrorMessage",value:function(){return"event category and event action are required"}}]),c}(it);function ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ct(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n(218);var ft=function(t){o(c,t);var e,n,i=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function c(t){var e;e=i.call(this,{type:g.ITEM,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber});var n=t.transactionId,r=t.productName,o=t.productSku,a=t.itemCategory,s=t.itemPrice,c=t.itemQuantity;return e.transactionId=n,e.productName=r,e.productSku=o,a&&(e.itemCategory=a),s&&(e.itemPrice=s),c&&(e.itemQuantity=c),e}return r(c,[{key:"transactionId",get:function(){return this._transactionId},set:function(t){this.isNotEmptyString(t,"transactionId")&&(this._transactionId=t)}},{key:"productName",get:function(){return this._productName},set:function(t){this.isNotEmptyString(t,"productName")&&(this._productName=t)}},{key:"productSku",get:function(){return this._productSku},set:function(t){this.isNotEmptyString(t,"productSku")&&(this._productSku=t)}},{key:"itemPrice",get:function(){return this._itemPrice},set:function(t){this.isNumeric(t,"itemPrice")&&(this._itemPrice=t)}},{key:"itemQuantity",get:function(){return this._itemQuantity},set:function(t){this.isInteger(t,"itemQuantity")&&(this._itemQuantity=Math.trunc(t))}},{key:"itemCategory",get:function(){return this._itemCategory},set:function(t){this.isNotEmptyString(t,"itemCategory")&&(this._itemCategory=t)}},{key:"isReady",value:function(){return!((!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&!t.prototype.isReady.call(this)||!this.transactionId||!this.productName||!this.productSku)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.tid=this.transactionId,e.in=this.productName,e.ic=this.productSku,this.itemPrice&&(e.ip=this.itemPrice),this.itemQuantity&&(e.iq=this.itemQuantity),this.itemCategory&&(e.iv=this.itemCategory),e}},{key:"toObject",value:function(){return ut(ut({},t.prototype.toObject.call(this)),{},{transactionId:this.transactionId,productName:this.productName,productSku:this.productSku,itemPrice:this.itemPrice,itemQuantity:this.itemQuantity,itemCategory:this.itemCategory})}},{key:"getErrorMessage",value:function(){return"Transaction Id, Item name and item code are required"}}]),c}(it);function lt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ht(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lt(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var pt=function(t){o(c,t);var e,n,i=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function c(t){var e;return(e=i.call(this,{type:g.PAGE_VIEW,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber})).documentLocation=null==t?void 0:t.documentLocation,e}return r(c,[{key:"documentLocation",get:function(){return this._documentLocation},set:function(t){this.isNotEmptyString(t,"documentLocation")&&(this._documentLocation=t)}},{key:"isReady",value:function(){return!((!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&!t.prototype.isReady.call(this)||!this.documentLocation)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.dl=this.documentLocation,e}},{key:"toObject",value:function(){return ht(ht({},t.prototype.toObject.call(this)),{},{documentLocation:this.documentLocation})}},{key:"getErrorMessage",value:function(){return"documentLocation url is required"}}]),c}(it);function vt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function gt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vt(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var dt=function(t){o(c,t);var e,n,i=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function c(t){var e;return(e=i.call(this,{type:g.SCREEN_VIEW,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber})).documentLocation=null==t?void 0:t.documentLocation,e}return r(c,[{key:"documentLocation",get:function(){return this._documentLocation},set:function(t){this.isNotEmptyString(t,"documentLocation")&&(this._documentLocation=t)}},{key:"isReady",value:function(){return!((!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&!t.prototype.isReady.call(this)||!this.documentLocation)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.dl=this.documentLocation,e}},{key:"toObject",value:function(){return gt(gt({},t.prototype.toObject.call(this)),{},{documentLocation:this.documentLocation})}},{key:"getErrorMessage",value:function(){return"Screen name is required"}}]),c}(it);function yt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yt(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var bt=function(t){o(c,t);var e,n,i=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function c(t){var e;e=i.call(this,{type:g.TRANSACTION,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber});var n=t.transactionId,r=t.affiliation,o=t.taxes,a=t.currency,s=t.couponCode,c=t.itemCount,u=t.shippingMethod,f=t.paymentMethod,l=t.totalRevenue,h=t.shippingCosts;return e.transactionId=n,e.affiliation=r,o&&(e.taxes=o),a&&(e.currency=a),s&&(e.couponCode=s),c&&(e.itemCount=c),u&&(e.shippingMethod=u),f&&(e.paymentMethod=f),l&&(e.totalRevenue=l),h&&(e.shippingCosts=h),e}return r(c,[{key:"transactionId",get:function(){return this._transactionId},set:function(t){this.isNotEmptyString(t,"transactionId")&&(this._transactionId=t)}},{key:"affiliation",get:function(){return this._affiliation},set:function(t){this.isNotEmptyString(t,"affiliation")&&(this._affiliation=t)}},{key:"taxes",get:function(){return this._taxes},set:function(t){this.isNumeric(t,"taxes")&&(this._taxes=t)}},{key:"currency",get:function(){return this._currency},set:function(t){t&&"string"==typeof t&&3===t.length?this._currency=t:V(this.config,F("{0} must be a string and have exactly 3 letters","currency"),"currency")}},{key:"couponCode",get:function(){return this._couponCode},set:function(t){this.isNotEmptyString(t,"couponCode")&&(this._couponCode=t)}},{key:"itemCount",get:function(){return this._itemCount},set:function(t){this.isInteger(t,"itemCount")&&(this._itemCount=Math.trunc(t))}},{key:"shippingMethod",get:function(){return this._shippingMethod},set:function(t){this.isNotEmptyString(t,"shippingMethod")&&(this._shippingMethod=t)}},{key:"paymentMethod",get:function(){return this._paymentMethod},set:function(t){this.isNotEmptyString(t,"paymentMethod")&&(this._paymentMethod=t)}},{key:"totalRevenue",get:function(){return this._totalRevenue},set:function(t){this.isNumeric(t,"totalRevenue")&&(this._totalRevenue=t)}},{key:"shippingCosts",get:function(){return this._shippingCosts},set:function(t){this.isNumeric(t,"shippingCosts")&&(this._shippingCosts=t)}},{key:"isReady",value:function(){return!((!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&!t.prototype.isReady.call(this)||!this.transactionId||!this.affiliation)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.tid=this.transactionId,e.ta=this.affiliation,this.taxes&&(e.tt=this.taxes),this.currency&&(e.tc=this.currency),this.couponCode&&(e.tcc=this.couponCode),this.itemCount&&(e.icn=this.itemCount),this.shippingMethod&&(e.sm=this.shippingMethod),this.paymentMethod&&(e.pm=this.paymentMethod),this.totalRevenue&&(e.tr=this.totalRevenue),this.shippingCosts&&(e.ts=this.shippingCosts),e}},{key:"toObject",value:function(){return mt(mt({},t.prototype.toObject.call(this)),{},{transactionId:this.transactionId,affiliation:this.affiliation,taxes:this.taxes,currency:this.currency,couponCode:this.couponCode,itemCount:this.itemCount,shippingMethod:this.shippingMethod,paymentMethod:this.paymentMethod,totalRevenue:this.totalRevenue,shippingCosts:this.shippingCosts})}},{key:"getErrorMessage",value:function(){return"Transaction Id and Transaction affiliation are required"}}]),c}(it),kt=function(t){o(l,t);var e,n,i,c,u,f=(c=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(c);if(u){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function l(){return f.apply(this,arguments)}return r(l,[{key:"sendConsentHit",value:(i=X(et().mark((function t(e){var n,r,i;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Y(n={},"t",g.EVENT),Y(n,"el","".concat(d.name,":").concat(e.hasConsented)),Y(n,"ea","fs_consent"),Y(n,"ec",Z.USER_ENGAGEMENT),Y(n,M,this.config.envId),Y(n,"ds","APP"),r=n,e.visitorId&&e.anonymousId?(r.vid=e.anonymousId,r.cuid=e.visitorId):(r.vid=e.anonymousId||e.visitorId,r.cuid=null),i=Y({},N,T),t.next=5,this.httpClient.postAsync("https://ariane.abtasty.com",{headers:i,timeout:this.config.timeout,body:r});case 5:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"sendActive",value:(n=X(et().mark((function t(e,n){var r,i,o,a,s;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Y(r={},R,"".concat(this.config.apiKey)),Y(r,j,d.name),Y(r,P,m),Y(r,N,T),o=r,a="".concat(y).concat("activate"),Y(i={},"vid",e.visitorId),Y(i,"vaid",n.variationId),Y(i,"caid",n.variationGroupId),Y(i,M,"".concat(this.config.envId)),s=i,e.visitorId&&e.anonymousId?(s.vid=e.visitorId,s.aid=e.anonymousId):(s.vid=e.anonymousId||e.visitorId,s.aid=null),t.next=6,this.httpClient.postAsync(a,{headers:o,timeout:this.config.timeout,body:s});case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"sendHit",value:(e=X(et().mark((function t(e){var n;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Y({},N,T),t.next=3,this.httpClient.postAsync("https://ariane.abtasty.com",{headers:n,timeout:this.config.timeout,body:e.toApiKeys()});case 3:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),l}(function(){function t(t,e){this._httpClient=t,this._config=e}return r(t,[{key:"httpClient",get:function(){return this._httpClient}},{key:"config",get:function(){return this._config}}]),t}()),xt=function(){function t(){}return r(t,[{key:"emergency",value:function(t,e){this.log(c.EMERGENCY,t,e)}},{key:"alert",value:function(t,e){this.log(c.ALERT,t,e)}},{key:"critical",value:function(t,e){this.log(c.CRITICAL,t,e)}},{key:"error",value:function(t,e){this.log(c.ERROR,t,e)}},{key:"warning",value:function(t,e){this.log(c.WARNING,t,e)}},{key:"notice",value:function(t,e){this.log(c.NOTICE,t,e)}},{key:"info",value:function(t,e){this.log(c.INFO,t,e)}},{key:"debug",value:function(t,e){this.log(c.DEBUG,t,e)}},{key:"log",value:function(t,e,n){var r=new Date,i=function(t){return 1===t.toString().length?"0".concat(t):t},o="[".concat(i(r.getFullYear()),"-").concat(i(r.getMonth()),"-").concat(i(r.getDay())," ").concat(i(r.getHours()),":").concat(i(r.getMinutes()),"] [").concat("Flagship SDK","] [").concat(c[t],"] [").concat(n,"] : ").concat(e);console.log(o)}}]),t}();function wt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ot(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return wt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Et(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?It(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n(864),n(282);var _t=function(t){o(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function i(t){var e,n;return(n=r.call(this,Et(Et({},t),{},{decisionMode:D.BUCKETING}))).pollingInterval=null!=(e=null==t?void 0:t.pollingInterval)?e:1,n.onBucketingFail=null==t?void 0:t.onBucketingFail,n.onBucketingSuccess=null==t?void 0:t.onBucketingSuccess,n.onBucketingUpdated=null==t?void 0:t.onBucketingUpdated,n}return i}(W);function Ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function St(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ct(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n(785),n(720),n(926);var At,Mt=function(){function t(t){this.visitor=t}var e,n,i,o,a,s;return r(t,[{key:"configManager",get:function(){return this.visitor.configManager}},{key:"trackingManager",get:function(){return this.configManager.trackingManager}},{key:"decisionManager",get:function(){return this.configManager.decisionManager}},{key:"config",get:function(){return this.visitor.config}},{key:"updateCampaigns",value:function(t){try{this.visitor.campaigns=t,this.visitor.flagsData=this.decisionManager.getModifications(t)}catch(t){V(this.config,t.message||t,"updateCampaigns")}}},{key:"hasTrackingManager",value:function(t){var e=this.trackingManager;return e||V(this.config,F("trackerManager must not be null."),t),!!e}},{key:"setConsent",value:function(t){var e=this,n="setConsent";this.visitor.hasConsented=t,t||(this.flushHits(),this.flushVisitor()),this.hasTrackingManager(n)&&this.trackingManager.sendConsentHit(this.visitor).catch((function(t){V(e.config,t.message||t,n)}))}},{key:"checKLookupVisitorDataV1",value:function(t){if(!t||!t.data||!t.data.visitorId)return!1;var e=t.data.campaigns;return!e||!!Array.isArray(e)&&(t.data.visitorId!==this.visitor.visitorId?(G(this.config,F("Visitor ID mismatch: {0} vs {1}",t.data.visitorId,this.visitor.visitorId),"lookupVisitor"),!1):e.every((function(t){return t.campaignId&&t.type&&t.variationGroupId&&t.variationId})))}},{key:"checKLookupVisitorData",value:function(t){return 1===t.version&&this.checKLookupVisitorDataV1(t)}},{key:"lookupVisitor",value:(s=X(et().mark((function t(){var e,n;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e=this.config.visitorCacheImplementation,!this.config.disableCache&&e&&e.lookupVisitor&&"function"==typeof e.lookupVisitor){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,e.lookupVisitor(this.visitor.visitorId);case 6:if(n=t.sent){t.next=9;break}return t.abrupt("return");case 9:if(this.checKLookupVisitorData(n)){t.next=11;break}throw new Error("JSON DATA must fit the type VisitorCacheDTO");case 11:this.visitor.visitorCache=n,t.next=17;break;case 14:t.prev=14,t.t0=t.catch(0),V(this.config,t.t0.message||t.t0,"lookupVisitor");case 17:case"end":return t.stop()}}),t,this,[[0,14]])}))),function(){return s.apply(this,arguments)})},{key:"cacheVisitor",value:(a=X(et().mark((function t(){var e,n,r,i,o;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r=this.config.visitorCacheImplementation,!this.config.disableCache&&r&&"function"==typeof r.cacheVisitor){t.next=4;break}return t.abrupt("return");case 4:return i={},(o={version:1,data:{visitorId:this.visitor.visitorId,anonymousId:this.visitor.anonymousId,consent:this.visitor.hasConsented,context:this.visitor.context,campaigns:this.visitor.campaigns.map((function(t){return i[t.variationGroupId]=t.variation.id,{campaignId:t.id,variationGroupId:t.variationGroupId,variationId:t.variation.id,isReference:t.variation.reference,type:t.variation.modifications.type,activated:!1,flags:t.variation.modifications.value}}))}}).data.assignmentsHistory=St(St({},null==(e=this.visitor.visitorCache)||null==(n=e.data)?void 0:n.assignmentsHistory),i),t.next=9,r.cacheVisitor(this.visitor.visitorId,o);case 9:this.visitor.visitorCache=o,t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),V(this.config,t.t0.message||t.t0,"cacheVisitor");case 15:case"end":return t.stop()}}),t,this,[[0,12]])}))),function(){return a.apply(this,arguments)})},{key:"flushVisitor",value:(o=X(et().mark((function t(){var e;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e=this.config.visitorCacheImplementation,!this.config.disableCache&&e&&"function"==typeof e.flushVisitor){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,e.flushVisitor(this.visitor.visitorId);case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),V(this.config,t.t0.message||t.t0,"flushVisitor");case 11:case"end":return t.stop()}}),t,this,[[0,8]])}))),function(){return o.apply(this,arguments)})},{key:"checKLookupHitData",value:function(t){return!!(t&&1===t.version&&t.data&&t.data.type&&t.data.visitorId)||(V(this.config,"JSON DATA must fit the type HitCacheDTO","lookupHits"),!1)}},{key:"lookupHits",value:(i=X(et().mark((function t(){var e,n,r,i,o,a=this;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e=this.config.hitCacheImplementation,!this.config.disableCache&&e&&"function"==typeof e.lookupHits){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,e.lookupHits(this.visitor.visitorId);case 6:if(n=t.sent){t.next=9;break}return t.abrupt("return");case 9:if(Array.isArray(n)){t.next=11;break}throw Error("JSON DATA must be an array of object");case 11:if(r=function(t){return(Date.now()-t)/1e3<=144e5},i=[{type:"BATCH",hits:[]}],o=0,n.filter((function(t){return a.checKLookupHitData(t)&&r(t.data.time)})).forEach((function(t){"ACTIVATE"!==t.data.type?"BATCH"!==t.data.type?JSON.stringify(i[o]).length>2621440?(o++,i[o]={type:"BATCH",hits:[t.data.content]}):i[o].hits.push(t.data.content):a.sendHit(t.data.content):a.sendActivate(t.data.content)})),1!==i.length||i[0].hits.length){t.next=18;break}return t.abrupt("return");case 18:this.sendHits(i),t.next=24;break;case 21:t.prev=21,t.t0=t.catch(0),V(this.config,t.t0.message||t.t0,"lookupHits");case 24:case"end":return t.stop()}}),t,this,[[0,21]])}))),function(){return i.apply(this,arguments)})},{key:"cacheHit",value:(n=X(et().mark((function t(e){var n,r;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,n=this.config.hitCacheImplementation,!this.config.disableCache&&n&&"function"==typeof n.cacheHit){t.next=4;break}return t.abrupt("return");case 4:return r={version:1,data:{visitorId:this.visitor.visitorId,anonymousId:this.visitor.anonymousId,type:e instanceof it?e.type:"ACTIVATE",content:e instanceof it?e.toObject():e,time:Date.now()}},t.next=7,n.cacheHit(this.visitor.visitorId,r);case 7:t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),V(this.config,t.t0.message||t.t0,"cacheHit");case 12:case"end":return t.stop()}}),t,this,[[0,9]])}))),function(t){return n.apply(this,arguments)})},{key:"flushHits",value:(e=X(et().mark((function t(){var e;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e=this.config.hitCacheImplementation,!this.config.disableCache&&e&&"function"==typeof e.flushHits){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,e.flushHits(this.visitor.visitorId);case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),V(this.config,t.t0.message||t.t0,"flushHits");case 11:case"end":return t.stop()}}),t,this,[[0,8]])}))),function(){return e.apply(this,arguments)})}]),t}(),Rt="sdk_deviceLanguage",Nt="sdk_deviceType",jt="sdk_deviceModel",Pt="sdk_city",Tt="sdk_region",Dt="sdk_country",Lt="sdk_lat",Ft="sdk_long",Vt="sdk_ip",Gt="sdk_osName",Ht="sdk_osVersionName",Bt="sdk_osVersionCode",Ut="sdk_carrierName",Kt="sdk_internetConnection",Wt="sdk_versionName",Yt="sdk_versionCode",zt="sdk_interfaceName",$t="fs_client",Jt="fs_version",Qt="fs_users",qt=(Y(At={},Rt,"string"),Y(At,Nt,"string"),Y(At,jt,"string"),Y(At,Pt,"string"),Y(At,Tt,"string"),Y(At,Dt,"string"),Y(At,Lt,"number"),Y(At,Ft,"number"),Y(At,Vt,"string"),Y(At,Gt,"string"),Y(At,Ht,"string"),Y(At,Bt,"number"),Y(At,Ut,"string"),Y(At,Kt,"string"),Y(At,Wt,"string"),Y(At,Yt,"number"),Y(At,zt,"string"),Y(At,$t,"string"),Y(At,Jt,"string"),Y(At,Qt,"string"),At);function Xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xt(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var te="BATCH",ee=function(t){o(c,t);var e,n,i=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function c(t){var e;return(e=i.call(this,Zt(Zt({},t),{},{type:te}))).hits=t.hits,e}return r(c,[{key:"hits",get:function(){return this._hits},set:function(t){this._hits=t}},{key:"isReady",value:function(){return!!(t.prototype.isReady.call(this)&&this.hits&&this.hits.length>0&&this.hits.every((function(t){return t.isReady(!1)})))}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.h=this.hits.map((function(t){var e=t.toApiKeys();return delete e.vid,delete e.cid,delete e.uip,delete e.sr,delete e.ul,delete e.sn,delete e.vid,delete e.cuid,e})),e}},{key:"toObject",value:function(){return Zt(Zt({},t.prototype.toObject.call(this)),{},{hits:this.hits.map((function(t){return t.toObject()}))})}},{key:"getErrorMessage",value:function(){return"Please check required fields"}}]),c}(it),ne=function(){function t(t){var e=t.campaignId,n=t.variationGroupId,r=t.variationId,i=t.isReference,o=t.campaignType;this.campaignId=e,this.variationGroupId=n,this.variationId=r,this.isReference=i,this.campaignType=o}return r(t,null,[{key:"Empty",value:function(){return new t({campaignId:"",campaignType:"",variationId:"",variationGroupId:"",isReference:!1})}}]),t}();function re(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ie(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?re(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var oe="property type is required and must ",ae=function(e){o(T,e);var n,i,c,u,f,l,h,p,v,d,y,m,x,O,I,M,R,N,j,P=(N=T,j=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(N);if(j){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function T(){return P.apply(this,arguments)}return r(T,[{key:"checkPredefinedContext",value:function(t,e){var n=qt[t];if(!n)return null;var r=!1;return"string"===n?r="string"==typeof e:"number"===n&&(r="number"==typeof e),r||V(this.config,F("Predefined Context {0} must be type of {1}",t,n),E),r}},{key:"updateContextKeyValue",value:function(e,n){var r=t(n);if("string"!=typeof e||""===e||"string"!==r&&"number"!==r&&"boolean"!==r)V(this.visitor.config,F("params {0} must be a non null String, and 'value' must be one of the following types , Number, Boolean",e),E);else if(!e.match(/^fs_/i)){var i=this.checkPredefinedContext(e,n);("boolean"!=typeof i||i)&&(this.visitor.context[e]=n)}}},{key:"updateContext",value:function(t){if(t)for(var e in t){var n=t[e];this.updateContextKeyValue(e,n)}else V(this.visitor.config,"Context must not to be null",E)}},{key:"clearContext",value:function(){this.visitor.context={}}},{key:"checkAndGetModification",value:function(e,n){var r=this,i=e.key,o=e.defaultValue,a=e.activate;if(!i||"string"!=typeof i)return V(this.config,F(k,i),_),o;var s=this.visitor.flagsData.get(i);return s?"object"===t(s.value)&&"object"===t(o)&&Array.isArray(s.value)!==Array.isArray(o)||t(s.value)!==t(o)?(V(r.config,F("Modification for key {0} has a different type. Default value is returned.",i),_),s.value||!a&&!n||r.activateModification(i),o):((a||n)&&this.activateModification(i),s.value):(G(this.config,F("No modification for key {0}. Default value is returned.",i),_),o)}},{key:"getModifications",value:(R=X(et().mark((function t(e,n){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getModificationsSync(e,n));case 1:case"end":return t.stop()}}),t,this)}))),function(t,e){return R.apply(this,arguments)})},{key:"getModificationsSync",value:function(t,e){var n=this,r={};return t.forEach((function(t){r[t.key]=n.checkAndGetModification(t,e)})),r}},{key:"getModification",value:(M=X(et().mark((function t(e){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getModificationSync(e));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return M.apply(this,arguments)})},{key:"getModificationSync",value:function(t){return this.checkAndGetModification(t)}},{key:"getModificationInfo",value:(I=X(et().mark((function t(e){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getModificationInfoSync(e));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return I.apply(this,arguments)})},{key:"getModificationInfoSync",value:function(t){return t&&"string"==typeof t?this.visitor.flagsData.get(t)||(V(this.visitor.config,F("No modification for key {0}.",t),C),null):(V(this.visitor.config,F(k,t),C),null)}},{key:"fetchVisitorCampaigns",value:function(t){var e;return Array.isArray(null==t||null==(e=t.visitorCache)?void 0:e.data.campaigns)?(t.updateContext(t.visitorCache.data.context||{}),t.visitorCache.data.campaigns.map((function(t){return{id:t.campaignId,variationGroupId:t.variationGroupId,variation:{id:t.variationId,reference:!!t.isReference,modifications:{type:t.type,value:t.flags}}}}))):[]}},{key:"globalFetchFlags",value:(O=X(et().mark((function t(e){var n;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.decisionManager.getCampaignsAsync(this.visitor);case 3:(n=t.sent).length||(n=this.fetchVisitorCampaigns(this.visitor)),this.visitor.campaigns=n,this.visitor.flagsData=this.decisionManager.getModifications(this.visitor.campaigns),this.cacheVisitor(),this.visitor.emit(b),t.next=15;break;case 11:t.prev=11,t.t0=t.catch(0),this.visitor.emit(b,t.t0),V(this.config,t.t0.message||t.t0,e);case 15:case"end":return t.stop()}}),t,this,[[0,11]])}))),function(t){return O.apply(this,arguments)})},{key:"synchronizeModifications",value:(x=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.globalFetchFlags("SYNCHRONIZED MODIFICATION"));case 1:case"end":return t.stop()}}),t,this)}))),function(){return x.apply(this,arguments)})},{key:"activateModification",value:(m=X(et().mark((function t(e){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&"string"==typeof e){t.next=3;break}return V(this.config,F("Key {0} must not be null, no activate will be sent.",e),S),t.abrupt("return");case 3:return t.abrupt("return",this.activate(e));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return m.apply(this,arguments)})},{key:"activateModifications",value:(y=X(et().mark((function t(e){var n=this;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&Array.isArray(e)){t.next=3;break}return V(this.config,F(k,e),S),t.abrupt("return");case 3:e.forEach((function(t){"string"==typeof t?n.activate(t):n.activate(t.key)}));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return y.apply(this,arguments)})},{key:"isDeDuplicated",value:function(t,e){if(0===e)return!1;var n=this.visitor.deDuplicationCache[t];return!!(n&&Date.now()-n<=1e3*e)||(this.visitor.deDuplicationCache[t]=Date.now(),this.visitor.clearDeDuplicationCache(e),!1)}},{key:"sendActivate",value:(d=X(et().mark((function t(e){var n,r=arguments;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:S,t.prev=1,t.next=4,this.trackingManager.sendActive(this.visitor,e);case 4:t.next=10;break;case 6:t.prev=6,t.t0=t.catch(1),V(this.config,t.t0.message||t.t0,n),this.cacheHit(e);case 10:case"end":return t.stop()}}),t,this,[[1,6]])}))),function(t){return d.apply(this,arguments)})},{key:"activate",value:(v=X(et().mark((function t(e){var n;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.visitor.flagsData.get(e)){t.next=4;break}return V(this.visitor.config,F("No modification for key {0}, no activate will be sent.",e),S),t.abrupt("return");case 4:if(!this.isDeDuplicated(n.variationGroupId+this.visitor.visitorId,this.config.activateDeduplicationTime)){t.next=6;break}return t.abrupt("return");case 6:if(this.hasTrackingManager(S)){t.next=8;break}return t.abrupt("return");case 8:return t.next=10,this.sendActivate(n);case 10:case"end":return t.stop()}}),t,this)}))),function(t){return v.apply(this,arguments)})},{key:"sendHit",value:function(t){return this.hasTrackingManager(A)?this.prepareAndSendHit(t):Promise.resolve()}},{key:"sendHits",value:(p=X(et().mark((function t(e){var n=this;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.hasTrackingManager(A)){t.next=2;break}return t.abrupt("return");case 2:e.forEach((function(t){return n.prepareAndSendHit(t)}));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return p.apply(this,arguments)})},{key:"getHitLegacy",value:function(t){var e=null;if(!t||!t.type)return null;var n={type:{Screen:g.SCREEN_VIEW,ScreenView:g.SCREEN_VIEW,Transaction:g.TRANSACTION,Page:g.PAGE_VIEW,PageView:g.PAGE_VIEW,Item:g.ITEM,Event:g.EVENT}[t.type]},r=ie(ie({},n),t.data);switch(n.type.toUpperCase()){case g.EVENT:e=new st(r);break;case g.ITEM:var i=t.data;e=new ft(ie(ie({},r),{},{productName:i.name,productSku:i.code,transactionId:i.transactionId,itemCategory:i.category,itemPrice:i.price,itemQuantity:i.quantity}));break;case g.PAGE_VIEW:e=new pt(r);break;case g.SCREEN_VIEW:e=new dt(r);break;case g.TRANSACTION:e=new bt(t.data)}return e}},{key:"getHit",value:function(t){var e,n=this,r=null;if(!t||!t.type)return r;switch(t.type.toUpperCase()){case g.EVENT:r=new st(t);break;case g.ITEM:r=new ft(t);break;case g.PAGE_VIEW:r=new pt(t);break;case g.SCREEN_VIEW:r=new dt(t);break;case g.TRANSACTION:r=new bt(t);break;case te:r=new ee({hits:null==t||null==(e=t.hits)?void 0:e.map((function(t){return n.getHit(t)})).filter((function(t){return t}))})}return r}},{key:"prepareAndSendHit",value:(h=X(et().mark((function t(e){var n,r,i,o;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e instanceof it)){t.next=4;break}n=e,t.next=18;break;case 4:if(!("data"in e)){t.next=13;break}if(r=e,i=this.getHitLegacy(r)){t.next=10;break}return V(this.config,oe,A),t.abrupt("return");case 10:n=i,t.next=18;break;case 13:if(o=this.getHit(e)){t.next=17;break}return V(this.config,oe,A),t.abrupt("return");case 17:n=o;case 18:if(n.visitorId=this.visitor.visitorId,n.ds="APP",n.config=this.config,n.anonymousId=this.visitor.anonymousId,!this.isDeDuplicated(JSON.stringify(n),this.config.hitDeduplicationTime)){t.next=24;break}return t.abrupt("return");case 24:if(n.isReady()){t.next=27;break}return V(this.config,n.getErrorMessage(),A),t.abrupt("return");case 27:return t.prev=27,t.next=30,this.trackingManager.sendHit(n);case 30:t.next=36;break;case 32:t.prev=32,t.t0=t.catch(27),V(this.config,t.t0.message||t.t0,A),this.cacheHit(n);case 36:case"end":return t.stop()}}),t,this,[[27,32]])}))),function(t){return h.apply(this,arguments)})},{key:"getAllModifications",value:(l=X(et().mark((function t(){var e,n=arguments;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]&&n[0],t.abrupt("return",this.getAllFlagsData(e));case 2:case"end":return t.stop()}}),t,this)}))),function(){return l.apply(this,arguments)})},{key:"getAllFlagsData",value:(f=X(et().mark((function t(e){var n=this;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e&&this.visitor.flagsData.forEach((function(t,e){n.activateModification(e)})),t.abrupt("return",{visitorId:this.visitor.visitorId,campaigns:this.visitor.campaigns});case 2:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"getModificationsForCampaign",value:(u=X(et().mark((function t(e){var n,r=arguments;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>1&&void 0!==r[1]&&r[1],t.abrupt("return",this.getFlatsDataForCampaign(e,n));case 2:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"getFlatsDataForCampaign",value:(c=X(et().mark((function t(e,n){var r=this;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n&&this.visitor.flagsData.forEach((function(t){t.campaignId===e&&r.userExposed({key:t.key,flag:t,defaultValue:t.value})})),t.abrupt("return",{visitorId:this.visitor.visitorId,campaigns:this.visitor.campaigns.filter((function(t){return t.id===e}))});case 2:case"end":return t.stop()}}),t,this)}))),function(t,e){return c.apply(this,arguments)})},{key:"authenticate",value:function(t){var e="authenticate";this.config.decisionMode!==D.BUCKETING?t?(this.visitor.anonymousId=this.visitor.visitorId,this.visitor.visitorId=t):V(this.config,w,e):this.logDeactivateOnBucketing(e)}},{key:"unauthenticate",value:function(){var t="unauthenticate";this.config.decisionMode!==D.BUCKETING?this.visitor.anonymousId?(this.visitor.visitorId=this.visitor.anonymousId,this.visitor.anonymousId=null):V(this.config,"Visitor is not authenticated yet",t):this.logDeactivateOnBucketing(t)}},{key:"fetchFlags",value:(i=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.globalFetchFlags("fetchFlags"));case 1:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"userExposed",value:(n=X(et().mark((function t(e){var n,r,i,o;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.key,r=e.flag,i=e.defaultValue,o="userExposed",r){t.next=5;break}return G(this.visitor.config,F("No flag for key {0}, no activate will be sent",n),o),t.abrupt("return");case 5:if(!r.value||K(r.value,i)){t.next=8;break}return G(this.visitor.config,F("Flag for key {0} has a different type with defaultValue, no activate will be sent",n),o),t.abrupt("return");case 8:if(!this.isDeDuplicated(r.variationGroupId+this.visitor.visitorId,this.config.activateDeduplicationTime)){t.next=10;break}return t.abrupt("return");case 10:if(this.hasTrackingManager(o)){t.next=12;break}return t.abrupt("return");case 12:return t.abrupt("return",this.sendActivate(r,o));case 13:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"getFlagValue",value:function(t){var e=t.key,n=t.defaultValue,r=t.flag,i=t.userExposed,o="getFlag value";return r?K(r.value,n)?(i&&this.userExposed({key:e,flag:r,defaultValue:n}),r.value):(G(this.config,F("Flag for key {0} has a different type. Default value is returned.",e),o),!r.value&&i&&this.userExposed({key:e,flag:r,defaultValue:n}),n):(G(this.config,F("No Flag for key {0}. Default value is returned.",e),o),n)}},{key:"getFlagMetadata",value:function(t){var e=t.metadata,n=t.hasSameType,r=t.key;return n?e:(G(this.visitor.config,F("Flag for key {0} has a different type with defaultValue, an empty metadata object is returned",r),"flag.metadata"),ne.Empty())}},{key:"logDeactivateOnBucketing",value:function(t){V(this.config,F("Method {0} is deactivated on Bucketing mode.",t),t)}}]),T}(Mt),se=function(t){o(y,t);var e,n,i,c,u,f,l,h,p,g,d=(p=y,g=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(p);if(g){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function y(){return d.apply(this,arguments)}return r(y,[{key:"synchronizeModifications",value:(h=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("synchronizeModifications");case 1:case"end":return t.stop()}}),t,this)}))),function(){return h.apply(this,arguments)})},{key:"getModificationSync",value:function(t){return this.log("getModification"),t.defaultValue}},{key:"getModificationsSync",value:function(t,e){this.log("getModifications");var n={};return t.forEach((function(t){n[t.key]=t.defaultValue})),n}},{key:"lookupHits",value:(l=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return l.apply(this,arguments)})},{key:"lookupVisitor",value:(f=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return f.apply(this,arguments)})},{key:"cacheVisitor",value:(u=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return u.apply(this,arguments)})},{key:"getModificationInfoSync",value:function(t){return this.log("getModificationInfo"),null}},{key:"activateModification",value:(c=X(et().mark((function t(e){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModification");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"activateModifications",value:(i=X(et().mark((function t(e){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModifications");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"sendHit",value:function(t){return this.log("sendHit"),Promise.resolve()}},{key:"sendHits",value:function(t){return this.log("sendHits"),Promise.resolve()}},{key:"fetchFlags",value:(n=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("fetchFlags");case 1:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"getFlagValue",value:function(t){return this.log("Flag.value"),t.defaultValue}},{key:"userExposed",value:(e=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("userExposed");case 1:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"getFlagMetadata",value:function(){return this.log("flag.metadata"),ne.Empty()}},{key:"log",value:function(t){V(this.config,F(O,t,v[v.NOT_INITIALIZED]),t)}}]),y}(ae),ce=function(t){o(d,t);var e,n,i,c,u,f,l,h,p,g=(h=d,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(h);if(p){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function d(){return g.apply(this,arguments)}return r(d,[{key:"setConsent",value:function(t){this.visitor.hasConsented=t,V(this.config,F("Send consent hit is deactivated while SDK status is: {1}.",v[v.READY_PANIC_ON]),"setConsent")}},{key:"updateContext",value:function(t){this.log("updateContext")}},{key:"clearContext",value:function(){this.log("clearContext")}},{key:"getModificationSync",value:function(t){return this.log("getModification"),t.defaultValue}},{key:"lookupHits",value:(l=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return l.apply(this,arguments)})},{key:"lookupVisitor",value:(f=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return f.apply(this,arguments)})},{key:"cacheVisitor",value:(u=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return u.apply(this,arguments)})},{key:"cacheHit",value:(c=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return c.apply(this,arguments)})},{key:"fetchVisitorCampaigns",value:function(){return[]}},{key:"getModificationsSync",value:function(t,e){this.log("getModifications");var n={};return t.forEach((function(t){n[t.key]=t.defaultValue})),n}},{key:"getModificationInfoSync",value:function(t){return this.log("getModificationInfo"),null}},{key:"activateModification",value:(i=X(et().mark((function t(e){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModification");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"activateModifications",value:(n=X(et().mark((function t(e){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModifications");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"sendHit",value:function(t){return this.log("sendHit"),Promise.resolve()}},{key:"sendHits",value:function(t){return this.log("sendHits"),Promise.resolve()}},{key:"getFlagValue",value:function(t){return this.log("Flag.value"),t.defaultValue}},{key:"userExposed",value:(e=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("userExposed");case 1:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"getFlagMetadata",value:function(){return this.log("flag.metadata"),ne.Empty()}},{key:"log",value:function(t){V(this.config,F(O,t,v[v.READY_PANIC_ON]),t)}}]),d}(ae),ue=function(t){o(g,t);var e,n,i,c,u,f,l,h,p,v=(h=g,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(h);if(p){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function g(){return v.apply(this,arguments)}return r(g,[{key:"activateModification",value:(l=X(et().mark((function t(e){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModification");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"activateModifications",value:(f=X(et().mark((function t(e){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModifications");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"lookupHits",value:(u=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return u.apply(this,arguments)})},{key:"lookupVisitor",value:(c=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return c.apply(this,arguments)})},{key:"cacheVisitor",value:(i=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})},{key:"cacheHit",value:(n=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})},{key:"fetchVisitorCampaigns",value:function(){return[]}},{key:"sendHit",value:function(t){return this.log("sendHit"),Promise.resolve()}},{key:"sendHits",value:function(t){return this.log("sendHits"),Promise.resolve()}},{key:"userExposed",value:(e=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("userExposed");case 1:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"log",value:function(t){V(this.config,F("Method {0} is deactivated for visitor {1} : visitor did not consent.",t,this.visitor.visitorId),t)}}]),g}(ae),fe="FS_CLIENT_VISITOR",le=function(t){o(c,t);var e,n,i=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function c(t){var e,n=t.visitorId,r=t.configManager,o=t.context,a=t.isAuthenticated,s=t.hasConsented,c=t.initialModifications,u=t.initialFlagsData,f=t.initialCampaigns;(e=i.call(this))._isCleaningDeDuplicationCache=!1,e.deDuplicationCache={},e._context={},e._configManager=r;var l=e.config.enableClientCache?function(){var t=null;try{t=localStorage.getItem(fe)}catch(t){}return t?JSON.parse(t):null}():null;return e.visitorId=n||(null==l?void 0:l.visitorId)||e.createVisitorId(),e.setConsent(null==s||s),e.campaigns=[],e.updateContext(o),e._anonymousId=(null==l?void 0:l.anonymousId)||null,e.loadPredefinedContext(),!e._anonymousId&&a&&e.config.decisionMode===D.DECISION_API&&(e._anonymousId=e.uuidV4()),e.updateCache(),e.setInitialFlags(u||c),e.setInitializeCampaigns(f,!!c),e.getStrategy().lookupVisitor(),e.getStrategy().lookupHits(),e}return r(c,[{key:"clearDeDuplicationCache",value:function(t){if(!this._isCleaningDeDuplicationCache){this._isCleaningDeDuplicationCache=!0;for(var e=0,n=Object.entries(this.deDuplicationCache);e<n.length;e++){var r=Ot(n[e],2),i=r[0],o=r[1];Date.now()-o>1e3*t&&delete this.deDuplicationCache[i]}this._isCleaningDeDuplicationCache=!1}}},{key:"getModificationsArray",value:function(){return Array.from(this._flags,(function(t){var e=Ot(t,2);return e[0],e[1]}))}},{key:"getFlagsDataArray",value:function(){return Array.from(this._flags,(function(t){var e=Ot(t,2);return e[0],e[1]}))}},{key:"setInitialFlags",value:function(t){var e=this;this._flags=new Map,t&&(t instanceof Map||Array.isArray(t))&&t.forEach((function(t){e._flags.set(t.key,t)}))}},{key:"setInitializeCampaigns",value:function(t,e){t&&Array.isArray(t)&&!e&&this.getStrategy().updateCampaigns(t)}},{key:"updateCache",value:function(){!function(t){try{localStorage.setItem(fe,JSON.stringify(t))}catch(t){}}({visitorId:this.visitorId,anonymousId:this.anonymousId})}},{key:"loadPredefinedContext",value:function(){this.context.fs_client=d.name,this.context.fs_version=m,this.context.fs_users=this.visitorId}},{key:"uuidV4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}},{key:"createVisitorId",value:function(){var t=new Date,e=Math.floor(89999*Math.random()+1e4),n=function(t){return 1===t.toString().length?"0".concat(t):t};return"".concat(t.getFullYear()).concat(n(t.getMonth()+1)).concat(n(t.getDate())).concat(n(t.getHours())).concat(n(t.getMinutes())).concat(e)}},{key:"visitorId",get:function(){return this._visitorId},set:function(t){t&&"string"==typeof t?(this._visitorId=t,this.loadPredefinedContext(),this.visitorCache=void 0):V(this.config,w,"VISITOR ID")}},{key:"hasConsented",get:function(){return this._hasConsented},set:function(t){this._hasConsented=t}},{key:"setConsent",value:function(t){this.hasConsented=t,this.getStrategy().setConsent(t)}},{key:"context",get:function(){return this._context},set:function(t){this._context={},this.updateContext(t)}},{key:"flagsData",get:function(){return this._flags},set:function(t){this._flags=t}},{key:"modifications",get:function(){return this._flags},set:function(t){this._flags=t}},{key:"configManager",get:function(){return this._configManager}},{key:"config",get:function(){return this.configManager.config}},{key:"campaigns",get:function(){return this._campaigns},set:function(t){this._campaigns=t}},{key:"anonymousId",get:function(){return this._anonymousId},set:function(t){this._anonymousId=t}},{key:"getStrategy",value:function(){return Ee.getStatus()&&Ee.getStatus()!==v.NOT_INITIALIZED?Ee.getStatus()===v.READY_PANIC_ON?new ce(this):this.hasConsented?new ae(this):new ue(this):new se(this)}}]),c}(u.EventEmitter),he=function(){function t(t){var e=t.key,n=t.visitor,r=t.defaultValue;this._key=e,this._visitor=n,this._defaultValue=r}return r(t,[{key:"exists",value:function(){var t=this._visitor.flagsData.get(this._key);return!!t&&K(t.value,this._defaultValue)}},{key:"metadata",get:function(){var t=this._visitor.flagsData.get(this._key),e=new ne({campaignId:(null==t?void 0:t.campaignId)||"",variationGroupId:(null==t?void 0:t.variationGroupId)||"",variationId:(null==t?void 0:t.variationId)||"",isReference:!(null==t||!t.isReference),campaignType:(null==t?void 0:t.campaignType)||""});return t?this._visitor.getFlagMetadata({metadata:e,hasSameType:!t.value||K(t.value,this._defaultValue),key:t.key}):e}},{key:"userExposed",value:function(){var t=this._visitor.flagsData.get(this._key);return this._visitor.userExposed({key:this._key,flag:t,defaultValue:this._defaultValue})}},{key:"getValue",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this._visitor.flagsData.get(this._key);return this._visitor.getFlagValue({key:this._key,defaultValue:this._defaultValue,flag:e,userExposed:t})}}]),t}(),pe=function(t){o(c,t);var e,n,i=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function c(){return i.apply(this,arguments)}return r(c,[{key:"updateContext",value:function(t){this.getStrategy().updateContext(t),this.loadPredefinedContext()}},{key:"clearContext",value:function(){this.getStrategy().clearContext()}},{key:"getFlag",value:function(t,e){return new he({key:t,visitor:this,defaultValue:e})}},{key:"getModification",value:function(t){return this.getStrategy().getModification(t)}},{key:"getModificationSync",value:function(t){return this.getStrategy().getModificationSync(t)}},{key:"getModifications",value:function(t,e){return this.getStrategy().getModifications(t,e)}},{key:"getModificationsSync",value:function(t,e){return this.getStrategy().getModificationsSync(t,e)}},{key:"getModificationInfo",value:function(t){return this.getStrategy().getModificationInfo(t)}},{key:"getModificationInfoSync",value:function(t){return this.getStrategy().getModificationInfoSync(t)}},{key:"synchronizeModifications",value:function(){return this.getStrategy().synchronizeModifications()}},{key:"activateModification",value:function(t){return this.getStrategy().activateModification(t)}},{key:"activateModifications",value:function(t){return this.getStrategy().activateModifications(t)}},{key:"sendHit",value:function(t){return this.getStrategy().sendHit(t)}},{key:"sendHits",value:function(t){return this.getStrategy().sendHits(t)}},{key:"getAllModifications",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getStrategy().getAllModifications(t)}},{key:"getAllFlagsData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getStrategy().getAllFlagsData(t)}},{key:"getModificationsForCampaign",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getStrategy().getModificationsForCampaign(t,e)}},{key:"getFlatsDataForCampaign",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getStrategy().getFlatsDataForCampaign(t,e)}},{key:"authenticate",value:function(t){this.getStrategy().authenticate(t),this.updateCache()}},{key:"unauthenticate",value:function(){this.getStrategy().unauthenticate(),this.updateCache()}},{key:"fetchFlags",value:function(){return this.getStrategy().fetchFlags()}},{key:"userExposed",value:function(t){return this.getStrategy().userExposed(t)}},{key:"getFlagValue",value:function(t){return this.getStrategy().getFlagValue(t)}},{key:"getFlagMetadata",value:function(t){return this.getStrategy().getFlagMetadata(t)}}]),c}(le);function ve(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ge(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ge(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n(518),n(350),n(507),n(389),n(386),n(225);var de=function(e){o(h,e);var n,i,c,u,f,l=(u=h,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(u);if(f){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function h(t,e,n){var r;return(r=l.call(this,t,e))._murmurHash=n,r._isFirstPooling=!0,e.initialBucketing&&(r._bucketingContent=e.initialBucketing),r}return r(h,[{key:"finishLoop",value:function(t){if(200===t.status&&(this._bucketingContent=t.body),t.headers&&t.headers["last-modified"]){var e=t.headers["last-modified"];this._lastModified!==e&&this.config.onBucketingUpdated&&this.config.onBucketingUpdated(new Date(e)),this._lastModified=e}this._isFirstPooling&&(this._isFirstPooling=!1,this.updateFlagshipStatus(v.READY)),"function"==typeof this.config.onBucketingSuccess&&this.config.onBucketingSuccess({status:t.status,payload:this._bucketingContent}),this._isPooling=!1}},{key:"startPolling",value:function(){var t,e=this,n=1e3*(null!=(t=this.config.pollingInterval)?t:2);G(this.config,"Bucketing polling starts","startPolling"),this.polling(),0!==n&&(this._intervalID=setInterval((function(){e.polling()}),n))}},{key:"polling",value:(c=X(et().mark((function t(){var e,n,r,i;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._isPooling){t.next=2;break}return t.abrupt("return");case 2:return this._isPooling=!0,this._isFirstPooling&&this.updateFlagshipStatus(v.POLLING),t.prev=4,n=F("https://cdn.flagship.io/{0}/bucketing.json",this.config.envId),Y(e={},R,"".concat(this.config.apiKey)),Y(e,j,d.name),Y(e,P,m),Y(e,N,T),r=e,this._lastModified&&(r["if-modified-since"]=this._lastModified),t.next=10,this._httpClient.getAsync(n,{headers:r,timeout:this.config.timeout});case 10:i=t.sent,this.finishLoop(i),t.next=20;break;case 14:t.prev=14,t.t0=t.catch(4),this._isPooling=!1,V(this.config,t.t0,"startPolling"),this._isFirstPooling&&this.updateFlagshipStatus(v.NOT_INITIALIZED),"function"==typeof this.config.onBucketingFail&&this.config.onBucketingFail(new Error(t.t0));case 20:case"end":return t.stop()}}),t,this,[[4,14]])}))),function(){return c.apply(this,arguments)})},{key:"stopPolling",value:function(){clearInterval(this._intervalID),this._isPooling=!1,G(this.config,"Bucketing polling stopped","stopPolling")}},{key:"sendContext",value:(i=X(et().mark((function t(e){var n,r,i,o;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!(Object.keys(e.context).length<=3)){t.next=3;break}return t.abrupt("return");case 3:return r=F("https://decision.flagship.io/v2/{0}/events",this.config.envId),Y(n={},R,"".concat(this.config.apiKey)),Y(n,j,d.name),Y(n,P,m),Y(n,N,T),i=n,o={visitorId:e.visitorId,type:"CONTEXT",data:e.context},t.next=8,this._httpClient.postAsync(r,{headers:i,body:o,timeout:this.config.timeout});case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),V(this.config,t.t0.message||t.t0,"sendContext");case 13:case"end":return t.stop()}}),t,this,[[0,10]])}))),function(t){return i.apply(this,arguments)})},{key:"getCampaignsAsync",value:(n=X(et().mark((function t(e){var n,r=this;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._bucketingContent){t.next=2;break}return t.abrupt("return",[]);case 2:if(!this._bucketingContent.panic){t.next=5;break}return this.panic=!0,t.abrupt("return",[]);case 5:if(this.panic=!1,this._bucketingContent.campaigns){t.next=8;break}return t.abrupt("return",[]);case 8:return this.sendContext(e),n=[],this._bucketingContent.campaigns.forEach((function(t){var i=r.getVisitorCampaigns(t.variationGroups,t.id,t.type,e);i&&n.push(i)})),t.abrupt("return",n);case 12:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"getVisitorCampaigns",value:function(t,e,n,r){var i,o=ve(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(this.isMatchTargeting(a,r)){var s=this.getVariation(a,r);return s?{id:e,variation:s,variationGroupId:a.id,type:n}:null}}}catch(t){o.e(t)}finally{o.f()}return null}},{key:"getVariation",value:function(e,n){var r,i=this._murmurHash.murmurHash3Int32(e.id+n.visitorId)%100,o=0,a=ve(e.variations);try{var s=function(){var t,a,s=r.value,c=null==(t=n.visitorCache)||null==(a=t.data)?void 0:a.assignmentsHistory,u=c?c[e.id]:null;if(u){var f=e.variations.find((function(t){return t.id===u}));return f?{v:{id:f.id,modifications:f.modifications,reference:f.reference}}:"continue"}return void 0===s.allocation?"continue":(o+=s.allocation,i<=o?{v:{id:s.id,modifications:s.modifications,reference:s.reference}}:void 0)};for(a.s();!(r=a.n()).done;){var c=s();if("continue"!==c&&"object"===t(c))return c.v}}catch(t){a.e(t)}finally{a.f()}return null}},{key:"isMatchTargeting",value:function(t,e){var n=this;return!!(t&&t.targeting&&t.targeting.targetingGroups)&&t.targeting.targetingGroups.some((function(t){return n.checkAndTargeting(t.targetings,e)}))}},{key:"isANDListOperator",value:function(t){return["NOT_EQUALS","NOT_CONTAINS"].includes(t)}},{key:"checkAndTargeting",value:function(t,e){var n,r,i=!1,o=ve(t);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.key,c=a.value,u=a.operator;if("fs_all_users"!==s){if("fs_users"===s)n=e.visitorId;else{if(!(s in e.context)){i=!1;break}n=e.context[s]}if(!(i=this.testOperator(u,n,c)))break}else i=!0}}catch(t){o.e(t)}finally{o.f()}return i}},{key:"testListOperatorLoop",value:function(t,e,n,r){var i,o=r,a=ve(n);try{for(a.s();!(i=a.n()).done;){var s=i.value;if((o=this.testOperator(t,e,s))!==r)break}}catch(t){a.e(t)}finally{a.f()}return o}},{key:"testListOperator",value:function(t,e,n){return this.isANDListOperator(t)?this.testListOperatorLoop(t,e,n,!0):this.testListOperatorLoop(t,e,n,!1)}},{key:"testOperator",value:function(t,e,n){var r;if(Array.isArray(n))return this.testListOperator(t,e,n);switch(t){case"EQUALS":r=e===n;break;case"NOT_EQUALS":r=e!==n;break;case"CONTAINS":r=e.toString().includes(n.toString());break;case"NOT_CONTAINS":r=!e.toString().includes(n.toString());break;case"GREATER_THAN":r=e>n;break;case"LOWER_THAN":r=e<n;break;case"GREATER_THAN_OR_EQUALS":r=e>=n;break;case"LOWER_THAN_OR_EQUALS":r=e<=n;break;case"STARTS_WITH":r=e.toString().startsWith(n.toString());break;case"ENDS_WITH":r=e.toString().endsWith(n.toString());break;default:r=!1}return r}}]),h}(nt),ye=function(){function t(){}return r(t,[{key:"murmurHash3Int32",value:function(t){var e,n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=3&t.length,s=t.length-a;e=o;var c=3432918353,u=461845907;for(i=0;i<s;)r=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24,++i,e=27492+(65535&(n=5*(65535&(e=(e^=r=(65535&(r=(r=(65535&r)*c+(((r>>>16)*c&65535)<<16)&4294967295)<<15|r>>>17))*u+(((r>>>16)*u&65535)<<16)&4294967295)<<13|e>>>19))+((5*(e>>>16)&65535)<<16)&4294967295))+((58964+(n>>>16)&65535)<<16);switch(r=0,a){case 3:r^=(255&t.charCodeAt(i+2))<<16;case 2:r^=(255&t.charCodeAt(i+1))<<8;case 1:e^=r=(65535&(r=(r=(65535&(r^=255&t.charCodeAt(i)))*c+(((r>>>16)*c&65535)<<16)&4294967295)<<15|r>>>17))*u+(((r>>>16)*u&65535)<<16)&4294967295}return e^=t.length,e=2246822507*(65535&(e^=e>>>16))+((2246822507*(e>>>16)&65535)<<16)&4294967295,e=3266489909*(65535&(e^=e>>>13))+((3266489909*(e>>>16)&65535)<<16)&4294967295,(e^=e>>>16)>>>0}}]),t}();function me(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function be(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?me(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n(401);var ke=function(){function t(){}var e;return r(t,[{key:"getResponse",value:(e=X(et().mark((function t(e){var n,r,i,o;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.headers.get("Content-Type"),r="application/json"===n,t.next=4,e.text();case 4:if((i=t.sent)&&r&&(i=JSON.parse(i)),!(e.status>=400)){t.next=8;break}throw new Error(i||e.statusText);case 8:return o={},e.headers.forEach((function(t,e){o[e]=t})),t.abrupt("return",{status:e.status,body:i,headers:o});case 11:case"end":return t.stop()}}),t)}))),function(t){return e.apply(this,arguments)})},{key:"getAsync",value:function(t,e){var n=new H,r=setTimeout((function(){return n.abort()}),1e3*(null!=e&&e.timeout?e.timeout:2));return l(t,be(be({},f),{},{method:"GET",headers:null==e?void 0:e.headers,signal:n.signal,keepalive:!0})).then(this.getResponse).catch((function(t){throw t})).finally((function(){clearInterval(r)}))}},{key:"postAsync",value:function(t,e){var n=new H,r=setTimeout((function(){return n.abort()}),e.timeout?1e3*e.timeout:2e3);return l(t,be(be({},f),{},{method:"POST",headers:e.headers,body:JSON.stringify(e.body),signal:n.signal,keepalive:!0})).then(this.getResponse).catch((function(t){throw t})).finally((function(){clearInterval(r)}))}}]),t}(),xe="FS_DEFAULT_HIT_CACHE_",we=function(){function t(){}return r(t,[{key:"cacheHit",value:function(t,e){var n=localStorage.getItem(xe+t),r="";if(n){var i=n.slice(0,-1);r="".concat(i,",").concat(JSON.stringify(e),"]")}else r="[".concat(JSON.stringify(e),"]");return localStorage.setItem(xe+t,r),Promise.resolve()}},{key:"lookupHits",value:function(t){var e=localStorage.getItem(xe+t);return localStorage.removeItem(xe+t),Promise.resolve(e?JSON.parse(e):null)}},{key:"flushHits",value:function(t){return localStorage.removeItem(xe+t),Promise.resolve()}}]),t}(),Oe="FS_VISITOR_CACHE_",Ie=function(){function t(){}return r(t,[{key:"cacheVisitor",value:function(t,e){return localStorage.setItem(Oe+t,JSON.stringify(e)),Promise.resolve()}},{key:"lookupVisitor",value:function(t){var e=localStorage.getItem(Oe+t);return Promise.resolve(e?JSON.parse(e):null)}},{key:"flushVisitor",value:function(t){return localStorage.removeItem(Oe+t),Promise.resolve()}}]),t}(),Ee=function(){function e(){}return r(e,[{key:"configManager",get:function(){return this._configManger},set:function(t){this._configManger=t}},{key:"setStatus",value:function(t){var e=this.getConfig().statusChangedCallback;if(this.getConfig()&&e&&this._status!==t)return this._status=t,void e(t);this._status=t}},{key:"getStatus",value:function(){return this._status}},{key:"getConfig",value:function(){return this._config}},{key:"getVisitor",value:function(){return this._visitorInstance}},{key:"buildConfig",value:function(t){return t instanceof W?t:(null==t?void 0:t.decisionMode)===D.BUCKETING?new _t(t):new J(t)}},{key:"buildDecisionManager",value:function(t,e,n){var r,i=function(e){t.setStatus(e)};if(e.decisionMode===D.BUCKETING){var o=r=new de(n,e,new ye);r.statusChangedCallback(i),o.startPolling()}else(r=new rt(n,e)).statusChangedCallback(i);return r}},{key:"newVisitor",value:function(t,n){return e.newVisitor(t,n)}}],[{key:"getInstance",value:function(){return this._instance||(this._instance=new this),this._instance}},{key:"isReady",value:function(){var t,e,n,r,i,o=null==(t=this._instance)||null==(e=t.getConfig())?void 0:e.apiKey,a=null==(n=this._instance)||null==(r=n.getConfig())?void 0:r.envId,s=null==(i=this._instance)?void 0:i.configManager;return!!(this._instance&&o&&a&&s)}},{key:"getStatus",value:function(){return this.getInstance()._status}},{key:"getConfig",value:function(){return this.getInstance()._config}},{key:"getVisitor",value:function(){return this.getInstance().getVisitor()}},{key:"start",value:function(e,n,r){var i,o=this.getInstance();if((r=o.buildConfig(r)).envId=e,r.apiKey=n,o._config=r,o.setStatus(v.STARTING),r.logManager||(r.logManager=new xt),!e||!n)return o.setStatus(v.NOT_INITIALIZED),V(r,"Params 'envId' and 'apiKey' must not be null or empty.",I),null;var a=null==(i=o.configManager)?void 0:i.decisionManager;"object"===t(a)&&a instanceof de&&a.stopPolling();var s=new ke;a=o.buildDecisionManager(o,r,s);var c=new kt(s,r);return o.configManager?(o.configManager.config=r,o.configManager.decisionManager=a,o.configManager.trackingManager=c):o.configManager=new Q(r,a,c),!r.hitCacheImplementation&&U()&&(r.hitCacheImplementation=new we),!r.visitorCacheImplementation&&U()&&(r.visitorCacheImplementation=new Ie),this.isReady()?(o._status===v.STARTING&&o.setStatus(v.READY),G(r,F("Flagship SDK (version: {0}) READY",m),I),o):(o.setStatus(v.NOT_INITIALIZED),null)}},{key:"newVisitor",value:function(t,e){if(!this.isReady())return null;var n,r,i,o,a,s,c=!1,u=!0,f=!U();"string"==typeof t||null===t?(n=t||void 0,r=e||{}):(n=null==t?void 0:t.visitorId,r=(null==t?void 0:t.context)||{},c=!(null==t||!t.isAuthenticated),u=null==(a=null==t?void 0:t.hasConsented)||a,i=(null==t?void 0:t.initialFlagsData)||(null==t?void 0:t.initialModifications),o=null==t?void 0:t.initialCampaigns,f=null!=(s=null==t?void 0:t.isNewInstance)?s:f);var l=new pe({visitorId:n,context:r,isAuthenticated:c,hasConsented:u,configManager:this.getInstance().configManager,initialModifications:i,initialCampaigns:o,initialFlagsData:i}),h=new L(l);return this.getInstance()._visitorInstance=f?void 0:h,this.getConfig().fetchNow&&h.fetchFlags(),h}}]),e}();const _e=Ee})(),B})())},821:(t,e,n)=>{"use strict";n.d(e,{e:()=>p,X:()=>v});n(6992),n(1532),n(1539),n(8783),n(3948),n(4747),n(7941),n(2526),n(7327),n(5003),n(9337),n(1817),n(2165),n(7042),n(8309),n(1038);var r=n(6689),i=n.n(r),o=n(3547),a=n(4370);function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h={status:{isLoading:!0,isSdkReady:!1}},p=(0,r.createContext)({state:f({},h)}),v=function(t){var e=t.children,n=t.fetchNow,c=t.envId,u=t.apiKey,l=t.decisionMode,v=t.decisionApiUrl,g=t.timeout,d=t.logLevel,y=t.statusChangedCallback,m=t.logManager,b=t.pollingInterval,k=t.visitorData,x=t.onInitStart,w=t.onInitDone,O=t.onBucketingSuccess,I=t.onBucketingFail,E=t.loadingComponent,_=t.onBucketingUpdated,C=t.onUpdate,S=t.enableClientCache,A=t.initialBucketing,M=t.initialCampaigns,R=t.initialModifications,N=t.initialFlagsData,j=t.synchronizeOnBucketingUpdated,P=t.activateDeduplicationTime,T=t.hitDeduplicationTime,D=t.visitorCacheImplementation,L=t.hitCacheImplementation,F=t.disableCache,V=new Map;N&&N.forEach?N.forEach((function(t){V.set(t.key,t)})):R&&R.forEach?R.forEach((function(t){V.set(t.key,t)})):M&&(V=(0,a.B$)(M));var G=s((0,r.useState)(f(f({},h),{},{modifications:V})),2),H=G[0],B=G[1],U=s((0,r.useState)(),2),K=U[0],W=U[1];function Y(t){var e={isSdkReady:t.isSdkReady,isLoading:t.isLoading,isVisitorDefined:!!t.fsVisitor,lastRefresh:(new Date).toISOString()};return B((function(n){return n.status.firstInitSuccess||(e.firstInitSuccess=(new Date).toISOString()),f(f({},n),{},{visitor:t.fsVisitor,modifications:t.fsVisitor.modifications,config:o.Flagship.getConfig(),status:f(f({},n.status),e)})})),e}(0,r.useRef)().current=H,(0,a.N7)((function(){var t;j&&(null===(t=H.visitor)||void 0===t||t.fetchFlags())}),[K]),(0,a.N7)((function(){J(!0)}),[JSON.stringify(k)]),(0,r.useEffect)((function(){X()}),[c,u,l]);var z,$=function(t,e){if(e)(0,a.H)(o.Flagship.getConfig(),e.message||e,"onReady");else{var n=Y({fsVisitor:t,isSdkReady:!0,isLoading:!1});C&&C({fsModifications:t.modifications,config:o.Flagship.getConfig(),status:n})}},J=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(k){var e=o.Flagship.newVisitor({visitorId:k.id,context:k.context,isAuthenticated:k.isAuthenticated,hasConsented:k.hasConsented,initialCampaigns:M,initialModifications:R,initialFlagsData:N});null==e||e.on("ready",(function(t){$(e,t)})),n||!e||t||Y({fsVisitor:e,isSdkReady:!0,isLoading:!1}),t&&!n&&(null==e||e.fetchFlags())}},Q=function(t){y&&y(t),t===o.FlagshipStatus.STARTING&&x?x():t!==o.FlagshipStatus.READY_PANIC_ON&&t!==o.FlagshipStatus.READY||(w&&w(),J())},q=function(t){_&&_(t),W(t)},X=function(){o.Flagship.start(c,u,{decisionMode:l,fetchNow:n,timeout:g,logLevel:d,statusChangedCallback:Q,logManager:m,pollingInterval:b,onBucketingFail:I,onBucketingSuccess:O,enableClientCache:S,decisionApiUrl:v,onBucketingUpdated:q,initialBucketing:A,activateDeduplicationTime:P,hitDeduplicationTime:T,visitorCacheImplementation:D,hitCacheImplementation:L,disableCache:F,language:1})};return i().createElement(p.Provider,{value:{state:H,setState:B}},(z=!H.visitor,H.status.isLoading&&E&&z&&n?i().createElement(i().Fragment,null,E):i().createElement(i().Fragment,null,e)))};v.defaultProps={activateDeduplicationTime:2,hitDeduplicationTime:2,fetchNow:!0}},4927:(t,e,n)=>{"use strict";n.d(e,{UM:()=>S,pc:()=>C,Nf:()=>_,nr:()=>w,_X:()=>I,GW:()=>x});n(5666),n(4747),n(1539),n(8674),n(1038),n(8783),n(2526),n(1817),n(2165),n(6992),n(3948),n(7042),n(8309),n(7941),n(7327),n(5003),n(9337);var r=n(6689),i=n(821),o=n(4370),a=n(3547),s="flagship Visitor not initialized.",c="fsVisitor not initialized, returns default value";function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var f=function(){function t(e){var n,r,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i=void 0,(r="_defaultValue")in(n=this)?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,(0,o.cM)(a.LogLevel.WARNING,s,"GetFlag"),this._defaultValue=e}var e,n,r;return e=t,(n=[{key:"getValue",value:function(){return(0,o.cM)(a.LogLevel.WARNING,s,"getValue"),this._defaultValue}},{key:"exists",value:function(){return(0,o.cM)(a.LogLevel.WARNING,s,"exists"),!1}},{key:"userExposed",value:function(){return(0,o.cM)(a.LogLevel.WARNING,s,"userExposed"),Promise.resolve()}},{key:"metadata",get:function(){return(0,o.cM)(a.LogLevel.WARNING,s,"metadata"),new a.FlagMetadata({campaignId:"",campaignType:"",isReference:!1,variationGroupId:"",variationId:""})}}])&&u(e.prototype,n),r&&u(e,r),t}();function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function d(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function y(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){d(o,r,i,a,s,"next",t)}function s(t){d(o,r,i,a,s,"throw",t)}a(void 0)}))}}function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}var b=function(t,e){return"object"===m(t)&&"object"===m(e)&&Array.isArray(t)===Array.isArray(e)||m(t)===m(e)},k=function(t){var e=t.visitor,n=t.params,r=t.activateAll,i=t.state,a=t.functionName,s=t.config;if(e)return e.getModificationsSync(n,r);var u=!i.status.isSdkReady&&!!i.modifications&&i.modifications.size>0,f={};return u?(n.forEach((function(t){var e,n=null===(e=i.modifications)||void 0===e?void 0:e.get(t.key);n&&b(null==n?void 0:n.value,t.defaultValue)?f[t.key]=n.value:f[t.key]=t.defaultValue})),f):((0,o.yN)(s,c,a),n.forEach((function(t){f[t.key]=t.defaultValue})),f)},x=function(t,e){var n=(0,r.useContext)(i.e).state,o=n.visitor,a=n.config;return k({functionName:"useFsModifications",state:n,visitor:o,config:a,params:t,activateAll:e})},w=function(t){var e,n=(0,r.useContext)(i.e).state,a=n.visitor,s=n.config;if(a)return a.getModificationSync(t);var u=null===(e=n.modifications)||void 0===e?void 0:e.get(t.key);return!n.status.isSdkReady&&u&&b(null==u?void 0:u.value,t.defaultValue)?u.value:((0,o.yN)(s,c,"useFsModifications"),t.defaultValue)},O=function(t){var e,n=t.key,r=t.visitor,i=t.state;if(r)return r.getModificationInfoSync(n);var o=null===(e=i.modifications)||void 0===e?void 0:e.get(n);return!i.status.isSdkReady&&o?o:null},I=function(t){var e=(0,r.useContext)(i.e).state,n=e.visitor;return O({key:t,state:e,visitor:n})},E=function(){var t=y(regeneratorRuntime.mark((function t(e,n,r,i){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r){t.next=4;break}return(0,o.yN)(i,s,n),t.abrupt("return");case 4:return t.next=6,r.activateModifications(e);case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),(0,o.yN)(i,t.t0.message||t.t0,n);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e,n,r,i){return t.apply(this,arguments)}}(),_=function(t,e){var n=(0,r.useContext)(i.e).state.visitor;return n?n.getFlag(t,e):new f(e)},C=function(){var t=y(regeneratorRuntime.mark((function t(e){var n,o,a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,r.useContext)(i.e),o=n.state,a=o.visitor,s=o.config,"useFsModifications",t.next=5,E(e,"useFsModifications",a,s);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),S=function(){var t=(0,r.useContext)(i.e).state,e=t.visitor,n=t.config,a=null==e?void 0:e.getModificationsArray();!t.status.isSdkReady&&t.modifications&&(a=Array.from(t.modifications,(function(t){var e=v(t,2);e[0];return e[1]})));var c=function(){var t=y(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"activateModification",t.next=3,E(r,"activateModification",e,n);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),u=function(){var t=y(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return(0,o.yN)(n,s,"synchronizeModifications"),t.abrupt("return");case 3:return t.next=5,e.synchronizeModifications();case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return{visitorId:null==e?void 0:e.visitorId,anonymousId:null==e?void 0:e.anonymousId,context:h({},null==e?void 0:e.context),hasConsented:null==e?void 0:e.hasConsented,setConsent:function(t){e?e.setConsent(t):(0,o.yN)(n,s,"setConsent")},updateContext:function(t){e?(e.clearContext(),e.updateContext(t)):(0,o.H)(n,s,"updateContext")},clearContext:function(){e?e.clearContext():(0,o.H)(n,s,"cleanContext")},authenticate:function(t){e?e.authenticate(t):(0,o.H)(n,s,"authenticate")},unauthenticate:function(){e?e.unauthenticate():(0,o.H)(n,s,"unauthenticate")},status:t.status,activateModification:c,synchronizeModifications:u,getModifications:function(r,i){return k({functionName:"getModifications",state:t,visitor:e,config:n,params:r,activateAll:i})},modifications:a||[],FlagsData:(null==e?void 0:e.getFlagsDataArray())||[],getModificationInfo:function(n){return O({key:n,state:t,visitor:e})},hit:{send:function(t){return e?e.sendHit(t):((0,o.H)(n,s,"sendHit"),Promise.resolve())},sendMultiple:function(t){return e?e.sendHits(t):((0,o.H)(n,s,"sendHits"),Promise.resolve())}},getFlag:function(t,n){return e?e.getFlag(t,n):new f(n)},fetchFlags:function(){return e?e.fetchFlags():((0,o.yN)(n,s,"fetchFlags"),Promise.resolve())}}}},4370:(t,e,n)=>{"use strict";n.d(e,{H:()=>o,yN:()=>a,cM:()=>s,B$:()=>c,N7:()=>u});n(1539),n(9714),n(2222),n(6992),n(1532),n(8783),n(3948),n(4747),n(4916),n(5306);var r=n(3547),i=n(6689);function o(t,e,n){t&&t.logManager&&"function"==typeof t.logManager.error&&t.logLevel&&!(t.logLevel<r.LogLevel.ERROR)&&t.logManager.error(e,n)}function a(t,e,n){t&&t.logManager&&"function"==typeof t.logManager.warning&&t.logLevel&&!(t.logLevel<r.LogLevel.WARNING)&&t.logManager.warning(e,n)}function s(t,e,n){var i=new Date,o=function(t){return 1===t.toString().length?"0".concat(t):t},a="[".concat(o(i.getFullYear()),"-").concat(o(i.getMonth()),"-").concat(o(i.getDay())," ").concat(o(i.getHours()),":").concat(o(i.getMinutes()),"] [Flagship SDK] [").concat(r.LogLevel[t],"] [").concat(n,"] : ").concat(e);console.log(a)}var c=function(t){var e=new Map;return t&&Array.isArray(t)?(t.forEach((function(t){var n=t.variation.modifications.value;for(var r in n){var i=n[r];e.set(r,{key:r,campaignId:t.id,variationGroupId:t.variationGroupId,variationId:t.variation.id,isReference:t.variation.reference,value:i})}})),e):e};function u(t,e){var n=(0,i.useRef)(!0);(0,i.useEffect)((function(){if(!n.current)return"function"==typeof t?t():void 0;n.current=!1}),e)}},9662:(t,e,n)=>{var r=n(614),i=n(6330);t.exports=function(t){if(r(t))return t;throw TypeError(i(t)+" is not a function")}},9483:(t,e,n)=>{var r=n(4411),i=n(6330);t.exports=function(t){if(r(t))return t;throw TypeError(i(t)+" is not a constructor")}},6077:(t,e,n)=>{var r=n(614);t.exports=function(t){if("object"==typeof t||r(t))return t;throw TypeError("Can't set "+String(t)+" as a prototype")}},1223:(t,e,n)=>{var r=n(5112),i=n(30),o=n(3070),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},1530:(t,e,n)=>{"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},5787:t=>{t.exports=function(t,e,n){if(t instanceof e)return t;throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}},9670:(t,e,n)=>{var r=n(111);t.exports=function(t){if(r(t))return t;throw TypeError(String(t)+" is not an object")}},8533:(t,e,n)=>{"use strict";var r=n(2092).forEach,i=n(9341)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},8457:(t,e,n)=>{"use strict";var r=n(9974),i=n(7908),o=n(3411),a=n(7659),s=n(4411),c=n(7466),u=n(6135),f=n(8554),l=n(1246);t.exports=function(t){var e=i(t),n=s(this),h=arguments.length,p=h>1?arguments[1]:void 0,v=void 0!==p;v&&(p=r(p,h>2?arguments[2]:void 0,2));var g,d,y,m,b,k,x=l(e),w=0;if(!x||this==Array&&a(x))for(g=c(e.length),d=n?new this(g):Array(g);g>w;w++)k=v?p(e[w],w):e[w],u(d,w,k);else for(b=(m=f(e,x)).next,d=n?new this:[];!(y=b.call(m)).done;w++)k=v?o(m,p,[y.value,w],!0):y.value,u(d,w,k);return d.length=w,d}},1318:(t,e,n)=>{var r=n(5656),i=n(7466),o=n(1400),a=function(t){return function(e,n,a){var s,c=r(e),u=i(c.length),f=o(a,u);if(t&&n!=n){for(;u>f;)if((s=c[f++])!=s)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2092:(t,e,n)=>{var r=n(9974),i=n(8361),o=n(7908),a=n(7466),s=n(5417),c=[].push,u=function(t){var e=1==t,n=2==t,u=3==t,f=4==t,l=6==t,h=7==t,p=5==t||l;return function(v,g,d,y){for(var m,b,k=o(v),x=i(k),w=r(g,d,3),O=a(x.length),I=0,E=y||s,_=e?E(v,O):n||h?E(v,0):void 0;O>I;I++)if((p||I in x)&&(b=w(m=x[I],I,k),t))if(e)_[I]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return I;case 2:c.call(_,m)}else switch(t){case 4:return!1;case 7:c.call(_,m)}return l?-1:u||f?f:_}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},1194:(t,e,n)=>{var r=n(7293),i=n(5112),o=n(7392),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:(t,e,n)=>{"use strict";var r=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},7475:(t,e,n)=>{var r=n(3157),i=n(4411),o=n(111),a=n(5112)("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,(i(e)&&(e===Array||r(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?Array:e}},5417:(t,e,n)=>{var r=n(7475);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},3411:(t,e,n)=>{var r=n(9670),i=n(9212);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},7072:(t,e,n)=>{var r=n(5112)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},4326:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},648:(t,e,n)=>{var r=n(1694),i=n(614),o=n(4326),a=n(5112)("toStringTag"),s="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),a))?n:s?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},5631:(t,e,n)=>{"use strict";var r=n(3070).f,i=n(30),o=n(2248),a=n(9974),s=n(5787),c=n(408),u=n(654),f=n(6340),l=n(9781),h=n(2423).fastKey,p=n(9909),v=p.set,g=p.getterFor;t.exports={getConstructor:function(t,e,n,u){var f=t((function(t,r){s(t,f,e),v(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&c(r,t[u],{that:t,AS_ENTRIES:n})})),p=g(e),d=function(t,e,n){var r,i,o=p(t),a=y(t,e);return a?a.value=n:(o.last=a={index:i=h(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),l?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},y=function(t,e){var n,r=p(t),i=h(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return o(f.prototype,{clear:function(){for(var t=p(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=this,n=p(e),r=y(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),l?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=p(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!y(this,t)}}),o(f.prototype,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return d(this,0===t?0:t,e)}}:{add:function(t){return d(this,t=0===t?0:t,t)}}),l&&r(f.prototype,"size",{get:function(){return p(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",i=g(e),o=g(r);u(t,e,(function(t,e){v(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),f(e)}}},7710:(t,e,n)=>{"use strict";var r=n(2109),i=n(7854),o=n(4705),a=n(1320),s=n(2423),c=n(408),u=n(5787),f=n(614),l=n(111),h=n(7293),p=n(7072),v=n(8003),g=n(9587);t.exports=function(t,e,n){var d=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),m=d?"set":"add",b=i[t],k=b&&b.prototype,x=b,w={},O=function(t){var e=k[t];a(k,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!l(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(o(t,!f(b)||!(y||k.forEach&&!h((function(){(new b).entries().next()})))))x=n.getConstructor(e,t,d,m),s.enable();else if(o(t,!0)){var I=new x,E=I[m](y?{}:-0,1)!=I,_=h((function(){I.has(1)})),C=p((function(t){new b(t)})),S=!y&&h((function(){for(var t=new b,e=5;e--;)t[m](e,e);return!t.has(-0)}));C||((x=e((function(e,n){u(e,x,t);var r=g(new b,e,x);return null!=n&&c(n,r[m],{that:r,AS_ENTRIES:d}),r}))).prototype=k,k.constructor=x),(_||S)&&(O("delete"),O("has"),d&&O("get")),(S||E)&&O(m),y&&k.clear&&delete k.clear}return w[t]=x,r({global:!0,forced:x!=b},w),v(x,t),y||n.setStrong(x,t,d),x}},9920:(t,e,n)=>{var r=n(6656),i=n(3887),o=n(1236),a=n(3070);t.exports=function(t,e){for(var n=i(e),s=a.f,c=o.f,u=0;u<n.length;u++){var f=n[u];r(t,f)||s(t,f,c(e,f))}}},4964:(t,e,n)=>{var r=n(5112)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},8544:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4994:(t,e,n)=>{"use strict";var r=n(3383).IteratorPrototype,i=n(30),o=n(9114),a=n(8003),s=n(7497),c=function(){return this};t.exports=function(t,e,n){var u=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,u,!1,!0),s[u]=c,t}},8880:(t,e,n)=>{var r=n(9781),i=n(3070),o=n(9114);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9114:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:(t,e,n)=>{"use strict";var r=n(4948),i=n(3070),o=n(9114);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},654:(t,e,n)=>{"use strict";var r=n(2109),i=n(1913),o=n(6530),a=n(614),s=n(4994),c=n(9518),u=n(7674),f=n(8003),l=n(8880),h=n(1320),p=n(5112),v=n(7497),g=n(3383),d=o.PROPER,y=o.CONFIGURABLE,m=g.IteratorPrototype,b=g.BUGGY_SAFARI_ITERATORS,k=p("iterator"),x="keys",w="values",O="entries",I=function(){return this};t.exports=function(t,e,n,o,p,g,E){s(n,e,o);var _,C,S,A=function(t){if(t===p&&P)return P;if(!b&&t in N)return N[t];switch(t){case x:case w:case O:return function(){return new n(this,t)}}return function(){return new n(this)}},M=e+" Iterator",R=!1,N=t.prototype,j=N[k]||N["@@iterator"]||p&&N[p],P=!b&&j||A(p),T="Array"==e&&N.entries||j;if(T&&(_=c(T.call(new t)))!==Object.prototype&&_.next&&(i||c(_)===m||(u?u(_,m):a(_[k])||h(_,k,I)),f(_,M,!0,!0),i&&(v[M]=I)),d&&p==w&&j&&j.name!==w&&(!i&&y?l(N,"name",w):(R=!0,P=function(){return j.call(this)})),p)if(C={values:A(w),keys:g?P:A(x),entries:A(O)},E)for(S in C)(b||R||!(S in N))&&h(N,S,C[S]);else r({target:e,proto:!0,forced:b||R},C);return i&&!E||N[k]===P||h(N,k,P,{name:p}),v[e]=P,C}},7235:(t,e,n)=>{var r=n(857),i=n(6656),o=n(6061),a=n(3070).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},9781:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(t,e,n)=>{var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},8324:t=>{t.exports={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}},8509:(t,e,n)=>{var r=n(317)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},7871:t=>{t.exports="object"==typeof window},1528:(t,e,n)=>{var r=n(8113),i=n(7854);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},6833:(t,e,n)=>{var r=n(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:(t,e,n)=>{var r=n(4326),i=n(7854);t.exports="process"==r(i.process)},1036:(t,e,n)=>{var r=n(8113);t.exports=/web0s(?!.*chrome)/i.test(r)},8113:(t,e,n)=>{var r=n(5005);t.exports=r("navigator","userAgent")||""},7392:(t,e,n)=>{var r,i,o=n(7854),a=n(8113),s=o.process,c=o.Deno,u=s&&s.versions||c&&c.version,f=u&&u.v8;f?i=(r=f.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),t.exports=i&&+i},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,e,n)=>{var r=n(7854),i=n(1236).f,o=n(8880),a=n(1320),s=n(3505),c=n(9920),u=n(4705);t.exports=function(t,e){var n,f,l,h,p,v=t.target,g=t.global,d=t.stat;if(n=g?r:d?r[v]||s(v,{}):(r[v]||{}).prototype)for(f in e){if(h=e[f],l=t.noTargetGet?(p=i(n,f))&&p.value:n[f],!u(g?f:v+(d?".":"#")+f,t.forced)&&void 0!==l){if(typeof h==typeof l)continue;c(h,l)}(t.sham||l&&l.sham)&&o(h,"sham",!0),a(n,f,h,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:(t,e,n)=>{"use strict";n(4916);var r=n(1320),i=n(2261),o=n(7293),a=n(5112),s=n(8880),c=a("species"),u=RegExp.prototype;t.exports=function(t,e,n,f){var l=a(t),h=!o((function(){var e={};return e[l]=function(){return 7},7!=""[t](e)})),p=h&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[l]=/./[l]),n.exec=function(){return e=!0,null},n[l](""),!e}));if(!h||!p||n){var v=/./[l],g=e(l,""[t],(function(t,e,n,r,o){var a=e.exec;return a===i||a===u.exec?h&&!o?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}));r(String.prototype,t,g[0]),r(u,l,g[1])}f&&s(u[l],"sham",!0)}},6677:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},9974:(t,e,n)=>{var r=n(9662);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},7065:(t,e,n)=>{"use strict";var r=n(9662),i=n(111),o=[].slice,a={},s=function(t,e,n){if(!(e in a)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";a[e]=Function("C,a","return new C("+r.join(",")+")")}return a[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=o.call(arguments,1),a=function(){var r=n.concat(o.call(arguments));return this instanceof a?s(e,r.length,r):e.apply(t,r)};return i(e.prototype)&&(a.prototype=e.prototype),a}},6530:(t,e,n)=>{var r=n(9781),i=n(6656),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},5005:(t,e,n)=>{var r=n(7854),i=n(614),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},1246:(t,e,n)=>{var r=n(648),i=n(8173),o=n(7497),a=n(5112)("iterator");t.exports=function(t){if(null!=t)return i(t,a)||i(t,"@@iterator")||o[r(t)]}},8554:(t,e,n)=>{var r=n(9662),i=n(9670),o=n(1246);t.exports=function(t,e){var n=arguments.length<2?o(t):e;if(r(n))return i(n.call(t));throw TypeError(String(t)+" is not iterable")}},8173:(t,e,n)=>{var r=n(9662);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},647:(t,e,n)=>{var r=n(7908),i=Math.floor,o="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,c,u,f){var l=n+t.length,h=c.length,p=s;return void 0!==u&&(u=r(u),p=a),o.call(f,p,(function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":a=u[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>h){var f=i(s/10);return 0===f?r:f<=h?void 0===c[f-1]?o.charAt(1):c[f-1]+o.charAt(1):r}a=c[s-1]}return void 0===a?"":a}))}},7854:(t,e,n)=>{var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},6656:(t,e,n)=>{var r=n(7908),i={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return i.call(r(t),e)}},3501:t=>{t.exports={}},842:(t,e,n)=>{var r=n(7854);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},490:(t,e,n)=>{var r=n(5005);t.exports=r("document","documentElement")},4664:(t,e,n)=>{var r=n(9781),i=n(7293),o=n(317);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:(t,e,n)=>{var r=n(7293),i=n(4326),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},9587:(t,e,n)=>{var r=n(614),i=n(111),o=n(7674);t.exports=function(t,e,n){var a,s;return o&&r(a=e.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},2788:(t,e,n)=>{var r=n(614),i=n(5465),o=Function.toString;r(i.inspectSource)||(i.inspectSource=function(t){return o.call(t)}),t.exports=i.inspectSource},2423:(t,e,n)=>{var r=n(2109),i=n(3501),o=n(111),a=n(6656),s=n(3070).f,c=n(8006),u=n(1156),f=n(9711),l=n(6677),h=!1,p=f("meta"),v=0,g=Object.isExtensible||function(){return!0},d=function(t){s(t,p,{value:{objectID:"O"+v++,weakData:{}}})},y=t.exports={enable:function(){y.enable=function(){},h=!0;var t=c.f,e=[].splice,n={};n[p]=1,t(n).length&&(c.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===p){e.call(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,p)){if(!g(t))return"F";if(!e)return"E";d(t)}return t[p].objectID},getWeakData:function(t,e){if(!a(t,p)){if(!g(t))return!0;if(!e)return!1;d(t)}return t[p].weakData},onFreeze:function(t){return l&&h&&g(t)&&!a(t,p)&&d(t),t}};i[p]=!0},9909:(t,e,n)=>{var r,i,o,a=n(8536),s=n(7854),c=n(111),u=n(8880),f=n(6656),l=n(5465),h=n(6200),p=n(3501),v="Object already initialized",g=s.WeakMap;if(a||l.state){var d=l.state||(l.state=new g),y=d.get,m=d.has,b=d.set;r=function(t,e){if(m.call(d,t))throw new TypeError(v);return e.facade=t,b.call(d,t,e),e},i=function(t){return y.call(d,t)||{}},o=function(t){return m.call(d,t)}}else{var k=h("state");p[k]=!0,r=function(t,e){if(f(t,k))throw new TypeError(v);return e.facade=t,u(t,k,e),e},i=function(t){return f(t,k)?t[k]:{}},o=function(t){return f(t,k)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},7659:(t,e,n)=>{var r=n(5112),i=n(7497),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},3157:(t,e,n)=>{var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},614:t=>{t.exports=function(t){return"function"==typeof t}},4411:(t,e,n)=>{var r=n(7293),i=n(614),o=n(648),a=n(5005),s=n(2788),c=[],u=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,l=f.exec,h=!f.exec((function(){})),p=function(t){if(!i(t))return!1;try{return u(Object,c,t),!0}catch(t){return!1}};t.exports=!u||r((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h||!!l.call(f,s(t))}:p},4705:(t,e,n)=>{var r=n(7293),i=n(614),o=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n==f||n!=u&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},8730:(t,e,n)=>{var r=n(111),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},111:(t,e,n)=>{var r=n(614);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},1913:t=>{t.exports=!1},7850:(t,e,n)=>{var r=n(111),i=n(4326),o=n(5112)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},2190:(t,e,n)=>{var r=n(614),i=n(5005),o=n(3307);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&Object(t)instanceof e}},408:(t,e,n)=>{var r=n(9670),i=n(7659),o=n(7466),a=n(9974),s=n(8554),c=n(1246),u=n(9212),f=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var l,h,p,v,g,d,y,m=n&&n.that,b=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_ITERATOR),x=!(!n||!n.INTERRUPTED),w=a(e,m,1+b+x),O=function(t){return l&&u(l,"normal",t),new f(!0,t)},I=function(t){return b?(r(t),x?w(t[0],t[1],O):w(t[0],t[1])):x?w(t,O):w(t)};if(k)l=t;else{if(!(h=c(t)))throw TypeError(String(t)+" is not iterable");if(i(h)){for(p=0,v=o(t.length);v>p;p++)if((g=I(t[p]))&&g instanceof f)return g;return new f(!1)}l=s(t,h)}for(d=l.next;!(y=d.call(l)).done;){try{g=I(y.value)}catch(t){u(l,"throw",t)}if("object"==typeof g&&g&&g instanceof f)return g}return new f(!1)}},9212:(t,e,n)=>{var r=n(9670),i=n(8173);t.exports=function(t,e,n){var o,a;r(t);try{if(!(o=i(t,"return"))){if("throw"===e)throw n;return n}o=o.call(t)}catch(t){a=!0,o=t}if("throw"===e)throw n;if(a)throw o;return r(o),n}},3383:(t,e,n)=>{"use strict";var r,i,o,a=n(7293),s=n(614),c=n(30),u=n(9518),f=n(1320),l=n(5112),h=n(1913),p=l("iterator"),v=!1;[].keys&&("next"in(o=[].keys())?(i=u(u(o)))!==Object.prototype&&(r=i):v=!0),null==r||a((function(){var t={};return r[p].call(t)!==t}))?r={}:h&&(r=c(r)),s(r[p])||f(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},7497:t=>{t.exports={}},5948:(t,e,n)=>{var r,i,o,a,s,c,u,f,l=n(7854),h=n(1236).f,p=n(261).set,v=n(6833),g=n(1528),d=n(1036),y=n(5268),m=l.MutationObserver||l.WebKitMutationObserver,b=l.document,k=l.process,x=l.Promise,w=h(l,"queueMicrotask"),O=w&&w.value;O||(r=function(){var t,e;for(y&&(t=k.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},v||y||d||!m||!b?!g&&x&&x.resolve?((u=x.resolve(void 0)).constructor=x,f=u.then,a=function(){f.call(u,r)}):a=y?function(){k.nextTick(r)}:function(){p.call(l,r)}:(s=!0,c=b.createTextNode(""),new m(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),t.exports=O||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},3366:(t,e,n)=>{var r=n(7854);t.exports=r.Promise},133:(t,e,n)=>{var r=n(7392),i=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:(t,e,n)=>{var r=n(7854),i=n(614),o=n(2788),a=r.WeakMap;t.exports=i(a)&&/native code/.test(o(a))},8523:(t,e,n)=>{"use strict";var r=n(9662),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},3929:(t,e,n)=>{var r=n(7850);t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},30:(t,e,n)=>{var r,i=n(9670),o=n(6048),a=n(748),s=n(3501),c=n(490),u=n(317),f=n(6200),l=f("IE_PROTO"),h=function(){},p=function(t){return"<script>"+t+"</"+"script>"},v=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;g="undefined"!=typeof document?document.domain&&r?v(r):((e=u("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):v(r);for(var n=a.length;n--;)delete g.prototype[a[n]];return g()};s[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h.prototype=i(t),n=new h,h.prototype=null,n[l]=t):n=g(),void 0===e?n:o(n,e)}},6048:(t,e,n)=>{var r=n(9781),i=n(3070),o=n(9670),a=n(1956);t.exports=r?Object.defineProperties:function(t,e){o(t);for(var n,r=a(e),s=r.length,c=0;s>c;)i.f(t,n=r[c++],e[n]);return t}},3070:(t,e,n)=>{var r=n(9781),i=n(4664),o=n(9670),a=n(4948),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e),o(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:(t,e,n)=>{var r=n(9781),i=n(5296),o=n(9114),a=n(5656),s=n(4948),c=n(6656),u=n(4664),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=s(e),u)try{return f(t,e)}catch(t){}if(c(t,e))return o(!i.f.call(t,e),t[e])}},1156:(t,e,n)=>{var r=n(5656),i=n(8006).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(r(t))}},8006:(t,e,n)=>{var r=n(6324),i=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:(t,e)=>{e.f=Object.getOwnPropertySymbols},9518:(t,e,n)=>{var r=n(6656),i=n(614),o=n(7908),a=n(6200),s=n(8544),c=a("IE_PROTO"),u=Object.prototype;t.exports=s?Object.getPrototypeOf:function(t){var e=o(t);if(r(e,c))return e[c];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof Object?u:null}},6324:(t,e,n)=>{var r=n(6656),i=n(5656),o=n(1318).indexOf,a=n(3501);t.exports=function(t,e){var n,s=i(t),c=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~o(u,n)||u.push(n));return u}},1956:(t,e,n)=>{var r=n(6324),i=n(748);t.exports=Object.keys||function(t){return r(t,i)}},5296:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:(t,e,n)=>{var r=n(9670),i=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},4699:(t,e,n)=>{var r=n(9781),i=n(1956),o=n(5656),a=n(5296).f,s=function(t){return function(e){for(var n,s=o(e),c=i(s),u=c.length,f=0,l=[];u>f;)n=c[f++],r&&!a.call(s,n)||l.push(t?[n,s[n]]:s[n]);return l}};t.exports={entries:s(!0),values:s(!1)}},288:(t,e,n)=>{"use strict";var r=n(1694),i=n(648);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},2140:(t,e,n)=>{var r=n(614),i=n(111);t.exports=function(t,e){var n,o;if("string"===e&&r(n=t.toString)&&!i(o=n.call(t)))return o;if(r(n=t.valueOf)&&!i(o=n.call(t)))return o;if("string"!==e&&r(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},3887:(t,e,n)=>{var r=n(5005),i=n(8006),o=n(5181),a=n(9670);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},857:(t,e,n)=>{var r=n(7854);t.exports=r},2534:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9478:(t,e,n)=>{var r=n(9670),i=n(111),o=n(8523);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},2248:(t,e,n)=>{var r=n(1320);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},1320:(t,e,n)=>{var r=n(7854),i=n(614),o=n(6656),a=n(8880),s=n(3505),c=n(2788),u=n(9909),f=n(6530).CONFIGURABLE,l=u.get,h=u.enforce,p=String(String).split("String");(t.exports=function(t,e,n,c){var u,l=!!c&&!!c.unsafe,v=!!c&&!!c.enumerable,g=!!c&&!!c.noTargetGet,d=c&&void 0!==c.name?c.name:e;i(n)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(n,"name")||f&&n.name!==d)&&a(n,"name",d),(u=h(n)).source||(u.source=p.join("string"==typeof d?d:""))),t!==r?(l?!g&&t[e]&&(v=!0):delete t[e],v?t[e]=n:a(t,e,n)):v?t[e]=n:s(e,n)})(Function.prototype,"toString",(function(){return i(this)&&l(this).source||c(this)}))},7651:(t,e,n)=>{var r=n(9670),i=n(614),o=n(4326),a=n(2261);t.exports=function(t,e){var n=t.exec;if(i(n)){var s=n.call(t,e);return null!==s&&r(s),s}if("RegExp"===o(t))return a.call(t,e);throw TypeError("RegExp#exec called on incompatible receiver")}},2261:(t,e,n)=>{"use strict";var r,i,o=n(1340),a=n(7066),s=n(2999),c=n(2309),u=n(30),f=n(9909).get,l=n(9441),h=n(7168),p=RegExp.prototype.exec,v=c("native-string-replace",String.prototype.replace),g=p,d=(r=/a/,i=/b*/g,p.call(r,"a"),p.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),y=s.UNSUPPORTED_Y||s.BROKEN_CARET,m=void 0!==/()??/.exec("")[1];(d||m||y||l||h)&&(g=function(t){var e,n,r,i,s,c,l,h=this,b=f(h),k=o(t),x=b.raw;if(x)return x.lastIndex=h.lastIndex,e=g.call(x,k),h.lastIndex=x.lastIndex,e;var w=b.groups,O=y&&h.sticky,I=a.call(h),E=h.source,_=0,C=k;if(O&&(-1===(I=I.replace("y","")).indexOf("g")&&(I+="g"),C=k.slice(h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==k.charAt(h.lastIndex-1))&&(E="(?: "+E+")",C=" "+C,_++),n=new RegExp("^(?:"+E+")",I)),m&&(n=new RegExp("^"+E+"$(?!\\s)",I)),d&&(r=h.lastIndex),i=p.call(O?n:h,C),O?i?(i.input=i.input.slice(_),i[0]=i[0].slice(_),i.index=h.lastIndex,h.lastIndex+=i[0].length):h.lastIndex=0:d&&i&&(h.lastIndex=h.global?i.index+i[0].length:r),m&&i&&i.length>1&&v.call(i[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i&&w)for(i.groups=c=u(null),s=0;s<w.length;s++)c[(l=w[s])[0]]=i[l[1]];return i}),t.exports=g},7066:(t,e,n)=>{"use strict";var r=n(9670);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},2999:(t,e,n)=>{var r=n(7293),i=n(7854).RegExp;e.UNSUPPORTED_Y=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},9441:(t,e,n)=>{var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:(t,e,n)=>{var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:(t,e,n)=>{var r=n(7854);t.exports=function(t,e){try{Object.defineProperty(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},6340:(t,e,n)=>{"use strict";var r=n(5005),i=n(3070),o=n(5112),a=n(9781),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},8003:(t,e,n)=>{var r=n(3070).f,i=n(6656),o=n(5112)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},6200:(t,e,n)=>{var r=n(2309),i=n(9711),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:(t,e,n)=>{var r=n(7854),i=n(3505),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},2309:(t,e,n)=>{var r=n(1913),i=n(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:(t,e,n)=>{var r=n(9670),i=n(9483),o=n(5112)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[o])?e:i(n)}},8710:(t,e,n)=>{var r=n(9958),i=n(1340),o=n(4488),a=function(t){return function(e,n){var a,s,c=i(o(e)),u=r(n),f=c.length;return u<0||u>=f?t?"":void 0:(a=c.charCodeAt(u))<55296||a>56319||u+1===f||(s=c.charCodeAt(u+1))<56320||s>57343?t?c.charAt(u):a:t?c.slice(u,u+2):s-56320+(a-55296<<10)+65536}};t.exports={codeAt:a(!1),charAt:a(!0)}},3111:(t,e,n)=>{var r=n(4488),i=n(1340),o="["+n(1361)+"]",a=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),c=function(t){return function(e){var n=i(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(s,"")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}},261:(t,e,n)=>{var r,i,o,a,s=n(7854),c=n(614),u=n(7293),f=n(9974),l=n(490),h=n(317),p=n(6833),v=n(5268),g=s.setImmediate,d=s.clearImmediate,y=s.process,m=s.MessageChannel,b=s.Dispatch,k=0,x={},w="onreadystatechange";try{r=s.location}catch(t){}var O=function(t){if(x.hasOwnProperty(t)){var e=x[t];delete x[t],e()}},I=function(t){return function(){O(t)}},E=function(t){O(t.data)},_=function(t){s.postMessage(String(t),r.protocol+"//"+r.host)};g&&d||(g=function(t){for(var e=[],n=arguments.length,r=1;n>r;)e.push(arguments[r++]);return x[++k]=function(){(c(t)?t:Function(t)).apply(void 0,e)},i(k),k},d=function(t){delete x[t]},v?i=function(t){y.nextTick(I(t))}:b&&b.now?i=function(t){b.now(I(t))}:m&&!p?(a=(o=new m).port2,o.port1.onmessage=E,i=f(a.postMessage,a,1)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!u(_)?(i=_,s.addEventListener("message",E,!1)):i=w in h("script")?function(t){l.appendChild(h("script")).onreadystatechange=function(){l.removeChild(this),O(t)}}:function(t){setTimeout(I(t),0)}),t.exports={set:g,clear:d}},1400:(t,e,n)=>{var r=n(9958),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},5656:(t,e,n)=>{var r=n(8361),i=n(4488);t.exports=function(t){return r(i(t))}},9958:t=>{var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},7466:(t,e,n)=>{var r=n(9958),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},7908:(t,e,n)=>{var r=n(4488);t.exports=function(t){return Object(r(t))}},7593:(t,e,n)=>{var r=n(111),i=n(2190),o=n(8173),a=n(2140),s=n(5112)("toPrimitive");t.exports=function(t,e){if(!r(t)||i(t))return t;var n,c=o(t,s);if(c){if(void 0===e&&(e="default"),n=c.call(t,e),!r(n)||i(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},4948:(t,e,n)=>{var r=n(7593),i=n(2190);t.exports=function(t){var e=r(t,"string");return i(e)?e:String(e)}},1694:(t,e,n)=>{var r={};r[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(r)},1340:(t,e,n)=>{var r=n(648);t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},6330:t=>{t.exports=function(t){try{return String(t)}catch(t){return"Object"}}},9711:t=>{var e=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+n).toString(36)}},3307:(t,e,n)=>{var r=n(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:(t,e,n)=>{var r=n(5112);e.f=r},5112:(t,e,n)=>{var r=n(7854),i=n(2309),o=n(6656),a=n(9711),s=n(133),c=n(3307),u=i("wks"),f=r.Symbol,l=c?f:f&&f.withoutSetter||a;t.exports=function(t){return o(u,t)&&(s||"string"==typeof u[t])||(s&&o(f,t)?u[t]=f[t]:u[t]=l("Symbol."+t)),u[t]}},1361:t=>{t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},2222:(t,e,n)=>{"use strict";var r=n(2109),i=n(7293),o=n(3157),a=n(111),s=n(7908),c=n(7466),u=n(6135),f=n(5417),l=n(1194),h=n(5112),p=n(7392),v=h("isConcatSpreadable"),g=9007199254740991,d="Maximum allowed index exceeded",y=p>=51||!i((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),m=l("concat"),b=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,forced:!y||!m},{concat:function(t){var e,n,r,i,o,a=s(this),l=f(a,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(b(o=-1===e?a:arguments[e])){if(h+(i=c(o.length))>g)throw TypeError(d);for(n=0;n<i;n++,h++)n in o&&u(l,h,o[n])}else{if(h>=g)throw TypeError(d);u(l,h++,o)}return l.length=h,l}})},7327:(t,e,n)=>{"use strict";var r=n(2109),i=n(2092).filter;r({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},9826:(t,e,n)=>{"use strict";var r=n(2109),i=n(2092).find,o=n(1223),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},1038:(t,e,n)=>{var r=n(2109),i=n(8457);r({target:"Array",stat:!0,forced:!n(7072)((function(t){Array.from(t)}))},{from:i})},6699:(t,e,n)=>{"use strict";var r=n(2109),i=n(1318).includes,o=n(1223);r({target:"Array",proto:!0},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},6992:(t,e,n)=>{"use strict";var r=n(5656),i=n(1223),o=n(7497),a=n(9909),s=n(654),c="Array Iterator",u=a.set,f=a.getterFor(c);t.exports=s(Array,"Array",(function(t,e){u(this,{type:c,target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},1249:(t,e,n)=>{"use strict";var r=n(2109),i=n(2092).map;r({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},7042:(t,e,n)=>{"use strict";var r=n(2109),i=n(3157),o=n(4411),a=n(111),s=n(1400),c=n(7466),u=n(5656),f=n(6135),l=n(5112),h=n(1194)("slice"),p=l("species"),v=[].slice,g=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(t,e){var n,r,l,h=u(this),d=c(h.length),y=s(t,d),m=s(void 0===e?d:e,d);if(i(h)&&(n=h.constructor,(o(n)&&(n===Array||i(n.prototype))||a(n)&&null===(n=n[p]))&&(n=void 0),n===Array||void 0===n))return v.call(h,y,m);for(r=new(void 0===n?Array:n)(g(m-y,0)),l=0;y<m;y++,l++)y in h&&f(r,l,h[y]);return r.length=l,r}})},8309:(t,e,n)=>{var r=n(9781),i=n(6530).EXISTS,o=n(3070).f,a=Function.prototype,s=a.toString,c=/^\s*function ([^ (]*)/;r&&!i&&o(a,"name",{configurable:!0,get:function(){try{return s.call(this).match(c)[1]}catch(t){return""}}})},1532:(t,e,n)=>{"use strict";var r=n(7710),i=n(5631);t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},3689:(t,e,n)=>{var r=n(2109),i=Math.ceil,o=Math.floor;r({target:"Math",stat:!0},{trunc:function(t){return(t>0?o:i)(t)}})},9653:(t,e,n)=>{"use strict";var r=n(9781),i=n(7854),o=n(4705),a=n(1320),s=n(6656),c=n(4326),u=n(9587),f=n(2190),l=n(7593),h=n(7293),p=n(30),v=n(8006).f,g=n(1236).f,d=n(3070).f,y=n(3111).trim,m="Number",b=i.Number,k=b.prototype,x=c(p(k))==m,w=function(t){if(f(t))throw TypeError("Cannot convert a Symbol value to a number");var e,n,r,i,o,a,s,c,u=l(t,"number");if("string"==typeof u&&u.length>2)if(43===(e=(u=y(u)).charCodeAt(0))||45===e){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(a=(o=u.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>i)return NaN;return parseInt(o,r)}return+u};if(o(m,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var O,I=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof I&&(x?h((function(){k.valueOf.call(n)})):c(n)!=m)?u(new b(w(e)),n,I):w(e)},E=r?v(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),_=0;E.length>_;_++)s(b,O=E[_])&&!s(I,O)&&d(I,O,g(b,O));I.prototype=k,k.constructor=I,a(i,m,I)}},3161:(t,e,n)=>{n(2109)({target:"Number",stat:!0},{isInteger:n(8730)})},9720:(t,e,n)=>{var r=n(2109),i=n(4699).entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},5003:(t,e,n)=>{var r=n(2109),i=n(7293),o=n(5656),a=n(1236).f,s=n(9781),c=i((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},9337:(t,e,n)=>{var r=n(2109),i=n(9781),o=n(3887),a=n(5656),s=n(1236),c=n(6135);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),i=s.f,u=o(r),f={},l=0;u.length>l;)void 0!==(n=i(r,e=u[l++]))&&c(f,e,n);return f}})},7941:(t,e,n)=>{var r=n(2109),i=n(7908),o=n(1956);r({target:"Object",stat:!0,forced:n(7293)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},1539:(t,e,n)=>{var r=n(1694),i=n(1320),o=n(288);r||i(Object.prototype,"toString",o,{unsafe:!0})},2479:(t,e,n)=>{var r=n(2109),i=n(4699).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},7727:(t,e,n)=>{"use strict";var r=n(2109),i=n(1913),o=n(3366),a=n(7293),s=n(5005),c=n(614),u=n(6707),f=n(9478),l=n(1320);if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=u(this,s("Promise")),n=c(t);return this.then(n?function(n){return f(e,t()).then((function(){return n}))}:t,n?function(n){return f(e,t()).then((function(){throw n}))}:t)}}),!i&&c(o)){var h=s("Promise").prototype.finally;o.prototype.finally!==h&&l(o.prototype,"finally",h,{unsafe:!0})}},8674:(t,e,n)=>{"use strict";var r,i,o,a,s=n(2109),c=n(1913),u=n(7854),f=n(5005),l=n(3366),h=n(1320),p=n(2248),v=n(7674),g=n(8003),d=n(6340),y=n(9662),m=n(614),b=n(111),k=n(5787),x=n(2788),w=n(408),O=n(7072),I=n(6707),E=n(261).set,_=n(5948),C=n(9478),S=n(842),A=n(8523),M=n(2534),R=n(9909),N=n(4705),j=n(5112),P=n(7871),T=n(5268),D=n(7392),L=j("species"),F="Promise",V=R.get,G=R.set,H=R.getterFor(F),B=l&&l.prototype,U=l,K=B,W=u.TypeError,Y=u.document,z=u.process,$=A.f,J=$,Q=!!(Y&&Y.createEvent&&u.dispatchEvent),q=m(u.PromiseRejectionEvent),X="unhandledrejection",Z=!1,tt=N(F,(function(){var t=x(U),e=t!==String(U);if(!e&&66===D)return!0;if(c&&!K.finally)return!0;if(D>=51&&/native code/.test(t))return!1;var n=new U((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[L]=r,!(Z=n.then((function(){}))instanceof r)||!e&&P&&!q})),et=tt||!O((function(t){U.all(t).catch((function(){}))})),nt=function(t){var e;return!(!b(t)||!m(e=t.then))&&e},rt=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;_((function(){for(var r=t.value,i=1==t.state,o=0;n.length>o;){var a,s,c,u=n[o++],f=i?u.ok:u.fail,l=u.resolve,h=u.reject,p=u.domain;try{f?(i||(2===t.rejection&&st(t),t.rejection=1),!0===f?a=r:(p&&p.enter(),a=f(r),p&&(p.exit(),c=!0)),a===u.promise?h(W("Promise-chain cycle")):(s=nt(a))?s.call(a,l,h):l(a)):h(r)}catch(t){p&&!c&&p.exit(),h(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ot(t)}))}},it=function(t,e,n){var r,i;Q?((r=Y.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},!q&&(i=u["on"+t])?i(r):t===X&&S("Unhandled promise rejection",n)},ot=function(t){E.call(u,(function(){var e,n=t.facade,r=t.value;if(at(t)&&(e=M((function(){T?z.emit("unhandledRejection",r,n):it(X,n,r)})),t.rejection=T||at(t)?2:1,e.error))throw e.value}))},at=function(t){return 1!==t.rejection&&!t.parent},st=function(t){E.call(u,(function(){var e=t.facade;T?z.emit("rejectionHandled",e):it("rejectionhandled",e,t.value)}))},ct=function(t,e,n){return function(r){t(e,r,n)}},ut=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,rt(t,!0))},ft=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw W("Promise can't be resolved itself");var r=nt(e);r?_((function(){var n={done:!1};try{r.call(e,ct(ft,n,t),ct(ut,n,t))}catch(e){ut(n,e,t)}})):(t.value=e,t.state=1,rt(t,!1))}catch(e){ut({done:!1},e,t)}}};if(tt&&(K=(U=function(t){k(this,U,F),y(t),r.call(this);var e=V(this);try{t(ct(ft,e),ct(ut,e))}catch(t){ut(e,t)}}).prototype,(r=function(t){G(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(K,{then:function(t,e){var n=H(this),r=$(I(this,U));return r.ok=!m(t)||t,r.fail=m(e)&&e,r.domain=T?z.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&rt(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=V(t);this.promise=t,this.resolve=ct(ft,e),this.reject=ct(ut,e)},A.f=$=function(t){return t===U||t===o?new i(t):J(t)},!c&&m(l)&&B!==Object.prototype)){a=B.then,Z||(h(B,"then",(function(t,e){var n=this;return new U((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),h(B,"catch",K.catch,{unsafe:!0}));try{delete B.constructor}catch(t){}v&&v(B,K)}s({global:!0,wrap:!0,forced:tt},{Promise:U}),g(U,F,!1,!0),d(F),o=f(F),s({target:F,stat:!0,forced:tt},{reject:function(t){var e=$(this);return e.reject.call(void 0,t),e.promise}}),s({target:F,stat:!0,forced:c||tt},{resolve:function(t){return C(c&&this===o?U:this,t)}}),s({target:F,stat:!0,forced:et},{all:function(t){var e=this,n=$(e),r=n.resolve,i=n.reject,o=M((function(){var n=y(e.resolve),o=[],a=0,s=1;w(t,(function(t){var c=a++,u=!1;o.push(void 0),s++,n.call(e,t).then((function(t){u||(u=!0,o[c]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=$(e),r=n.reject,i=M((function(){var i=y(e.resolve);w(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},2419:(t,e,n)=>{var r=n(2109),i=n(5005),o=n(9483),a=n(9670),s=n(111),c=n(30),u=n(7065),f=n(7293),l=i("Reflect","construct"),h=f((function(){function t(){}return!(l((function(){}),[],t)instanceof t)})),p=!f((function(){l((function(){}))})),v=h||p;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){o(t),a(e);var n=arguments.length<3?t:o(arguments[2]);if(p&&!h)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(u.apply(t,r))}var i=n.prototype,f=c(s(i)?i:Object.prototype),v=Function.apply.call(t,f,e);return s(v)?v:f}})},4603:(t,e,n)=>{var r=n(9781),i=n(7854),o=n(4705),a=n(9587),s=n(8880),c=n(3070).f,u=n(8006).f,f=n(7850),l=n(1340),h=n(7066),p=n(2999),v=n(1320),g=n(7293),d=n(6656),y=n(9909).enforce,m=n(6340),b=n(5112),k=n(9441),x=n(7168),w=b("match"),O=i.RegExp,I=O.prototype,E=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,_=/a/g,C=/a/g,S=new O(_)!==_,A=p.UNSUPPORTED_Y,M=r&&(!S||A||k||x||g((function(){return C[w]=!1,O(_)!=_||O(C)==C||"/a/i"!=O(_,"i")})));if(o("RegExp",M)){for(var R=function(t,e){var n,r,i,o,c,u,p=this instanceof R,v=f(t),g=void 0===e,m=[],b=t;if(!p&&v&&g&&t.constructor===R)return t;if((v||t instanceof R)&&(t=t.source,g&&(e="flags"in b?b.flags:h.call(b))),t=void 0===t?"":l(t),e=void 0===e?"":l(e),b=t,k&&"dotAll"in _&&(r=!!e&&e.indexOf("s")>-1)&&(e=e.replace(/s/g,"")),n=e,A&&"sticky"in _&&(i=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,"")),x&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a={},s=!1,c=!1,u=0,f="";r<=n;r++){if("\\"===(e=t.charAt(r)))e+=t.charAt(++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:E.test(t.slice(r+1))&&(r+=2,c=!0),i+=e,u++;continue;case">"===e&&c:if(""===f||d(a,f))throw new SyntaxError("Invalid capture group name");a[f]=!0,o.push([f,u]),c=!1,f="";continue}c?f+=e:i+=e}return[i,o]}(t),t=o[0],m=o[1]),c=a(O(t,e),p?this:I,R),(r||i||m.length)&&(u=y(c),r&&(u.dotAll=!0,u.raw=R(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(e=t.charAt(r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+t.charAt(++r);return i}(t),n)),i&&(u.sticky=!0),m.length&&(u.groups=m)),t!==b)try{s(c,"source",""===b?"(?:)":b)}catch(t){}return c},N=function(t){t in R||c(R,t,{configurable:!0,get:function(){return O[t]},set:function(e){O[t]=e}})},j=u(O),P=0;j.length>P;)N(j[P++]);I.constructor=R,R.prototype=I,v(i,"RegExp",R)}m("RegExp")},4916:(t,e,n)=>{"use strict";var r=n(2109),i=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},2087:(t,e,n)=>{var r=n(9781),i=n(3070),o=n(7066),a=n(7293);r&&a((function(){return"sy"!==Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get.call({dotAll:!0,sticky:!0})}))&&i.f(RegExp.prototype,"flags",{configurable:!0,get:o})},9714:(t,e,n)=>{"use strict";var r=n(6530).PROPER,i=n(1320),o=n(9670),a=n(1340),s=n(7293),c=n(7066),u="toString",f=RegExp.prototype,l=f.toString,h=s((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),p=r&&l.name!=u;(h||p)&&i(RegExp.prototype,u,(function(){var t=o(this),e=a(t.source),n=t.flags;return"/"+e+"/"+a(void 0===n&&t instanceof RegExp&&!("flags"in f)?c.call(t):n)}),{unsafe:!0})},7852:(t,e,n)=>{"use strict";var r,i=n(2109),o=n(1236).f,a=n(7466),s=n(1340),c=n(3929),u=n(4488),f=n(4964),l=n(1913),h="".endsWith,p=Math.min,v=f("endsWith");i({target:"String",proto:!0,forced:!!(l||v||(r=o(String.prototype,"endsWith"),!r||r.writable))&&!v},{endsWith:function(t){var e=s(u(this));c(t);var n=arguments.length>1?arguments[1]:void 0,r=a(e.length),i=void 0===n?r:p(a(n),r),o=s(t);return h?h.call(e,o,i):e.slice(i-o.length,i)===o}})},2023:(t,e,n)=>{"use strict";var r=n(2109),i=n(3929),o=n(4488),a=n(1340);r({target:"String",proto:!0,forced:!n(4964)("includes")},{includes:function(t){return!!~a(o(this)).indexOf(a(i(t)),arguments.length>1?arguments[1]:void 0)}})},8783:(t,e,n)=>{"use strict";var r=n(8710).charAt,i=n(1340),o=n(9909),a=n(654),s="String Iterator",c=o.set,u=o.getterFor(s);a(String,"String",(function(t){c(this,{type:s,string:i(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},4723:(t,e,n)=>{"use strict";var r=n(7007),i=n(9670),o=n(7466),a=n(1340),s=n(4488),c=n(8173),u=n(1530),f=n(7651);r("match",(function(t,e,n){return[function(e){var n=s(this),r=null==e?void 0:c(e,t);return r?r.call(e,n):new RegExp(e)[t](a(n))},function(t){var r=i(this),s=a(t),c=n(e,r,s);if(c.done)return c.value;if(!r.global)return f(r,s);var l=r.unicode;r.lastIndex=0;for(var h,p=[],v=0;null!==(h=f(r,s));){var g=a(h[0]);p[v]=g,""===g&&(r.lastIndex=u(s,o(r.lastIndex),l)),v++}return 0===v?null:p}]}))},5306:(t,e,n)=>{"use strict";var r=n(7007),i=n(7293),o=n(9670),a=n(614),s=n(9958),c=n(7466),u=n(1340),f=n(4488),l=n(1530),h=n(8173),p=n(647),v=n(7651),g=n(5112)("replace"),d=Math.max,y=Math.min,m="$0"==="a".replace(/./,"$0"),b=!!/./[g]&&""===/./[g]("a","$0");r("replace",(function(t,e,n){var r=b?"$":"$0";return[function(t,n){var r=f(this),i=null==t?void 0:h(t,g);return i?i.call(t,r,n):e.call(u(r),t,n)},function(t,i){var f=o(this),h=u(t);if("string"==typeof i&&-1===i.indexOf(r)&&-1===i.indexOf("$<")){var g=n(e,f,h,i);if(g.done)return g.value}var m=a(i);m||(i=u(i));var b=f.global;if(b){var k=f.unicode;f.lastIndex=0}for(var x=[];;){var w=v(f,h);if(null===w)break;if(x.push(w),!b)break;""===u(w[0])&&(f.lastIndex=l(h,c(f.lastIndex),k))}for(var O,I="",E=0,_=0;_<x.length;_++){w=x[_];for(var C=u(w[0]),S=d(y(s(w.index),h.length),0),A=[],M=1;M<w.length;M++)A.push(void 0===(O=w[M])?O:String(O));var R=w.groups;if(m){var N=[C].concat(A,S,h);void 0!==R&&N.push(R);var j=u(i.apply(void 0,N))}else j=p(C,h,S,A,R,i);S>=E&&(I+=h.slice(E,S)+j,E=S+C.length)}return I+h.slice(E)}]}),!!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!m||b)},6755:(t,e,n)=>{"use strict";var r,i=n(2109),o=n(1236).f,a=n(7466),s=n(1340),c=n(3929),u=n(4488),f=n(4964),l=n(1913),h="".startsWith,p=Math.min,v=f("startsWith");i({target:"String",proto:!0,forced:!!(l||v||(r=o(String.prototype,"startsWith"),!r||r.writable))&&!v},{startsWith:function(t){var e=s(u(this));c(t);var n=a(p(arguments.length>1?arguments[1]:void 0,e.length)),r=s(t);return h?h.call(e,r,n):e.slice(n,n+r.length)===r}})},1817:(t,e,n)=>{"use strict";var r=n(2109),i=n(9781),o=n(7854),a=n(6656),s=n(614),c=n(111),u=n(3070).f,f=n(9920),l=o.Symbol;if(i&&s(l)&&(!("description"in l.prototype)||void 0!==l().description)){var h={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new l(t):void 0===t?l():l(t);return""===t&&(h[e]=!0),e};f(p,l);var v=p.prototype=l.prototype;v.constructor=p;var g=v.toString,d="Symbol(test)"==String(l("test")),y=/^Symbol\((.*)\)[^)]+$/;u(v,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=g.call(t);if(a(h,t))return"";var n=d?e.slice(7,-1):e.replace(y,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},2165:(t,e,n)=>{n(7235)("iterator")},2526:(t,e,n)=>{"use strict";var r=n(2109),i=n(7854),o=n(5005),a=n(1913),s=n(9781),c=n(133),u=n(7293),f=n(6656),l=n(3157),h=n(614),p=n(111),v=n(2190),g=n(9670),d=n(7908),y=n(5656),m=n(4948),b=n(1340),k=n(9114),x=n(30),w=n(1956),O=n(8006),I=n(1156),E=n(5181),_=n(1236),C=n(3070),S=n(5296),A=n(1320),M=n(2309),R=n(6200),N=n(3501),j=n(9711),P=n(5112),T=n(6061),D=n(7235),L=n(8003),F=n(9909),V=n(2092).forEach,G=R("hidden"),H="Symbol",B=P("toPrimitive"),U=F.set,K=F.getterFor(H),W=Object.prototype,Y=i.Symbol,z=o("JSON","stringify"),$=_.f,J=C.f,Q=I.f,q=S.f,X=M("symbols"),Z=M("op-symbols"),tt=M("string-to-symbol-registry"),et=M("symbol-to-string-registry"),nt=M("wks"),rt=i.QObject,it=!rt||!rt.prototype||!rt.prototype.findChild,ot=s&&u((function(){return 7!=x(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=$(W,e);r&&delete W[e],J(t,e,n),r&&t!==W&&J(W,e,r)}:J,at=function(t,e){var n=X[t]=x(Y.prototype);return U(n,{type:H,tag:t,description:e}),s||(n.description=e),n},st=function(t,e,n){t===W&&st(Z,e,n),g(t);var r=m(e);return g(n),f(X,r)?(n.enumerable?(f(t,G)&&t[G][r]&&(t[G][r]=!1),n=x(n,{enumerable:k(0,!1)})):(f(t,G)||J(t,G,k(1,{})),t[G][r]=!0),ot(t,r,n)):J(t,r,n)},ct=function(t,e){g(t);var n=y(e),r=w(n).concat(ht(n));return V(r,(function(e){s&&!ut.call(n,e)||st(t,e,n[e])})),t},ut=function(t){var e=m(t),n=q.call(this,e);return!(this===W&&f(X,e)&&!f(Z,e))&&(!(n||!f(this,e)||!f(X,e)||f(this,G)&&this[G][e])||n)},ft=function(t,e){var n=y(t),r=m(e);if(n!==W||!f(X,r)||f(Z,r)){var i=$(n,r);return!i||!f(X,r)||f(n,G)&&n[G][r]||(i.enumerable=!0),i}},lt=function(t){var e=Q(y(t)),n=[];return V(e,(function(t){f(X,t)||f(N,t)||n.push(t)})),n},ht=function(t){var e=t===W,n=Q(e?Z:y(t)),r=[];return V(n,(function(t){!f(X,t)||e&&!f(W,t)||r.push(X[t])})),r};(c||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?b(arguments[0]):void 0,e=j(t),n=function(t){this===W&&n.call(Z,t),f(this,G)&&f(this[G],e)&&(this[G][e]=!1),ot(this,e,k(1,t))};return s&&it&&ot(W,e,{configurable:!0,set:n}),at(e,t)},A(Y.prototype,"toString",(function(){return K(this).tag})),A(Y,"withoutSetter",(function(t){return at(j(t),t)})),S.f=ut,C.f=st,_.f=ft,O.f=I.f=lt,E.f=ht,T.f=function(t){return at(P(t),t)},s&&(J(Y.prototype,"description",{configurable:!0,get:function(){return K(this).description}}),a||A(W,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:Y}),V(w(nt),(function(t){D(t)})),r({target:H,stat:!0,forced:!c},{for:function(t){var e=b(t);if(f(tt,e))return tt[e];var n=Y(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!v(t))throw TypeError(t+" is not a symbol");if(f(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(t,e){return void 0===e?x(t):ct(x(t),e)},defineProperty:st,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:lt,getOwnPropertySymbols:ht}),r({target:"Object",stat:!0,forced:u((function(){E.f(1)}))},{getOwnPropertySymbols:function(t){return E.f(d(t))}}),z)&&r({target:"JSON",stat:!0,forced:!c||u((function(){var t=Y();return"[null]"!=z([t])||"{}"!=z({a:t})||"{}"!=z(Object(t))}))},{stringify:function(t,e,n){for(var r,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=e,(p(e)||void 0!==t)&&!v(t))return l(e)||(e=function(t,e){if(h(r)&&(e=r.call(this,t,e)),!v(e))return e}),i[1]=e,z.apply(null,i)}});if(!Y.prototype[B]){var pt=Y.prototype.valueOf;A(Y.prototype,B,(function(){return pt.apply(this,arguments)}))}L(Y,H),N[G]=!0},4747:(t,e,n)=>{var r=n(7854),i=n(8324),o=n(8509),a=n(8533),s=n(8880),c=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a)}catch(e){t.forEach=a}};for(var u in i)i[u]&&c(r[u]&&r[u].prototype);c(o)},3948:(t,e,n)=>{var r=n(7854),i=n(8324),o=n(8509),a=n(6992),s=n(8880),c=n(5112),u=c("iterator"),f=c("toStringTag"),l=a.values,h=function(t,e){if(t){if(t[u]!==l)try{s(t,u,l)}catch(e){t[u]=l}if(t[f]||s(t,f,e),i[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n])}catch(e){t[n]=a[n]}}};for(var p in i)h(r[p]&&r[p].prototype,p);h(o,"DOMTokenList")},5666:t=>{var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof d?e:d,o=Object.create(i.prototype),a=new S(r||[]);return o._invoke=function(t,e,n){var r=l;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw o;return M()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=f(t,e,n);if("normal"===c.type){if(r=n.done?v:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=v,n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l="suspendedStart",h="suspendedYield",p="executing",v="completed",g={};function d(){}function y(){}function m(){}var b={};c(b,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(A([])));x&&x!==n&&r.call(x,o)&&(b=x);var w=m.prototype=d.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){function n(i,o,a,s){var c=f(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function E(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=f(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function A(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:M}}function M(){return{value:e,done:!0}}return y.prototype=m,c(w,"constructor",m),c(m,"constructor",y),y.displayName=c(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(I.prototype),c(I.prototype,a,(function(){return this})),t.AsyncIterator=I,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new I(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),c(w,s,"Generator"),c(w,o,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},1030:t=>{"use strict";t.exports=require("abort-controller")},4809:t=>{"use strict";t.exports=require("node-fetch")},6689:t=>{"use strict";t.exports=require("react")}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{FlagshipContext:()=>t.e,FlagshipProvider:()=>t.X,useFlagship:()=>o.UM,useFsActivate:()=>o.pc,useFsFlag:()=>o.Nf,useFsModification:()=>o.nr,useFsModificationInfo:()=>o._X,useFsModifications:()=>o.GW});var t=n(821),e=n(3547),i={};for(const t in e)["default","FlagshipContext","FlagshipProvider"].indexOf(t)<0&&(i[t]=()=>e[t]);n.d(r,i);var o=n(4927)})(),r})()}));
|
|
1
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(self,(function(){return(()=>{var t={3547:(t,e,n)=>{var r,i,o,a,s,c,u,f,l,h,p,v,g,d,y,m,b,k,x,w,O,I,E,_,C,S,A,M,R,j,N,P,T,D,L,F,V,G,H=n(1030);self,t.exports=(r=n(2419),i=n(1539),o=n(8674),a=n(4809),s=n(8309),c=n(4916),u=n(5306),f=n(4603),l=n(9714),h=n(7941),p=n(2526),v=n(7327),g=n(5003),d=n(4747),y=n(9337),m=n(2222),b=n(6992),k=n(1532),x=n(8783),w=n(3948),O=n(6699),I=n(2023),E=n(2479),_=n(3161),C=n(9653),S=n(3689),A=n(9720),M=n(1038),R=n(4723),j=n(1249),N=n(2087),P=n(7042),T=n(1817),D=n(2165),L=n(9826),F=n(6755),V=n(7852),G=n(7727),(()=>{var t={757:(t,e,n)=>{t.exports=n(666)},187:t=>{"use strict";var e,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(n,r){function i(n){t.removeListener(e,o),r(n)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),n([].slice.call(arguments))}g(t,e,o,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&g(t,"error",e,{once:!0})}(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function u(t,e,n,r){var i,o,a,u;if(s(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),a=o[e]),void 0===a)a=o[e]=n,++t._eventsCount;else if("function"==typeof a?a=o[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=c(t))>0&&a.length>i&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=a.length,u=f,console&&console.warn&&console.warn(u)}return t}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function h(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):v(i,i.length)}function p(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function g(t,e,n,r){if("function"==typeof t.on)r.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function i(o){r.once&&t.removeEventListener(e,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");a=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[t];if(void 0===c)return!1;if("function"==typeof c)r(c,this,e);else{var u=c.length,f=v(c,u);for(n=0;n<u;++n)r(f[n],this,e)}return!0},o.prototype.addListener=function(t,e){return u(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return u(this,t,e,!0)},o.prototype.once=function(t,e){return s(e),this.on(t,l(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return s(e),this.prependListener(t,l(this,t,e)),this},o.prototype.removeListener=function(t,e){var n,r,i,o,a;if(s(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},o.prototype.listeners=function(t){return h(this,t,!0)},o.prototype.rawListeners=function(t){return h(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},666:t=>{var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof d?e:d,o=Object.create(i.prototype),a=new S(r||[]);return o._invoke=function(t,e,n){var r=l;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw o;return M()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=f(t,e,n);if("normal"===c.type){if(r=n.done?v:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=v,n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l="suspendedStart",h="suspendedYield",p="executing",v="completed",g={};function d(){}function y(){}function m(){}var b={};c(b,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(A([])));x&&x!==n&&r.call(x,o)&&(b=x);var w=m.prototype=d.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){function n(i,o,a,s){var c=f(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function E(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=f(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function A(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:M}}function M(){return{value:e,done:!0}}return y.prototype=m,c(w,"constructor",m),c(m,"constructor",y),y.displayName=c(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(I.prototype),c(I.prototype,a,(function(){return this})),t.AsyncIterator=I,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new I(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),c(w,s,"Generator"),c(w,o,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},794:t=>{"use strict";t.exports=m},714:t=>{"use strict";t.exports=v},389:t=>{"use strict";t.exports=L},282:t=>{"use strict";t.exports=M},632:t=>{"use strict";t.exports=O},647:t=>{"use strict";t.exports=b},720:t=>{"use strict";t.exports=j},518:t=>{"use strict";t.exports=P},165:t=>{"use strict";t.exports=s},468:t=>{"use strict";t.exports=k},218:t=>{"use strict";t.exports=S},99:t=>{"use strict";t.exports=C},204:t=>{"use strict";t.exports=_},864:t=>{"use strict";t.exports=A},92:t=>{"use strict";t.exports=g},436:t=>{"use strict";t.exports=y},493:t=>{"use strict";t.exports=h},381:t=>{"use strict";t.exports=i},377:t=>{"use strict";t.exports=E},401:t=>{"use strict";t.exports=G},24:t=>{"use strict";t.exports=o},646:t=>{"use strict";t.exports=r},202:t=>{"use strict";t.exports=f},76:t=>{"use strict";t.exports=c},926:t=>{"use strict";t.exports=N},655:t=>{"use strict";t.exports=l},225:t=>{"use strict";t.exports=V},254:t=>{"use strict";t.exports=I},718:t=>{"use strict";t.exports=x},785:t=>{"use strict";t.exports=R},575:t=>{"use strict";t.exports=u},386:t=>{"use strict";t.exports=F},350:t=>{"use strict";t.exports=T},507:t=>{"use strict";t.exports=D},920:t=>{"use strict";t.exports=p},390:t=>{"use strict";t.exports=d},536:t=>{"use strict";t.exports=w},786:t=>{"use strict";t.exports=a},854:()=>{},697:()=>{}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var B={};return(()=>{"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function r(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}function a(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}n.r(B),n.d(B,{APP_VERSION_CODE:()=>Yt,APP_VERSION_NAME:()=>Wt,CARRIER_NAME:()=>Ut,DEVICE_LOCALE:()=>Rt,DEVICE_MODEL:()=>Nt,DEVICE_TYPE:()=>jt,DecisionApiConfig:()=>J,DecisionMode:()=>D,Event:()=>st,EventCategory:()=>Z,FLAGSHIP_CLIENT:()=>$t,FLAGSHIP_CONTEXT:()=>qt,FLAGSHIP_VERSION:()=>Jt,FLAGSHIP_VISITOR:()=>Qt,Flag:()=>he,FlagMetadata:()=>ne,Flagship:()=>Ee,FlagshipStatus:()=>v,HitAbstract:()=>it,HitType:()=>g,INTERFACE_NAME:()=>zt,INTERNET_CONNECTION:()=>Kt,IP:()=>Vt,Item:()=>ft,LOCATION_CITY:()=>Pt,LOCATION_COUNTRY:()=>Dt,LOCATION_LAT:()=>Lt,LOCATION_LONG:()=>Ft,LOCATION_REGION:()=>Tt,LogLevel:()=>c,OS_NAME:()=>Gt,OS_VERSION_CODE:()=>Bt,OS_VERSION_NAME:()=>Ht,Page:()=>pt,Screen:()=>dt,Transaction:()=>bt,Visitor:()=>L,default:()=>_e}),n(646),n(381),n(24);var c,u=n(187),f={},l="undefined"==typeof window?n(786).default:window.fetch;if("undefined"==typeof window){var h=n(854).Agent,p=n(697).Agent;f.agent=function(t){return"http:"===t.protocol?new h({keepAlive:!0}):new p({keepAlive:!0})}}!function(t){t[t.NONE=0]="NONE",t[t.EMERGENCY=1]="EMERGENCY",t[t.ALERT=2]="ALERT",t[t.CRITICAL=3]="CRITICAL",t[t.ERROR=4]="ERROR",t[t.WARNING=5]="WARNING",t[t.NOTICE=6]="NOTICE",t[t.INFO=7]="INFO",t[t.DEBUG=8]="DEBUG",t[t.ALL=9]="ALL"}(c||(c={}));var v,g,d={name:"TypeScript"},y="https://decision.flagship.io/v2/",m="v3",b="ready",k="Key {0} must not be null. Default value is returned.",x="{0} must be a {1}",w="visitorId must not be null or empty",O="Method {0} is deactivated while SDK status is: {1}.",I="INITIALIZATION",E="UPDATE CONTEXT",_="GET MODIFICATION",C="GET MODIFICATION INFO",S="ACTIVE MODIFICATION",A="SEND HIT",M="cid",R="x-api-key",j="Content-Type",N="x-sdk-client",P="x-sdk-version",T="application/json";!function(t){t[t.NOT_READY=0]="NOT_READY",t[t.NOT_INITIALIZED=0]="NOT_INITIALIZED",t[t.STARTING=1]="STARTING",t[t.POLLING=2]="POLLING",t[t.READY_PANIC_ON=3]="READY_PANIC_ON",t[t.READY=4]="READY"}(v||(v={})),function(t){t.PAGE_VIEW="PAGEVIEW",t.PAGE="PAGEVIEW",t.SCREEN_VIEW="SCREENVIEW",t.SCREEN="SCREENVIEW",t.TRANSACTION="TRANSACTION",t.ITEM="ITEM",t.EVENT="EVENT"}(g||(g={}));var D,L=function(t){o(c,t);var e,n,i=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function c(t){var e;return(e=i.call(this)).visitorDelegate=t,e.visitorDelegate.on(b,(function(t){e.emit(b,t)})),e}return r(c,[{key:"getModificationsArray",value:function(){return this.visitorDelegate.getModificationsArray()}},{key:"getFlagsDataArray",value:function(){return this.visitorDelegate.getFlagsDataArray()}},{key:"visitorId",get:function(){return this.visitorDelegate.visitorId},set:function(t){this.visitorDelegate.visitorId=t}},{key:"anonymousId",get:function(){return this.visitorDelegate.anonymousId}},{key:"hasConsented",get:function(){return this.visitorDelegate.hasConsented}},{key:"setConsent",value:function(t){this.visitorDelegate.setConsent(t)}},{key:"config",get:function(){return this.visitorDelegate.config}},{key:"context",get:function(){return this.visitorDelegate.context}},{key:"flagsData",get:function(){return this.visitorDelegate.flagsData}},{key:"modifications",get:function(){return this.visitorDelegate.flagsData}},{key:"updateContext",value:function(t){this.visitorDelegate.updateContext(t)}},{key:"clearContext",value:function(){this.visitorDelegate.clearContext()}},{key:"getFlag",value:function(t,e){return this.visitorDelegate.getFlag(t,e)}},{key:"getModification",value:function(t){return this.visitorDelegate.getModification(t)}},{key:"getModificationSync",value:function(t){return this.visitorDelegate.getModificationSync(t)}},{key:"getModifications",value:function(t,e){return this.visitorDelegate.getModifications(t,e)}},{key:"getModificationsSync",value:function(t,e){return this.visitorDelegate.getModificationsSync(t,e)}},{key:"getModificationInfo",value:function(t){return this.visitorDelegate.getModificationInfo(t)}},{key:"getModificationInfoSync",value:function(t){return this.visitorDelegate.getModificationInfoSync(t)}},{key:"synchronizeModifications",value:function(){return this.visitorDelegate.synchronizeModifications()}},{key:"fetchFlags",value:function(){return this.visitorDelegate.fetchFlags()}},{key:"activateModification",value:function(t){return this.visitorDelegate.activateModification(t)}},{key:"activateModifications",value:function(t){return this.visitorDelegate.activateModifications(t)}},{key:"sendHit",value:function(t){return this.visitorDelegate.sendHit(t)}},{key:"sendHits",value:function(t){return this.visitorDelegate.sendHits(t)}},{key:"getAllModifications",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.visitorDelegate.getAllModifications(t)}},{key:"getModificationsForCampaign",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.visitorDelegate.getModificationsForCampaign(t,e)}},{key:"getAllFlagsData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.visitorDelegate.getAllFlagsData(t)}},{key:"getFlatsDataForCampaign",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.visitorDelegate.getFlatsDataForCampaign(t,e)}},{key:"authenticate",value:function(t){this.visitorDelegate.authenticate(t)}},{key:"unauthenticate",value:function(){this.visitorDelegate.unauthenticate()}}]),c}(u.EventEmitter);function F(t){for(var e=t,n=0;n<(arguments.length<=1?0:arguments.length-1);n++){var r=n+1<1||arguments.length<=n+1?void 0:arguments[n+1];e=e.replace(new RegExp("\\{".concat(n,"\\}"),"g"),r)}return e}function V(t,e,n){t&&t.logManager&&"function"==typeof t.logManager.error&&t.logLevel&&!(t.logLevel<c.ERROR)&&t.logManager.error(e,n)}function G(t,e,n){t&&t.logManager&&"function"==typeof t.logManager.info&&t.logLevel&&!(t.logLevel<c.INFO)&&t.logManager.info(e,n)}function U(){return"undefined"!=typeof window&&!("Deno"in window)}function K(e,n){return t(e)===t(n)&&("object"!==t(e)||"object"!==t(n)||Array.isArray(e)===Array.isArray(n))}n(165),n(76),n(575),n(202),n(655),function(t){t.DECISION_API="API",t.BUCKETING="BUCKETING"}(D||(D={}));var W=function(){function t(t){var e=t.envId,n=t.apiKey,r=t.timeout,i=t.logLevel,o=t.logManager,a=t.statusChangedCallback,s=t.fetchNow,u=t.decisionMode,f=t.enableClientCache,l=t.initialBucketing,h=t.decisionApiUrl,p=t.activateDeduplicationTime,v=t.hitDeduplicationTime,g=t.visitorCacheImplementation,m=t.hitCacheImplementation,b=t.disableCache;switch(t.language){case 1:d.name="ReactJS";break;case 2:d.name="React-Native";break;default:d.name="undefined"!=typeof window&&"Deno"in window?"Deno":"Typescript"}this.decisionApiUrl=h||y,this._envId=e,this._apiKey=n,this.logLevel=i||c.ALL,this.timeout=r||2,this.fetchNow=void 0===s||s,this.enableClientCache=void 0===f||f,this._decisionMode=u||D.DECISION_API,this._initialBucketing=l,this.activateDeduplicationTime=null!=p?p:2.5,this.hitDeduplicationTime=null!=v?v:2.5,this.disableCache=!!b,g&&(this.visitorCacheImplementation=g),m&&(this.hitCacheImplementation=m),o&&(this.logManager=o),this.statusChangedCallback=a}return r(t,[{key:"initialBucketing",get:function(){return this._initialBucketing},set:function(t){this._initialBucketing=t}},{key:"enableClientCache",get:function(){return this._enableClientCache},set:function(t){this._enableClientCache=t}},{key:"onBucketingSuccess",get:function(){return this._onBucketingSuccess},set:function(t){this._onBucketingSuccess=t}},{key:"onBucketingFail",get:function(){return this._onBucketingFail},set:function(t){this._onBucketingFail=t}},{key:"onBucketingUpdated",get:function(){return this._onBucketingUpdated},set:function(t){this._onBucketingUpdated=t}},{key:"envId",get:function(){return this._envId},set:function(t){this._envId=t}},{key:"apiKey",get:function(){return this._apiKey},set:function(t){this._apiKey=t}},{key:"decisionMode",get:function(){return this._decisionMode}},{key:"timeout",get:function(){return this._timeout},set:function(t){this._timeout=t}},{key:"logLevel",get:function(){return this._logLevel},set:function(t){this._logLevel=t}},{key:"fetchNow",get:function(){return this._fetchNow},set:function(t){this._fetchNow=t}},{key:"pollingInterval",get:function(){return this._pollingInterval},set:function(t){this._pollingInterval=t}},{key:"activateDeduplicationTime",get:function(){return this._activateDeduplicationTime},set:function(t){"number"==typeof t?this._activateDeduplicationTime=t:V(this,F(x,"activateDeduplicationTime","number"),"activateDeduplicationTime")}},{key:"hitDeduplicationTime",get:function(){return this._hitDeduplicationTime},set:function(t){"number"==typeof t?this._hitDeduplicationTime=t:V(this,F(x,"hitDeduplicationTime","number"),"hitDeduplicationTime")}},{key:"visitorCacheImplementation",get:function(){return this._visitorCacheImplementation},set:function(t){this._visitorCacheImplementation=t}},{key:"hitCacheImplementation",get:function(){return this._hitCacheImplementation},set:function(t){this._hitCacheImplementation=t}},{key:"disableCache",get:function(){return this._disableCache},set:function(t){this._disableCache=t}},{key:"statusChangedCallback",get:function(){return this._statusChangedCallback},set:function(t){"function"==typeof t?this._statusChangedCallback=t:V(this,"statusChangedCallback must be a function","statusChangedCallback")}},{key:"logManager",get:function(){return this._logManager},set:function(t){this._logManager=t}},{key:"decisionApiUrl",get:function(){return this._decisionApiUrl},set:function(t){"string"==typeof t?this._decisionApiUrl=t:V(this,F(x,"decisionApiUrl","string"),"decisionApiUrl")}}]),t}();function Y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function z(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n(493),n(920),n(714),n(92),n(390),n(436);var J=function(t){o(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function i(t){return r.call(this,$($({},t),{},{decisionMode:D.DECISION_API}))}return i}(W),Q=function(){function t(t,e,n){this._config=t,this._decisionManager=e,this._trackingManager=n}return r(t,[{key:"config",get:function(){return this._config},set:function(t){this._config=t}},{key:"decisionManager",get:function(){return this._decisionManager},set:function(t){this._decisionManager=t}},{key:"trackingManager",get:function(){return this._trackingManager},set:function(t){this._trackingManager=t}}]),t}();function q(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function X(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){q(o,r,i,a,s,"next",t)}function s(t){q(o,r,i,a,s,"throw",t)}a(void 0)}))}}var Z,tt=n(757),et=n.n(tt),nt=(n(794),n(647),n(468),n(718),n(536),function(){function t(t,e){Y(this,"_panic",!1),this._config=e,this._httpClient=t}var e;return r(t,[{key:"config",get:function(){return this._config}},{key:"panic",set:function(t){this.updateFlagshipStatus(t?v.READY_PANIC_ON:v.READY),this._panic=t}},{key:"statusChangedCallback",value:function(t){this._statusChangedCallback=t}},{key:"updateFlagshipStatus",value:function(t){"function"==typeof this._statusChangedCallback&&this._statusChangedCallback&&this._statusChangedCallback(t)}},{key:"getModifications",value:function(t){var e=new Map;return t.forEach((function(t){var n=t.variation.modifications.value;for(var r in n){var i=n[r];e.set(r,{key:r,campaignId:t.id,variationGroupId:t.variationGroupId,variationId:t.variation.id,isReference:t.variation.reference,campaignType:t.type,value:i})}})),e}},{key:"getCampaignsModificationsAsync",value:(e=X(et().mark((function t(e){var n=this;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getCampaignsAsync(e).then((function(t){return n.getModifications(t)})).catch((function(t){return V(n.config,t.message||t,"getCampaignsModificationsAsync"),new Map})));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"isPanic",value:function(){return this._panic}}]),t}()),rt=function(t){o(u,t);var e,n,i,c=(n=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(n);if(i){var r=s(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return a(this,t)});function u(){return c.apply(this,arguments)}return r(u,[{key:"getCampaignsAsync",value:(e=X(et().mark((function t(e){var n,r,i,o,a=this;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Y(n={},R,"".concat(this.config.apiKey)),Y(n,N,d.name),Y(n,P,m),Y(n,j,T),r=n,i={visitorId:e.visitorId,anonymousId:e.anonymousId,trigger_hit:!1,context:e.context},o="".concat(this.config.decisionApiUrl||y).concat(this.config.envId).concat("/campaigns","?").concat("exposeAllKeys","=true"),e.hasConsented||(o+="&".concat("sendContextEvent","=false")),t.abrupt("return",this._httpClient.postAsync(o,{headers:r,timeout:this.config.timeout,body:i}).then((function(t){a.panic=!!t.body.panic;var e=[];return t.body.campaigns&&(e=t.body.campaigns),e})).catch((function(t){return V(a.config,t.message||t,"GET CAMPAIGNS"),[]})));case 5:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),u}(nt),it=(n(632),n(254),n(377),n(204),n(99),function(){function t(t){var e=t.type,n=t.userIp,r=t.screenResolution,i=t.locale,o=t.sessionNumber;this._type=e,n&&(this.userIp=n),r&&(this.screenResolution=r),i&&(this.locale=i),o&&(this.sessionNumber=o),this._anonymousId=null}return r(t,[{key:"sessionNumber",get:function(){return this._sessionNumber},set:function(t){this._sessionNumber=t}},{key:"locale",get:function(){return this._locale},set:function(t){this._locale=t}},{key:"screenResolution",get:function(){return this._screenResolution},set:function(t){this._screenResolution=t}},{key:"userIp",get:function(){return this._userIp},set:function(t){this._userIp=t}},{key:"anonymousId",get:function(){return this._anonymousId},set:function(t){this._anonymousId=t}},{key:"visitorId",get:function(){return this._visitorId},set:function(t){this._visitorId=t}},{key:"ds",get:function(){return this._ds},set:function(t){this._ds=t}},{key:"type",get:function(){return this._type}},{key:"config",get:function(){return this._config},set:function(t){this._config=t}},{key:"isNotEmptyString",value:function(t,e){return!(!t||"string"!=typeof t)||(V(this.config,F(x,e,"string"),e),!1)}},{key:"isNumeric",value:function(t,e){return!(!t||"number"!=typeof t)||(V(this.config,F(x,e,"number"),e),!1)}},{key:"isInteger",value:function(t,e){return t&&"number"==typeof t?(Number.isInteger(t)||V(this.config,F("value of {0} is not an {1}, it will be truncated to {1}",e,"integer"),e),!0):(V(this.config,F(x,e,"integer"),e),!1)}},{key:"toApiKeys",value:function(){var t,e,n=(Y(e={},"vid",this.visitorId),Y(e,"ds",this.ds),Y(e,M,"".concat(null==(t=this.config)?void 0:t.envId)),Y(e,"t",this.type),e);return this.userIp&&(n.uip=this.userIp),this.screenResolution&&(n.sr=this.screenResolution),this.locale&&(n.ul=this.locale),this.sessionNumber&&(n.sn=this.sessionNumber),this.visitorId&&this._anonymousId?(n.vid=this._anonymousId,n.cuid=this.visitorId):(n.vid=this._anonymousId||this.visitorId,n.cuid=null),n}},{key:"toObject",value:function(){return{visitorId:this.visitorId,ds:this.ds,type:this.type,userIp:this.userIp,screenResolution:this.screenResolution,locale:this.locale,sessionNumber:this.sessionNumber,anonymousId:this.anonymousId}}},{key:"isReady",value:function(){return!!(this.visitorId&&this.ds&&this.config&&this.config.envId&&this.type)}}]),t}());function ot(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function at(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ot(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}!function(t){t.ACTION_TRACKING="Action Tracking",t.USER_ENGAGEMENT="User Engagement"}(Z||(Z={}));var st=function(t){o(c,t);var e,n,i=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function c(t){var e;e=i.call(this,{type:g.EVENT,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber});var n=t.category,r=t.action,o=t.label,a=t.value;return e.category=n,e.action=r,o&&(e.label=o),a&&(e.value=a),e}return r(c,[{key:"category",get:function(){return this._category},set:function(t){Object.values(Z).includes(t)?this._category=t:V(this.config,"The category value must be either EventCategory::ACTION_TRACKING or EventCategory::ACTION_TRACKING","category")}},{key:"action",get:function(){return this._action},set:function(t){this.isNotEmptyString(t,"action")&&(this._action=t)}},{key:"label",get:function(){return this._label},set:function(t){this.isNotEmptyString(t,"label")&&(this._label=t)}},{key:"value",get:function(){return this._value},set:function(t){this.isNumeric(t,"value")&&(this._value=t)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.ec=this.category,e.ea=this.action,this.label&&(e.el=this.label),this.value&&(e.ev=this.value),e}},{key:"toObject",value:function(){return at(at({},t.prototype.toObject.call(this)),{},{category:this.category,action:this.action,label:this.label,value:this.value})}},{key:"isReady",value:function(){return!((!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&!t.prototype.isReady.call(this)||!this.category||!this.action)}},{key:"getErrorMessage",value:function(){return"event category and event action are required"}}]),c}(it);function ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ut(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ct(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n(218);var ft=function(t){o(c,t);var e,n,i=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function c(t){var e;e=i.call(this,{type:g.ITEM,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber});var n=t.transactionId,r=t.productName,o=t.productSku,a=t.itemCategory,s=t.itemPrice,c=t.itemQuantity;return e.transactionId=n,e.productName=r,e.productSku=o,a&&(e.itemCategory=a),s&&(e.itemPrice=s),c&&(e.itemQuantity=c),e}return r(c,[{key:"transactionId",get:function(){return this._transactionId},set:function(t){this.isNotEmptyString(t,"transactionId")&&(this._transactionId=t)}},{key:"productName",get:function(){return this._productName},set:function(t){this.isNotEmptyString(t,"productName")&&(this._productName=t)}},{key:"productSku",get:function(){return this._productSku},set:function(t){this.isNotEmptyString(t,"productSku")&&(this._productSku=t)}},{key:"itemPrice",get:function(){return this._itemPrice},set:function(t){this.isNumeric(t,"itemPrice")&&(this._itemPrice=t)}},{key:"itemQuantity",get:function(){return this._itemQuantity},set:function(t){this.isInteger(t,"itemQuantity")&&(this._itemQuantity=Math.trunc(t))}},{key:"itemCategory",get:function(){return this._itemCategory},set:function(t){this.isNotEmptyString(t,"itemCategory")&&(this._itemCategory=t)}},{key:"isReady",value:function(){return!((!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&!t.prototype.isReady.call(this)||!this.transactionId||!this.productName||!this.productSku)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.tid=this.transactionId,e.in=this.productName,e.ic=this.productSku,this.itemPrice&&(e.ip=this.itemPrice),this.itemQuantity&&(e.iq=this.itemQuantity),this.itemCategory&&(e.iv=this.itemCategory),e}},{key:"toObject",value:function(){return ut(ut({},t.prototype.toObject.call(this)),{},{transactionId:this.transactionId,productName:this.productName,productSku:this.productSku,itemPrice:this.itemPrice,itemQuantity:this.itemQuantity,itemCategory:this.itemCategory})}},{key:"getErrorMessage",value:function(){return"Transaction Id, Item name and item code are required"}}]),c}(it);function lt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ht(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lt(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var pt=function(t){o(c,t);var e,n,i=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function c(t){var e;return(e=i.call(this,{type:g.PAGE_VIEW,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber})).documentLocation=null==t?void 0:t.documentLocation,e}return r(c,[{key:"documentLocation",get:function(){return this._documentLocation},set:function(t){this.isNotEmptyString(t,"documentLocation")&&(this._documentLocation=t)}},{key:"isReady",value:function(){return!((!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&!t.prototype.isReady.call(this)||!this.documentLocation)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.dl=this.documentLocation,e}},{key:"toObject",value:function(){return ht(ht({},t.prototype.toObject.call(this)),{},{documentLocation:this.documentLocation})}},{key:"getErrorMessage",value:function(){return"documentLocation url is required"}}]),c}(it);function vt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function gt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vt(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var dt=function(t){o(c,t);var e,n,i=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function c(t){var e;return(e=i.call(this,{type:g.SCREEN_VIEW,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber})).documentLocation=null==t?void 0:t.documentLocation,e}return r(c,[{key:"documentLocation",get:function(){return this._documentLocation},set:function(t){this.isNotEmptyString(t,"documentLocation")&&(this._documentLocation=t)}},{key:"isReady",value:function(){return!((!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&!t.prototype.isReady.call(this)||!this.documentLocation)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.dl=this.documentLocation,e}},{key:"toObject",value:function(){return gt(gt({},t.prototype.toObject.call(this)),{},{documentLocation:this.documentLocation})}},{key:"getErrorMessage",value:function(){return"Screen name is required"}}]),c}(it);function yt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yt(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var bt=function(t){o(c,t);var e,n,i=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function c(t){var e;e=i.call(this,{type:g.TRANSACTION,userIp:null==t?void 0:t.userIp,screenResolution:null==t?void 0:t.screenResolution,locale:null==t?void 0:t.locale,sessionNumber:null==t?void 0:t.sessionNumber});var n=t.transactionId,r=t.affiliation,o=t.taxes,a=t.currency,s=t.couponCode,c=t.itemCount,u=t.shippingMethod,f=t.paymentMethod,l=t.totalRevenue,h=t.shippingCosts;return e.transactionId=n,e.affiliation=r,o&&(e.taxes=o),a&&(e.currency=a),s&&(e.couponCode=s),c&&(e.itemCount=c),u&&(e.shippingMethod=u),f&&(e.paymentMethod=f),l&&(e.totalRevenue=l),h&&(e.shippingCosts=h),e}return r(c,[{key:"transactionId",get:function(){return this._transactionId},set:function(t){this.isNotEmptyString(t,"transactionId")&&(this._transactionId=t)}},{key:"affiliation",get:function(){return this._affiliation},set:function(t){this.isNotEmptyString(t,"affiliation")&&(this._affiliation=t)}},{key:"taxes",get:function(){return this._taxes},set:function(t){this.isNumeric(t,"taxes")&&(this._taxes=t)}},{key:"currency",get:function(){return this._currency},set:function(t){t&&"string"==typeof t&&3===t.length?this._currency=t:V(this.config,F("{0} must be a string and have exactly 3 letters","currency"),"currency")}},{key:"couponCode",get:function(){return this._couponCode},set:function(t){this.isNotEmptyString(t,"couponCode")&&(this._couponCode=t)}},{key:"itemCount",get:function(){return this._itemCount},set:function(t){this.isInteger(t,"itemCount")&&(this._itemCount=Math.trunc(t))}},{key:"shippingMethod",get:function(){return this._shippingMethod},set:function(t){this.isNotEmptyString(t,"shippingMethod")&&(this._shippingMethod=t)}},{key:"paymentMethod",get:function(){return this._paymentMethod},set:function(t){this.isNotEmptyString(t,"paymentMethod")&&(this._paymentMethod=t)}},{key:"totalRevenue",get:function(){return this._totalRevenue},set:function(t){this.isNumeric(t,"totalRevenue")&&(this._totalRevenue=t)}},{key:"shippingCosts",get:function(){return this._shippingCosts},set:function(t){this.isNumeric(t,"shippingCosts")&&(this._shippingCosts=t)}},{key:"isReady",value:function(){return!((!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&!t.prototype.isReady.call(this)||!this.transactionId||!this.affiliation)}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.tid=this.transactionId,e.ta=this.affiliation,this.taxes&&(e.tt=this.taxes),this.currency&&(e.tc=this.currency),this.couponCode&&(e.tcc=this.couponCode),this.itemCount&&(e.icn=this.itemCount),this.shippingMethod&&(e.sm=this.shippingMethod),this.paymentMethod&&(e.pm=this.paymentMethod),this.totalRevenue&&(e.tr=this.totalRevenue),this.shippingCosts&&(e.ts=this.shippingCosts),e}},{key:"toObject",value:function(){return mt(mt({},t.prototype.toObject.call(this)),{},{transactionId:this.transactionId,affiliation:this.affiliation,taxes:this.taxes,currency:this.currency,couponCode:this.couponCode,itemCount:this.itemCount,shippingMethod:this.shippingMethod,paymentMethod:this.paymentMethod,totalRevenue:this.totalRevenue,shippingCosts:this.shippingCosts})}},{key:"getErrorMessage",value:function(){return"Transaction Id and Transaction affiliation are required"}}]),c}(it),kt=function(t){o(l,t);var e,n,i,c,u,f=(c=l,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(c);if(u){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function l(){return f.apply(this,arguments)}return r(l,[{key:"sendConsentHit",value:(i=X(et().mark((function t(e){var n,r,i;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Y(n={},"t",g.EVENT),Y(n,"el","".concat(d.name,":").concat(e.hasConsented)),Y(n,"ea","fs_consent"),Y(n,"ec",Z.USER_ENGAGEMENT),Y(n,M,this.config.envId),Y(n,"ds","APP"),r=n,e.visitorId&&e.anonymousId?(r.vid=e.anonymousId,r.cuid=e.visitorId):(r.vid=e.anonymousId||e.visitorId,r.cuid=null),i=Y({},j,T),t.next=5,this.httpClient.postAsync("https://ariane.abtasty.com",{headers:i,timeout:this.config.timeout,body:r});case 5:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"sendActive",value:(n=X(et().mark((function t(e,n){var r,i,o,a,s;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return Y(r={},R,"".concat(this.config.apiKey)),Y(r,N,d.name),Y(r,P,m),Y(r,j,T),o=r,a="".concat(y).concat("activate"),Y(i={},"vid",e.visitorId),Y(i,"vaid",n.variationId),Y(i,"caid",n.variationGroupId),Y(i,M,"".concat(this.config.envId)),s=i,e.visitorId&&e.anonymousId?(s.vid=e.visitorId,s.aid=e.anonymousId):(s.vid=e.anonymousId||e.visitorId,s.aid=null),t.next=6,this.httpClient.postAsync(a,{headers:o,timeout:this.config.timeout,body:s});case 6:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"sendHit",value:(e=X(et().mark((function t(e){var n;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Y({},j,T),t.next=3,this.httpClient.postAsync("https://ariane.abtasty.com",{headers:n,timeout:this.config.timeout,body:e.toApiKeys()});case 3:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),l}(function(){function t(t,e){this._httpClient=t,this._config=e}return r(t,[{key:"httpClient",get:function(){return this._httpClient}},{key:"config",get:function(){return this._config}}]),t}()),xt=function(){function t(){}return r(t,[{key:"emergency",value:function(t,e){this.log(c.EMERGENCY,t,e)}},{key:"alert",value:function(t,e){this.log(c.ALERT,t,e)}},{key:"critical",value:function(t,e){this.log(c.CRITICAL,t,e)}},{key:"error",value:function(t,e){this.log(c.ERROR,t,e)}},{key:"warning",value:function(t,e){this.log(c.WARNING,t,e)}},{key:"notice",value:function(t,e){this.log(c.NOTICE,t,e)}},{key:"info",value:function(t,e){this.log(c.INFO,t,e)}},{key:"debug",value:function(t,e){this.log(c.DEBUG,t,e)}},{key:"log",value:function(t,e,n){var r=new Date,i=function(t){return 1===t.toString().length?"0".concat(t):t},o="[".concat(i(r.getFullYear()),"-").concat(i(r.getMonth()),"-").concat(i(r.getDay())," ").concat(i(r.getHours()),":").concat(i(r.getMinutes()),"] [").concat("Flagship SDK","] [").concat(c[t],"] [").concat(n,"] : ").concat(e);console.log(o)}}]),t}();function wt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ot(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||function(t,e){if(t){if("string"==typeof t)return wt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Et(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?It(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n(864),n(282);var _t=function(t){o(i,t);var e,n,r=(e=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function i(t){var e,n;return(n=r.call(this,Et(Et({},t),{},{decisionMode:D.BUCKETING}))).pollingInterval=null!=(e=null==t?void 0:t.pollingInterval)?e:1,n.onBucketingFail=null==t?void 0:t.onBucketingFail,n.onBucketingSuccess=null==t?void 0:t.onBucketingSuccess,n.onBucketingUpdated=null==t?void 0:t.onBucketingUpdated,n}return i}(W);function Ct(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function St(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ct(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n(785),n(720),n(926);var At,Mt=function(){function t(t){this.visitor=t}var e,n,i,o,a,s;return r(t,[{key:"configManager",get:function(){return this.visitor.configManager}},{key:"trackingManager",get:function(){return this.configManager.trackingManager}},{key:"decisionManager",get:function(){return this.configManager.decisionManager}},{key:"config",get:function(){return this.visitor.config}},{key:"updateCampaigns",value:function(t){try{this.visitor.campaigns=t,this.visitor.flagsData=this.decisionManager.getModifications(t)}catch(t){V(this.config,t.message||t,"updateCampaigns")}}},{key:"hasTrackingManager",value:function(t){var e=this.trackingManager;return e||V(this.config,F("trackerManager must not be null."),t),!!e}},{key:"setConsent",value:function(t){var e=this,n="setConsent";this.visitor.hasConsented=t,t||(this.flushHits(),this.flushVisitor()),this.hasTrackingManager(n)&&this.trackingManager.sendConsentHit(this.visitor).catch((function(t){V(e.config,t.message||t,n)}))}},{key:"checKLookupVisitorDataV1",value:function(t){if(!t||!t.data||!t.data.visitorId)return!1;var e=t.data.campaigns;return!e||!!Array.isArray(e)&&(t.data.visitorId!==this.visitor.visitorId?(G(this.config,F("Visitor ID mismatch: {0} vs {1}",t.data.visitorId,this.visitor.visitorId),"lookupVisitor"),!1):e.every((function(t){return t.campaignId&&t.type&&t.variationGroupId&&t.variationId})))}},{key:"checKLookupVisitorData",value:function(t){return 1===t.version&&this.checKLookupVisitorDataV1(t)}},{key:"lookupVisitor",value:(s=X(et().mark((function t(){var e,n;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e=this.config.visitorCacheImplementation,!this.config.disableCache&&e&&e.lookupVisitor&&"function"==typeof e.lookupVisitor){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,e.lookupVisitor(this.visitor.visitorId);case 6:if(n=t.sent){t.next=9;break}return t.abrupt("return");case 9:if(this.checKLookupVisitorData(n)){t.next=11;break}throw new Error("JSON DATA must fit the type VisitorCacheDTO");case 11:this.visitor.visitorCache=n,t.next=17;break;case 14:t.prev=14,t.t0=t.catch(0),V(this.config,t.t0.message||t.t0,"lookupVisitor");case 17:case"end":return t.stop()}}),t,this,[[0,14]])}))),function(){return s.apply(this,arguments)})},{key:"cacheVisitor",value:(a=X(et().mark((function t(){var e,n,r,i,o;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r=this.config.visitorCacheImplementation,!this.config.disableCache&&r&&"function"==typeof r.cacheVisitor){t.next=4;break}return t.abrupt("return");case 4:return i={},(o={version:1,data:{visitorId:this.visitor.visitorId,anonymousId:this.visitor.anonymousId,consent:this.visitor.hasConsented,context:this.visitor.context,campaigns:this.visitor.campaigns.map((function(t){return i[t.variationGroupId]=t.variation.id,{campaignId:t.id,variationGroupId:t.variationGroupId,variationId:t.variation.id,isReference:t.variation.reference,type:t.variation.modifications.type,activated:!1,flags:t.variation.modifications.value}}))}}).data.assignmentsHistory=St(St({},null==(e=this.visitor.visitorCache)||null==(n=e.data)?void 0:n.assignmentsHistory),i),t.next=9,r.cacheVisitor(this.visitor.visitorId,o);case 9:this.visitor.visitorCache=o,t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),V(this.config,t.t0.message||t.t0,"cacheVisitor");case 15:case"end":return t.stop()}}),t,this,[[0,12]])}))),function(){return a.apply(this,arguments)})},{key:"flushVisitor",value:(o=X(et().mark((function t(){var e;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e=this.config.visitorCacheImplementation,!this.config.disableCache&&e&&"function"==typeof e.flushVisitor){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,e.flushVisitor(this.visitor.visitorId);case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),V(this.config,t.t0.message||t.t0,"flushVisitor");case 11:case"end":return t.stop()}}),t,this,[[0,8]])}))),function(){return o.apply(this,arguments)})},{key:"checKLookupHitData",value:function(t){return!!(t&&1===t.version&&t.data&&t.data.type&&t.data.visitorId)||(V(this.config,"JSON DATA must fit the type HitCacheDTO","lookupHits"),!1)}},{key:"lookupHits",value:(i=X(et().mark((function t(){var e,n,r,i,o,a=this;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e=this.config.hitCacheImplementation,!this.config.disableCache&&e&&"function"==typeof e.lookupHits){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,e.lookupHits(this.visitor.visitorId);case 6:if(n=t.sent){t.next=9;break}return t.abrupt("return");case 9:if(Array.isArray(n)){t.next=11;break}throw Error("JSON DATA must be an array of object");case 11:if(r=function(t){return(Date.now()-t)/1e3<=144e5},i=[{type:"BATCH",hits:[]}],o=0,n.filter((function(t){return a.checKLookupHitData(t)&&r(t.data.time)})).forEach((function(t){"ACTIVATE"!==t.data.type?"BATCH"!==t.data.type?JSON.stringify(i[o]).length>2621440?(o++,i[o]={type:"BATCH",hits:[t.data.content]}):i[o].hits.push(t.data.content):a.sendHit(t.data.content):a.sendActivate(t.data.content)})),1!==i.length||i[0].hits.length){t.next=18;break}return t.abrupt("return");case 18:this.sendHits(i),t.next=24;break;case 21:t.prev=21,t.t0=t.catch(0),V(this.config,t.t0.message||t.t0,"lookupHits");case 24:case"end":return t.stop()}}),t,this,[[0,21]])}))),function(){return i.apply(this,arguments)})},{key:"cacheHit",value:(n=X(et().mark((function t(e){var n,r;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,n=this.config.hitCacheImplementation,!this.config.disableCache&&n&&"function"==typeof n.cacheHit){t.next=4;break}return t.abrupt("return");case 4:return r={version:1,data:{visitorId:this.visitor.visitorId,anonymousId:this.visitor.anonymousId,type:e instanceof it?e.type:"ACTIVATE",content:e instanceof it?e.toObject():e,time:Date.now()}},t.next=7,n.cacheHit(this.visitor.visitorId,r);case 7:t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),V(this.config,t.t0.message||t.t0,"cacheHit");case 12:case"end":return t.stop()}}),t,this,[[0,9]])}))),function(t){return n.apply(this,arguments)})},{key:"flushHits",value:(e=X(et().mark((function t(){var e;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e=this.config.hitCacheImplementation,!this.config.disableCache&&e&&"function"==typeof e.flushHits){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,e.flushHits(this.visitor.visitorId);case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),V(this.config,t.t0.message||t.t0,"flushHits");case 11:case"end":return t.stop()}}),t,this,[[0,8]])}))),function(){return e.apply(this,arguments)})}]),t}(),Rt="sdk_deviceLanguage",jt="sdk_deviceType",Nt="sdk_deviceModel",Pt="sdk_city",Tt="sdk_region",Dt="sdk_country",Lt="sdk_lat",Ft="sdk_long",Vt="sdk_ip",Gt="sdk_osName",Ht="sdk_osVersionName",Bt="sdk_osVersionCode",Ut="sdk_carrierName",Kt="sdk_internetConnection",Wt="sdk_versionName",Yt="sdk_versionCode",zt="sdk_interfaceName",$t="fs_client",Jt="fs_version",Qt="fs_users",qt=(Y(At={},Rt,"string"),Y(At,jt,"string"),Y(At,Nt,"string"),Y(At,Pt,"string"),Y(At,Tt,"string"),Y(At,Dt,"string"),Y(At,Lt,"number"),Y(At,Ft,"number"),Y(At,Vt,"string"),Y(At,Gt,"string"),Y(At,Ht,"string"),Y(At,Bt,"number"),Y(At,Ut,"string"),Y(At,Kt,"string"),Y(At,Wt,"string"),Y(At,Yt,"number"),Y(At,zt,"string"),Y(At,$t,"string"),Y(At,Jt,"string"),Y(At,Qt,"string"),At);function Xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xt(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var te="BATCH",ee=function(t){o(c,t);var e,n,i=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function c(t){var e;return(e=i.call(this,Zt(Zt({},t),{},{type:te}))).hits=t.hits,e}return r(c,[{key:"hits",get:function(){return this._hits},set:function(t){this._hits=t}},{key:"isReady",value:function(){return!!(t.prototype.isReady.call(this)&&this.hits&&this.hits.length>0&&this.hits.every((function(t){return t.isReady(!1)})))}},{key:"toApiKeys",value:function(){var e=t.prototype.toApiKeys.call(this);return e.h=this.hits.map((function(t){var e=t.toApiKeys();return delete e.vid,delete e.cid,delete e.uip,delete e.sr,delete e.ul,delete e.sn,delete e.vid,delete e.cuid,e})),e}},{key:"toObject",value:function(){return Zt(Zt({},t.prototype.toObject.call(this)),{},{hits:this.hits.map((function(t){return t.toObject()}))})}},{key:"getErrorMessage",value:function(){return"Please check required fields"}}]),c}(it),ne=function(){function t(t){var e=t.campaignId,n=t.variationGroupId,r=t.variationId,i=t.isReference,o=t.campaignType;this.campaignId=e,this.variationGroupId=n,this.variationId=r,this.isReference=i,this.campaignType=o}return r(t,null,[{key:"Empty",value:function(){return new t({campaignId:"",campaignType:"",variationId:"",variationGroupId:"",isReference:!1})}}]),t}();function re(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ie(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?re(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var oe="property type is required and must ",ae=function(e){o(T,e);var n,i,c,u,f,l,h,p,v,d,y,m,x,O,I,M,R,j,N,P=(j=T,N=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(j);if(N){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function T(){return P.apply(this,arguments)}return r(T,[{key:"checkPredefinedContext",value:function(t,e){var n=qt[t];if(!n)return null;var r=!1;return"string"===n?r="string"==typeof e:"number"===n&&(r="number"==typeof e),r||V(this.config,F("Predefined Context {0} must be type of {1}",t,n),E),r}},{key:"updateContextKeyValue",value:function(e,n){var r=t(n);if("string"!=typeof e||""===e||"string"!==r&&"number"!==r&&"boolean"!==r)V(this.visitor.config,F("params {0} must be a non null String, and 'value' must be one of the following types , Number, Boolean",e),E);else if(!e.match(/^fs_/i)){var i=this.checkPredefinedContext(e,n);("boolean"!=typeof i||i)&&(this.visitor.context[e]=n)}}},{key:"updateContext",value:function(t){if(t)for(var e in t){var n=t[e];this.updateContextKeyValue(e,n)}else V(this.visitor.config,"Context must not to be null",E)}},{key:"clearContext",value:function(){this.visitor.context={}}},{key:"checkAndGetModification",value:function(e,n){var r=this,i=e.key,o=e.defaultValue,a=e.activate;if(!i||"string"!=typeof i)return V(this.config,F(k,i),_),o;var s=this.visitor.flagsData.get(i);return s?"object"===t(s.value)&&"object"===t(o)&&Array.isArray(s.value)!==Array.isArray(o)||t(s.value)!==t(o)?(V(r.config,F("Modification for key {0} has a different type. Default value is returned.",i),_),s.value||!a&&!n||r.activateModification(i),o):((a||n)&&this.activateModification(i),s.value):(G(this.config,F("No modification for key {0}. Default value is returned.",i),_),o)}},{key:"getModifications",value:(R=X(et().mark((function t(e,n){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getModificationsSync(e,n));case 1:case"end":return t.stop()}}),t,this)}))),function(t,e){return R.apply(this,arguments)})},{key:"getModificationsSync",value:function(t,e){var n=this,r={};return t.forEach((function(t){r[t.key]=n.checkAndGetModification(t,e)})),r}},{key:"getModification",value:(M=X(et().mark((function t(e){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getModificationSync(e));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return M.apply(this,arguments)})},{key:"getModificationSync",value:function(t){return this.checkAndGetModification(t)}},{key:"getModificationInfo",value:(I=X(et().mark((function t(e){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.getModificationInfoSync(e));case 1:case"end":return t.stop()}}),t,this)}))),function(t){return I.apply(this,arguments)})},{key:"getModificationInfoSync",value:function(t){return t&&"string"==typeof t?this.visitor.flagsData.get(t)||(V(this.visitor.config,F("No modification for key {0}.",t),C),null):(V(this.visitor.config,F(k,t),C),null)}},{key:"fetchVisitorCampaigns",value:function(t){var e;return Array.isArray(null==t||null==(e=t.visitorCache)?void 0:e.data.campaigns)?(t.updateContext(t.visitorCache.data.context||{}),t.visitorCache.data.campaigns.map((function(t){return{id:t.campaignId,variationGroupId:t.variationGroupId,variation:{id:t.variationId,reference:!!t.isReference,modifications:{type:t.type,value:t.flags}}}}))):[]}},{key:"globalFetchFlags",value:(O=X(et().mark((function t(e){var n;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.decisionManager.getCampaignsAsync(this.visitor);case 3:(n=t.sent).length||(n=this.fetchVisitorCampaigns(this.visitor)),this.visitor.campaigns=n,this.visitor.flagsData=this.decisionManager.getModifications(this.visitor.campaigns),this.cacheVisitor(),this.visitor.emit(b),t.next=15;break;case 11:t.prev=11,t.t0=t.catch(0),this.visitor.emit(b,t.t0),V(this.config,t.t0.message||t.t0,e);case 15:case"end":return t.stop()}}),t,this,[[0,11]])}))),function(t){return O.apply(this,arguments)})},{key:"synchronizeModifications",value:(x=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.globalFetchFlags("SYNCHRONIZED MODIFICATION"));case 1:case"end":return t.stop()}}),t,this)}))),function(){return x.apply(this,arguments)})},{key:"activateModification",value:(m=X(et().mark((function t(e){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&"string"==typeof e){t.next=3;break}return V(this.config,F("Key {0} must not be null, no activate will be sent.",e),S),t.abrupt("return");case 3:return t.abrupt("return",this.activate(e));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return m.apply(this,arguments)})},{key:"activateModifications",value:(y=X(et().mark((function t(e){var n=this;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&Array.isArray(e)){t.next=3;break}return V(this.config,F(k,e),S),t.abrupt("return");case 3:e.forEach((function(t){"string"==typeof t?n.activate(t):n.activate(t.key)}));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return y.apply(this,arguments)})},{key:"isDeDuplicated",value:function(t,e){if(0===e)return!1;var n=this.visitor.deDuplicationCache[t];return!!(n&&Date.now()-n<=1e3*e)||(this.visitor.deDuplicationCache[t]=Date.now(),this.visitor.clearDeDuplicationCache(e),!1)}},{key:"sendActivate",value:(d=X(et().mark((function t(e){var n,r=arguments;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:S,t.prev=1,t.next=4,this.trackingManager.sendActive(this.visitor,e);case 4:t.next=10;break;case 6:t.prev=6,t.t0=t.catch(1),V(this.config,t.t0.message||t.t0,n),this.cacheHit(e);case 10:case"end":return t.stop()}}),t,this,[[1,6]])}))),function(t){return d.apply(this,arguments)})},{key:"activate",value:(v=X(et().mark((function t(e){var n;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.visitor.flagsData.get(e)){t.next=4;break}return V(this.visitor.config,F("No modification for key {0}, no activate will be sent.",e),S),t.abrupt("return");case 4:if(!this.isDeDuplicated(n.variationGroupId+this.visitor.visitorId,this.config.activateDeduplicationTime)){t.next=6;break}return t.abrupt("return");case 6:if(this.hasTrackingManager(S)){t.next=8;break}return t.abrupt("return");case 8:return t.next=10,this.sendActivate(n);case 10:case"end":return t.stop()}}),t,this)}))),function(t){return v.apply(this,arguments)})},{key:"sendHit",value:function(t){return this.hasTrackingManager(A)?this.prepareAndSendHit(t):Promise.resolve()}},{key:"sendHits",value:(p=X(et().mark((function t(e){var n=this;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.hasTrackingManager(A)){t.next=2;break}return t.abrupt("return");case 2:e.forEach((function(t){return n.prepareAndSendHit(t)}));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return p.apply(this,arguments)})},{key:"getHitLegacy",value:function(t){var e=null;if(!t||!t.type)return null;var n={type:{Screen:g.SCREEN_VIEW,ScreenView:g.SCREEN_VIEW,Transaction:g.TRANSACTION,Page:g.PAGE_VIEW,PageView:g.PAGE_VIEW,Item:g.ITEM,Event:g.EVENT}[t.type]},r=ie(ie({},n),t.data);switch(n.type.toUpperCase()){case g.EVENT:e=new st(r);break;case g.ITEM:var i=t.data;e=new ft(ie(ie({},r),{},{productName:i.name,productSku:i.code,transactionId:i.transactionId,itemCategory:i.category,itemPrice:i.price,itemQuantity:i.quantity}));break;case g.PAGE_VIEW:e=new pt(r);break;case g.SCREEN_VIEW:e=new dt(r);break;case g.TRANSACTION:e=new bt(t.data)}return e}},{key:"getHit",value:function(t){var e,n=this,r=null;if(!t||!t.type)return r;switch(t.type.toUpperCase()){case g.EVENT:r=new st(t);break;case g.ITEM:r=new ft(t);break;case g.PAGE_VIEW:r=new pt(t);break;case g.SCREEN_VIEW:r=new dt(t);break;case g.TRANSACTION:r=new bt(t);break;case te:r=new ee({hits:null==t||null==(e=t.hits)?void 0:e.map((function(t){return n.getHit(t)})).filter((function(t){return t}))})}return r}},{key:"prepareAndSendHit",value:(h=X(et().mark((function t(e){var n,r,i,o;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e instanceof it)){t.next=4;break}n=e,t.next=18;break;case 4:if(!("data"in e)){t.next=13;break}if(r=e,i=this.getHitLegacy(r)){t.next=10;break}return V(this.config,oe,A),t.abrupt("return");case 10:n=i,t.next=18;break;case 13:if(o=this.getHit(e)){t.next=17;break}return V(this.config,oe,A),t.abrupt("return");case 17:n=o;case 18:if(n.visitorId=this.visitor.visitorId,n.ds="APP",n.config=this.config,n.anonymousId=this.visitor.anonymousId,!this.isDeDuplicated(JSON.stringify(n),this.config.hitDeduplicationTime)){t.next=24;break}return t.abrupt("return");case 24:if(n.isReady()){t.next=27;break}return V(this.config,n.getErrorMessage(),A),t.abrupt("return");case 27:return t.prev=27,t.next=30,this.trackingManager.sendHit(n);case 30:t.next=36;break;case 32:t.prev=32,t.t0=t.catch(27),V(this.config,t.t0.message||t.t0,A),this.cacheHit(n);case 36:case"end":return t.stop()}}),t,this,[[27,32]])}))),function(t){return h.apply(this,arguments)})},{key:"getAllModifications",value:(l=X(et().mark((function t(){var e,n=arguments;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]&&n[0],t.abrupt("return",this.getAllFlagsData(e));case 2:case"end":return t.stop()}}),t,this)}))),function(){return l.apply(this,arguments)})},{key:"getAllFlagsData",value:(f=X(et().mark((function t(e){var n=this;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e&&this.visitor.flagsData.forEach((function(t,e){n.activateModification(e)})),t.abrupt("return",{visitorId:this.visitor.visitorId,campaigns:this.visitor.campaigns});case 2:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"getModificationsForCampaign",value:(u=X(et().mark((function t(e){var n,r=arguments;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.length>1&&void 0!==r[1]&&r[1],t.abrupt("return",this.getFlatsDataForCampaign(e,n));case 2:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"getFlatsDataForCampaign",value:(c=X(et().mark((function t(e,n){var r=this;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n&&this.visitor.flagsData.forEach((function(t){t.campaignId===e&&r.userExposed({key:t.key,flag:t,defaultValue:t.value})})),t.abrupt("return",{visitorId:this.visitor.visitorId,campaigns:this.visitor.campaigns.filter((function(t){return t.id===e}))});case 2:case"end":return t.stop()}}),t,this)}))),function(t,e){return c.apply(this,arguments)})},{key:"authenticate",value:function(t){var e="authenticate";this.config.decisionMode!==D.BUCKETING?t?(this.visitor.anonymousId=this.visitor.visitorId,this.visitor.visitorId=t):V(this.config,w,e):this.logDeactivateOnBucketing(e)}},{key:"unauthenticate",value:function(){var t="unauthenticate";this.config.decisionMode!==D.BUCKETING?this.visitor.anonymousId?(this.visitor.visitorId=this.visitor.anonymousId,this.visitor.anonymousId=null):V(this.config,"Visitor is not authenticated yet",t):this.logDeactivateOnBucketing(t)}},{key:"fetchFlags",value:(i=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.globalFetchFlags("fetchFlags"));case 1:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"userExposed",value:(n=X(et().mark((function t(e){var n,r,i,o;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.key,r=e.flag,i=e.defaultValue,o="userExposed",r){t.next=5;break}return G(this.visitor.config,F("No flag for key {0}, no activate will be sent",n),o),t.abrupt("return");case 5:if(!r.value||K(r.value,i)){t.next=8;break}return G(this.visitor.config,F("Flag for key {0} has a different type with defaultValue, no activate will be sent",n),o),t.abrupt("return");case 8:if(!this.isDeDuplicated(r.variationGroupId+this.visitor.visitorId,this.config.activateDeduplicationTime)){t.next=10;break}return t.abrupt("return");case 10:if(this.hasTrackingManager(o)){t.next=12;break}return t.abrupt("return");case 12:return t.abrupt("return",this.sendActivate(r,o));case 13:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"getFlagValue",value:function(t){var e=t.key,n=t.defaultValue,r=t.flag,i=t.userExposed,o="getFlag value";return r?r.value?K(r.value,n)?(i&&this.userExposed({key:e,flag:r,defaultValue:n}),r.value):(G(this.config,F("Flag for key {0} has a different type. Default value is returned.",e),o),n):(i&&this.userExposed({key:e,flag:r,defaultValue:n}),n):(G(this.config,F("No Flag for key {0}. Default value is returned.",e),o),n)}},{key:"getFlagMetadata",value:function(t){var e=t.metadata,n=t.hasSameType,r=t.key;return n?e:(G(this.visitor.config,F("Flag for key {0} has a different type with defaultValue, an empty metadata object is returned",r),"flag.metadata"),ne.Empty())}},{key:"logDeactivateOnBucketing",value:function(t){V(this.config,F("Method {0} is deactivated on Bucketing mode.",t),t)}}]),T}(Mt),se=function(t){o(y,t);var e,n,i,c,u,f,l,h,p,g,d=(p=y,g=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(p);if(g){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function y(){return d.apply(this,arguments)}return r(y,[{key:"synchronizeModifications",value:(h=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("synchronizeModifications");case 1:case"end":return t.stop()}}),t,this)}))),function(){return h.apply(this,arguments)})},{key:"getModificationSync",value:function(t){return this.log("getModification"),t.defaultValue}},{key:"getModificationsSync",value:function(t,e){this.log("getModifications");var n={};return t.forEach((function(t){n[t.key]=t.defaultValue})),n}},{key:"lookupHits",value:(l=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return l.apply(this,arguments)})},{key:"lookupVisitor",value:(f=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return f.apply(this,arguments)})},{key:"cacheVisitor",value:(u=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return u.apply(this,arguments)})},{key:"getModificationInfoSync",value:function(t){return this.log("getModificationInfo"),null}},{key:"activateModification",value:(c=X(et().mark((function t(e){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModification");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"activateModifications",value:(i=X(et().mark((function t(e){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModifications");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"sendHit",value:function(t){return this.log("sendHit"),Promise.resolve()}},{key:"sendHits",value:function(t){return this.log("sendHits"),Promise.resolve()}},{key:"fetchFlags",value:(n=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("fetchFlags");case 1:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"getFlagValue",value:function(t){return this.log("Flag.value"),t.defaultValue}},{key:"userExposed",value:(e=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("userExposed");case 1:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"getFlagMetadata",value:function(){return this.log("flag.metadata"),ne.Empty()}},{key:"log",value:function(t){V(this.config,F(O,t,v[v.NOT_INITIALIZED]),t)}}]),y}(ae),ce=function(t){o(d,t);var e,n,i,c,u,f,l,h,p,g=(h=d,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(h);if(p){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function d(){return g.apply(this,arguments)}return r(d,[{key:"setConsent",value:function(t){this.visitor.hasConsented=t,V(this.config,F("Send consent hit is deactivated while SDK status is: {1}.",v[v.READY_PANIC_ON]),"setConsent")}},{key:"updateContext",value:function(t){this.log("updateContext")}},{key:"clearContext",value:function(){this.log("clearContext")}},{key:"getModificationSync",value:function(t){return this.log("getModification"),t.defaultValue}},{key:"lookupHits",value:(l=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return l.apply(this,arguments)})},{key:"lookupVisitor",value:(f=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return f.apply(this,arguments)})},{key:"cacheVisitor",value:(u=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return u.apply(this,arguments)})},{key:"cacheHit",value:(c=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return c.apply(this,arguments)})},{key:"fetchVisitorCampaigns",value:function(){return[]}},{key:"getModificationsSync",value:function(t,e){this.log("getModifications");var n={};return t.forEach((function(t){n[t.key]=t.defaultValue})),n}},{key:"getModificationInfoSync",value:function(t){return this.log("getModificationInfo"),null}},{key:"activateModification",value:(i=X(et().mark((function t(e){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModification");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"activateModifications",value:(n=X(et().mark((function t(e){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModifications");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"sendHit",value:function(t){return this.log("sendHit"),Promise.resolve()}},{key:"sendHits",value:function(t){return this.log("sendHits"),Promise.resolve()}},{key:"getFlagValue",value:function(t){return this.log("Flag.value"),t.defaultValue}},{key:"userExposed",value:(e=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("userExposed");case 1:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"getFlagMetadata",value:function(){return this.log("flag.metadata"),ne.Empty()}},{key:"log",value:function(t){V(this.config,F(O,t,v[v.READY_PANIC_ON]),t)}}]),d}(ae),ue=function(t){o(g,t);var e,n,i,c,u,f,l,h,p,v=(h=g,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(h);if(p){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function g(){return v.apply(this,arguments)}return r(g,[{key:"activateModification",value:(l=X(et().mark((function t(e){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModification");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"activateModifications",value:(f=X(et().mark((function t(e){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("activateModifications");case 1:case"end":return t.stop()}}),t,this)}))),function(t){return f.apply(this,arguments)})},{key:"lookupHits",value:(u=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return u.apply(this,arguments)})},{key:"lookupVisitor",value:(c=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return c.apply(this,arguments)})},{key:"cacheVisitor",value:(i=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})},{key:"cacheHit",value:(n=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)})},{key:"fetchVisitorCampaigns",value:function(){return[]}},{key:"sendHit",value:function(t){return this.log("sendHit"),Promise.resolve()}},{key:"sendHits",value:function(t){return this.log("sendHits"),Promise.resolve()}},{key:"userExposed",value:(e=X(et().mark((function t(){return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.log("userExposed");case 1:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"log",value:function(t){V(this.config,F("Method {0} is deactivated for visitor {1} : visitor did not consent.",t,this.visitor.visitorId),t)}}]),g}(ae),fe="FS_CLIENT_VISITOR",le=function(t){o(c,t);var e,n,i=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function c(t){var e,n=t.visitorId,r=t.configManager,o=t.context,a=t.isAuthenticated,s=t.hasConsented,c=t.initialModifications,u=t.initialFlagsData,f=t.initialCampaigns;(e=i.call(this))._isCleaningDeDuplicationCache=!1,e.deDuplicationCache={},e._context={},e._configManager=r;var l=e.config.enableClientCache?function(){var t=null;try{t=localStorage.getItem(fe)}catch(t){}return t?JSON.parse(t):null}():null;return e.visitorId=n||(null==l?void 0:l.visitorId)||e.createVisitorId(),e.setConsent(null==s||s),e.campaigns=[],e.updateContext(o),e._anonymousId=(null==l?void 0:l.anonymousId)||null,e.loadPredefinedContext(),!e._anonymousId&&a&&e.config.decisionMode===D.DECISION_API&&(e._anonymousId=e.uuidV4()),e.updateCache(),e.setInitialFlags(u||c),e.setInitializeCampaigns(f,!!c),e.getStrategy().lookupVisitor(),e.getStrategy().lookupHits(),e}return r(c,[{key:"clearDeDuplicationCache",value:function(t){if(!this._isCleaningDeDuplicationCache){this._isCleaningDeDuplicationCache=!0;for(var e=0,n=Object.entries(this.deDuplicationCache);e<n.length;e++){var r=Ot(n[e],2),i=r[0],o=r[1];Date.now()-o>1e3*t&&delete this.deDuplicationCache[i]}this._isCleaningDeDuplicationCache=!1}}},{key:"getModificationsArray",value:function(){return Array.from(this._flags,(function(t){var e=Ot(t,2);return e[0],e[1]}))}},{key:"getFlagsDataArray",value:function(){return Array.from(this._flags,(function(t){var e=Ot(t,2);return e[0],e[1]}))}},{key:"setInitialFlags",value:function(t){var e=this;this._flags=new Map,t&&(t instanceof Map||Array.isArray(t))&&t.forEach((function(t){e._flags.set(t.key,t)}))}},{key:"setInitializeCampaigns",value:function(t,e){t&&Array.isArray(t)&&!e&&this.getStrategy().updateCampaigns(t)}},{key:"updateCache",value:function(){!function(t){try{localStorage.setItem(fe,JSON.stringify(t))}catch(t){}}({visitorId:this.visitorId,anonymousId:this.anonymousId})}},{key:"loadPredefinedContext",value:function(){this.context.fs_client=d.name,this.context.fs_version=m,this.context.fs_users=this.visitorId}},{key:"uuidV4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}},{key:"createVisitorId",value:function(){var t=new Date,e=Math.floor(89999*Math.random()+1e4),n=function(t){return 1===t.toString().length?"0".concat(t):t};return"".concat(t.getFullYear()).concat(n(t.getMonth()+1)).concat(n(t.getDate())).concat(n(t.getHours())).concat(n(t.getMinutes())).concat(e)}},{key:"visitorId",get:function(){return this._visitorId},set:function(t){t&&"string"==typeof t?(this._visitorId=t,this.loadPredefinedContext(),this.visitorCache=void 0):V(this.config,w,"VISITOR ID")}},{key:"hasConsented",get:function(){return this._hasConsented},set:function(t){this._hasConsented=t}},{key:"setConsent",value:function(t){this.hasConsented=t,this.getStrategy().setConsent(t)}},{key:"context",get:function(){return this._context},set:function(t){this._context={},this.updateContext(t)}},{key:"flagsData",get:function(){return this._flags},set:function(t){this._flags=t}},{key:"modifications",get:function(){return this._flags},set:function(t){this._flags=t}},{key:"configManager",get:function(){return this._configManager}},{key:"config",get:function(){return this.configManager.config}},{key:"campaigns",get:function(){return this._campaigns},set:function(t){this._campaigns=t}},{key:"anonymousId",get:function(){return this._anonymousId},set:function(t){this._anonymousId=t}},{key:"getStrategy",value:function(){return Ee.getStatus()&&Ee.getStatus()!==v.NOT_INITIALIZED?Ee.getStatus()===v.READY_PANIC_ON?new ce(this):this.hasConsented?new ae(this):new ue(this):new se(this)}}]),c}(u.EventEmitter),he=function(){function t(t){var e=t.key,n=t.visitor,r=t.defaultValue;this._key=e,this._visitor=n,this._defaultValue=r}return r(t,[{key:"exists",value:function(){var t=this._visitor.flagsData.get(this._key);return!!(null!=t&&t.campaignId&&t.variationId&&t.variationGroupId)}},{key:"metadata",get:function(){var t=this._visitor.flagsData.get(this._key),e=new ne({campaignId:(null==t?void 0:t.campaignId)||"",variationGroupId:(null==t?void 0:t.variationGroupId)||"",variationId:(null==t?void 0:t.variationId)||"",isReference:!(null==t||!t.isReference),campaignType:(null==t?void 0:t.campaignType)||""});return t?this._visitor.getFlagMetadata({metadata:e,hasSameType:!t.value||K(t.value,this._defaultValue),key:t.key}):e}},{key:"userExposed",value:function(){var t=this._visitor.flagsData.get(this._key);return this._visitor.userExposed({key:this._key,flag:t,defaultValue:this._defaultValue})}},{key:"getValue",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this._visitor.flagsData.get(this._key);return this._visitor.getFlagValue({key:this._key,defaultValue:this._defaultValue,flag:e,userExposed:t})}}]),t}(),pe=function(t){o(c,t);var e,n,i=(e=c,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=s(e);if(n){var i=s(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return a(this,t)});function c(){return i.apply(this,arguments)}return r(c,[{key:"updateContext",value:function(t){this.getStrategy().updateContext(t),this.loadPredefinedContext()}},{key:"clearContext",value:function(){this.getStrategy().clearContext()}},{key:"getFlag",value:function(t,e){return new he({key:t,visitor:this,defaultValue:e})}},{key:"getModification",value:function(t){return this.getStrategy().getModification(t)}},{key:"getModificationSync",value:function(t){return this.getStrategy().getModificationSync(t)}},{key:"getModifications",value:function(t,e){return this.getStrategy().getModifications(t,e)}},{key:"getModificationsSync",value:function(t,e){return this.getStrategy().getModificationsSync(t,e)}},{key:"getModificationInfo",value:function(t){return this.getStrategy().getModificationInfo(t)}},{key:"getModificationInfoSync",value:function(t){return this.getStrategy().getModificationInfoSync(t)}},{key:"synchronizeModifications",value:function(){return this.getStrategy().synchronizeModifications()}},{key:"activateModification",value:function(t){return this.getStrategy().activateModification(t)}},{key:"activateModifications",value:function(t){return this.getStrategy().activateModifications(t)}},{key:"sendHit",value:function(t){return this.getStrategy().sendHit(t)}},{key:"sendHits",value:function(t){return this.getStrategy().sendHits(t)}},{key:"getAllModifications",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getStrategy().getAllModifications(t)}},{key:"getAllFlagsData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getStrategy().getAllFlagsData(t)}},{key:"getModificationsForCampaign",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getStrategy().getModificationsForCampaign(t,e)}},{key:"getFlatsDataForCampaign",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getStrategy().getFlatsDataForCampaign(t,e)}},{key:"authenticate",value:function(t){this.getStrategy().authenticate(t),this.updateCache()}},{key:"unauthenticate",value:function(){this.getStrategy().unauthenticate(),this.updateCache()}},{key:"fetchFlags",value:function(){return this.getStrategy().fetchFlags()}},{key:"userExposed",value:function(t){return this.getStrategy().userExposed(t)}},{key:"getFlagValue",value:function(t){return this.getStrategy().getFlagValue(t)}},{key:"getFlagMetadata",value:function(t){return this.getStrategy().getFlagMetadata(t)}}]),c}(le);function ve(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ge(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ge(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n(518),n(350),n(507),n(389),n(386),n(225);var de=function(e){o(h,e);var n,i,c,u,f,l=(u=h,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=s(u);if(f){var n=s(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return a(this,t)});function h(t,e,n){var r;return(r=l.call(this,t,e))._murmurHash=n,r._isFirstPooling=!0,e.initialBucketing&&(r._bucketingContent=e.initialBucketing),r}return r(h,[{key:"finishLoop",value:function(t){if(200===t.status&&(this._bucketingContent=t.body),t.headers&&t.headers["last-modified"]){var e=t.headers["last-modified"];this._lastModified!==e&&this.config.onBucketingUpdated&&this.config.onBucketingUpdated(new Date(e)),this._lastModified=e}this._isFirstPooling&&(this._isFirstPooling=!1,this.updateFlagshipStatus(v.READY)),"function"==typeof this.config.onBucketingSuccess&&this.config.onBucketingSuccess({status:t.status,payload:this._bucketingContent}),this._isPooling=!1}},{key:"startPolling",value:function(){var t,e=this,n=1e3*(null!=(t=this.config.pollingInterval)?t:2);G(this.config,"Bucketing polling starts","startPolling"),this.polling(),0!==n&&(this._intervalID=setInterval((function(){e.polling()}),n))}},{key:"polling",value:(c=X(et().mark((function t(){var e,n,r,i;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._isPooling){t.next=2;break}return t.abrupt("return");case 2:return this._isPooling=!0,this._isFirstPooling&&this.updateFlagshipStatus(v.POLLING),t.prev=4,n=F("https://cdn.flagship.io/{0}/bucketing.json",this.config.envId),Y(e={},R,"".concat(this.config.apiKey)),Y(e,N,d.name),Y(e,P,m),Y(e,j,T),r=e,this._lastModified&&(r["if-modified-since"]=this._lastModified),t.next=10,this._httpClient.getAsync(n,{headers:r,timeout:this.config.timeout});case 10:i=t.sent,this.finishLoop(i),t.next=20;break;case 14:t.prev=14,t.t0=t.catch(4),this._isPooling=!1,V(this.config,t.t0,"startPolling"),this._isFirstPooling&&this.updateFlagshipStatus(v.NOT_INITIALIZED),"function"==typeof this.config.onBucketingFail&&this.config.onBucketingFail(new Error(t.t0));case 20:case"end":return t.stop()}}),t,this,[[4,14]])}))),function(){return c.apply(this,arguments)})},{key:"stopPolling",value:function(){clearInterval(this._intervalID),this._isPooling=!1,G(this.config,"Bucketing polling stopped","stopPolling")}},{key:"sendContext",value:(i=X(et().mark((function t(e){var n,r,i,o;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!(Object.keys(e.context).length<=3)){t.next=3;break}return t.abrupt("return");case 3:return r=F("https://decision.flagship.io/v2/{0}/events",this.config.envId),Y(n={},R,"".concat(this.config.apiKey)),Y(n,N,d.name),Y(n,P,m),Y(n,j,T),i=n,o={visitorId:e.visitorId,type:"CONTEXT",data:e.context},t.next=8,this._httpClient.postAsync(r,{headers:i,body:o,timeout:this.config.timeout});case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),V(this.config,t.t0.message||t.t0,"sendContext");case 13:case"end":return t.stop()}}),t,this,[[0,10]])}))),function(t){return i.apply(this,arguments)})},{key:"getCampaignsAsync",value:(n=X(et().mark((function t(e){var n,r=this;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._bucketingContent){t.next=2;break}return t.abrupt("return",[]);case 2:if(!this._bucketingContent.panic){t.next=5;break}return this.panic=!0,t.abrupt("return",[]);case 5:if(this.panic=!1,this._bucketingContent.campaigns){t.next=8;break}return t.abrupt("return",[]);case 8:return this.sendContext(e),n=[],this._bucketingContent.campaigns.forEach((function(t){var i=r.getVisitorCampaigns(t.variationGroups,t.id,t.type,e);i&&n.push(i)})),t.abrupt("return",n);case 12:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"getVisitorCampaigns",value:function(t,e,n,r){var i,o=ve(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(this.isMatchTargeting(a,r)){var s=this.getVariation(a,r);return s?{id:e,variation:s,variationGroupId:a.id,type:n}:null}}}catch(t){o.e(t)}finally{o.f()}return null}},{key:"getVariation",value:function(e,n){var r,i=this._murmurHash.murmurHash3Int32(e.id+n.visitorId)%100,o=0,a=ve(e.variations);try{var s=function(){var t,a,s=r.value,c=null==(t=n.visitorCache)||null==(a=t.data)?void 0:a.assignmentsHistory,u=c?c[e.id]:null;if(u){var f=e.variations.find((function(t){return t.id===u}));return f?{v:{id:f.id,modifications:f.modifications,reference:f.reference}}:"continue"}return void 0===s.allocation?"continue":(o+=s.allocation,i<=o?{v:{id:s.id,modifications:s.modifications,reference:s.reference}}:void 0)};for(a.s();!(r=a.n()).done;){var c=s();if("continue"!==c&&"object"===t(c))return c.v}}catch(t){a.e(t)}finally{a.f()}return null}},{key:"isMatchTargeting",value:function(t,e){var n=this;return!!(t&&t.targeting&&t.targeting.targetingGroups)&&t.targeting.targetingGroups.some((function(t){return n.checkAndTargeting(t.targetings,e)}))}},{key:"isANDListOperator",value:function(t){return["NOT_EQUALS","NOT_CONTAINS"].includes(t)}},{key:"checkAndTargeting",value:function(t,e){var n,r,i=!1,o=ve(t);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.key,c=a.value,u=a.operator;if("fs_all_users"!==s){if("fs_users"===s)n=e.visitorId;else{if(!(s in e.context)){i=!1;break}n=e.context[s]}if(!(i=this.testOperator(u,n,c)))break}else i=!0}}catch(t){o.e(t)}finally{o.f()}return i}},{key:"testListOperatorLoop",value:function(t,e,n,r){var i,o=r,a=ve(n);try{for(a.s();!(i=a.n()).done;){var s=i.value;if((o=this.testOperator(t,e,s))!==r)break}}catch(t){a.e(t)}finally{a.f()}return o}},{key:"testListOperator",value:function(t,e,n){return this.isANDListOperator(t)?this.testListOperatorLoop(t,e,n,!0):this.testListOperatorLoop(t,e,n,!1)}},{key:"testOperator",value:function(t,e,n){var r;if(Array.isArray(n))return this.testListOperator(t,e,n);switch(t){case"EQUALS":r=e===n;break;case"NOT_EQUALS":r=e!==n;break;case"CONTAINS":r=e.toString().includes(n.toString());break;case"NOT_CONTAINS":r=!e.toString().includes(n.toString());break;case"GREATER_THAN":r=e>n;break;case"LOWER_THAN":r=e<n;break;case"GREATER_THAN_OR_EQUALS":r=e>=n;break;case"LOWER_THAN_OR_EQUALS":r=e<=n;break;case"STARTS_WITH":r=e.toString().startsWith(n.toString());break;case"ENDS_WITH":r=e.toString().endsWith(n.toString());break;default:r=!1}return r}}]),h}(nt),ye=function(){function t(){}return r(t,[{key:"murmurHash3Int32",value:function(t){var e,n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=3&t.length,s=t.length-a;e=o;var c=3432918353,u=461845907;for(i=0;i<s;)r=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24,++i,e=27492+(65535&(n=5*(65535&(e=(e^=r=(65535&(r=(r=(65535&r)*c+(((r>>>16)*c&65535)<<16)&4294967295)<<15|r>>>17))*u+(((r>>>16)*u&65535)<<16)&4294967295)<<13|e>>>19))+((5*(e>>>16)&65535)<<16)&4294967295))+((58964+(n>>>16)&65535)<<16);switch(r=0,a){case 3:r^=(255&t.charCodeAt(i+2))<<16;case 2:r^=(255&t.charCodeAt(i+1))<<8;case 1:e^=r=(65535&(r=(r=(65535&(r^=255&t.charCodeAt(i)))*c+(((r>>>16)*c&65535)<<16)&4294967295)<<15|r>>>17))*u+(((r>>>16)*u&65535)<<16)&4294967295}return e^=t.length,e=2246822507*(65535&(e^=e>>>16))+((2246822507*(e>>>16)&65535)<<16)&4294967295,e=3266489909*(65535&(e^=e>>>13))+((3266489909*(e>>>16)&65535)<<16)&4294967295,(e^=e>>>16)>>>0}}]),t}();function me(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function be(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?me(Object(n),!0).forEach((function(e){Y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n(401);var ke=function(){function t(){}var e;return r(t,[{key:"getResponse",value:(e=X(et().mark((function t(e){var n,r,i,o;return et().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.headers.get("Content-Type"),r="application/json"===n,t.next=4,e.text();case 4:if((i=t.sent)&&r&&(i=JSON.parse(i)),!(e.status>=400)){t.next=8;break}throw new Error(i||e.statusText);case 8:return o={},e.headers.forEach((function(t,e){o[e]=t})),t.abrupt("return",{status:e.status,body:i,headers:o});case 11:case"end":return t.stop()}}),t)}))),function(t){return e.apply(this,arguments)})},{key:"getAsync",value:function(t,e){var n=new H,r=setTimeout((function(){return n.abort()}),1e3*(null!=e&&e.timeout?e.timeout:2));return l(t,be(be({},f),{},{method:"GET",headers:null==e?void 0:e.headers,signal:n.signal,keepalive:!0})).then(this.getResponse).catch((function(t){throw t})).finally((function(){clearInterval(r)}))}},{key:"postAsync",value:function(t,e){var n=new H,r=setTimeout((function(){return n.abort()}),e.timeout?1e3*e.timeout:2e3);return l(t,be(be({},f),{},{method:"POST",headers:e.headers,body:JSON.stringify(e.body),signal:n.signal,keepalive:!0})).then(this.getResponse).catch((function(t){throw t})).finally((function(){clearInterval(r)}))}}]),t}(),xe="FS_DEFAULT_HIT_CACHE_",we=function(){function t(){}return r(t,[{key:"cacheHit",value:function(t,e){var n=localStorage.getItem(xe+t),r="";if(n){var i=n.slice(0,-1);r="".concat(i,",").concat(JSON.stringify(e),"]")}else r="[".concat(JSON.stringify(e),"]");return localStorage.setItem(xe+t,r),Promise.resolve()}},{key:"lookupHits",value:function(t){var e=localStorage.getItem(xe+t);return localStorage.removeItem(xe+t),Promise.resolve(e?JSON.parse(e):null)}},{key:"flushHits",value:function(t){return localStorage.removeItem(xe+t),Promise.resolve()}}]),t}(),Oe="FS_VISITOR_CACHE_",Ie=function(){function t(){}return r(t,[{key:"cacheVisitor",value:function(t,e){return localStorage.setItem(Oe+t,JSON.stringify(e)),Promise.resolve()}},{key:"lookupVisitor",value:function(t){var e=localStorage.getItem(Oe+t);return Promise.resolve(e?JSON.parse(e):null)}},{key:"flushVisitor",value:function(t){return localStorage.removeItem(Oe+t),Promise.resolve()}}]),t}(),Ee=function(){function e(){}return r(e,[{key:"configManager",get:function(){return this._configManger},set:function(t){this._configManger=t}},{key:"setStatus",value:function(t){var e=this.getConfig().statusChangedCallback;if(this.getConfig()&&e&&this._status!==t)return this._status=t,void e(t);this._status=t}},{key:"getStatus",value:function(){return this._status}},{key:"getConfig",value:function(){return this._config}},{key:"getVisitor",value:function(){return this._visitorInstance}},{key:"buildConfig",value:function(t){return t instanceof W?t:(null==t?void 0:t.decisionMode)===D.BUCKETING?new _t(t):new J(t)}},{key:"buildDecisionManager",value:function(t,e,n){var r,i=function(e){t.setStatus(e)};if(e.decisionMode===D.BUCKETING){var o=r=new de(n,e,new ye);r.statusChangedCallback(i),o.startPolling()}else(r=new rt(n,e)).statusChangedCallback(i);return r}},{key:"newVisitor",value:function(t,n){return e.newVisitor(t,n)}}],[{key:"getInstance",value:function(){return this._instance||(this._instance=new this),this._instance}},{key:"isReady",value:function(){var t,e,n,r,i,o=null==(t=this._instance)||null==(e=t.getConfig())?void 0:e.apiKey,a=null==(n=this._instance)||null==(r=n.getConfig())?void 0:r.envId,s=null==(i=this._instance)?void 0:i.configManager;return!!(this._instance&&o&&a&&s)}},{key:"getStatus",value:function(){return this.getInstance()._status}},{key:"getConfig",value:function(){return this.getInstance()._config}},{key:"getVisitor",value:function(){return this.getInstance().getVisitor()}},{key:"start",value:function(e,n,r){var i,o=this.getInstance();if((r=o.buildConfig(r)).envId=e,r.apiKey=n,o._config=r,o.setStatus(v.STARTING),r.logManager||(r.logManager=new xt),!e||!n)return o.setStatus(v.NOT_INITIALIZED),V(r,"Params 'envId' and 'apiKey' must not be null or empty.",I),null;var a=null==(i=o.configManager)?void 0:i.decisionManager;"object"===t(a)&&a instanceof de&&a.stopPolling();var s=new ke;a=o.buildDecisionManager(o,r,s);var c=new kt(s,r);return o.configManager?(o.configManager.config=r,o.configManager.decisionManager=a,o.configManager.trackingManager=c):o.configManager=new Q(r,a,c),!r.hitCacheImplementation&&U()&&(r.hitCacheImplementation=new we),!r.visitorCacheImplementation&&U()&&(r.visitorCacheImplementation=new Ie),this.isReady()?(o._status===v.STARTING&&o.setStatus(v.READY),G(r,F("Flagship SDK (version: {0}) READY",m),I),o):(o.setStatus(v.NOT_INITIALIZED),null)}},{key:"newVisitor",value:function(t,e){if(!this.isReady())return null;var n,r,i,o,a,s,c=!1,u=!0,f=!U();"string"==typeof t||null===t?(n=t||void 0,r=e||{}):(n=null==t?void 0:t.visitorId,r=(null==t?void 0:t.context)||{},c=!(null==t||!t.isAuthenticated),u=null==(a=null==t?void 0:t.hasConsented)||a,i=(null==t?void 0:t.initialFlagsData)||(null==t?void 0:t.initialModifications),o=null==t?void 0:t.initialCampaigns,f=null!=(s=null==t?void 0:t.isNewInstance)?s:f);var l=new pe({visitorId:n,context:r,isAuthenticated:c,hasConsented:u,configManager:this.getInstance().configManager,initialModifications:i,initialCampaigns:o,initialFlagsData:i}),h=new L(l);return this.getInstance()._visitorInstance=f?void 0:h,this.getConfig().fetchNow&&h.fetchFlags(),h}}]),e}();const _e=Ee})(),B})())},821:(t,e,n)=>{"use strict";n.d(e,{e:()=>p,X:()=>v});n(6992),n(1532),n(1539),n(8783),n(3948),n(4747),n(7941),n(2526),n(7327),n(5003),n(9337),n(1817),n(2165),n(7042),n(8309),n(1038);var r=n(6689),i=n.n(r),o=n(3547),a=n(4370);function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h={status:{isLoading:!0,isSdkReady:!1}},p=(0,r.createContext)({state:f({},h)}),v=function(t){var e=t.children,n=t.fetchNow,c=t.envId,u=t.apiKey,l=t.decisionMode,v=t.decisionApiUrl,g=t.timeout,d=t.logLevel,y=t.statusChangedCallback,m=t.logManager,b=t.pollingInterval,k=t.visitorData,x=t.onInitStart,w=t.onInitDone,O=t.onBucketingSuccess,I=t.onBucketingFail,E=t.loadingComponent,_=t.onBucketingUpdated,C=t.onUpdate,S=t.enableClientCache,A=t.initialBucketing,M=t.initialCampaigns,R=t.initialModifications,j=t.initialFlagsData,N=t.fetchFlagsOnBucketingUpdated,P=t.activateDeduplicationTime,T=t.hitDeduplicationTime,D=t.visitorCacheImplementation,L=t.hitCacheImplementation,F=t.disableCache,V=t.language,G=new Map;j&&j.forEach?j.forEach((function(t){G.set(t.key,t)})):R&&R.forEach?R.forEach((function(t){G.set(t.key,t)})):M&&(G=(0,a.B$)(M));var H=s((0,r.useState)(f(f({},h),{},{modifications:G})),2),B=H[0],U=H[1],K=s((0,r.useState)(),2),W=K[0],Y=K[1];function z(t){var e={isSdkReady:t.isSdkReady,isLoading:t.isLoading,isVisitorDefined:!!t.fsVisitor,lastRefresh:(new Date).toISOString()};return U((function(n){return n.status.firstInitSuccess||(e.firstInitSuccess=(new Date).toISOString()),f(f({},n),{},{visitor:t.fsVisitor,modifications:t.fsVisitor.modifications,config:o.Flagship.getConfig(),status:f(f({},n.status),e)})})),e}(0,r.useRef)().current=B,(0,a.N7)((function(){var t;N&&(null===(t=B.visitor)||void 0===t||t.fetchFlags())}),[W]),(0,a.N7)((function(){Q(!0)}),[JSON.stringify(k)]),(0,r.useEffect)((function(){Z()}),[c,u,l]);var $,J=function(t,e){if(e)(0,a.H)(o.Flagship.getConfig(),e.message||e,"onReady");else{var n=z({fsVisitor:t,isSdkReady:!0,isLoading:!1});C&&C({fsModifications:t.modifications,config:o.Flagship.getConfig(),status:n})}},Q=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(k){var e=o.Flagship.newVisitor({visitorId:k.id,context:k.context,isAuthenticated:k.isAuthenticated,hasConsented:k.hasConsented,initialCampaigns:M,initialModifications:R,initialFlagsData:j});null==e||e.on("ready",(function(t){J(e,t)})),n||!e||t||z({fsVisitor:e,isSdkReady:!0,isLoading:!1}),t&&!n&&(null==e||e.fetchFlags())}},q=function(t){switch(y&&y(t),t){case o.FlagshipStatus.STARTING:t===o.FlagshipStatus.STARTING&&x&&x();break;case o.FlagshipStatus.READY_PANIC_ON:case o.FlagshipStatus.READY:w&&w(),Q();break;case o.FlagshipStatus.NOT_INITIALIZED:U((function(t){return f(f({},t),{},{config:o.Flagship.getConfig()})}))}},X=function(t){_&&_(t),Y(t)},Z=function(){o.Flagship.start(c,u,{decisionMode:l,fetchNow:n,timeout:g,logLevel:d,statusChangedCallback:q,logManager:m,pollingInterval:b,onBucketingFail:I,onBucketingSuccess:O,enableClientCache:S,decisionApiUrl:v,onBucketingUpdated:X,initialBucketing:A,activateDeduplicationTime:P,hitDeduplicationTime:T,visitorCacheImplementation:D,hitCacheImplementation:L,disableCache:F,language:V})};return i().createElement(p.Provider,{value:{state:B,setState:U}},($=!B.visitor,B.status.isLoading&&E&&$&&n?i().createElement(i().Fragment,null,E):i().createElement(i().Fragment,null,e)))};v.defaultProps={activateDeduplicationTime:2,hitDeduplicationTime:2,fetchNow:!0,language:1}},4927:(t,e,n)=>{"use strict";n.d(e,{UM:()=>A,pc:()=>S,Nf:()=>C,nr:()=>O,_X:()=>E,GW:()=>w});n(5666),n(4747),n(1539),n(8674),n(1038),n(8783),n(2526),n(1817),n(2165),n(6992),n(3948),n(7042),n(8309),n(7941),n(7327),n(5003),n(9337);var r=n(6689),i=n(821),o=n(4370),a=n(3547),s=n.n(a),c="flagship Visitor not initialized.",u="fsVisitor not initialized, returns default value";function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var l=function(){function t(e){var n,r,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i=void 0,(r="_defaultValue")in(n=this)?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,(0,o.yN)(s().getConfig(),c,"GetFlag"),this._defaultValue=e}var e,n,r;return e=t,(n=[{key:"getValue",value:function(){return(0,o.yN)(s().getConfig(),c,"getValue"),this._defaultValue}},{key:"exists",value:function(){return(0,o.yN)(s().getConfig(),c,"exists"),!1}},{key:"userExposed",value:function(){return(0,o.yN)(s().getConfig(),c,"userExposed"),Promise.resolve()}},{key:"metadata",get:function(){return(0,o.yN)(s().getConfig(),c,"metadata"),new a.FlagMetadata({campaignId:"",campaignType:"",isReference:!1,variationGroupId:"",variationId:""})}}])&&f(e.prototype,n),r&&f(e,r),t}();function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){v(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function y(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function m(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){y(o,r,i,a,s,"next",t)}function s(t){y(o,r,i,a,s,"throw",t)}a(void 0)}))}}function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}var k=function(t,e){return"object"===b(t)&&"object"===b(e)&&Array.isArray(t)===Array.isArray(e)||b(t)===b(e)},x=function(t){var e=t.visitor,n=t.params,r=t.activateAll,i=t.state,a=t.functionName,s=t.config;if(e)return e.getModificationsSync(n,r);var c=!i.status.isSdkReady&&!!i.modifications&&i.modifications.size>0,f={};return c?(n.forEach((function(t){var e,n=null===(e=i.modifications)||void 0===e?void 0:e.get(t.key);n&&k(null==n?void 0:n.value,t.defaultValue)?f[t.key]=n.value:f[t.key]=t.defaultValue})),f):((0,o.yN)(s,u,a),n.forEach((function(t){f[t.key]=t.defaultValue})),f)},w=function(t,e){var n=(0,r.useContext)(i.e).state,o=n.visitor,a=n.config;return x({functionName:"useFsModifications",state:n,visitor:o,config:a,params:t,activateAll:e})},O=function(t){var e,n=(0,r.useContext)(i.e).state,a=n.visitor,s=n.config;if(a)return a.getModificationSync(t);var c=null===(e=n.modifications)||void 0===e?void 0:e.get(t.key);return!n.status.isSdkReady&&c&&k(null==c?void 0:c.value,t.defaultValue)?c.value:((0,o.yN)(s,u,"useFsModifications"),t.defaultValue)},I=function(t){var e,n=t.key,r=t.visitor,i=t.state;if(r)return r.getModificationInfoSync(n);var o=null===(e=i.modifications)||void 0===e?void 0:e.get(n);return!i.status.isSdkReady&&o?o:null},E=function(t){var e=(0,r.useContext)(i.e).state,n=e.visitor;return I({key:t,state:e,visitor:n})},_=function(){var t=m(regeneratorRuntime.mark((function t(e,n,r,i){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,r){t.next=4;break}return(0,o.yN)(i,c,n),t.abrupt("return");case 4:return t.next=6,r.activateModifications(e);case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),(0,o.yN)(i,t.t0.message||t.t0,n);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e,n,r,i){return t.apply(this,arguments)}}(),C=function(t,e){var n=(0,r.useContext)(i.e).state.visitor;return n?n.getFlag(t,e):new l(e)},S=function(){var t=m(regeneratorRuntime.mark((function t(e){var n,o,a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,r.useContext)(i.e),o=n.state,a=o.visitor,s=o.config,"useFsModifications",t.next=5,_(e,"useFsModifications",a,s);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),A=function(){var t=(0,r.useContext)(i.e).state,e=t.visitor,n=t.config,a=null==e?void 0:e.getModificationsArray();!t.status.isSdkReady&&t.modifications&&(a=Array.from(t.modifications,(function(t){var e=g(t,2);e[0];return e[1]})));var s=function(){var t=m(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"activateModification",t.next=3,_(r,"activateModification",e,n);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),u=function(){var t=m(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=3;break}return(0,o.yN)(n,c,"synchronizeModifications"),t.abrupt("return");case 3:return t.next=5,e.synchronizeModifications();case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return{visitorId:null==e?void 0:e.visitorId,anonymousId:null==e?void 0:e.anonymousId,context:p({},null==e?void 0:e.context),hasConsented:null==e?void 0:e.hasConsented,setConsent:function(t){e?e.setConsent(t):(0,o.yN)(n,c,"setConsent")},updateContext:function(t){e?(e.clearContext(),e.updateContext(t)):(0,o.H)(n,c,"updateContext")},clearContext:function(){e?e.clearContext():(0,o.H)(n,c,"cleanContext")},authenticate:function(t){e?e.authenticate(t):(0,o.H)(n,c,"authenticate")},unauthenticate:function(){e?e.unauthenticate():(0,o.H)(n,c,"unauthenticate")},status:t.status,activateModification:s,synchronizeModifications:u,getModifications:function(r,i){return x({functionName:"getModifications",state:t,visitor:e,config:n,params:r,activateAll:i})},modifications:a||[],FlagsData:(null==e?void 0:e.getFlagsDataArray())||[],getModificationInfo:function(n){return I({key:n,state:t,visitor:e})},hit:{send:function(t){return e?e.sendHit(t):((0,o.H)(n,c,"sendHit"),Promise.resolve())},sendMultiple:function(t){return e?e.sendHits(t):((0,o.H)(n,c,"sendHits"),Promise.resolve())}},getFlag:function(t,n){return e?e.getFlag(t,n):new l(n)},fetchFlags:function(){return e?e.fetchFlags():((0,o.yN)(n,c,"fetchFlags"),Promise.resolve())}}}},4370:(t,e,n)=>{"use strict";n.d(e,{H:()=>o,yN:()=>a,B$:()=>s,N7:()=>c});n(6992),n(1532),n(1539),n(8783),n(3948),n(4747),n(4916),n(5306),n(9714);var r=n(3547),i=n(6689);function o(t,e,n){t&&t.logManager&&"function"==typeof t.logManager.error&&t.logLevel&&!(t.logLevel<r.LogLevel.ERROR)&&t.logManager.error(e,n)}function a(t,e,n){t&&t.logManager&&"function"==typeof t.logManager.warning&&t.logLevel&&!(t.logLevel<r.LogLevel.WARNING)&&t.logManager.warning(e,n)}var s=function(t){var e=new Map;return t&&Array.isArray(t)?(t.forEach((function(t){var n=t.variation.modifications.value;for(var r in n){var i=n[r];e.set(r,{key:r,campaignId:t.id,variationGroupId:t.variationGroupId,variationId:t.variation.id,isReference:t.variation.reference,value:i})}})),e):e};function c(t,e){var n=(0,i.useRef)(!0);(0,i.useEffect)((function(){if(!n.current)return"function"==typeof t?t():void 0;n.current=!1}),e)}},9662:(t,e,n)=>{var r=n(614),i=n(6330);t.exports=function(t){if(r(t))return t;throw TypeError(i(t)+" is not a function")}},9483:(t,e,n)=>{var r=n(4411),i=n(6330);t.exports=function(t){if(r(t))return t;throw TypeError(i(t)+" is not a constructor")}},6077:(t,e,n)=>{var r=n(614);t.exports=function(t){if("object"==typeof t||r(t))return t;throw TypeError("Can't set "+String(t)+" as a prototype")}},1223:(t,e,n)=>{var r=n(5112),i=n(30),o=n(3070),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},1530:(t,e,n)=>{"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},5787:t=>{t.exports=function(t,e,n){if(t instanceof e)return t;throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}},9670:(t,e,n)=>{var r=n(111);t.exports=function(t){if(r(t))return t;throw TypeError(String(t)+" is not an object")}},8533:(t,e,n)=>{"use strict";var r=n(2092).forEach,i=n(9341)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},8457:(t,e,n)=>{"use strict";var r=n(9974),i=n(7908),o=n(3411),a=n(7659),s=n(4411),c=n(7466),u=n(6135),f=n(8554),l=n(1246);t.exports=function(t){var e=i(t),n=s(this),h=arguments.length,p=h>1?arguments[1]:void 0,v=void 0!==p;v&&(p=r(p,h>2?arguments[2]:void 0,2));var g,d,y,m,b,k,x=l(e),w=0;if(!x||this==Array&&a(x))for(g=c(e.length),d=n?new this(g):Array(g);g>w;w++)k=v?p(e[w],w):e[w],u(d,w,k);else for(b=(m=f(e,x)).next,d=n?new this:[];!(y=b.call(m)).done;w++)k=v?o(m,p,[y.value,w],!0):y.value,u(d,w,k);return d.length=w,d}},1318:(t,e,n)=>{var r=n(5656),i=n(7466),o=n(1400),a=function(t){return function(e,n,a){var s,c=r(e),u=i(c.length),f=o(a,u);if(t&&n!=n){for(;u>f;)if((s=c[f++])!=s)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2092:(t,e,n)=>{var r=n(9974),i=n(8361),o=n(7908),a=n(7466),s=n(5417),c=[].push,u=function(t){var e=1==t,n=2==t,u=3==t,f=4==t,l=6==t,h=7==t,p=5==t||l;return function(v,g,d,y){for(var m,b,k=o(v),x=i(k),w=r(g,d,3),O=a(x.length),I=0,E=y||s,_=e?E(v,O):n||h?E(v,0):void 0;O>I;I++)if((p||I in x)&&(b=w(m=x[I],I,k),t))if(e)_[I]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return I;case 2:c.call(_,m)}else switch(t){case 4:return!1;case 7:c.call(_,m)}return l?-1:u||f?f:_}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},1194:(t,e,n)=>{var r=n(7293),i=n(5112),o=n(7392),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:(t,e,n)=>{"use strict";var r=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},7475:(t,e,n)=>{var r=n(3157),i=n(4411),o=n(111),a=n(5112)("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,(i(e)&&(e===Array||r(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?Array:e}},5417:(t,e,n)=>{var r=n(7475);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},3411:(t,e,n)=>{var r=n(9670),i=n(9212);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},7072:(t,e,n)=>{var r=n(5112)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},4326:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},648:(t,e,n)=>{var r=n(1694),i=n(614),o=n(4326),a=n(5112)("toStringTag"),s="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),a))?n:s?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},5631:(t,e,n)=>{"use strict";var r=n(3070).f,i=n(30),o=n(2248),a=n(9974),s=n(5787),c=n(408),u=n(654),f=n(6340),l=n(9781),h=n(2423).fastKey,p=n(9909),v=p.set,g=p.getterFor;t.exports={getConstructor:function(t,e,n,u){var f=t((function(t,r){s(t,f,e),v(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),l||(t.size=0),null!=r&&c(r,t[u],{that:t,AS_ENTRIES:n})})),p=g(e),d=function(t,e,n){var r,i,o=p(t),a=y(t,e);return a?a.value=n:(o.last=a={index:i=h(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),l?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},y=function(t,e){var n,r=p(t),i=h(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return o(f.prototype,{clear:function(){for(var t=p(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=this,n=p(e),r=y(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),l?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=p(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!y(this,t)}}),o(f.prototype,n?{get:function(t){var e=y(this,t);return e&&e.value},set:function(t,e){return d(this,0===t?0:t,e)}}:{add:function(t){return d(this,t=0===t?0:t,t)}}),l&&r(f.prototype,"size",{get:function(){return p(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",i=g(e),o=g(r);u(t,e,(function(t,e){v(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),f(e)}}},7710:(t,e,n)=>{"use strict";var r=n(2109),i=n(7854),o=n(4705),a=n(1320),s=n(2423),c=n(408),u=n(5787),f=n(614),l=n(111),h=n(7293),p=n(7072),v=n(8003),g=n(9587);t.exports=function(t,e,n){var d=-1!==t.indexOf("Map"),y=-1!==t.indexOf("Weak"),m=d?"set":"add",b=i[t],k=b&&b.prototype,x=b,w={},O=function(t){var e=k[t];a(k,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!l(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!l(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(o(t,!f(b)||!(y||k.forEach&&!h((function(){(new b).entries().next()})))))x=n.getConstructor(e,t,d,m),s.enable();else if(o(t,!0)){var I=new x,E=I[m](y?{}:-0,1)!=I,_=h((function(){I.has(1)})),C=p((function(t){new b(t)})),S=!y&&h((function(){for(var t=new b,e=5;e--;)t[m](e,e);return!t.has(-0)}));C||((x=e((function(e,n){u(e,x,t);var r=g(new b,e,x);return null!=n&&c(n,r[m],{that:r,AS_ENTRIES:d}),r}))).prototype=k,k.constructor=x),(_||S)&&(O("delete"),O("has"),d&&O("get")),(S||E)&&O(m),y&&k.clear&&delete k.clear}return w[t]=x,r({global:!0,forced:x!=b},w),v(x,t),y||n.setStrong(x,t,d),x}},9920:(t,e,n)=>{var r=n(6656),i=n(3887),o=n(1236),a=n(3070);t.exports=function(t,e){for(var n=i(e),s=a.f,c=o.f,u=0;u<n.length;u++){var f=n[u];r(t,f)||s(t,f,c(e,f))}}},4964:(t,e,n)=>{var r=n(5112)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},8544:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},4994:(t,e,n)=>{"use strict";var r=n(3383).IteratorPrototype,i=n(30),o=n(9114),a=n(8003),s=n(7497),c=function(){return this};t.exports=function(t,e,n){var u=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,u,!1,!0),s[u]=c,t}},8880:(t,e,n)=>{var r=n(9781),i=n(3070),o=n(9114);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9114:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:(t,e,n)=>{"use strict";var r=n(4948),i=n(3070),o=n(9114);t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},654:(t,e,n)=>{"use strict";var r=n(2109),i=n(1913),o=n(6530),a=n(614),s=n(4994),c=n(9518),u=n(7674),f=n(8003),l=n(8880),h=n(1320),p=n(5112),v=n(7497),g=n(3383),d=o.PROPER,y=o.CONFIGURABLE,m=g.IteratorPrototype,b=g.BUGGY_SAFARI_ITERATORS,k=p("iterator"),x="keys",w="values",O="entries",I=function(){return this};t.exports=function(t,e,n,o,p,g,E){s(n,e,o);var _,C,S,A=function(t){if(t===p&&P)return P;if(!b&&t in j)return j[t];switch(t){case x:case w:case O:return function(){return new n(this,t)}}return function(){return new n(this)}},M=e+" Iterator",R=!1,j=t.prototype,N=j[k]||j["@@iterator"]||p&&j[p],P=!b&&N||A(p),T="Array"==e&&j.entries||N;if(T&&(_=c(T.call(new t)))!==Object.prototype&&_.next&&(i||c(_)===m||(u?u(_,m):a(_[k])||h(_,k,I)),f(_,M,!0,!0),i&&(v[M]=I)),d&&p==w&&N&&N.name!==w&&(!i&&y?l(j,"name",w):(R=!0,P=function(){return N.call(this)})),p)if(C={values:A(w),keys:g?P:A(x),entries:A(O)},E)for(S in C)(b||R||!(S in j))&&h(j,S,C[S]);else r({target:e,proto:!0,forced:b||R},C);return i&&!E||j[k]===P||h(j,k,P,{name:p}),v[e]=P,C}},7235:(t,e,n)=>{var r=n(857),i=n(6656),o=n(6061),a=n(3070).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},9781:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(t,e,n)=>{var r=n(7854),i=n(111),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},8324:t=>{t.exports={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}},8509:(t,e,n)=>{var r=n(317)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},7871:t=>{t.exports="object"==typeof window},1528:(t,e,n)=>{var r=n(8113),i=n(7854);t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},6833:(t,e,n)=>{var r=n(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},5268:(t,e,n)=>{var r=n(4326),i=n(7854);t.exports="process"==r(i.process)},1036:(t,e,n)=>{var r=n(8113);t.exports=/web0s(?!.*chrome)/i.test(r)},8113:(t,e,n)=>{var r=n(5005);t.exports=r("navigator","userAgent")||""},7392:(t,e,n)=>{var r,i,o=n(7854),a=n(8113),s=o.process,c=o.Deno,u=s&&s.versions||c&&c.version,f=u&&u.v8;f?i=(r=f.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),t.exports=i&&+i},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,e,n)=>{var r=n(7854),i=n(1236).f,o=n(8880),a=n(1320),s=n(3505),c=n(9920),u=n(4705);t.exports=function(t,e){var n,f,l,h,p,v=t.target,g=t.global,d=t.stat;if(n=g?r:d?r[v]||s(v,{}):(r[v]||{}).prototype)for(f in e){if(h=e[f],l=t.noTargetGet?(p=i(n,f))&&p.value:n[f],!u(g?f:v+(d?".":"#")+f,t.forced)&&void 0!==l){if(typeof h==typeof l)continue;c(h,l)}(t.sham||l&&l.sham)&&o(h,"sham",!0),a(n,f,h,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:(t,e,n)=>{"use strict";n(4916);var r=n(1320),i=n(2261),o=n(7293),a=n(5112),s=n(8880),c=a("species"),u=RegExp.prototype;t.exports=function(t,e,n,f){var l=a(t),h=!o((function(){var e={};return e[l]=function(){return 7},7!=""[t](e)})),p=h&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[l]=/./[l]),n.exec=function(){return e=!0,null},n[l](""),!e}));if(!h||!p||n){var v=/./[l],g=e(l,""[t],(function(t,e,n,r,o){var a=e.exec;return a===i||a===u.exec?h&&!o?{done:!0,value:v.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}));r(String.prototype,t,g[0]),r(u,l,g[1])}f&&s(u[l],"sham",!0)}},6677:(t,e,n)=>{var r=n(7293);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},9974:(t,e,n)=>{var r=n(9662);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},7065:(t,e,n)=>{"use strict";var r=n(9662),i=n(111),o=[].slice,a={},s=function(t,e,n){if(!(e in a)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";a[e]=Function("C,a","return new C("+r.join(",")+")")}return a[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=o.call(arguments,1),a=function(){var r=n.concat(o.call(arguments));return this instanceof a?s(e,r.length,r):e.apply(t,r)};return i(e.prototype)&&(a.prototype=e.prototype),a}},6530:(t,e,n)=>{var r=n(9781),i=n(6656),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},5005:(t,e,n)=>{var r=n(7854),i=n(614),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},1246:(t,e,n)=>{var r=n(648),i=n(8173),o=n(7497),a=n(5112)("iterator");t.exports=function(t){if(null!=t)return i(t,a)||i(t,"@@iterator")||o[r(t)]}},8554:(t,e,n)=>{var r=n(9662),i=n(9670),o=n(1246);t.exports=function(t,e){var n=arguments.length<2?o(t):e;if(r(n))return i(n.call(t));throw TypeError(String(t)+" is not iterable")}},8173:(t,e,n)=>{var r=n(9662);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},647:(t,e,n)=>{var r=n(7908),i=Math.floor,o="".replace,a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,c,u,f){var l=n+t.length,h=c.length,p=s;return void 0!==u&&(u=r(u),p=a),o.call(f,p,(function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":a=u[o.slice(1,-1)];break;default:var s=+o;if(0===s)return r;if(s>h){var f=i(s/10);return 0===f?r:f<=h?void 0===c[f-1]?o.charAt(1):c[f-1]+o.charAt(1):r}a=c[s-1]}return void 0===a?"":a}))}},7854:(t,e,n)=>{var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},6656:(t,e,n)=>{var r=n(7908),i={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return i.call(r(t),e)}},3501:t=>{t.exports={}},842:(t,e,n)=>{var r=n(7854);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},490:(t,e,n)=>{var r=n(5005);t.exports=r("document","documentElement")},4664:(t,e,n)=>{var r=n(9781),i=n(7293),o=n(317);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:(t,e,n)=>{var r=n(7293),i=n(4326),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},9587:(t,e,n)=>{var r=n(614),i=n(111),o=n(7674);t.exports=function(t,e,n){var a,s;return o&&r(a=e.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},2788:(t,e,n)=>{var r=n(614),i=n(5465),o=Function.toString;r(i.inspectSource)||(i.inspectSource=function(t){return o.call(t)}),t.exports=i.inspectSource},2423:(t,e,n)=>{var r=n(2109),i=n(3501),o=n(111),a=n(6656),s=n(3070).f,c=n(8006),u=n(1156),f=n(9711),l=n(6677),h=!1,p=f("meta"),v=0,g=Object.isExtensible||function(){return!0},d=function(t){s(t,p,{value:{objectID:"O"+v++,weakData:{}}})},y=t.exports={enable:function(){y.enable=function(){},h=!0;var t=c.f,e=[].splice,n={};n[p]=1,t(n).length&&(c.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===p){e.call(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,p)){if(!g(t))return"F";if(!e)return"E";d(t)}return t[p].objectID},getWeakData:function(t,e){if(!a(t,p)){if(!g(t))return!0;if(!e)return!1;d(t)}return t[p].weakData},onFreeze:function(t){return l&&h&&g(t)&&!a(t,p)&&d(t),t}};i[p]=!0},9909:(t,e,n)=>{var r,i,o,a=n(8536),s=n(7854),c=n(111),u=n(8880),f=n(6656),l=n(5465),h=n(6200),p=n(3501),v="Object already initialized",g=s.WeakMap;if(a||l.state){var d=l.state||(l.state=new g),y=d.get,m=d.has,b=d.set;r=function(t,e){if(m.call(d,t))throw new TypeError(v);return e.facade=t,b.call(d,t,e),e},i=function(t){return y.call(d,t)||{}},o=function(t){return m.call(d,t)}}else{var k=h("state");p[k]=!0,r=function(t,e){if(f(t,k))throw new TypeError(v);return e.facade=t,u(t,k,e),e},i=function(t){return f(t,k)?t[k]:{}},o=function(t){return f(t,k)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},7659:(t,e,n)=>{var r=n(5112),i=n(7497),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},3157:(t,e,n)=>{var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},614:t=>{t.exports=function(t){return"function"==typeof t}},4411:(t,e,n)=>{var r=n(7293),i=n(614),o=n(648),a=n(5005),s=n(2788),c=[],u=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,l=f.exec,h=!f.exec((function(){})),p=function(t){if(!i(t))return!1;try{return u(Object,c,t),!0}catch(t){return!1}};t.exports=!u||r((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?function(t){if(!i(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h||!!l.call(f,s(t))}:p},4705:(t,e,n)=>{var r=n(7293),i=n(614),o=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n==f||n!=u&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},8730:(t,e,n)=>{var r=n(111),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},111:(t,e,n)=>{var r=n(614);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},1913:t=>{t.exports=!1},7850:(t,e,n)=>{var r=n(111),i=n(4326),o=n(5112)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},2190:(t,e,n)=>{var r=n(614),i=n(5005),o=n(3307);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&Object(t)instanceof e}},408:(t,e,n)=>{var r=n(9670),i=n(7659),o=n(7466),a=n(9974),s=n(8554),c=n(1246),u=n(9212),f=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var l,h,p,v,g,d,y,m=n&&n.that,b=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_ITERATOR),x=!(!n||!n.INTERRUPTED),w=a(e,m,1+b+x),O=function(t){return l&&u(l,"normal",t),new f(!0,t)},I=function(t){return b?(r(t),x?w(t[0],t[1],O):w(t[0],t[1])):x?w(t,O):w(t)};if(k)l=t;else{if(!(h=c(t)))throw TypeError(String(t)+" is not iterable");if(i(h)){for(p=0,v=o(t.length);v>p;p++)if((g=I(t[p]))&&g instanceof f)return g;return new f(!1)}l=s(t,h)}for(d=l.next;!(y=d.call(l)).done;){try{g=I(y.value)}catch(t){u(l,"throw",t)}if("object"==typeof g&&g&&g instanceof f)return g}return new f(!1)}},9212:(t,e,n)=>{var r=n(9670),i=n(8173);t.exports=function(t,e,n){var o,a;r(t);try{if(!(o=i(t,"return"))){if("throw"===e)throw n;return n}o=o.call(t)}catch(t){a=!0,o=t}if("throw"===e)throw n;if(a)throw o;return r(o),n}},3383:(t,e,n)=>{"use strict";var r,i,o,a=n(7293),s=n(614),c=n(30),u=n(9518),f=n(1320),l=n(5112),h=n(1913),p=l("iterator"),v=!1;[].keys&&("next"in(o=[].keys())?(i=u(u(o)))!==Object.prototype&&(r=i):v=!0),null==r||a((function(){var t={};return r[p].call(t)!==t}))?r={}:h&&(r=c(r)),s(r[p])||f(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},7497:t=>{t.exports={}},5948:(t,e,n)=>{var r,i,o,a,s,c,u,f,l=n(7854),h=n(1236).f,p=n(261).set,v=n(6833),g=n(1528),d=n(1036),y=n(5268),m=l.MutationObserver||l.WebKitMutationObserver,b=l.document,k=l.process,x=l.Promise,w=h(l,"queueMicrotask"),O=w&&w.value;O||(r=function(){var t,e;for(y&&(t=k.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},v||y||d||!m||!b?!g&&x&&x.resolve?((u=x.resolve(void 0)).constructor=x,f=u.then,a=function(){f.call(u,r)}):a=y?function(){k.nextTick(r)}:function(){p.call(l,r)}:(s=!0,c=b.createTextNode(""),new m(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),t.exports=O||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},3366:(t,e,n)=>{var r=n(7854);t.exports=r.Promise},133:(t,e,n)=>{var r=n(7392),i=n(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:(t,e,n)=>{var r=n(7854),i=n(614),o=n(2788),a=r.WeakMap;t.exports=i(a)&&/native code/.test(o(a))},8523:(t,e,n)=>{"use strict";var r=n(9662),i=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new i(t)}},3929:(t,e,n)=>{var r=n(7850);t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},30:(t,e,n)=>{var r,i=n(9670),o=n(6048),a=n(748),s=n(3501),c=n(490),u=n(317),f=n(6200),l=f("IE_PROTO"),h=function(){},p=function(t){return"<script>"+t+"</"+"script>"},v=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e;g="undefined"!=typeof document?document.domain&&r?v(r):((e=u("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):v(r);for(var n=a.length;n--;)delete g.prototype[a[n]];return g()};s[l]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h.prototype=i(t),n=new h,h.prototype=null,n[l]=t):n=g(),void 0===e?n:o(n,e)}},6048:(t,e,n)=>{var r=n(9781),i=n(3070),o=n(9670),a=n(1956);t.exports=r?Object.defineProperties:function(t,e){o(t);for(var n,r=a(e),s=r.length,c=0;s>c;)i.f(t,n=r[c++],e[n]);return t}},3070:(t,e,n)=>{var r=n(9781),i=n(4664),o=n(9670),a=n(4948),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e),o(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:(t,e,n)=>{var r=n(9781),i=n(5296),o=n(9114),a=n(5656),s=n(4948),c=n(6656),u=n(4664),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=s(e),u)try{return f(t,e)}catch(t){}if(c(t,e))return o(!i.f.call(t,e),t[e])}},1156:(t,e,n)=>{var r=n(5656),i=n(8006).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(r(t))}},8006:(t,e,n)=>{var r=n(6324),i=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:(t,e)=>{e.f=Object.getOwnPropertySymbols},9518:(t,e,n)=>{var r=n(6656),i=n(614),o=n(7908),a=n(6200),s=n(8544),c=a("IE_PROTO"),u=Object.prototype;t.exports=s?Object.getPrototypeOf:function(t){var e=o(t);if(r(e,c))return e[c];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof Object?u:null}},6324:(t,e,n)=>{var r=n(6656),i=n(5656),o=n(1318).indexOf,a=n(3501);t.exports=function(t,e){var n,s=i(t),c=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~o(u,n)||u.push(n));return u}},1956:(t,e,n)=>{var r=n(6324),i=n(748);t.exports=Object.keys||function(t){return r(t,i)}},5296:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},7674:(t,e,n)=>{var r=n(9670),i=n(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},4699:(t,e,n)=>{var r=n(9781),i=n(1956),o=n(5656),a=n(5296).f,s=function(t){return function(e){for(var n,s=o(e),c=i(s),u=c.length,f=0,l=[];u>f;)n=c[f++],r&&!a.call(s,n)||l.push(t?[n,s[n]]:s[n]);return l}};t.exports={entries:s(!0),values:s(!1)}},288:(t,e,n)=>{"use strict";var r=n(1694),i=n(648);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},2140:(t,e,n)=>{var r=n(614),i=n(111);t.exports=function(t,e){var n,o;if("string"===e&&r(n=t.toString)&&!i(o=n.call(t)))return o;if(r(n=t.valueOf)&&!i(o=n.call(t)))return o;if("string"!==e&&r(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},3887:(t,e,n)=>{var r=n(5005),i=n(8006),o=n(5181),a=n(9670);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},857:(t,e,n)=>{var r=n(7854);t.exports=r},2534:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9478:(t,e,n)=>{var r=n(9670),i=n(111),o=n(8523);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},2248:(t,e,n)=>{var r=n(1320);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},1320:(t,e,n)=>{var r=n(7854),i=n(614),o=n(6656),a=n(8880),s=n(3505),c=n(2788),u=n(9909),f=n(6530).CONFIGURABLE,l=u.get,h=u.enforce,p=String(String).split("String");(t.exports=function(t,e,n,c){var u,l=!!c&&!!c.unsafe,v=!!c&&!!c.enumerable,g=!!c&&!!c.noTargetGet,d=c&&void 0!==c.name?c.name:e;i(n)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(n,"name")||f&&n.name!==d)&&a(n,"name",d),(u=h(n)).source||(u.source=p.join("string"==typeof d?d:""))),t!==r?(l?!g&&t[e]&&(v=!0):delete t[e],v?t[e]=n:a(t,e,n)):v?t[e]=n:s(e,n)})(Function.prototype,"toString",(function(){return i(this)&&l(this).source||c(this)}))},7651:(t,e,n)=>{var r=n(9670),i=n(614),o=n(4326),a=n(2261);t.exports=function(t,e){var n=t.exec;if(i(n)){var s=n.call(t,e);return null!==s&&r(s),s}if("RegExp"===o(t))return a.call(t,e);throw TypeError("RegExp#exec called on incompatible receiver")}},2261:(t,e,n)=>{"use strict";var r,i,o=n(1340),a=n(7066),s=n(2999),c=n(2309),u=n(30),f=n(9909).get,l=n(9441),h=n(7168),p=RegExp.prototype.exec,v=c("native-string-replace",String.prototype.replace),g=p,d=(r=/a/,i=/b*/g,p.call(r,"a"),p.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),y=s.UNSUPPORTED_Y||s.BROKEN_CARET,m=void 0!==/()??/.exec("")[1];(d||m||y||l||h)&&(g=function(t){var e,n,r,i,s,c,l,h=this,b=f(h),k=o(t),x=b.raw;if(x)return x.lastIndex=h.lastIndex,e=g.call(x,k),h.lastIndex=x.lastIndex,e;var w=b.groups,O=y&&h.sticky,I=a.call(h),E=h.source,_=0,C=k;if(O&&(-1===(I=I.replace("y","")).indexOf("g")&&(I+="g"),C=k.slice(h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==k.charAt(h.lastIndex-1))&&(E="(?: "+E+")",C=" "+C,_++),n=new RegExp("^(?:"+E+")",I)),m&&(n=new RegExp("^"+E+"$(?!\\s)",I)),d&&(r=h.lastIndex),i=p.call(O?n:h,C),O?i?(i.input=i.input.slice(_),i[0]=i[0].slice(_),i.index=h.lastIndex,h.lastIndex+=i[0].length):h.lastIndex=0:d&&i&&(h.lastIndex=h.global?i.index+i[0].length:r),m&&i&&i.length>1&&v.call(i[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)})),i&&w)for(i.groups=c=u(null),s=0;s<w.length;s++)c[(l=w[s])[0]]=i[l[1]];return i}),t.exports=g},7066:(t,e,n)=>{"use strict";var r=n(9670);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},2999:(t,e,n)=>{var r=n(7293),i=n(7854).RegExp;e.UNSUPPORTED_Y=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},9441:(t,e,n)=>{var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},7168:(t,e,n)=>{var r=n(7293),i=n(7854).RegExp;t.exports=r((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},4488:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:(t,e,n)=>{var r=n(7854);t.exports=function(t,e){try{Object.defineProperty(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},6340:(t,e,n)=>{"use strict";var r=n(5005),i=n(3070),o=n(5112),a=n(9781),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},8003:(t,e,n)=>{var r=n(3070).f,i=n(6656),o=n(5112)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},6200:(t,e,n)=>{var r=n(2309),i=n(9711),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:(t,e,n)=>{var r=n(7854),i=n(3505),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},2309:(t,e,n)=>{var r=n(1913),i=n(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},6707:(t,e,n)=>{var r=n(9670),i=n(9483),o=n(5112)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[o])?e:i(n)}},8710:(t,e,n)=>{var r=n(9958),i=n(1340),o=n(4488),a=function(t){return function(e,n){var a,s,c=i(o(e)),u=r(n),f=c.length;return u<0||u>=f?t?"":void 0:(a=c.charCodeAt(u))<55296||a>56319||u+1===f||(s=c.charCodeAt(u+1))<56320||s>57343?t?c.charAt(u):a:t?c.slice(u,u+2):s-56320+(a-55296<<10)+65536}};t.exports={codeAt:a(!1),charAt:a(!0)}},3111:(t,e,n)=>{var r=n(4488),i=n(1340),o="["+n(1361)+"]",a=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),c=function(t){return function(e){var n=i(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(s,"")),n}};t.exports={start:c(1),end:c(2),trim:c(3)}},261:(t,e,n)=>{var r,i,o,a,s=n(7854),c=n(614),u=n(7293),f=n(9974),l=n(490),h=n(317),p=n(6833),v=n(5268),g=s.setImmediate,d=s.clearImmediate,y=s.process,m=s.MessageChannel,b=s.Dispatch,k=0,x={},w="onreadystatechange";try{r=s.location}catch(t){}var O=function(t){if(x.hasOwnProperty(t)){var e=x[t];delete x[t],e()}},I=function(t){return function(){O(t)}},E=function(t){O(t.data)},_=function(t){s.postMessage(String(t),r.protocol+"//"+r.host)};g&&d||(g=function(t){for(var e=[],n=arguments.length,r=1;n>r;)e.push(arguments[r++]);return x[++k]=function(){(c(t)?t:Function(t)).apply(void 0,e)},i(k),k},d=function(t){delete x[t]},v?i=function(t){y.nextTick(I(t))}:b&&b.now?i=function(t){b.now(I(t))}:m&&!p?(a=(o=new m).port2,o.port1.onmessage=E,i=f(a.postMessage,a,1)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!u(_)?(i=_,s.addEventListener("message",E,!1)):i=w in h("script")?function(t){l.appendChild(h("script")).onreadystatechange=function(){l.removeChild(this),O(t)}}:function(t){setTimeout(I(t),0)}),t.exports={set:g,clear:d}},1400:(t,e,n)=>{var r=n(9958),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},5656:(t,e,n)=>{var r=n(8361),i=n(4488);t.exports=function(t){return r(i(t))}},9958:t=>{var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},7466:(t,e,n)=>{var r=n(9958),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},7908:(t,e,n)=>{var r=n(4488);t.exports=function(t){return Object(r(t))}},7593:(t,e,n)=>{var r=n(111),i=n(2190),o=n(8173),a=n(2140),s=n(5112)("toPrimitive");t.exports=function(t,e){if(!r(t)||i(t))return t;var n,c=o(t,s);if(c){if(void 0===e&&(e="default"),n=c.call(t,e),!r(n)||i(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},4948:(t,e,n)=>{var r=n(7593),i=n(2190);t.exports=function(t){var e=r(t,"string");return i(e)?e:String(e)}},1694:(t,e,n)=>{var r={};r[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(r)},1340:(t,e,n)=>{var r=n(648);t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},6330:t=>{t.exports=function(t){try{return String(t)}catch(t){return"Object"}}},9711:t=>{var e=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+n).toString(36)}},3307:(t,e,n)=>{var r=n(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:(t,e,n)=>{var r=n(5112);e.f=r},5112:(t,e,n)=>{var r=n(7854),i=n(2309),o=n(6656),a=n(9711),s=n(133),c=n(3307),u=i("wks"),f=r.Symbol,l=c?f:f&&f.withoutSetter||a;t.exports=function(t){return o(u,t)&&(s||"string"==typeof u[t])||(s&&o(f,t)?u[t]=f[t]:u[t]=l("Symbol."+t)),u[t]}},1361:t=>{t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},2222:(t,e,n)=>{"use strict";var r=n(2109),i=n(7293),o=n(3157),a=n(111),s=n(7908),c=n(7466),u=n(6135),f=n(5417),l=n(1194),h=n(5112),p=n(7392),v=h("isConcatSpreadable"),g=9007199254740991,d="Maximum allowed index exceeded",y=p>=51||!i((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),m=l("concat"),b=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,forced:!y||!m},{concat:function(t){var e,n,r,i,o,a=s(this),l=f(a,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(b(o=-1===e?a:arguments[e])){if(h+(i=c(o.length))>g)throw TypeError(d);for(n=0;n<i;n++,h++)n in o&&u(l,h,o[n])}else{if(h>=g)throw TypeError(d);u(l,h++,o)}return l.length=h,l}})},7327:(t,e,n)=>{"use strict";var r=n(2109),i=n(2092).filter;r({target:"Array",proto:!0,forced:!n(1194)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},9826:(t,e,n)=>{"use strict";var r=n(2109),i=n(2092).find,o=n(1223),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},1038:(t,e,n)=>{var r=n(2109),i=n(8457);r({target:"Array",stat:!0,forced:!n(7072)((function(t){Array.from(t)}))},{from:i})},6699:(t,e,n)=>{"use strict";var r=n(2109),i=n(1318).includes,o=n(1223);r({target:"Array",proto:!0},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},6992:(t,e,n)=>{"use strict";var r=n(5656),i=n(1223),o=n(7497),a=n(9909),s=n(654),c="Array Iterator",u=a.set,f=a.getterFor(c);t.exports=s(Array,"Array",(function(t,e){u(this,{type:c,target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},1249:(t,e,n)=>{"use strict";var r=n(2109),i=n(2092).map;r({target:"Array",proto:!0,forced:!n(1194)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},7042:(t,e,n)=>{"use strict";var r=n(2109),i=n(3157),o=n(4411),a=n(111),s=n(1400),c=n(7466),u=n(5656),f=n(6135),l=n(5112),h=n(1194)("slice"),p=l("species"),v=[].slice,g=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(t,e){var n,r,l,h=u(this),d=c(h.length),y=s(t,d),m=s(void 0===e?d:e,d);if(i(h)&&(n=h.constructor,(o(n)&&(n===Array||i(n.prototype))||a(n)&&null===(n=n[p]))&&(n=void 0),n===Array||void 0===n))return v.call(h,y,m);for(r=new(void 0===n?Array:n)(g(m-y,0)),l=0;y<m;y++,l++)y in h&&f(r,l,h[y]);return r.length=l,r}})},8309:(t,e,n)=>{var r=n(9781),i=n(6530).EXISTS,o=n(3070).f,a=Function.prototype,s=a.toString,c=/^\s*function ([^ (]*)/;r&&!i&&o(a,"name",{configurable:!0,get:function(){try{return s.call(this).match(c)[1]}catch(t){return""}}})},1532:(t,e,n)=>{"use strict";var r=n(7710),i=n(5631);t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},3689:(t,e,n)=>{var r=n(2109),i=Math.ceil,o=Math.floor;r({target:"Math",stat:!0},{trunc:function(t){return(t>0?o:i)(t)}})},9653:(t,e,n)=>{"use strict";var r=n(9781),i=n(7854),o=n(4705),a=n(1320),s=n(6656),c=n(4326),u=n(9587),f=n(2190),l=n(7593),h=n(7293),p=n(30),v=n(8006).f,g=n(1236).f,d=n(3070).f,y=n(3111).trim,m="Number",b=i.Number,k=b.prototype,x=c(p(k))==m,w=function(t){if(f(t))throw TypeError("Cannot convert a Symbol value to a number");var e,n,r,i,o,a,s,c,u=l(t,"number");if("string"==typeof u&&u.length>2)if(43===(e=(u=y(u)).charCodeAt(0))||45===e){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(a=(o=u.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>i)return NaN;return parseInt(o,r)}return+u};if(o(m,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var O,I=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof I&&(x?h((function(){k.valueOf.call(n)})):c(n)!=m)?u(new b(w(e)),n,I):w(e)},E=r?v(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),_=0;E.length>_;_++)s(b,O=E[_])&&!s(I,O)&&d(I,O,g(b,O));I.prototype=k,k.constructor=I,a(i,m,I)}},3161:(t,e,n)=>{n(2109)({target:"Number",stat:!0},{isInteger:n(8730)})},9720:(t,e,n)=>{var r=n(2109),i=n(4699).entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},5003:(t,e,n)=>{var r=n(2109),i=n(7293),o=n(5656),a=n(1236).f,s=n(9781),c=i((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},9337:(t,e,n)=>{var r=n(2109),i=n(9781),o=n(3887),a=n(5656),s=n(1236),c=n(6135);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),i=s.f,u=o(r),f={},l=0;u.length>l;)void 0!==(n=i(r,e=u[l++]))&&c(f,e,n);return f}})},7941:(t,e,n)=>{var r=n(2109),i=n(7908),o=n(1956);r({target:"Object",stat:!0,forced:n(7293)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},1539:(t,e,n)=>{var r=n(1694),i=n(1320),o=n(288);r||i(Object.prototype,"toString",o,{unsafe:!0})},2479:(t,e,n)=>{var r=n(2109),i=n(4699).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},7727:(t,e,n)=>{"use strict";var r=n(2109),i=n(1913),o=n(3366),a=n(7293),s=n(5005),c=n(614),u=n(6707),f=n(9478),l=n(1320);if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=u(this,s("Promise")),n=c(t);return this.then(n?function(n){return f(e,t()).then((function(){return n}))}:t,n?function(n){return f(e,t()).then((function(){throw n}))}:t)}}),!i&&c(o)){var h=s("Promise").prototype.finally;o.prototype.finally!==h&&l(o.prototype,"finally",h,{unsafe:!0})}},8674:(t,e,n)=>{"use strict";var r,i,o,a,s=n(2109),c=n(1913),u=n(7854),f=n(5005),l=n(3366),h=n(1320),p=n(2248),v=n(7674),g=n(8003),d=n(6340),y=n(9662),m=n(614),b=n(111),k=n(5787),x=n(2788),w=n(408),O=n(7072),I=n(6707),E=n(261).set,_=n(5948),C=n(9478),S=n(842),A=n(8523),M=n(2534),R=n(9909),j=n(4705),N=n(5112),P=n(7871),T=n(5268),D=n(7392),L=N("species"),F="Promise",V=R.get,G=R.set,H=R.getterFor(F),B=l&&l.prototype,U=l,K=B,W=u.TypeError,Y=u.document,z=u.process,$=A.f,J=$,Q=!!(Y&&Y.createEvent&&u.dispatchEvent),q=m(u.PromiseRejectionEvent),X="unhandledrejection",Z=!1,tt=j(F,(function(){var t=x(U),e=t!==String(U);if(!e&&66===D)return!0;if(c&&!K.finally)return!0;if(D>=51&&/native code/.test(t))return!1;var n=new U((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};return(n.constructor={})[L]=r,!(Z=n.then((function(){}))instanceof r)||!e&&P&&!q})),et=tt||!O((function(t){U.all(t).catch((function(){}))})),nt=function(t){var e;return!(!b(t)||!m(e=t.then))&&e},rt=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;_((function(){for(var r=t.value,i=1==t.state,o=0;n.length>o;){var a,s,c,u=n[o++],f=i?u.ok:u.fail,l=u.resolve,h=u.reject,p=u.domain;try{f?(i||(2===t.rejection&&st(t),t.rejection=1),!0===f?a=r:(p&&p.enter(),a=f(r),p&&(p.exit(),c=!0)),a===u.promise?h(W("Promise-chain cycle")):(s=nt(a))?s.call(a,l,h):l(a)):h(r)}catch(t){p&&!c&&p.exit(),h(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ot(t)}))}},it=function(t,e,n){var r,i;Q?((r=Y.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},!q&&(i=u["on"+t])?i(r):t===X&&S("Unhandled promise rejection",n)},ot=function(t){E.call(u,(function(){var e,n=t.facade,r=t.value;if(at(t)&&(e=M((function(){T?z.emit("unhandledRejection",r,n):it(X,n,r)})),t.rejection=T||at(t)?2:1,e.error))throw e.value}))},at=function(t){return 1!==t.rejection&&!t.parent},st=function(t){E.call(u,(function(){var e=t.facade;T?z.emit("rejectionHandled",e):it("rejectionhandled",e,t.value)}))},ct=function(t,e,n){return function(r){t(e,r,n)}},ut=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,rt(t,!0))},ft=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw W("Promise can't be resolved itself");var r=nt(e);r?_((function(){var n={done:!1};try{r.call(e,ct(ft,n,t),ct(ut,n,t))}catch(e){ut(n,e,t)}})):(t.value=e,t.state=1,rt(t,!1))}catch(e){ut({done:!1},e,t)}}};if(tt&&(K=(U=function(t){k(this,U,F),y(t),r.call(this);var e=V(this);try{t(ct(ft,e),ct(ut,e))}catch(t){ut(e,t)}}).prototype,(r=function(t){G(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(K,{then:function(t,e){var n=H(this),r=$(I(this,U));return r.ok=!m(t)||t,r.fail=m(e)&&e,r.domain=T?z.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&rt(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r,e=V(t);this.promise=t,this.resolve=ct(ft,e),this.reject=ct(ut,e)},A.f=$=function(t){return t===U||t===o?new i(t):J(t)},!c&&m(l)&&B!==Object.prototype)){a=B.then,Z||(h(B,"then",(function(t,e){var n=this;return new U((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),h(B,"catch",K.catch,{unsafe:!0}));try{delete B.constructor}catch(t){}v&&v(B,K)}s({global:!0,wrap:!0,forced:tt},{Promise:U}),g(U,F,!1,!0),d(F),o=f(F),s({target:F,stat:!0,forced:tt},{reject:function(t){var e=$(this);return e.reject.call(void 0,t),e.promise}}),s({target:F,stat:!0,forced:c||tt},{resolve:function(t){return C(c&&this===o?U:this,t)}}),s({target:F,stat:!0,forced:et},{all:function(t){var e=this,n=$(e),r=n.resolve,i=n.reject,o=M((function(){var n=y(e.resolve),o=[],a=0,s=1;w(t,(function(t){var c=a++,u=!1;o.push(void 0),s++,n.call(e,t).then((function(t){u||(u=!0,o[c]=t,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(t){var e=this,n=$(e),r=n.reject,i=M((function(){var i=y(e.resolve);w(t,(function(t){i.call(e,t).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},2419:(t,e,n)=>{var r=n(2109),i=n(5005),o=n(9483),a=n(9670),s=n(111),c=n(30),u=n(7065),f=n(7293),l=i("Reflect","construct"),h=f((function(){function t(){}return!(l((function(){}),[],t)instanceof t)})),p=!f((function(){l((function(){}))})),v=h||p;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){o(t),a(e);var n=arguments.length<3?t:o(arguments[2]);if(p&&!h)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(u.apply(t,r))}var i=n.prototype,f=c(s(i)?i:Object.prototype),v=Function.apply.call(t,f,e);return s(v)?v:f}})},4603:(t,e,n)=>{var r=n(9781),i=n(7854),o=n(4705),a=n(9587),s=n(8880),c=n(3070).f,u=n(8006).f,f=n(7850),l=n(1340),h=n(7066),p=n(2999),v=n(1320),g=n(7293),d=n(6656),y=n(9909).enforce,m=n(6340),b=n(5112),k=n(9441),x=n(7168),w=b("match"),O=i.RegExp,I=O.prototype,E=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,_=/a/g,C=/a/g,S=new O(_)!==_,A=p.UNSUPPORTED_Y,M=r&&(!S||A||k||x||g((function(){return C[w]=!1,O(_)!=_||O(C)==C||"/a/i"!=O(_,"i")})));if(o("RegExp",M)){for(var R=function(t,e){var n,r,i,o,c,u,p=this instanceof R,v=f(t),g=void 0===e,m=[],b=t;if(!p&&v&&g&&t.constructor===R)return t;if((v||t instanceof R)&&(t=t.source,g&&(e="flags"in b?b.flags:h.call(b))),t=void 0===t?"":l(t),e=void 0===e?"":l(e),b=t,k&&"dotAll"in _&&(r=!!e&&e.indexOf("s")>-1)&&(e=e.replace(/s/g,"")),n=e,A&&"sticky"in _&&(i=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,"")),x&&(o=function(t){for(var e,n=t.length,r=0,i="",o=[],a={},s=!1,c=!1,u=0,f="";r<=n;r++){if("\\"===(e=t.charAt(r)))e+=t.charAt(++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:E.test(t.slice(r+1))&&(r+=2,c=!0),i+=e,u++;continue;case">"===e&&c:if(""===f||d(a,f))throw new SyntaxError("Invalid capture group name");a[f]=!0,o.push([f,u]),c=!1,f="";continue}c?f+=e:i+=e}return[i,o]}(t),t=o[0],m=o[1]),c=a(O(t,e),p?this:I,R),(r||i||m.length)&&(u=y(c),r&&(u.dotAll=!0,u.raw=R(function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(e=t.charAt(r))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+t.charAt(++r);return i}(t),n)),i&&(u.sticky=!0),m.length&&(u.groups=m)),t!==b)try{s(c,"source",""===b?"(?:)":b)}catch(t){}return c},j=function(t){t in R||c(R,t,{configurable:!0,get:function(){return O[t]},set:function(e){O[t]=e}})},N=u(O),P=0;N.length>P;)j(N[P++]);I.constructor=R,R.prototype=I,v(i,"RegExp",R)}m("RegExp")},4916:(t,e,n)=>{"use strict";var r=n(2109),i=n(2261);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},2087:(t,e,n)=>{var r=n(9781),i=n(3070),o=n(7066),a=n(7293);r&&a((function(){return"sy"!==Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get.call({dotAll:!0,sticky:!0})}))&&i.f(RegExp.prototype,"flags",{configurable:!0,get:o})},9714:(t,e,n)=>{"use strict";var r=n(6530).PROPER,i=n(1320),o=n(9670),a=n(1340),s=n(7293),c=n(7066),u="toString",f=RegExp.prototype,l=f.toString,h=s((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),p=r&&l.name!=u;(h||p)&&i(RegExp.prototype,u,(function(){var t=o(this),e=a(t.source),n=t.flags;return"/"+e+"/"+a(void 0===n&&t instanceof RegExp&&!("flags"in f)?c.call(t):n)}),{unsafe:!0})},7852:(t,e,n)=>{"use strict";var r,i=n(2109),o=n(1236).f,a=n(7466),s=n(1340),c=n(3929),u=n(4488),f=n(4964),l=n(1913),h="".endsWith,p=Math.min,v=f("endsWith");i({target:"String",proto:!0,forced:!!(l||v||(r=o(String.prototype,"endsWith"),!r||r.writable))&&!v},{endsWith:function(t){var e=s(u(this));c(t);var n=arguments.length>1?arguments[1]:void 0,r=a(e.length),i=void 0===n?r:p(a(n),r),o=s(t);return h?h.call(e,o,i):e.slice(i-o.length,i)===o}})},2023:(t,e,n)=>{"use strict";var r=n(2109),i=n(3929),o=n(4488),a=n(1340);r({target:"String",proto:!0,forced:!n(4964)("includes")},{includes:function(t){return!!~a(o(this)).indexOf(a(i(t)),arguments.length>1?arguments[1]:void 0)}})},8783:(t,e,n)=>{"use strict";var r=n(8710).charAt,i=n(1340),o=n(9909),a=n(654),s="String Iterator",c=o.set,u=o.getterFor(s);a(String,"String",(function(t){c(this,{type:s,string:i(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},4723:(t,e,n)=>{"use strict";var r=n(7007),i=n(9670),o=n(7466),a=n(1340),s=n(4488),c=n(8173),u=n(1530),f=n(7651);r("match",(function(t,e,n){return[function(e){var n=s(this),r=null==e?void 0:c(e,t);return r?r.call(e,n):new RegExp(e)[t](a(n))},function(t){var r=i(this),s=a(t),c=n(e,r,s);if(c.done)return c.value;if(!r.global)return f(r,s);var l=r.unicode;r.lastIndex=0;for(var h,p=[],v=0;null!==(h=f(r,s));){var g=a(h[0]);p[v]=g,""===g&&(r.lastIndex=u(s,o(r.lastIndex),l)),v++}return 0===v?null:p}]}))},5306:(t,e,n)=>{"use strict";var r=n(7007),i=n(7293),o=n(9670),a=n(614),s=n(9958),c=n(7466),u=n(1340),f=n(4488),l=n(1530),h=n(8173),p=n(647),v=n(7651),g=n(5112)("replace"),d=Math.max,y=Math.min,m="$0"==="a".replace(/./,"$0"),b=!!/./[g]&&""===/./[g]("a","$0");r("replace",(function(t,e,n){var r=b?"$":"$0";return[function(t,n){var r=f(this),i=null==t?void 0:h(t,g);return i?i.call(t,r,n):e.call(u(r),t,n)},function(t,i){var f=o(this),h=u(t);if("string"==typeof i&&-1===i.indexOf(r)&&-1===i.indexOf("$<")){var g=n(e,f,h,i);if(g.done)return g.value}var m=a(i);m||(i=u(i));var b=f.global;if(b){var k=f.unicode;f.lastIndex=0}for(var x=[];;){var w=v(f,h);if(null===w)break;if(x.push(w),!b)break;""===u(w[0])&&(f.lastIndex=l(h,c(f.lastIndex),k))}for(var O,I="",E=0,_=0;_<x.length;_++){w=x[_];for(var C=u(w[0]),S=d(y(s(w.index),h.length),0),A=[],M=1;M<w.length;M++)A.push(void 0===(O=w[M])?O:String(O));var R=w.groups;if(m){var j=[C].concat(A,S,h);void 0!==R&&j.push(R);var N=u(i.apply(void 0,j))}else N=p(C,h,S,A,R,i);S>=E&&(I+=h.slice(E,S)+N,E=S+C.length)}return I+h.slice(E)}]}),!!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!m||b)},6755:(t,e,n)=>{"use strict";var r,i=n(2109),o=n(1236).f,a=n(7466),s=n(1340),c=n(3929),u=n(4488),f=n(4964),l=n(1913),h="".startsWith,p=Math.min,v=f("startsWith");i({target:"String",proto:!0,forced:!!(l||v||(r=o(String.prototype,"startsWith"),!r||r.writable))&&!v},{startsWith:function(t){var e=s(u(this));c(t);var n=a(p(arguments.length>1?arguments[1]:void 0,e.length)),r=s(t);return h?h.call(e,r,n):e.slice(n,n+r.length)===r}})},1817:(t,e,n)=>{"use strict";var r=n(2109),i=n(9781),o=n(7854),a=n(6656),s=n(614),c=n(111),u=n(3070).f,f=n(9920),l=o.Symbol;if(i&&s(l)&&(!("description"in l.prototype)||void 0!==l().description)){var h={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new l(t):void 0===t?l():l(t);return""===t&&(h[e]=!0),e};f(p,l);var v=p.prototype=l.prototype;v.constructor=p;var g=v.toString,d="Symbol(test)"==String(l("test")),y=/^Symbol\((.*)\)[^)]+$/;u(v,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=g.call(t);if(a(h,t))return"";var n=d?e.slice(7,-1):e.replace(y,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},2165:(t,e,n)=>{n(7235)("iterator")},2526:(t,e,n)=>{"use strict";var r=n(2109),i=n(7854),o=n(5005),a=n(1913),s=n(9781),c=n(133),u=n(7293),f=n(6656),l=n(3157),h=n(614),p=n(111),v=n(2190),g=n(9670),d=n(7908),y=n(5656),m=n(4948),b=n(1340),k=n(9114),x=n(30),w=n(1956),O=n(8006),I=n(1156),E=n(5181),_=n(1236),C=n(3070),S=n(5296),A=n(1320),M=n(2309),R=n(6200),j=n(3501),N=n(9711),P=n(5112),T=n(6061),D=n(7235),L=n(8003),F=n(9909),V=n(2092).forEach,G=R("hidden"),H="Symbol",B=P("toPrimitive"),U=F.set,K=F.getterFor(H),W=Object.prototype,Y=i.Symbol,z=o("JSON","stringify"),$=_.f,J=C.f,Q=I.f,q=S.f,X=M("symbols"),Z=M("op-symbols"),tt=M("string-to-symbol-registry"),et=M("symbol-to-string-registry"),nt=M("wks"),rt=i.QObject,it=!rt||!rt.prototype||!rt.prototype.findChild,ot=s&&u((function(){return 7!=x(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=$(W,e);r&&delete W[e],J(t,e,n),r&&t!==W&&J(W,e,r)}:J,at=function(t,e){var n=X[t]=x(Y.prototype);return U(n,{type:H,tag:t,description:e}),s||(n.description=e),n},st=function(t,e,n){t===W&&st(Z,e,n),g(t);var r=m(e);return g(n),f(X,r)?(n.enumerable?(f(t,G)&&t[G][r]&&(t[G][r]=!1),n=x(n,{enumerable:k(0,!1)})):(f(t,G)||J(t,G,k(1,{})),t[G][r]=!0),ot(t,r,n)):J(t,r,n)},ct=function(t,e){g(t);var n=y(e),r=w(n).concat(ht(n));return V(r,(function(e){s&&!ut.call(n,e)||st(t,e,n[e])})),t},ut=function(t){var e=m(t),n=q.call(this,e);return!(this===W&&f(X,e)&&!f(Z,e))&&(!(n||!f(this,e)||!f(X,e)||f(this,G)&&this[G][e])||n)},ft=function(t,e){var n=y(t),r=m(e);if(n!==W||!f(X,r)||f(Z,r)){var i=$(n,r);return!i||!f(X,r)||f(n,G)&&n[G][r]||(i.enumerable=!0),i}},lt=function(t){var e=Q(y(t)),n=[];return V(e,(function(t){f(X,t)||f(j,t)||n.push(t)})),n},ht=function(t){var e=t===W,n=Q(e?Z:y(t)),r=[];return V(n,(function(t){!f(X,t)||e&&!f(W,t)||r.push(X[t])})),r};(c||(Y=function(){if(this instanceof Y)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?b(arguments[0]):void 0,e=N(t),n=function(t){this===W&&n.call(Z,t),f(this,G)&&f(this[G],e)&&(this[G][e]=!1),ot(this,e,k(1,t))};return s&&it&&ot(W,e,{configurable:!0,set:n}),at(e,t)},A(Y.prototype,"toString",(function(){return K(this).tag})),A(Y,"withoutSetter",(function(t){return at(N(t),t)})),S.f=ut,C.f=st,_.f=ft,O.f=I.f=lt,E.f=ht,T.f=function(t){return at(P(t),t)},s&&(J(Y.prototype,"description",{configurable:!0,get:function(){return K(this).description}}),a||A(W,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:Y}),V(w(nt),(function(t){D(t)})),r({target:H,stat:!0,forced:!c},{for:function(t){var e=b(t);if(f(tt,e))return tt[e];var n=Y(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!v(t))throw TypeError(t+" is not a symbol");if(f(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(t,e){return void 0===e?x(t):ct(x(t),e)},defineProperty:st,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:lt,getOwnPropertySymbols:ht}),r({target:"Object",stat:!0,forced:u((function(){E.f(1)}))},{getOwnPropertySymbols:function(t){return E.f(d(t))}}),z)&&r({target:"JSON",stat:!0,forced:!c||u((function(){var t=Y();return"[null]"!=z([t])||"{}"!=z({a:t})||"{}"!=z(Object(t))}))},{stringify:function(t,e,n){for(var r,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=e,(p(e)||void 0!==t)&&!v(t))return l(e)||(e=function(t,e){if(h(r)&&(e=r.call(this,t,e)),!v(e))return e}),i[1]=e,z.apply(null,i)}});if(!Y.prototype[B]){var pt=Y.prototype.valueOf;A(Y.prototype,B,(function(){return pt.apply(this,arguments)}))}L(Y,H),j[G]=!0},4747:(t,e,n)=>{var r=n(7854),i=n(8324),o=n(8509),a=n(8533),s=n(8880),c=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a)}catch(e){t.forEach=a}};for(var u in i)i[u]&&c(r[u]&&r[u].prototype);c(o)},3948:(t,e,n)=>{var r=n(7854),i=n(8324),o=n(8509),a=n(6992),s=n(8880),c=n(5112),u=c("iterator"),f=c("toStringTag"),l=a.values,h=function(t,e){if(t){if(t[u]!==l)try{s(t,u,l)}catch(e){t[u]=l}if(t[f]||s(t,f,e),i[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n])}catch(e){t[n]=a[n]}}};for(var p in i)h(r[p]&&r[p].prototype,p);h(o,"DOMTokenList")},5666:t=>{var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof d?e:d,o=Object.create(i.prototype),a=new S(r||[]);return o._invoke=function(t,e,n){var r=l;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===v){if("throw"===i)throw o;return M()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=f(t,e,n);if("normal"===c.type){if(r=n.done?v:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=v,n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l="suspendedStart",h="suspendedYield",p="executing",v="completed",g={};function d(){}function y(){}function m(){}var b={};c(b,o,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(A([])));x&&x!==n&&r.call(x,o)&&(b=x);var w=m.prototype=d.prototype=Object.create(b);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){function n(i,o,a,s){var c=f(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function E(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=f(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function A(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:M}}function M(){return{value:e,done:!0}}return y.prototype=m,c(w,"constructor",m),c(m,"constructor",y),y.displayName=c(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},O(I.prototype),c(I.prototype,a,(function(){return this})),t.AsyncIterator=I,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new I(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(w),c(w,s,"Generator"),c(w,o,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},1030:t=>{"use strict";t.exports=require("abort-controller")},4809:t=>{"use strict";t.exports=require("node-fetch")},6689:t=>{"use strict";t.exports=require("react")}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{FlagshipContext:()=>t.e,FlagshipProvider:()=>t.X,useFlagship:()=>o.UM,useFsActivate:()=>o.pc,useFsFlag:()=>o.Nf,useFsModification:()=>o.nr,useFsModificationInfo:()=>o._X,useFsModifications:()=>o.GW});var t=n(821),e=n(3547),i={};for(const t in e)["default","FlagshipContext","FlagshipProvider"].indexOf(t)<0&&(i[t]=()=>e[t]);n.d(r,i);var o=n(4927)})(),r})()}));
|
|
2
2
|
//# sourceMappingURL=index.browser.js.map
|