UNPKG

rox-browser

Version:

Rollout.io ROX JS SDK Client

1 lines 87.2 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("axios")):"function"==typeof define&&define.amd?define(["axios"],e):"object"==typeof exports?exports.Rox=e(require("axios")):t.Rox=e(t.axios)}(globalThis,(t=>{return r={934:t=>{var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}};t.exports=e},242:t=>{var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&r.rotl(t,8)|4278255360&r.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=r.endian(t[e]);return t},randomBytes:function(t){for(var e=[];0<t;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,i=0;r<t.length;r++,i+=8)e[i>>>5]|=t[r]<<24-i%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},bytesToBase64:function(t){for(var r=[],i=0;i<t.length;i+=3)for(var n=t[i]<<16|t[i+1]<<8|t[i+2],s=0;s<4;s++)8*i+6*s<=8*t.length?r.push(e.charAt(n>>>6*(3-s)&63)):r.push("=");return r.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],i=0,n=0;i<t.length;n=++i%4)0!=n&&r.push((e.indexOf(t.charAt(i-1))&Math.pow(2,-2*n+8)-1)<<2*n|e.indexOf(t.charAt(i))>>>6-2*n);return r}};t.exports=r},518:function(t,e){var r,i,n,s,o,a,u,h,c,l,p;function f(){}t.exports=(r=Math,i=Object.create||function(t){return f.prototype=t,t=new f,f.prototype=null,t},n=(t={}).lib={},s=n.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),(e.init.prototype=e).$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},o=n.WordArray=s.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,r=t.words,i=this.sigBytes,n=t.sigBytes;if(this.clamp(),i%4)for(var s=0;s<n;s++){var o=r[s>>>2]>>>24-s%4*8&255;e[i+s>>>2]|=o<<24-(i+s)%4*8}else for(s=0;s<n;s+=4)e[i+s>>>2]=r[s>>>2];return this.sigBytes+=n,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=r.ceil(e/4)},clone:function(){var t=s.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i<t;i+=4){var n=function(t){var e=987654321,i=4294967295;return function(){return((((e=36969*(65535&e)+(e>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i)/4294967296+.5)*(.5<r.random()?1:-1)}}(4294967296*(s||r.random())),s=987654071*n();e.push(4294967296*n()|0)}return new o.init(e,t)}}),a=t.enc={},u=a.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],n=0;n<r;n++){var s=e[n>>>2]>>>24-n%4*8&255;i.push((s>>>4).toString(16)),i.push((15&s).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,r=[],i=0;i<e;i+=2)r[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new o.init(r,e/2)}},h=a.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],n=0;n<r;n++){var s=e[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(s))}return i.join("")},parse:function(t){for(var e=t.length,r=[],i=0;i<e;i++)r[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new o.init(r,e)}},c=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}},l=n.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,i=e.words,n=e.sigBytes,s=this.blockSize,a=n/(4*s),u=(a=t?r.ceil(a):r.max((0|a)-this._minBufferSize,0))*s;if(t=r.min(4*u,n),u){for(var h=0;h<u;h+=s)this._doProcessBlock(i,h);var c=i.splice(0,u);e.sigBytes-=t}return new o.init(c,t)},clone:function(){var t=s.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),n.Hasher=l.extend({cfg:s.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){l.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new p.HMAC.init(t,r).finalize(e)}}}),p=t.algo={},t)},110:function(t,e,r){t.exports=function(t){var e=Math,r=t,i=(s=r.lib).WordArray,n=s.Hasher,s=r.algo,o=[],a=[];function u(t){return 4294967296*(t-(0|t))|0}for(var h=2,c=0;c<64;)!function(t){for(var r=e.sqrt(t),i=2;i<=r;i++)if(!(t%i))return;return 1}(h)||(c<8&&(o[c]=u(e.pow(h,.5))),a[c]=u(e.pow(h,1/3)),c++),h++;var l=[];return s=s.SHA256=n.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,i=r[0],n=r[1],s=r[2],o=r[3],u=r[4],h=r[5],c=r[6],p=r[7],f=0;f<64;f++){f<16?l[f]=0|t[e+f]:(d=l[f-15],g=l[f-2],l[f]=((d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3)+l[f-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+l[f-16]);var d=i&n^i&s^n&s,g=p+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&h^~u&c)+a[f]+l[f];p=c,c=h,h=u,u=o+g|0,o=s,s=n,n=i,i=g+(((i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22))+d)|0}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+s|0,r[3]=r[3]+o|0,r[4]=r[4]+u|0,r[5]=r[5]+h|0,r[6]=r[6]+c|0,r[7]=r[7]+p|0},_doFinalize:function(){var t=this._data,r=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(64+n>>>9<<4)]=e.floor(i/4294967296),r[15+(64+n>>>9<<4)]=i,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),r.SHA256=n._createHelper(s),r.HmacSHA256=n._createHmacHelper(s),t.SHA256}(r(518))},703:t=>{function e(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(e(t)||"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&e(t.slice(0,0))||!!t._isBuffer)}},814:function(t,e){!function(t){"use strict";function e(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function r(t,e){return t&e}function i(t,e){return t|e}function n(t,e){return t^e}function s(t,e){return t&~e}f.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var r;if(16==t)r=4;else if(8==t)r=3;else if(2==t)r=1;else if(32==t)r=5;else{if(4!=t)return this.toRadix(t);r=2}var i,n=(1<<r)-1,s=!1,o="",a=this.t,u=this.DB-a*this.DB%r;if(0<a--)for(u<this.DB&&0<(i=this[a]>>u)&&(s=!0,o=e(i));0<=a;)u<r?(i=(this[a]&(1<<u)-1)<<r-u,i|=this[--a]>>(u+=this.DB-r)):(i=this[a]>>(u-=r)&n,u<=0&&(u+=this.DB,--a)),(s=0<i||s)&&(o+=e(i));return s?o:"0"},f.prototype.negate=function(){var t=d();return f.ZERO.subTo(this,t),t},f.prototype.abs=function(){return this.s<0?this.negate():this},f.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;0<=--r;)if(0!=(e=this[r]-t[r]))return e;return 0},f.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+x(this[this.t-1]^this.s&this.DM)},f.prototype.mod=function(t){var e=d();return this.abs().divRemTo(t,null,e),this.s<0&&0<e.compareTo(f.ZERO)&&t.subTo(e,e),e},f.prototype.modPowInt=function(t,e){return e=new(t<256||e.isEven()?u:h)(e),this.exp(t,e)},f.prototype.clone=function(){var t=d();return this.copyTo(t),t},f.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},f.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},f.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},f.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},f.prototype.equals=function(t){return 0==this.compareTo(t)},f.prototype.min=function(t){return this.compareTo(t)<0?this:t},f.prototype.max=function(t){return 0<this.compareTo(t)?this:t},f.prototype.and=function(t){var e=d();return this.bitwiseTo(t,r,e),e},f.prototype.or=function(t){var e=d();return this.bitwiseTo(t,i,e),e},f.prototype.xor=function(t){var e=d();return this.bitwiseTo(t,n,e),e},f.prototype.shiftLeft=function(t){var e=d();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},f.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=function(t){for(var e=0;0!=t;)t&=t-1,++e;return e}(this[r]^e);return t},f.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:!!(this[e]&1<<t%this.DB)},f.prototype.setBit=function(t){return this.changeBit(t,i)},f.prototype.clearBit=function(t){return this.changeBit(t,s)},f.prototype.flipBit=function(t){return this.changeBit(t,n)},f.prototype.subtract=function(t){var e=d();return this.subTo(t,e),e},f.prototype.multiply=function(t){var e=d();return this.multiplyTo(t,e),e},f.prototype.divide=function(t){var e=d();return this.divRemTo(t,e,null),e},f.prototype.remainder=function(t){var e=d();return this.divRemTo(t,null,e),e},f.prototype.divideAndRemainder=function(t){var e=d(),r=d();return this.divRemTo(t,e,r),[e,r]},f.prototype.pow=function(t){return this.exp(t,new a)},f.prototype.copyTo=function(t){for(var e=this.t-1;0<=e;--e)t[e]=this[e];t.t=this.t,t.s=this.s},f.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,0<t?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},f.prototype.fromString=function(t,e){var r;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void this.fromRadix(t,e);r=2}this.t=0,this.s=0;for(var i=t.length,n=!1,s=0;0<=--i;){var o=8==r?255&+t[i]:b(t,i);o<0?"-"==t.charAt(i)&&(n=!0):(n=!1,0==s?this[this.t++]=o:s+r>this.DB?(this[this.t-1]|=(o&(1<<this.DB-s)-1)<<s,this[this.t++]=o>>this.DB-s):this[this.t-1]|=o<<s,(s+=r)>=this.DB&&(s-=this.DB))}8==r&&!!(128&+t[0])&&(this.s=-1,0<s&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),n&&f.ZERO.subTo(this,this)},f.prototype.clamp=function(){for(var t=this.s&this.DM;0<this.t&&this[this.t-1]==t;)--this.t},f.prototype.dlShiftTo=function(t,e){for(var r=this.t-1;0<=r;--r)e[r+t]=this[r];for(r=t-1;0<=r;--r)e[r]=0;e.t=this.t+t,e.s=this.s},f.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},f.prototype.lShiftTo=function(t,e){for(var r=t%this.DB,i=this.DB-r,n=(1<<i)-1,s=Math.floor(t/this.DB),o=this.s<<r&this.DM,a=this.t-1;0<=a;--a)e[a+s+1]=this[a]>>i|o,o=(this[a]&n)<<r;for(a=s-1;0<=a;--a)e[a]=0;e[s]=o,e.t=this.t+s+1,e.s=this.s,e.clamp()},f.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var i=t%this.DB,n=this.DB-i,s=(1<<i)-1;e[0]=this[r]>>i;for(var o=r+1;o<this.t;++o)e[o-r-1]|=(this[o]&s)<<n,e[o-r]=this[o]>>i;0<i&&(e[this.t-r-1]|=(this.s&s)<<n),e.t=this.t-r,e.clamp()}},f.prototype.subTo=function(t,e){for(var r=0,i=0,n=Math.min(t.t,this.t);r<n;)i+=this[r]-t[r],e[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;r<this.t;)i+=this[r],e[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i-=t[r],e[r++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[r++]=this.DV+i:0<i&&(e[r++]=i),e.t=r,e.clamp()},f.prototype.multiplyTo=function(t,e){var r=this.abs(),i=t.abs(),n=r.t;for(e.t=n+i.t;0<=--n;)e[n]=0;for(n=0;n<i.t;++n)e[n+r.t]=r.am(0,i[n],e,n,0,r.t);e.s=0,e.clamp(),this.s!=t.s&&f.ZERO.subTo(e,e)},f.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;0<=--r;)t[r]=0;for(r=0;r<e.t-1;++r){var i=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,i,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}0<t.t&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},f.prototype.divRemTo=function(t,e,r){if(!((h=t.abs()).t<=0)){var i=this.abs();if(i.t<h.t)return null!=e&&e.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=d());var n=d(),s=this.s,o=(t=t.s,this.DB-x(h[h.t-1])),a=(0<o?(h.lShiftTo(o,n),i.lShiftTo(o,r)):(h.copyTo(n),i.copyTo(r)),n.t),u=n[a-1];if(0!=u){var h=u*(1<<this.F1)+(1<a?n[a-2]>>this.F2:0),c=this.FV/h,l=(1<<this.F1)/h,p=1<<this.F2,g=r.t,m=g-a,y=null==e?d():e;for(n.dlShiftTo(m,y),0<=r.compareTo(y)&&(r[r.t++]=1,r.subTo(y,r)),f.ONE.dlShiftTo(a,y),y.subTo(n,n);n.t<a;)n[n.t++]=0;for(;0<=--m;){var v=r[--g]==u?this.DM:Math.floor(r[g]*c+(r[g-1]+p)*l);if((r[g]+=n.am(0,v,r,m,0,a))<v)for(n.dlShiftTo(m,y),r.subTo(y,r);r[g]<--v;)r.subTo(y,r)}null!=e&&(r.drShiftTo(a,e),s!=t&&f.ZERO.subTo(e,e)),r.t=a,r.clamp(),0<o&&r.rShiftTo(o,r),s<0&&f.ZERO.subTo(r,r)}}},f.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(1&t))return 0;var e=3&t;return 0<(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)?this.DV-e:-e},f.prototype.isEven=function(){return 0==(0<this.t?1&this[0]:this.s)},f.prototype.exp=function(t,e){if(4294967295<t||t<1)return f.ONE;var r,i=d(),n=d(),s=e.convert(this),o=x(t)-1;for(s.copyTo(i);0<=--o;)e.sqrTo(i,n),0<(t&1<<o)?e.mulTo(n,s,i):(r=i,i=n,n=r);return e.revert(i)},f.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},f.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||36<t)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),i=_(r),n=d(),s=d(),o="";for(this.divRemTo(i,n,s);0<n.signum();)o=(r+s.intValue()).toString(t).substr(1)+o,n.divRemTo(i,n,s);return s.intValue().toString(t)+o},f.prototype.fromRadix=function(t,e){this.fromInt(0);for(var r=this.chunkSize(e=null==e?10:e),i=Math.pow(e,r),n=!1,s=0,o=0,a=0;a<t.length;++a){var u=b(t,a);u<0?"-"==t.charAt(a)&&0==this.signum()&&(n=!0):(o=e*o+u,++s>=r&&(this.dMultiply(i),this.dAddOffset(o,0),o=s=0))}0<s&&(this.dMultiply(Math.pow(e,s)),this.dAddOffset(o,0)),n&&f.ZERO.subTo(this,this)},f.prototype.bitwiseTo=function(t,e,r){for(var i,n=Math.min(t.t,this.t),s=0;s<n;++s)r[s]=e(this[s],t[s]);if(t.t<this.t){for(i=t.s&this.DM,s=n;s<this.t;++s)r[s]=e(this[s],i);r.t=this.t}else{for(i=this.s&this.DM,s=n;s<t.t;++s)r[s]=e(i,t[s]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()},f.prototype.changeBit=function(t,e){return t=f.ONE.shiftLeft(t),this.bitwiseTo(t,e,t),t},f.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},f.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},f.prototype.multiplyLowerTo=function(t,e,r){var i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;0<i;)r[--i]=0;for(var n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(n=Math.min(t.t,e);i<n;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()},f.prototype.multiplyUpperTo=function(t,e,r){var i=r.t=this.t+t.t- --e;for(r.s=0;0<=--i;)r[i]=0;for(i=Math.max(e-this.t,0);i<t.t;++i)r[this.t+i-e]=this.am(e-i,t[i],r,0,0,this.t+i-e);r.clamp(),r.drShiftTo(1,r)},f.prototype.square=function(){var t=d();return this.squareTo(t),t};var o=f,a=(p.prototype.convert=function(t){return t},p.prototype.revert=function(t){return t},p.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},p.prototype.sqrTo=function(t,e){t.squareTo(e)},p),u=(l.prototype.convert=function(t){return t.s<0||0<=t.compareTo(this.m)?t.mod(this.m):t},l.prototype.revert=function(t){return t},l.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},l.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},l.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},l),h=(c.prototype.convert=function(t){var e=d();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&0<e.compareTo(o.ZERO)&&this.m.subTo(e,e),e},c.prototype.revert=function(t){var e=d();return t.copyTo(e),this.reduce(e),e},c.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],i=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,i,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),0<=t.compareTo(this.m)&&t.subTo(this.m,t)},c.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},c.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},c);function c(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function l(t){this.m=t}function p(){}function f(t,e,r){null!=t&&"number"!=typeof t&&(null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}function d(){return new o(null)}function g(t,e){return new o(t,e)}T="Microsoft Internet Explorer"==navigator.appName?(o.prototype.am=function(t,e,r,i,n,s){for(var o=32767&e,a=e>>15;0<=--s;){var u=32767&this[t],h=this[t++]>>15,c=a*u+h*o;n=((u=o*u+((32767&c)<<15)+r[i]+(1073741823&n))>>>30)+(c>>>15)+a*h+(n>>>30),r[i++]=1073741823&u}return n},30):"Netscape"!=navigator.appName?(o.prototype.am=function(t,e,r,i,n,s){for(;0<=--s;){var o=e*this[t++]+r[i]+n;n=Math.floor(o/67108864),r[i++]=67108863&o}return n},26):(o.prototype.am=function(t,e,r,i,n,s){for(var o=16383&e,a=e>>14;0<=--s;){var u=16383&this[t],h=this[t++]>>14,c=a*u+h*o;n=((u=o*u+((16383&c)<<14)+r[i]+n)>>28)+(c>>14)+a*h,r[i++]=268435455&u}return n},28),o.prototype.DB=T,o.prototype.DM=(1<<T)-1,o.prototype.DV=1<<T,o.prototype.FV=Math.pow(2,52),o.prototype.F1=52-T,o.prototype.F2=2*T-52;for(var m=[],y="0".charCodeAt(0),v=0;v<=9;++v)m[y++]=v;for(y="a".charCodeAt(0),v=10;v<36;++v)m[y++]=v;for(y="A".charCodeAt(0),v=10;v<36;++v)m[y++]=v;function b(t,e){return null==(t=m[t.charCodeAt(e)])?-1:t}function _(t){var e=d();return e.fromInt(t),e}function x(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}o.ZERO=_(0),o.ONE=_(1),O.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},O.prototype.setPublic=function(t,e){null!=t&&null!=e&&0<t.length&&0<e.length?(this.n=g(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},O.prototype.verify=function(t,e,r){return e=g(e,16),null==(e=this.doPublic(e))?null:function(t){for(var e in S)if(S.hasOwnProperty(e)){var r=(e=S[e]).length;if(t.substr(0,r)==e)return t.substr(r)}return t}(e.toString(16).replace(/^1f+00/,""))==r(t).toString()};var w=O,S={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function O(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}E.prototype.verify=function(t,r,i){try{return this.getKey().verify(t,function(t){for(var r="",i=0,n=0,s=0;s<t.length&&"="!=t.charAt(s);++s){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(t.charAt(s));o<0||(i=0==i?(r+=e(o>>2),n=3&o,1):1==i?(r+=e(n<<2|o>>4),n=15&o,2):2==i?(r=(r+=e(n))+e(o>>2),n=3&o,3):(r=(r+=e(n<<2|o>>4))+e(15&o),0))}return 1==i&&(r+=e(n<<2)),r}(r),i)}catch(t){return!1}},E.prototype.getKey=function(t){return this.key||(this.key=new w),this.key},E.version="3.0.0-rc.1";var T=E;function E(t){this.key=null}t.JSEncrypt=T,t.default=T,Object.defineProperty(t,"__esModule",{value:!0})}(e)},650:(t,e,r)=>{r=r(942).Symbol,t.exports=r},379:(t,e,r)=>{var i=r(650),n=r(870),s=r(5),o=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":(o&&o in Object(t)?n:s)(t)}},403:(t,e,r)=>{var i=r(945),n=/^\s+/;t.exports=function(t){return t&&t.slice(0,i(t)+1).replace(n,"")}},967:t=>{var e="object"==typeof window&&window&&window.Object===Object&&window;t.exports=e},870:(t,e,r)=>{r=r(650);var i=Object.prototype,n=i.hasOwnProperty,s=i.toString,o=r?r.toStringTag:void 0;t.exports=function(t){var e=n.call(t,o),r=t[o];try{var i=!(t[o]=void 0)}catch(t){}var a=s.call(t);return i&&(e?t[o]=r:delete t[o]),a}},5:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},942:(t,e,r)=>{r=r(967);var i="object"==typeof self&&self&&self.Object===Object&&self;r=r||i||Function("return this")(),t.exports=r},945:t=>{var e=/\s/;t.exports=function(t){for(var r=t.length;r--&&e.test(t.charAt(r)););return r}},784:(t,e,r)=>{var i=r(580),n=r(495),s=r(131),o=Math.max,a=Math.min;t.exports=function(t,e,r){var u,h,c,l,p,f,d=0,g=!1,m=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function v(e){var r=u,i=h;return u=h=void 0,d=e,l=t.apply(i,r)}function b(t){var r=t-f;return void 0===f||e<=r||r<0||m&&c<=t-d}function _(){var t,r=n();if(b(r))return x(r);p=setTimeout(_,(t=e-(r-f),m?a(t,c-(r-d)):t))}function x(t){return p=void 0,y&&u?v(t):(u=h=void 0,l)}function w(){var t=n(),r=b(t);if(u=arguments,h=this,f=t,r){if(void 0===p)return d=t=f,p=setTimeout(_,e),g?v(t):l;if(m)return clearTimeout(p),p=setTimeout(_,e),v(f)}return void 0===p&&(p=setTimeout(_,e)),l}return e=s(e)||0,i(r)&&(g=!!r.leading,c=(m="maxWait"in r)?o(s(r.maxWait)||0,e):c,y="trailing"in r?!!r.trailing:y),w.cancel=function(){void 0!==p&&clearTimeout(p),u=f=h=p=void(d=0)},w.flush=function(){return void 0===p?l:x(n())},w}},580:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},547:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},187:(t,e,r)=>{var i=r(379),n=r(547);t.exports=function(t){return"symbol"==typeof t||n(t)&&"[object Symbol]"==i(t)}},495:(t,e,r)=>{var i=r(942);t.exports=function(){return i.Date.now()}},131:(t,e,r)=>{var i=r(403),n=r(580),s=r(187),o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,u=/^0o[0-7]+$/i,h=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(s(t))return NaN;if(n(t)&&(e="function"==typeof t.valueOf?t.valueOf():t,t=n(e)?e+"":e),"string"!=typeof t)return 0===t?t:+t;t=i(t);var e=a.test(t);return e||u.test(t)?h(t.slice(2),e?2:8):o.test(t)?NaN:+t}},834:function(t,e){var r;void 0!==(e="function"==typeof(r=function(){var t,e,r="lscache-",i="-cacheexpiration",n=6e4,s=b(n),o="",a=!1;function u(){var e="__lscachetest__";if(void 0!==t)return t;try{if(!localStorage)return!1}catch(e){return!1}try{f(e,"__lscachetest__"),d(e),t=!0}catch(e){t=!(!h(e)||!localStorage.length)}return t}function h(t){return t&&("QUOTA_EXCEEDED_ERR"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name||"QuotaExceededError"===t.name)}function c(){return e=void 0===e?null!=window.JSON:e}function l(){return Math.floor((new Date).getTime()/n)}function p(t){return localStorage.getItem(r+o+t)}function f(t,e){localStorage.removeItem(r+o+t),localStorage.setItem(r+o+t,e)}function d(t){localStorage.removeItem(r+o+t)}function g(t){for(var e,n=new RegExp("^"+r+o.replace(/[[\]{}()*+?.\\^$|]/g,"\\$&")+"(.*)"),s=[],a=0;a<localStorage.length;a++)(e=(e=(e=localStorage.key(a))&&e.match(n))&&e[1])&&e.indexOf(i)<0&&s.push(e);for(a=0;a<s.length;a++)t(s[a],s[a]+i)}function m(t){var e=t+i;d(t),d(e)}function y(t){var e=t+i,r=p(e);return r&&(r=parseInt(r,10),l()>=r&&(d(t),d(e),1))}function v(t,e){a&&"console"in window&&"function"==typeof window.console.warn&&(window.console.warn("lscache - "+t),e&&window.console.warn("lscache - The error was: "+e.message))}function b(t){return Math.floor(864e13/t)}return{set:function(t,e,r){if(!u())return!1;if(!c())return!1;try{e=JSON.stringify(e)}catch(r){return!1}try{f(t,e)}catch(r){if(!h(r))return v("Could not add item with key '"+t+"'",r),!1;for(var n,o=[],a=(g((function(t,e){e=(e=p(e))?parseInt(e,10):s,o.push({key:t,size:(p(t)||"").length,expiration:e})})),o.sort((function(t,e){return e.expiration-t.expiration})),(e||"").length);o.length&&0<a;)v("Cache is full, removing item with key '"+(n=o.pop()).key+"'"),m(n.key),a-=n.size;try{f(t,e)}catch(r){return v("Could not add item with key '"+t+"', perhaps it's too big?",r),!1}}return r?f(t+i,(l()+r).toString(10)):d(t+i),!0},get:function(t){if(!u())return null;if(y(t))return null;if(!(t=p(t))||!c())return t;try{return JSON.parse(t)}catch(e){return t}},remove:function(t){u()&&m(t)},supported:u,flush:function(){u()&&g((function(t){m(t)}))},flushExpired:function(){u()&&g((function(t){y(t)}))},setBucket:function(t){o=t},resetBucket:function(){o=""},getExpiryMilliseconds:function(){return n},setExpiryMilliseconds:function(t){s=b(n=t)},enableWarnings:function(t){a=t}}})?r.apply(e,[]):r)&&(t.exports=e)},150:(t,e,r)=>{function i(t,e){t.constructor==String?t=(e&&"binary"===e.encoding?a:s).stringToBytes(t):o(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var r=n.bytesToWords(t),u=(e=8*t.length,1732584193),h=-271733879,c=-1732584194,l=271733878,p=0;p<r.length;p++)r[p]=16711935&(r[p]<<8|r[p]>>>24)|4278255360&(r[p]<<24|r[p]>>>8);r[e>>>5]|=128<<e%32,r[14+(64+e>>>9<<4)]=e;var f=i._ff,d=i._gg,g=i._hh,m=i._ii;for(p=0;p<r.length;p+=16){var y=u,v=h,b=c,_=l;u=f(u,h,c,l,r[p+0],7,-680876936),l=f(l,u,h,c,r[p+1],12,-389564586),c=f(c,l,u,h,r[p+2],17,606105819),h=f(h,c,l,u,r[p+3],22,-1044525330),u=f(u,h,c,l,r[p+4],7,-176418897),l=f(l,u,h,c,r[p+5],12,1200080426),c=f(c,l,u,h,r[p+6],17,-1473231341),h=f(h,c,l,u,r[p+7],22,-45705983),u=f(u,h,c,l,r[p+8],7,1770035416),l=f(l,u,h,c,r[p+9],12,-1958414417),c=f(c,l,u,h,r[p+10],17,-42063),h=f(h,c,l,u,r[p+11],22,-1990404162),u=f(u,h,c,l,r[p+12],7,1804603682),l=f(l,u,h,c,r[p+13],12,-40341101),c=f(c,l,u,h,r[p+14],17,-1502002290),u=d(u,h=f(h,c,l,u,r[p+15],22,1236535329),c,l,r[p+1],5,-165796510),l=d(l,u,h,c,r[p+6],9,-1069501632),c=d(c,l,u,h,r[p+11],14,643717713),h=d(h,c,l,u,r[p+0],20,-373897302),u=d(u,h,c,l,r[p+5],5,-701558691),l=d(l,u,h,c,r[p+10],9,38016083),c=d(c,l,u,h,r[p+15],14,-660478335),h=d(h,c,l,u,r[p+4],20,-405537848),u=d(u,h,c,l,r[p+9],5,568446438),l=d(l,u,h,c,r[p+14],9,-1019803690),c=d(c,l,u,h,r[p+3],14,-187363961),h=d(h,c,l,u,r[p+8],20,1163531501),u=d(u,h,c,l,r[p+13],5,-1444681467),l=d(l,u,h,c,r[p+2],9,-51403784),c=d(c,l,u,h,r[p+7],14,1735328473),u=g(u,h=d(h,c,l,u,r[p+12],20,-1926607734),c,l,r[p+5],4,-378558),l=g(l,u,h,c,r[p+8],11,-2022574463),c=g(c,l,u,h,r[p+11],16,1839030562),h=g(h,c,l,u,r[p+14],23,-35309556),u=g(u,h,c,l,r[p+1],4,-1530992060),l=g(l,u,h,c,r[p+4],11,1272893353),c=g(c,l,u,h,r[p+7],16,-155497632),h=g(h,c,l,u,r[p+10],23,-1094730640),u=g(u,h,c,l,r[p+13],4,681279174),l=g(l,u,h,c,r[p+0],11,-358537222),c=g(c,l,u,h,r[p+3],16,-722521979),h=g(h,c,l,u,r[p+6],23,76029189),u=g(u,h,c,l,r[p+9],4,-640364487),l=g(l,u,h,c,r[p+12],11,-421815835),c=g(c,l,u,h,r[p+15],16,530742520),u=m(u,h=g(h,c,l,u,r[p+2],23,-995338651),c,l,r[p+0],6,-198630844),l=m(l,u,h,c,r[p+7],10,1126891415),c=m(c,l,u,h,r[p+14],15,-1416354905),h=m(h,c,l,u,r[p+5],21,-57434055),u=m(u,h,c,l,r[p+12],6,1700485571),l=m(l,u,h,c,r[p+3],10,-1894986606),c=m(c,l,u,h,r[p+10],15,-1051523),h=m(h,c,l,u,r[p+1],21,-2054922799),u=m(u,h,c,l,r[p+8],6,1873313359),l=m(l,u,h,c,r[p+15],10,-30611744),c=m(c,l,u,h,r[p+6],15,-1560198380),h=m(h,c,l,u,r[p+13],21,1309151649),u=m(u,h,c,l,r[p+4],6,-145523070),l=m(l,u,h,c,r[p+11],10,-1120210379),c=m(c,l,u,h,r[p+2],15,718787259),h=m(h,c,l,u,r[p+9],21,-343485551),u=u+y>>>0,h=h+v>>>0,c=c+b>>>0,l=l+_>>>0}return n.endian([u,h,c,l])}var n=r(242),s=r(934).utf8,o=r(703),a=r(934).bin;i._ff=function(t,e,r,i,n,s,o){return((t=t+(e&r|~e&i)+(n>>>0)+o)<<s|t>>>32-s)+e},i._gg=function(t,e,r,i,n,s,o){return((t=t+(e&i|r&~i)+(n>>>0)+o)<<s|t>>>32-s)+e},i._hh=function(t,e,r,i,n,s,o){return((t=t+(e^r^i)+(n>>>0)+o)<<s|t>>>32-s)+e},i._ii=function(t,e,r,i,n,s,o){return((t=t+(r^(e|~i))+(n>>>0)+o)<<s|t>>>32-s)+e},i._blocksize=16,i._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);return t=n.wordsToBytes(i(t,e)),e&&e.asBytes?t:e&&e.asString?a.bytesToString(t):n.bytesToHex(t)}},157:t=>{for(var e=[],r=0;r<256;++r)e[r]=(r+256).toString(16).substr(1);t.exports=function(t,r){return r=r||0,e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+"-"+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r++]]+e[t[r]]}},396:t=>{var e,r,i,n="undefined"!=typeof window&&(window.crypto||window.msCrypto);n&&n.getRandomValues&&(e=new Uint8Array(16),r=function(){return n.getRandomValues(e),e}),r||(i=new Array(16),r=function(){for(var t,e=0;e<16;e++)!(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)<<3)&255;return i}),t.exports=r},496:(t,e,r)=>{var i=r(396),n=r(157);t.exports=function(t,e,r){var s=e&&r||0,o=("string"==typeof t&&(e="binary"==t?new Array(16):null,t=null),(t=t||{}).random||(t.rng||i)());if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var a=0;a<16;++a)e[s+a]=o[a];return e||n(o)}},742:e=>{"use strict";e.exports=t}},i={},e.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},e.d=(t,r)=>{for(var i in r)e.o(r,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:r[i]})},e.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n={},(()=>{"use strict";e.d(n,{default:()=>Gr});var t={},r=(e.r(t),e.d(t,{and:()=>it,b64d:()=>kt,concat:()=>Ct,eq:()=>ot,flagValue:()=>Et,gt:()=>pt,gte:()=>gt,ifThen:()=>ut,inArray:()=>Dt,isInPercentage:()=>Ot,isInPercentageRange:()=>Tt,isInTargetGroup:()=>Nt,isTargetGroupPaired:()=>Pt,isUndefined:()=>et,lt:()=>ht,lte:()=>ct,match:()=>mt,md5:()=>Rt,mergeSeed:()=>St,ne:()=>st,not:()=>at,now:()=>rt,numeq:()=>dt,numne:()=>ft,operatorsWithContext:()=>It,or:()=>nt,property:()=>At,semverEq:()=>xt,semverGt:()=>bt,semverGte:()=>_t,semverLt:()=>yt,semverLte:()=>vt,semverNe:()=>wt,tsToNum:()=>lt}),{}),i=(e.r(r),e.d(r,{fL:()=>Jt,Zn:()=>Ee,Y3:()=>Wt,WB:()=>Gt}),{}),s=(e.r(i),e.d(i,{B:()=>Ut}),{}),o=(e.r(s),e.d(s,{clearAllOverrides:()=>or,clearOverride:()=>sr,getOriginalValue:()=>function(t){if(!t)throw new Error("Missing name");const e=$.flagWithName(t);return e?e._originalValue():null},getOverride:()=>function(t=null){if(t)return rr[t];throw new Error("Missing name")},hasOverride:()=>function(t=null){return void 0!==t&&void 0!==rr[t]},setOverride:()=>nr}),{});e.r(o),e.d(o,{iI:()=>$});const a={debug:0,info:1,warn:2,error:3};let u="error",h=new class{constructor(){this.debug=(t,...e)=>{a[u]<=a.debug&&console&&console.log(t,...e)},this.info=(t,...e)=>{a[u]<=a.info&&console&&console.info(t,...e)},this.warn=(t,...e)=>{a[u]<=a.warn&&console&&console.warn(t,...e)},this.error=(t,...e)=>{console&&console.error(t,...e)},this.setVerboseMode=t=>{"verbose"===t?(u="debug",this.debug("Active verbose mode")):u="error"},this.setLogger=t=>{h=t}}};const c=h;var l="function"==typeof atob,p="function"==typeof btoa,f="function"==typeof Buffer;const d="function"==typeof TextDecoder?new TextDecoder:void 0,g="function"==typeof TextEncoder?new TextEncoder:void 0,m=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),y=(t=>{let e={};return t.forEach(((t,r)=>e[t]=r)),e})(m),v=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,b=String.fromCharCode.bind(String),_="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):(t,e=t=>t)=>new Uint8Array(Array.prototype.slice.call(t,0).map(e)),x=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),w=p?t=>btoa(t):f?t=>Buffer.from(t,"binary").toString("base64"):t=>{let e,r,i,n,s="";var o=t.length%3;for(let o=0;o<t.length;){if(255<(r=t.charCodeAt(o++))||255<(i=t.charCodeAt(o++))||255<(n=t.charCodeAt(o++)))throw new TypeError("invalid character found");e=r<<16|i<<8|n,s+=m[e>>18&63]+m[e>>12&63]+m[e>>6&63]+m[63&e]}return o?s.slice(0,o-3)+"===".substring(o):s},S=f?t=>Buffer.from(t).toString("base64"):t=>{let e=[];for(let r=0,i=t.length;r<i;r+=4096)e.push(b.apply(null,t.subarray(r,r+4096)));return w(e.join(""))},O=t=>{var e;return t.length<2?(e=t.charCodeAt(0))<128?t:e<2048?b(192|e>>>6)+b(128|63&e):b(224|e>>>12&15)+b(128|e>>>6&63)+b(128|63&e):(e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320),b(240|e>>>18&7)+b(128|e>>>12&63)+b(128|e>>>6&63)+b(128|63&e))},T=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,E=f?t=>Buffer.from(t,"utf8").toString("base64"):g?t=>S(g.encode(t)):t=>w((t=>t.replace(T,O))(t)),N=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,P=t=>{switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return b(55296+(e>>>10))+b(56320+(1023&e));case 3:return b((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return b((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},A=l?t=>atob(x(t)):f?t=>Buffer.from(t,"base64").toString("binary"):t=>{if(t=t.replace(/\s+/g,""),!v.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));let e,r,i,n="";for(let s=0;s<t.length;)e=y[t.charAt(s++)]<<18|y[t.charAt(s++)]<<12|(r=y[t.charAt(s++)])<<6|(i=y[t.charAt(s++)]),n+=64===r?b(e>>16&255):64===i?b(e>>16&255,e>>8&255):b(e>>16&255,e>>8&255,255&e);return n},D=f?t=>_(Buffer.from(t,"base64")):t=>_(A(t),(t=>t.charCodeAt(0))),R=f?t=>Buffer.from(t,"base64").toString("utf8"):d?t=>d.decode(D(t)):t=>(t=>t.replace(N,P))(A(t)),C="roxTargetUrl",k="roxAuth";class I{constructor(t){this._proxyUrl="",this._proxyAuthHeader="",this._proxySettings=!1,t&&(this._proxySettings=Object.assign({},t),this._proxyUrl=this._proxySettings.protocol+"://"+this._proxySettings.host+(this._proxySettings.port?":"+this._proxySettings.port:""),this._proxySettings.auth&&this._proxySettings.auth.username&&this._proxySettings.auth.password&&(this._proxyAuthHeader="Basic "+((t,e=!1)=>e?E(t).replace(/=/g,"").replace(/[+\/]/g,(t=>"+"==t?"-":"_")):E(t))(this._proxySettings.auth.username+":"+this._proxySettings.auth.password),this._proxyAuthHeaderEncoded=encodeURIComponent(this._proxyAuthHeader)))}applyProxyToRequest(t){if(this._proxySettings){t.options=t.options?Object.assign({},t.options):{};const e=t.options;e.params=e.params||{},e.params[C]=t.url,this._proxyAuthHeader&&(e.params[k]=this._proxyAuthHeader),t.url=this._proxyUrl}}applyProxyToSseRequest(t){this._proxySettings&&(t.url=`${this._proxyUrl}?${C}=`+encodeURIComponent(t.url),this._proxyAuthHeaderEncoded&&(t.url=`${t.url}&${k}=`+this._proxyAuthHeaderEncoded))}get proxyUrl(){return this._proxyUrl}}const F="x-api.rollout.io";let M=new I;const j=t=>{let e=F;const r={API_HOST:e="eu"==t?"eu-"+F:e,CD_API_ENDPOINT:`https://${e}/device/get_configuration`,CD_S3_ENDPOINT:"https://conf.rollout.io/",SS_API_ENDPOINT:`https://${e}/device/update_state_store/`,SS_S3_ENDPOINT:"https://statestore.rollout.io/",CLIENT_DATA_CACHE_KEY:"client_data",NOTIFICATIONS_ENDPOINT:"https://push.rollout.io/sse",ANALYTICS_ENDPOINT:"https://analytic.rollout.io",ERROR_REPORTER:void 0};return"platform"==t&&(r.API_HOST="api.cloudbees.io",r.CD_API_ENDPOINT="https://api.cloudbees.io/device/get_configuration",r.CD_S3_ENDPOINT="https://rox-conf.cloudbees.io/",r.SS_API_ENDPOINT="https://api.cloudbees.io/device/update_state_store/",r.SS_S3_ENDPOINT="https://rox-state.cloudbees.io/",r.ANALYTICS_ENDPOINT="https://fm-analytics.cloudbees.io",r.NOTIFICATIONS_ENDPOINT="https://sdk-notification-service.cloudbees.io/sse"),r};let B=Object.assign({},j());const V=t=>B[t],U=()=>M,z=function(t){"eu"===t&&(B=Object.assign({},j("eu-"))),"platform"===t&&(B=Object.assign({},j(t)))},L=()=>B.ERROR_REPORTER;class H{constructor(t,e,r,i){var{distinct_id:n,app_release:s,platform:o,api_version:a,lib_version:u}=e=e.getProperties();e=function(t,e){var r={};for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}(e,["distinct_id","app_release","platform","api_version","lib_version"]),this.device=e,this.header={apiKey:"abbf3bd9c6e80eb1e8c0566c35b08748",notifier:{name:"Rollout JavaScript SDK",version:u,url:"undefined"!=typeof window&&window.location&&window.location.href||void 0}},this.networkOptions=r,this.networkSender=i,this.user={distinct_id:n,app_release:s,app_key:t,platform:o},this.app={api_version:a,lib_version:u}}error(t,e){return this._notify("error",t,e)}_notify(t,e,r){const i={payloadVersion:4,exceptions:[],app:this.app,user:this.user,device:this.device,metaData:{data:{message:e,exception:r.toString()}},severity:t};return r instanceof Error?(i.exceptions.push({errorClass:r.name,message:e+"\n"+r.message,stacktrace:r.stack||""}),i.groupingHash=r.fileName):i.exceptions.push({errorClass:"Error",message:e,stacktrace:[]}),this._send([i])}_send(t){t=Object.assign({events:t},this.header),c.debug("Sending bugsnag error report."),t={url:"https://notify.bugsnag.com",data:t,options:this.networkOptions},U().applyProxyToRequest(t);try{this.networkSender.post(t.url,t.data,t.options).then((()=>{c.debug("Successfully sent error report.")})).catch((t=>{c.debug("Failed to send error report",t)}))}catch(t){c.debug("Failed to send error report.",t)}}}class K{constructor(t,e){this.flagRepo=t,this.experimentsRepo=e}prepareFlagsWithExperiments(){const t=this.experimentsRepo.experiments||[],e=(c.debug("Set experiments "+JSON.stringify(t)),[]);t.forEach((t=>{t&&t.flags.forEach((r=>{(r=r&&this.flagRepo.flagWithName(r.name))&&(e.push(r),this.connectExperimentToFlag(r,t.deploymentConfiguration.condition))}))})),this.flagRepo.flags.forEach((t=>{e.some((e=>e===t))||this.connectExperimentToFlag(t,void 0)}))}setAddedFlag(t){var e=this.experimentsRepo.experimentForFlag(t);e&&this.connectExperimentToFlag(t,e.deploymentConfiguration.condition)}connectExperimentToFlag(t,e){t.condition=e}}const q=new class{constructor(){this.map={}}setExperiments(t){this.map={},(t=t||[]).forEach((function(t){this.map[t.identifier]=t}),this)}experimentWithName(t){return this.map[t]}get experiments(){return Object.keys(this.map).map((t=>this.map[t]))}experimentForFlagName(t){return this.experiments.find((e=>e.flags&&e.flags.some((e=>e.name===t))))}experimentForFlag(t){return this.experimentForFlagName(t.name)}},$=new class{constructor(){this.map={}}addFlag(t,e){e.name=t,this.map[t]=e,new K(this,q).setAddedFlag(e)}flagWithName(t){return this.map[t]}get flags(){return Object.keys(this.map).map((t=>this.map[t]))}get items(){return this.flags}};class J{constructor(t,e,r){this._string=t,this._delimiters=e,this._returnDelim=r,this._position=0}countTokens(){let t=0,e=!1;for(let r=this._position,i=this._string.length;r<i;r++)-1!=this._delimiters.indexOf(this._string.charAt(r))?(this._returnDelim&&t++,e&&(t++,e=!1)):e=!0;return e&&t++,t}hasMoreElements(){return this.hasMoreTokens()}hasMoreTokens(){if(!this._delimiters)return!1;var t=this._string.length;if(this._position<t){if(this._returnDelim)return!0;for(let e=this._position;e<t;e++)if(-1==this._delimiters.indexOf(this._string.charAt(e)))return!0}return!1}nextElement(){return this.nextToken()}nextToken(){if(this._delimiters){let e=this._position;var t=this._string.length;if(e<t){if(this._returnDelim){if(-1!=this._delimiters.indexOf(this._string.charAt(this._position)))return this._string.charAt(this._position++);for(this._position++;this._position<t;this._position++)if(-1!=this._delimiters.indexOf(this._string.charAt(this._position)))return this._string.substr(e,this._position-e);return this._string.substr(e)}for(;e<t&&-1!=this._delimiters.indexOf(this._string.charAt(this._position));)e++;if((this._position=e)<t){for(this._position++;this._position<t;this._position++)if(-1!=this._delimiters.indexOf(this._string.charAt(this._position)))return this._string.substr(e,this._position-e);return this._string.substr(e)}}}}nextTokenWithDelimiters(t){return this._delimiters=t,this.nextToken()}}const W=new class{constructor(){this.map={}}addTargetGroup(t){this.map[t.identifier]=t}setTargetGroups(t){this.map={},(t=t||[]).forEach((function(t){this.map[t.identifier]=t}),this)}targetGroupWithName(t){return this.map[t]}get targetGroups(){return Object.keys(this.map).map((t=>this.map[t]))}},G=new class{constructor(){this.store=new Map}has(t){return this.store.has(t.name)}get(t){return this.store.get(t)}set(t){this.store.set(t.name,t)}setIfNotExists(t){this.has(t)||this.set(t)}clear(){this.store.clear()}get items(){return Array.from(this.store.values())}};p=e(150);var Z=e.n(p);let Y=(t,e)=>e?e[t]:void 0;const Q=new class{invoke(t,e){if(this.userUnhandledErrorHandler)try{this.userUnhandledErrorHandler(t,e)}catch(t){c.error("User Unhandled Error Handler itself threw an exception. original exception:"+e,t)}else c.error("User Unhandled Error Occured, no fallback handler was set, exception ignored.",e)}setHandler(t){t instanceof Function?this.userUnhandledErrorHandler=t:c.warn("UserspaceUnhandledErrorHandler must be a function. default will be used.")}};function X(t,e,r={zeroExtend:!0,lexicographical:!0}){const i=r&&r.lexicographical;r=r&&r.zeroExtend;let n=t.split("."),s=e.split(".");function o(t){return(i?/[0-9A-Za-z_-]+$/:/^\d+$/).test(t)}if(!n.every(o)||!s.every(o))return NaN;if(r){for(;n.length<s.length;)n.push("0");for(;s.length<n.length;)s.push("0")}i||(n=n.map(Number),s=s.map(Number));for(let t=0;t<n.length;++t){if(s.length==t)return 1;if(n[t]!=s[t])return n[t]>s[t]?1:-1}return n.length!=s.length?-1:0}const tt=t=>((255&(t=Z()(t,{asBytes:!0}))[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24)>>>0)/(Math.pow(2,32)-1),et=t=>void 0===t,rt=()=>Date.now(),it=(t,e)=>t&&e,nt=(t,e)=>t||e,st=(t,e)=>(!et(t)&&t)!==(!et(e)&&e),ot=(t,e)=>(!et(t)&&t)===(!et(e)&&e),at=t=>!t,ut=(t,e,r)=>t?e:r,ht=(t,e)=>!(et(t)||et(e)||"number"!=typeof t&&(t=Number(t),isNaN(t))||"number"!=typeof e&&(e=Number(e),isNaN(e))||!(t<e)),ct=(t,e)=>!(et(t)||et(e)||"number"!=typeof t&&(t=Number(t),isNaN(t))||"number"!=typeof e&&(e=Number(e),isNaN(e))||!(t<=e)),lt=t=>{if(!et(t))return t instanceof Date?t.getTime()/1e3:void 0},pt=(t,e)=>!(et(t)||et(e)||"number"!=typeof t&&(t=Number(t),isNaN(t))||"number"!=typeof e&&(e=Number(e),isNaN(e))||!(e<t)),ft=(t,e)=>!(et(t)||et(e)||"number"!=typeof t&&(t=Number(t),isNaN(t))||"number"!=typeof e&&(e=Number(e),isNaN(e))||t===e),dt=(t,e)=>!(et(t)||et(e)||"number"!=typeof t&&(t=Number(t),isNaN(t))||"number"!=typeof e&&(e=Number(e),isNaN(e))||t!==e),gt=(t,e)=>!(et(t)||et(e)||"number"!=typeof t&&(t=Number(t),isNaN(t))||"number"!=typeof e&&(e=Number(e),isNaN(e))||!(e<=t)),mt=(t,e,r)=>!!new RegExp(e,r).exec(t),yt=(t,e)=>!et(t)&&!et(e)&&"string"==typeof t&&"string"==typeof e&&X(t,e,{zeroExtend:!0})<0,vt=(t,e)=>!et(t)&&!et(e)&&"string"==typeof t&&"string"==typeof e&&X(t,e,{zeroExtend:!0})<=0,bt=(t,e)=>!et(t)&&!et(e)&&"string"==typeof t&&"string"==typeof e&&0<X(t,e,{zeroExtend:!0}),_t=(t,e)=>!et(t)&&!et(e)&&"string"==typeof t&&"string"==typeof e&&0<=X(t,e,{zeroExtend:!0}),xt=(t,e)=>!et(t)&&!et(e)&&"string"==typeof t&&"string"==typeof e&&0==X(t,e),wt=(t,e)=>!et(t)&&!et(e)&&"string"==typeof t&&"string"==typeof e&&0!=X(t,e),St=(t,e)=>t+"."+e,Ot=(t,e)=>tt(e)<=t,Tt=(t,e,r)=>t<=(r=tt(r))&&r<=e,Et=(t,e={},r={})=>{const i=$.flagWithName(t);if(i)return n=Object.assign({},r),i.getInternalValue(n,e),n.isPeek||n.result.isOverride||n.result.isFreezed||i._flagImpression(n.result.value,n.result.usedContext),n.result.value;var n=q.experimentForFlagName(t);return n&&n.deploymentConfiguration&&(new Ut).evaluateExpression(n.deploymentConfiguration.condition,r,e)||"false"},Nt=(t,e={},r={})=>!!(t=W.targetGroupWithName(t))&&(new Ut).evaluateExpression(t.condition,r,e),Pt=()=>!1,At=(t,e={})=>{const r=G.get(t);if(r)return r.getValue(e);{const i=Y;let n;if(i)if(i._isUserDefined)try{n=i(t,e)}catch(r){throw r.isUserError=!0,r.trigger="DYNAMIC_PROPERTIES_RULE",r}else n=i(t,e);return n}},Dt=(t,e)=>!!e&&e.includes(t),Rt=t=>{if("string"==typeof t)return Z()(t)},Ct=(t,e)=>{if("string"==typeof t&&"string"==typeof e)return""+t+e},kt=t=>{if("string"==typeof t)return decodeURIComponent((t=>R((t=>x(t.replace(/[-_]/g,(t=>"-"==t?"+":"/"))))(t)))(t))},It=[Nt,Et,At],Ft=Object.keys(t),Mt='{}[]():, \t\r\n"',jt="operator",Bt="operand";class Vt{constructor(){this.tokenArray=[],this.arrayAccumulator=void 0,this.dictionaryAccumulator=void 0,this.dictKey=void 0}_stringToRoxx(t){return Ft.includes(t)?{type:jt,value:t}:"true"==t?{type:Bt,value:!0}:"false"==t?{type:Bt,value:!1}:"undefined"==t?{type:Bt,value:void 0}:'"'==t.charAt(0)&&'"'==t.charAt(t.length-1)?{type:Bt,value:t.substr(1,t.length-2)}:isNaN(t)?{type:"UNKNOWN"}:{type:Bt,value:+t}}push(t){this.dictionaryAccumulator&&!this.dictKey?this.dictKey=t.value:this.dictionaryAccumulator&&this.dictKey?(this.dictionaryAccumulator[this.dictKey]=t.value,this.dictKey=void 0):this.arrayAccumulator?this.arrayAccumulator.push(t.value):this.tokenArray.push(t)}tokenize(t){this.tokenArray=[],this.arrayAccumulator=void 0,this.dictionaryAccumulator=void 0;let e=Mt;t=t.replace('\\"',"\\RO_Q");const r=new J(t,e,!0);let i,n;for(;r.hasMoreTokens();)switch(n=i,i=r.nextTokenWithDelimiters(e)){case"{":this.dictionaryAccumulator={};break;case"}":this.tokenArray.push({type:Bt,value:this.dictionaryAccumulator}),this.dictionaryAccumulator=void 0;break;case"[":this.arrayAccumulator=[];break;case"]":this.tokenArray.push({type:Bt,value:this.arrayAccumulator}),this.arrayAccumulator=void 0;break;case'"':'"'==n&&this.push({type:Bt,value:""}),e='"'==e?Mt:'"';break;default:'"'==e?this.push({type:Bt,value:i.replace("\\RO_Q",'\\"')}):-1==Mt.indexOf(i)&&this.push(this._stringToRoxx(i))}return this.tokenArray}}class Ut{constructor(t){this._tokenizer=new Vt,this._cache=t||{}}_argsArrayForOperator(t,e){const r=[];var i=t.length;for(let t=0;t<i;t++){var n=e.pop();r.push(n)}return r}_modifyArgsHook({operator:t,args:e,context:r,callContext:i}){let n=e;return r&&It.includes(t)&&(n=[...e,r]),i?[...n,i]:n}compileExpression(t){let e=this._cache[t];return e||(e=this._tokenizer.tokenize(t).reverse(),this._cache[t]=e),e}evaluateExpression(e,r={},i={},n){var s;const o=[];var a=this.compileExpression(e);let u;var h=a.length;try{for(let e=0;e<h;e++){var l=a[e];if(l.type==Bt)o.push(l.value);else{if(l.type!=jt){o.push(void 0);break}{const e=t[l.value];var p=this._argsArrayForOperator(e,o),f=(p=this._modifyArgsHook({operator:e,args:p,context:i,callContext:r}),e.apply(this,p)),d=(o.push(f),`${l.value}(${JSON.stringify(p)}) => `+f);n&&n.push(d),c.debug("Roxx: "+d)}}}u=o.pop()}catch(t){var g="Uh oh! An error occurred during Roxx evaluation. "+e;t.isUserError?Q.invoke(t.trigger,t):null!=(s=L())&&s.error(g,t),c.error(g,t),u=!1}finally{return u}}}let zt=!1;const Lt={"rox.internal.pushUpdates":"true","rox.internal.considerThrottleInPush":"false","rox.internal.throttleFetchInSeconds":"0","rox.internal.analytics":"true"};function Ht(t){return"boolean"==typeof(t=Kt(t))?t:"true"===t}function Kt(t){return zt&&Object.prototype.hasOwnProperty.call(Lt,t)?Lt[t]:(t=q.experimentForFlagName(t))&&t.deploymentConfiguration?(new Ut).evaluateExpression(t.deploymentConfiguration.condition):""}let qt=null,$t=null;const Jt={frozenOrCalc:"frozenValueOrOneTimeEval",oneTimeCalc:"oneTimeEval",default:"useFrozen"},Wt={boolean:"boolean",number:"number",string:"string"};class Gt{constructor(t,e,r){if(this._type=r,r=this._validateDefault(t),Array.isArray(e))this._validateOptions(e),this._options=e.map((t=>t.toString()));else{if(null!=e)throw new Error("RoxStringBase wrong variations type");this._options=[]}-1===this._options.indexOf(r)&&this._options.push(r),this._value=this._defaultValue=r,this._frozen=!1,this._freezable=!0}_validateDefault(t){if(typeof t!==this._type)throw new Error(`RoxStringBase default value must be of ${this._type} type. Received '${t}'`);return t.toString()}_validateOptions(t){var e=new Error(`RoxStringBase options must be a non-empty array of ${this._type}. Received '${t}'`);if(!t.every((t=>typeof t===this._type)))throw e}get defaultValue(){return this._defaultValue}get overridenValue(){if(this.overrider.hasOverride(this.name))return this.overrider.getOverride(this.name)}get overrider(){throw new Error("Not implemented")}getInternalValue(t,e){throw Error("not implemented")}get externalType(){switch(this._type){case Wt.boolean:return Boolean.name;case Wt.number:return Number.name;default:return Wt.string,String.name}}set name(t){this._name=t}get name(){return this._name}_getNameDetails(){if(this.name){const t=this.name.split(".");return{name:t.pop(),namespace:t.join(".")||"default"}}}dump(){var t={type:Jt.frozenOrCalc};return this.getInternalValue(t),{name:this.name,type:this._type,nameDetails:this._getNameDetails(),options:[...this._options],defaultValue:this.defaultValue,originalValue:this._originalValue(),overridingValue:this.overridenValue,value:t.result.value}}getActiveValue(t,e){throw new Error("Not implemented")}_originalValue(){var t={type:Jt.frozenOrCalc};return this.getActiveValue(t),t.result.value}_flagImpression(t,e){var r=q.experimentForFlag(this);try{if($t&&Ht("rox.internal.analytics")){var i=r&&r.stickinessProperty;let s=i&&G.get(i);var n=(s=s||G.get("rox.distinct_id"))?s.getValue(e):"";$t.track({flag:this.name,value:t,distinctId:n,type:"IMPRESSION",time:(new Date).getTime()})}}catch(t){c.error("Failed to send analytics",t)}if("function"==typeof qt){i=!!r;try{qt({name:this.name,value:t,targeting:i},e)}catch(t){Q.invoke("IMPRESSION_HANDLER",t)}}}static _normalizeString(t){return t}static _normalizeNumber(t){return Number(t)}stat