(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[956],{85292:function(e,t){"use strict";t.Nm=t.Rq=void 0;var n=/^([^\w]*)(javascript|data|vbscript)/im,r=/&#(\w+)(^\w|;)?/g,i=/&(newline|tab);/gi,o=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,a=/^.+(:|:)/gim,s=[".","/"];t.Rq="about:blank",t.Nm=function(e){if(!e)return t.Rq;var l=e.replace(o,"").replace(r,function(e,t){return String.fromCharCode(t)}).replace(i,"").replace(o,"").trim();if(!l)return t.Rq;if(s.indexOf(l[0])>-1)return l;var u=l.match(a);if(!u)return l;var c=u[0];return n.test(c)?t.Rq:l}},5279:function(e,t,n){"use strict";n.d(t,{xA:function(){return i}});var r=n(87950);function i(e,t,n,i,o){var a,s,l,u;if("unary"==e){let e=(e,n,r)=>t.unary(e,n,r);for(let t of(null!==(a=i.interceptors)&&void 0!==a?a:[]).filter(e=>e.interceptUnary).reverse()){let n=e;e=(e,r,i)=>t.interceptUnary(n,e,r,i)}return e(n,o,i)}if("serverStreaming"==e){let e=(e,n,r)=>t.serverStreaming(e,n,r);for(let t of(null!==(s=i.interceptors)&&void 0!==s?s:[]).filter(e=>e.interceptServerStreaming).reverse()){let n=e;e=(e,r,i)=>t.interceptServerStreaming(n,e,r,i)}return e(n,o,i)}if("clientStreaming"==e){let e=(e,n)=>t.clientStreaming(e,n);for(let t of(null!==(l=i.interceptors)&&void 0!==l?l:[]).filter(e=>e.interceptClientStreaming).reverse()){let n=e;e=(e,r)=>t.interceptClientStreaming(n,e,r)}return e(n,i)}if("duplex"==e){let e=(e,n)=>t.duplex(e,n);for(let t of(null!==(u=i.interceptors)&&void 0!==u?u:[]).filter(e=>e.interceptDuplex).reverse()){let n=e;e=(e,r)=>t.interceptDuplex(n,e,r)}return e(n,i)}(0,r.vE)(e)}},3406:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});var r=n(14127);class i{constructor(e,t,n){this.typeName=e,this.methods=t.map(e=>{var t,n,i;return e.service=this,e.localName=null!==(t=e.localName)&&void 0!==t?t:(0,r.c)(e.name),e.serverStreaming=!!e.serverStreaming,e.clientStreaming=!!e.clientStreaming,e.options=null!==(n=e.options)&&void 0!==n?n:{},e.idempotency=null!==(i=e.idempotency)&&void 0!==i?i:void 0,e}),this.options=null!=n?n:{}}}},87950:function(e,t,n){"use strict";function r(e,t){if(!e)throw Error(t)}function i(e,t){throw Error(null!=t?t:"Unexpected object: "+e)}function o(e){if("number"!=typeof e)throw Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw Error("invalid int 32: "+e)}function a(e){if("number"!=typeof e)throw Error("invalid uint 32: "+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw Error("invalid uint 32: "+e)}function s(e){if("number"!=typeof e)throw Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw Error("invalid float 32: "+e)}n.d(t,{E_:function(){return s},fp:function(){return a},hu:function(){return r},ug:function(){return o},vE:function(){return i}})},35614:function(e,t,n){"use strict";var r,i,o;function a(e,t){return Object.assign(Object.assign({},e),t)}n.d(t,{TA:function(){return a},TD:function(){return i},z:function(){return r}}),function(e){e.symbol=Symbol.for("protobuf-ts/unknown"),e.onRead=(n,r,i,o,a)=>{(t(r)?r[e.symbol]:r[e.symbol]=[]).push({no:i,wireType:o,data:a})},e.onWrite=(t,n,r)=>{for(let{no:t,wireType:i,data:o}of e.list(n))r.tag(t,i).raw(o)},e.list=(n,r)=>{if(t(n)){let t=n[e.symbol];return r?t.filter(e=>e.no==r):t}return[]},e.last=(t,n)=>e.list(t,n).slice(-1)[0];let t=t=>t&&Array.isArray(t[e.symbol])}(r||(r={})),(o=i||(i={}))[o.Varint=0]="Varint",o[o.Bit64=1]="Bit64",o[o.LengthDelimited=2]="LengthDelimited",o[o.StartGroup=3]="StartGroup",o[o.EndGroup=4]="EndGroup",o[o.Bit32=5]="Bit32"},90660:function(e,t,n){"use strict";function r(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(127&r)<>4,(128&n)==0)return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(127&r)<>>r,o=!(i>>>7==0&&0==t),a=(o?128|i:i)&255;if(n.push(a),!o)return}let r=e>>>28&15|(7&t)<<4,i=t>>3!=0;if(n.push((i?128|r:r)&255),i){for(let e=3;e<31;e+=7){let r=t>>>e,i=r>>>7!=0,o=(i?128|r:r)&255;if(n.push(o),!i)return}n.push(t>>>31&1)}}function o(e){let t="-"==e[0];t&&(e=e.slice(1));let n=0,r=0;function i(t,i){let o=Number(e.slice(t,i));r*=1e6,(n=1e6*n+o)>=4294967296&&(r+=n/4294967296|0,n%=4294967296)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[t,n,r]}function a(e,t){if(t>>>0<=2097151)return""+(4294967296*t+(e>>>0));let n=(e>>>24|t<<8)>>>0&16777215,r=t>>16&65535,i=(16777215&e)+6777216*n+6710656*r,o=n+8147497*r,a=2*r;function s(e,t){let n=e?String(e):"";return t?"0000000".slice(n.length)+n:n}return i>=1e7&&(o+=Math.floor(i/1e7),i%=1e7),o>=1e7&&(a+=Math.floor(o/1e7),o%=1e7),s(a,0)+s(o,a)+s(i,1)}function s(e,t){if(e>=0){for(;e>127;)t.push(127&e|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(127&e|128),e>>=7;t.push(1)}}function l(){let e=this.buf[this.pos++],t=127&e;if((128&e)==0||(t|=(127&(e=this.buf[this.pos++]))<<7,(128&e)==0)||(t|=(127&(e=this.buf[this.pos++]))<<14,(128&e)==0)||(t|=(127&(e=this.buf[this.pos++]))<<21,(128&e)==0))return this.assertBounds(),t;t|=(15&(e=this.buf[this.pos++]))<<28;for(let t=5;(128&e)!=0&&t<10;t++)e=this.buf[this.pos++];if((128&e)!=0)throw Error("invalid varint");return this.assertBounds(),t>>>0}n.d(t,{IL:function(){return o},_y:function(){return i},fC:function(){return s},gn:function(){return a},jI:function(){return l},sg:function(){return r}})},43696:function(e,t,n){"use strict";n.d(t,{N3:function(){return s},P2:function(){return a},jl:function(){return o}});let r={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},i={ignoreUnknownFields:!1};function o(e){return e?Object.assign(Object.assign({},i),e):i}function a(e){return e?Object.assign(Object.assign({},r),e):r}function s(e,t){var n,r;let i=Object.assign(Object.assign({},e),t);return i.typeRegistry=[...null!==(n=null==e?void 0:e.typeRegistry)&&void 0!==n?n:[],...null!==(r=null==t?void 0:t.typeRegistry)&&void 0!==r?r:[]],i}},32701:function(e,t,n){"use strict";function r(e){let t=typeof e;if("object"==t){if(Array.isArray(e))return"array";if(null===e)return"null"}return t}function i(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}n.d(t,{Z:function(){return r},b:function(){return i}})},14127:function(e,t,n){"use strict";function r(e){let t=!1,n=[];for(let r=0;r!r.includes(e))||!n&&r.some(e=>!i.known.includes(e)))return!1;if(t<1)return!0;for(let r of i.oneofs){let i=e[r];if(!function(e){if("object"!=typeof e||null===e||!e.hasOwnProperty("oneofKind"))return!1;switch(typeof e.oneofKind){case"string":if(void 0===e[e.oneofKind])return!1;return 2==Object.keys(e).length;case"undefined":return 1==Object.keys(e).length;default:return!1}}(i))return!1;if(void 0===i.oneofKind)continue;let o=this.fields.find(e=>e.localName===i.oneofKind);if(!o||!this.field(i[i.oneofKind],o,n,t))return!1}for(let r of this.fields)if(void 0===r.oneof&&!this.field(e[r.localName],r,n,t))return!1;return!0}field(e,t,n,r){let i=t.repeat;switch(t.kind){case"scalar":if(void 0===e)return t.opt;if(i)return this.scalars(e,t.T,r,t.L);return this.scalar(e,t.T,t.L);case"enum":if(void 0===e)return t.opt;if(i)return this.scalars(e,a.INT32,r);return this.scalar(e,a.INT32);case"message":if(void 0===e)break;if(i)return this.messages(e,t.T(),n,r);return this.message(e,t.T(),n,r);case"map":if("object"!=typeof e||null===e)return!1;if(r<2)break;if(!this.mapKeys(e,t.K,r))return!1;switch(t.V.kind){case"scalar":return this.scalars(Object.values(e),t.V.T,r,t.V.L);case"enum":return this.scalars(Object.values(e),a.INT32,r);case"message":return this.messages(Object.values(e),t.V.T(),n,r)}}return!0}message(e,t,n,r){return n?t.isAssignable(e,r):t.is(e,r)}messages(e,t,n,r){if(!Array.isArray(e))return!1;if(r<2)return!0;if(n){for(let n=0;nparseInt(e)),t,n);case a.BOOL:return this.scalars(r.slice(0,n).map(e=>"true"==e||"false"!=e&&e),t,n);default:return this.scalars(r,t,n,s.STRING)}}}var h=n(32701);let p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),m=[];for(let e=0;e>4,a=o,i=2;break;case 2:n[r++]=(15&a)<<4|(60&o)>>2,a=o,i=3;break;case 3:n[r++]=(3&a)<<6|o,i=0}}if(1==i)throw Error("invalid base64 string.");return n.subarray(0,r)}(e)}}catch(e){i=e.message}this.assert(!1,r+(i?" - "+i:""),e)}}class w{constructor(e){var t;this.fields=null!==(t=e.fields)&&void 0!==t?t:[]}write(e,t){let n={};for(let r of this.fields){if(!r.oneof){let i=this.field(r,e[r.localName],t);void 0!==i&&(n[t.useProtoFieldName?r.name:r.jsonName]=i);continue}let i=e[r.oneof];if(i.oneofKind!==r.localName)continue;let o="scalar"==r.kind||"enum"==r.kind?Object.assign(Object.assign({},t),{emitDefaultValues:!0}):t,a=this.field(r,i[r.localName],o);(0,v.hu)(void 0!==a),n[t.useProtoFieldName?r.name:r.jsonName]=a}return n}field(e,t,n){let r;if("map"==e.kind){(0,v.hu)("object"==typeof t&&null!==t);let i={};switch(e.V.kind){case"scalar":for(let[n,r]of Object.entries(t)){let t=this.scalar(e.V.T,r,e.name,!1,!0);(0,v.hu)(void 0!==t),i[n.toString()]=t}break;case"message":let o=e.V.T();for(let[r,a]of Object.entries(t)){let t=this.message(o,a,e.name,n);(0,v.hu)(void 0!==t),i[r.toString()]=t}break;case"enum":let a=e.V.T();for(let[r,o]of Object.entries(t)){(0,v.hu)(void 0===o||"number"==typeof o);let t=this.enum(a,o,e.name,!1,!0,n.enumAsInteger);(0,v.hu)(void 0!==t),i[r.toString()]=t}}(n.emitDefaultValues||Object.keys(i).length>0)&&(r=i)}else if(e.repeat){(0,v.hu)(Array.isArray(t));let i=[];switch(e.kind){case"scalar":for(let n=0;n0||n.emitDefaultValues)&&(r=i)}else switch(e.kind){case"scalar":r=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case"enum":r=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":r=this.message(e.T(),t,e.name,n)}return r}enum(e,t,n,r,i,o){if("google.protobuf.NullValue"==e[0])return i||r?null:void 0;if(void 0===t){(0,v.hu)(r);return}if(0!==t||i||r)return((0,v.hu)("number"==typeof t),(0,v.hu)(Number.isInteger(t)),o||!e[1].hasOwnProperty(t))?t:e[2]?e[2]+e[1][t]:e[1][t]}message(e,t,n,r){return void 0===t?r.emitDefaultValues?null:void 0:e.internalJsonWrite(t,r)}scalar(e,t,n,r,i){if(void 0===t){(0,v.hu)(r);return}let o=i||r;switch(e){case a.INT32:case a.SFIXED32:case a.SINT32:if(0===t)return o?0:void 0;return(0,v.ug)(t),t;case a.FIXED32:case a.UINT32:if(0===t)return o?0:void 0;return(0,v.fp)(t),t;case a.FLOAT:(0,v.E_)(t);case a.DOUBLE:if(0===t)return o?0:void 0;if((0,v.hu)("number"==typeof t),Number.isNaN(t))return"NaN";if(t===Number.POSITIVE_INFINITY)return"Infinity";if(t===Number.NEGATIVE_INFINITY)return"-Infinity";return t;case a.STRING:if(""===t)return o?"":void 0;return(0,v.hu)("string"==typeof t),t;case a.BOOL:if(!1===t)return!o&&void 0;return(0,v.hu)("boolean"==typeof t),t;case a.UINT64:case a.FIXED64:(0,v.hu)("number"==typeof t||"string"==typeof t||"bigint"==typeof t);let s=g.p2.from(t);if(s.isZero()&&!o)return;return s.toString();case a.INT64:case a.SFIXED64:case a.SINT64:(0,v.hu)("number"==typeof t||"string"==typeof t||"bigint"==typeof t);let l=g.MJ.from(t);if(l.isZero()&&!o)return;return l.toString();case a.BYTES:if((0,v.hu)(t instanceof Uint8Array),!t.byteLength)return o?"":void 0;return function(e){let t="",n=0,r,i=0;for(let o=0;o>2],i=(3&r)<<4,n=1;break;case 1:t+=p[i|r>>4],i=(15&r)<<2,n=2;break;case 2:t+=p[i|r>>6]+p[63&r],n=0}return n&&(t+=p[i]+"=",1==n&&(t+="=")),t}(t)}}}var _=n(35614);function x(e,t=s.STRING){switch(e){case a.BOOL:return!1;case a.UINT64:case a.FIXED64:return y(g.p2.ZERO,t);case a.INT64:case a.SFIXED64:case a.SINT64:return y(g.MJ.ZERO,t);case a.DOUBLE:case a.FLOAT:return 0;case a.BYTES:return new Uint8Array(0);case a.STRING:return"";default:return 0}}class D{constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){let t=null!==(e=this.info.fields)&&void 0!==e?e:[];this.fieldNoToField=new Map(t.map(e=>[e.no,e]))}}read(e,t,n,r){this.prepare();let i=void 0===r?e.len:e.pos+r;for(;e.pose.no-t.no)}}write(e,t,n){for(let r of(this.prepare(),this.fields)){let i,o,s=r.repeat,u=r.localName;if(r.oneof){let t=e[r.oneof];if(t.oneofKind!==u)continue;i=t[u],o=!0}else i=e[u],o=!1;switch(r.kind){case"scalar":case"enum":let c="enum"==r.kind?a.INT32:r.T;if(s){if((0,v.hu)(Array.isArray(i)),s==l.PACKED)this.packed(t,c,r.no,i);else for(let e of i)this.scalar(t,c,r.no,e,!0)}else void 0===i?(0,v.hu)(r.opt):this.scalar(t,c,r.no,i,o||r.opt);break;case"message":if(s)for(let e of((0,v.hu)(Array.isArray(i)),i))this.message(t,n,r.T(),r.no,e);else this.message(t,n,r.T(),r.no,i);break;case"map":for(let[e,o]of((0,v.hu)("object"==typeof i&&null!==i),Object.entries(i)))this.mapEntry(t,n,r,e,o)}}let r=n.writeUnknownFields;!1!==r&&(!0===r?_.z.onWrite:r)(this.info.typeName,e,t)}mapEntry(e,t,n,r,i){e.tag(n.no,_.TD.LengthDelimited),e.fork();let o=r;switch(n.K){case a.INT32:case a.FIXED32:case a.UINT32:case a.SFIXED32:case a.SINT32:o=Number.parseInt(r);break;case a.BOOL:(0,v.hu)("true"==r||"false"==r),o="true"==r}switch(this.scalar(e,n.K,1,o,!0),n.V.kind){case"scalar":this.scalar(e,n.V.T,2,i,!0);break;case"enum":this.scalar(e,a.INT32,2,i,!0);break;case"message":this.message(e,t,n.V.T(),2,i)}e.join()}message(e,t,n,r,i){void 0!==i&&(n.internalBinaryWrite(i,e.tag(r,_.TD.LengthDelimited).fork(),t),e.join())}scalar(e,t,n,r,i){let[o,a,s]=this.scalarInfo(t,r);(!s||i)&&(e.tag(n,o),e[a](r))}packed(e,t,n,r){if(!r.length)return;(0,v.hu)(t!==a.BYTES&&t!==a.STRING),e.tag(n,_.TD.LengthDelimited),e.fork();let[,i]=this.scalarInfo(t);for(let t=0;tnew j};class j{constructor(e){this.stack=[],this.textEncoder=null!=e?e:new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for((0,v.fp)(e);e>127;)this.buf.push(127&e|128),e>>>=7;return this.buf.push(e),this}int32(e){return(0,v.ug)(e),(0,P.fC)(e,this.buf),this}bool(e){return this.buf.push(e?1:0),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.textEncoder.encode(e);return this.uint32(t.byteLength),this.raw(t)}float(e){(0,v.E_)(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){(0,v.fp)(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){(0,v.ug)(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return(0,v.ug)(e),e=(e<<1^e>>31)>>>0,(0,P.fC)(e,this.buf),this}sfixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=g.MJ.from(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}fixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=g.p2.from(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}int64(e){let t=g.MJ.from(e);return(0,P._y)(t.lo,t.hi,this.buf),this}sint64(e){let t=g.MJ.from(e),n=t.hi>>31,r=t.lo<<1^n,i=(t.hi<<1|t.lo>>>31)^n;return(0,P._y)(r,i,this.buf),this}uint64(e){let t=g.p2.from(e);return(0,P._y)(t.lo,t.hi,this.buf),this}}let L={readUnknownField:!0,readerFactory:e=>new F(e)};class F{constructor(e,t){this.varint64=P.sg,this.uint32=P.jI,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=null!=t?t:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0})}tag(){let e=this.uint32(),t=e>>>3,n=7&e;if(t<=0||n<0||n>5)throw Error("illegal tag: field no "+t+" wire type "+n);return[t,n]}skip(e){let t=this.pos;switch(e){case _.TD.Varint:for(;128&this.buf[this.pos++];);break;case _.TD.Bit64:this.pos+=4;case _.TD.Bit32:this.pos+=4;break;case _.TD.LengthDelimited:let n=this.uint32();this.pos+=n;break;case _.TD.StartGroup:let r;for(;(r=this.tag()[1])!==_.TD.EndGroup;)this.skip(r);break;default:throw Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(t,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError("premature EOF")}int32(){return 0|this.uint32()}sint32(){let e=this.uint32();return e>>>1^-(1&e)}int64(){return new g.MJ(...this.varint64())}uint64(){return new g.p2(...this.varint64())}sint64(){let[e,t]=this.varint64(),n=-(1&e);return e=(e>>>1|(1&t)<<31)^n,t=t>>>1^n,new g.MJ(e,t)}bool(){let[e,t]=this.varint64();return 0!==e||0!==t}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return new g.p2(this.sfixed32(),this.sfixed32())}sfixed64(){return new g.MJ(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}}let A=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));class N{constructor(e,t,n){this.defaultCheckDepth=16,this.typeName=e,this.fields=t.map(d),this.options=null!=n?n:{},this.messagePrototype=Object.create(null,Object.assign(Object.assign({},A),{[u.C]:{value:this}})),this.refTypeCheck=new f(this),this.refJsonReader=new b(this),this.refJsonWriter=new w(this),this.refBinReader=new D(this),this.refBinWriter=new E(this)}create(e){let t=function(e){let t=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},u.C,{value:e});for(let n of e.fields){let e=n.localName;if(!n.opt){if(n.oneof)t[n.oneof]={oneofKind:void 0};else if(n.repeat)t[e]=[];else switch(n.kind){case"scalar":t[e]=x(n.T,n.L);break;case"enum":t[e]=0;break;case"map":t[e]={}}}}return t}(this);return void 0!==e&&(0,C.l)(this,t,e),t}clone(e){let t=this.create();return(0,C.l)(this,t,e),t}equals(e,t){return function(e,t,n){if(t===n)return!0;if(!t||!n)return!1;for(let r of e.fields){let e=r.localName,i=r.oneof?t[r.oneof][e]:t[e],o=r.oneof?n[r.oneof][e]:n[e];switch(r.kind){case"enum":case"scalar":let s="enum"==r.kind?a.INT32:r.T;if(!(r.repeat?M(s,i,o):T(s,i,o)))return!1;break;case"map":if(!("message"==r.V.kind?O(r.V.T(),S(i),S(o)):M("enum"==r.V.kind?a.INT32:r.V.T,S(i),S(o))))return!1;break;case"message":let l=r.T();if(!(r.repeat?O(l,i,o):l.equals(i,o)))return!1}}return!0}(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!1)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!0)}mergePartial(e,t){(0,C.l)(this,e,t)}fromBinary(e,t){let n=t?Object.assign(Object.assign({},L),t):L;return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,t){return this.internalJsonRead(e,(0,k.jl)(t))}fromJsonString(e,t){let n=JSON.parse(e);return this.fromJson(n,t)}toJson(e,t){return this.internalJsonWrite(e,(0,k.P2)(t))}toJsonString(e,t){var n;return JSON.stringify(this.toJson(e,t),null,null!==(n=null==t?void 0:t.prettySpaces)&&void 0!==n?n:0)}toBinary(e,t){let n=t?Object.assign(Object.assign({},R),t):R;return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,t,n){if(null!==e&&"object"==typeof e&&!Array.isArray(e)){let r=null!=n?n:this.create();return this.refJsonReader.read(e,r,t),r}throw Error(`Unable to parse message ${this.typeName} from JSON ${(0,h.Z)(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,n){return this.refBinWriter.write(e,t,n),t}internalBinaryRead(e,t,n,r){let i=null!=r?r:this.create();return this.refBinReader.read(e,i,n,t),i}}},94863:function(e,t,n){"use strict";let r;n.d(t,{MJ:function(){return u},p2:function(){return l}});var i=n(90660);function o(e){if(!e)throw Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}!function(){let e=new DataView(new ArrayBuffer(8));r=void 0!==globalThis.BigInt&&"function"==typeof e.getBigInt64&&"function"==typeof e.getBigUint64&&"function"==typeof e.setBigInt64&&"function"==typeof e.setBigUint64?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:e}:void 0}();let a=/^-?[0-9]+$/;class s{constructor(e,t){this.lo=0|e,this.hi=0|t}isZero(){return 0==this.lo&&0==this.hi}toNumber(){let e=4294967296*this.hi+(this.lo>>>0);if(!Number.isSafeInteger(e))throw Error("cannot convert to safe number");return e}}class l extends s{static from(e){if(r)switch(typeof e){case"string":if("0"==e)return this.ZERO;if(""==e)throw Error("string is no integer");e=r.C(e);case"number":if(0===e)return this.ZERO;e=r.C(e);case"bigint":if(!e)return this.ZERO;if(er.UMAX)throw Error("ulong too large");return r.V.setBigUint64(0,e,!0),new l(r.V.getInt32(0,!0),r.V.getInt32(4,!0))}else switch(typeof e){case"string":if("0"==e)return this.ZERO;if(e=e.trim(),!a.test(e))throw Error("string is no integer");let[t,n,o]=(0,i.IL)(e);if(t)throw Error("signed value for ulong");return new l(n,o);case"number":if(0==e)return this.ZERO;if(!Number.isSafeInteger(e))throw Error("number is no integer");if(e<0)throw Error("signed value for ulong");return new l(e,e/4294967296)}throw Error("unknown value "+typeof e)}toString(){return r?this.toBigInt().toString():(0,i.gn)(this.lo,this.hi)}toBigInt(){return o(r),r.V.setInt32(0,this.lo,!0),r.V.setInt32(4,this.hi,!0),r.V.getBigUint64(0,!0)}}l.ZERO=new l(0,0);class u extends s{static from(e){if(r)switch(typeof e){case"string":if("0"==e)return this.ZERO;if(""==e)throw Error("string is no integer");e=r.C(e);case"number":if(0===e)return this.ZERO;e=r.C(e);case"bigint":if(!e)return this.ZERO;if(er.MAX)throw Error("signed long too large");return r.V.setBigInt64(0,e,!0),new u(r.V.getInt32(0,!0),r.V.getInt32(4,!0))}else switch(typeof e){case"string":if("0"==e)return this.ZERO;if(e=e.trim(),!a.test(e))throw Error("string is no integer");let[t,n,o]=(0,i.IL)(e);if(t){if(o>2147483648||2147483648==o&&0!=n)throw Error("signed long too small")}else if(o>=2147483648)throw Error("signed long too large");let s=new u(n,o);return t?s.negate():s;case"number":if(0==e)return this.ZERO;if(!Number.isSafeInteger(e))throw Error("number is no integer");return e>0?new u(e,e/4294967296):new u(-e,-e/4294967296).negate()}throw Error("unknown value "+typeof e)}isNegative(){return(2147483648&this.hi)!=0}negate(){let e=~this.hi,t=this.lo;return t?t=~t+1:e+=1,new u(t,e)}toString(){if(r)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+(0,i.gn)(e.lo,e.hi)}return(0,i.gn)(this.lo,this.hi)}toBigInt(){return o(r),r.V.setInt32(0,this.lo,!0),r.V.setInt32(4,this.hi,!0),r.V.getBigInt64(0,!0)}}u.ZERO=new u(0,0)},85424:function(e,t,n){"use strict";function r(e,t,n){let r,i;for(let o of e.fields){let e=o.localName;if(o.oneof){let a=n[o.oneof];if((null==a?void 0:a.oneofKind)==void 0)continue;if(r=a[e],(i=t[o.oneof]).oneofKind=a.oneofKind,void 0==r){delete i[e];continue}}else if(r=n[e],i=t,void 0==r)continue;switch(o.repeat&&(i[e].length=r.length),o.kind){case"scalar":case"enum":if(o.repeat)for(let t=0;t{this._resolve=e,this._reject=t}),e&&this._promise.catch(e=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==a.PENDING)throw Error(`cannot resolve ${a[this.state].toLowerCase()}`);this._resolve(e),this._state=a.RESOLVED}reject(e){if(this.state!==a.PENDING)throw Error(`cannot reject ${a[this.state].toLowerCase()}`);this._reject(e),this._state=a.REJECTED}resolvePending(e){this._state===a.PENDING&&this.resolve(e)}rejectPending(e){this._state===a.PENDING&&this.reject(e)}}class h{constructor(e,t,n,r,i,o,a){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.response=i,this.status=o,this.trailers=a}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){var e,t,n,r;return e=this,t=void 0,n=void 0,r=function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:r}},new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}}var p=n(14127);class m{constructor(e){this.defaultOptions=e}mergeOptions(e){return function(e,t){if(!t)return e;let n={};for(let r of(d(e,n),d(t,n),Object.keys(t))){let i=t[r];switch(r){case"jsonOptions":n.jsonOptions=(0,u.N3)(e.jsonOptions,n.jsonOptions);break;case"binaryOptions":n.binaryOptions=(0,c.TA)(e.binaryOptions,n.binaryOptions);break;case"meta":n.meta={},d(e.meta,n.meta),d(t.meta,n.meta);break;case"interceptors":n.interceptors=e.interceptors?e.interceptors.concat(i):i.concat()}}return n}(this.defaultOptions,e)}unary(e,t,n){var r,i,a;let u=this.makeUrl(e,n),c=null!==(r=n.fetchInit)&&void 0!==r?r:{},d=n.sendJson?e.I.toJsonString(t,n.jsonOptions):e.I.toBinary(t,n.binaryOptions),p=new f,m=new f,g=new f,v=new f;return globalThis.fetch(u,Object.assign(Object.assign({},c),{method:"POST",headers:function(e,t,n){if(n)for(let[t,r]of Object.entries(n))if("string"==typeof r)e.append(t,r);else for(let n of r)e.append(t,n);return e.set("Content-Type",t?"application/json":"application/protobuf"),e.set("Accept",t?"application/json":"application/protobuf, application/json"),e}(new globalThis.Headers,!!n.sendJson,n.meta),body:d,signal:null!==(i=n.abort)&&void 0!==i?i:null})).then(t=>{var r;let i,a;p.resolve((r=t.headers,a={},r.forEach((e,t)=>{"content-type"!==t.toLowerCase()&&"content-length"!==t.toLowerCase()&&(a.hasOwnProperty(t)?a[t].push(e):a[t]=e)}),a));try{i=t.type}catch(e){}switch(i){case"error":case"opaque":case"opaqueredirect":throw new l(`fetch response type ${t.type}`,o[o.unknown])}return t.ok?n.sendJson?t.json().then(t=>e.O.fromJson(t,n.jsonOptions),()=>{throw new l("unable to read response body as json",o[o.dataloss])}):t.arrayBuffer().then(t=>e.O.fromBinary(new Uint8Array(t),n.binaryOptions),()=>{throw new l("unable to read response body",o[o.dataloss])}):t.json().then(e=>{throw function(e){if(!(0,s.b)(e)||"string"!=typeof e.code||"string"!=typeof e.msg)return new l("cannot read twirp error response",o[o.internal]);let t={};if((0,s.b)(e.meta))for(let[n,r]of Object.entries(e.meta))"string"==typeof r&&(t[n]=r);return new l(e.msg,e.code,t)}(e)},()=>{throw new l("received HTTP "+t.status+", unable to read response body as json",o[o.internal])})},e=>{if(e instanceof Error&&"AbortError"===e.name)throw new l(e.message,o[o.cancelled]);throw new l(e instanceof Error?e.message:e)}).then(e=>{m.resolve(e),g.resolve({code:"OK",detail:""}),v.resolve({})}).catch(t=>{let n=t instanceof l?t:new l(t instanceof Error?t.message:t,o[o.internal]);n.methodName=e.name,n.serviceName=e.service.typeName,p.rejectPending(n),m.rejectPending(n),g.rejectPending(n),v.rejectPending(n)}),new h(e,null!==(a=n.meta)&&void 0!==a?a:{},t,p.promise,m.promise,g.promise,v.promise)}makeUrl(e,t){let n=t.baseUrl;n.endsWith("/")&&(n=n.substring(0,n.length-1));let r=e.name;return!0!==t.useProtoMethodName&&(r=(r=(0,p.c)(r)).substring(0,1).toUpperCase()+r.substring(1)),`${n}/${e.service.typeName}/${r}`}clientStreaming(e){let t=new l("Client streaming is not supported by Twirp",o[o.unimplemented]);throw t.methodName=e.name,t.serviceName=e.service.typeName,t}duplex(e){let t=new l("Duplex streaming is not supported by Twirp",o[o.unimplemented]);throw t.methodName=e.name,t.serviceName=e.service.typeName,t}serverStreaming(e){let t=new l("Server streaming is not supported by Twirp",o[o.unimplemented]);throw t.methodName=e.name,t.serviceName=e.service.typeName,t}}},94946:function(e,t,n){"use strict";let r,i,o,a;n.d(t,{Uq0:function(){return y.Uq},qOo:function(){return pI},ZXw:function(){return mp},KkN:function(){return pK},vNM:function(){return pz},FvN:function(){return pA},N_D:function(){return ms},c3T:function(){return p0},hbc:function(){return mu},GRk:function(){return y.GR},$GM:function(){return p$},fm4:function(){return pY},W7t:function(){return ec},dvl:function(){return eO},G1:function(){return eT},b12:function(){return e_}});var s,l,u,c,d,f,h,p,m,g,v,y=n(26347),b=n(57437),w=n(2265),_=n.t(w,2);let x={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class D{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||x,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=Array(e),n=0;n{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{let[t,r]=e;for(let e=0;e{let[r,i]=t;for(let t=0;t{e=n,t=r});return n.resolve=e,n.reject=t,n}function S(e){return null==e?"":""+e}let T=/###/g;function M(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(T,"."):e}function i(){return!e||"string"==typeof e}let o="string"!=typeof t?t:t.split("."),a=0;for(;a":">",'"':""","'":"'","/":"/"};function L(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,e=>j[e]):e}class F{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}let A=[" ",",","?","!",";"],N=new F(20);function I(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];let r=t.split(n),i=e;for(let e=0;e-1&&a0?e.replace("_","-"):e}class U extends C{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?r=e.split("."):(r=[e,t],n&&(Array.isArray(n)?r.push(...n):"string"==typeof n&&o?r.push(...n.split(o)):r.push(n)));let s=P(this.data,r);return(!s&&!t&&!n&&e.indexOf(".")>-1&&(e=r[0],t=r[1],n=r.slice(2).join(".")),s||!a||"string"!=typeof n)?s:I(this.data&&this.data[e]&&this.data[e][t],n,o)}addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),O(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(let r in n)("string"==typeof n[r]||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=P(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?function e(t,n,r){for(let i in n)"__proto__"!==i&&"constructor"!==i&&(i in t?"string"==typeof t[i]||t[i]instanceof String||"string"==typeof n[i]||n[i]instanceof String?r&&(t[i]=n[i]):e(t[i],n[i],r):t[i]=n[i]);return t}(s,n,i):s={...s,...n},O(this.data,a,s),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var z={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))}),t}};let H={};class V extends C{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(e,t,n){e.forEach(e=>{t[e]&&(n[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=E.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;let n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";let r=A.filter(e=>0>t.indexOf(e)&&0>n.indexOf(e));if(0===r.length)return!0;let i=N.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`),o=!i.test(e);if(!o){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o}(e,n,r);if(o&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i};let o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);let r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(u){let e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${s}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:o}let c=this.resolve(e,t),d=c&&c.res,f=c&&c.usedKey||o,h=c&&c.exactUsedKey||o,p=Object.prototype.toString.apply(d),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,v="string"!=typeof d&&"boolean"!=typeof d&&"number"!=typeof d;if(g&&d&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(p)&&!("string"==typeof m&&Array.isArray(d))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(c.res=e,c.usedParams=this.getUsedParamsDetails(t),c):e}if(i){let e=Array.isArray(d),n=e?[]:{},r=e?h:f;for(let e in d)if(Object.prototype.hasOwnProperty.call(d,e)){let o=`${r}${i}${e}`;n[e]=this.translate(o,{...t,joinArrays:!1,ns:a}),n[e]===o&&(n[e]=d[e])}d=n}}else if(g&&"string"==typeof m&&Array.isArray(d))(d=d.join(m))&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,a=!1,u=void 0!==t.count&&"string"!=typeof t.count,f=V.hasDefaultValue(t),h=u?this.pluralResolver.getSuffix(l,t.count,t):"",p=t.ordinal&&u?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",m=u&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),g=m&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${h}`]||t[`defaultValue${p}`]||t.defaultValue;!this.isValidLookup(d)&&f&&(r=!0,d=g),this.isValidLookup(d)||(a=!0,d=o);let v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,y=f&&g!==d&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",l,s,o,y?g:d),i){let e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t{let i=f&&r!==d?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,y,t),this.emit("missingKey",e,s,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{let n=this.pluralResolver.getSuffixes(e,t);m&&t[`defaultValue${this.options.pluralSeparator}zero`]&&0>n.indexOf(`${this.options.pluralSeparator}zero`)&&n.push(`${this.options.pluralSeparator}zero`),n.forEach(n=>{r([e],o+n,t[`defaultValue${n}`]||g)})}):r(e,o,g))}d=this.extendTranslation(d,e,t,c,n),a&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${o}`),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${o}`:o,r?d:void 0):this.options.parseMissingKeyHandler(d))}return r?(c.res=d,c.usedParams=this.getUsedParamsDetails(t),c):d}extendTranslation(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){let a;n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){let t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),s){let t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,r=Array(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(t))return;let s=this.extractFromKey(e,a),l=s.key;n=l;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let c=void 0!==a.count&&"string"!=typeof a.count,d=c&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,h=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);u.forEach(e=>{this.isValidLookup(t)||(o=e,!H[`${h[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(H[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${h.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(n=>{let o;if(this.isValidLookup(t))return;i=n;let s=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(s,l,n,e,a);else{let e;c&&(e=this.pluralResolver.getSuffix(n,a.count,a));let t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(s.push(l+e),a.ordinal&&0===e.indexOf(r)&&s.push(l+e.replace(r,this.options.pluralSeparator)),d&&s.push(l+t)),f){let n=`${l}${this.options.contextSeparator}${a.context}`;s.push(n),c&&(s.push(n+e),a.ordinal&&0===e.indexOf(r)&&s.push(n+e.replace(r,this.options.pluralSeparator)),d&&s.push(n+t))}}for(;o=s.pop();)this.isValidLookup(t)||(r=o,t=this.getResource(n,e,o,a))}))})}),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.replace&&"string"!=typeof e.replace,n=t?e.replace:e;if(t&&void 0!==e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!t)for(let e of(n={...n},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[e];return n}static hasDefaultValue(e){let t="defaultValue";for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}function q(e){return e.charAt(0).toUpperCase()+e.slice(1)}class W{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=E.create("languageUtils")}getScriptPartFromCode(e){if(!(e=B(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=B(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"==typeof e&&e.indexOf("-")>-1){let t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=q(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=q(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=q(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(0>e.indexOf("-")&&0>n.indexOf("-"))&&(e.indexOf("-")>0&&0>n.indexOf("-")&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach(e=>{0>r.indexOf(e)&&i(this.formatLanguageCode(e))}),r}}let $=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Y={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Z=["v1","v2","v3"],G=["v4"],J={zero:0,one:1,two:2,few:3,many:4,other:5};class K{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=E.create("pluralResolver"),(!this.options.compatibilityJSON||G.includes(this.options.compatibilityJSON))&&("undefined"==typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){let e={};return $.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Y[t.fc]}})}),e}()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(B("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>J[e]-J[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));let i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Z.includes(this.options.compatibilityJSON)}}function X(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4)||void 0===arguments[4]||arguments[4],o=function(e,t,n){let r=P(e,n);return void 0!==r?r:P(t,n)}(e,t,n);return!o&&i&&"string"==typeof n&&void 0===(o=I(e,n,r))&&(o=I(t,n,r)),o}class Q{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=E.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:h,nestingSuffixEscaped:p,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:L,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?R(i):o||"{{",this.suffix=a?R(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?R(d):f||R("$t("),this.nestingSuffix=h?R(h):p||R(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,o,a;let s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}let u=e=>{if(0>e.indexOf(this.formatSeparator)){let i=X(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(X(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();let c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>l(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?l(this.escape(e)):l(e)}].forEach(t=>{for(a=0;i=t.regex.exec(e);){let n=i[1].trim();if(void 0===(o=u(n))){if("function"==typeof c){let t=c(e,i,r);o="string"==typeof t?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else if(d){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else"string"==typeof o||this.useRawValueToEscape||(o=S(o));let s=t.safeValue(o);if(e=e.replace(i[0],s),d?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t){let n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function a(e,t){let n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;let r=e.split(RegExp(`${n}[ ]*{`)),o=`{${r[1]}`;e=r[0];let a=(o=this.interpolate(o,i)).match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){let s=[];(i=(i={...o}).replace&&"string"!=typeof i.replace?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){let e=n[1].split(this.formatSeparator).map(e=>e.trim());n[1]=e.shift(),s=e,l=!0}if((r=t(a.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=S(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),l&&(r=s.reduce((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}function ee(e){let t={};return function(n,r,i){let o=r+JSON.stringify(i),a=t[o];return a||(a=e(B(r),i),t[o]=a),a(n)}}class et{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=E.create("formatter"),this.options=e,this.formats={number:ee((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:ee((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:ee((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:ee((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:ee((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ee(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce((e,t)=>{let{formatName:i,formatOptions:o}=function(e){let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let r=e.split("(");t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);"currency"===t&&0>i.indexOf(":")?n.currency||(n.currency=i.trim()):"relativetime"===t&&0>i.indexOf(":")?n.range||(n.range=i.trim()):i.split(";").forEach(e=>{if(e){let[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}}(t);if(this.formats[i]){let t=e;try{let a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...o,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class en extends C{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=E.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){let i={},o={},a={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;let a={};this.queue.forEach(n=>{(function(e,t,n,r){let{obj:i,k:o}=M(e,t,Object);i[o]=i[o]||[],i[o].push(n)})(n.loaded,[i],o),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});return}this.readingCalls++;let a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(a&&s&&r{this.read.call(this,e,t,n,r+1,2*i,o)},i);return}o(a,s)},s=this.backend[n].bind(this.backend);if(2===s.length){try{let n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}return}return s(e,t,a)}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,(n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,n,o)})}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(null!=n&&""!==n){if(this.backend&&this.backend.create){let s={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;(i=5===l.length?l(e,t,n,r,s):l(e,t,n,r))&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else l(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}function er(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if("object"==typeof e[1]&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function ei(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function eo(){}class ea extends C{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ei(e),this.services={},this.logger=E,this.modules={external:[]},!function(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));let r=er();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options={...r,...this.options,...ei(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){let t;this.modules.logger?E.init(i(this.modules.logger),this.options):E.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=et);let n=new W(this.options);this.store=new U(this.options.resources,this.options);let o=this.services;o.logger=E,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new K(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(o.formatter=i(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new Q(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new en(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||(n=eo),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let o=k(),a=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eo,n=t,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload&&this.options.preload.forEach(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=k();return e||(e=this.languages),t||(t=this.options.ns),n||(n=eo),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&z.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;let r=k();this.emit("languageChanging",e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},a=t=>{e||t||!this.services.languageDetector||(t=[]);let n="string"==typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{o(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;let i=function(e,t){let o,a;if("object"!=typeof t){for(var s=arguments.length,l=Array(s>2?s-2:0),u=2;u`${o.keyPrefix}${c}${e}`):o.keyPrefix?`${o.keyPrefix}${c}${e}`:e,r.t(a,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let o=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||2===n};if(t.precheck){let e=t.precheck(this,o);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(n,e)&&(!r||o(i,e)))}loadNamespaces(e,t){let n=k();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=k();"string"==typeof e&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>0>r.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf((this.services&&this.services.languageUtils||new W(er())).getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}static createInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ea(e,t)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eo,n=e.forkResourceStore;n&&delete e.forkResourceStore;let r={...this.options,...e,isClone:!0},i=new ea(r);return(void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new U(this.store.data,r),i.services.resourceStore=i.store),i.translator=new V(i.services,r),i.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{let{call:t,children:n}=e;return(0,b.jsx)(el.Provider,{value:t,children:n})},ec=()=>(0,w.useContext)(el),ed="stream-video",ef=Object.entries({}).reduce((e,[t,n])=>(e[t]={[ed]:n},e),{}),eh=e=>e;class ep{constructor(e={}){this.t=eh,this.init=async()=>{try{this.t=await this.i18nInstance.init()}catch(e){console.error(`Failed to initialize translations: ${JSON.stringify(e)}`)}return this},this.changeLanguage=async(e,t)=>{if(!this._checkIsInitialized())return;let n="undefined"!=typeof window&&window.navigator?window.navigator.language:void 0;await this.i18nInstance.changeLanguage(e||n),t?.(this.currentLanguage)},this.registerTranslationsForLanguage=({lng:e,translations:t})=>{this._checkIsInitialized()&&this.i18nInstance.addResourceBundle(e,ed,t,!0,!0)},this._checkIsInitialized=()=>(this.i18nInstance.isInitialized||console.warn("I18n instance is not initialized. Call yourStreamI18nInstance.init()."),this.i18nInstance.isInitialized);let{debug:t=!1,currentLanguage:n="en",translationsOverrides:r}=e;this.i18nInstance=es.createInstance({debug:t,defaultNS:ed,fallbackLng:!1,interpolation:{escapeValue:!1},keySeparator:!1,lng:n,nsSeparator:!1,parseMissingKeyHandler:e=>e,resources:ef}),r&&this.i18nInstance.on("initialized",()=>{Object.entries(r).forEach(([e,t])=>{this.registerTranslationsForLanguage({lng:e,translations:t})})})}get currentLanguage(){return this._checkIsInitialized(),this.i18nInstance.language}get isInitialized(){return this.i18nInstance.isInitialized}}let em=(0,w.createContext)({t:eh}),eg=({children:e,...t})=>{let{i18n:n,t:r}=ev(t);return(0,b.jsx)(em.Provider,{value:{t:r,i18n:n},children:e})},ev=({i18nInstance:e,language:t,translationsOverrides:n})=>{let[r]=(0,w.useState)(()=>e||new ep({currentLanguage:t,translationsOverrides:n})),[i,o]=(0,w.useState)(()=>eh);return(0,w.useEffect)(()=>{let{isInitialized:e}=r;if(!e){r.init().then(e=>o(()=>e.i18nInstance.t));return}t&&r?.currentLanguage!==t&&r.changeLanguage(t).catch(e=>{console.log("Error while changing language",e)})},[r,e,t,n]),{i18n:r,t:i}},ey=()=>(0,w.useContext)(em),eb=(0,w.createContext)(void 0),ew=({children:e,client:t,i18nInstance:n,language:r,translationsOverrides:i})=>(0,b.jsx)(eb.Provider,{value:t,children:(0,b.jsx)(eg,{i18nInstance:n,language:r,translationsOverrides:i,children:e})}),e_=()=>(0,w.useContext)(eb),ex=e=>{let[t,n]=(0,w.useState)(()=>y.VJ.getCurrentValue(e));return(0,w.useEffect)(()=>{let t=e.subscribe(n);return()=>{t.unsubscribe()}},[e]),t},eD=()=>{let e=ec();return e?e.state:(console.warn('You are using useCallState() outside a Call context. Please wrap your component in and provide a "call" instance.'),new y.OX)};var eE=Object.freeze({__proto__:null,useAnonymousParticipantCount:()=>{let{anonymousParticipantCount$:e}=eD();return ex(e)},useCallBlockedUserIds:()=>{let{blockedUserIds$:e}=eD();return ex(e)},useCallCallingState:()=>{let{callingState$:e}=eD();return ex(e)},useCallCreatedAt:()=>{let{createdAt$:e}=eD();return ex(e)},useCallCreatedBy:()=>{let{createdBy$:e}=eD();return ex(e)},useCallCustomData:()=>{let{custom$:e}=eD();return ex(e)},useCallEgress:()=>{let{egress$:e}=eD();return ex(e)},useCallEndedAt:()=>{let{endedAt$:e}=eD();return ex(e)},useCallEndedBy:()=>{let{endedBy$:e}=eD();return ex(e)},useCallIngress:()=>{let{ingress$:e}=eD();return ex(e)},useCallMembers:()=>{let{members$:e}=eD();return ex(e)},useCallSession:()=>{let{session$:e}=eD();return ex(e)},useCallSettings:()=>{let{settings$:e}=eD();return ex(e)},useCallStartedAt:()=>{let{startedAt$:e}=eD();return ex(e)},useCallStartsAt:()=>{let{startsAt$:e}=eD();return ex(e)},useCallState:eD,useCallStatsReport:()=>{let{callStatsReport$:e}=eD();return ex(e)},useCallThumbnail:()=>{let{thumbnails$:e}=eD();return ex(e)},useCallUpdatedAt:()=>{let{updatedAt$:e}=eD();return ex(e)},useCameraState:()=>{let{camera:e}=ec();return{status:ex(e.state.status$),direction:ex(e.state.direction$)}},useDominantSpeaker:()=>{let{dominantSpeaker$:e}=eD();return ex(e)},useHasOngoingScreenShare:()=>{let{hasOngoingScreenShare$:e}=eD();return ex(e)},useIsCallBroadcastingInProgress:()=>{let{egress$:e}=eD(),t=ex(e);return!!t&&t.broadcasting},useIsCallLive:()=>{let{backstage$:e}=eD();return!ex(e)},useIsCallRecordingInProgress:()=>{let{recording$:e}=eD();return ex(e)},useIsCallTranscribingInProgress:()=>{let{transcribing$:e}=eD();return ex(e)},useLocalParticipant:()=>{let{localParticipant$:e}=eD();return ex(e)},useMicrophoneState:()=>{let{microphone:e}=ec();return{status:ex(e.state.status$),selectedDevice:ex(e.state.selectedDevice$)}},useParticipantCount:()=>{let{participantCount$:e}=eD();return ex(e)},useParticipants:({sortBy:e}={})=>{let{participants$:t}=eD(),n=ex(t);return(0,w.useMemo)(()=>e?[...n].sort(e):n,[n,e])},useRemoteParticipants:()=>{let{remoteParticipants$:e}=eD();return ex(e)},useScreenShareState:()=>{let{screenShare:e}=ec();return{status:ex(e.state.status$)}}});let eC=(...e)=>{let t=ek();return e.every(e=>t?.includes(e))},ek=()=>{let{ownCapabilities$:e}=eD();return ex(e)},eS=()=>{let e=e_();if(!e)throw Error("StreamVideoClient isn't initialized or this hook is called outside of context.");return e.readOnlyStateStore},eT=()=>{let{calls$:e}=eS();return ex(e)},eM=()=>{let{connectedUser$:e}=eS();return ex(e)},eO=()=>eE,eP=({canRequestOnly:e,hasPermissionsOnly:t,requiredGrants:n,requireAll:r=!0,children:i})=>{let o=ec(),a=ek(),s=n[r?"every":"some"](e=>a?.includes(e));if(t)return s?(0,b.jsx)(b.Fragment,{children:i}):null;let l=n.some(e=>!!o&&o.permissionsContext.canRequest(e));return e?l?(0,b.jsx)(b.Fragment,{children:i}):null:s||l?(0,b.jsx)(b.Fragment,{children:i}):null};var eR=n(44839),ej=n(65690);let eL=Math.min,eF=Math.max,eA=Math.round,eN=Math.floor,eI=e=>({x:e,y:e}),eB={left:"right",right:"left",bottom:"top",top:"bottom"},eU={start:"end",end:"start"};function ez(e,t){return"function"==typeof e?e(t):e}function eH(e){return e.split("-")[0]}function eV(e){return e.split("-")[1]}function eq(e){return"x"===e?"y":"x"}function eW(e){return"y"===e?"height":"width"}function e$(e){return["top","bottom"].includes(eH(e))?"y":"x"}function eY(e){return e.replace(/start|end/g,e=>eU[e])}function eZ(e){return e.replace(/left|right|bottom|top/g,e=>eB[e])}function eG(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function eJ(e,t,n){let r,{reference:i,floating:o}=e,a=e$(t),s=eq(e$(t)),l=eW(s),u=eH(t),c="y"===a,d=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[l]/2-o[l]/2;switch(u){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-o.width,y:f};break;default:r={x:i.x,y:i.y}}switch(eV(t)){case"start":r[s]-=h*(n&&c?-1:1);break;case"end":r[s]+=h*(n&&c?-1:1)}return r}let eK=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=eJ(u,r,l),f=r,h={},p=0;for(let n=0;n{try{return e.matches(t)}catch(e){return!1}})}function e9(e){let t=te(),n=tn(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function te(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function tt(e){return["html","body","#document"].includes(e0(e))}function tn(e){return e1(e).getComputedStyle(e)}function tr(e){return e4(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ti(e){if("html"===e0(e))return e;let t=e.assignedSlot||e.parentNode||e5(e)&&e.host||e2(e);return e5(t)?t.host:t}function to(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=ti(t);return tt(n)?t.ownerDocument?t.ownerDocument.body:t.body:e6(n)&&e8(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=e1(i);return o?t.concat(a,a.visualViewport||[],e8(i)?i:[],a.frameElement&&n?to(a.frameElement):[]):t.concat(i,to(i,[],n))}function ta(e){let t=tn(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=e6(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=eA(n)!==o||eA(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function ts(e){return e4(e)?e:e.contextElement}function tl(e){let t=ts(e);if(!e6(t))return eI(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=ta(t),a=(o?eA(n.width):n.width)/r,s=(o?eA(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let tu=eI(0);function tc(e){let t=e1(e);return te()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:tu}function td(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=ts(e),s=eI(1);t&&(r?e4(r)&&(s=tl(r)):s=tl(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===e1(a))&&i)?tc(a):eI(0),u=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(a){let e=e1(a),t=r&&e4(r)?e1(r):r,n=e,i=n.frameElement;for(;i&&r&&t!==n;){let e=tl(i),t=i.getBoundingClientRect(),r=tn(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=o,c+=a,i=(n=e1(i)).frameElement}}return eG({width:d,height:f,x:u,y:c})}function tf(e){return td(e2(e)).left+tr(e).scrollLeft}function th(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=e1(e),r=e2(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=te();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){let t=e2(e),n=tr(e),r=e.ownerDocument.body,i=eF(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=eF(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+tf(e),s=-n.scrollTop;return"rtl"===tn(r).direction&&(a+=eF(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(e2(e));else if(e4(t))r=function(e,t){let n=td(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=e6(e)?tl(e):eI(1),a=e.clientWidth*o.x;return{width:a,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{let n=tc(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return eG(r)}function tp(e){return"static"===tn(e).position}function tm(e,t){return e6(e)&&"fixed"!==tn(e).position?t?t(e):e.offsetParent:null}function tg(e,t){let n=e1(e);if(e7(e))return n;if(!e6(e)){let t=ti(e);for(;t&&!tt(t);){if(e4(t)&&!tp(t))return t;t=ti(t)}return n}let r=tm(e,t);for(;r&&["table","td","th"].includes(e0(r))&&tp(r);)r=tm(r,t);return r&&tt(r)&&tp(r)&&!e9(r)?n:r||function(e){let t=ti(e);for(;e6(t)&&!tt(t)&&!e7(t);){if(e9(t))return t;t=ti(t)}return null}(e)||n}let tv=async function(e){let t=this.getOffsetParent||tg,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=e6(t),i=e2(t),o="fixed"===n,a=td(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=eI(0);if(r||!r&&!o){if(("body"!==e0(t)||e8(i))&&(s=tr(t)),r){let e=td(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=tf(i))}return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ty={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,a=e2(r),s=!!t&&e7(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=eI(1),c=eI(0),d=e6(r);if((d||!d&&!o)&&(("body"!==e0(r)||e8(a))&&(l=tr(r)),e6(r))){let e=td(r);u=tl(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}},getDocumentElement:e2,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?e7(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=to(e,[],!1).filter(e=>e4(e)&&"body"!==e0(e)),i=null,o="fixed"===tn(e).position,a=o?ti(e):e;for(;e4(a)&&!tt(a);){let t=tn(a),n=e9(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||e8(a)&&!n&&function e(t,n){let r=ti(t);return!(r===n||!e4(r)||tt(r))&&("fixed"===tn(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):i=t,a=ti(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=th(t,n,i);return e.top=eF(r.top,e.top),e.right=eL(r.right,e.right),e.bottom=eL(r.bottom,e.bottom),e.left=eF(r.left,e.left),e},th(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:tg,getElementRects:tv,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ta(e);return{width:t,height:n}},getScale:tl,isElement:e4,isRTL:function(e){return"rtl"===tn(e).direction}},tb=(e,t,n)=>{let r=new Map,i={platform:ty,...n},o={...i.platform,_c:r};return eK(e,t,{...i,platform:o})};var tw=n(54887),t_="undefined"!=typeof document?w.useLayoutEffect:w.useEffect;function tx(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!tx(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!tx(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function tD(e){let t=w.useRef(e);return t_(()=>{t.current=e}),t}var tE="undefined"!=typeof document?w.useLayoutEffect:w.useEffect;let tC=!1,tk=0,tS=()=>"floating-ui-"+tk++,tT=_["useId".toString()]||function(){let[e,t]=w.useState(()=>tC?tS():void 0);return tE(()=>{null==e&&t(tS())},[]),w.useEffect(()=>{tC||(tC=!0)},[]),e},tM=w.createContext(null),tO=()=>w.useContext(tM);function tP(e){return!!e&&e instanceof(((null==e?void 0:e.ownerDocument)||document).defaultView||window).Element}let tR=_["useInsertionEffect".toString()]||(e=>e());var tj=n(41448),tL=n.n(tj);let tF=tK(),tA=e=>tY(e,tF),tN=tK();tA.write=e=>tY(e,tN);let tI=tK();tA.onStart=e=>tY(e,tI);let tB=tK();tA.onFrame=e=>tY(e,tB);let tU=tK();tA.onFinish=e=>tY(e,tU);let tz=[];tA.setTimeout=(e,t)=>{let n=tA.now()+t,r=()=>{let e=tz.findIndex(e=>e.cancel==r);~e&&tz.splice(e,1),tW-=~e?1:0},i={time:n,handler:e,cancel:r};return tz.splice(tH(n),0,i),tW+=1,tZ(),i};let tH=e=>~(~tz.findIndex(t=>t.time>e)||~tz.length);tA.cancel=e=>{tI.delete(e),tB.delete(e),tF.delete(e),tN.delete(e),tU.delete(e)},tA.sync=e=>{t$=!0,tA.batchedUpdates(e),t$=!1},tA.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,tA.onStart(n)}return r.handler=e,r.cancel=()=>{tI.delete(n),t=null},r};let tV="undefined"!=typeof window?window.requestAnimationFrame:()=>{};tA.use=e=>tV=e,tA.now="undefined"!=typeof performance?()=>performance.now():Date.now,tA.batchedUpdates=e=>e(),tA.catch=console.error,tA.frameLoop="always",tA.advance=()=>{"demand"!==tA.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):tJ()};let tq=-1,tW=0,t$=!1;function tY(e,t){t$?(t.delete(e),e(0)):(t.add(e),tZ())}function tZ(){tq<0&&(tq=0,"demand"!==tA.frameLoop&&tV(tG))}function tG(){~tq&&(tV(tG),tA.batchedUpdates(tJ))}function tJ(){let e=tq,t=tH(tq=tA.now());t&&(tX(tz.splice(0,t),e=>e.handler()),tW-=t),tI.flush(),tF.flush(e?Math.min(64,tq-e):16.667),tB.flush(),tN.flush(),tU.flush(),tW||(tq=-1)}function tK(){let e=new Set,t=e;return{add(n){tW+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(tW-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,tW-=t.size,tX(t,t=>t(n)&&e.add(t)),tW+=e.size,t=e)}}}function tX(e,t){e.forEach(e=>{try{t(e)}catch(e){tA.catch(e)}})}function tQ(){}let t0=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),t1={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function t2(e,t){if(t1.arr(e)){if(!t1.arr(t)||e.length!==t.length)return!1;for(let n=0;ne.forEach(t);function t4(e,t,n){if(t1.arr(e)){for(let r=0;rt1.und(e)?[]:t1.arr(e)?e:[e];function t5(e,t){if(e.size){let n=Array.from(e);e.clear(),t3(n,t)}}let t8=(e,...t)=>t5(e,e=>e(...t)),t7=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),t9=null,ne=!1,nt=tQ;var nn=Object.freeze({__proto__:null,get createStringInterpolator(){return r},get to(){return i},get colors(){return t9},get skipAnimation(){return ne},get willAdvance(){return nt},assign:e=>{e.to&&(i=e.to),e.now&&(tA.now=e.now),void 0!==e.colors&&(t9=e.colors),null!=e.skipAnimation&&(ne=e.skipAnimation),e.createStringInterpolator&&(r=e.createStringInterpolator),e.requestAnimationFrame&&tA.use(e.requestAnimationFrame),e.batchedUpdates&&(tA.batchedUpdates=e.batchedUpdates),e.willAdvance&&(nt=e.willAdvance),e.frameLoop&&(tA.frameLoop=e.frameLoop)}});let nr=new Set,ni=[],no=[],na=0,ns={get idle(){return!nr.size&&!ni.length},start(e){na>e.priority?(nr.add(e),tA.onStart(nl)):(nu(e),tA(nd))},advance:nd,sort(e){if(na)tA.onFrame(()=>ns.sort(e));else{let t=ni.indexOf(e);~t&&(ni.splice(t,1),nc(e))}},clear(){ni=[],nr.clear()}};function nl(){nr.forEach(nu),nr.clear(),tA(nd)}function nu(e){ni.includes(e)||nc(e)}function nc(e){ni.splice(function(e,t){let n=e.findIndex(t);return n<0?e.length:n}(ni,t=>t.priority>e.priority),0,e)}function nd(e){let t=no;for(let n=0;n0}let nf="[-+]?\\d*\\.?\\d+",nh=nf+"%";function np(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}let nm=RegExp("rgb"+np(nf,nf,nf)),ng=RegExp("rgba"+np(nf,nf,nf,nf)),nv=RegExp("hsl"+np(nf,nh,nh)),ny=RegExp("hsla"+np(nf,nh,nh,nf)),nb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,nw=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,n_=/^#([0-9a-fA-F]{6})$/,nx=/^#([0-9a-fA-F]{8})$/;function nD(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nE(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;return Math.round(255*nD(i,r,e+1/3))<<24|Math.round(255*nD(i,r,e))<<16|Math.round(255*nD(i,r,e-1/3))<<8}function nC(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function nk(e){return(parseFloat(e)%360+360)%360/360}function nS(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function nT(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function nM(e){let t;let n="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=n_.exec(e))?parseInt(t[1]+"ff",16)>>>0:t9&&void 0!==t9[e]?t9[e]:(t=nm.exec(e))?(nC(t[1])<<24|nC(t[2])<<16|nC(t[3])<<8|255)>>>0:(t=ng.exec(e))?(nC(t[1])<<24|nC(t[2])<<16|nC(t[3])<<8|nS(t[4]))>>>0:(t=nb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=nx.exec(e))?parseInt(t[1],16)>>>0:(t=nw.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=nv.exec(e))?(255|nE(nk(t[1]),nT(t[2]),nT(t[3])))>>>0:(t=ny.exec(e))?(nE(nk(t[1]),nT(t[2]),nT(t[3]))|nS(t[4]))>>>0:null;if(null===n)return e;let r=(4278190080&(n=n||0))>>>24,i=(16711680&n)>>>16,o=(65280&n)>>>8,a=(255&n)/255;return`rgba(${r}, ${i}, ${o}, ${a})`}let nO=(e,t,n)=>{if(t1.fun(e))return e;if(t1.arr(e))return nO({range:e,output:t,extrapolate:n});if(t1.str(e.output[0]))return r(e);let i=e.output,o=e.range||[0,1],a=e.extrapolateLeft||e.extrapolate||"extend",s=e.extrapolateRight||e.extrapolate||"extend",l=e.easing||(e=>e);return t=>{let n=function(e,t){for(var n=1;n=e);++n);return n-1}(t,o);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(un){if("identity"===s)return u;"clamp"===s&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t),u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r,u)}(t,o[n],o[n+1],i[n],i[n+1],l,a,s,e.map)}};function nP(){return(nP=Object.assign||function(e){for(var t=1;t!!(e&&e[nR]),nF=e=>e&&e[nR]?e[nR]():e,nA=e=>e[nj]||null;function nN(e,t){let n=e[nj];n&&n.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}class nI{constructor(e){if(this[nR]=void 0,this[nj]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");nB(this,e)}}let nB=(e,t)=>nH(e,nR,t);function nU(e,t){if(e[nR]){let n=e[nj];n||nH(e,nj,n=new Set),!n.has(t)&&(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function nz(e,t){let n=e[nj];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[nj]=null,e.observerRemoved&&e.observerRemoved(r,t)}}let nH=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),nV=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,nq=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,nW=RegExp(`(${nV.source})(%|[a-z]+)`,"i"),n$=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,nY=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,nZ=e=>{let[t,n]=nG(e);if(!t||t7())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(n);if(e)return e}else if(n&&nY.test(n))return nZ(n);else if(n)return n;return e},nG=e=>{let t=nY.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},nJ=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,nK=e=>{o||(o=t9?RegExp(`(${Object.keys(t9).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>nF(e).replace(nY,nZ).replace(nq,nM).replace(o,nM)),n=t.map(e=>e.match(nV).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>nO(nP({},e,{output:t})));return e=>{var n;let i=!nW.test(t[0])&&(null==(n=t.find(e=>nW.test(e)))?void 0:n.replace(nV,"")),o=0;return t[0].replace(nV,()=>`${r[o++](e)}${i||""}`).replace(n$,nJ)}},nX="react-spring: ",nQ=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${nX}once requires a function parameter`);return(...n)=>{t||(e(...n),t=!0)}},n0=nQ(console.warn),n1=nQ(console.warn);function n2(e){return t1.str(e)&&("#"==e[0]||/\d/.test(e)||!t7()&&nY.test(e)||e in(t9||{}))}let n3="undefined"!=typeof window&&window.document&&window.document.createElement?w.useLayoutEffect:w.useEffect,n4=()=>{let e=(0,w.useRef)(!1);return n3(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function n6(){let e=(0,w.useState)()[1],t=n4();return()=>{t.current&&e(Math.random())}}let n5=e=>(0,w.useEffect)(e,n8),n8=[];function n7(e){let t=(0,w.useRef)();return(0,w.useEffect)(()=>{t.current=e}),t.current}let n9=Symbol.for("Animated:node"),re=e=>!!e&&e[n9]===e,rt=e=>e&&e[n9],rn=(e,t)=>t0(e,n9,t),rr=e=>e&&e[n9]&&e[n9].getPayload();class ri{constructor(){this.payload=void 0,rn(this,this)}getPayload(){return this.payload||[]}}class ro extends ri{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,t1.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new ro(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return t1.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,t1.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class ra extends ro{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=nO({output:[e,e]})}static create(e){return new ra(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(t1.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=nO({output:[this.getValue(),e]})),this._value=0,super.reset()}}let rs={dependencies:null};class rl extends ri{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return t4(this.source,(n,r)=>{re(n)?t[r]=n.getValue(e):nL(n)?t[r]=nF(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&t3(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return t4(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){rs.dependencies&&nL(e)&&rs.dependencies.add(e);let t=rr(e);t&&t3(t,e=>this.add(e))}}class ru extends rl{constructor(e){super(e)}static create(e){return new ru(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(rc)),!0)}}function rc(e){return(n2(e)?ra:ro).create(e)}function rd(e){let t=rt(e);return t?t.constructor:t1.arr(e)?ru:n2(e)?ra:ro}function rf(){return(rf=Object.assign||function(e){for(var t=1;t{let n=!t1.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,w.forwardRef)((r,i)=>{let o=(0,w.useRef)(null),a=n&&(0,w.useCallback)(e=>{o.current=(i&&(t1.fun(i)?i(e):i.current=e),e)},[i]),[s,l]=function(e,t){let n=new Set;return rs.dependencies=n,e.style&&(e=rf({},e,{style:t.createAnimatedStyle(e.style)})),e=new rl(e),rs.dependencies=null,[e,n]}(r,t),u=n6(),c=()=>{let e=o.current;(!n||e)&&!1===(!!e&&t.applyAnimatedValues(e,s.getValue(!0)))&&u()},d=new rp(c,l),f=(0,w.useRef)();n3(()=>(f.current=d,t3(l,e=>nU(e,d)),()=>{f.current&&(t3(f.current.deps,e=>nz(e,f.current)),tA.cancel(f.current.update))})),(0,w.useEffect)(c,[]),n5(()=>()=>{let e=f.current;t3(e.deps,t=>nz(t,e))});let h=t.getComponentProps(s.getValue());return w.createElement(e,rf({},h,{ref:a}))})};class rp{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&tA.write(this.update)}}let rm=Symbol.for("AnimatedComponent"),rg=e=>t1.str(e)?e:e&&t1.str(e.displayName)?e.displayName:t1.fun(e)&&e.name||null;function rv(){return(rv=Object.assign||function(e){for(var t=1;t!0===e||!!(t&&e&&(t1.fun(e)?e(t):t6(e).includes(t))),rw=(e,t)=>t1.obj(e)?t&&e[t]:e,r_=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,rx=e=>e,rD=(e,t=rx)=>{let n=rE;e.default&&!0!==e.default&&(n=Object.keys(e=e.default));let r={};for(let i of n){let n=t(e[i],i);t1.und(n)||(r[i]=n)}return r},rE=["config","onProps","onStart","onChange","onPause","onResume","onRest"],rC={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function rk(e){let t=function(e){let t={},n=0;if(t4(e,(e,r)=>{!rC[r]&&(t[r]=e,n++)}),n)return t}(e);if(t){let n={to:t};return t4(e,(e,r)=>r in t||(n[r]=e)),n}return rv({},e)}function rS(e){return e=nF(e),t1.arr(e)?e.map(rS):n2(e)?nn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function rT(e){for(let t in e)return!0;return!1}function rM(e){return t1.fun(e)||t1.arr(e)&&t1.obj(e[0])}function rO(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}function rP(e,t){if(t&&e.ref!==t){var n;null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t}}let rR={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},rj=rv({},rR.default,{mass:1,damping:1,easing:e=>e,clamp:!1});class rL{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,rj)}}function rF(e,t){if(t1.und(t.decay)){let n=!t1.und(t.tension)||!t1.und(t.friction);!n&&t1.und(t.frequency)&&t1.und(t.damping)&&t1.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}let rA=[];class rN{constructor(){this.changed=!1,this.values=rA,this.toValues=null,this.fromValues=rA,this.to=void 0,this.from=void 0,this.config=new rL,this.immediate=!1}}function rI(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise((a,s)=>{var l;let u,c;let d=rb(null!=(l=n.cancel)?l:null==r?void 0:r.cancel,t);if(d)p();else{t1.und(n.pause)||(i.paused=rb(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=i.paused||rb(e,t)),u=ry(n.delay||0,t),e?(i.resumeQueue.add(h),o.pause()):(o.resume(),h())}function f(){i.resumeQueue.add(h),i.timeouts.delete(c),c.cancel(),u=c.time-tA.now()}function h(){u>0&&!nn.skipAnimation?(i.delayed=!0,c=tA.setTimeout(p,u),i.pauseQueue.add(f),i.timeouts.add(c)):p()}function p(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(f),i.timeouts.delete(c),e<=(i.cancelId||0)&&(d=!0);try{o.start(rv({},n,{callId:e,cancel:d}),a)}catch(e){s(e)}}})}let rB=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?rH(e.get()):t.every(e=>e.noop)?rU(e.get()):rz(e.get(),t.every(e=>e.finished)),rU=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),rz=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),rH=e=>({value:e,cancelled:!0,finished:!1});function rV(e,t,n,r){let{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{let u,c,d;n.asyncId=i,n.asyncTo=e;let f=rD(t,(e,t)=>"onRest"===t?void 0:e),h=new Promise((e,t)=>(u=e,c=t)),p=e=>{let t=i<=(n.cancelId||0)&&rH(r)||i!==n.asyncId&&rz(r,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{let o=new rW,a=new r$;return(async()=>{if(nn.skipAnimation)throw rq(n),a.result=rz(r,!1),c(a),a;p(o);let s=t1.obj(e)?rv({},e):rv({},t,{to:e});s.parentId=i,t4(f,(e,t)=>{t1.und(s[t])&&(s[t]=e)});let l=await r.start(s);return p(o),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),l})()};if(nn.skipAnimation)return rq(n),rz(r,!1);try{let t;t=t1.arr(e)?(async e=>{for(let t of e)await m(t)})(e):Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([t.then(u),h]),d=rz(r.get(),!0,!1)}catch(e){if(e instanceof rW)d=e.result;else if(e instanceof r$)d=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return t1.fun(a)&&tA.batchedUpdates(()=>{a(d,r,r.item)}),d})():l}function rq(e,t){t5(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class rW extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class r$ extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}let rY=e=>e instanceof rG,rZ=1;class rG extends nI{constructor(...e){super(...e),this.id=rZ++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=rt(this);return e&&e.getValue()}to(...e){return nn.to(this,e)}interpolate(...e){return n0(`${nX}The "interpolate" function is deprecated in v9 (use "to" instead)`),nn.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){nN(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ns.sort(this),nN(this,{type:"priority",parent:this,priority:e})}}let rJ=Symbol.for("SpringPhase"),rK=e=>(1&e[rJ])>0,rX=e=>(2&e[rJ])>0,rQ=e=>(4&e[rJ])>0,r0=(e,t)=>t?e[rJ]|=3:e[rJ]&=-3,r1=(e,t)=>t?e[rJ]|=4:e[rJ]&=-5;class r2 extends rG{constructor(e,t){if(super(),this.key=void 0,this.animation=new rN,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!t1.und(e)||!t1.und(t)){let n=t1.obj(e)?rv({},e):rv({},t,{from:e});t1.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(rX(this)||this._state.asyncTo)||rQ(this)}get goal(){return nF(this.animation.to)}get velocity(){let e=rt(this);return e instanceof ro?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return rK(this)}get isAnimating(){return rX(this)}get isPaused(){return rQ(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{config:i,toValues:o}=r,a=rr(r.to);!a&&nL(r.to)&&(o=t6(nF(r.to))),r.values.forEach((s,l)=>{if(s.done)return;let u=s.constructor==ra?1:a?a[l].lastPosition:o[l],c=r.immediate,d=u;if(!c){let t;if(d=s.lastPosition,i.tension<=0){s.done=!0;return}let n=s.elapsedTime+=e,o=r.fromValues[l],a=null!=s.v0?s.v0:s.v0=t1.arr(i.velocity)?i.velocity[l]:i.velocity;if(t1.und(i.duration)){if(i.decay){let e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*n);d=o+a/(1-e)*(1-r),c=.1>Math.abs(s.lastPosition-d),t=a*r}else{t=null==s.lastVelocity?a:s.lastVelocity;let n=i.precision||(o==u?.005:Math.min(1,.001*Math.abs(u-o))),r=i.restVelocity||n/10,l=i.clamp?0:i.bounce,f=!t1.und(l),h=o==u?s.v0>0:or)&&(c=Math.abs(u-d)<=n));++e){f&&(d==u||d>u==h)&&(t=-t*l,d=u);let e=(-(1e-6*i.tension)*(d-u)+-(.001*i.friction)*t)/i.mass;t+=1*e,d+=1*t}}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,n=s.elapsedTime+=e)),r=(r=(i.progress||0)+n/this._memoizedDuration)>1?1:r<0?0:r,s.durationProgress=r),t=((d=o+i.easing(r)*(u-o))-s.lastPosition)/e,c=1==r}s.lastVelocity=t,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)});let s=rt(this),l=s.getValue();if(t){let e=nF(r.to);(l!==e||n)&&!i.decay?(s.setValue(e),this._onChange(e)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return tA.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(rX(this)){let{to:e,config:t}=this.animation;tA.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return t1.und(e)?(n=this.queue||[],this.queue=[]):n=[t1.obj(e)?e:rv({},t,{to:e})],Promise.all(n.map(e=>this._update(e))).then(e=>rB(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),rq(this._state,e&&this._lastCallId),tA.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:n,from:r}=e;(null==(n=t1.obj(n)?n[t]:n)||rM(n))&&(n=void 0),null==(r=t1.obj(r)?r[t]:r)&&(r=void 0);let i={to:n,from:r};return rK(this)||(e.reverse&&([n,r]=[r,n]),r=nF(r),t1.und(r)?rt(this)||this._set(n):this._set(r)),i}_update(e,t){let n=rv({},e),{key:r,defaultProps:i}=this;n.default&&Object.assign(i,rD(n,(e,t)=>/^on/.test(t)?rw(e,r):e)),r7(this,n,"onProps"),r9(this,"onProps",n,this);let o=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let a=this._state;return rI(++this._lastCallId,{key:r,props:n,defaultProps:i,state:a,actions:{pause:()=>{rQ(this)||(r1(this,!0),t8(a.pauseQueue),r9(this,"onPause",rz(this,r3(this,this.animation.to)),this))},resume:()=>{rQ(this)&&(r1(this,!1),rX(this)&&this._resume(),t8(a.resumeQueue),r9(this,"onResume",rz(this,r3(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(e=>{if(n.loop&&e.finished&&!(t&&e.noop)){let e=r4(n);if(e)return this._update(e,!0)}return e})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(rH(this));let r=!t1.und(e.to),i=!t1.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(rH(this));this._lastToId=t.callId}let{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s,{to:c=l,from:d=u}=e;i&&!r&&(!t.default||t1.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);let f=!t2(d,u);f&&(s.from=d),d=nF(d);let h=!t2(c,l);h&&this._focus(c);let p=rM(t.to),{config:m}=s,{decay:g,velocity:v}=m;(r||i)&&(m.velocity=0),t.config&&!p&&function(e,t,n){for(let r in n&&(rF(n=rv({},n),t),t=rv({},n,t)),rF(e,t),Object.assign(e,t),rj)null==e[r]&&(e[r]=rj[r]);let{mass:r,frequency:i,damping:o}=e;t1.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*o*r/i)}(m,ry(t.config,o),t.config!==a.config?ry(a.config,o):void 0);let y=rt(this);if(!y||t1.und(c))return n(rz(this,!0));let b=t1.und(t.reset)?i&&!t.default:!t1.und(d)&&rb(t.reset,o),w=b?d:this.get(),_=rS(c),x=t1.num(_)||t1.arr(_)||n2(_),D=!p&&(!x||rb(a.immediate||t.immediate,o));if(h){let e=rd(c);if(e!==y.constructor){if(D)y=this._set(_);else throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let E=y.constructor,C=nL(c),k=!1;if(!C){let e=b||!rK(this)&&f;(h||e)&&(C=!(k=t2(rS(w),_))),(t2(s.immediate,D)||D)&&t2(m.decay,g)&&t2(m.velocity,v)||(C=!0)}if(k&&rX(this)&&(s.changed&&!b?C=!0:C||this._stop(l)),!p&&((C||nL(l))&&(s.values=y.getPayload(),s.toValues=nL(c)?null:E==ra?[1]:t6(_)),s.immediate==D||(s.immediate=D,D||b||this._set(l)),C)){let{onRest:e}=s;t3(r8,e=>r7(this,t,e));let r=rz(this,r3(this,l));t8(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&tA.batchedUpdates(()=>{s.changed=!b,null==e||e(r,this),b?ry(a.onRest,r):null==s.onStart||s.onStart(r,this)})}b&&this._set(w),p?n(rV(t.to,t,this._state,this)):C?this._start():rX(this)&&!h?this._pendingCalls.add(n):n(rU(w))}_focus(e){let t=this.animation;e!==t.to&&(nA(this)&&this._detach(),t.to=e,nA(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;nL(t)&&(nU(t,this),rY(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;nL(e)&&nz(e,this)}_set(e,t=!0){let n=nF(e);if(!t1.und(n)){let e=rt(this);if(!e||!t2(n,e.getValue())){let r=rd(n);e&&e.constructor==r?e.setValue(n):rn(this,r.create(n)),e&&tA.batchedUpdates(()=>{this._onChange(n,t)})}}return rt(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,r9(this,"onStart",rz(this,r3(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),ry(this.animation.onChange,e,this)),ry(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;rt(this).reset(nF(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),rX(this)||(r0(this,!0),rQ(this)||this._resume())}_resume(){nn.skipAnimation?this.finish():ns.start(this)}_stop(e,t){if(rX(this)){r0(this,!1);let n=this.animation;t3(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),nN(this,{type:"idle",parent:this});let r=t?rH(this.get()):rz(this.get(),r3(this,null!=e?e:n.to));t8(this._pendingCalls,r),n.changed&&(n.changed=!1,r9(this,"onRest",r,this))}}}function r3(e,t){let n=rS(t);return t2(rS(e.get()),n)}function r4(e,t=e.loop,n=e.to){let r=ry(t);if(r){let i=!0!==r&&rk(r),o=(i||e).reverse,a=!i||i.reset;return r6(rv({},e,{loop:t,default:!1,pause:void 0,to:!o||rM(n)?n:void 0,from:a?e.from:void 0,reset:a},i))}}function r6(e){let{to:t,from:n}=e=rk(e),r=new Set;return t1.obj(t)&&r5(t,r),t1.obj(n)&&r5(n,r),e.keys=r.size?Array.from(r):null,e}function r5(e,t){t4(e,(e,n)=>null!=e&&t.add(n))}let r8=["onStart","onRest","onChange","onPause","onResume"];function r7(e,t,n){e.animation[n]=t[n]!==r_(t,n)?rw(t[n],e.key):void 0}function r9(e,t,...n){var r,i,o,a;null==(r=(i=e.animation)[t])||r.call(i,...n),null==(o=(a=e.defaultProps)[t])||o.call(a,...n)}let ie=["onStart","onChange","onRest"],it=1;class ir{constructor(e,t){this.id=it++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(rv({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];t1.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(r6(e)),this}start(e){let{queue:t}=this;return(e?t=t6(e).map(r6):this.queue=[],this._flush)?this._flush(this,t):(ic(this,t),ii(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let n=this.springs;t3(t6(t),t=>n[t].stop(!!e))}else rq(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(t1.und(e))this.start({pause:!0});else{let t=this.springs;t3(t6(e),e=>t[e].pause())}return this}resume(e){if(t1.und(e))this.start({pause:!1});else{let t=this.springs;t3(t6(e),e=>t[e].resume())}return this}each(e){t4(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,t5(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&t5(t,([e,t])=>{t.value=a,e(t,this,this._item)}),o&&(this._started=!1,t5(n,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}tA.onFrame(this._onFrame)}}function ii(e,t){return Promise.all(t.map(t=>io(e,t))).then(t=>rB(e,t))}async function io(e,t,n){let{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=t1.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);let c=t1.arr(i)||t1.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):t3(ie,n=>{let r=t[n];if(t1.fun(r)){let i=e._events[n];t[n]=({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}});let d=e._state;!d.paused===t.pause?(d.paused=t.pause,t8(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);let f=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=!0===t.cancel||!0===r_(t,"cancel");(c||h&&d.asyncId)&&f.push(rI(++e._lastAsyncId,{props:t,state:d,actions:{pause:tQ,resume:tQ,start(t,n){h?(rq(d,e._lastAsyncId),n(rH(e))):(t.onRest=s,n(rV(c,t,d,e)))}}})),d.paused&&await new Promise(e=>{d.resumeQueue.add(e)});let p=rB(e,await Promise.all(f));if(a&&p.finished&&!(n&&p.noop)){let n=r4(t,a,i);if(n)return ic(e,[n]),io(e,n,!0)}return l&&tA.batchedUpdates(()=>l(p,e,e.item)),p}function ia(e,t){let n=rv({},e.springs);return t&&t3(t6(t),e=>{t1.und(e.keys)&&(e=r6(e)),t1.obj(e.to)||(e=rv({},e,{to:void 0})),iu(n,e,e=>il(e))}),is(e,n),n}function is(e,t){t4(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,nU(t,e))})}function il(e,t){let n=new r2;return n.key=e,t&&nU(n,t),n}function iu(e,t,n){t.keys&&t3(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function ic(e,t){t3(t,t=>{iu(e.springs,t,t=>il(t,e))})}let id=["children"],ih=e=>{let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,id),r=(0,w.useContext)(ip),i=n.pause||!!r.pause,o=n.immediate||!!r.immediate;n=function(e,t){let[n]=(0,w.useState)(()=>({inputs:t,result:e()})),r=(0,w.useRef)(),i=r.current,o=i;return o?t&&o.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n{r.current=o,i==n&&(n.inputs=n.result=void 0)},[o]),o.result}(()=>({pause:i,immediate:o}),[i,o]);let{Provider:a}=ip;return w.createElement(a,{value:n},t)},ip=(s={},Object.assign(ih,w.createContext(s)),ih.Provider._context=ih,ih.Consumer._context=ih,ih);ih.Provider=ip.Provider,ih.Consumer=ip.Consumer;let im=()=>{let e=[],t=function(t){n1(`${nX}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let r=[];return t3(e,(e,i)=>{if(t1.und(t))r.push(e.start());else{let o=n(t,e,i);o&&r.push(e.start(o))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return t3(e,e=>e.pause(...arguments)),this},t.resume=function(){return t3(e,e=>e.resume(...arguments)),this},t.set=function(t){t3(e,e=>e.set(t))},t.start=function(t){let n=[];return t3(e,(e,r)=>{if(t1.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return t3(e,e=>e.stop(...arguments)),this},t.update=function(t){return t3(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return t1.fun(e)?e(n,t):e};return t._getProps=n,t};function ig(e,t){let n=t1.fun(e),[[r],i]=function(e,t,n){let r=t1.fun(t)&&t;r&&!n&&(n=[]);let i=(0,w.useMemo)(()=>r||3==arguments.length?im():void 0,[]),o=(0,w.useRef)(0),a=n6(),s=(0,w.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=ia(e,t);return!(o.current>0)||s.queue.length||Object.keys(n).some(t=>!e.springs[t])?new Promise(r=>{is(e,n),s.queue.push(()=>{r(ii(e,t))}),a()}):ii(e,t)}}),[]),l=(0,w.useRef)([...s.ctrls]),u=[],c=n7(e)||0;function d(e,n){for(let i=e;i{t3(l.current.slice(e,c),e=>{rO(e,i),e.stop(!0)}),l.current.length=e,d(c,e)},[e]),(0,w.useMemo)(()=>{d(0,Math.min(c,e))},n);let f=l.current.map((e,t)=>ia(e,u[t])),h=(0,w.useContext)(ih),p=n7(h),m=h!==p&&rT(h);n3(()=>{o.current++,s.ctrls=l.current;let{queue:e}=s;e.length&&(s.queue=[],t3(e,e=>e())),t3(l.current,(e,t)=>{null==i||i.add(e),m&&e.start({default:h});let n=u[t];n&&(rP(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),n5(()=>()=>{t3(s.ctrls,e=>e.stop(!0))});let g=f.map(e=>rv({},e));return i?[g,i]:g}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}function iv(e,t,n){let r=t1.fun(t)&&t,{reset:i,sort:o,trail:s=0,expires:l=!0,exitBeforeEnter:u=!1,onDestroyed:c,ref:d,config:f}=r?r():t,h=(0,w.useMemo)(()=>r||3==arguments.length?im():void 0,[]),p=t6(e),m=[],g=(0,w.useRef)(null),v=i?null:g.current;n3(()=>{g.current=m}),n5(()=>(t3(g.current,e=>{var t;null==(t=e.ctrl.ref)||t.add(e.ctrl);let n=C.get(e);n&&e.ctrl.start(n.payload)}),()=>{t3(g.current,e=>{e.expired&&clearTimeout(e.expirationId),rO(e.ctrl,h),e.ctrl.stop(!0)})}));let y=function(e,{key:t,keys:n=t},r){if(null===n){let t=new Set;return e.map(e=>{let n=r&&r.find(n=>n.item===e&&n.phase!==a.LEAVE&&!t.has(n));return n?(t.add(n),n.key):iy++})}return t1.und(n)?e:t1.fun(n)?e.map(n):t6(n)}(p,r?r():t,v),b=i&&g.current||[];n3(()=>t3(b,({ctrl:e,item:t,key:n})=>{rO(e,h),ry(c,t,n)}));let _=[];if(v&&t3(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),b.push(e)):~(t=_[t]=y.indexOf(e.key))&&(m[t]=e)}),t3(p,(e,t)=>{m[t]||(m[t]={key:y[t],item:e,phase:a.MOUNT,ctrl:new ir},m[t].ctrl.item=e)}),_.length){let e=-1,{leave:n}=r?r():t;t3(_,(t,r)=>{let i=v[r];~t?(e=m.indexOf(i),m[e]=rv({},i,{item:p[t]})):n&&m.splice(++e,0,i)})}t1.fun(o)&&m.sort((e,t)=>o(e.item,t.item));let x=-s,D=n6(),E=rD(t),C=new Map,k=(0,w.useRef)(new Map),S=(0,w.useRef)(!1);t3(m,(e,n)=>{let i,o;let c=e.key,h=e.phase,p=r?r():t,m=ry(p.delay||0,c);if(h==a.MOUNT)i=p.enter,o=a.ENTER;else{let e=0>y.indexOf(c);if(h!=a.LEAVE){if(e)i=p.leave,o=a.LEAVE;else{if(!(i=p.update))return;o=a.UPDATE}}else{if(e)return;i=p.enter,o=a.ENTER}}if(i=ry(i,e.item,n),!(i=t1.obj(i)?rk(i):{to:i}).config){let t=f||E.config;i.config=ry(t,e.item,n,o)}x+=s;let b=rv({},E,{delay:m+x,ref:d,immediate:p.immediate,reset:!1},i);if(o==a.ENTER&&t1.und(b.from)){let i=r?r():t,o=t1.und(i.initial)||v?i.from:i.initial;b.from=ry(o,e.item,n)}let{onResolve:w}=b;b.onResolve=e=>{ry(w,e);let t=g.current,n=t.find(e=>e.key===c);if(n){if(e.cancelled&&n.phase!=a.UPDATE)return;if(n.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if(n.phase==a.LEAVE){let t=ry(l,n.item);if(!1!==t){let r=!0===t?0:t;if(n.expired=!0,!e&&r>0){r<=2147483647&&(n.expirationId=setTimeout(D,r));return}}}e&&t.some(e=>e.expired)&&(k.current.delete(n),u&&(S.current=!0),D())}}};let _=ia(e.ctrl,b);o===a.LEAVE&&u?k.current.set(e,{phase:o,springs:_,payload:b}):C.set(e,{phase:o,springs:_,payload:b})});let T=(0,w.useContext)(ih),M=n7(T),O=T!==M&&rT(T);n3(()=>{O&&t3(m,e=>{e.ctrl.start({default:T})})},[T]),t3(C,(e,t)=>{if(k.current.size){let e=m.findIndex(e=>e.key===t.key);m.splice(e,1)}}),n3(()=>{t3(k.current.size?k.current:C,({phase:e,payload:t},n)=>{let{ctrl:r}=n;n.phase=e,null==h||h.add(r),O&&e==a.ENTER&&r.start({default:T}),t&&(rP(r,t.ref),r.ref&&!S.current?r.update(t):(r.start(t),S.current&&(S.current=!1)))})},i?void 0:n);let P=e=>w.createElement(w.Fragment,null,m.map((t,n)=>{let{springs:r}=C.get(t)||t.ctrl,i=e(rv({},r),t.item,t,n);return i&&i.type?w.createElement(i.type,rv({},i.props,{key:t1.str(t.key)||t1.num(t.key)?t.key:t.ctrl.id,ref:i.ref})):i}));return h?[P,h]:P}(l=a||(a={})).MOUNT="mount",l.ENTER="enter",l.UPDATE="update",l.LEAVE="leave";let iy=1;class ib extends rG{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=nO(...t);let n=this._get();rn(this,rd(n).create(n))}advance(e){let t=this._get();t2(t,this.get())||(rt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&i_(this._active)&&ix(this)}_get(){let e=t1.arr(this.source)?this.source.map(nF):t6(nF(this.source));return this.calc(...e)}_start(){this.idle&&!i_(this._active)&&(this.idle=!1,t3(rr(this),e=>{e.done=!1}),nn.skipAnimation?(tA.batchedUpdates(()=>this.advance()),ix(this)):ns.start(this))}_attach(){let e=1;t3(t6(this.source),t=>{nL(t)&&nU(t,this),rY(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){t3(t6(this.source),e=>{nL(e)&&nz(e,this)}),this._active.clear(),ix(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=t6(this.source).reduce((e,t)=>Math.max(e,(rY(t)?t.priority:0)+1),0))}}function iw(e){return!1!==e.idle}function i_(e){return!e.size||Array.from(e).every(iw)}function ix(e){e.idle||(e.idle=!0,t3(rr(e),e=>{e.done=!0}),nN(e,{type:"idle",parent:e}))}let iD=(e,...t)=>new ib(e,t);function iE(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}nn.assign({createStringInterpolator:nK,to:(e,t)=>new ib(e,t)}),ns.advance;let iC=["style","children","scrollTop","scrollLeft"],ik=/^--/,iS={},iT={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iM=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),iO=["Webkit","Ms","Moz","O"];iT=Object.keys(iT).reduce((e,t)=>(iO.forEach(n=>e[iM(n,t)]=e[t]),e),iT);let iP=["x","y","z"],iR=/^(matrix|translate|scale|rotate|skew)/,ij=/^(translate)/,iL=/^(rotate|skew)/,iF=(e,t)=>t1.num(e)&&0!==e?e+t:e,iA=(e,t)=>t1.arr(e)?e.every(e=>iA(e,t)):t1.num(e)?e===t:parseFloat(e)===t;class iN extends rl{constructor(e){let{x:t,y:n,z:r}=e,i=iE(e,iP),o=[],a=[];(t||n||r)&&(o.push([t||0,n||0,r||0]),a.push(e=>[`translate3d(${e.map(e=>iF(e,"px")).join(",")})`,iA(e,0)])),t4(i,(e,t)=>{if("transform"===t)o.push([e||""]),a.push(e=>[e,""===e]);else if(iR.test(t)){if(delete i[t],t1.und(e))return;let n=ij.test(t)?"px":iL.test(t)?"deg":"";o.push(t6(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${iF(i,n)})`,iA(i,0)]:e=>[`${t}(${e.map(e=>iF(e,n)).join(",")})`,iA(e,t.startsWith("scale")?1:0)])}}),o.length&&(i.transform=new iI(o,a)),super(i)}}class iI extends nI{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return t3(this.inputs,(n,r)=>{let i=nF(n[0]),[o,a]=this.transforms[r](t1.arr(i)?i:n.map(nF));e+=" "+o,t=t&&a}),t?"none":e}observerAdded(e){1==e&&t3(this.inputs,e=>t3(e,e=>nL(e)&&nU(e,this)))}observerRemoved(e){0==e&&t3(this.inputs,e=>t3(e,e=>nL(e)&&nz(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),nN(this,e)}}let iB=["scrollTop","scrollLeft"];nn.assign({batchedUpdates:tw.unstable_batchedUpdates,createStringInterpolator:nK,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});let iU=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new rl(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{let t=rg(e)||"Anonymous";return(e=t1.str(e)?o[e]||(o[e]=rh(e,i)):e[rm]||(e[rm]=rh(e,i))).displayName=`Animated(${t})`,e};return t4(e,(t,n)=>{t1.arr(e)&&(n=rg(t)),o[n]=o(t)}),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:i,scrollTop:o,scrollLeft:a}=t,s=iE(t,iC),l=Object.values(s),u=Object.keys(s).map(t=>n||e.hasAttribute(t)?t:iS[t]||(iS[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==i&&(e.textContent=i),r)if(r.hasOwnProperty(t)){var c;let n=null==(c=r[t])||"boolean"==typeof c||""===c?"":"number"!=typeof c||0===c||ik.test(t)||iT.hasOwnProperty(t)&&iT[t]?(""+c).trim():c+"px";ik.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach((t,n)=>{e.setAttribute(t,l[n])}),void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a)},createAnimatedStyle:e=>new iN(e),getComponentProps:e=>iE(e,iB)}).animated;function iz(){return(iz=Object.assign||function(e){for(var t=1;t0&&d.height>0,g=Math.round(n[0]),v=Math.round(n[1]);m&&("top"===r?(g-=d.width/2,v-=d.height+14):"right"===r?(g+=14,v-=d.height/2):"bottom"===r?(g-=d.width/2,v+=14):"left"===r?(g-=d.width+14,v-=d.height/2):"center"===r&&(g-=d.width/2,v-=d.height/2),h={transform:iV(g,v)},f.current||(p=!0),f.current=[g,v]);var y=ig({to:h,config:l,immediate:!s||p}),_=iz({},iH,o.tooltip,{transform:null!=(t=y.transform)?t:iV(g,v)});return(0,b.jsx)(iU.div,{ref:c,style:_,children:i})});iq.displayName="TooltipWrapper";var iW=(0,w.memo)(function(e){var t=e.size,n=void 0===t?12:t,r=e.color,i=e.style;return(0,b.jsx)("span",{style:iz({display:"block",width:n,height:n,background:r},void 0===i?{}:i)})}),i$=(0,w.memo)(function(e){var t,n=e.id,r=e.value,i=e.format,o=e.enableChip,a=e.color,s=e.renderContent,l=u8(),u=u3(i);if("function"==typeof s)t=s();else{var c=r;void 0!==u&&void 0!==c&&(c=u(c)),t=(0,b.jsxs)("div",{style:l.tooltip.basic,children:[void 0!==o&&o&&(0,b.jsx)(iW,{color:a,style:l.tooltip.chip}),void 0!==c?(0,b.jsxs)("span",{children:[n,": ",(0,b.jsx)("strong",{children:""+c})]}):n]})}return(0,b.jsx)("div",{style:l.tooltip.container,children:t})}),iY={width:"100%",borderCollapse:"collapse"},iZ=(0,w.memo)(function(e){var t,n=e.title,r=e.rows,i=void 0===r?[]:r,o=e.renderContent,a=u8();return i.length?(t="function"==typeof o?o():(0,b.jsxs)("div",{children:[n&&n,(0,b.jsx)("table",{style:iz({},iY,a.tooltip.table),children:(0,b.jsx)("tbody",{children:i.map(function(e,t){return(0,b.jsx)("tr",{children:e.map(function(e,t){return(0,b.jsx)("td",{style:a.tooltip.tableCell,children:e},t)})},t)})})})]}),(0,b.jsx)("div",{style:a.tooltip.container,children:t})):null});iZ.displayName="TableTooltip";var iG=(0,w.memo)(function(e){var t=e.x0,n=e.x1,r=e.y0,i=e.y1,o=u8(),a=uq(),s=a.animate,l=a.config,u=(0,w.useMemo)(function(){return iz({},o.crosshair.line,{pointerEvents:"none"})},[o.crosshair.line]),c=ig({x1:t,x2:n,y1:r,y2:i,config:l,immediate:!s});return(0,b.jsx)(iU.line,iz({},c,{fill:"none",style:u}))});iG.displayName="CrosshairLine";var iJ=(0,w.memo)(function(e){var t,n,r=e.width,i=e.height,o=e.type,a=e.x,s=e.y;return"cross"===o?(t={x0:a,x1:a,y0:0,y1:i},n={x0:0,x1:r,y0:s,y1:s}):"top-left"===o?(t={x0:a,x1:a,y0:0,y1:s},n={x0:0,x1:a,y0:s,y1:s}):"top"===o?t={x0:a,x1:a,y0:0,y1:s}:"top-right"===o?(t={x0:a,x1:a,y0:0,y1:s},n={x0:a,x1:r,y0:s,y1:s}):"right"===o?n={x0:a,x1:r,y0:s,y1:s}:"bottom-right"===o?(t={x0:a,x1:a,y0:s,y1:i},n={x0:a,x1:r,y0:s,y1:s}):"bottom"===o?t={x0:a,x1:a,y0:s,y1:i}:"bottom-left"===o?(t={x0:a,x1:a,y0:s,y1:i},n={x0:0,x1:a,y0:s,y1:s}):"left"===o?n={x0:0,x1:a,y0:s,y1:s}:"x"===o?t={x0:a,x1:a,y0:0,y1:i}:"y"===o&&(n={x0:0,x1:r,y0:s,y1:s}),(0,b.jsxs)(b.Fragment,{children:[t&&(0,b.jsx)(iG,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}),n&&(0,b.jsx)(iG,{x0:n.x0,x1:n.x1,y0:n.y0,y1:n.y1})]})});iJ.displayName="Crosshair";var iK=(0,w.createContext)({showTooltipAt:function(){},showTooltipFromEvent:function(){},hideTooltip:function(){}}),iX={isVisible:!1,position:[null,null],content:null,anchor:null},iQ=(0,w.createContext)(iX),i0=function(e){var t=(0,w.useState)(iX),n=t[0],r=t[1],i=(0,w.useCallback)(function(e,t,n){void 0===n&&(n="top"),r({isVisible:!0,position:[t[0],t[1]],anchor:n,content:e})},[r]),o=(0,w.useCallback)(function(t,n,i){void 0===i&&(i="top");var o=e.current.getBoundingClientRect(),a=e.current.offsetWidth,s=a===o.width?1:a/o.width,l=(n.clientX-o.left)*s,u=(n.clientY-o.top)*s;"left"!==i&&"right"!==i||(i=ls&&(a=t.slice(s,a),u[l]?u[l]+=a:u[++l]=a),(i=i[0])===(o=o[0])?u[l]?u[l]+=o:u[++l]=o:(u[++l]=null,c.push({i:l,x:ot(i,o)})),s=or.lastIndex;return s>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?oP(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?oP(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ow.exec(e))?new oL(t[1],t[2],t[3],1):(t=o_.exec(e))?new oL(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ox.exec(e))?oP(t[1],t[2],t[3],t[4]):(t=oD.exec(e))?oP(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=oE.exec(e))?oI(t[1],t[2]/100,t[3]/100,1):(t=oC.exec(e))?oI(t[1],t[2]/100,t[3]/100,t[4]):ok.hasOwnProperty(e)?oO(ok[e]):"transparent"===e?new oL(NaN,NaN,NaN,0):null}function oO(e){return new oL(e>>16&255,e>>8&255,255&e,1)}function oP(e,t,n,r){return r<=0&&(e=t=n=NaN),new oL(e,t,n,r)}function oR(e){return(e instanceof om||(e=oM(e)),e)?new oL((e=e.rgb()).r,e.g,e.b,e.opacity):new oL}function oj(e,t,n,r){return 1==arguments.length?oR(e):new oL(e,t,n,null==r?1:r)}function oL(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function oF(){return"#"+oN(this.r)+oN(this.g)+oN(this.b)}function oA(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function oN(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function oI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new oU(e,t,n,r)}function oB(e){if(e instanceof oU)return new oU(e.h,e.s,e.l,e.opacity);if(e instanceof om||(e=oM(e)),!e)return new oU;if(e instanceof oU)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+(n0&&l<1?0:a,new oU(a,s,l,e.opacity)}function oU(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function oz(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function oH(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}oh(om,oM,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:oS,formatHex:oS,formatHsl:function(){return oB(this).formatHsl()},formatRgb:oT,toString:oT}),oh(oL,oj,op(om,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new oL(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new oL(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:oF,formatHex:oF,formatRgb:oA,toString:oA})),oh(oU,function(e,t,n,r){return 1==arguments.length?oB(e):new oU(e,t,n,null==r?1:r)},op(om,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new oU(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new oU(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new oL(oz(e>=240?e-240:e+120,i,r),oz(e,i,r),oz(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var oV=e=>()=>e;function oq(e,t){return function(n){return e+n*t}}function oW(e,t){var n=t-e;return n?oq(e,n):oV(isNaN(e)?t:e)}var o$=function e(t){var n,r=1==(n=+(n=t))?oW:function(e,t){var r,i,o;return t-e?(r=e,i=t,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(e){return Math.pow(r+e*i,o)}):oV(isNaN(e)?t:e)};function i(e,t){var n=r((e=oj(e)).r,(t=oj(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=oW(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return i.gamma=e,i}(1);function oY(e){return function(t){var n,r,i=t.length,o=Array(i),a=Array(i),s=Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=roZ(e[e.length-1]),oJ=[,,,].concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(of),oK=oG(oJ),oX=[,,,].concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(of),oQ=oG(oX),o0=[,,,].concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(of),o1=oG(o0),o2=[,,,].concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(of),o3=oG(o2),o4=[,,,].concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(of),o6=oG(o4),o5=[,,,].concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(of),o8=oG(o5),o7=[,,,].concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(of),o9=oG(o7),ae=[,,,].concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(of),at=oG(ae),an=[,,,].concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(of),ar=oG(an),ai=[,,,].concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(of),ao=oG(ai),aa=[,,,].concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(of),as=oG(aa),al=[,,,].concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(of),au=oG(al),ac=[,,,].concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(of),ad=oG(ac),af=[,,,].concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(of),ah=oG(af),ap=[,,,].concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(of),am=oG(ap),ag=[,,,].concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(of),av=oG(ag),ay=[,,,].concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(of),ab=oG(ay),aw=[,,,].concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(of),a_=oG(aw),ax=[,,,].concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(of),aD=oG(ax),aE=[,,,].concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(of),aC=oG(aE),ak=[,,,].concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(of),aS=oG(ak),aT=[,,,].concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(of),aM=oG(aT),aO=[,,,].concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(of),aP=oG(aO),aR=[,,,].concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(of),aj=oG(aR),aL=[,,,].concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(of),aF=oG(aL),aA=[,,,].concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(of),aN=oG(aA),aI=[,,,].concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(of),aB=oG(aI),aU=of("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),az=of("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),aH=of("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),aV=of("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),aq=of("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),aW=of("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),a$=of("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),aY=of("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),aZ=of("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function aG(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var aJ=aG(of("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),aK=aG(of("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),aX=aG(of("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),aQ=aG(of("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));let a0=Math.PI/180,a1=180/Math.PI;var a2=-1.78277*.29227-.1347134789;function a3(e,t,n,r){return 1==arguments.length?function(e){if(e instanceof a4)return new a4(e.h,e.s,e.l,e.opacity);e instanceof oL||(e=oR(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(a2*r+-1.7884503806*t-3.5172982438*n)/(a2+-1.7884503806-3.5172982438),o=r-i,a=-((1.97294*(n-i)- -.29227*o)/.90649),s=Math.sqrt(a*a+o*o)/(1.97294*i*(1-i)),l=s?Math.atan2(a,o)*a1-120:NaN;return new a4(l<0?l+360:l,s,i,e.opacity)}(e):new a4(e,t,n,null==r?1:r)}function a4(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function a6(e){return function t(n){function r(t,r){var i=e((t=a3(t)).h,(r=a3(r)).h),o=oW(t.s,r.s),a=oW(t.l,r.l),s=oW(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}oh(a4,a3,op(om,{brighter:function(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new a4(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new a4(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*a0,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new oL(255*(t+n*(-.14861*r+1.78277*i)),255*(t+n*(-.29227*r+-.90649*i)),255*(t+1.97294*r*n),this.opacity)}})),a6(function(e,t){var n=t-e;return n?oq(e,n>180||n<-180?n-360*Math.round(n/360):n):oV(isNaN(e)?t:e)});var a5=a6(oW),a8=a5(a3(-100,.75,.35),a3(80,1.5,.8)),a7=a5(a3(260,.75,.35),a3(80,1.5,.8)),a9=a3(),se=a5(a3(300,.5,0),a3(-240,.5,1)),st=oj(),sn=Math.PI/3,sr=2*Math.PI/3,si=n(14380),so=n.n(si),sa=n(30601),ss=n.n(sa);function sl(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function su(e){this._context=e}function sc(){}function sd(e){this._context=e}function sf(e){this._context=e}function sh(e,t){this._basis=new su(e),this._beta=t}su.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:sl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:sl(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},sd.prototype={areaStart:sc,areaEnd:sc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:sl(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},sf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:sl(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},sh.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var sp=function e(t){function n(e){return 1===t?new su(e):new sh(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function sm(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function sg(e,t){this._context=e,this._k=(1-t)/6}sg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:sm(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:sm(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var sv=function e(t){function n(e){return new sg(e,t)}return n.tension=function(t){return e(+t)},n}(0);function sy(e,t){this._context=e,this._k=(1-t)/6}sy.prototype={areaStart:sc,areaEnd:sc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:sm(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var sb=function e(t){function n(e){return new sy(e,t)}return n.tension=function(t){return e(+t)},n}(0);function sw(e,t){this._context=e,this._k=(1-t)/6}sw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:sm(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var s_=function e(t){function n(e){return new sw(e,t)}return n.tension=function(t){return e(+t)},n}(0);function sx(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function sD(e,t){this._context=e,this._alpha=t}sD.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:sx(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var sE=function e(t){function n(e){return t?new sD(e,t):new sg(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function sC(e,t){this._context=e,this._alpha=t}sC.prototype={areaStart:sc,areaEnd:sc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:sx(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var sk=function e(t){function n(e){return t?new sC(e,t):new sy(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function sS(e,t){this._context=e,this._alpha=t}sS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:sx(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var sT=function e(t){function n(e){return t?new sS(e,t):new sw(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function sM(e){this._context=e}function sO(e){return new sM(e)}function sP(e){this._context=e}function sR(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*r)/(r+i)))||0}function sj(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function sL(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function sF(e){this._context=e}function sA(e){this._context=new sN(e)}function sN(e){this._context=e}function sI(e){this._context=e}function sB(e){var t,n,r=e.length-1,i=Array(r),o=Array(r),a=Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(t=0,o[r-1]=(e[r]+i[r-1])/2;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function sz(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function sH(e){return(e=sz(Math.abs(e)))?e[1]:NaN}var sV=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function sq(e){var t;if(!(t=sV.exec(e)))throw Error("invalid format: "+e);return new sW({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function sW(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function s$(e,t){var n=sz(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}sq.prototype=sW.prototype,sW.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var sY={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return s$(100*e,t)},r:s$,s:function(e,t){var n=sz(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(u=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+Array(1-o).join("0")+sz(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function sZ(e){return e}var sG=Array.prototype.map,sJ=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];d=(c=function(e){var t,n,r,i=void 0===e.grouping||void 0===e.thousands?sZ:(t=sG.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?sZ:(r=sG.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return r[+e]})}),c=void 0===e.percent?"%":e.percent+"",d=void 0===e.minus?"-":e.minus+"",f=void 0===e.nan?"NaN":e.nan+"";function h(e){var t=(e=sq(e)).fill,n=e.align,r=e.sign,h=e.symbol,p=e.zero,m=e.width,g=e.comma,v=e.precision,y=e.trim,b=e.type;"n"===b?(g=!0,b="g"):sY[b]||(void 0===v&&(v=12),y=!0,b="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var w="$"===h?o:"#"===h&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",_="$"===h?a:/[%p]/.test(b)?c:"",x=sY[b],D=/[defgprs%]/.test(b);function E(e){var o,a,c,h=w,E=_;if("c"===b)E=x(e)+E,e="";else{var C=(e=+e)<0||1/e<0;if(e=isNaN(e)?f:x(Math.abs(e),v),y&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),C&&0==+e&&"+"!==r&&(C=!1),h=(C?"("===r?r:d:"-"===r||"("===r?"":r)+h,E=("s"===b?sJ[8+u/3]:"")+E+(C&&"("===r?")":""),D){for(o=-1,a=e.length;++o(c=e.charCodeAt(o))||c>57){E=(46===c?s+e.slice(o+1):e.slice(o))+E,e=e.slice(0,o);break}}}g&&!p&&(e=i(e,1/0));var k=h.length+e.length+E.length,S=k>1)+h+e+E+S.slice(k);break;default:e=S+h+e+E}return l(e)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),E.toString=function(){return e+""},E}return{format:h,formatPrefix:function(e,t){var n=h(((e=sq(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(sH(t)/3))),i=Math.pow(10,-r),o=sJ[8+r/3];return function(e){return n(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})).format,f=c.formatPrefix;var sK=new Date,sX=new Date;function sQ(e,t,n,r){function i(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t0))return s;do s.push(a=new Date(+n)),t(n,o),e(n);while(a=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}})},n&&(i.count=function(t,r){return sK.setTime(+t),sX.setTime(+r),e(sK),e(sX),Math.floor(n(sK,sX))},i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}function s0(e){return sQ(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/6048e5})}var s1=s0(0),s2=s0(1),s3=s0(2),s4=s0(3),s6=s0(4),s5=s0(5),s8=s0(6);s1.range,s2.range,s3.range,s4.range,s6.range,s5.range,s8.range;var s7=sQ(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1});function s9(e){return sQ(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5})}s7.range;var le=s9(0),lt=s9(1),ln=s9(2),lr=s9(3),li=s9(4),lo=s9(5),la=s9(6);le.range,lt.range,ln.range,lr.range,li.range,lo.range,la.range;var ls=sQ(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5},function(e){return e.getDate()-1});ls.range;var ll=sQ(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});ll.every=function(e){return isFinite(e=Math.floor(e))&&e>0?sQ(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},ll.range;var lu=sQ(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});function lc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ld(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function lf(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}lu.every=function(e){return isFinite(e=Math.floor(e))&&e>0?sQ(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},lu.range;var lh={"-":"",_:" ",0:"0"},lp=/^\s*\d+/,lm=/^%/,lg=/[\\^$*+?|[\]().{}]/g;function lv(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o[e.toLowerCase(),t]))}function l_(e,t,n){var r=lp.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function lx(e,t,n){var r=lp.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function lD(e,t,n){var r=lp.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function lE(e,t,n){var r=lp.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function lC(e,t,n){var r=lp.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function lk(e,t,n){var r=lp.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lS(e,t,n){var r=lp.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function lT(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function lM(e,t,n){var r=lp.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function lO(e,t,n){var r=lp.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function lP(e,t,n){var r=lp.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function lR(e,t,n){var r=lp.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function lj(e,t,n){var r=lp.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function lL(e,t,n){var r=lp.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function lF(e,t,n){var r=lp.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function lA(e,t,n){var r=lp.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function lN(e,t,n){var r=lp.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function lI(e,t,n){var r=lm.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function lB(e,t,n){var r=lp.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function lU(e,t,n){var r=lp.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function lz(e,t){return lv(e.getDate(),t,2)}function lH(e,t){return lv(e.getHours(),t,2)}function lV(e,t){return lv(e.getHours()%12||12,t,2)}function lq(e,t){return lv(1+ls.count(ll(e),e),t,3)}function lW(e,t){return lv(e.getMilliseconds(),t,3)}function l$(e,t){return lW(e,t)+"000"}function lY(e,t){return lv(e.getMonth()+1,t,2)}function lZ(e,t){return lv(e.getMinutes(),t,2)}function lG(e,t){return lv(e.getSeconds(),t,2)}function lJ(e){var t=e.getDay();return 0===t?7:t}function lK(e,t){return lv(le.count(ll(e)-1,e),t,2)}function lX(e){var t=e.getDay();return t>=4||0===t?li(e):li.ceil(e)}function lQ(e,t){return e=lX(e),lv(li.count(ll(e),e)+(4===ll(e).getDay()),t,2)}function l0(e){return e.getDay()}function l1(e,t){return lv(lt.count(ll(e)-1,e),t,2)}function l2(e,t){return lv(e.getFullYear()%100,t,2)}function l3(e,t){return lv((e=lX(e)).getFullYear()%100,t,2)}function l4(e,t){return lv(e.getFullYear()%1e4,t,4)}function l6(e,t){var n=e.getDay();return lv((e=n>=4||0===n?li(e):li.ceil(e)).getFullYear()%1e4,t,4)}function l5(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+lv(t/60|0,"0",2)+lv(t%60,"0",2)}function l8(e,t){return lv(e.getUTCDate(),t,2)}function l7(e,t){return lv(e.getUTCHours(),t,2)}function l9(e,t){return lv(e.getUTCHours()%12||12,t,2)}function ue(e,t){return lv(1+s7.count(lu(e),e),t,3)}function ut(e,t){return lv(e.getUTCMilliseconds(),t,3)}function un(e,t){return ut(e,t)+"000"}function ur(e,t){return lv(e.getUTCMonth()+1,t,2)}function ui(e,t){return lv(e.getUTCMinutes(),t,2)}function uo(e,t){return lv(e.getUTCSeconds(),t,2)}function ua(e){var t=e.getUTCDay();return 0===t?7:t}function us(e,t){return lv(s1.count(lu(e)-1,e),t,2)}function ul(e){var t=e.getUTCDay();return t>=4||0===t?s6(e):s6.ceil(e)}function uu(e,t){return e=ul(e),lv(s6.count(lu(e),e)+(4===lu(e).getUTCDay()),t,2)}function uc(e){return e.getUTCDay()}function ud(e,t){return lv(s2.count(lu(e)-1,e),t,2)}function uf(e,t){return lv(e.getUTCFullYear()%100,t,2)}function uh(e,t){return lv((e=ul(e)).getUTCFullYear()%100,t,2)}function up(e,t){return lv(e.getUTCFullYear()%1e4,t,4)}function um(e,t){var n=e.getUTCDay();return lv((e=n>=4||0===n?s6(e):s6.ceil(e)).getUTCFullYear()%1e4,t,4)}function ug(){return"+0000"}function uv(){return"%"}function uy(e){return+e}function ub(e){return Math.floor(+e/1e3)}p=(h=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=lb(i),c=lw(i),d=lb(o),f=lw(o),h=lb(a),p=lw(a),m=lb(s),g=lw(s),v=lb(l),y=lw(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:lz,e:lz,f:l$,g:l3,G:l6,H:lH,I:lV,j:lq,L:lW,m:lY,M:lZ,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:uy,s:ub,S:lG,u:lJ,U:lK,V:lQ,w:l0,W:l1,x:null,X:null,y:l2,Y:l4,Z:l5,"%":uv},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:l8,e:l8,f:un,g:uh,G:um,H:l7,I:l9,j:ue,L:ut,m:ur,M:ui,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:uy,s:ub,S:uo,u:ua,U:us,V:uu,w:uc,W:ud,x:null,X:null,y:uf,Y:up,Z:ug,"%":uv},_={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:lP,e:lP,f:lN,g:lS,G:lk,H:lj,I:lj,j:lR,L:lA,m:lO,M:lL,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:lM,Q:lB,s:lU,S:lF,u:lx,U:lD,V:lE,w:l_,W:lC,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:lS,Y:lk,Z:lT,"%":lI};function x(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=ld(lf(o.y,0,1))).getUTCDay())>4||0===i?s2.ceil(r):s2(r),r=s7.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=lc(lf(o.y,0,1))).getDay())>4||0===i?lt.ceil(r):lt(r),r=ls.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?ld(lf(o.y,0,1)).getUTCDay():lc(lf(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,ld(o)):lc(o)}}function E(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a=l)return -1;if(37===(i=t.charCodeAt(a++))){if(!(o=_[(i=t.charAt(a++))in lh?t.charAt(a++):i])||(r=o(e,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return b.x=x(n,b),b.X=x(r,b),b.c=x(t,b),w.x=x(n,w),w.X=x(r,w),w.c=x(t,w),{format:function(e){var t=x(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=D(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=x(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=D(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,m=h.parse,g=h.utcFormat,v=h.utcParse,Object.prototype.hasOwnProperty;var uw=n(12916),u_=n.n(uw),ux=n(32999),uD=n.n(ux),uE=n(37656),uC=n.n(uE);function uk(){return(uk=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var uM={fill:tL().string,fontSize:tL().number,fontFamily:tL().string},uO=tL().shape({domain:tL().shape({line:tL().shape({stroke:tL().string.isRequired,strokeWidth:tL().number.isRequired,strokeDasharray:tL().string}).isRequired}).isRequired,ticks:tL().shape({line:tL().shape({stroke:tL().string.isRequired,strokeWidth:tL().number.isRequired,strokeDasharray:tL().string}).isRequired,text:tL().shape(uk({},uM)).isRequired}).isRequired,legend:tL().shape({text:tL().shape(uk({},uM)).isRequired}).isRequired}),uP=tL().shape({line:tL().shape({stroke:tL().string.isRequired,strokeWidth:tL().number.isRequired,strokeDasharray:tL().string}).isRequired}),uR=tL().shape({hidden:tL().shape({symbol:tL().shape({fill:tL().string.isRequired,opacity:tL().number}).isRequired,text:tL().shape(uk({},uM,{opacity:tL().number})).isRequired}).isRequired,text:tL().shape(uk({},uM)).isRequired}),uj=tL().shape({text:tL().shape(uk({},uM)).isRequired}),uL=tL().shape({text:tL().shape(uk({},uM)).isRequired}),uF=tL().shape({text:tL().shape(uk({},uM)).isRequired}),uA=tL().shape({line:tL().shape({stroke:tL().string.isRequired,strokeWidth:tL().number.isRequired,strokeDasharray:tL().string}).isRequired}),uN=tL().shape({text:tL().shape(uk({},uM,{outlineWidth:tL().number.isRequired,outlineColor:tL().string.isRequired})).isRequired,link:tL().shape({stroke:tL().string.isRequired,strokeWidth:tL().number.isRequired,outlineWidth:tL().number.isRequired,outlineColor:tL().string.isRequired}).isRequired,outline:tL().shape({stroke:tL().string.isRequired,strokeWidth:tL().number.isRequired,outlineWidth:tL().number.isRequired,outlineColor:tL().string.isRequired}).isRequired,symbol:tL().shape({fill:tL().string.isRequired,outlineWidth:tL().number.isRequired,outlineColor:tL().string.isRequired}).isRequired}),uI=(tL().shape({background:tL().string.isRequired,fontFamily:tL().string.isRequired,fontSize:tL().number.isRequired,textColor:tL().string.isRequired,axis:uO.isRequired,grid:uP.isRequired,legends:uR.isRequired,labels:uj.isRequired,dots:uL.isRequired,markers:uF,crosshair:uA.isRequired,annotations:uN.isRequired}),{background:"transparent",fontFamily:"sans-serif",fontSize:11,textColor:"#333333",axis:{domain:{line:{stroke:"transparent",strokeWidth:1}},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{}},legend:{text:{fontSize:12}}},grid:{line:{stroke:"#dddddd",strokeWidth:1}},legends:{hidden:{symbol:{fill:"#333333",opacity:.6},text:{fill:"#333333",opacity:.6}},text:{},ticks:{line:{stroke:"#777777",strokeWidth:1},text:{fontSize:10}},title:{text:{}}},labels:{text:{}},markers:{lineColor:"#000000",lineStrokeWidth:1,text:{}},dots:{text:{}},tooltip:{container:{background:"white",color:"inherit",fontSize:"inherit",borderRadius:"2px",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.25)",padding:"5px 9px"},basic:{whiteSpace:"pre",display:"flex",alignItems:"center"},chip:{marginRight:7},table:{},tableCell:{padding:"3px 5px"},tableCellValue:{fontWeight:"bold"}},crosshair:{line:{stroke:"#000000",strokeWidth:1,strokeOpacity:.75,strokeDasharray:"6 6"}},annotations:{text:{fontSize:13,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},link:{stroke:"#000000",strokeWidth:1,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},outline:{fill:"none",stroke:"#000000",strokeWidth:2,outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1},symbol:{fill:"#000000",outlineWidth:2,outlineColor:"#ffffff",outlineOpacity:1}}}),uB=["axis.ticks.text","axis.legend.text","legends.title.text","legends.text","legends.ticks.text","legends.title.text","labels.text","dots.text","markers.text","annotations.text"],uU=function(e,t){var n=i5()({},e,t);return uB.forEach(function(e){void 0===i7()(n,e+".fontFamily")&&oe()(n,e+".fontFamily",n.fontFamily),void 0===i7()(n,e+".fontSize")&&oe()(n,e+".fontSize",n.fontSize),void 0===i7()(n,e+".fill")&&oe()(n,e+".fill",n.textColor)}),n},uz=(0,w.createContext)(),uH=function(e){var t=e.children,n=e.animate,r=e.stiffness,i=e.damping,o=e.config,a=(0,w.useMemo)(function(){return{animate:n,springConfig:{stiffness:r,damping:i},config:oa()(o)?rR[o]:o}},[n,r,i,o]);return(0,b.jsx)(uz.Provider,{value:a,children:t})},uV={animate:tL().bool,motionStiffness:tL().number,motionDamping:tL().number,motionConfig:tL().oneOfType([tL().oneOf(Object.keys(rR)),tL().shape({mass:tL().number,tension:tL().number,friction:tL().number,clamp:tL().bool,precision:tL().number,velocity:tL().number,duration:tL().number,easing:tL().func})])};uH.propTypes={children:tL().node.isRequired,animate:uV.animate,stiffness:uV.motionStiffness,damping:uV.motionDamping,config:uV.motionConfig},uH.defaultProps={animate:!0,stiffness:90,damping:15,config:"default"};var uq=function(){return(0,w.useContext)(uz)},uW=function(e){var t,n=uq(),r=n.animate,i=n.config,o=(t=(0,w.useRef)(),(0,w.useEffect)(function(){t.current=e},[e]),t.current),a=(0,w.useMemo)(function(){return oi(o,e)},[o,e]);return iD(ig({from:{value:0},to:{value:1},reset:!0,config:i,immediate:!r}).value,a)},u$=Object.keys({nivo:["#d76445","#f47560","#e8c1a0","#97e3d5","#61cdbb","#00b0a7"],BrBG:ol()(oJ),PRGn:ol()(oX),PiYG:ol()(o0),PuOr:ol()(o2),RdBu:ol()(o4),RdGy:ol()(o5),RdYlBu:ol()(o7),RdYlGn:ol()(ae),spectral:ol()(an),blues:ol()(ai),greens:ol()(aa),greys:ol()(al),oranges:ol()(ac),purples:ol()(af),reds:ol()(ap),BuGn:ol()(ag),BuPu:ol()(ay),GnBu:ol()(aw),OrRd:ol()(ax),PuBuGn:ol()(aE),PuBu:ol()(ak),PuRd:ol()(aT),RdPu:ol()(aO),YlGnBu:ol()(aR),YlGn:ol()(aL),YlOrBr:ol()(aA),YlOrRd:ol()(aI)}),uY=(ol()(oJ),ol()(oX),ol()(o0),ol()(o2),ol()(o4),ol()(o5),ol()(o7),ol()(ae),ol()(an),ol()(ai),ol()(aa),ol()(al),ol()(ac),ol()(af),ol()(ap),ol()(ag),ol()(ay),ol()(aw),ol()(ax),ol()(aE),ol()(ak),ol()(aT),ol()(aO),ol()(aR),ol()(aL),ol()(aA),ol()(aI),tL().oneOfType([tL().oneOf(u$),tL().func,tL().arrayOf(tL().string)]),{basis:function(e){return new su(e)},basisClosed:function(e){return new sd(e)},basisOpen:function(e){return new sf(e)},bundle:sp,cardinal:sv,cardinalClosed:sb,cardinalOpen:s_,catmullRom:sE,catmullRomClosed:sk,catmullRomOpen:sT,linear:sO,linearClosed:function(e){return new sP(e)},monotoneX:function(e){return new sF(e)},monotoneY:function(e){return new sA(e)},natural:function(e){return new sI(e)},step:function(e){return new sU(e,.5)},stepAfter:function(e){return new sU(e,1)},stepBefore:function(e){return new sU(e,0)}}),uZ=Object.keys(uY),uG=(tL().oneOf(uZ),uZ.filter(function(e){return e.endsWith("Closed")}),ss()(uZ,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed"),ss()(uZ,"bundle","basisClosed","basisOpen","cardinalClosed","cardinalOpen","catmullRomClosed","catmullRomOpen","linearClosed")),uJ=tL().oneOf(uG),uK=function(e){if(!uY[e])throw TypeError("'"+e+"', is not a valid curve interpolator identifier.");return uY[e]},uX={defs:tL().arrayOf(tL().shape({id:tL().string.isRequired})).isRequired,fill:tL().arrayOf(tL().shape({id:tL().string.isRequired,match:tL().oneOfType([tL().oneOf(["*"]),tL().object,tL().func]).isRequired})).isRequired},uQ=(tL().oneOf(["ascending","descending","insideOut","none","reverse"]),tL().oneOf(["expand","diverging","none","silhouette","wiggle"]),tL().shape({top:tL().number,right:tL().number,bottom:tL().number,left:tL().number}).isRequired,tL().oneOf(["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"])),u0=(od(aZ),{top:0,right:0,bottom:0,left:0}),u1=function(e,t,n){return void 0===n&&(n={}),(0,w.useMemo)(function(){var r=uk({},u0,n);return{margin:r,innerWidth:e-r.left-r.right,innerHeight:t-r.top-r.bottom,outerWidth:e,outerHeight:t}},[e,t,n.top,n.right,n.bottom,n.left])},u2=function(){var e=(0,w.useRef)(null),t=(0,w.useState)({left:0,top:0,width:0,height:0}),n=t[0],r=t[1],i=(0,w.useState)(function(){return"undefined"!=typeof window?new ResizeObserver(function(e){return r(e[0].contentRect)}):null})[0];return(0,w.useEffect)(function(){return e.current&&null!==i&&i.observe(e.current),function(){null!==i&&i.disconnect()}},[]),[e,n]},u3=function(e){return(0,w.useMemo)(function(){return"function"==typeof e?e:"string"==typeof e?0===e.indexOf("time:")?p(e.slice("5")):d(e):function(e){return""+e}},[e])},u4=(0,w.createContext)(),u6={},u5=function(e){var t,n=e.theme,r=e.children,i=(t=void 0===n?u6:n,(0,w.useMemo)(function(){return uU(uI,t)},[t]));return(0,b.jsx)(u4.Provider,{value:i,children:r})};u5.propTypes={children:tL().node.isRequired,theme:tL().object};var u8=function(){return(0,w.useContext)(u4)},u7=function(e){var t=e.children,n=e.condition,r=e.wrapper;return n?(0,w.cloneElement)(r,{},t):t};u7.propTypes={children:tL().node.isRequired,condition:tL().bool.isRequired,wrapper:tL().element.isRequired};var u9={position:"relative"},ce=function(e){var t=e.children,n=e.theme,r=e.renderWrapper,i=e.isInteractive,o=e.animate,a=e.motionStiffness,s=e.motionDamping,l=e.motionConfig,u=(0,w.useRef)(null);return(0,b.jsx)(u5,{theme:n,children:(0,b.jsx)(uH,{animate:o,stiffness:a,damping:s,config:l,children:(0,b.jsx)(i4,{container:u,children:(0,b.jsxs)(u7,{condition:void 0===r||r,wrapper:(0,b.jsx)("div",{style:u9,ref:u}),children:[t,(void 0===i||i)&&(0,b.jsx)(i3,{})]})})})})};ce.propTypes={children:tL().element.isRequired,isInteractive:tL().bool,renderWrapper:tL().bool,theme:tL().object,animate:tL().bool,motionStiffness:tL().number,motionDamping:tL().number,motionConfig:tL().string},tL().func.isRequired,tL().bool,tL().bool,tL().object.isRequired,tL().bool.isRequired,tL().number,tL().number,tL().string;var ct=function(e){var t=e.children,n=u2(),r=n[0],i=n[1],o=i.width>0&&i.height>0;return(0,b.jsx)("div",{ref:r,style:{width:"100%",height:"100%"},children:o&&t({width:i.width,height:i.height})})};ct.propTypes={children:tL().func.isRequired};var cn=["id","colors"],cr=function(e){var t=e.id,n=e.colors,r=uT(e,cn);return(0,b.jsx)("linearGradient",uk({id:t,x1:0,x2:0,y1:0,y2:1},r,{children:n.map(function(e){var t=e.offset,n=e.color,r=e.opacity;return(0,b.jsx)("stop",{offset:t+"%",stopColor:n,stopOpacity:void 0!==r?r:1},t)})}))};cr.propTypes={id:tL().string.isRequired,colors:tL().arrayOf(tL().shape({offset:tL().number.isRequired,color:tL().string.isRequired,opacity:tL().number})).isRequired,gradientTransform:tL().string};var ci={linearGradient:cr},co=(0,w.memo)(function(e){var t=e.id,n=e.background,r=e.color,i=e.size,o=e.padding,a=e.stagger,s=i+o,l=i/2,u=o/2;return!0===a&&(s=2*i+2*o),(0,b.jsxs)("pattern",{id:t,width:s,height:s,patternUnits:"userSpaceOnUse",children:[(0,b.jsx)("rect",{width:s,height:s,fill:n}),(0,b.jsx)("circle",{cx:u+l,cy:u+l,r:l,fill:r}),a&&(0,b.jsx)("circle",{cx:1.5*o+i+l,cy:1.5*o+i+l,r:l,fill:r})]})});co.displayName="PatternDots",co.propTypes={id:tL().string.isRequired,color:tL().string.isRequired,background:tL().string.isRequired,size:tL().number.isRequired,padding:tL().number.isRequired,stagger:tL().bool.isRequired},co.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var ca=function(e){return e*Math.PI/180},cs={svg:{align:{left:"start",center:"middle",right:"end",start:"start",middle:"middle",end:"end"},baseline:{top:"text-before-edge",center:"central",bottom:"alphabetic"}},canvas:{align:{left:"left",center:"center",right:"right",start:"left",middle:"center",end:"right"},baseline:{top:"top",center:"middle",bottom:"bottom"}}},cl=(0,w.memo)(function(e){var t=e.id,n=e.spacing,r=e.rotation,i=e.background,o=e.color,a=e.lineWidth,s=Math.round(r)%360,l=Math.abs(n);s>180?s-=360:s>90?s-=180:s<-180?s+=360:s<-90&&(s+=180);var u,c=l,d=l;return 0===s?u="\n M 0 0 L "+c+" 0\n M 0 "+d+" L "+c+" "+d+"\n ":90===s?u="\n M 0 0 L 0 "+d+"\n M "+c+" 0 L "+c+" "+d+"\n ":(c=Math.abs(l/Math.sin(ca(s))),d=l/Math.sin(ca(90-s)),u=s>0?"\n M 0 "+-d+" L "+2*c+" "+d+"\n M "+-c+" "+-d+" L "+c+" "+d+"\n M "+-c+" 0 L "+c+" "+2*d+"\n ":"\n M "+-c+" "+d+" L "+c+" "+-d+"\n M "+-c+" "+2*d+" L "+2*c+" "+-d+"\n M 0 "+2*d+" L "+2*c+" 0\n "),(0,b.jsxs)("pattern",{id:t,width:c,height:d,patternUnits:"userSpaceOnUse",children:[(0,b.jsx)("rect",{width:c,height:d,fill:i,stroke:"rgba(255, 0, 0, 0.1)",strokeWidth:0}),(0,b.jsx)("path",{d:u,strokeWidth:a,stroke:o,strokeLinecap:"square"})]})});cl.displayName="PatternLines",cl.propTypes={id:tL().string.isRequired,spacing:tL().number.isRequired,rotation:tL().number.isRequired,background:tL().string.isRequired,color:tL().string.isRequired,lineWidth:tL().number.isRequired},cl.defaultProps={spacing:5,rotation:0,color:"#000000",background:"#ffffff",lineWidth:2};var cu=(0,w.memo)(function(e){var t=e.id,n=e.background,r=e.color,i=e.size,o=e.padding,a=e.stagger,s=i+o,l=o/2;return!0===a&&(s=2*i+2*o),(0,b.jsxs)("pattern",{id:t,width:s,height:s,patternUnits:"userSpaceOnUse",children:[(0,b.jsx)("rect",{width:s,height:s,fill:n}),(0,b.jsx)("rect",{x:l,y:l,width:i,height:i,fill:r}),a&&(0,b.jsx)("rect",{x:1.5*o+i,y:1.5*o+i,width:i,height:i,fill:r})]})});cu.displayName="PatternSquares",cu.propTypes={id:tL().string.isRequired,color:tL().string.isRequired,background:tL().string.isRequired,size:tL().number.isRequired,padding:tL().number.isRequired,stagger:tL().bool.isRequired},cu.defaultProps={color:"#000000",background:"#ffffff",size:4,padding:4,stagger:!1};var cc={patternDots:co,patternLines:cl,patternSquares:cu},cd=["type"],cf=uk({},ci,cc),ch=function(e){var t=e.defs;return!t||t.length<1?null:(0,b.jsx)("defs",{"aria-hidden":!0,children:t.map(function(e){var t=e.type,n=uT(e,cd);return cf[t]?(0,w.createElement)(cf[t],uk({key:n.id},n)):null})})};ch.propTypes={defs:tL().arrayOf(tL().shape({type:tL().oneOf(Object.keys(cf)).isRequired,id:tL().string.isRequired}))};var cp=(0,w.memo)(ch),cm=function(e){var t=e.width,n=e.height,r=e.margin,i=e.defs,o=e.children,a=e.role,s=e.ariaLabel,l=e.ariaLabelledBy,u=e.ariaDescribedBy,c=e.isFocusable,d=u8();return(0,b.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,role:a,"aria-label":s,"aria-labelledby":l,"aria-describedby":u,focusable:c,tabIndex:c?0:void 0,children:[(0,b.jsx)(cp,{defs:i}),(0,b.jsx)("rect",{width:t,height:n,fill:d.background}),(0,b.jsx)("g",{transform:"translate("+r.left+","+r.top+")",children:o})]})};cm.propTypes={width:tL().number.isRequired,height:tL().number.isRequired,margin:tL().shape({top:tL().number.isRequired,left:tL().number.isRequired}).isRequired,defs:tL().array,children:tL().oneOfType([tL().arrayOf(tL().node),tL().node]).isRequired,role:tL().string,isFocusable:tL().bool,ariaLabel:tL().string,ariaLabelledBy:tL().string,ariaDescribedBy:tL().string};var cg=function(e){var t=e.size,n=e.color,r=e.borderWidth,i=e.borderColor;return(0,b.jsx)("circle",{r:t/2,fill:n,stroke:i,strokeWidth:r,style:{pointerEvents:"none"}})};cg.propTypes={size:tL().number.isRequired,color:tL().string.isRequired,borderWidth:tL().number.isRequired,borderColor:tL().string.isRequired};var cv=(0,w.memo)(cg),cy=function(e){var t=e.x,n=e.y,r=e.symbol,i=void 0===r?cv:r,o=e.size,a=e.datum,s=e.color,l=e.borderWidth,u=e.borderColor,c=e.label,d=e.labelTextAnchor,f=e.labelYOffset,h=u8(),p=uq(),m=p.animate,g=ig({transform:"translate("+t+", "+n+")",config:p.config,immediate:!m});return(0,b.jsxs)(iU.g,{transform:g.transform,style:{pointerEvents:"none"},children:[(0,w.createElement)(i,{size:o,color:s,datum:a,borderWidth:l,borderColor:u}),c&&(0,b.jsx)("text",{textAnchor:void 0===d?"middle":d,y:void 0===f?-12:f,style:h.dots.text,children:c})]})};cy.propTypes={x:tL().number.isRequired,y:tL().number.isRequired,datum:tL().object.isRequired,size:tL().number.isRequired,color:tL().string.isRequired,borderWidth:tL().number.isRequired,borderColor:tL().string.isRequired,symbol:tL().oneOfType([tL().func,tL().object]),label:tL().oneOfType([tL().string,tL().number]),labelTextAnchor:tL().oneOf(["start","middle","end"]),labelYOffset:tL().number};var cb=(0,w.memo)(cy),cw=function(e){var t=e.width,n=e.height,r=e.axis,i=e.scale,o=e.value,a=e.lineStyle,s=e.textStyle,l=e.legend,u=e.legendPosition,c=e.legendOffsetX,d=e.legendOffsetY,f=e.legendOrientation,h=u8(),p=0,m=0,g=0,v=0;"y"===r?(g=i(o),m=t):(p=i(o),v=n);var y=null;if(l){var w=function(e){var t=e.axis,n=e.width,r=e.height,i=e.position,o=e.offsetX,a=e.offsetY,s=e.orientation,l=0,u=0,c="start";if("x"===t)switch(i){case"top-left":l=-o,u=a,c="end";break;case"top":u=-a,c="horizontal"===s?"middle":"start";break;case"top-right":l=o,u=a,c="horizontal"===s?"start":"end";break;case"right":l=o,u=r/2,c="horizontal"===s?"start":"middle";break;case"bottom-right":l=o,u=r-a,c="start";break;case"bottom":u=r+a,c="horizontal"===s?"middle":"end";break;case"bottom-left":u=r-a,l=-o,c="horizontal"===s?"end":"start";break;case"left":l=-o,u=r/2,c="horizontal"===s?"end":"middle"}else switch(i){case"top-left":l=o,u=-a,c="start";break;case"top":l=n/2,u=-a,c="horizontal"===s?"middle":"start";break;case"top-right":l=n-o,u=-a,c="horizontal"===s?"end":"start";break;case"right":l=n+o,c="horizontal"===s?"start":"middle";break;case"bottom-right":l=n-o,u=a,c="end";break;case"bottom":l=n/2,u=a,c="horizontal"===s?"middle":"end";break;case"bottom-left":l=o,u=a,c="horizontal"===s?"start":"end";break;case"left":l=-o,c="horizontal"===s?"end":"middle"}return{x:l,y:u,rotation:"vertical"===s?-90:0,textAnchor:c}}({axis:r,width:t,height:n,position:u,offsetX:c,offsetY:d,orientation:f});y=(0,b.jsx)("text",{transform:"translate("+w.x+", "+w.y+") rotate("+w.rotation+")",textAnchor:w.textAnchor,dominantBaseline:"central",style:s,children:l})}return(0,b.jsxs)("g",{transform:"translate("+p+", "+g+")",children:[(0,b.jsx)("line",{x1:0,x2:m,y1:0,y2:v,stroke:h.markers.lineColor,strokeWidth:h.markers.lineStrokeWidth,style:a}),y]})};cw.propTypes={width:tL().number.isRequired,height:tL().number.isRequired,axis:tL().oneOf(["x","y"]).isRequired,scale:tL().func.isRequired,value:tL().oneOfType([tL().number,tL().string,tL().instanceOf(Date)]).isRequired,lineStyle:tL().object,textStyle:tL().object,legend:tL().string,legendPosition:tL().oneOf(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]),legendOffsetX:tL().number.isRequired,legendOffsetY:tL().number.isRequired,legendOrientation:tL().oneOf(["horizontal","vertical"]).isRequired},cw.defaultProps={legendPosition:"top-right",legendOffsetX:14,legendOffsetY:14,legendOrientation:"horizontal"};var c_=(0,w.memo)(cw),cx=function(e){var t=e.markers,n=e.width,r=e.height,i=e.xScale,o=e.yScale;return t&&0!==t.length?t.map(function(e,t){return(0,b.jsx)(c_,uk({},e,{width:n,height:r,scale:"y"===e.axis?o:i}),t)}):null};cx.propTypes={width:tL().number.isRequired,height:tL().number.isRequired,xScale:tL().func.isRequired,yScale:tL().func.isRequired,markers:tL().arrayOf(tL().shape({axis:tL().oneOf(["x","y"]).isRequired,value:tL().oneOfType([tL().number,tL().string,tL().instanceOf(Date)]).isRequired,lineStyle:tL().object,textStyle:tL().object}))};var cD=(0,w.memo)(cx),cE=["theme","renderWrapper","animate","motionStiffness","motionDamping","motionConfig"],cC=function(e){return function(t){function n(){return t.apply(this,arguments)||this}return n.prototype=Object.create(t.prototype),n.prototype.constructor=n,uS(n,t),n.prototype.render=function(){var t=this.props,n=t.theme,r=t.renderWrapper,i=t.animate,o=t.motionStiffness,a=t.motionDamping,s=t.motionConfig,l=uT(t,cE);return(0,b.jsx)(ce,{theme:n,renderWrapper:r,isInteractive:l.isInteractive,animate:i,motionStiffness:o,motionDamping:a,motionConfig:s,children:(0,b.jsx)(e,uk({},l))})},n}(w.Component)},ck=function(e,t){var n,r=so()(e)?e:function(t){return i7()(t,e)};return t&&(n=so()(t)?t:d(t)),n?function(e){return n(r(e))}:r},cS=function(e,t){var n=t.clientX,r=t.clientY,i=e.getBoundingClientRect(),o=e.getBBox(),a=o.width===i.width?1:o.width/i.width;return[(n-i.left)*a,(r-i.top)*a]},cT=Object.keys(ci),cM=Object.keys(cc),cO=function(e,t,n){if("*"===e)return!0;if(so()(e))return e(t);if(uD()(e)){var r=n?i7()(t,n):t;return u_()(uC()(r,Object.keys(e)),e)}return!1},cP=function(e,t,n,r){var i=void 0===r?{}:r,o=i.dataKey,a=i.colorKey,s=void 0===a?"color":a,l=i.targetKey,u=void 0===l?"fill":l,c=[],d={};return e.length&&t.length&&(c=[].concat(e),t.forEach(function(t){for(var r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);n1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return a9.h=360*e-100,a9.s=1.5-1.5*t,a9.l=.8-.9*t,a9+""},sinebow:function(e){var t;return e=(.5-e)*Math.PI,st.r=255*(t=Math.sin(e))*t,st.g=255*(t=Math.sin(e+sn))*t,st.b=255*(t=Math.sin(e+sr))*t,st+""}})),function(e,t){if("function"==typeof e)return e;if(uD()(e)){if(void 0!==e.theme){if(void 0===t)throw Error("Unable to use color from theme as no theme was provided");var n=i7()(t,e.theme);if(void 0===n)throw Error("Color from theme is undefined at path: '"+e.theme+"'");return function(){return n}}if(void 0!==e.from){var r=function(t){return i7()(t,e.from)};if(Array.isArray(e.modifiers)){for(var i,o=[],a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return cj(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cj(e,void 0):void 0}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(e.modifiers);!(i=a()).done;)!function(){var e=i.value,t=e[0],n=e[1];if("brighter"===t)o.push(function(e){return e.brighter(n)});else if("darker"===t)o.push(function(e){return e.darker(n)});else{if("opacity"!==t)throw Error("Invalid color modifier: '"+t+"', must be one of: 'brighter', 'darker', 'opacity'");o.push(function(e){return e.opacity=n,e})}}();return 0===o.length?r:function(e){return o.reduce(function(e,t){return t(e)},oj(r(e))).toString()}}return r}throw Error("Invalid color spec, you should either specify 'theme' or 'from' when using a config object")}return function(){return e}}),cV=function(e,t){return(0,w.useMemo)(function(){return cH(e,t)},[e,t])},cq=tL().oneOfType([tL().func,tL().arrayOf(tL().string),tL().shape({scheme:tL().oneOf(cz).isRequired,size:tL().number}),tL().shape({datum:tL().string.isRequired}),tL().string]),cW=(tL().oneOfType([tL().string,tL().func,tL().shape({theme:tL().string.isRequired}),tL().shape({from:tL().string.isRequired,modifiers:tL().arrayOf(tL().array)})]),function(e,t){if("function"==typeof e)return e;var n="function"==typeof t?t:function(e){return i7()(e,t)};if(Array.isArray(e)){var r=od(e),i=function(e){return r(n(e))};return i.scale=r,i}if(uD()(e)){if(void 0!==e.datum)return function(t){return i7()(t,e.datum)};if(void 0!==e.scheme){if(o=e.scheme,cF.includes(o)){var o,a,s,l=od(cU[e.scheme]),u=function(e){return l(n(e))};return u.scale=l,u}if(a=e.scheme,cN.includes(a)){if(void 0!==e.size&&(e.size<3||e.size>11))throw Error("Invalid size '"+e.size+"' for diverging color scheme '"+e.scheme+"', must be between 3~11");var c=od(cU[e.scheme][e.size||11]),d=function(e){return c(n(e))};return d.scale=c,d}if(s=e.scheme,cB.includes(s)){if(void 0!==e.size&&(e.size<3||e.size>9))throw Error("Invalid size '"+e.size+"' for sequential color scheme '"+e.scheme+"', must be between 3~9");var f=od(cU[e.scheme][e.size||9]),h=function(e){return f(n(e))};return h.scale=f,h}}throw Error("Invalid colors, when using an object, you should either pass a 'datum' or a 'scheme' property")}return function(){return e}}),c$=n(95492),cY=n.n(c$),cZ=n(90374),cG=n.n(cZ),cJ=n(60229),cK=n.n(cJ),cX=n(62878),cQ=n.n(cX),c0=Math.sqrt(50),c1=Math.sqrt(10),c2=Math.sqrt(2);function c3(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t0){let n=Math.round(e/a),r=Math.round(t/a);for(n*at&&--r,o=Array(i=r-n+1);++st&&--r,o=Array(i=r-n+1);++s=0?(o>=c0?10:o>=c1?5:o>=c2?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=c0?10:o>=c1?5:o>=c2?2:1)}function c6(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=c0?i*=10:o>=c1?i*=5:o>=c2&&(i*=2),tt?1:e>=t?0:NaN}function c8(e){let t=e,n=e;function r(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;0>n(e[o],t)?r=o+1:i=o}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=(t,n)=>c5(e(t),n)),{left:r,center:function(e,n,i,o){null==i&&(i=0),null==o&&(o=e.length);let a=r(e,n,i,o-1);return a>i&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;n(e[o],t)>0?i=o:r=o+1}return r}}}let c7=c8(c5),c9=c7.right;function de(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function dt(e){return+e}c7.left,c8(function(e){return null===e?NaN:+e}).center;var dn=[0,1];function dr(e){return e}function di(e,t){var n;return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n})}function da(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return it&&(n=e,e=t,t=n),u=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?ds:da,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(u(t)))}return d.invert=function(n){return u(t((o||(o=r(s,a.map(e),ot)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,dt),c()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=de,c()},d.clamp=function(e){return arguments.length?(u=!!e||dr,c()):u!==dr},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}function dc(e){var t=e.domain;return e.ticks=function(e){var n=t();return c3(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return function(e,t,n,r){var i,o,a=c6(e,t,n);switch((r=sq(null==r?",f":r)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(sH(s)/3)))-sH(Math.abs(a))))||(r.precision=o),f(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=Math.max(0,sH(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(i=Math.abs(i=a)))-sH(i))+1)||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=Math.max(0,-sH(Math.abs(a))))||(r.precision=o-("%"===r.type)*2)}return d(r)}(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,l=o[a],u=o[s],c=10;for(u0;){if((i=c4(l,u,n))===r)return o[a]=l,o[s]=u,t(o);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else if(i<0)l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i;else break;r=i}return e},e}function dd(){var e,t,n=od().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,l=0,u=0,c=.5;function d(){var n=r().length,d=a0))return s;do s.push(a=new Date(+n)),t(n,o),e(n);while(a=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}})},n&&(i.count=function(t,r){return df.setTime(+t),dh.setTime(+r),e(df),e(dh),Math.floor(n(df,dh))},i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var dm=dp(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});dm.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?dp(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):dm:null},dm.range;var dg=dp(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()});dg.range;var dv=dp(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getMinutes()});dv.range;var dy=dp(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()});dy.range;var db=dp(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);function dw(e){return dp(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5})}db.range;var d_=dw(0),dx=dw(1),dD=dw(2),dE=dw(3),dC=dw(4),dk=dw(5),dS=dw(6);d_.range,dx.range,dD.range,dE.range,dC.range,dk.range,dS.range;var dT=dp(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});dT.range;var dM=dp(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});dM.every=function(e){return isFinite(e=Math.floor(e))&&e>0?dp(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},dM.range;var dO=dp(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getUTCMinutes()});dO.range;var dP=dp(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()});dP.range;var dR=dp(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1});function dj(e){return dp(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/6048e5})}dR.range;var dL=dj(0),dF=dj(1),dA=dj(2),dN=dj(3),dI=dj(4),dB=dj(5),dU=dj(6);dL.range,dF.range,dA.range,dN.range,dI.range,dB.range,dU.range;var dz=dp(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});dz.range;var dH=dp(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});function dV(e,t,n,r,i,o){let a=[[dg,1,1e3],[dg,5,5e3],[dg,15,15e3],[dg,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function s(t,n,r){let i=Math.abs(n-t)/r,o=c8(([,,e])=>e).right(a,i);if(o===a.length)return e.every(c6(t/31536e6,n/31536e6,r));if(0===o)return dm.every(Math.max(c6(t,n,r),1));let[s,l]=a[i/a[o-1][2]0?dp(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},dH.range;let[dq,dW]=dV(dH,dz,dL,dR,dP,dO),[d$,dY]=dV(dM,dT,d_,db,dy,dv);function dZ(e,t){e=e.slice();var n,r=0,i=e.length-1,o=e[r],a=e[i];return a0?e>1?sQ(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):d5:null},d5.range;var d8=sQ(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()});d8.range;var d7=sQ(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getMinutes()});d7.range;var d9=sQ(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getUTCMinutes()});d9.range;var fe=sQ(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()});fe.range;var ft=sQ(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()});ft.range;var fn=sQ(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});fn.range;var fr=sQ(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});function fi(){return(fi=Object.assign||function(e){for(var t=1;t0){for(;f<=h;++f)for(c=1,u=n(f);cl)break;m.push(d)}}else for(;f<=h;++f)for(c=o-1,u=n(f);c>=1;--c)if(!((d=u*c)l)break;m.push(d)}2*m.length0?(g=d.align[m?"left":"right"],v=d.baseline.center):("after"===i&&l>0||"before"===i&&l<0)&&(g=d.align[m?"right":"left"],v=d.baseline.center)):(t=function(e){var t;return{x:0,y:null!=(t=f(e))?t:0}},h.lineX=a*("after"===i?1:-1),p.textX=(a+s)*("after"===i?1:-1),g="after"===i?d.align.left:d.align.right),{ticks:c.map(function(e){return fO({key:e instanceof Date?""+e.valueOf():""+e,value:e},t(e),h,p)}),textAlign:g,textBaseline:v}},fR=function(e,t){if(void 0===e||"function"==typeof e)return e;if("time"===t.type){var n=p(e);return function(e){return n(e instanceof Date?e:new Date(e))}}return d(e)},fj=function(e){var t=e.width,n=e.height,r=e.scale,i=e.axis,o=e.values,a=(Array.isArray(o)?o:void 0)||fM(r,o),s="bandwidth"in r?fk(r):r;return"x"===i?a.map(function(e){var t,r;return{key:e instanceof Date?""+e.valueOf():""+e,x1:null!=(t=s(e))?t:0,x2:null!=(r=s(e))?r:0,y1:0,y2:n}}):a.map(function(e){var n,r;return{key:e instanceof Date?""+e.valueOf():""+e,x1:0,x2:t,y1:null!=(n=s(e))?n:0,y2:null!=(r=s(e))?r:0}})},fL=(0,w.memo)(function(e){var t,n=e.value,r=e.format,i=e.lineX,o=e.lineY,a=e.onClick,s=e.textBaseline,l=e.textAnchor,u=e.animatedProps,c=u8(),d=null!=(t=null==r?void 0:r(n))?t:n,f=(0,w.useMemo)(function(){var e={opacity:u.opacity};return a?{style:fO({},e,{cursor:"pointer"}),onClick:function(e){return a(e,d)}}:{style:e}},[u.opacity,a,d]);return(0,b.jsxs)(iU.g,fO({transform:u.transform},f,{children:[(0,b.jsx)("line",{x1:0,x2:i,y1:0,y2:o,style:c.axis.ticks.line}),(0,b.jsx)(iU.text,{dominantBaseline:s,textAnchor:l,transform:u.textTransform,style:c.axis.ticks.text,children:d})]}))}),fF=(0,w.memo)(function(e){var t=e.axis,n=e.scale,r=e.x,i=e.y,o=e.length,a=e.ticksPosition,s=e.tickValues,l=e.tickSize,u=e.tickPadding,c=e.tickRotation,d=void 0===c?0:c,f=e.format,h=e.renderTick,p=void 0===h?fL:h,m=e.legend,g=e.legendPosition,v=void 0===g?"end":g,y=e.legendOffset,_=void 0===y?0:y,x=e.onClick,D=e.ariaHidden,E=u8(),C=(0,w.useMemo)(function(){return fR(f,n)},[f,n]),k=fP({axis:t,scale:n,ticksPosition:a,tickValues:s,tickSize:void 0===l?5:l,tickPadding:void 0===u?5:u,tickRotation:d}),S=k.ticks,T=k.textAlign,M=k.textBaseline,O=null;if(void 0!==m){var P,R=0,j=0,L=0;"y"===t?(L=-90,R=_,"start"===v?(P="start",j=o):"middle"===v?(P="middle",j=o/2):"end"===v&&(P="end")):(j=_,"start"===v?P="start":"middle"===v?(P="middle",R=o/2):"end"===v&&(P="end",R=o)),O=(0,b.jsx)("text",{transform:"translate("+R+", "+j+") rotate("+L+")",textAnchor:P,style:fO({dominantBaseline:"central"},E.axis.legend.text),children:m})}var F=uq(),A=F.animate,N=F.config,I=ig({transform:"translate("+(void 0===r?0:r)+","+(void 0===i?0:i)+")",lineX2:"x"===t?o:0,lineY2:"x"===t?0:o,config:N,immediate:!A}),B=iv(S,{keys:function(e){return e.key},initial:function(e){return{opacity:1,transform:"translate("+e.x+","+e.y+")",textTransform:"translate("+e.textX+","+e.textY+") rotate("+d+")"}},from:function(e){return{opacity:0,transform:"translate("+e.x+","+e.y+")",textTransform:"translate("+e.textX+","+e.textY+") rotate("+d+")"}},enter:function(e){return{opacity:1,transform:"translate("+e.x+","+e.y+")",textTransform:"translate("+e.textX+","+e.textY+") rotate("+d+")"}},update:function(e){return{opacity:1,transform:"translate("+e.x+","+e.y+")",textTransform:"translate("+e.textX+","+e.textY+") rotate("+d+")"}},leave:{opacity:0},config:N,immediate:!A});return(0,b.jsxs)(iU.g,{transform:I.transform,"aria-hidden":D,children:[B(function(e,t,n,r){return w.createElement(p,fO({tickIndex:r,format:C,rotate:d,textBaseline:M,textAnchor:T,animatedProps:e},t,x?{onClick:x}:{}))}),(0,b.jsx)(iU.line,{style:E.axis.domain.line,x1:0,x2:I.lineX2,y1:0,y2:I.lineY2}),O]})}),fA={ticksPosition:tL().oneOf(["before","after"]),tickValues:tL().oneOfType([tL().number,tL().arrayOf(tL().oneOfType([tL().number,tL().string,tL().instanceOf(Date)])),tL().string]),tickSize:tL().number,tickPadding:tL().number,tickRotation:tL().number,format:tL().oneOfType([tL().func,tL().string]),renderTick:tL().func,legend:tL().node,legendPosition:tL().oneOf(["start","middle","end"]),legendOffset:tL().number,ariaHidden:tL().bool},fN=tL().shape(fA),fI=["top","right","bottom","left"],fB=(0,w.memo)(function(e){var t=e.xScale,n=e.yScale,r=e.width,i=e.height,o={top:e.top,right:e.right,bottom:e.bottom,left:e.left};return(0,b.jsx)(b.Fragment,{children:fI.map(function(e){var a=o[e];if(!a)return null;var s="top"===e||"bottom"===e;return(0,b.jsx)(fF,fO({},a,{axis:s?"x":"y",x:"right"===e?r:0,y:"bottom"===e?i:0,scale:s?t:n,length:s?r:i,ticksPosition:"top"===e||"left"===e?"before":"after"}),e)})})}),fU=(0,w.memo)(function(e){var t=e.animatedProps,n=u8();return(0,b.jsx)(iU.line,fO({},t,n.grid.line))}),fz=(0,w.memo)(function(e){var t=e.lines,n=uq(),r=n.animate,i=iv(t,{keys:function(e){return e.key},initial:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},from:function(e){return{opacity:0,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},enter:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},update:function(e){return{opacity:1,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}},leave:{opacity:0},config:n.config,immediate:!r});return(0,b.jsx)("g",{children:i(function(e,t){return(0,w.createElement)(fU,fO({},t,{key:t.key,animatedProps:e}))})})}),fH=(0,w.memo)(function(e){var t=e.width,n=e.height,r=e.xScale,i=e.yScale,o=e.xValues,a=e.yValues,s=(0,w.useMemo)(function(){return!!r&&fj({width:t,height:n,scale:r,axis:"x",values:o})},[r,o,t,n]),l=(0,w.useMemo)(function(){return!!i&&fj({width:t,height:n,scale:i,axis:"y",values:a})},[n,t,i,a]);return(0,b.jsxs)(b.Fragment,{children:[s&&(0,b.jsx)(fz,{lines:s}),l&&(0,b.jsx)(fz,{lines:l})]})}),fV=function(e,t){var n,r=t.axis,i=t.scale,o=t.x,a=t.y,s=t.length,l=t.ticksPosition,u=t.tickValues,c=t.tickSize,d=t.tickPadding,f=t.tickRotation,h=void 0===f?0:f,p=t.format,m=t.legend,g=t.legendPosition,v=void 0===g?"end":g,y=t.legendOffset,b=void 0===y?0:y,w=t.theme,_=fP({axis:r,scale:i,ticksPosition:l,tickValues:u,tickSize:void 0===c?5:c,tickPadding:void 0===d?5:d,tickRotation:h,engine:"canvas"}),x=_.ticks,D=_.textAlign,E=_.textBaseline;e.save(),e.translate(void 0===o?0:o,void 0===a?0:a),e.textAlign=D,e.textBaseline=E,e.font=(w.axis.ticks.text.fontWeight?w.axis.ticks.text.fontWeight+" ":"")+w.axis.ticks.text.fontSize+"px "+w.axis.ticks.text.fontFamily,(null!=(n=w.axis.domain.line.strokeWidth)?n:0)>0&&(e.lineWidth=Number(w.axis.domain.line.strokeWidth),e.lineCap="square",w.axis.domain.line.stroke&&(e.strokeStyle=w.axis.domain.line.stroke),e.beginPath(),e.moveTo(0,0),e.lineTo("x"===r?s:0,"x"===r?0:s),e.stroke());var C="function"==typeof p?p:function(e){return""+e};if(x.forEach(function(t){(null!=(n=w.axis.ticks.line.strokeWidth)?n:0)>0&&(e.lineWidth=Number(w.axis.ticks.line.strokeWidth),e.lineCap="square",w.axis.ticks.line.stroke&&(e.strokeStyle=w.axis.ticks.line.stroke),e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(t.x+t.lineX,t.y+t.lineY),e.stroke());var n,r=C(t.value);e.save(),e.translate(t.x+t.textX,t.y+t.textY),e.rotate(ca(h)),w.axis.ticks.text.fill&&(e.fillStyle=w.axis.ticks.text.fill),e.fillText(String(r),0,0),e.restore()}),void 0!==m){var k=0,S=0,T=0,M="center";"y"===r?(T=-90,k=b,"start"===v?(M="start",S=s):"middle"===v?(M="center",S=s/2):"end"===v&&(M="end")):(S=b,"start"===v?M="start":"middle"===v?(M="center",k=s/2):"end"===v&&(M="end",k=s)),e.translate(k,S),e.rotate(ca(T)),e.font=(w.axis.legend.text.fontWeight?w.axis.legend.text.fontWeight+" ":"")+w.axis.legend.text.fontSize+"px "+w.axis.legend.text.fontFamily,w.axis.legend.text.fill&&(e.fillStyle=w.axis.legend.text.fill),e.textAlign=M,e.textBaseline="middle",e.fillText(m,0,0)}e.restore()},fq=function(e,t){var n=t.xScale,r=t.yScale,i=t.width,o=t.height,a=t.top,s=t.right,l=t.bottom,u=t.left,c=t.theme,d={top:a,right:s,bottom:l,left:u};fI.forEach(function(t){var a=d[t];if(!a)return null;var s="top"===t||"bottom"===t,l=s?n:r,u=fR(a.format,l);fV(e,fO({},a,{axis:s?"x":"y",x:"right"===t?i:0,y:"bottom"===t?o:0,scale:l,format:u,length:s?i:o,ticksPosition:"top"===t||"left"===t?"before":"after",theme:c}))})},fW=function(e,t){fj({width:t.width,height:t.height,scale:t.scale,axis:t.axis,values:t.values}).forEach(function(t){e.beginPath(),e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2),e.stroke()})};function f$(){return(f$=Object.assign||function(e){for(var t=1;t1e-6){if(Math.abs(c*s-l*u)>1e-6&&i){var f=n-o,h=r-a,p=s*s+l*l,m=Math.sqrt(p),g=Math.sqrt(d),v=i*Math.tan((f4-Math.acos((p+d-(f*f+h*h))/(2*m*g)))/2),y=v/g,b=v/m;Math.abs(y-1)>1e-6&&(this._+="L"+(e+y*u)+","+(t+y*c)),this._+="A"+i+","+i+",0,0,"+ +(c*f>u*h)+","+(this._x1=e+b*s)+","+(this._y1=t+b*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,n,r,i,o){e=+e,t=+t,n=+n,o=!!o;var a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^o,d=o?r-i:i-r;if(n<0)throw Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%f6+f6),d>f5?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=f4)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};let hr=new Uint32Array(512);class hi{static from(e,t=hc,n=hd){let r=e.length,i=new Float64Array(2*r);for(let o=0;o>1;if(t>0&&"number"!=typeof e[0])throw Error("Expected coords to contain numbers.");this.coords=e;let n=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()}update(){let e,t,n;let{coords:r,_hullPrev:i,_hullNext:o,_hullTri:a,_hullHash:s}=this,l=r.length>>1,u=1/0,c=1/0,d=-1/0,f=-1/0;for(let e=0;ed&&(d=t),n>f&&(f=n),this._ids[e]=e}let h=(u+d)/2,p=(c+f)/2,m=1/0;for(let t=0;t0&&(t=n,m=i)}let y=r[2*t],b=r[2*t+1],w=1/0;for(let i=0;ir&&(e[t++]=i,r=this._dists[i])}this.hull=e.subarray(0,t),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(hs(g,v,y,b,_,x)){let e=t,r=y,i=b;t=n,y=_,b=x,n=e,_=r,x=i}let D=function(e,t,n,r,i,o){let a=n-e,s=r-t,l=i-e,u=o-t,c=a*a+s*s,d=l*l+u*u,f=.5/(a*u-s*l);return{x:e+(u*c-s*d)*f,y:t+(a*d-l*c)*f}}(g,v,y,b,_,x);this._cx=D.x,this._cy=D.y;for(let e=0;e0&&2220446049250313e-31>=Math.abs(f-u)&&2220446049250313e-31>=Math.abs(h-c)||(u=f,c=h,d===e||d===t||d===n))continue;let p=0;for(let e=0,t=this._hashKey(f,h);e0?3-n:1+n)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){let{_triangles:t,_halfedges:n,coords:r}=this,i=0,o=0;for(;;){let a=n[e],s=e-e%3;if(o=s+(e+2)%3,-1===a){if(0===i)break;e=hr[--i];continue}let l=a-a%3,u=s+(e+1)%3,c=l+(a+2)%3,d=t[o],f=t[e],h=t[u],p=t[c];if(function(e,t,n,r,i,o,a,s){let l=e-a,u=t-s,c=n-a,d=r-s,f=i-a,h=o-s,p=c*c+d*d,m=f*f+h*h;return l*(d*m-p*h)-u*(c*m-p*f)+(l*l+u*u)*(c*h-d*f)<0}(r[2*d],r[2*d+1],r[2*f],r[2*f+1],r[2*h],r[2*h+1],r[2*p],r[2*p+1])){t[e]=p,t[a]=d;let r=n[c];if(-1===r){let t=this._hullStart;do{if(this._hullTri[t]===c){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,r),this._link(a,n[o]),this._link(o,c);let s=l+(a+1)%3;i=33306690738754716e-32*Math.abs(a+s)?a-s:0}function hs(e,t,n,r,i,o){return 0>(ha(i,o,e,t,n,r)||ha(e,t,n,r,i,o)||ha(n,r,i,o,e,t))}function hl(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){let r=e[i],o=t[r],a=i-1;for(;a>=n&&t[e[a]]>o;)e[a+1]=e[a--];e[a+1]=r}else{let i=n+r>>1,o=n+1,a=r;hu(e,i,o),t[e[n]]>t[e[r]]&&hu(e,n,r),t[e[o]]>t[e[r]]&&hu(e,o,r),t[e[n]]>t[e[o]]&&hu(e,n,o);let s=e[o],l=t[s];for(;;){do o++;while(t[e[o]]l);if(a=a-n?(hl(e,t,o,r),hl(e,t,n,a-1)):(hl(e,t,n,a-1),hl(e,t,o,r))}}function hu(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function hc(e){return e[0]}function hd(e){return e[1]}class hf{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,t){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,t){this._+=`L${this._x1=+e},${this._y1=+t}`}arc(e,t,n){e=+e,t=+t;let r=e+(n=+n),i=t;if(n<0)throw Error("negative radius");null===this._x1?this._+=`M${r},${i}`:(Math.abs(this._x1-r)>1e-6||Math.abs(this._y1-i)>1e-6)&&(this._+="L"+r+","+i),n&&(this._+=`A${n},${n},0,1,1,${e-n},${t}A${n},${n},0,1,1,${this._x1=r},${this._y1=i}`)}rect(e,t,n,r){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${+n}v${+r}h${-n}Z`}value(){return this._||null}}class hh{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}}class hp{constructor(e,[t,n,r,i]=[0,0,960,500]){if(!((r=+r)>=(t=+t))||!((i=+i)>=(n=+n)))throw Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=r,this.xmin=t,this.ymax=i,this.ymin=n,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){let{delaunay:{points:e,hull:t,triangles:n},vectors:r}=this,i=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let t=0,r=0,o=n.length,a,s;tMath.abs(x))a=(c+p)/2,s=(d+m)/2;else{let e=1/x;a=c+(b*w-v*_)*e,s=d+(g*_-y*w)*e}}else a=(c+p)/2-1e8*b,s=(d+m)/2+1e8*y;i[r]=a,i[r+1]=s}let o=t[t.length-1],a,s=4*o,l,u=e[2*o],c,d=e[2*o+1];r.fill(0);for(let n=0;n1;)i-=2;for(let e=2;e4)for(let e=0;e0){if(t>=this.ymax)return null;(o=(this.ymax-t)/r)0){if(e>=this.xmax)return null;(o=(this.xmax-e)/n)this.xmax?2:0)|(tthis.ymax?8:0)}}let hm=2*Math.PI,hg=Math.pow;function hv(e){return e[0]}function hy(e){return e[1]}class hb{static from(e,t=hv,n=hy,r){return new hb("length"in e?function(e,t,n,r){let i=e.length,o=new Float64Array(2*i);for(let a=0;a2&&function(e){let{triangles:t,coords:n}=e;for(let e=0;e1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:t.length/2},(e,t)=>t).sort((e,n)=>t[2*e]-t[2*n]||t[2*e+1]-t[2*n+1]);let e=this.collinear[0],i=this.collinear[this.collinear.length-1],o=[t[2*e],t[2*e+1],t[2*i],t[2*i+1]],a=1e-8*Math.hypot(o[3]-o[1],o[2]-o[0]);for(let e=0,i=t.length/2;e0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],this.triangles[1]=o[1],this.triangles[2]=o[1],s[o[0]]=1,2===o.length&&(s[o[1]]=0))}voronoi(e){return new hp(this,e)}*neighbors(e){let{inedges:t,hull:n,_hullIndex:r,halfedges:i,triangles:o,collinear:a}=this;if(a){let t=a.indexOf(e);t>0&&(yield a[t-1]),t=0&&r!==n&&r!==i;)n=r;return r}_step(e,t,n){let{inedges:r,hull:i,_hullIndex:o,halfedges:a,triangles:s,points:l}=this;if(-1===r[e]||!l.length)return(e+1)%(l.length>>1);let u=e,c=hg(t-l[2*e],2)+hg(n-l[2*e+1],2),d=r[e],f=d;do{let r=s[f],d=hg(t-l[2*r],2)+hg(n-l[2*r+1],2);if(d=c;--d)s.point(g[d],v[d]);s.lineEnd(),s.areaEnd()}}m&&(g[u]=+e(f,u,l),v[u]=+n(f,u,l),s.point(t?+t(f,u,l):g[u],r?+r(f,u,l):v[u]))}if(h)return s=null,h+""||null}function u(){return hn().defined(i).curve(a).context(o)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:f9(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:f9(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:f9(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:f9(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:f9(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:f9(+e),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:f9(!!e),l):i},l.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),l):a},l.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),l):o},l})().defined(function(e){return null!==e.x&&null!==e.y}).x(function(e){return e.x}).y1(function(e){return e.y}).curve(uK(t)).y0(n(r))},[t,n,r])},hU=function(e){var t=e.enableSlices,n=e.points,r=e.width,i=e.height;return(0,w.useMemo)(function(){if(!1===t)return[];if("x"===t){var e=new Map;return n.forEach(function(t){null!==t.data.x&&null!==t.data.y&&(e.has(t.x)?e.get(t.x).push(t):e.set(t.x,[t]))}),Array.from(e.entries()).sort(function(e,t){return e[0]-t[0]}).map(function(e,t,n){var o,a=e[0],s=e[1],l=n[t-1],u=n[t+1];return{id:a,x0:o=l?a-(a-l[0])/2:a,x:a,y0:0,y:0,width:u?a-o+(u[0]-a)/2:r-o,height:i,points:s.reverse()}})}if("y"===t){var o=new Map;return n.forEach(function(e){null!==e.data.x&&null!==e.data.y&&(o.has(e.y)?o.get(e.y).push(e):o.set(e.y,[e]))}),Array.from(o.entries()).sort(function(e,t){return e[0]-t[0]}).map(function(e,t,n){var o,a,s=e[0],l=e[1],u=n[t-1],c=n[t+1];return o=u?s-(s-u[0])/2:s,a=c?s-o+(c[0]-s)/2:i-o,{id:s,x0:0,x:0,y0:o,y:s,width:r,height:a,points:l.reverse()}})}},[t,n])},hz=function(e){var t,n,r,i,o,a,s=e.data,l=e.xScale,u=void 0===l?hA.xScale:l,c=e.xFormat,d=e.yScale,f=void 0===d?hA.yScale:d,h=e.yFormat,p=e.width,m=e.height,g=e.colors,v=void 0===g?hA.colors:g,y=e.curve,b=void 0===y?hA.curve:y,_=e.areaBaselineValue,x=void 0===_?hA.areaBaselineValue:_,D=e.pointColor,E=void 0===D?hA.pointColor:D,C=e.pointBorderColor,k=void 0===C?hA.pointBorderColor:C,S=e.enableSlices,T=void 0===S?hA.enableSlicesTooltip:S,M=u3(c),O=u3(h),P=(0,w.useMemo)(function(){return cW(v,"id")},[v,"id"]),R=u8(),j=cV(E,R),L=cV(k,R),F=(0,w.useState)([]),A=F[0],N=F[1],I=(0,w.useMemo)(function(){return fw(s.filter(function(e){return -1===A.indexOf(e.id)}),u,f,p,m)},[s,A,u,f,p,m]),B=I.xScale,U=I.yScale,z=I.series,H=(0,w.useMemo)(function(){var e=s.map(function(e){return{id:e.id,label:e.id,color:P(e)}}),t=e.map(function(e){return hS({},z.find(function(t){return t.id===e.id}),{color:e.color})}).filter(function(e){return!!e.id});return{legendData:e.map(function(e){return hS({},e,{hidden:!t.find(function(t){return t.id===e.id})})}).reverse(),series:t}},[s,z,P]),V=H.legendData,q=H.series,W=(0,w.useCallback)(function(e){N(function(t){return t.indexOf(e)>-1?t.filter(function(t){return t!==e}):[].concat(t,[e])})},[]),$=(n=(t={series:q,getPointColor:j,getPointBorderColor:L,formatX:M,formatY:O}).series,r=t.getPointColor,i=t.getPointBorderColor,o=t.formatX,a=t.formatY,(0,w.useMemo)(function(){return n.reduce(function(e,t){return[].concat(e,t.data.filter(function(e){return null!==e.position.x&&null!==e.position.y}).map(function(n,s){var l={id:t.id+"."+s,index:e.length+s,serieId:t.id,serieColor:t.color,x:n.position.x,y:n.position.y};return l.color=r(t),l.borderColor=i(l),l.data=hS({},n.data,{xFormatted:o(n.data.x),yFormatted:a(n.data.y)}),l}))},[])},[n,r,i,o,a])),Y=hU({enableSlices:T,points:$,width:p,height:m});return{legendData:V,toggleSerie:W,lineGenerator:hI({curve:b}),areaGenerator:hB({curve:b,yScale:U,areaBaselineValue:x}),getColor:P,series:q,xScale:B,yScale:U,slices:Y,points:$}},hH=function(e){var t=e.areaBlendMode,n=e.areaOpacity,r=e.color,i=e.fill,o=e.path,a=uq(),s=a.animate,l=a.config,u=uW(o),c=ig({color:r,config:l,immediate:!s});return(0,b.jsx)(iU.path,{d:u,fill:i||c.color,fillOpacity:n,strokeWidth:0,style:{mixBlendMode:t}})};hH.propTypes={areaBlendMode:uQ.isRequired,areaOpacity:tL().number.isRequired,color:tL().string,fill:tL().string,path:tL().string.isRequired};var hV=function(e){var t=e.areaGenerator,n=e.areaOpacity,r=e.areaBlendMode,i=e.lines.slice(0).reverse();return(0,b.jsx)("g",{children:i.map(function(e){return(0,b.jsx)(hH,hS({path:t(e.data.map(function(e){return e.position}))},hS({areaOpacity:n,areaBlendMode:r},e)),e.id)})})};hV.propTypes={areaGenerator:tL().func.isRequired,areaOpacity:tL().number.isRequired,areaBlendMode:uQ.isRequired,lines:tL().arrayOf(tL().object).isRequired};var hq=(0,w.memo)(hV),hW=function(e){var t=e.lineGenerator,n=e.points,r=e.color,i=e.thickness,o=uW((0,w.useMemo)(function(){return t(n)},[t,n]));return(0,b.jsx)(iU.path,{d:o,fill:"none",strokeWidth:i,stroke:r})};hW.propTypes={points:tL().arrayOf(tL().shape({x:tL().oneOfType([tL().string,tL().number]),y:tL().oneOfType([tL().string,tL().number])})),lineGenerator:tL().func.isRequired,color:tL().string.isRequired,thickness:tL().number.isRequired};var h$=(0,w.memo)(hW),hY=function(e){var t=e.lines,n=e.lineGenerator,r=e.lineWidth;return t.slice(0).reverse().map(function(e){var t=e.id,i=e.data,o=e.color;return(0,b.jsx)(h$,{id:t,points:i.map(function(e){return e.position}),lineGenerator:n,color:o,thickness:r},t)})};hY.propTypes={lines:tL().arrayOf(tL().shape({id:tL().oneOfType([tL().string,tL().number]).isRequired,color:tL().string.isRequired,data:tL().arrayOf(tL().shape({data:tL().shape({x:tL().oneOfType([tL().string,tL().number,tL().instanceOf(Date)]),y:tL().oneOfType([tL().string,tL().number,tL().instanceOf(Date)])}).isRequired,position:tL().shape({x:tL().number,y:tL().number}).isRequired})).isRequired})).isRequired,lineWidth:tL().number.isRequired,lineGenerator:tL().func.isRequired};var hZ=(0,w.memo)(hY),hG=function(e){var t=e.slice,n=e.axis,r=e.debug,i=e.tooltip,o=e.isCurrent,a=e.setCurrent,s=i1(),l=s.showTooltipFromEvent,u=s.hideTooltip,c=(0,w.useCallback)(function(e){l((0,w.createElement)(i,{slice:t,axis:n}),e,"right"),a(t)},[l,i,t]),d=(0,w.useCallback)(function(e){l((0,w.createElement)(i,{slice:t,axis:n}),e,"right")},[l,i,t]),f=(0,w.useCallback)(function(){u(),a(null)},[u]);return(0,b.jsx)("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:r?1:0,strokeOpacity:.75,fill:"red",fillOpacity:o&&r?.35:0,onMouseEnter:c,onMouseMove:d,onMouseLeave:f})};hG.propTypes={slice:tL().object.isRequired,axis:tL().oneOf(["x","y"]).isRequired,debug:tL().bool.isRequired,height:tL().number.isRequired,tooltip:tL().oneOfType([tL().func,tL().object]),isCurrent:tL().bool.isRequired,setCurrent:tL().func.isRequired};var hJ=(0,w.memo)(hG),hK=function(e){var t=e.slices,n=e.axis,r=e.debug,i=e.height,o=e.tooltip,a=e.current,s=e.setCurrent;return t.map(function(e){return(0,b.jsx)(hJ,{slice:e,axis:n,debug:r,height:i,tooltip:o,setCurrent:s,isCurrent:null!==a&&a.id===e.id},e.id)})};hK.propTypes={slices:tL().arrayOf(tL().shape({id:tL().oneOfType([tL().number,tL().string,tL().instanceOf(Date)]).isRequired,x:tL().number.isRequired,y:tL().number.isRequired,points:tL().arrayOf(tL().object).isRequired})).isRequired,axis:tL().oneOf(["x","y"]).isRequired,debug:tL().bool.isRequired,height:tL().number.isRequired,tooltip:tL().oneOfType([tL().func,tL().object]).isRequired,current:tL().object,setCurrent:tL().func.isRequired};var hX=(0,w.memo)(hK),hQ=function(e){var t=e.points,n=e.symbol,r=e.size,i=e.borderWidth,o=e.enableLabel,a=e.label,s=e.labelYOffset,l=u8(),u=ck(a),c=t.slice(0).reverse().map(function(e){return{id:e.id,x:e.x,y:e.y,datum:e.data,fill:e.color,stroke:e.borderColor,label:o?u(e.data):null}});return(0,b.jsx)("g",{children:c.map(function(e){return(0,b.jsx)(cb,{x:e.x,y:e.y,datum:e.datum,symbol:n,size:r,color:e.fill,borderWidth:i,borderColor:e.stroke,label:e.label,labelYOffset:s,theme:l},e.id)})})};hQ.propTypes={points:tL().arrayOf(tL().object),symbol:tL().func,size:tL().number.isRequired,color:tL().func.isRequired,borderWidth:tL().number.isRequired,borderColor:tL().func.isRequired,enableLabel:tL().bool.isRequired,label:tL().oneOfType([tL().string,tL().func]).isRequired,labelYOffset:tL().number};var h0=(0,w.memo)(hQ),h1=function(e){var t=e.points,n=e.width,r=e.height,i=e.margin,o=e.setCurrent,a=e.onMouseEnter,s=e.onMouseMove,l=e.onMouseLeave,u=e.onClick,c=e.tooltip,d=e.debug,f=i1(),h=f.showTooltipAt,p=f.hideTooltip,m=(0,w.useCallback)(function(e,t){h((0,w.createElement)(c,{point:e}),[e.x+i.left,e.y+i.top],"top"),o(e),a&&a(e,t)},[o,h,c,a,i]),g=(0,w.useCallback)(function(e,t){h((0,w.createElement)(c,{point:e}),[e.x+i.left,e.y+i.top],"top"),o(e),s&&s(e,t)},[o,h,c,s]),v=(0,w.useCallback)(function(e,t){p(),o(null),l&&l(e,t)},[p,o,l]),y=(0,w.useCallback)(function(e,t){u&&u(e,t)},[u]);return(0,b.jsx)(hE,{nodes:t,width:n,height:r,onMouseEnter:m,onMouseMove:g,onMouseLeave:v,onClick:y,debug:d})};h1.propTypes={points:tL().arrayOf(tL().object).isRequired,width:tL().number.isRequired,height:tL().number.isRequired,margin:tL().object.isRequired,setCurrent:tL().func.isRequired,onMouseEnter:tL().func,onMouseMove:tL().func,onMouseLeave:tL().func,onClick:tL().func,tooltip:tL().oneOfType([tL().func,tL().object]).isRequired,debug:tL().bool.isRequired};var h2=(0,w.memo)(h1),h3=function(e){var t=e.data,n=e.xScale,r=e.xFormat,i=e.yScale,o=e.yFormat,a=e.layers,s=e.curve,l=e.areaBaselineValue,u=e.colors,c=e.margin,d=e.width,f=e.height,h=e.axisTop,p=e.axisRight,m=e.axisBottom,g=e.axisLeft,v=e.enableGridX,y=e.enableGridY,_=e.gridXValues,x=e.gridYValues,D=e.lineWidth,E=e.enableArea,C=e.areaOpacity,k=e.areaBlendMode,S=e.enablePoints,T=e.pointSymbol,M=e.pointSize,O=e.pointColor,P=e.pointBorderWidth,R=e.pointBorderColor,j=e.enablePointLabel,L=e.pointLabel,F=e.pointLabelYOffset,A=e.defs,N=e.fill,I=e.markers,B=e.legends,U=e.isInteractive,z=e.useMesh,H=e.debugMesh,V=e.onMouseEnter,q=e.onMouseMove,W=e.onMouseLeave,$=e.onClick,Y=e.tooltip,Z=e.enableSlices,G=e.debugSlices,J=e.sliceTooltip,K=e.enableCrosshair,X=e.crosshairType,Q=e.role,ee=u1(d,f,c),et=ee.margin,en=ee.innerWidth,er=ee.innerHeight,ei=ee.outerWidth,eo=ee.outerHeight,ea=hz({data:t,xScale:n,xFormat:r,yScale:i,yFormat:o,width:en,height:er,colors:u,curve:s,areaBaselineValue:l,pointColor:O,pointBorderColor:R,enableSlices:Z}),es=ea.legendData,el=ea.toggleSerie,eu=ea.lineGenerator,ec=ea.areaGenerator,ed=ea.series,ef=ea.xScale,eh=ea.yScale,ep=ea.slices,em=ea.points,eg=u8(),ev=cV(O,eg),ey=cV(R,eg),eb=(0,w.useState)(null),ew=eb[0],e_=eb[1],ex=(0,w.useState)(null),eD=ex[0],eE=ex[1],eC={grid:(0,b.jsx)(fH,{theme:eg,width:en,height:er,xScale:v?ef:null,yScale:y?eh:null,xValues:_,yValues:x},"grid"),markers:(0,b.jsx)(cD,{markers:I,width:en,height:er,xScale:ef,yScale:eh,theme:eg},"markers"),axes:(0,b.jsx)(fB,{xScale:ef,yScale:eh,width:en,height:er,theme:eg,top:h,right:p,bottom:m,left:g},"axes"),areas:null,lines:(0,b.jsx)(hZ,{lines:ed,lineGenerator:eu,lineWidth:D},"lines"),slices:null,points:null,crosshair:null,mesh:null,legends:B.map(function(e,t){return(0,b.jsx)(f0,hS({},e,{containerWidth:en,containerHeight:er,data:e.data||es,theme:eg,toggleSerie:e.toggleSerie?el:void 0}),"legend."+t)})},ek=cP(A,ed,N);return E&&(eC.areas=(0,b.jsx)(hq,{areaGenerator:ec,areaOpacity:C,areaBlendMode:k,lines:ed},"areas")),U&&!1!==Z&&(eC.slices=(0,b.jsx)(hX,{slices:ep,axis:Z,debug:G,height:er,tooltip:J,current:eD,setCurrent:eE},"slices")),S&&(eC.points=(0,b.jsx)(h0,{points:em,symbol:T,size:M,color:ev,borderWidth:P,borderColor:ey,enableLabel:j,label:L,labelYOffset:F},"points")),U&&K&&(null!==ew&&(eC.crosshair=(0,b.jsx)(iJ,{width:en,height:er,x:ew.x,y:ew.y,type:X},"crosshair")),null!==eD&&(eC.crosshair=(0,b.jsx)(iJ,{width:en,height:er,x:eD.x,y:eD.y,type:Z},"crosshair"))),U&&z&&!1===Z&&(eC.mesh=(0,b.jsx)(h2,{points:em,width:en,height:er,margin:et,current:ew,setCurrent:e_,onMouseEnter:V,onMouseMove:q,onMouseLeave:W,onClick:$,tooltip:Y,debug:H},"mesh")),(0,b.jsx)(cm,{defs:ek,width:ei,height:eo,margin:et,role:Q,children:a.map(function(t,n){return"function"==typeof t?(0,b.jsx)(w.Fragment,{children:t(hS({},e,{innerWidth:en,innerHeight:er,series:ed,slices:ep,points:em,xScale:ef,yScale:eh,lineGenerator:eu,areaGenerator:ec,currentPoint:ew,setCurrentPoint:e_,currentSlice:eD,setCurrentSlice:eE}))},n):eC[t]})})};h3.propTypes=hj,h3.defaultProps=hA,cC(h3);var h4=function(e){var t=e.width,n=e.height,r=e.margin,i=e.pixelRatio,o=e.data,a=e.xScale,s=e.xFormat,l=e.yScale,u=e.yFormat,c=e.curve,d=e.layers,f=e.colors,h=e.lineWidth,p=e.enableArea,m=e.areaBaselineValue,g=e.areaOpacity,v=e.enablePoints,y=e.pointSize,_=e.pointColor,x=e.pointBorderWidth,D=e.pointBorderColor,E=e.enableGridX,C=e.gridXValues,k=e.enableGridY,S=e.gridYValues,T=e.axisTop,M=e.axisRight,O=e.axisBottom,P=e.axisLeft,R=e.legends,j=e.isInteractive,L=e.debugMesh,F=e.onMouseLeave,A=e.onClick,N=e.tooltip,I=e.canvasRef,B=(0,w.useRef)(null),U=u1(t,n,r),z=U.margin,H=U.innerWidth,V=U.innerHeight,q=U.outerWidth,W=U.outerHeight,$=u8(),Y=(0,w.useState)(null),Z=Y[0],G=Y[1],J=hz({data:o,xScale:a,xFormat:s,yScale:l,yFormat:u,width:H,height:V,colors:f,curve:c,areaBaselineValue:m,pointColor:_,pointBorderColor:D}),K=J.lineGenerator,X=J.areaGenerator,Q=J.series,ee=J.xScale,et=J.yScale,en=J.points,er=hD({points:en,width:H,height:V,debug:L}),ei=er.delaunay,eo=er.voronoi;(0,w.useEffect)(function(){I&&(I.current=B.current),B.current.width=q*i,B.current.height=W*i;var e=B.current.getContext("2d");e.scale(i,i),e.fillStyle=$.background,e.fillRect(0,0,q,W),e.translate(z.left,z.top),d.forEach(function(t){if("function"==typeof t&&t({ctx:e,innerWidth:H,innerHeight:V,series:Q,points:en,xScale:ee,yScale:et,lineWidth:h,lineGenerator:K,areaGenerator:X,currentPoint:Z,setCurrentPoint:G}),"grid"===t&&$.grid.line.strokeWidth>0&&(e.lineWidth=$.grid.line.strokeWidth,e.strokeStyle=$.grid.line.stroke,E&&fW(e,{width:H,height:V,scale:ee,axis:"x",values:C}),k&&fW(e,{width:H,height:V,scale:et,axis:"y",values:S})),"axes"===t&&fq(e,{xScale:ee,yScale:et,width:H,height:V,top:T,right:M,bottom:O,left:P,theme:$}),"areas"===t&&!0===p&&(e.save(),e.globalAlpha=g,X.context(e),Q.forEach(function(t){e.fillStyle=t.color,e.beginPath(),X(t.data.map(function(e){return e.position})),e.fill()}),e.restore()),"lines"===t&&(K.context(e),Q.forEach(function(t){e.strokeStyle=t.color,e.lineWidth=h,e.beginPath(),K(t.data.map(function(e){return e.position})),e.stroke()})),"points"===t&&!0===v&&y>0&&en.forEach(function(t){e.fillStyle=t.color,e.beginPath(),e.arc(t.x,t.y,y/2,0,2*Math.PI),e.fill(),x>0&&(e.strokeStyle=t.borderColor,e.lineWidth=x,e.stroke())}),"mesh"===t&&!0===L&&(hC(e,eo),Z&&hk(e,eo,Z.index)),"legends"===t){var n=Q.map(function(e){return{id:e.id,label:e.id,color:e.color}}).reverse();R.forEach(function(t){f2(e,hS({},t,{data:t.data||n,containerWidth:H,containerHeight:V,theme:$}))})}})},[B,q,W,d,$,K,Q,ee,et,E,C,k,S,T,M,O,P,R,en,v,y,Z]);var ea=(0,w.useCallback)(function(e){var t,n,r=cS(B.current,e),i=r[0],o=r[1];return(t=z.left,n=z.top,t<=i&&i<=t+H&&n<=o&&o<=n+V)?en[ei.find(i-z.left,o-z.top)]:null},[B,z,H,V,ei]),es=i1(),el=es.showTooltipFromEvent,eu=es.hideTooltip,ec=(0,w.useCallback)(function(e){var t=ea(e);G(t),t?el((0,w.createElement)(N,{point:t}),e):eu()},[ea,G,el,eu,N]),ed=(0,w.useCallback)(function(e){eu(),G(null),Z&&F&&F(Z,e)},[eu,G,F]),ef=(0,w.useCallback)(function(e){if(A){var t=ea(e);t&&A(t,e)}},[ea,A]);return(0,b.jsx)("canvas",{ref:B,width:q*i,height:W*i,style:{width:q,height:W,cursor:j?"auto":"normal"},onMouseEnter:j?ec:void 0,onMouseMove:j?ec:void 0,onMouseLeave:j?ed:void 0,onClick:j?ef:void 0})};h4.propTypes=hL,h4.defaultProps=hN;var h6=cC(h4),h5=(0,w.forwardRef)(function(e,t){return(0,b.jsx)(h6,hS({},e,{canvasRef:t}))});(0,w.forwardRef)(function(e,t){return(0,b.jsx)(ct,{children:function(n){var r=n.width,i=n.height;return(0,b.jsx)(h5,hS({width:r,height:i},e,{ref:t}))}})});let h8=({participant:e,trackType:t="audioTrack",...n})=>{let r=ec(),[i,o]=(0,w.useState)(null),{userId:a,sessionId:s}=e;return(0,w.useEffect)(()=>{if(!r||!i)return;let e=r.bindAudioElement(i,s,t);return()=>{e?.()}},[r,s,i,t]),(0,b.jsx)("audio",{autoPlay:!0,...n,ref:o,"data-user-id":a,"data-session-id":s,"data-track-type":t})},h7=e=>{let{participants:t,audioProps:n}=e;return(0,b.jsx)(b.Fragment,{children:t.map(e=>{if(e.isLocalParticipant)return null;let t=e.publishedTracks.includes(y.Jq.TrackType.AUDIO),r=e.publishedTracks.includes(y.Jq.TrackType.SCREEN_SHARE_AUDIO);return t&&e.audioStream?(0,w.createElement)(h8,{...n,trackType:"audioTrack",participant:e,key:e.sessionId}):r&&e.screenShareAudioStream?(0,w.createElement)(h8,{...n,trackType:"screenShareAudioTrack",participant:e,key:e.sessionId}):null})})},h9=e=>null!==e&&!(0,w.isValidElement)(e),pe=(e,t)=>Array.from({length:Math.ceil(e.length/t)},(n,r)=>e.slice(t*r,t*r+t)),pt=(e,t)=>{if(e){if("function"==typeof e)return e(t);e.current=t}};(0,w.forwardRef)(({stream:e,...t},n)=>{let[r,i]=(0,w.useState)(null);return(0,w.useEffect)(()=>{if(r&&e&&e!==r.srcObject)return r.srcObject=e,(y.sy.isSafari()||y.sy.isFirefox())&&setTimeout(()=>{r.srcObject=e,r.play().catch(e=>{console.error("Failed to play stream",e)})},0),()=>{r.pause(),r.srcObject=null}},[e,r]),(0,b.jsx)("video",{autoPlay:!0,playsInline:!0,...t,ref:e=>{pt(n,e),i(e)}})});let pn=(0,w.forwardRef)(({participant:e,style:t},n)=>{let[r,i]=(0,w.useState)(!1),o=e.name||e.userId;return(0,b.jsxs)("div",{className:"str-video__video-placeholder",style:t,ref:n,children:[(!e.image||r)&&(o?(0,b.jsx)("div",{className:"str-video__video-placeholder__initials-fallback",children:(0,b.jsx)("div",{children:o[0]})}):(0,b.jsx)("div",{children:"Video is disabled"})),e.image&&!r&&(0,b.jsx)("img",{onError:()=>i(!0),alt:"video-placeholder",className:"str-video__video-placeholder__avatar",src:e.image})]})}),pr=({trackType:e,participant:t,className:n,VideoPlaceholder:r=pn,refs:i,...o})=>{let{sessionId:a,videoStream:s,screenShareStream:l,publishedTracks:u,viewportVisibilityState:c,isLocalParticipant:d,userId:f}=t,h=ec(),[p,m]=(0,w.useState)(null),[g,v]=(0,w.useState)(!0),[_,x]=(0,w.useState)(!0),D="videoTrack"===e?s:"screenShareTrack"===e?l:void 0;if((0,w.useLayoutEffect)(()=>{if(!h||!p||"none"===e)return;let t=h.bindVideoElement(p,a,e);return()=>{t?.()}},[h,e,a,p]),(0,w.useEffect)(()=>{if(!D||!p)return;let[e]=D.getVideoTracks();if(!e)return;let t=()=>{v(p.paused);let{width:t=0,height:n=0}=e.getSettings();x(t>=n)};return v(p.paused),p.addEventListener("play",t),p.addEventListener("pause",t),e.addEventListener("unmute",t),()=>{p.removeEventListener("play",t),p.removeEventListener("pause",t),e.removeEventListener("unmute",t),v(!0)}},[D,p]),!h)return null;let E="videoTrack"===e?u.includes(y.Jq.TrackType.VIDEO):"screenShareTrack"===e&&u.includes(y.Jq.TrackType.SCREEN_SHARE),C="none"===e||c?.[e]===y.Bl.INVISIBLE,k=!E||C,S=d&&"videoTrack"===e,T="screenShareTrack"===e;return(0,b.jsxs)(b.Fragment,{children:[!k&&(0,b.jsx)("video",{...o,className:(0,eR.Z)(n,"str-video__video",{"str-video__video--not-playing":g,"str-video__video--tall":!_,"str-video__video--mirror":S,"str-video__video--screen-share":T}),"data-user-id":f,"data-session-id":a,ref:e=>{m(e),i?.setVideoElement?.(e)}}),(k||g)&&(0,b.jsx)(r,{style:{position:"absolute"},participant:t,ref:i?.setVideoPlaceholderElement})]})},pi=e=>{let[t,n]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{let t;let r=e=>{let{state:t}=e.target;n("granted"===t)};return(async()=>{try{(t=await navigator.permissions.query({name:e})).addEventListener("change",r),n("granted"===t.state)}catch(e){n(!0)}})(),()=>{t?.removeEventListener("change",r)}},[e]),t},po=e=>{let[t,n]=(0,w.useState)([]);return(0,w.useEffect)(()=>{let t=e().subscribe(n);return()=>{t.unsubscribe()}},[e]),t},pa=()=>po(y._l),ps=()=>po(y.Ne),pl=(e,t,n,r)=>{(0,w.useEffect)(()=>{if(!e)return;let i=t.pipe().subscribe(e=>{e.find(e=>e.deviceId===r)||n()});return()=>{i.unsubscribe()}},[e,t,r,n])},pu=(e,t,n)=>pl(t,(0,y._l)(),e,n),pc=(e,t,n)=>pl(t,(0,y.Ne)(),e,n),pd=(e,t,n)=>pl(t,(0,y.HS)(),e,n),pf=({initialAudioMuted:e,audioDeviceId:t})=>{let n=ec(),{useCallState:r,useCallCallingState:i,useLocalParticipant:o}=eO(),a=r(),s=i(),l=o(),u=pi("microphone"),{localParticipant$:c}=a,d=l?.publishedTracks.includes(y.Jq.TrackType.AUDIO),f=(0,w.useCallback)(async()=>{if(n){if(!n.permissionsContext.hasPermission(y.PP.SEND_AUDIO))throw Error("No permission to publish audio");try{let e=await (0,y.NJ)({deviceId:t});await n.publishAudioStream(e)}catch(e){console.log("Failed to publish audio stream",e)}}},[t,n]),h=(0,w.useRef)(t);(0,w.useEffect)(()=>{s===y.Uq.JOINED&&t!==h.current&&(h.current=t,f().catch(e=>{console.error("Failed to publish audio stream",e)}))},[t,s,f]);let p=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{s!==y.Uq.JOINED||p.current||e||(f().catch(e=>{console.error("Failed to publish audio stream",e)}),p.current=!0)},[s,e,f]),(0,w.useEffect)(()=>{if(!c||!u)return;let e=(0,y.IH)(c.pipe((0,ej.U)(e=>e?.audioDeviceId))).subscribe(async()=>{n&&(n.setAudioDevice(void 0),await n.stopPublish(y.Jq.TrackType.AUDIO))});return()=>{e.unsubscribe()}},[u,c,n]),(0,w.useEffect)(()=>{if(!l?.audioStream||!n||!d)return;let[e]=l.audioStream.getAudioTracks(),r=e.getSettings().deviceId,i=(0,y.dP)().subscribe(async()=>{if(!(n&&l.audioStream&&"default"===r))return;e.stop();let t=await (0,y.NJ)({deviceId:"default"});await n.publishAudioStream(t)}),o=async()=>{if(r===t){let e=await (0,y.NJ)({deviceId:t});await n.publishAudioStream(e)}};return e.addEventListener("ended",o),()=>{e.removeEventListener("ended",o),i.unsubscribe()}},[t,n,l?.audioStream,d]),f},ph=()=>(0,w.useMemo)(()=>"undefined"==typeof window?null:new URLSearchParams(window.location.search),[]),pp=()=>{let e=ph();return!!e?.get("debug")},pm=()=>{let e=ph();return e?.get("video_codec")},pg=({initialVideoMuted:e,videoDeviceId:t})=>{let n=ec(),{useCallState:r,useCallCallingState:i,useLocalParticipant:o,useCallSettings:a}=eO(),s=r(),l=i(),u=o(),c=pi("camera"),{localParticipant$:d}=s,f=pm(),h=u?.publishedTracks.includes(y.Jq.TrackType.VIDEO),p=a(),m=p?.video,g=m?.target_resolution,v=(0,w.useCallback)(async()=>{if(n){if(!n.permissionsContext.hasPermission(y.PP.SEND_VIDEO))throw Error("No permission to publish video");try{let e=await (0,y.aG)({deviceId:t,width:g?.width,height:g?.height,facingMode:pv(m?.camera_facing)});await n.publishVideoStream(e,{preferredCodec:f})}catch(e){console.log("Failed to publish video stream",e)}}},[n,f,g?.height,g?.width,t,m?.camera_facing]),b=(0,w.useRef)(t);(0,w.useEffect)(()=>{l===y.Uq.JOINED&&t!==b.current&&(b.current=t,v().catch(e=>{console.error("Failed to publish video stream",e)}))},[v,t,l]);let _=(0,w.useRef)(!1);return(0,w.useEffect)(()=>{l!==y.Uq.JOINED||_.current||e||(v().catch(e=>{console.error("Failed to publish video stream",e)}),_.current=!0)},[l,e,v]),(0,w.useEffect)(()=>{if(!d||!c)return;let e=(0,y.iE)(d.pipe((0,ej.U)(e=>e?.videoDeviceId))).subscribe(async()=>{n&&(n.setVideoDevice(void 0),await n.stopPublish(y.Jq.TrackType.VIDEO))});return()=>{e.unsubscribe()}},[c,d,n]),(0,w.useEffect)(()=>{if(!u?.videoStream||!n||!h)return;let[e]=u.videoStream.getVideoTracks(),r=e.getSettings().deviceId,i=(0,y.dg)().subscribe(async()=>{if(!(n&&u.videoStream&&"default"===r))return;e.stop();let t=await (0,y.aG)({deviceId:"default"});await n.publishVideoStream(t)}),o=async()=>{if(r===t){let e=await (0,y.aG)({deviceId:t});await n.publishVideoStream(e)}};return e.addEventListener("ended",o),()=>{e.removeEventListener("ended",o),i.unsubscribe()}},[t,n,u?.videoStream,h]),v},pv=e=>{switch(e){case y.F3.FRONT:return"user";case y.F3.BACK:return"environment";default:return}},py=({trackedElement:e,dynascaleManager:t,sessionId:n,trackType:r})=>{let i=ec(),o=t??i?.dynascaleManager;(0,w.useEffect)(()=>{if(!e||!o||!i||"none"===r)return;let t=o.trackElementVisibility(e,n,r);return()=>{t()}},[e,o,i,n,r])},pb=({imageSrc:e,name:t,style:n,className:r,...i})=>{let[o,a]=(0,w.useState)(!1);return(0,b.jsxs)(b.Fragment,{children:[(!e||o)&&t&&(0,b.jsx)(pw,{className:r,style:n,names:[t]}),e&&!o&&(0,b.jsx)("img",{onError:()=>a(!0),alt:"avatar",className:(0,eR.Z)("str-video__avatar",r),src:e,style:n,...i})]})},pw=({className:e,names:t,style:n})=>(0,b.jsx)("div",{className:(0,eR.Z)("str-video__avatar--initials-fallback",e),style:n,children:(0,b.jsxs)("div",{children:[t[0][0],t[1]?.[0]]})}),p_=({placement:e,strategy:t})=>{var n,r,i;let{refs:o,x:a,y:s,update:l,elements:{domReference:u,floating:c}}=function(e){void 0===e&&(e={});let{open:t=!1,onOpenChange:n,nodeId:r}=e,i=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,whileElementsMounted:o,open:a}=e,[s,l]=w.useState({x:null,y:null,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[u,c]=w.useState(r);tx(u,r)||c(r);let d=w.useRef(null),f=w.useRef(null),h=w.useRef(s),p=tD(o),m=tD(i),[g,v]=w.useState(null),[y,b]=w.useState(null),_=w.useCallback(e=>{d.current!==e&&(d.current=e,v(e))},[]),x=w.useCallback(e=>{f.current!==e&&(f.current=e,b(e))},[]),D=w.useCallback(()=>{if(!d.current||!f.current)return;let e={placement:t,strategy:n,middleware:u};m.current&&(e.platform=m.current),tb(d.current,f.current,e).then(e=>{let t={...e,isPositioned:!0};E.current&&!tx(h.current,t)&&(h.current=t,tw.flushSync(()=>{l(t)}))})},[u,t,n,m]);t_(()=>{!1===a&&h.current.isPositioned&&(h.current.isPositioned=!1,l(e=>({...e,isPositioned:!1})))},[a]);let E=w.useRef(!1);t_(()=>(E.current=!0,()=>{E.current=!1}),[]),t_(()=>{if(g&&y){if(p.current)return p.current(g,y,D);D()}},[g,y,D,p]);let C=w.useMemo(()=>({reference:d,floating:f,setReference:_,setFloating:x}),[_,x]),k=w.useMemo(()=>({reference:g,floating:y}),[g,y]);return w.useMemo(()=>({...s,update:D,refs:C,elements:k,reference:_,floating:x}),[s,D,C,k,_,x])}(e),o=tO(),a=w.useRef(null),s=w.useRef({}),l=w.useState(()=>(function(){let e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}})())[0],u=tT(),[c,d]=w.useState(null),f=w.useCallback(e=>{let t=tP(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;i.refs.setReference(t)},[i.refs]),h=w.useCallback(e=>{(tP(e)||null===e)&&(a.current=e,d(e)),(tP(i.refs.reference.current)||null===i.refs.reference.current||null!==e&&!tP(e))&&i.refs.setReference(e)},[i.refs]),p=w.useMemo(()=>({...i.refs,setReference:h,setPositionReference:f,domReference:a}),[i.refs,h,f]),m=w.useMemo(()=>({...i.elements,domReference:c}),[i.elements,c]),g=function(e){let t=w.useRef(()=>{});return tR(()=>{t.current=e}),w.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r({...i,refs:p,elements:m,dataRef:s,nodeId:r,floatingId:u,events:l,open:t,onOpenChange:g}),[i,r,u,l,t,g,p,m]);return tE(()=>{let e=null==o?void 0:o.nodesRef.current.find(e=>e.id===r);e&&(e.context=v)}),w.useMemo(()=>({...i,context:v,refs:p,elements:m,reference:h,positionReference:f}),[i,p,m,v,h,f])}({placement:e,strategy:t,middleware:[{name:"offset",options:10,async fn(e){var t,n;let{x:r,y:i,placement:o,middlewareData:a}=e,s=await eQ(e,10);return o===(null==(t=a.offset)?void 0:t.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:o}}}},(void 0===n&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:i}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=ez(n,e),u={x:t,y:r},c=await eX(e,l),d=e$(eH(i)),f=eq(d),h=u[f],p=u[d];if(o){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=h+c[e],r=h-c[t];h=eF(n,eL(h,r))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=p+c[e],r=p-c[t];p=eF(n,eL(p,r))}let m=s.fn({...e,[f]:h,[d]:p});return{...m,data:{x:m.x-t,y:m.y-r}}}}),(void 0===r&&(r={}),{name:"flip",options:r,async fn(e){var t,n,i,o,a;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:f}=e,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...b}=ez(r,e);if(null!=(t=l.arrow)&&t.alignmentOffset)return{};let w=eH(s),_=e$(c),x=eH(c)===c,D=await (null==d.isRTL?void 0:d.isRTL(f.floating)),E=m||(x||!y?[eZ(c)]:function(e){let t=eZ(e);return[eY(e),t,eY(t)]}(c)),C="none"!==v;!m&&C&&E.push(...function(e,t,n,r){let i=eV(e),o=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(eH(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(eY)))),o}(c,y,v,D));let k=[c,...E],S=await eX(e,b),T=[],M=(null==(n=l.flip)?void 0:n.overflows)||[];if(h&&T.push(S[w]),p){let e=function(e,t,n){void 0===n&&(n=!1);let r=eV(e),i=eq(e$(e)),o=eW(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=eZ(a)),[a,eZ(a)]}(s,u,D);T.push(S[e[0]],S[e[1]])}if(M=[...M,{placement:s,overflows:T}],!T.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(o=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(g){case"bestFit":{let e=null==(a=M.filter(e=>{if(C){let t=e$(e.placement);return t===_||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}),{name:"size",options:i={padding:10,apply:({availableHeight:e,elements:t})=>{Object.assign(t.floating.style,{maxHeight:`${e}px`})}},async fn(e){let t,n;let{placement:r,rects:o,platform:a,elements:s}=e,{apply:l=()=>{},...u}=ez(i,e),c=await eX(e,u),d=eH(r),f=eV(r),h="y"===e$(r),{width:p,height:m}=o.floating;"top"===d||"bottom"===d?(t=d,n=f===(await (null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let g=m-c.top-c.bottom,v=p-c.left-c.right,y=eL(m-c[t],g),b=eL(p-c[n],v),w=!e.middlewareData.shift,_=y,x=b;if(h?x=f||w?eL(b,v):v:_=f||w?eL(y,g):g,w&&!f){let e=eF(c.left,0),t=eF(c.right,0),n=eF(c.top,0),r=eF(c.bottom,0);h?x=p-2*(0!==e||0!==t?e+t:eF(c.left,c.right)):_=m-2*(0!==n||0!==r?n+r:eF(c.top,c.bottom))}await l({...e,availableWidth:x,availableHeight:_});let D=await a.getDimensions(s.floating);return p!==D.width||m!==D.height?{reset:{rects:!0}}:{}}}]});return(0,w.useEffect)(()=>{if(!u||!c)return;let e=function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=ts(e),d=o||a?[...c?to(c):[],...to(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=c&&l?function(e,t){let n,r=null,i=e2(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();let{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;let h=eN(c),p=eN(i.clientWidth-(u+d)),m={rootMargin:-h+"px "+-p+"px "+-eN(i.clientHeight-(c+f))+"px "+-eN(u)+"px",threshold:eF(0,eL(1,l))||1},g=!0;function v(e){let t=e[0].intersectionRatio;if(t!==l){if(!g)return a();t?a(!1,t):n=setTimeout(()=>{a(!1,1e-7)},1e3)}g=!1}try{r=new IntersectionObserver(v,{...m,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(v,m)}r.observe(e)}(!0),o}(c,n):null,h=-1,p=null;s&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!u&&p.observe(c),p.observe(t));let m=u?td(e):null;return u&&function t(){let r=td(e);m&&(r.x!==m.x||r.y!==m.y||r.width!==m.width||r.height!==m.height)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(i)}}(u,c,l);return()=>e()},[u,c,l]),{refs:o,x:a,y:s,domReference:u,floating:c,strategy:t}},px=e=>{let t=ec(),n=eC(e),[r,i]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{n&&i(!1)},[n]),{requestPermission:(0,w.useCallback)(async()=>{if(n)return!0;let o=!!t?.permissionsContext.canRequest(e);if(r||!o)return!1;i(!0);try{await t?.requestPermissions({permissions:[e]})}catch(e){throw i(!1),Error(`requestPermission failed: ${e}`)}return!1},[t,n,r,e]),hasPermission:n,canRequestPermission:!!t?.permissionsContext.canRequest(e),isAwaitingPermission:r}},pD=()=>{let{publishAudioStream:e,stopPublishingAudio:t}=ma(),{useLocalParticipant:n}=eO(),r=n(),{isAwaitingPermission:i,requestPermission:o}=px(y.PP.SEND_AUDIO),a=(0,w.useRef)(!1);return a.current=!r?.publishedTracks.includes(y.Jq.TrackType.AUDIO),{toggleAudioMuteState:(0,w.useCallback)(async()=>{if(a.current&&await o())return e();a.current||await t()},[e,o,t]),isAwaitingPermission:i}},pE=()=>{let{publishVideoStream:e,stopPublishingVideo:t}=ma(),{useLocalParticipant:n}=eO(),r=n(),{isAwaitingPermission:i,requestPermission:o}=px(y.PP.SEND_VIDEO),a=(0,w.useRef)(!1);return a.current=!r?.publishedTracks.includes(y.Jq.TrackType.VIDEO),{toggleVideoMuteState:(0,w.useCallback)(async()=>{if(a.current&&await o())return e();a.current||await t()},[e,o,t]),isAwaitingPermission:i}},pC=()=>{let{useLocalParticipant:e}=eO(),t=e(),n=ec(),r=(0,w.useRef)(!1),{isAwaitingPermission:i,requestPermission:o}=px(y.PP.SCREENSHARE),a=!!t?.publishedTracks.includes(y.Jq.TrackType.SCREEN_SHARE);return r.current=a,{toggleScreenShare:(0,w.useCallback)(async()=>{if(!r.current){if(!await o())return;let e=await (0,y.WW)().catch(e=>{console.log(`Can't share screen: ${e}`)});if(e)return n?.publishScreenShareStream(e)}await n?.stopPublish(y.Jq.TrackType.SCREEN_SHARE)},[n,o]),isAwaitingPermission:i,isScreenSharing:a}},pk=({ToggleButton:e,placement:t="top-start",strategy:n="absolute",children:r})=>{let[i,o]=(0,w.useState)(!1),{floating:a,domReference:s,refs:l,x:u,y:c}=p_({placement:t,strategy:n});return(0,w.useEffect)(()=>{let e=e=>{!a&&s?.contains(e.target)?o(!0):a&&!a?.contains(e.target)&&o(!1)},t=e=>{"escape"!==e.key.toLowerCase()||e.altKey||e.ctrlKey||o(!1)};return document?.addEventListener("click",e,{capture:!0}),document?.addEventListener("keydown",t),()=>{document?.removeEventListener("click",e,{capture:!0}),document?.removeEventListener("keydown",t)}},[a,s]),(0,b.jsxs)(b.Fragment,{children:[i&&(0,b.jsx)("div",{className:"str-video__menu-container",ref:l.setFloating,style:{position:n,top:c??0,left:u??0,overflowY:"auto"},children:r}),(0,b.jsx)(e,{menuShown:i,ref:l.setReference})]})},pS=({children:e})=>(0,b.jsx)("ul",{className:"str-video__generic-menu",children:e}),pT=({children:e,...t})=>(0,b.jsx)("li",{className:"str-video__generic-menu--item",children:(0,b.jsx)("button",{...t,children:e})}),pM=({icon:e})=>(0,b.jsx)("span",{className:(0,eR.W)("str-video__icon",e&&`str-video__icon--${e}`)}),pO=(0,w.forwardRef)((e,t)=>{let{icon:n,enabled:r,variant:i,onClick:o,className:a,...s}=e;return(0,b.jsx)("button",{className:(0,eR.Z)("str-video__call-controls__button",a,{[`str-video__call-controls__button--variant-${i}`]:i,"str-video__call-controls__button--enabled":r}),onClick:e=>{e.preventDefault(),o?.(e)},ref:t,...s,children:(0,b.jsx)(pM,{icon:n})})}),pP=(0,w.forwardRef)(({caption:e,children:t,active:n,Menu:r,menuPlacement:i},o)=>(0,b.jsxs)("div",{className:"str-video__composite-button",ref:o,children:[(0,b.jsxs)("div",{className:(0,eR.Z)("str-video__composite-button__button-group",{"str-video__composite-button__button-group--active":n}),children:[t,r&&(0,b.jsx)(pk,{placement:i,ToggleButton:pR,children:h9(r)?(0,b.jsx)(r,{}):r})]}),e&&(0,b.jsx)("div",{className:"str-video__composite-button__caption",children:e})]})),pR=(0,w.forwardRef)(({menuShown:e},t)=>{let{t:n}=ey();return(0,b.jsx)(pO,{className:"str-video__menu-toggle-button",icon:e?"caret-down":"caret-up",title:n("Toggle device menu"),ref:t})});(0,w.forwardRef)(({Button:e,className:t,copyValue:n,onClick:r,onError:i,onSuccess:o,...a},s)=>{let l=(0,w.useCallback)(async e=>{r&&r(e);let t="function"==typeof n?n():n;try{await navigator?.clipboard.writeText(t),o?.(e.target)}catch(t){i?.(e.target,t)}},[n,r,i,o]),u={...a,ref:s,className:(0,eR.Z)("str-video__copy-to-clipboard-button",t),onClick:l};return e?(0,b.jsx)(e,{...u}):(0,b.jsx)("button",{...u})});let pj=({disabled:e,onAccept:t,onClick:n})=>{let r=ec(),i=(0,w.useCallback)(async e=>{n?n(e):r&&(await r.join(),t?.())},[n,t,r]);return(0,b.jsx)(pO,{disabled:e,icon:"call-accept",variant:"success",onClick:i})},pL=e=>{let{isVisible:t,message:n,children:r,visibilityTimeout:i,resetIsVisible:o,placement:a="top",iconClassName:s="str-video__notification__icon"}=e,{refs:l,x:u,y:c,strategy:d}=p_({placement:a,strategy:"absolute"});return(0,w.useEffect)(()=>{if(!t||!i||!o)return;let e=setTimeout(()=>{o()},i);return()=>clearTimeout(e)},[t,o,i]),(0,b.jsxs)("div",{ref:l.setReference,children:[t&&(0,b.jsxs)("div",{className:"str-video__notification",ref:l.setFloating,style:{position:d,top:c??0,left:u??0,overflowY:"auto"},children:[s&&(0,b.jsx)("i",{className:s}),(0,b.jsx)("span",{className:"str-video__notification__message",children:n})]}),r]})},pF=e=>{let{permission:t,isAwaitingApproval:n,messageApproved:r,messageAwaitingApproval:i,messageRevoked:o,visibilityTimeout:a=3500,children:s}=e,l=eC(t),u=(0,w.useRef)(l),[c,d]=(0,w.useState)();(0,w.useEffect)(()=>{l&&!u.current?(d("granted"),u.current=!0):!l&&u.current&&(d("revoked"),u.current=!1)},[l]);let f=(0,w.useCallback)(()=>d(void 0),[]);return n?(0,b.jsx)(pL,{isVisible:n&&!l,message:i,children:s}):(0,b.jsx)(pL,{isVisible:!!c,visibilityTimeout:a,resetIsVisible:f,message:"granted"===c?r:o,children:s})},pA=({children:e,text:t})=>{let{useLocalParticipant:n}=eO(),r=n(),{getAudioStream:i}=ma(),{t:o}=ey(),a=t??o("You are muted. Unmute to speak."),s=!r?.publishedTracks.includes(y.Jq.TrackType.AUDIO),l=r?.audioDeviceId,[u,c]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{if(!s)return;let e=i({deviceId:l}).then(e=>(0,y.st)(e,({isSoundDetected:e})=>{c(t=>t||e)}));return e.catch(e=>{console.error("Error while creating sound detector",e)}),()=>{e.then(e=>e()).catch(e=>{console.error("Error while disposing sound detector",e)}),c(!1)}},[l,i,s]),(0,w.useEffect)(()=>{if(!u)return;let e=setTimeout(()=>{c(!1)},3500);return()=>{clearTimeout(e),c(!1)}},[u]),(0,b.jsx)(pL,{message:a,isVisible:u,children:e})},pN=e=>{let{label:t,value:n}=e;return(0,b.jsxs)("div",{className:"str-video__call-stats__card",children:[(0,b.jsx)("div",{className:"str-video__call-stats__card_label",children:t}),(0,b.jsx)("div",{className:"str-video__call-stats__card_value",children:n})]})};(0,w.forwardRef)(({menuShown:e},t)=>(0,b.jsx)(pP,{ref:t,active:e,caption:"Stats",children:(0,b.jsx)(pO,{icon:"stats",title:"Statistics"})}));let pI=({disabled:e,onClick:t,onLeave:n})=>{let r=ec(),i=(0,w.useCallback)(async e=>{t?t(e):r&&(await r.leave(),n?.())},[t,n,r]);return(0,b.jsx)(pO,{disabled:e,icon:"call-end",variant:"danger",onClick:i})},pB={":like:":"\uD83D\uDC4D",":raise-hand:":"✋",":fireworks:":"\uD83C\uDF89",":dislike:":"\uD83D\uDC4E",":heart:":"❤️",":smile:":"\uD83D\uDE00"},pU=({participant:{reaction:e,sessionId:t},hideAfterTimeoutInMs:n=5500,emojiReactionMap:r=pB})=>{let i=ec();if((0,w.useEffect)(()=>{if(!i||!e)return;let r=setTimeout(()=>{i.resetReaction(t)},n);return()=>{clearTimeout(r)}},[i,n,e,t]),!e)return null;let{emoji_code:o}=e;return(0,b.jsx)("div",{className:"str-video__reaction",children:(0,b.jsx)("span",{className:"str-video__reaction__emoji",children:o&&r[o]})})},pz=e=>{let t=ec(),{useHasOngoingScreenShare:n}=eO(),r=n(),{t:i}=ey(),{caption:o=i("Screen Share")}=e,{toggleScreenShare:a,isAwaitingPermission:s,isScreenSharing:l}=pC();return(0,b.jsx)(eP,{requiredGrants:[y.PP.SCREENSHARE],children:(0,b.jsx)(pF,{permission:y.PP.SCREENSHARE,isAwaitingApproval:s,messageApproved:i("You can now share your screen."),messageAwaitingApproval:i("Awaiting for an approval to share screen."),messageRevoked:i("You can no longer share your screen."),children:(0,b.jsx)(pP,{active:r,caption:o,children:(0,b.jsx)(pO,{icon:l?"screen-share-on":"screen-share-off",title:i("Share screen"),disabled:!l&&r||!t,onClick:a})})})})},pH=({disabled:e,id:t,label:n,onChange:r,name:i,selected:o,defaultChecked:a,value:s})=>(0,b.jsxs)("label",{className:(0,eR.Z)("str-video__device-settings__option",{"str-video__device-settings__option--selected":o,"str-video__device-settings__option--disabled":e}),htmlFor:t,children:[(0,b.jsx)("input",{type:"radio",name:i,onChange:r,value:s,id:t,checked:o,defaultChecked:a,disabled:e}),n]}),pV=e=>{let{devices:t=[],selectedDeviceId:n,title:r,onChange:i}=e,o=r.replace(" ","-").toLowerCase(),a=n;return t.length>0&&!t.find(e=>e.deviceId===a)&&(a=t[0].deviceId),(0,b.jsxs)("div",{className:"str-video__device-settings__device-kind",children:[(0,b.jsx)("div",{className:"str-video__device-settings__device-selector-title",children:r}),t.length?t.map(e=>(0,b.jsx)(pH,{id:`${o}--${e.deviceId}`,value:e.deviceId,label:e.label,onChange:e=>{i?.(e.target.value)},name:o,selected:e.deviceId===a||1===t.length},e.deviceId)):(0,b.jsx)(pH,{id:`${o}--default`,label:"Default",name:o,defaultChecked:!0,value:"default"})]})},pq=({title:e="Select a Mic"})=>{let{selectedAudioInputDeviceId:t,switchDevice:n}=ma(),r=ps();return(0,b.jsx)(pV,{devices:r,selectedDeviceId:t,onChange:e=>{n("audioinput",e)},title:e})},pW=({title:e})=>{let{selectedVideoDeviceId:t,switchDevice:n}=ma(),r=pa();return(0,b.jsx)(pV,{devices:r,selectedDeviceId:t,onChange:e=>{n("videoinput",e)},title:e||"Select a Camera"})};(0,w.forwardRef)(({menuShown:e},t)=>{let{t:n}=ey();return(0,b.jsx)(pO,{className:(0,eR.Z)("str-video__device-settings__button",{"str-video__device-settings__button--active":e}),title:n("Toggle device menu"),icon:"device-settings",ref:t})});let p$=e=>{let{useLocalParticipant:t}=eO(),n=t(),{t:r}=ey(),{caption:i=r("Mic"),Menu:o=pq}=e,a=!n?.publishedTracks.includes(y.Jq.TrackType.AUDIO),{toggleAudioMuteState:s,isAwaitingPermission:l}=pD();return(0,b.jsx)(eP,{requiredGrants:[y.PP.SEND_AUDIO],children:(0,b.jsx)(pF,{permission:y.PP.SEND_AUDIO,isAwaitingApproval:l,messageApproved:r("You can now speak."),messageAwaitingApproval:r("Awaiting for an approval to speak."),messageRevoked:r("You can no longer speak."),children:(0,b.jsx)(pP,{Menu:o,active:a,caption:i,children:(0,b.jsx)(pO,{icon:a?"mic-off":"mic",onClick:s})})})})},pY=e=>{let{useLocalParticipant:t}=eO(),n=t(),{t:r}=ey(),{caption:i=r("Video"),Menu:o=pW}=e,a=!n?.publishedTracks.includes(y.Jq.TrackType.VIDEO),{toggleVideoMuteState:s,isAwaitingPermission:l}=pE();return(0,b.jsx)(eP,{requiredGrants:[y.PP.SEND_VIDEO],children:(0,b.jsx)(pF,{permission:y.PP.SEND_VIDEO,isAwaitingApproval:l,messageApproved:r("You can now share your video."),messageAwaitingApproval:r("Awaiting for an approval to share your video."),messageRevoked:r("You can no longer share your video."),children:(0,b.jsx)(pP,{Menu:o,active:a,caption:i,children:(0,b.jsx)(pO,{icon:a?"camera-off":"camera",onClick:s})})})})};(0,w.forwardRef)((e,t)=>(0,b.jsx)(pO,{enabled:e.menuShown,icon:"ellipsis",ref:t}));let pZ=({participant:e,participantViewElement:t,videoElement:n})=>{let[r,i]=(0,w.useState)(!!document.fullscreenElement),[o,a]=(0,w.useState)(document.pictureInPictureElement),s=ec(),{t:l}=ey(),{pin:u,publishedTracks:c,sessionId:d,userId:f}=e,h=c.includes(y.Jq.TrackType.AUDIO),p=c.includes(y.Jq.TrackType.VIDEO),m=c.includes(y.Jq.TrackType.SCREEN_SHARE),g=c.includes(y.Jq.TrackType.SCREEN_SHARE_AUDIO),v=e=>()=>{s?.updateUserPermissions({user_id:f,grant_permissions:[e]})},_=e=>()=>{s?.updateUserPermissions({user_id:f,revoke_permissions:[e]})};return(0,w.useEffect)(()=>{if(!n)return;let e=()=>{a(document.pictureInPictureElement)};return n.addEventListener("enterpictureinpicture",e),n.addEventListener("leavepictureinpicture",e),()=>{n.removeEventListener("enterpictureinpicture",e),n.removeEventListener("leavepictureinpicture",e)}},[n]),(0,b.jsxs)(pS,{children:[(0,b.jsxs)(pT,{onClick:()=>{u?s?.unpin(d):s?.pin(d)},disabled:u&&!u.isLocalPin,children:[(0,b.jsx)(pM,{icon:"pin"}),l(u?"Unpin":"Pin")]}),(0,b.jsxs)(eP,{requiredGrants:[y.PP.PIN_FOR_EVERYONE],children:[(0,b.jsxs)(pT,{onClick:()=>{s?.pinForEveryone({user_id:f,session_id:d}).catch(e=>{console.error(`Failed to pin participant ${f}`,e)})},disabled:u&&!u.isLocalPin,children:[(0,b.jsx)(pM,{icon:"pin"}),l("Pin for everyone")]}),(0,b.jsxs)(pT,{onClick:()=>{s?.unpinForEveryone({user_id:f,session_id:d}).catch(e=>{console.error(`Failed to unpin participant ${f}`,e)})},disabled:!u||u.isLocalPin,children:[(0,b.jsx)(pM,{icon:"pin"}),l("Unpin for everyone")]})]}),(0,b.jsx)(eP,{requiredGrants:[y.PP.BLOCK_USERS],children:(0,b.jsxs)(pT,{onClick:()=>s?.blockUser(f),children:[(0,b.jsx)(pM,{icon:"not-allowed"}),l("Block")]})}),(0,b.jsxs)(eP,{requiredGrants:[y.PP.MUTE_USERS],children:[(0,b.jsxs)(pT,{disabled:!p,onClick:()=>s?.muteUser(f,"video"),children:[(0,b.jsx)(pM,{icon:"camera-off-outline"}),l("Turn off video")]}),(0,b.jsxs)(pT,{disabled:!m,onClick:()=>s?.muteUser(f,"screenshare"),children:[(0,b.jsx)(pM,{icon:"screen-share-off"}),l("Turn off screen share")]}),(0,b.jsxs)(pT,{disabled:!h,onClick:()=>s?.muteUser(f,"audio"),children:[(0,b.jsx)(pM,{icon:"no-audio"}),l("Mute audio")]}),(0,b.jsxs)(pT,{disabled:!g,onClick:()=>s?.muteUser(f,"screenshare_audio"),children:[(0,b.jsx)(pM,{icon:"no-audio"}),l("Mute screen share audio")]})]}),t&&(0,b.jsx)(pT,{onClick:()=>{if(!r)return t?.requestFullscreen().then(()=>i(!0)).catch(console.error);document.exitFullscreen().catch(console.error).finally(()=>i(!1))},children:l("{{ direction }} fullscreen",{direction:l(r?"Leave":"Enter")})}),n&&document.pictureInPictureEnabled&&(0,b.jsx)(pT,{onClick:()=>{if(n&&o!==n)return n.requestPictureInPicture().catch(console.error);document.exitPictureInPicture().catch(console.error)},children:l("{{ direction }} picture-in-picture",{direction:l(o===n?"Leave":"Enter")})}),(0,b.jsxs)(eP,{requiredGrants:[y.PP.UPDATE_CALL_PERMISSIONS],children:[(0,b.jsx)(pT,{onClick:v(y.PP.SEND_AUDIO),children:l("Allow audio")}),(0,b.jsx)(pT,{onClick:v(y.PP.SEND_VIDEO),children:l("Allow video")}),(0,b.jsx)(pT,{onClick:v(y.PP.SCREENSHARE),children:l("Allow screen sharing")}),(0,b.jsx)(pT,{onClick:_(y.PP.SEND_AUDIO),children:l("Disable audio")}),(0,b.jsx)(pT,{onClick:_(y.PP.SEND_VIDEO),children:l("Disable video")}),(0,b.jsx)(pT,{onClick:_(y.PP.SCREENSHARE),children:l("Disable screen sharing")})]})]})};(0,w.forwardRef)((e,t)=>(0,b.jsx)(pO,{enabled:e.menuShown,icon:"filter",ref:t})),(0,w.forwardRef)(({className:e,...t},n)=>(0,b.jsxs)("button",{...t,className:(0,eR.W)("str-video__invite-link-button",e),ref:n,children:[(0,b.jsx)("div",{className:"str-video__invite-participant-icon"}),(0,b.jsx)("div",{className:"str-video__invite-link-button__text",children:"Invite Link"})]})),(0,w.forwardRef)((e,t)=>(0,b.jsx)("button",{...e,className:(0,eR.Z)("str-video__call-recording-list-item__action-button","str-video__call-recording-list-item__action-button--copy-link"),ref:t,title:"Copy the recording link",children:(0,b.jsx)("span",{className:(0,eR.Z)("str-video__call-recording-list-item__action-button-icon","str-video__copy-button--icon")})}));let pG=()=>{let e=ec(),{useCallCallingState:t}=eO(),n=t();if(!e)return null;let r=n!==y.Uq.RINGING;return(0,b.jsx)("div",{className:"str-video__pending-call-controls",children:e.isCreatedByMe?(0,b.jsx)(pI,{disabled:r}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(pj,{disabled:r}),(0,b.jsx)(pI,{onClick:()=>e.leave({reject:!0}),disabled:r})]})})},pJ={[y.Uq.JOINING]:"Joining",[y.Uq.RINGING]:"Ringing",[y.Uq.MIGRATING]:"Migrating",[y.Uq.RECONNECTING]:"Re-connecting",[y.Uq.RECONNECTING_FAILED]:"Failed",[y.Uq.OFFLINE]:"No internet connection",[y.Uq.IDLE]:"",[y.Uq.UNKNOWN]:"",[y.Uq.JOINED]:"Joined",[y.Uq.LEFT]:"Left call"},pK=e=>{let{includeSelf:t=!1,totalMembersToShow:n=3}=e,r=ec(),{t:i}=ey(),{useCallCallingState:o,useCallMembers:a}=eO(),s=o(),l=a(),u=eM();if(!r)return null;let c=(l||[]).slice(0,n).map(({user:e})=>e).filter(e=>e.id!==u?.id||t);if(t&&!c.find(e=>e.id===u?.id)){let e=l.find(({user:e})=>e.id===u?.id);e&&c.splice(0,1,e.user)}let d=pJ[s];return(0,b.jsxs)("div",{className:"str-video__call-panel str-video__call-panel--ringing",children:[(0,b.jsx)("div",{className:"str-video__call-panel__members-list",children:c.map(e=>(0,b.jsxs)("div",{className:"str-video__call-panel__member-box",children:[(0,b.jsx)(pb,{name:e.name,imageSrc:e.image}),e.name&&(0,b.jsx)("div",{className:"str-video__member_details",children:(0,b.jsx)("span",{className:"str-video__member_name",children:e.name})})]},e.id))}),d&&(0,b.jsx)("div",{className:"str-video__call-panel__calling-state-label",children:i(d)}),[y.Uq.RINGING,y.Uq.JOINING].includes(s)&&(0,b.jsx)(pG,{})]})};(0,w.forwardRef)((e,t)=>{let{permissionRequests:n,handleUpdatePermission:r,...i}=e,{t:o}=ey();return(0,b.jsx)("div",{className:"str-video__permission-requests-list",ref:t,...i,children:n.map((e,t)=>{let{user:n,permissions:i}=e;return(0,b.jsx)(w.Fragment,{children:i.map(t=>(0,b.jsxs)("div",{className:"str-video__permission-request",children:[(0,b.jsx)("div",{className:"str-video__permission-request__message",children:pQ(n.name||n.id,t,o)}),(0,b.jsx)(pX,{className:"str-video__permission-request__button--allow",type:"button",onClick:r(e,"grant"),children:o("Allow")}),(0,b.jsx)(pX,{className:"str-video__permission-request__button--reject",type:"button",onClick:r(e,"revoke"),children:o("Revoke")}),(0,b.jsx)(pX,{className:"str-video__permission-request__button--reject",type:"button",onClick:r(e,"dismiss"),children:o("Dismiss")})]},t))},`${n.id}/${t}`)})})});let pX=e=>{let{className:t,...n}=e;return(0,b.jsx)("button",{className:(0,eR.Z)("str-video__permission-request__button",t),...n})},pQ=(e,t,n)=>{switch(t){case y.PP.SEND_AUDIO:return n("{{ userName }} is requesting to speak",{userName:e});case y.PP.SEND_VIDEO:return n("{{ userName }} is requesting to share their camera",{userName:e});case y.PP.SCREENSHARE:return n("{{ userName }} is requesting to present their screen",{userName:e});default:return n("{{ userName }} is requesting permission: {{ permission }}",{userName:e,permission:t})}},p0=({as:e="div",className:t,children:n,...r})=>(0,b.jsx)(e,{...r,className:(0,eR.Z)("str-video",t),children:n}),p1=e=>{let{call:t,participant:n}=e,[r,i]=(0,w.useState)(),[o,a]=(0,w.useState)(()=>({f:!0,h:!0,q:!0}));return(0,w.useEffect)(()=>t.on("changePublishQuality",e=>{if("changePublishQuality"!==e.eventPayload.oneofKind)return;let{videoSenders:t}=e.eventPayload.changePublishQuality,[n]=t.map(({layers:e})=>e.map(e=>({[e.name]:e.active})));a(e=>({...e,...n}))}),[t]),(0,b.jsxs)("select",{title:`Published tracks: ${JSON.stringify(o)}`,value:r,onChange:e=>{let r=e.target.value;i(r);let o=960,a=540;"h"===r?(o/=2,a/=2):"q"===r&&(o/=4,a/=4),t.updateSubscriptionsPartial("video",{[n.sessionId]:{dimension:{width:o,height:a}}})},children:[(0,b.jsx)("option",{value:"f",children:"High (f)"}),(0,b.jsx)("option",{value:"h",children:"Medium (h)"}),(0,b.jsx)("option",{value:"q",children:"Low (q)"})]})},p2=e=>{let{call:t,mediaStream:n,sessionId:r,userId:i}=e,{useCallStatsReport:o}=eO(),a=o();(0,w.useEffect)(()=>(t.startReportingStatsFor(r),()=>{t.stopReportingStatsFor(r)}),[t,r]);let s=a?.participants[r],l=s?.flatMap(e=>e.streams),u=(0,w.useRef)({f:0,h:0,q:0}),c=(0,w.useRef)({f:0,h:0,q:0});l?.forEach(e=>{if("video"!==e.kind)return;let{frameWidth:t=0,frameHeight:n=0,rid:o=""}=e;if(t!==u.current[o]||n!==c.current[o]){let e=`${t}x${n}`;console.log(`Track stats (${i}/${r}): ${o}(${e})`),u.current[o]=t,c.current[o]=n}});let{refs:d,strategy:f,y:h,x:p}=p_({placement:"top",strategy:"absolute"}),[m,g]=(0,w.useState)(!1),[v]=n?.getVideoTracks()??[],y=v?.getSettings();return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"str-video__debug__track-stats-icon",tabIndex:0,ref:d.setReference,title:y&&`${y.width}x${y.height}@${Math.round(y.frameRate||0)}`,onClick:()=>{g(e=>!e)}}),m&&(0,b.jsxs)("div",{className:"str-video__debug__track-stats str-video__call-stats",ref:d.setFloating,style:{position:f,top:h??0,left:p??0,overflowY:"auto"},children:[(0,b.jsx)("h3",{children:"Participant stats"}),(0,b.jsx)("div",{className:"str-video__call-stats__card-container",children:l?.map(e=>"video"===e.kind?b.jsx(pN,{label:`${e.kind}: ${e.codec} `+(e.rid?` (${e.rid})`:""),value:`${e.frameWidth||0}x${e.frameHeight||0}@${e.framesPerSecond||0}fps`},`${e.rid}/${e.ssrc}/${e.codec}/${e.kind}`):"audio"===e.kind?b.jsx(pN,{label:e.codec||"N/A",value:`Jitter: ${e.jitter||0}ms`},`${e.ssrc}/${e.codec}/${e.kind}`):null).filter(Boolean)}),s?.map((e,t)=>b.jsx("pre",{children:JSON.stringify(p3(e.rawStats),null,2)},t))]})]})},p3=e=>{let t={};return e?.forEach(e=>{t[e.id]=e}),t},p4=(0,w.forwardRef)((e,t)=>(0,b.jsx)(pO,{enabled:e.menuShown,icon:"ellipsis",ref:t})),p6=()=>{let e=ec();return(0,b.jsxs)("div",{className:"str-video__screen-share-overlay",children:[(0,b.jsx)(pM,{icon:"screen-share-off"}),(0,b.jsx)("span",{className:"str-video__screen-share-overlay__title",children:"You are presenting your screen"}),(0,b.jsxs)("button",{onClick:()=>{e?.stopPublish(y.Jq.TrackType.SCREEN_SHARE).catch(console.error)},className:"str-video__screen-share-overlay__button",children:[(0,b.jsx)(pM,{icon:"close"})," Stop Screen Sharing"]})]})},p5=({indicatorsVisible:e=!0,menuPlacement:t="bottom-end",showMenuButton:n=!0})=>{let{participant:r,participantViewElement:i,trackType:o,videoElement:a}=p9(),{publishedTracks:s}=r,l=s.includes(y.Jq.TrackType.SCREEN_SHARE);return r.isLocalParticipant&&l&&"screenShareTrack"===o?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(p6,{}),(0,b.jsx)(p8,{indicatorsVisible:e})]}):(0,b.jsxs)(b.Fragment,{children:[n&&(0,b.jsx)(pk,{strategy:"fixed",placement:t,ToggleButton:p4,children:(0,b.jsx)(pZ,{participantViewElement:i,participant:r,videoElement:a})}),(0,b.jsx)(pU,{participant:r}),(0,b.jsx)(p8,{indicatorsVisible:e})]})},p8=({indicatorsVisible:e=!0})=>{let{participant:t}=p9(),{isDominantSpeaker:n,isLocalParticipant:r,connectionQuality:i,publishedTracks:o,pin:a,sessionId:s,name:l,userId:u,videoStream:c}=t,d=ec(),f=!!i&&y.Jq.ConnectionQuality[i].toLowerCase(),h=o.includes(y.Jq.TrackType.AUDIO),p=o.includes(y.Jq.TrackType.VIDEO),m=!!a&&a.isLocalPin,g=pp();return(0,b.jsxs)("div",{className:"str-video__participant-details",children:[(0,b.jsxs)("span",{className:"str-video__participant-details__name",children:[l||u,e&&n&&(0,b.jsx)("span",{className:"str-video__participant-details__name--dominant_speaker",title:"Dominant speaker"}),e&&(0,b.jsx)(pL,{isVisible:r&&i===y.Jq.ConnectionQuality.POOR,message:"Poor connection quality. Please check your internet connection.",children:f&&(0,b.jsx)("span",{className:(0,eR.W)("str-video__participant-details__connection-quality",`str-video__participant-details__connection-quality--${f}`),title:f})}),e&&!h&&(0,b.jsx)("span",{className:"str-video__participant-details__name--audio-muted"}),e&&!p&&(0,b.jsx)("span",{className:"str-video__participant-details__name--video-muted"}),e&&m&&(0,b.jsx)("span",{title:"Unpin",onClick:()=>d?.unpin(s),style:{cursor:"pointer"},className:"str-video__participant-details__name--pinned"})]}),g&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(p1,{participant:t,call:d}),(0,b.jsx)(p2,{call:d,sessionId:s,userId:u,mediaStream:c})]})]})},p7=(0,w.createContext)(void 0),p9=()=>(0,w.useContext)(p7),me=(0,w.forwardRef)(({participant:e,trackType:t="videoTrack",muteAudio:n,refs:{setVideoElement:r,setVideoPlaceholderElement:i}={},className:o,VideoPlaceholder:a,ParticipantViewUI:s=p5},l)=>{let{isLocalParticipant:u,isSpeaking:c,isDominantSpeaker:d,publishedTracks:f,sessionId:h}=e,p=f.includes(y.Jq.TrackType.AUDIO),m=f.includes(y.Jq.TrackType.VIDEO),g=f.includes(y.Jq.TrackType.SCREEN_SHARE_AUDIO),[v,_]=(0,w.useState)(null),[x,D]=(0,w.useState)(null),[E,C]=(0,w.useState)(null);py({sessionId:h,trackedElement:v,trackType:t});let k=(0,w.useMemo)(()=>({participant:e,participantViewElement:v,videoElement:x,videoPlaceholderElement:E,trackType:t}),[x,E,e,v,t]),S=(0,w.useMemo)(()=>({setVideoElement:e=>{r?.(e),D(e)},setVideoPlaceholderElement:e=>{i?.(e),C(e)}}),[r,i]);return(0,b.jsx)("div",{"data-testid":"participant-view",ref:e=>{pt(l,e),_(e)},className:(0,eR.Z)("str-video__participant-view",d&&"str-video__participant-view--dominant-speaker",c&&"str-video__participant-view--speaking",!m&&"str-video__participant-view--no-video",!p&&"str-video__participant-view--no-audio",o),children:(0,b.jsxs)(p7.Provider,{value:k,children:[!u&&!n&&(0,b.jsxs)(b.Fragment,{children:[p&&(0,b.jsx)(h8,{participant:e,trackType:"audioTrack"}),g&&(0,b.jsx)(h8,{participant:e,trackType:"screenShareAudioTrack"})]}),(0,b.jsx)(pr,{VideoPlaceholder:a,participant:e,trackType:t,refs:S,autoPlay:!0}),h9(s)?(0,b.jsx)(s,{}):s]})})}),mt={starting:"stopped",playing:"stopped",stopped:"starting",uninitialized:"starting",error:"starting"},mn={starting:{type:"starting",enabled:!0},playing:{type:"playing",enabled:!0},stopped:{type:"stopped",enabled:!1},uninitialized:{type:"uninitialized",enabled:!1},error:{type:"error",message:"",enabled:!1}},mr="default",mi=(0,w.createContext)(null),mo=({children:e,initialAudioEnabled:t,initialVideoEnabled:n,initialVideoInputDeviceId:r=mr,initialAudioOutputDeviceId:i=mr,initialAudioInputDeviceId:o=mr})=>{let a=ec(),{useCallCallingState:s,useCallState:l,useCallSettings:u}=eO(),c=s(),{localParticipant$:d}=l(),f=pi("camera"),h=pi("microphone"),[p,m]=(0,w.useState)(o),[g,v]=(0,w.useState)(i),[_,x]=(0,w.useState)(r),[D]=(0,w.useState)(()=>(0,y.xX)()),[E,C]=(0,w.useState)(!!t),[k,S]=(0,w.useState)(()=>n?mn.starting:mn.uninitialized),T=u();(0,w.useEffect)(()=>{if(!T)return;let{audio:e,video:r}=T;void 0===t&&e.mic_default_on&&C(e.mic_default_on),void 0===n&&r.camera_default_on&&S(mn.starting)},[t,n,T]);let M=pg({initialVideoMuted:!k.enabled,videoDeviceId:_}),O=pf({initialAudioMuted:!E,audioDeviceId:p}),P=(0,w.useCallback)(async()=>{c===y.Uq.IDLE||c===y.Uq.RINGING?C(!1):a?.stopPublish(y.Jq.TrackType.AUDIO)},[a,c]),R=(0,w.useCallback)(async()=>{c===y.Uq.IDLE||c===y.Uq.RINGING?S(mn.stopped):a?.stopPublish(y.Jq.TrackType.VIDEO)},[a,c]),j=(0,w.useCallback)(()=>C(e=>!e),[]),L=(0,w.useCallback)(()=>S(e=>mn[mt[e.type]]),[]),F=(0,w.useCallback)((e,t)=>{"videoinput"===e&&x(t),"audioinput"===e&&m(t),"audiooutput"===e&&v(t)},[]);pc(()=>F("audioinput",mr),h,p),pd(()=>F("audiooutput",mr),h,g),pu(()=>F("videoinput",mr),f,_),(0,w.useEffect)(()=>{a&&c===y.Uq.JOINED&&a.setAudioOutputDevice(g)},[a,c,g]),(0,w.useEffect)(()=>{if(!d||!h)return;let e=(0,y.$A)(d.pipe((0,ej.U)(e=>e?.audioOutputDeviceId))).subscribe(async()=>{v(mr)});return()=>{e.unsubscribe()}},[h,d]);let A={disposeOfMediaStream:y.pJ,getAudioStream:y.NJ,getVideoStream:y.aG,isAudioOutputChangeSupported:D,selectedAudioInputDeviceId:p,selectedAudioOutputDeviceId:g,selectedVideoDeviceId:_,switchDevice:F,initialAudioEnabled:E,initialVideoState:k,setInitialAudioEnabled:C,setInitialVideoState:S,toggleInitialAudioMuteState:j,toggleInitialVideoMuteState:L,publishAudioStream:O,publishVideoStream:M,stopPublishingAudio:P,stopPublishingVideo:R};return(0,b.jsx)(mi.Provider,{value:A,children:e})},ma=()=>{let e=(0,w.useContext)(mi);return e||console.warn("Null MediaDevicesContext"),e},ms=({children:e,call:t,mediaDevicesProviderProps:n})=>(0,b.jsx)(eu,{call:t,children:(0,b.jsx)(mo,{...n,children:e})}),ml={en:{Joining:"Joining",Mic:"Mic","No internet connection":"No internet connection","Re-connecting":"Re-connecting",Ringing:"Ringing","Screen Share":"Screen Share","Select a Camera":"Select a Camera","Select a Mic":"Select a Mic","Select Speakers":"Select Speakers",Speakers:"Speakers",Video:"Video","You are muted. Unmute to speak.":"You are muted. Unmute to speak.",Live:"Live","You can now speak.":"You can now speak.","Awaiting for an approval to speak.":"Awaiting for an approval to speak.","You can no longer speak.":"You can no longer speak.","You can now share your video.":"You can now share your video.","Awaiting for an approval to share your video.":"Awaiting for an approval to share your video.","You can no longer share your video.":"You can no longer share your video.","Waiting for recording to stop...":"Waiting for recording to stop...","Waiting for recording to start...":"Waiting for recording to start...","Record call":"Record call",Reactions:"Reactions","You can now share your screen.":"You can now share your screen.","Awaiting for an approval to share screen.":"Awaiting for an approval to share screen.","You can no longer share your screen.":"You can no longer share your screen.","Share screen":"Share screen","Incoming Call...":"Incoming Call...","Calling...":"Calling...","Mute All":"Mute All",Invite:"Invite",Join:"Join",You:"You",Me:"Me",Unknown:"Unknown","Toggle device menu":"Toggle device menu",Allow:"Allow",Revoke:"Revoke",Dismiss:"Dismiss","Microphone on":"Microphone on","Microphone off":"Microphone off","Camera on":"Camera on","Camera off":"Camera off",Pinned:"Pinned",Unpin:"Unpin",Pin:"Pin","Pin for everyone":"Pin for everyone","Unpin for everyone":"Unpin for everyone",Block:"Block","Turn off video":"Turn off video","Turn off screen share":"Turn off screen share","Mute audio":"Mute audio","Mute screen share audio":"Mute screen share audio","Allow audio":"Allow audio","Allow video":"Allow video","Allow screen sharing":"Allow screen sharing","Disable audio":"Disable audio","Disable video":"Disable video","Disable screen sharing":"Disable screen sharing",Enter:"Enter",Leave:"Leave","{{ direction }} fullscreen":"{{ direction }} fullscreen","{{ direction }} picture-in-picture":"{{ direction }} picture-in-picture",Participants:"Participants",Anonymous:", and ({{ count }}) anonymous","No participants found":"No participants found","Participants ({{ numberOfParticipants }})":"Participants ({{ numberOfParticipants }})","{{ userName }} is sharing their screen":"{{ userName }} is sharing their screen","{{ userName }} is requesting to speak":"{{ userName }} is requesting to speak","{{ userName }} is requesting to share their camera":"{{ userName }} is requesting to share their camera","{{ userName }} is requesting to present their screen":"{{ userName }} is requesting to present their screen","{{ userName }} is requesting permission: {{ permission }}":"{{ userName }} is requesting permission: {{ permission }}"}},mu=e=>(0,b.jsx)(ew,{translationsOverrides:ml,...e}),mc=e=>{(0,w.useEffect)(()=>{if(e)return e.setSortParticipantsBy(y.xp),()=>{md(e)}},[e])},md=e=>{let t=y.WV.get(e.type);e.setSortParticipantsBy(t.options.sortParticipantsBy||y.JM)},mf=16,mh=({group:e,VideoPlaceholder:t,ParticipantViewUI:n})=>(0,b.jsx)("div",{className:(0,eR.Z)("str-video__paginated-grid-layout__group",{"str-video__paginated-grid-layout--one":1===e.length,"str-video__paginated-grid-layout--two-four":e.length>=2&&e.length<=4,"str-video__paginated-grid-layout--five-nine":e.length>=5&&e.length<=9}),children:e.map(e=>(0,b.jsx)(me,{participant:e,muteAudio:!0,VideoPlaceholder:t,ParticipantViewUI:n},e.sessionId))}),mp=({groupSize:e=mf,excludeLocalParticipant:t=!1,pageArrowsVisible:n=!0,VideoPlaceholder:r,ParticipantViewUI:i=p5})=>{let[o,a]=(0,w.useState)(0),[s,l]=(0,w.useState)(null),u=ec(),{useParticipants:c,useRemoteParticipants:d}=eO(),f=c(),h=d();mc(u),(0,w.useEffect)(()=>{if(!s||!u)return;let e=u.setViewport(s);return()=>e()},[s,u]);let p=(0,w.useMemo)(()=>pe(t?h:f,e),[t,h,f,e]),m=p.length;(0,w.useEffect)(()=>{o>m-1&&a(Math.max(0,m-1))},[o,m]);let g=p[o];return u?(0,b.jsxs)("div",{className:"str-video__paginated-grid-layout__wrapper",ref:l,children:[(0,b.jsx)(h7,{participants:h}),(0,b.jsxs)("div",{className:"str-video__paginated-grid-layout",children:[n&&m>1&&(0,b.jsx)(pO,{icon:"caret-left",disabled:0===o,onClick:()=>a(e=>Math.max(0,e-1))}),g&&(0,b.jsx)(mh,{group:p[o],VideoPlaceholder:r,ParticipantViewUI:i}),n&&m>1&&(0,b.jsx)(pO,{disabled:o===m-1,icon:"caret-right",onClick:()=>a(e=>Math.min(m-1,e+1))})]})]}):null},[mm,mg,mv]="0.3.47".split(".");(0,y._J)({type:y.Jq.SdkType.REACT,major:mm,minor:mg,patch:mv})},10172:function(e,t){"use strict";t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t})}return!0}},48738:function(e,t){"use strict";t.JQ=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i=("undefined"!=typeof Uint8Array&&Uint8Array,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),o=0,a=i.length;o=t?e:""+Array(t+1-r.length).join(n)+e},h="en",p={};p[h]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||"th")+"]"}};var m="$isDayjsObject",g=function(e){return e instanceof w||!(!e||!e[m])},v=function e(t,n,r){var i;if(!t)return h;if("string"==typeof t){var o=t.toLowerCase();p[o]&&(i=o),n&&(p[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;p[s]=t,i=s}return!r&&i&&(h=i),i||!r&&h},y=function(e,t){if(g(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new w(n)},b={s:f,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+f(Math.floor(n/60),2,"0")+":"+f(n%60,2,"0")},m:function e(t,n){if(t.date()=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(t,null,!0),t},e.exports=r(n(62737))},37205:function(e,t,n){var r;r=function(e){"use strict";var t={name:"pt",weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_Sa".split("_"),months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"\xba"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(t,null,!0),t},e.exports=r(n(62737))},28442:function(e,t,n){var r;r=function(e){"use strict";var t="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),n="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),r="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),i="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),o=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function a(e,t,n){var r,i;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,i=({mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"})[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}var s=function(e,r){return o.test(r)?t[e.month()]:n[e.month()]};s.s=n,s.f=t;var l=function(e,t){return o.test(t)?r[e.month()]:i[e.month()]};l.s=i,l.f=r;var u={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:s,monthsShort:l,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:a,mm:a,h:"час",hh:a,d:"день",dd:a,M:"месяц",MM:a,y:"год",yy:a},ordinal:function(e){return e},meridiem:function(e){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(u,null,!0),u},e.exports=r(n(62737))},40220:function(e,t,n){var r;r=function(e){"use strict";var t={name:"tr",weekdays:"Pazar_Pazartesi_Salı_\xc7arşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eyl\xfcl_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e){return e+"."}};return(e&&"object"==typeof e&&"default"in e?e:{default:e}).default.locale(t,null,!0),t},e.exports=r(n(62737))},30910:function(e){var t;t=function(){return function(e,t,n){var r="h:mm A",i={lastDay:"[Yesterday at] "+r,sameDay:"[Today at] "+r,nextDay:"[Tomorrow at] "+r,nextWeek:"dddd [at] "+r,lastWeek:"[Last] dddd [at] "+r,sameElse:"MM/DD/YYYY"};t.prototype.calendar=function(e,t){var r=t||this.$locale().calendar||i,o=n(e||void 0).startOf("d"),a=this.diff(o,"d",!0),s="sameElse",l=a<-6?s:a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":s,u=r[l]||i[l];return"function"==typeof u?u.call(this,n()):this.format(u)}}},e.exports=t()},42554:function(e){var t;t=function(){return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},o=function(e,t,n,r,o){var a=e.name?e:e.$locale(),s=i(a[t]),l=i(a[n]),u=s||l.map(function(e){return e.slice(0,r)});if(!o)return u;var c=a.weekStart;return u.map(function(e,t){return u[(t+(c||0))%7]})},a=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):o(e,"months")},monthsShort:function(t){return t?t.format("MMM"):o(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):o(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):o(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):o(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return o(a(),"months")},n.monthsShort=function(){return o(a(),"monthsShort","months",3)},n.weekdays=function(e){return o(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return o(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return o(a(),"weekdaysMin","weekdays",2,e)}}},e.exports=t()},78322:function(e){var t;t=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var i=n.prototype,o=i.format;r.en.formats=e,i.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n,r,i=this.$locale().formats,a=(n=t,r=void 0===i?{}:i,n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,i){var o=i&&i.toUpperCase();return n||r[i]||e[i]||r[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}));return o.call(this,a)}}},e.exports=t()},51470:function(e){var t;t=function(){return function(e,t,n){e=e||{};var r=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,n,i){return r.fromToBase(e,t,n,i)}n.en.relativeTime=i,r.fromToBase=function(t,r,o,a,s){for(var l,u,c,d=o.$locale().relativeTime||i,f=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],h=f.length,p=0;p0,g<=m.r||!m.r){g<=1&&p>0&&(m=f[p-1]);var v=d[m.l];s&&(g=s(""+g)),u="string"==typeof v?v.replace("%d",g):v(g,r,m.l,c);break}}if(r)return u;var y=c?d.future:d.past;return"function"==typeof y?y(u):y.replace("%s",u)},r.to=function(e,t){return o(e,t,this,!0)},r.from=function(e,t){return o(e,t,this)};var a=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(a(this),e)},r.fromNow=function(e){return this.from(a(this),e)}}},e.exports=t()},1388:function(e){var t;t=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,i){var o,a=function(e,n,r){void 0===r&&(r={});var i,o,a,s,l=new Date(e);return(void 0===(i=r)&&(i={}),(s=t[a=n+"|"+(o=i.timeZoneName||"short")])||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:o}),t[a]=s),s).formatToParts(l)},s=function(t,n){for(var r=a(t,n),o=[],s=0;s=0&&(o[d]=parseInt(c,10))}var f=o[3],h=o[0]+"-"+o[1]+"-"+o[2]+" "+(24===f?0:f)+":"+o[4]+":"+o[5]+":000",p=+t;return(i.utc(h).valueOf()-(p-=p%1e3))/6e4},l=r.prototype;l.tz=function(e,t){void 0===e&&(e=o);var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:e}),s=Math.round((r-new Date(a))/1e3/60),l=i(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(-(15*Math.round(r.getTimezoneOffset()/15))-s,!0);if(t){var u=l.utcOffset();l=l.add(n-u,"minute")}return l.$x.$timezone=e,l},l.offsetName=function(e){var t=this.$x.$timezone||i.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return n&&n.value};var u=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return u.call(this,e,t);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(n,e,t).tz(this.$x.$timezone,!0)},i.tz=function(e,t,n){var r=n&&t,a=n||t||o,l=s(+i(),a);if("string"!=typeof e)return i(e).tz(a);var u=function(e,t,n){var r=e-60*t*1e3,i=s(r,n);if(t===i)return[r,t];var o=s(r-=60*(i-t)*1e3,n);return i===o?[r,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(e,r).valueOf(),l,a),c=u[0],d=u[1],f=i(c).utcOffset(d);return f.$x.$timezone=a,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(e){o=e}}},e.exports=t()},90783:function(e){var t;t=function(){return function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];if(r)return(t?Object.keys(t):[]).forEach(function(e){r[e]=t[e]}),r}}},e.exports=t()},8558:function(e){var t;t=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(e){var t={date:e,utc:!0,args:arguments};return new i(t)},a.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var l=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var u=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(r)))return this;var a=16>=Math.abs(r)?60*r:r,s=this;if(i)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,e)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var c=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=o(e).local();return f.call(r,i,t,n)}}},e.exports=t()},9535:function(e){"use strict";var t=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==n},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s(Array.isArray(e)?[]:{},e,t):e}function i(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function o(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function a(e,t){try{return t in e}catch(e){return!1}}function s(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=r;var u,c,d=Array.isArray(n);return d!==Array.isArray(e)?r(n,l):d?l.arrayMerge(e,n,l):(c={},(u=l).isMergeableObject(e)&&o(e).forEach(function(t){c[t]=r(e[t],u)}),o(n).forEach(function(t){(!a(e,t)||Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))&&(a(e,t)&&u.isMergeableObject(n[t])?c[t]=(function(e,t){if(!t.customMerge)return s;var n=t.customMerge(e);return"function"==typeof n?n:s})(t,u)(e[t],n[t],u):c[t]=r(n[t],u))}),c)}s.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})},e.exports=s},2417:function(e){"use strict";e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}},6726:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f * @license MIT */e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},74811:function(e,t,n){"use strict";var r=null;"undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof MozWebSocket?r=MozWebSocket:void 0!==n.g?r=n.g.WebSocket||n.g.MozWebSocket:"undefined"!=typeof window?r=window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(r=self.WebSocket||self.MozWebSocket),t.Z=r},72799:function(e,t,n){"use strict";n.d(t,{Bu:function(){return ej},sE:function(){return eR}});let r=(e,t)=>{for(let n in t)e[n]=t[n];return e},i="numeric",o="ascii",a="alpha",s="asciinumeric",l="alphanumeric",u="domain",c="emoji",d="whitespace";function f(e,t,n){for(let r in t[i]&&(t[s]=!0,t[l]=!0),t[o]&&(t[s]=!0,t[a]=!0),t[s]&&(t[l]=!0),t[a]&&(t[l]=!0),t[l]&&(t[u]=!0),t[c]&&(t[u]=!0),t){let t=(r in n||(n[r]=[]),n[r]);0>t.indexOf(e)&&t.push(e)}}function h(e){void 0===e&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}h.groups={},h.prototype={accepts(){return!!this.t},go(e){let t=this.j[e];if(t)return t;for(let t=0;t=0&&(n[r]=!0);return n}(o.t,i),n),i):n&&f(t,n,i)),o.t=t),this.j[e]=o,o}};let p=(e,t,n,r,i)=>e.ta(t,n,r,i),m=(e,t,n,r,i)=>e.tr(t,n,r,i),g=(e,t,n,r,i)=>e.ts(t,n,r,i),v=(e,t,n,r,i)=>e.tt(t,n,r,i),y="WORD",b="UWORD",w="LOCALHOST",_="UTLD",x="SCHEME",D="SLASH_SCHEME",E="OPENBRACE",C="CLOSEBRACE",k="OPENBRACKET",S="CLOSEBRACKET",T="OPENPAREN",M="CLOSEPAREN",O="OPENANGLEBRACKET",P="CLOSEANGLEBRACKET",R="FULLWIDTHLEFTPAREN",j="FULLWIDTHRIGHTPAREN",L="LEFTCORNERBRACKET",F="RIGHTCORNERBRACKET",A="LEFTWHITECORNERBRACKET",N="RIGHTWHITECORNERBRACKET",I="FULLWIDTHLESSTHAN",B="FULLWIDTHGREATERTHAN",U="AMPERSAND",z="APOSTROPHE",H="ASTERISK",V="BACKSLASH",q="BACKTICK",W="CARET",$="COLON",Y="COMMA",Z="DOLLAR",G="EQUALS",J="EXCLAMATION",K="HYPHEN",X="PERCENT",Q="PIPE",ee="PLUS",et="POUND",en="QUERY",er="QUOTE",ei="SEMI",eo="SLASH",ea="TILDE",es="UNDERSCORE",el="EMOJI";var eu=Object.freeze({__proto__:null,WORD:y,UWORD:b,LOCALHOST:w,TLD:"TLD",UTLD:_,SCHEME:x,SLASH_SCHEME:D,NUM:"NUM",WS:"WS",NL:"NL",OPENBRACE:E,CLOSEBRACE:C,OPENBRACKET:k,CLOSEBRACKET:S,OPENPAREN:T,CLOSEPAREN:M,OPENANGLEBRACKET:O,CLOSEANGLEBRACKET:P,FULLWIDTHLEFTPAREN:R,FULLWIDTHRIGHTPAREN:j,LEFTCORNERBRACKET:L,RIGHTCORNERBRACKET:F,LEFTWHITECORNERBRACKET:A,RIGHTWHITECORNERBRACKET:N,FULLWIDTHLESSTHAN:I,FULLWIDTHGREATERTHAN:B,AMPERSAND:U,APOSTROPHE:z,ASTERISK:H,AT:"AT",BACKSLASH:V,BACKTICK:q,CARET:W,COLON:$,COMMA:Y,DOLLAR:Z,DOT:"DOT",EQUALS:G,EXCLAMATION:J,HYPHEN:K,PERCENT:X,PIPE:Q,PLUS:ee,POUND:et,QUERY:en,QUOTE:er,SEMI:ei,SLASH:eo,TILDE:ea,UNDERSCORE:es,EMOJI:el,SYM:"SYM"});let ec=/[a-z]/,ed=/\p{L}/u,ef=/\p{Emoji}/u,eh=/\d/,ep=/\s/,em=null,eg=null;function ev(e,t,n,r,i){let o;let a=t.length;for(let n=0;n=0;)i++;if(i>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}let eb={defaultProtocol:"http",events:null,format:e_,formatHref:e_,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function ew(e,t){void 0===t&&(t=null);let n=r({},eb);e&&(n=r(n,e instanceof ew?e.o:e));let i=n.ignoreTags,o=[];for(let e=0;ee,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){let r=null!=t,i=this.o[e];return i&&("object"==typeof i?"function"==typeof(i=n.t in i?i[n.t]:eb[e])&&r&&(i=i(t,n)):"function"==typeof i&&r&&(i=i(t,n.t,n))),i},getObj(e,t,n){let r=this.o[e];return"function"==typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}},ex.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"…":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return void 0===e&&(e=eb.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){let t=this.toHref(e.get("defaultProtocol")),n=e.get("formatHref",t,this),i=e.get("tagName",t,this),o=this.toFormattedString(e),a={},s=e.get("className",t,this),l=e.get("target",t,this),u=e.get("rel",t,this),c=e.getObj("attributes",t,this),d=e.getObj("events",t,this);return a.href=n,s&&(a.class=s),l&&(a.target=l),u&&(a.rel=u),c&&r(a,c),{tagName:i,attributes:a,content:o,eventListeners:d}}};let eE=eD("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),eC=eD("text"),ek=eD("nl"),eS=eD("url",{isLink:!0,toHref(e){return void 0===e&&(e=eb.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==w&&e[1].t===$}}),eT=e=>new h(e);function eM(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}"undefined"!=typeof console&&console&&console.warn||(()=>{});let eO={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function eP(e){return eO.initialized||function(){eO.scanner=function(e){void 0===e&&(e=[]);let t={};h.groups=t;let n=new h;null==em&&(em=ey("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==eg&&(eg=ey("ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2")),v(n,"'",z),v(n,"{",E),v(n,"}",C),v(n,"[",k),v(n,"]",S),v(n,"(",T),v(n,")",M),v(n,"<",O),v(n,">",P),v(n,"(",R),v(n,")",j),v(n,"「",L),v(n,"」",F),v(n,"『",A),v(n,"』",N),v(n,"<",I),v(n,">",B),v(n,"&",U),v(n,"*",H),v(n,"@","AT"),v(n,"`",q),v(n,"^",W),v(n,":",$),v(n,",",Y),v(n,"$",Z),v(n,".","DOT"),v(n,"=",G),v(n,"!",J),v(n,"-",K),v(n,"%",X),v(n,"|",Q),v(n,"+",ee),v(n,"#",et),v(n,"?",en),v(n,'"',er),v(n,"/",eo),v(n,";",ei),v(n,"~",ea),v(n,"_",es),v(n,"\\",V);let l=m(n,eh,"NUM",{[i]:!0});m(l,eh,l);let p=m(n,ec,y,{[o]:!0});m(p,ec,p);let eb=m(n,ed,b,{[a]:!0});m(eb,ec),m(eb,ed,eb);let ew=m(n,ep,"WS",{[d]:!0});v(n,"\n","NL",{[d]:!0}),v(ew,"\n"),m(ew,ep,ew);let e_=m(n,ef,el,{[c]:!0});m(e_,ef,e_),v(e_,"️",e_),m(v(e_,"‍"),ef,e_);let ex=[[ec,p]],eD=[[ec,null],[ed,eb]];for(let e=0;ee[0]>t[0]?1:-1);for(let t=0;t=0?a[u]=!0:ec.test(r)?eh.test(r)?a[s]=!0:a[o]=!0:a[i]=!0,g(n,r,r,a)}return g(n,"localhost",w,{ascii:!0}),n.jd=new h("SYM"),{start:n,tokens:r({groups:t},eu)}}(eO.customSchemes);for(let e=0;e=0&&f++,i++,c++;if(f<0)(i-=c)0&&(o.push(eM(eC,t,a)),a=[]),i-=f,c-=f;let e=d.t,r=n.slice(i-c,i);o.push(eM(e,t,r))}}return a.length>0&&o.push(eM(eC,t,a)),o}(eO.parser.start,e,function(e,t){let n=function(e){let t=[],n=e.length,r=0;for(;r56319||r+1===n||(i=e.charCodeAt(r+1))<56320||i>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,i=[],o=0,a=0;for(;a=0&&(d+=n[a].length,f++),u+=n[a].length,o+=n[a].length,a++;o-=d,a-=f,u-=d,i.push({t:c.t,v:t.slice(o-u,o),s:o-u,e:o})}return i}(eO.scanner.start,e))}function eR(e,t,n){if(void 0===t&&(t=null),void 0===n&&(n=null),t&&"object"==typeof t){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new ew(n),i=eP(e),o=[];for(let e=0;e=t||n<0||d&&r>=o}function w(){var e,n,r,i=m();if(b(i))return _(i);s=setTimeout(w,(e=i-l,n=i-u,r=t-e,d?p(r,o-n):r))}function _(e){return(s=void 0,f&&r)?y(e):(r=i=void 0,a)}function x(){var e,n=m(),o=b(n);if(r=arguments,i=this,l=n,o){if(void 0===s)return u=e=l,s=setTimeout(w,t),c?y(e):a;if(d)return s=setTimeout(w,t),y(l)}return void 0===s&&(s=setTimeout(w,t)),a}return t=v(t)||0,g(n)&&(c=!!n.leading,o=(d="maxWait"in n)?h(v(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),x.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},x.flush=function(){return void 0===s?a:_(m())},x}},57701:function(e,t,n){var r="Expected a function",i=0/0,o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,f=c||d||Function("return this")(),h=Object.prototype.toString,p=Math.max,m=Math.min,g=function(){return f.Date.now()};function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==h.call(t))return i;if(v(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=v(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var r=s.test(e);return r||l.test(e)?u(e.slice(2),r?2:8):a.test(e)?i:+e}e.exports=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw TypeError(r);return v(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),function(e,t,n){var i,o,a,s,l,u,c=0,d=!1,f=!1,h=!0;if("function"!=typeof e)throw TypeError(r);function b(t){var n=i,r=o;return i=o=void 0,c=t,s=e.apply(r,n)}function w(e){var n=e-u,r=e-c;return void 0===u||n>=t||n<0||f&&r>=a}function _(){var e,n,r,i=g();if(w(i))return x(i);l=setTimeout(_,(e=i-u,n=i-c,r=t-e,f?m(r,a-n):r))}function x(e){return(l=void 0,h&&i)?b(e):(i=o=void 0,s)}function D(){var e,n=g(),r=w(n);if(i=arguments,o=this,u=n,r){if(void 0===l)return c=e=u,l=setTimeout(_,t),d?b(e):s;if(f)return l=setTimeout(_,t),b(u)}return void 0===l&&(l=setTimeout(_,t)),s}return t=y(t)||0,v(n)&&(d=!!n.leading,a=(f="maxWait"in n)?p(y(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),D.cancel=function(){void 0!==l&&clearTimeout(l),c=0,i=u=o=l=void 0},D.flush=function(){return void 0===l?s:x(g())},D}(e,t,{leading:i,maxWait:t,trailing:o})}},94067:function(e,t,n){e=n.nmd(e);var r,i,o,a="__lodash_hash_undefined__",s=1/0,l="[object Arguments]",u="[object Array]",c="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",p="[object Map]",m="[object Number]",g="[object Object]",v="[object Promise]",y="[object RegExp]",b="[object Set]",w="[object String]",_="[object Symbol]",x="[object WeakMap]",D="[object ArrayBuffer]",E="[object DataView]",C=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,k=/^\w*$/,S=/^\./,T=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,M=/\\(\\)?/g,O=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,R={};R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R[l]=R[u]=R[D]=R[c]=R[E]=R[d]=R[f]=R[h]=R[p]=R[m]=R[g]=R[y]=R[b]=R[w]=R[x]=!1;var j="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,L="object"==typeof self&&self&&self.Object===Object&&self,F=j||L||Function("return this")(),A=t&&!t.nodeType&&t,N=A&&e&&!e.nodeType&&e,I=N&&N.exports===A&&j.process,B=function(){try{return I&&I.binding("util")}catch(e){}}(),U=B&&B.isTypedArray;function z(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,r){for(var i=e.length,o=-1;++o-1}function H(e){return e!=e}function V(e,t){return e.has(t)}function q(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function W(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function $(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Y=Array.prototype,Z=Function.prototype,G=Object.prototype,J=F["__core-js_shared__"],K=(r=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",X=Z.toString,Q=G.hasOwnProperty,ee=G.toString,et=RegExp("^"+X.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),en=F.Symbol,er=F.Uint8Array,ei=G.propertyIsEnumerable,eo=Y.splice,ea=(i=Object.keys,o=Object,function(e){return i(o(e))}),es=ej(F,"DataView"),el=ej(F,"Map"),eu=ej(F,"Promise"),ec=ej(F,"Set"),ed=ej(F,"WeakMap"),ef=ej(Object,"create"),eh=eU(es),ep=eU(el),em=eU(eu),eg=eU(ec),ev=eU(ed),ey=en?en.prototype:void 0,eb=ey?ey.valueOf:void 0,ew=ey?ey.toString:void 0;function e_(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1},ex.prototype.set=function(e,t){var n=this.__data__,r=ek(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},eD.prototype.clear=function(){this.__data__={hash:new e_,map:new(el||ex),string:new e_}},eD.prototype.delete=function(e){return eR(this,e).delete(e)},eD.prototype.get=function(e){return eR(this,e).get(e)},eD.prototype.has=function(e){return eR(this,e).has(e)},eD.prototype.set=function(e,t){return eR(this,e).set(e,t),this},eE.prototype.add=eE.prototype.push=function(e){return this.__data__.set(e,a),this},eE.prototype.has=function(e){return this.__data__.has(e)},eC.prototype.clear=function(){this.__data__=new ex},eC.prototype.delete=function(e){return this.__data__.delete(e)},eC.prototype.get=function(e){return this.__data__.get(e)},eC.prototype.has=function(e){return this.__data__.has(e)},eC.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ex){var r=n.__data__;if(!el||r.length<199)return r.push([e,t]),this;n=this.__data__=new eD(r)}return n.set(e,t),this};var eO=ec&&1/$(new ec([,-0]))[1]==s?function(e){return new ec(e)}:function(){};function eP(e,t,n,r,i,o){var a=2&i,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var c=-1,d=!0,f=1&i?new eE:void 0;for(o.set(e,t),o.set(t,e);++c-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}function eZ(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function eG(e){return!!e&&"object"==typeof e}function eJ(e){return"symbol"==typeof e||eG(e)&&ee.call(e)==_}var eK=U?function(e){return U(e)}:function(e){return eG(e)&&eY(e.length)&&!!R[ee.call(e)]};function eX(e){return eW(e)?function(e,t){var n=eq(e)||eV(e)?function(e,t){for(var n=-1,r=Array(e);++n=200){var u=t?null:eO(e);if(u)return $(u);a=!1,i=V,l=new eE}else l=t?[]:s;n:for(;++r-1}},10079:function(e){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r=200&&(d=l,f=!1,t=new r(t));n:for(;++c0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},60404:function(e,t,n){var r=n(72994)();e.exports=r},97385:function(e,t,n){var r=n(60404),i=n(63815);e.exports=function(e,t){return e&&r(e,t,i)}},29013:function(e,t,n){var r=n(23499),i=n(83863);e.exports=function(e,t){t=r(t,e);for(var n=0,o=t.length;null!=e&&n=200){var m=t?null:s(e);if(m)return l(m);f=!1,c=a,p=new r}else p=t?[]:h;n:for(;++ut||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e=l)return u;return u*("desc"==n[i]?-1:1)}}return e.index-t.index}},47120:function(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++rc))return!1;var f=l.get(e),h=l.get(t);if(f&&h)return f==t&&h==e;var p=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p-1&&e%1==0&&e-1}},97126:function(e,t,n){var r=n(22162);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},59752:function(e,t,n){var r=n(70266),i=n(57115),o=n(77970);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},20170:function(e,t,n){var r=n(58035);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},41069:function(e,t,n){var r=n(58035);e.exports=function(e){return r(this,e).get(e)}},28690:function(e,t,n){var r=n(58035);e.exports=function(e){return r(this,e).has(e)}},27323:function(e,t,n){var r=n(58035);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},14774:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},91378:function(e){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},95325:function(e,t,n){var r=n(89830);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},91850:function(e,t,n){var r=n(19044)(Object,"create");e.exports=r},93022:function(e,t,n){var r=n(23794)(Object.keys,Object);e.exports=r},69731:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},28079:function(e,t,n){e=n.nmd(e);var r=n(93330),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},68391:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},23794:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},95694:function(e,t,n){var r=n(98266),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},24683:function(e,t,n){var r=n(57115);e.exports=function(){this.__data__=new r,this.size=0}},34813:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},35115:function(e){e.exports=function(e){return this.__data__.get(e)}},28199:function(e){e.exports=function(e){return this.__data__.has(e)}},58644:function(e,t,n){var r=n(57115),i=n(77970),o=n(8705);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},13708:function(e){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r-1&&e%1==0&&e<=9007199254740991}},63117:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},50561:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},32999:function(e,t,n){var r=n(12731),i=n(98118),o=n(50561),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},71519:function(e,t,n){var r=n(12731),i=n(60443),o=n(50561);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},41108:function(e,t,n){var r=n(12731),i=n(50561);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},78470:function(e,t,n){var r=n(13272),i=n(66127),o=n(28079),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},63815:function(e,t,n){var r=n(16347),i=n(84238),o=n(17806);e.exports=function(e){return o(e)?r(e):i(e)}},88395:function(e,t,n){var r=n(16347),i=n(7369),o=n(17806);e.exports=function(e){return o(e)?r(e,!0):i(e)}},96579:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},89830:function(e,t,n){var r=n(8705);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},15162:function(e,t,n){var r=n(97302),i=n(18541)(function(e,t,n){r(e,t,n)});e.exports=i},47710:function(e){e.exports=function(){}},37656:function(e,t,n){var r=n(12958),i=n(73909)(function(e,t){return null==e?{}:r(e,t)});e.exports=i},82794:function(e,t,n){var r=n(31358),i=n(65903),o=n(59757),a=n(83863);e.exports=function(e){return o(e)?r(a(e)):i(e)}},47231:function(e,t,n){var r=n(70334);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},60229:function(e,t,n){var r=n(55648),i=n(66738),o=n(48674),a=n(60679),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},61810:function(e){e.exports=function(){return[]}},35423:function(e){e.exports=function(){return!1}},81452:function(e,t,n){var r=n(54133),i=n(88395);e.exports=function(e){return r(e,i(e))}},61250:function(e,t,n){var r=n(13963);e.exports=function(e){return null==e?"":r(e)}},95492:function(e,t,n){var r=n(32874);e.exports=function(e){return e&&e.length?r(e):[]}},90374:function(e,t,n){var r=n(37942),i=n(32874);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},30601:function(e,t,n){var r=n(38149),i=n(48674),o=n(65767),a=i(function(e,t){return o(e)?r(e,t):[]});e.exports=a},75356:function(e,t,n){"use strict";n.r(t);var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function i(e,t){if(e.length!==t.length)return!1;for(var n,i,o=0;o0?a-4:a;for(n=0;n>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(e,t,n){"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */var r=n(675),i=n(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);var n=0|h(e,t),r=a(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(M(e,ArrayBuffer)||e&&M(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(M(e,SharedArrayBuffer)||e&&M(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||M(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return S(e).length;default:if(i)return r?-1:C(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),(o=n=+n)!=o&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return -1;n=e.length-1}else if(n<0){if(!i)return -1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;rn)throw RangeError("Trying to access beyond buffer length")}function w(e,t,n,r,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function _(e,t,n,r,i,o){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function x(e,t,n,r,o){return t=+t,n>>>=0,o||_(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,o){return t=+t,n>>>=0,o||_(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);in&&(e+=" ... "),""},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(M(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,l=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,l,u,c,d,f,h,p,m,g=this.length-t;if((void 0===n||n>g)&&(n=g),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var v=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a>8,i.push(n%256),i.push(r);return i}(e,this.length-p),this,p,m);default:if(v)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),v=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;w(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);w(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||w(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return x(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return x(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!i){if(n>56319||a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return o}function k(e){for(var t=[],n=0;n=t.length)&&!(i>=e.length);++i)t[i+n]=e[i];return i}function M(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var O=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?5960464477539062e-23:0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[n+h]=255&a,h+=p,a/=256,u-=8);e[n+h-p]|=128*m}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,r),a=!1}finally{a&&delete n[e]}return o.exports}r.ab="//";var i=r(72);e.exports=i}()},88081:function(e){!function(){var t={229:function(e){var t,n,r,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c1)for(var n=1;n{let r=e;return"string"==typeof t||Array.isArray(t)?r=e.toLocaleString(t,n):(!0===t||void 0!==n)&&(r=e.toLocaleString(void 0,n)),r};e.exports=(e,a)=>{let s;if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);let l=(a=Object.assign({bits:!1,binary:!1},a)).bits?a.binary?i:r:a.binary?n:t;if(a.signed&&0===e)return` 0 ${l[0]}`;let u=e<0,c=u?"-":a.signed?"+":"";if(u&&(e=-e),void 0!==a.minimumFractionDigits&&(s={minimumFractionDigits:a.minimumFractionDigits}),void 0!==a.maximumFractionDigits&&(s=Object.assign({maximumFractionDigits:a.maximumFractionDigits},s)),e<1)return c+o(e,a.locale,s)+" "+l[0];let d=Math.min(Math.floor(a.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),l.length-1);return e/=Math.pow(a.binary?1024:1e3,d),s||(e=e.toPrecision(3)),c+o(Number(e),a.locale,s)+" "+l[d]}},99949:function(e,t,n){"use strict";var r=n(88877);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},41448:function(e,t,n){e.exports=n(99949)()},88877:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},38746:function(e,t,n){"use strict";n.d(t,{uI:function(){return X}});var r=n(2265),i=n(41448),o=n.n(i),a=n(11735),s=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function l(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=s.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var u=[".DS_Store","Thumbs.db"];function c(e){return"object"==typeof e&&null!==e}function d(e){return e.filter(function(e){return -1===u.indexOf(e.name)})}function f(e){if(null===e)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);nn)return[!1,k(n)];if(e.sizen)return[!1,k(n)]}return[!0,null]}function P(e){return null!=e}function R(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function j(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function L(e){e.preventDefault()}function F(){for(var e=arguments.length,t=Array(e),n=0;n1?n-1:0),i=1;ie.length)&&(t=e.length);for(var n=0,r=Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var G=(0,r.forwardRef)(function(e,t){var n=e.children,i=X(Z(e,I)),o=i.open,a=Z(i,B);return(0,r.useImperativeHandle)(t,function(){return{open:o}},[o]),r.createElement(r.Fragment,null,n($($({},a),{},{open:o})))});G.displayName="Dropzone";var J={disabled:!1,getFilesFromEvent:function(e){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){return c(e)&&c(e.dataTransfer)?[2,function(e,t){return(0,a.mG)(this,void 0,void 0,function(){var n;return(0,a.Jh)(this,function(r){switch(r.label){case 0:if(!e.items)return[3,2];if(n=f(e.items).filter(function(e){return"file"===e.kind}),"drop"!==t)return[2,n];return[4,Promise.all(n.map(h))];case 1:return[2,d(function e(t){return t.reduce(function(t,n){return(0,a.ev)((0,a.ev)([],(0,a.CR)(t),!1),(0,a.CR)(Array.isArray(n)?e(n):[n]),!1)},[])}(r.sent()))];case 2:return[2,d(f(e.files).map(function(e){return l(e)}))]}})})}(e.dataTransfer,e.type)]:c(e)&&c(e.target)?[2,f(e.target.files).map(function(e){return l(e)})]:Array.isArray(e)&&e.every(function(e){return"getFile"in e&&"function"==typeof e.getFile})?[2,function(e){return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(t){switch(t.label){case 0:return[4,Promise.all(e.map(function(e){return e.getFile()}))];case 1:return[2,t.sent().map(function(e){return l(e)})]}})})}(e)]:[2,[]]})})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};G.defaultProps=J,G.propTypes={children:o().func,accept:o().objectOf(o().arrayOf(o().string)),multiple:o().bool,preventDropOnDocument:o().bool,noClick:o().bool,noKeyboard:o().bool,noDrag:o().bool,noDragEventsBubbling:o().bool,minSize:o().number,maxSize:o().number,maxFiles:o().number,disabled:o().bool,getFilesFromEvent:o().func,onFileDialogCancel:o().func,onFileDialogOpen:o().func,useFsAccessApi:o().bool,autoFocus:o().bool,onDragEnter:o().func,onDragLeave:o().func,onDragOver:o().func,onDrop:o().func,onDropAccepted:o().func,onDropRejected:o().func,onError:o().func,validator:o().func};var K={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function X(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=$($({},J),e),n=t.accept,i=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,l=t.multiple,u=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,f=t.onDragOver,h=t.onDrop,p=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,v=t.onFileDialogOpen,b=t.useFsAccessApi,D=t.autoFocus,E=t.preventDropOnDocument,C=t.noClick,k=t.noKeyboard,S=t.noDrag,I=t.noDragEventsBubbling,B=t.onError,W=t.validator,G=(0,r.useMemo)(function(){return function(e){if(P(e))return Object.entries(e).reduce(function(e,t){var n=x(t,2),r=n[0],i=n[1];return[].concat(y(e),[r],y(i))},[]).filter(function(e){return A(e)||N(e)}).join(",")}(n)},[n]),X=(0,r.useMemo)(function(){return P(n)?[{description:"Files",accept:Object.entries(n).filter(function(e){var t=x(e,2),n=t[0],r=t[1],i=!0;return A(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(r)&&r.every(N)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(e,t){var n=x(t,2),r=n[0],i=n[1];return w(w({},e),{},_({},r,i))},{})}]:n},[n]),et=(0,r.useMemo)(function(){return"function"==typeof v?v:ee},[v]),en=(0,r.useMemo)(function(){return"function"==typeof g?g:ee},[g]),er=(0,r.useRef)(null),ei=(0,r.useRef)(null),eo=H((0,r.useReducer)(Q,K),2),ea=eo[0],es=eo[1],el=ea.isFocused,eu=ea.isFileDialogActive,ec=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),ed=function(){!ec.current&&eu&&setTimeout(function(){ei.current&&!ei.current.files.length&&(es({type:"closeDialog"}),en())},300)};(0,r.useEffect)(function(){return window.addEventListener("focus",ed,!1),function(){window.removeEventListener("focus",ed,!1)}},[ei,eu,en,ec]);var ef=(0,r.useRef)([]),eh=function(e){er.current&&er.current.contains(e.target)||(e.preventDefault(),ef.current=[])};(0,r.useEffect)(function(){return E&&(document.addEventListener("dragover",L,!1),document.addEventListener("drop",eh,!1)),function(){E&&(document.removeEventListener("dragover",L),document.removeEventListener("drop",eh))}},[er,E]),(0,r.useEffect)(function(){return!i&&D&&er.current&&er.current.focus(),function(){}},[er,D,i]);var ep=(0,r.useCallback)(function(e){B?B(e):console.error(e)},[B]),em=(0,r.useCallback)(function(e){var t;e.preventDefault(),e.persist(),eT(e),ef.current=[].concat(function(e){if(Array.isArray(e))return q(e)}(t=ef.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||V(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),j(e)&&Promise.resolve(o(e)).then(function(t){if(!R(e)||I){var n,r,i,o,d,f,h,p,m=t.length,g=m>0&&(r=(n={files:t,accept:G,minSize:s,maxSize:a,multiple:l,maxFiles:u,validator:W}).files,i=n.accept,o=n.minSize,d=n.maxSize,f=n.multiple,h=n.maxFiles,p=n.validator,(!!f||!(r.length>1))&&(!f||!(h>=1)||!(r.length>h))&&r.every(function(e){var t=x(M(e,i),1)[0],n=x(O(e,o,d),1)[0],r=p?p(e):null;return t&&n&&!r}));es({isDragAccept:g,isDragReject:m>0&&!g,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}}).catch(function(e){return ep(e)})},[o,c,ep,I,G,s,a,l,u,W]),eg=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eT(e);var t=j(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1},[f,I]),ev=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eT(e);var t=ef.current.filter(function(e){return er.current&&er.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),ef.current=t,!(t.length>0)&&(es({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),j(e)&&d&&d(e))},[er,d,I]),ey=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=H(M(e,G),2),i=t[0],o=t[1],l=H(O(e,s,a),2),u=l[0],c=l[1],d=W?W(e):null;if(i&&u&&!d)n.push(e);else{var f=[o,c];d&&(f=f.concat(d)),r.push({file:e,errors:f.filter(function(e){return e})})}}),(!l&&n.length>1||l&&u>=1&&n.length>u)&&(n.forEach(function(e){r.push({file:e,errors:[T]})}),n.splice(0)),es({acceptedFiles:n,fileRejections:r,type:"setFiles"}),h&&h(n,r,t),r.length>0&&m&&m(r,t),n.length>0&&p&&p(n,t)},[es,l,G,s,a,u,h,p,m,W]),eb=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),eT(e),ef.current=[],j(e)&&Promise.resolve(o(e)).then(function(t){(!R(e)||I)&&ey(t,e)}).catch(function(e){return ep(e)}),es({type:"reset"})},[o,ey,ep,I]),ew=(0,r.useCallback)(function(){if(ec.current){es({type:"openDialog"}),et(),window.showOpenFilePicker({multiple:l,types:X}).then(function(e){return o(e)}).then(function(e){ey(e,null),es({type:"closeDialog"})}).catch(function(e){e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)?(en(e),es({type:"closeDialog"})):e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)?(ec.current=!1,ei.current?(ei.current.value=null,ei.current.click()):ep(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):ep(e)});return}ei.current&&(es({type:"openDialog"}),et(),ei.current.value=null,ei.current.click())},[es,et,en,b,ey,ep,X,l]),e_=(0,r.useCallback)(function(e){er.current&&er.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),ew())},[er,ew]),ex=(0,r.useCallback)(function(){es({type:"focus"})},[]),eD=(0,r.useCallback)(function(){es({type:"blur"})},[]),eE=(0,r.useCallback)(function(){C||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return -1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/")}()?setTimeout(ew,0):ew())},[C,ew]),eC=function(e){return i?null:e},ek=function(e){return k?null:eC(e)},eS=function(e){return S?null:eC(e)},eT=function(e){I&&e.stopPropagation()},eM=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.role,r=e.onKeyDown,o=e.onFocus,a=e.onBlur,s=e.onClick,l=e.onDragEnter,u=e.onDragOver,c=e.onDragLeave,d=e.onDrop,f=Z(e,U);return $($(Y({onKeyDown:ek(F(r,e_)),onFocus:ek(F(o,ex)),onBlur:ek(F(a,eD)),onClick:eC(F(s,eE)),onDragEnter:eS(F(l,em)),onDragOver:eS(F(u,eg)),onDragLeave:eS(F(c,ev)),onDrop:eS(F(d,eb)),role:"string"==typeof n&&""!==n?n:"presentation"},void 0===t?"ref":t,er),i||k?{}:{tabIndex:0}),f)}},[er,e_,ex,eD,eE,em,eg,ev,eb,k,S,i]),eO=(0,r.useCallback)(function(e){e.stopPropagation()},[]),eP=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.onChange,r=e.onClick,i=Z(e,z);return $($({},Y({accept:G,multiple:l,type:"file",style:{display:"none"},onChange:eC(F(n,eb)),onClick:eC(F(r,eO)),tabIndex:-1},void 0===t?"ref":t,ei)),i)}},[ei,n,l,eb,i]);return $($({},ea),{},{isFocused:el&&!i,getRootProps:eM,getInputProps:eP,rootRef:er,inputRef:ei,open:eC(ew)})}function Q(e,t){switch(t.type){case"focus":return $($({},e),{},{isFocused:!0});case"blur":return $($({},e),{},{isFocused:!1});case"openDialog":return $($({},K),{},{isFileDialogActive:!0});case"closeDialog":return $($({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return $($({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return $($({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return $({},K);default:return e}}function ee(){}},20450:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,u,c;if(o.constructor!==a.constructor)return!1;if(Array.isArray(o)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(!e(o[l],a[l]))return!1;return!0}if(n&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=o.entries();!(l=c.next()).done;)if(!e(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(o[l]!==a[l])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&"function"==typeof o.valueOf&&"function"==typeof a.valueOf)return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&"function"==typeof o.toString&&"function"==typeof a.toString)return o.toString()===a.toString();if((s=(u=Object.keys(o)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&o instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!o.$$typeof)&&!e(o[u[l]],a[u[l]]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},7433:function(e,t,n){var r;r=function(e){return(()=>{var t={703:(e,t,n)=>{"use strict";var r=n(414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},697:(e,t,n)=>{e.exports=n(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},590:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,u,c;if(o.constructor!==a.constructor)return!1;if(Array.isArray(o)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(!e(o[l],a[l]))return!1;return!0}if(n&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=o.entries();!(l=c.next()).done;)if(!e(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(o[l]!==a[l])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===a.toString();if((s=(u=Object.keys(o)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&o instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!o.$$typeof)&&!e(o[u[l]],a[u[l]]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},37:function(e,t,n){!function(e,t){function n(){return(n=Object.assign||function(e){for(var t=1;t1||e(function(e,r){r.trackMouse&&(document.addEventListener(l,d),document.addEventListener(u,h));var i="touches"in t?t.touches[0]:t,o=c([i.clientX,i.clientY],r.rotationAngle);return n({},e,s,{initial:[].concat(o),xy:o,start:t.timeStamp||0})})},d=function(t){e(function(e,a){if("touches"in t&&t.touches.length>1)return e;var s="touches"in t?t.touches[0]:t,l=c([s.clientX,s.clientY],a.rotationAngle),u=l[0],d=l[1],f=u-e.xy[0],h=d-e.xy[1],p=Math.abs(f),m=Math.abs(h),g=(t.timeStamp||0)-e.start;if(pm?f>0?i:r:h>0?o:"Up",y={absX:p,absY:m,deltaX:f,deltaY:h,dir:v,event:t,first:e.first,initial:e.initial,velocity:Math.sqrt(p*p+m*m)/(g||1),vxvy:[f/(g||1),h/(g||1)]};a.onSwiping&&a.onSwiping(y);var b=!1;return(a.onSwiping||a.onSwiped||"onSwiped"+v in a)&&(b=!0),b&&a.preventDefaultTouchmoveEvent&&a.trackTouch&&t.cancelable&&t.preventDefault(),n({},e,{first:!1,eventData:y,swiping:!0})})},f=function(t){e(function(e,r){var i;if(e.swiping&&e.eventData){i=n({},e.eventData,{event:t}),r.onSwiped&&r.onSwiped(i);var o="onSwiped"+i.dir;o in r&&r[o](i)}else r.onTap&&r.onTap({event:t});return n({},e,s,{eventData:i})})},h=function(e){document.removeEventListener(l,d),document.removeEventListener(u,h),f(e)},v=function(e,t){var n=function(){};if(e&&e.addEventListener){var r=[["touchstart",a],["touchmove",d],["touchend",f]];r.forEach(function(n){var r=n[0],i=n[1];return e.addEventListener(r,i,{passive:t})}),n=function(){return r.forEach(function(t){var n=t[0],r=t[1];return e.removeEventListener(n,r)})}}return n},y={ref:function(t){null!==t&&e(function(e,r){if(e.el===t)return e;var i={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),i.cleanUpTouch=void 0),r.trackTouch&&t&&(i.cleanUpTouch=v(t,!r.preventDefaultTouchmoveEvent)),n({},e,{el:t},i)})}},t.trackMouse&&(y.onMouseDown=a),[y,v]},[p]),y=v[0],b=v[1];return m.current=(d=m.current,f=g.current,h={},!f.trackTouch&&d.cleanUpTouch?(d.cleanUpTouch(),h.cleanUpTouch=void 0):f.trackTouch&&!d.cleanUpTouch&&d.el&&(h.cleanUpTouch=b(d.el,!f.preventDefaultTouchmoveEvent)),n({},d,h)),y}}(t,n(888))},888:t=>{"use strict";t.exports=e}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}};return t[e].call(o.exports,o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";function e(){for(var e,t,n=0,r="";ney});var t=i(888),r=i.n(t);let a=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;var l="object"==typeof self&&self&&self.Object===Object&&self;let u=s||l||Function("return this")(),c=function(){return u.Date.now()};var d=/\s/,f=/^\s+/;let h=u.Symbol;var p=Object.prototype,m=p.hasOwnProperty,g=p.toString,v=h?h.toStringTag:void 0,y=Object.prototype.toString,b=h?h.toStringTag:void 0,w=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,x=/^0o[0-7]+$/i,D=parseInt;let E=function(e){if("number"==typeof e)return e;if("symbol"==typeof(n=e)||null!=n&&"object"==typeof n&&"[object Symbol]"==(null==(t=n)?void 0===t?"[object Undefined]":"[object Null]":b&&b in Object(t)?function(e){var t=m.call(e,v),n=e[v];try{e[v]=void 0;var r=!0}catch(e){}var i=g.call(e);return r&&(t?e[v]=n:delete e[v]),i}(t):y.call(t)))return NaN;if(a(e)){var t,n,r,i="function"==typeof e.valueOf?e.valueOf():e;e=a(i)?i+"":i}if("string"!=typeof e)return 0===e?e:+e;e=(r=e)?r.slice(0,function(e){for(var t=e.length;t--&&d.test(e.charAt(t)););return t}(r)+1).replace(f,""):r;var o=_.test(e);return o||x.test(e)?D(e.slice(2),o?2:8):w.test(e)?NaN:+e};var C=Math.max,k=Math.min;let S=function(e,t,n){var r,i,o,s,l,u,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function m(t){var n=r,o=i;return r=i=void 0,d=t,s=e.apply(o,n)}function g(e){var n=e-u;return void 0===u||n>=t||n<0||h&&e-d>=o}function v(){var e,n=c();if(g(n))return y(n);l=setTimeout(v,(e=t-(n-u),h?k(e,o-(n-d)):e))}function y(e){return l=void 0,p&&r?m(e):(r=i=void 0,s)}function b(){var e,n=c(),o=g(n);if(r=arguments,i=this,u=n,o){if(void 0===l)return d=e=u,l=setTimeout(v,t),f?m(e):s;if(h)return clearTimeout(l),l=setTimeout(v,t),m(u)}return void 0===l&&(l=setTimeout(v,t)),s}return t=E(t)||0,a(n)&&(f=!!n.leading,o=(h="maxWait"in n)?C(E(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),b.cancel=function(){void 0!==l&&clearTimeout(l),d=0,r=u=i=l=void 0},b.flush=function(){return void 0===l?s:y(c())},b},T=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw TypeError("Expected a function");return a(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),S(e,t,{leading:r,maxWait:t,trailing:i})};var M=i(590),O=i.n(M),P=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){R&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),A?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){R&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;F.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),I=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),Z="undefined"!=typeof WeakMap?new WeakMap:new P,G=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=new Y(t,N.getInstance(),this);Z.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){G.prototype[e]=function(){var t;return(t=Z.get(this))[e].apply(t,arguments)}});let J=void 0!==j.ResizeObserver?j.ResizeObserver:G;var K=i(37),X=i(697),Q=r().memo(function(e){var t=e.description,n=e.fullscreen,i=e.handleImageLoaded,o=e.isFullscreen,a=e.onImageError,s=e.original,l=e.originalAlt,u=e.originalHeight,c=e.originalWidth,d=e.originalTitle,f=e.sizes,h=e.srcSet,p=e.loading,m=o&&n||s;return r().createElement(r().Fragment,null,r().createElement("img",{className:"image-gallery-image",src:m,alt:l,srcSet:h,height:u,width:c,sizes:f,title:d,onLoad:function(e){return i(e,s)},onError:a,loading:p}),t&&r().createElement("span",{className:"image-gallery-description"},t))});Q.displayName="Item",Q.propTypes={description:X.string,fullscreen:X.string,handleImageLoaded:X.func.isRequired,isFullscreen:X.bool,onImageError:X.func.isRequired,original:X.string.isRequired,originalAlt:X.string,originalHeight:X.string,originalWidth:X.string,originalTitle:X.string,sizes:X.string,srcSet:X.string,loading:X.string},Q.defaultProps={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:"",loading:"eager"};var ee={left:r().createElement("polyline",{points:"15 18 9 12 15 6"}),right:r().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:r().createElement("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"}),minimize:r().createElement("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"}),play:r().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:r().createElement(r().Fragment,null,r().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),r().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},et=function(e){var t=e.strokeWidth,n=e.viewBox,i=e.icon;return r().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:n,fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"},ee[i])};et.propTypes={strokeWidth:X.number,viewBox:X.string,icon:(0,X.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired},et.defaultProps={strokeWidth:1,viewBox:"0 0 24 24"};var en=r().memo(function(e){var t=e.isFullscreen,n=e.onClick;return r().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:n,"aria-label":"Open Fullscreen"},r().createElement(et,{strokeWidth:2,icon:t?"minimize":"maximize"}))});en.displayName="Fullscreen",en.propTypes={isFullscreen:X.bool.isRequired,onClick:X.func.isRequired};var er=r().memo(function(e){var t=e.disabled,n=e.onClick;return r().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:t,onClick:n,"aria-label":"Previous Slide"},r().createElement(et,{icon:"left",viewBox:"6 0 12 24"}))});er.displayName="LeftNav",er.propTypes={disabled:X.bool.isRequired,onClick:X.func.isRequired};var ei=r().memo(function(e){var t=e.disabled,n=e.onClick;return r().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:t,onClick:n,"aria-label":"Next Slide"},r().createElement(et,{icon:"right",viewBox:"6 0 12 24"}))});ei.displayName="RightNav",ei.propTypes={disabled:X.bool.isRequired,onClick:X.func.isRequired};var eo=r().memo(function(e){var t=e.isPlaying,n=e.onClick;return r().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:n,"aria-label":"Play or Pause Slideshow"},r().createElement(et,{strokeWidth:2,icon:t?"pause":"play"}))});function ea(){return(ea=Object.assign||function(e){for(var t=1;t=3&&r&&(0===e&&t===i.length-1?o=" ".concat(s):e===i.length-1&&0===t&&(o=" ".concat(a))),o}},{key:"getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,r=t.currentSlideOffset,i=t.previousIndex,o=0===e&&1===n,a=1===e&&0===n,s=0===r,l=-100*n+100*e+r;return r>0?this.direction="left":r<0&&(this.direction="right"),a&&r>0&&(l=-100+r),o&&r<0&&(l=100+r),n!==i?0===e&&0===i&&s&&"left"===this.direction?l=100:1===e&&1===i&&s&&"right"===this.direction&&(l=-100):(a&&s&&"left"===this.direction&&(l=-100),o&&s&&"right"===this.direction&&(l=100)),l}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(e){var t=this.state,n=t.currentIndex,r=t.currentSlideOffset,i=t.slideStyle,o=this.props,a=o.infinite,s=o.items,l=o.useTranslate3D,u=o.isRTL,c=s.length-1,d=(-100*n+100*e)*(u?-1:1)+r;a&&s.length>2&&(0===n&&e===c?d=-100*(u?-1:1)+r:n===c&&0===e&&(d=100*(u?-1:1)+r)),a&&2===s.length&&(d=this.getTranslateXForTwoSlide(e));var f="translate(".concat(d,"%, 0)");return l&&(f="translate3d(".concat(d,"%, 0, 0)")),ec({display:this.isSlideVisible(e)?"inherit":"none",WebkitTransform:f,MozTransform:f,msTransform:f,OTransform:f,transform:f},i)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var e,t=this.props,n=t.useTranslate3D,r=t.isRTL,i=this.state,o=i.thumbsTranslate,a=i.thumbsStyle,s=r?-1*o:o;return this.isThumbnailVertical()?(e="translate(0, ".concat(o,"px)"),n&&(e="translate3d(0, ".concat(o,"px, 0)"))):(e="translate(".concat(s,"px, 0)"),n&&(e="translate3d(".concat(s,"px, 0, 0)"))),ec({WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e},a)}},{key:"getSlideItems",value:function(){var t=this,n=this.state.currentIndex,i=this.props,o=i.items,a=i.slideOnThumbnailOver,s=i.onClick,l=i.lazyLoad,u=i.onTouchMove,c=i.onTouchEnd,d=i.onTouchStart,f=i.onMouseOver,h=i.onMouseLeave,p=i.renderItem,m=i.renderThumbInner,g=i.showThumbnails,v=i.showBullets,y=[],b=[],w=[];return o.forEach(function(i,o){var _=t.getAlignmentClassName(o),x=i.originalClass?" ".concat(i.originalClass):"",D=i.thumbnailClass?" ".concat(i.thumbnailClass):"",E=i.renderItem||p||t.renderItem,C=i.renderThumbInner||m||t.renderThumbInner,k=!l||_||t.lazyLoaded[o];k&&l&&!t.lazyLoaded[o]&&(t.lazyLoaded[o]=!0);var S=t.getSlideStyle(o),T=r().createElement("div",{"aria-label":"Go to Slide ".concat(o+1),key:"slide-".concat(o),tabIndex:"-1",className:"image-gallery-slide ".concat(_," ").concat(x),style:S,onClick:s,onKeyUp:t.handleSlideKeyUp,onTouchMove:u,onTouchEnd:c,onTouchStart:d,onMouseOver:f,onFocus:f,onMouseLeave:h,role:"button"},k?E(i):r().createElement("div",{style:{height:"100%"}}));if(y.push(T),g&&i.thumbnail){var M=e("image-gallery-thumbnail",D,{active:n===o});b.push(r().createElement("button",{key:"thumbnail-".concat(o),type:"button",tabIndex:"0","aria-pressed":n===o?"true":"false","aria-label":"Go to Slide ".concat(o+1),className:M,onMouseLeave:a?t.onThumbnailMouseLeave:null,onMouseOver:function(e){return t.handleThumbnailMouseOver(e,o)},onFocus:function(e){return t.handleThumbnailMouseOver(e,o)},onKeyUp:function(e){return t.handleThumbnailKeyUp(e,o)},onClick:function(e){return t.onThumbnailClick(e,o)}},C(i)))}if(v){var O=e("image-gallery-bullet",i.bulletClass,{active:n===o});w.push(r().createElement("button",{type:"button",key:"bullet-".concat(o),className:O,onClick:function(e){return i.bulletOnClick&&i.bulletOnClick({item:i,itemIndex:o,currentIndex:n}),e.target.blur(),t.slideToIndex.call(t,o,e)},"aria-pressed":n===o?"true":"false","aria-label":"Go to Slide ".concat(o+1)}))}}),{slides:y,thumbnails:b,bullets:w}}},{key:"ignoreIsTransitioning",value:function(){var e=this.props.items,t=this.state,n=t.previousIndex,r=t.currentIndex,i=e.length-1;return Math.abs(n-r)>1&&!(0===n&&r===i)&&!(n===i&&0===r)}},{key:"isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"slideIsTransitioning",value:function(e){var t=this.state,n=t.isTransitioning,r=t.previousIndex,i=t.currentIndex;return n&&!(e===r||e===i)}},{key:"isSlideVisible",value:function(e){return!this.slideIsTransitioning(e)||this.ignoreIsTransitioning()&&!this.isFirstOrLastSlide(e)}},{key:"slideThumbnailBar",value:function(){var e=this.state,t=e.currentIndex,n=e.isSwipingThumbnail,r=-this.getThumbsTranslate(t);n||(0===t?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:r,thumbsSwipedTranslate:r}))}},{key:"canSlide",value:function(){return this.props.items.length>=2}},{key:"canSlideLeft",value:function(){var e=this.props,t=e.infinite,n=e.isRTL;return t||(n?this.canSlideNext():this.canSlidePrevious())}},{key:"canSlideRight",value:function(){var e=this.props,t=e.infinite,n=e.isRTL;return t||(n?this.canSlidePrevious():this.canSlideNext())}},{key:"canSlidePrevious",value:function(){return this.state.currentIndex>0}},{key:"canSlideNext",value:function(){return this.state.currentIndex=100&&(p=100),this.setState({currentSlideOffset:h*p,slideStyle:{transition:"transform ".concat(f,"ms ease-out")}})}}}else c||this.setState({swipingUpDown:!0})}},{key:"handleThumbnailSwiping",value:function(e){var t=e.event,n=e.absX,r=e.absY,i=e.dir,o=this.props,a=o.stopPropagation,s=o.swipingThumbnailTransitionDuration,l=this.state,u=l.thumbsSwipedTranslate,c=l.thumbnailsWrapperHeight,d=l.thumbnailsWrapperWidth,f=l.swipingUpDown,h=l.swipingLeftRight;if(this.isThumbnailVertical()){if((i===K.LEFT||i===K.RIGHT||h)&&!f)return void(h||this.setState({swipingLeftRight:!0}));i!==K.UP&&i!==K.DOWN||f||this.setState({swipingUpDown:!0})}else{if((i===K.UP||i===K.DOWN||f)&&!h)return void(f||this.setState({swipingUpDown:!0}));i!==K.LEFT&&i!==K.RIGHT||h||this.setState({swipingLeftRight:!0})}var p,m,g,v,y=this.thumbnails&&this.thumbnails.current;this.isThumbnailVertical()?(m=Math.abs(p=u+(i===K.DOWN?r:-r))>y.scrollHeight-c+20,g=p>20,v=y.scrollHeight<=c):(m=Math.abs(p=u+(i===K.RIGHT?n:-n))>y.scrollWidth-d+20,g=p>20,v=y.scrollWidth<=d),v||(i===K.LEFT||i===K.UP)&&m||(i===K.RIGHT||i===K.DOWN)&&g||(a&&t.stopPropagation(),this.setState({thumbsTranslate:p,thumbsStyle:{transition:"transform ".concat(s,"ms ease-out")}}))}},{key:"handleOnThumbnailSwiped",value:function(){var e=this.state.thumbsTranslate,t=this.props.slideDuration;this.resetSwipingDirection(),this.setState({isSwipingThumbnail:!0,thumbsSwipedTranslate:e,thumbsStyle:{transition:"all ".concat(t,"ms ease-out")}})}},{key:"sufficientSwipe",value:function(){return Math.abs(this.state.currentSlideOffset)>this.props.swipeThreshold}},{key:"resetSwipingDirection",value:function(){var e=this.state,t=e.swipingUpDown,n=e.swipingLeftRight;t&&this.setState({swipingUpDown:!1}),n&&this.setState({swipingLeftRight:!1})}},{key:"handleOnSwiped",value:function(e){var t=e.event,n=e.dir,r=e.velocity,i=this.props,o=i.disableSwipe,a=i.stopPropagation,s=i.flickThreshold;if(!o){var l=this.props.isRTL;a&&t.stopPropagation(),this.resetSwipingDirection();var u=(n===K.LEFT?1:-1)*(l?-1:1),c=n===K.UP||n===K.DOWN;this.handleOnSwipedTo(u,r>s&&!c)}}},{key:"handleOnSwipedTo",value:function(e,t){var n=this.state,r=n.currentIndex,i=n.isTransitioning,o=r;(this.sufficientSwipe()||t)&&!i&&(o+=e),(-1!==e||this.canSlideLeft())&&(1!==e||this.canSlideRight())||(o=r),this.unthrottledSlideToIndex(o)}},{key:"handleTouchMove",value:function(e){this.state.swipingLeftRight&&e.preventDefault()}},{key:"handleMouseDown",value:function(){this.imageGallery.current.classList.add("image-gallery-using-mouse")}},{key:"handleKeyDown",value:function(e){var t=this.props,n=t.disableKeyDown,r=t.useBrowserFullscreen,i=this.state.isFullscreen;if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!n)switch(parseInt(e.keyCode||e.which||0,10)){case 37:this.canSlideLeft()&&!this.playPauseIntervalId&&this.slideLeft(e);break;case 39:this.canSlideRight()&&!this.playPauseIntervalId&&this.slideRight(e);break;case 27:i&&!r&&this.exitFullScreen()}}},{key:"handleImageError",value:function(e){var t=this.props.onErrorImageURL;t&&-1===e.target.src.indexOf(t)&&(e.target.src=t)}},{key:"removeThumbnailsResizeObserver",value:function(){this.resizeThumbnailWrapperObserver&&this.thumbnailsWrapper&&this.thumbnailsWrapper.current&&(this.resizeThumbnailWrapperObserver.unobserve(this.thumbnailsWrapper.current),this.resizeThumbnailWrapperObserver=null)}},{key:"removeResizeObserver",value:function(){this.resizeSlideWrapperObserver&&this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&(this.resizeSlideWrapperObserver.unobserve(this.imageGallerySlideWrapper.current),this.resizeSlideWrapperObserver=null),this.removeThumbnailsResizeObserver()}},{key:"handleResize",value:function(){var e=this.state.currentIndex;this.imageGallery&&(this.imageGallery&&this.imageGallery.current&&this.setState({galleryWidth:this.imageGallery.current.offsetWidth}),this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&this.setState({gallerySlideWrapperHeight:this.imageGallerySlideWrapper.current.offsetHeight}),this.setThumbsTranslate(-this.getThumbsTranslate(e)))}},{key:"initSlideWrapperResizeObserver",value:function(e){var t=this;e&&!e.current||(this.resizeSlideWrapperObserver=new J(S(function(e){e&&e.forEach(function(e){t.setState({thumbnailsWrapperWidth:e.contentRect.width},t.handleResize)})},50)),this.resizeSlideWrapperObserver.observe(e.current))}},{key:"initThumbnailWrapperResizeObserver",value:function(e){var t=this;e&&!e.current||(this.resizeThumbnailWrapperObserver=new J(S(function(e){e&&e.forEach(function(e){t.setState({thumbnailsWrapperHeight:e.contentRect.height},t.handleResize)})},50)),this.resizeThumbnailWrapperObserver.observe(e.current))}},{key:"toggleFullScreen",value:function(){this.state.isFullscreen?this.exitFullScreen():this.fullScreen()}},{key:"togglePlay",value:function(){this.playPauseIntervalId?this.pause():this.play()}},{key:"handleScreenChange",value:function(){var e=this.props,t=e.onScreenChange,n=e.useBrowserFullscreen,r=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,i=this.imageGallery.current===r;t&&t(i),n&&this.setState({isFullscreen:i})}},{key:"slideToIndex",value:function(e,t){var n=this.state,r=n.currentIndex,i=n.isTransitioning,o=this.props,a=o.items,s=o.slideDuration,l=o.onBeforeSlide;if(!i){t&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var u=a.length-1,c=e;e<0?c=u:e>u&&(c=0),l&&c!==r&&l(c),this.setState({previousIndex:r,currentIndex:c,isTransitioning:c!==r,currentSlideOffset:0,slideStyle:{transition:"all ".concat(s,"ms ease-out")}},this.onSliding)}}},{key:"slideLeft",value:function(e){var t=this.props.isRTL;this.slideTo(e,t?"right":"left")}},{key:"slideRight",value:function(e){var t=this.props.isRTL;this.slideTo(e,t?"left":"right")}},{key:"slideTo",value:function(e,t){var n=this,r=this.state,i=r.currentIndex,o=r.currentSlideOffset,a=r.isTransitioning,s=this.props.items,l=i+("left"===t?-1:1);a||(2===s.length?this.setState({currentSlideOffset:o+("left"===t?.001:-.001),slideStyle:{transition:"none"}},function(){window.setTimeout(function(){return n.slideToIndex(l,e)},25)}):this.slideToIndex(l,e))}},{key:"handleThumbnailMouseOver",value:function(e,t){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(e,t)}},{key:"handleThumbnailKeyUp",value:function(e,t){eg(e)&&this.onThumbnailClick(e,t)}},{key:"handleSlideKeyUp",value:function(e){eg(e)&&(0,this.props.onClick)(e)}},{key:"isThumbnailVertical",value:function(){var e=this.props.thumbnailPosition;return"left"===e||"right"===e}},{key:"addScreenChangeEvent",value:function(){var e=this;ep.forEach(function(t){document.addEventListener(t,e.handleScreenChange)})}},{key:"removeScreenChangeEvent",value:function(){var e=this;ep.forEach(function(t){document.removeEventListener(t,e.handleScreenChange)})}},{key:"fullScreen",value:function(){var e=this.props.useBrowserFullscreen,t=this.imageGallery.current;e?t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():this.setModalFullscreen(!0):this.setModalFullscreen(!0),this.setState({isFullscreen:!0})}},{key:"exitFullScreen",value:function(){var e=this.state.isFullscreen,t=this.props.useBrowserFullscreen;e&&(t?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this.setModalFullscreen(!1):this.setModalFullscreen(!1),this.setState({isFullscreen:!1}))}},{key:"pauseOrPlay",value:function(){var e=this.props.infinite,t=this.state.currentIndex;e||this.canSlideRight()?this.slideToIndex(t+1):this.pause()}},{key:"play",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.props,n=t.onPlay,r=t.slideInterval,i=t.slideDuration,o=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(r,i)),n&&e&&n(o))}},{key:"pause",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.props.onPause,n=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),t&&e&&t(n))}},{key:"isImageLoaded",value:function(e){return!!this.loadedImages[e.original]||(this.loadedImages[e.original]=!0,!1)}},{key:"handleImageLoaded",value:function(e,t){var n=this.props.onImageLoad;!this.loadedImages[t]&&n&&(this.loadedImages[t]=!0,n(e))}},{key:"renderItem",value:function(e){var t=this.state.isFullscreen,n=this.props.onImageError||this.handleImageError;return r().createElement(Q,{description:e.description,fullscreen:e.fullscreen,handleImageLoaded:this.handleImageLoaded,isFullscreen:t,onImageError:n,original:e.original,originalAlt:e.originalAlt,originalHeight:e.originalHeight,originalWidth:e.originalWidth,originalTitle:e.originalTitle,sizes:e.sizes,loading:e.loading,srcSet:e.srcSet})}},{key:"renderThumbInner",value:function(e){var t=this.props.onThumbnailError||this.handleImageError;return r().createElement("span",{className:"image-gallery-thumbnail-inner"},r().createElement("img",{className:"image-gallery-thumbnail-image",src:e.thumbnail,height:e.thumbnailHeight,width:e.thumbnailWidth,alt:e.thumbnailAlt,title:e.thumbnailTitle,loading:e.thumbnailLoading,onError:t}),e.thumbnailLabel&&r().createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))}},{key:"render",value:function(){var t=this.state,n=t.currentIndex,i=t.isFullscreen,o=t.modalFullscreen,a=t.isPlaying,s=this.props,l=s.additionalClass,u=s.disableThumbnailSwipe,c=s.indexSeparator,d=s.isRTL,f=s.items,h=s.thumbnailPosition,p=s.renderFullscreenButton,m=s.renderCustomControls,g=s.renderLeftNav,v=s.renderRightNav,y=s.showBullets,b=s.showFullscreenButton,w=s.showIndex,_=s.showThumbnails,x=s.showNav,D=s.showPlayButton,E=s.renderPlayPauseButton,C=this.getThumbnailStyle(),k=this.getSlideItems(),S=k.slides,T=k.thumbnails,M=k.bullets,O=e("image-gallery-slide-wrapper",this.getThumbnailPositionClassName(h),{"image-gallery-rtl":d}),P=r().createElement("div",{ref:this.imageGallerySlideWrapper,className:O},m&&m(),this.canSlide()?r().createElement(r().Fragment,null,x&&r().createElement(r().Fragment,null,g(this.slideLeft,!this.canSlideLeft()),v(this.slideRight,!this.canSlideRight())),r().createElement(es,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},r().createElement("div",{className:"image-gallery-slides"},S))):r().createElement("div",{className:"image-gallery-slides"},S),D&&E(this.togglePlay,a),y&&r().createElement("div",{className:"image-gallery-bullets"},r().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},M)),b&&p(this.toggleFullScreen,i),w&&r().createElement("div",{className:"image-gallery-index"},r().createElement("span",{className:"image-gallery-index-current"},n+1),r().createElement("span",{className:"image-gallery-index-separator"},c),r().createElement("span",{className:"image-gallery-index-total"},f.length))),R=e("image-gallery",l,{"fullscreen-modal":o}),j=e("image-gallery-content",this.getThumbnailPositionClassName(h),{fullscreen:i}),L=e("image-gallery-thumbnails-wrapper",this.getThumbnailPositionClassName(h),{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&d},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!u},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!u});return r().createElement("div",{ref:this.imageGallery,className:R,"aria-live":"polite"},r().createElement("div",{className:j},("bottom"===h||"right"===h)&&P,_&&T.length>0?r().createElement(es,{className:L,delta:0,onSwiping:!u&&this.handleThumbnailSwiping,onSwiped:!u&&this.handleOnThumbnailSwiped},r().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},r().createElement("nav",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:C,"aria-label":"Thumbnail Navigation"},T))):null,("top"===h||"left"===h)&&P))}}],function(e,t){for(var n=0;n0&&e<1){var r=this.player.getDuration();if(!r){console.warn("ReactPlayer: could not seek using fraction –\xa0duration not yet available");return}this.player.seekTo(r*e);return}this.player.seekTo(e)}},{key:"render",value:function(){var e=this.props.activePlayer;return e?o.default.createElement(e,c({},this.props,{onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}],function(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0!==arguments[0]?arguments[0]:"player";return n.player?n.player.getInternalPlayer(e):null}),w(y(n),"seekTo",function(e,t){if(!n.player)return null;n.player.seekTo(e,t)}),w(y(n),"handleReady",function(){n.props.onReady(y(n))}),w(y(n),"getActivePlayer",(0,o.default)(function(n){for(var r=0,i=[].concat(T,m(e));re.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw 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,s=!0,l=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(l)throw a}}}}(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("string"==typeof a&&e(a)||e(a.src))return!0}}catch(e){o.e(e)}finally{o.f()}return!1}return!!((0,r.isMediaStream)(t)||(0,r.isBlobUrl)(t))||y.test(t)||b.test(t)||w.test(t)||_.test(t)||x.test(t)}}},8816:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(2265)),o=n(52975),a=n(84170);function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1,m=h&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||p)&&!window.MSStream,g=/www\.dropbox\.com\/.+/,v=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(h,e);var t,n,s=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=d(h);return e=t?Reflect.construct(n,arguments,d(this).constructor):n.apply(this,arguments),e&&("object"===r(e)||"function"==typeof e)?e:c(this)});function h(){var e;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,h);for(var t=arguments.length,n=Array(t),r=0;rparseInt(a)?t.dash.getDebug().setLogToBrowserConsole(!1):t.dash.updateSettings({debug:{logLevel:n.Debug.LOG_LEVEL_NONE}}),t.props.onLoaded()}),this.shouldUseFLV(e)&&(0,o.getSDK)("https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js".replace("VERSION",s),"flvjs").then(function(n){t.flv=n.createPlayer({type:"flv",url:e}),t.flv.attachMediaElement(t.player),t.flv.on(n.Events.ERROR,function(e,r){t.props.onError(e,r,t.flv,n)}),t.flv.load(),t.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,o.isMediaStream)(e))try{this.player.srcObject=e}catch(t){this.player.src=window.URL.createObjectURL(e)}}},{key:"play",value:function(){var e=this.player.play();e&&e.catch(this.props.onError)}},{key:"pause",value:function(){this.player.pause()}},{key:"stop",value:function(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}},{key:"seekTo",value:function(e){this.player.currentTime=e}},{key:"setVolume",value:function(e){this.player.volume=e}},{key:"enablePIP",value:function(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,o.supportsWebKitPresentationMode)(this.player)&&"picture-in-picture"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("picture-in-picture")}},{key:"disablePIP",value:function(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,o.supportsWebKitPresentationMode)(this.player)&&"inline"!==this.player.webkitPresentationMode&&this.player.webkitSetPresentationMode("inline")}},{key:"setPlaybackRate",value:function(e){try{this.player.playbackRate=e}catch(e){this.props.onError(e)}}},{key:"getDuration",value:function(){if(!this.player)return null;var e=this.player,t=e.duration,n=e.seekable;return t===1/0&&n.length>0?n.end(n.length-1):t}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var e=this.player.buffered;if(0===e.length)return 0;var t=e.end(e.length-1),n=this.getDuration();return t>n?n:t}},{key:"getSource",value:function(e){var t=this.shouldUseHLS(e),n=this.shouldUseDASH(e),r=this.shouldUseFLV(e);return e instanceof Array||(0,o.isMediaStream)(e)||t||n||r?void 0:g.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.playing,r=e.loop,o=e.controls,a=e.muted,s=e.config,u=e.width,c=e.height,d=this.shouldUseAudio(this.props);return i.default.createElement(d?"audio":"video",l({ref:this.ref,src:this.getSource(t),style:{width:"auto"===u?u:"100%",height:"auto"===c?c:"100%"},preload:"auto",autoPlay:n||void 0,controls:o,muted:a,loop:r},s.attributes),t instanceof Array&&t.map(this.renderSourceElement),s.tracks.map(this.renderTrack))}}],function(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r.default,a=f(t);return a&&i(a)?Promise.resolve(a):new Promise(function(r,i){if(h[e]){h[e].push({resolve:r,reject:i});return}h[e]=[{resolve:r,reject:i}];var a=function(t){h[e].forEach(function(e){return e.resolve(t)})};if(n){var s=window[n];window[n]=function(){s&&s(),a(f(t))}}o(e,function(r){r?(h[e].forEach(function(e){return e.reject(r)}),h[e]=null):n||a(f(t))})})},t.getConfig=function(e,t){return(0,i.default)(t.config,e.config)},t.omit=function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i1?r-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:document.createElement("video"),t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode&&t};var r=o(n(24054)),i=o(n(9535));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&g(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&g(r.height)/e.offsetHeight||1);var a=(d(e)?c(e):window).visualViewport,s=!y()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/i,u=(r.top+(s&&a?a.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:u,right:l+h,bottom:u+p,left:l,x:l,y:u}}function w(e){var t=c(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _(e){return e?(e.nodeName||"").toLowerCase():null}function x(e){return((d(e)?e.ownerDocument:e.document)||window.document).documentElement}function D(e){return b(x(e)).left+w(e).scrollLeft}function E(e){return c(e).getComputedStyle(e)}function C(e){var t=E(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function k(e){var t=b(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function S(e){return"html"===_(e)?e:e.assignedSlot||e.parentNode||(h(e)?e.host:null)||x(e)}function T(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(_(t))>=0?t.ownerDocument.body:f(t)&&C(t)?t:e(S(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=c(r),a=i?[o].concat(o.visualViewport||[],C(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(T(S(a)))}function M(e){return f(e)&&"fixed"!==E(e).position?e.offsetParent:null}function O(e){for(var t=c(e),n=M(e);n&&["table","td","th"].indexOf(_(n))>=0&&"static"===E(n).position;)n=M(n);return n&&("html"===_(n)||"body"===_(n)&&"static"===E(n).position)?t:n||function(e){var t=/firefox/i.test(v());if(/Trident/i.test(v())&&f(e)&&"fixed"===E(e).position)return null;var n=S(e);for(h(n)&&(n=n.host);f(n)&&0>["html","body"].indexOf(_(n));){var r=E(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var P="bottom",R="right",j="left",L="auto",F=["top",P,R,j],A="start",N="viewport",I="popper",B=F.reduce(function(e,t){return e.concat([t+"-"+A,t+"-end"])},[]),U=[].concat(F,[L]).reduce(function(e,t){return e.concat([t,t+"-"+A,t+"-end"])},[]),z=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],H={placement:"bottom",modifiers:[],strategy:"absolute"};function V(){for(var e=arguments.length,t=Array(e),n=0;n=0?"x":"y"}function Z(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?W(i):null,a=i?$(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case"top":t={x:s,y:n.y-r.height};break;case P:t={x:s,y:n.y+n.height};break;case R:t={x:n.x+n.width,y:l};break;case j:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?Y(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case A:t[u]=t[u]-(n[c]/2-r[c]/2);break;case"end":t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}var G={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(e){var t,n,r,i,o,a,s,l=e.popper,u=e.popperRect,d=e.placement,f=e.variation,h=e.offsets,p=e.position,m=e.gpuAcceleration,v=e.adaptive,y=e.roundOffsets,b=e.isFixed,w=h.x,_=void 0===w?0:w,D=h.y,C=void 0===D?0:D,k="function"==typeof y?y({x:_,y:C}):{x:_,y:C};_=k.x,C=k.y;var S=h.hasOwnProperty("x"),T=h.hasOwnProperty("y"),M=j,L="top",F=window;if(v){var A=O(l),N="clientHeight",I="clientWidth";A===c(l)&&"static"!==E(A=x(l)).position&&"absolute"===p&&(N="scrollHeight",I="scrollWidth"),("top"===d||(d===j||d===R)&&"end"===f)&&(L=P,C-=(b&&A===F&&F.visualViewport?F.visualViewport.height:A[N])-u.height,C*=m?1:-1),(d===j||("top"===d||d===P)&&"end"===f)&&(M=R,_-=(b&&A===F&&F.visualViewport?F.visualViewport.width:A[I])-u.width,_*=m?1:-1)}var B=Object.assign({position:p},v&&G),U=!0===y?(t={x:_,y:C},n=c(l),r=t.x,i=t.y,{x:g(r*(o=n.devicePixelRatio||1))/o||0,y:g(i*o)/o||0}):{x:_,y:C};return(_=U.x,C=U.y,m)?Object.assign({},B,((s={})[L]=T?"0":"",s[M]=S?"0":"",s.transform=1>=(F.devicePixelRatio||1)?"translate("+_+"px, "+C+"px)":"translate3d("+_+"px, "+C+"px, 0)",s)):Object.assign({},B,((a={})[L]=T?C+"px":"",a[M]=S?_+"px":"",a.transform="",a))}var K={left:"right",right:"left",bottom:"top",top:"bottom"};function X(e){return e.replace(/left|right|bottom|top/g,function(e){return K[e]})}var Q={start:"end",end:"start"};function ee(e){return e.replace(/start|end/g,function(e){return Q[e]})}function et(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&h(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function en(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function er(e,t,n){var r,i,o,a,s,l,u,f,h,m;return t===N?en(function(e,t){var n=c(e),r=x(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=y();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+D(e),y:l}}(e,n)):d(t)?((r=b(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):en((i=x(e),a=x(i),s=w(i),l=null==(o=i.ownerDocument)?void 0:o.body,u=p(a.scrollWidth,a.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),f=p(a.scrollHeight,a.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),h=-s.scrollLeft+D(i),m=-s.scrollTop,"rtl"===E(l||a).direction&&(h+=p(a.clientWidth,l?l.clientWidth:0)-u),{width:u,height:f,x:h,y:m}))}function ei(){return{top:0,right:0,bottom:0,left:0}}function eo(e){return Object.assign({},ei(),e)}function ea(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function es(e,t){void 0===t&&(t={});var n,r,i,o,a,s,l,u,c=t,h=c.placement,g=void 0===h?e.placement:h,v=c.strategy,y=void 0===v?e.strategy:v,w=c.boundary,D=c.rootBoundary,C=c.elementContext,k=void 0===C?I:C,M=c.altBoundary,j=c.padding,L=void 0===j?0:j,A=eo("number"!=typeof L?L:ea(L,F)),B=e.rects.popper,U=e.elements[void 0!==M&&M?k===I?"reference":I:k],z=(n=d(U)?U:U.contextElement||x(e.elements.popper),r=void 0===w?"clippingParents":w,i=void 0===D?N:D,l=(s=[].concat("clippingParents"===r?(o=T(S(n)),d(a=["absolute","fixed"].indexOf(E(n).position)>=0&&f(n)?O(n):n)?o.filter(function(e){return d(e)&&et(e,a)&&"body"!==_(e)}):[]):[].concat(r),[i]))[0],(u=s.reduce(function(e,t){var r=er(n,t,y);return e.top=p(r.top,e.top),e.right=m(r.right,e.right),e.bottom=m(r.bottom,e.bottom),e.left=p(r.left,e.left),e},er(n,l,y))).width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u),H=b(e.elements.reference),V=Z({reference:H,element:B,strategy:"absolute",placement:g}),q=en(Object.assign({},B,V)),W=k===I?q:H,$={top:z.top-W.top+A.top,bottom:W.bottom-z.bottom+A.bottom,left:z.left-W.left+A.left,right:W.right-z.right+A.right},Y=e.modifiersData.offset;if(k===I&&Y){var G=Y[g];Object.keys($).forEach(function(e){var t=[R,P].indexOf(e)>=0?1:-1,n=["top",P].indexOf(e)>=0?"y":"x";$[e]+=G[n]*t})}return $}function el(e,t,n){return p(e,m(t,n))}function eu(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ec(e){return["top",R,P,j].some(function(t){return e[t]>=0})}var ed=(o=void 0===(i=(r={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=c(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(e){e.addEventListener("scroll",n.update,q)}),s&&l.addEventListener("resize",n.update,q),function(){o&&u.forEach(function(e){e.removeEventListener("scroll",n.update,q)}),s&&l.removeEventListener("resize",n.update,q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Z({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=n.adaptive,o=n.roundOffsets,a=void 0===o||o,s={placement:W(t.placement),variation:$(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,J(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,J(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];f(i)&&_(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});f(r)&&_(r)&&(Object.assign(r.style,o),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=U.reduce(function(e,n){var r,i,a,s,l,u;return e[n]=(r=t.rects,a=[j,"top"].indexOf(i=W(n))>=0?-1:1,l=(s="function"==typeof o?o(Object.assign({},r,{placement:n})):o)[0],u=s[1],l=l||0,u=(u||0)*a,[j,R].indexOf(i)>=0?{x:u,y:l}:{x:l,y:u}),e},{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,v=W(g)===g,y=l||(v||!p?[X(g)]:function(e){if(W(e)===L)return[];var t=X(e);return[ee(e),t,ee(t)]}(g)),b=[g].concat(y).reduce(function(e,n){var r,i,o,a,s,l,f,h,g,v,y,b;return e.concat(W(n)===L?(i=(r={placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:m}).placement,o=r.boundary,a=r.rootBoundary,s=r.padding,l=r.flipVariations,h=void 0===(f=r.allowedAutoPlacements)?U:f,0===(y=(v=(g=$(i))?l?B:B.filter(function(e){return $(e)===g}):F).filter(function(e){return h.indexOf(e)>=0})).length&&(y=v),Object.keys(b=y.reduce(function(e,n){return e[n]=es(t,{placement:n,boundary:o,rootBoundary:a,padding:s})[W(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),w=t.rects.reference,_=t.rects.popper,x=new Map,D=!0,E=b[0],C=0;C=0,O=M?"width":"height",N=es(t,{placement:k,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),I=M?T?R:j:T?P:"top";w[O]>_[O]&&(I=X(I));var z=X(I),H=[];if(o&&H.push(N[S]<=0),s&&H.push(N[I]<=0,N[z]<=0),H.every(function(e){return e})){E=k,D=!1;break}x.set(k,H)}if(D)for(var V=p?3:1,q=function(e){var t=b.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},Y=V;Y>0&&"break"!==q(Y);Y--);t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=n.altAxis,a=n.boundary,s=n.rootBoundary,l=n.altBoundary,u=n.padding,c=n.tether,d=void 0===c||c,f=n.tetherOffset,h=void 0===f?0:f,g=es(t,{boundary:a,rootBoundary:s,padding:u,altBoundary:l}),v=W(t.placement),y=$(t.placement),b=!y,w=Y(v),_="x"===w?"y":"x",x=t.modifiersData.popperOffsets,D=t.rects.reference,E=t.rects.popper,C="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,S="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(x){if(void 0===i||i){var L,F="y"===w?"top":j,N="y"===w?P:R,I="y"===w?"height":"width",B=x[w],U=B+g[F],z=B-g[N],H=d?-E[I]/2:0,V=y===A?D[I]:E[I],q=y===A?-E[I]:-D[I],Z=t.elements.arrow,G=d&&Z?k(Z):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ei(),K=J[F],X=J[N],Q=el(0,D[I],G[I]),ee=b?D[I]/2-H-Q-K-S.mainAxis:V-Q-K-S.mainAxis,et=b?-D[I]/2+H+Q+X+S.mainAxis:q+Q+X+S.mainAxis,en=t.elements.arrow&&O(t.elements.arrow),er=en?"y"===w?en.clientTop||0:en.clientLeft||0:0,eo=null!=(L=null==T?void 0:T[w])?L:0,ea=el(d?m(U,B+ee-eo-er):U,B,d?p(z,B+et-eo):z);x[w]=ea,M[w]=ea-B}if(void 0!==o&&o){var eu,ec,ed="x"===w?"top":j,ef="x"===w?P:R,eh=x[_],ep="y"===_?"height":"width",em=eh+g[ed],eg=eh-g[ef],ev=-1!==["top",j].indexOf(v),ey=null!=(ec=null==T?void 0:T[_])?ec:0,eb=ev?em:eh-D[ep]-E[ep]-ey+S.altAxis,ew=ev?eh+D[ep]+E[ep]-ey-S.altAxis:eg,e_=d&&ev?(eu=el(eb,eh,ew))>ew?ew:eu:el(d?eb:em,eh,d?ew:eg);x[_]=e_,M[_]=e_-eh}t.modifiersData[r]=M}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,i=e.name,o=e.options,a=r.elements.arrow,s=r.modifiersData.popperOffsets,l=W(r.placement),u=Y(l),c=[j,R].indexOf(l)>=0?"height":"width";if(a&&s){var d=eo("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:ea(t,F)),f=k(a),h="y"===u?"top":j,p="y"===u?P:R,m=r.rects.reference[c]+r.rects.reference[u]-s[u]-r.rects.popper[c],g=s[u]-r.rects.reference[u],v=O(a),y=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,b=d[h],w=y-f[c]-d[p],_=y/2-f[c]/2+(m/2-g/2),x=el(b,_,w);r.modifiersData[i]=((n={})[u]=x,n.centerOffset=x-_,n)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&et(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=es(t,{elementContext:"reference"}),s=es(t,{altBoundary:!0}),l=eu(a,r),u=eu(s,i,o),c=ec(l),d=ec(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:i,s=void 0===(a=r.defaultOptions)?H:a,function(e,t,n){void 0===n&&(n=s);var r,i,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},H,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,h={state:a,setOptions:function(n){var r,i,u,c,f,m="function"==typeof n?n(a.options):n;p(),a.options=Object.assign({},s,a.options,m),a.scrollParents={reference:d(e)?T(e):e.contextElement?T(e.contextElement):[],popper:T(t)};var g=(i=Object.keys(r=[].concat(o,a.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),u=new Map,c=new Set,f=[],i.forEach(function(e){u.set(e.name,e)}),i.forEach(function(e){c.has(e.name)||function e(t){c.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!c.has(t)){var n=u.get(t);n&&e(n)}}),f.push(t)}(e)}),z.reduce(function(e,t){return e.concat(f.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=g.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var i=r({state:a,name:t,instance:h,options:void 0===n?{}:n});l.push(i||function(){})}}),h.update()},forceUpdate:function(){if(!u){var e,t,n,r,i,o,s,l,d,p,m,v,y=a.elements,E=y.reference,S=y.popper;if(V(E,S)){a.rects={reference:(t=O(S),n="fixed"===a.options.strategy,r=f(t),l=f(t)&&(o=g((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,s=g(i.height)/t.offsetHeight||1,1!==o||1!==s),d=x(t),p=b(E,l,n),m={scrollLeft:0,scrollTop:0},v={x:0,y:0},(r||!r&&!n)&&(("body"!==_(t)||C(d))&&(m=(e=t)!==c(e)&&f(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:w(e)),f(t)?(v=b(t,!0),v.x+=t.clientLeft,v.y+=t.clientTop):d&&(v.x=D(d))),{x:p.left+m.scrollLeft-v.x,y:p.top+m.scrollTop-v.y,width:p.width,height:p.height}),popper:k(S)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var T=0;T-1&&e.splice(t,1)};case 0:e.slice().forEach(function(e){e(n)});return;default:throw Error("unrecognized action "+t)}}}function w(e){var t=e,n=b();return function(e,r){switch(e){case 1:r(t);break;case 0:t=r;break;case 4:return t}return n(e,r)}}function _(e){var t;return v(e,t=b()),t}function x(e,t){var n;return v(e,n=w(t)),n}function D(){for(var e=arguments.length,t=Array(e),n=0;n1?t-1:0),r=1;r0?e--:t(n)}}}function R(e){var t,n;return function(r){return function(i){t=i,n||(n=setTimeout(function(){n=void 0,r(t)},e))}}}function j(e){var t,n;return function(r){return function(i){t=i,n&&clearTimeout(n),n=setTimeout(function(){r(t)},e)}}}function L(){for(var e=arguments.length,t=Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var H=["children"],V="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function q(e,t,n){var r=Object.keys(t.required||{}),o=Object.keys(t.optional||{}),a=Object.keys(t.methods||{}),u=Object.keys(t.events||{}),c=(0,i.createContext)({});function f(e,n){e.propsReady&&p(e.propsReady,!1);for(var i,a=z(r);!(i=a()).done;){var s=i.value;p(e[t.required[s]],n[s])}for(var l,u=z(o);!(l=u()).done;){var c=l.value;c in n&&p(e[t.optional[c]],n[c])}e.propsReady&&p(e.propsReady,!0)}function v(e){return u.reduce(function(n,r){var i,o,a,s;return n[r]=(i=e[t.events[r]],s=function(){return o&&o()},function(e,t){switch(e){case 1:if(!t)return s(),h;if(a===t)return;return s(),a=t,o=i(1,t);case 2:s(),a=null;return;default:throw Error("unrecognized action "+e)}}),n},{})}return{Component:(0,i.forwardRef)(function(s,h){var g=s.children,y=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(s,H),b=(0,i.useState)(function(){var t,n;return t=new Map,f(n=function e(n){var r=n.id,i=n.constructor,o=n.dependencies,a=n.singleton;if(a&&t.has(r))return t.get(r);var s=i(o.map(function(t){return e(t)}));return a&&t.set(r,s),s}(e),y),n})[0],w=(0,i.useState)(l(v,b))[0];return V(function(){for(var e,t=z(u);!(e=t()).done;){var n=e.value;n in y&&(0,w[n])(1,y[n])}return function(){Object.values(w).map(m)}},[y,w,b]),V(function(){f(b,y)}),(0,i.useImperativeHandle)(h,d(a.reduce(function(e,n){return e[n]=function(e){p(b[t.methods[n]],e)},e},{}))),(0,i.createElement)(c.Provider,{value:b},n?(0,i.createElement)(n,function(e,t){for(var n={},r={},i=0,o=e.length;i=0||(i[n]=e[n]);return i}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var J,K,X="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;(r=K||(K={}))[r.DEBUG=0]="DEBUG",r[r.INFO=1]="INFO",r[r.WARN=2]="WARN",r[r.ERROR=3]="ERROR";var Q=((J={})[K.DEBUG]="debug",J[K.INFO]="log",J[K.WARN]="warn",J[K.ERROR]="error",J),ee=I(function(){var e=w(K.ERROR);return{log:w(function(t,n,r){var i;void 0===r&&(r=K.INFO),r>=(null!=(i=("undefined"==typeof globalThis?window:globalThis).VIRTUOSO_LOG_LEVEL)?i:g(e))&&console[Q[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,n)}),logLevel:e}},[],{singleton:!0});function et(e,t){void 0===t&&(t=!0);var n=(0,i.useRef)(null),r=function(e){};if("undefined"!=typeof ResizeObserver){var o=new ResizeObserver(function(t){var n=t[0].target;null!==n.offsetParent&&e(n)});r=function(e){e&&t?(o.observe(e),n.current=e):(n.current&&o.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function en(e,t){return void 0===t&&(t=!0),et(e,t).callbackRef}function er(e,t,n,r,i,o,a){return et(function(n){for(var s,l=function(e,t,n,r){var i=e.length;if(0===i)return null;for(var o=[],a=0;aMath.abs(e-t)}function ea(e,t,n,r,o){void 0===r&&(r=h);var a=(0,i.useRef)(null),s=(0,i.useRef)(null),l=(0,i.useRef)(null),u=(0,i.useRef)(!1),c=(0,i.useCallback)(function(n){var r=n.target,i=r===window||r===document,o=i?window.pageYOffset||document.documentElement.scrollTop:r.scrollTop,a=i?document.documentElement.scrollHeight:r.scrollHeight,c=i?window.innerHeight:r.offsetHeight,d=function(){e({scrollTop:Math.max(o,0),scrollHeight:a,viewportHeight:c})};u.current?(0,W.flushSync)(d):d(),u.current=!1,null!==s.current&&(o===s.current||o<=0||o===a-c)&&(s.current=null,t(!0),l.current&&(clearTimeout(l.current),l.current=null))},[e,t]);return(0,i.useEffect)(function(){var e=o||a.current;return r(o||a.current),c({target:e}),e.addEventListener("scroll",c,{passive:!0}),function(){r(null),e.removeEventListener("scroll",c)}},[a,c,n,r,o]),{scrollerRef:a,scrollByCallback:function(e){u.current=!0,a.current.scrollBy(e)},scrollToCallback:function(n){var r=a.current;if(r&&(!("offsetHeight"in r)||0!==r.offsetHeight)){var i,o,u,c="smooth"===n.behavior;if(r===window?(o=Math.max(ei(document.documentElement,"height"),document.documentElement.scrollHeight),i=window.innerHeight,u=document.documentElement.scrollTop):(o=r.scrollHeight,i=ei(r,"height"),u=r.scrollTop),n.top=Math.ceil(Math.max(Math.min(o-i,n.top),0)),eo(i,o)||n.top===u)return e({scrollTop:u,scrollHeight:o,viewportHeight:i}),void(c&&t(!0));c?(s.current=n.top,l.current&&clearTimeout(l.current),l.current=setTimeout(function(){l.current=null,s.current=null,t(!0)},1e3)):s.current=null,r.scrollTo(n)}}}}var es=I(function(){var e=b(),t=b(),n=w(0),r=b(),i=w(0),o=b(),a=b(),s=w(0),l=w(0),u=w(0),c=w(0),d=b(),f=b(),h=w(!1),p=w(!1);return v(E(e,T(function(e){return e.scrollTop})),t),v(E(e,T(function(e){return e.scrollHeight})),a),v(t,i),{scrollContainerState:e,scrollTop:t,viewportHeight:o,headerHeight:s,fixedHeaderHeight:l,fixedFooterHeight:u,footerHeight:c,scrollHeight:a,smoothScrollTargetReached:r,react18ConcurrentRendering:p,scrollTo:d,scrollBy:f,statefulScrollTop:i,deviation:n,scrollingInProgress:h}},[],{singleton:!0}),el={lvl:0};function eu(e,t,n,r,i){return void 0===r&&(r=el),void 0===i&&(i=el),{k:e,v:t,lvl:n,l:r,r:i}}function ec(e){return e===el}function ed(e,t,n){if(void 0===n&&(n="k"),ec(e))return[-1/0,void 0];if(e[n]===t)return[e.k,e.v];if(e[n]e.r.lvl}function eg(e){var t=e.l,n=e.r,r=e.lvl;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(em(t))return ew(ep(e,{lvl:r-1}));if(ec(t)||ec(t.r))throw Error("Unexpected empty nodes");return ep(t.r,{l:ep(t,{r:t.r.l}),r:ep(e,{l:t.r.r,lvl:r-1}),lvl:r})}if(em(e))return eb(ep(e,{lvl:r-1}));if(ec(n)||ec(n.l))throw Error("Unexpected empty nodes");var i=n.l,o=em(i)?n.lvl-1:n.lvl;return ep(i,{l:ep(e,{r:i.l,lvl:r-1}),r:eb(ep(n,{l:i.r,lvl:o})),lvl:i.lvl+1})}function ev(e,t,n){return ec(e)?[]:ey(function e(t,n,r){if(ec(t))return[];var i=t.k,o=t.v,a=t.r,s=[];return i>n&&(s=s.concat(e(t.l,n,r))),i>=n&&i<=r&&s.push({k:i,v:o}),i<=r&&(s=s.concat(e(a,n,r))),s}(e,ed(e,t)[0],n),function(e){return{index:e.k,value:e.v}})}function ey(e,t){var n=e.length;if(0===n)return[];for(var r=t(e[0]),i=r.index,o=r.value,a=[],s=1;s0&&(0,t[2])("received item sizes",n,K.DEBUG);var o=e.sizeTree,a=o,s=0;if(r.length>0&&ec(o)&&2===n.length){var l=n[0].size,u=n[1].size;a=r.reduce(function(e,t){return ef(ef(e,t,l),t+1,u)},a)}else{var c=function(e,t){for(var n,r=ec(e)?0:1/0,i=G(t);!(n=i()).done;){var o=n.value,a=o.size,s=o.startIndex,l=o.endIndex;if(r=Math.min(r,s),ec(e))e=ef(e,0,a);else{var u=ev(e,s-1,l+1);if(!u.some(function(e){var t=e.size,n=e.startIndex,r=e.endIndex;return function(e){return e.start===n&&(e.end===r||1/0===e.end)&&e.value===t}}(o))){for(var c,d=!1,f=!1,h=G(u);!(c=h()).done;){var p=c.value,m=p.start,g=p.end,v=p.value;d?(l>=m||a===v)&&(e=function e(t,n){if(ec(t))return el;var r=t.k,i=t.l,o=t.r;if(n===r){if(ec(i))return o;if(ec(o))return i;var a=function e(t){return ec(t.r)?[t.k,t.v]:e(t.r)}(i);return eg(ep(t,{k:a[0],v:a[1],l:function e(t){return ec(t.r)?t.l:eg(ep(t,{r:e(t.r)}))}(i)}))}return eg(ep(t,nl&&l>=m&&v!==a&&(e=ef(e,l+1,v))}f&&(e=ef(e,s,a))}}}return[e,r]}(a,n);a=c[0],s=c[1]}if(a===o)return e;var d=ek(e.offsetTree,s,a,i),f=d.offsetTree;return{sizeTree:a,offsetTree:f,lastIndex:d.lastIndex,lastOffset:d.lastOffset,lastSize:d.lastSize,groupOffsetTree:r.reduce(function(e,t){return ef(e,t,eT(t,f,i))},el),groupIndices:r}}function eT(e,t,n){if(0===t.length)return 0;var r=t[e_(t,e,eD)],i=e-r.index,o=r.size*i+(i-1)*n+r.offset;return o>0?o+n:o}function eM(e,t,n){if(void 0!==e.groupIndex)return t.groupIndices[e.groupIndex]+1;var r=eO("LAST"===e.index?n:e.index,t);return Math.max(0,r,Math.min(n,r))}function eO(e,t){if(!eP(t))return e;for(var n=0;t.groupIndices[n]<=e+n;)n++;return e+n}function eP(e){return!ec(e.groupOffsetTree)}var eR={offsetHeight:"height",offsetWidth:"width"},ej=I(function(e){var t=e[0].log,n=e[1].recalcInProgress,r=b(),i=b(),o=x(i,0),a=b(),s=b(),l=w(0),u=w([]),c=w(void 0),d=w(void 0),f=w(function(e,t){return ei(e,eR[t])}),h=w(void 0),m=w(0),y={offsetTree:[],sizeTree:el,groupOffsetTree:el,lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},D=x(E(r,L(u,t,m),O(eS,y),k()),y);v(E(u,S(function(e){return e.length>0}),L(D,m),T(function(e){var t=e[0],n=e[1],r=e[2],i=t.reduce(function(e,t,i){return ef(e,t,eT(t,n.offsetTree,r)||i)},el);return $({},n,{groupIndices:t,groupOffsetTree:i})})),D),v(E(i,L(D),S(function(e){return e[0]0?(p(n,!0),p(a,e)):e<0&&p(s,e)}),E(l,L(t))(1,function(e){e[0]<0&&(0,e[1])("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:l},K.ERROR)});var P=_(a);v(E(a,L(D),T(function(e){var t=e[0],n=e[1];if(n.groupIndices.length>0)throw Error("Virtuoso: prepending items does not work with groups");return eh(n.sizeTree).reduce(function(e,n){var r=n.k,i=n.v;return{ranges:[].concat(e.ranges,[{startIndex:e.prevIndex,endIndex:r+t-1,size:e.prevSize}]),prevIndex:r+t,prevSize:i}},{ranges:[],prevIndex:0,prevSize:n.lastSize}).ranges})),r);var R=_(E(s,L(D,m),T(function(e){return eT(-e[0],e[1].offsetTree,e[2])})));return v(E(s,L(D,m),T(function(e){var t=e[0],n=e[1],r=e[2];if(n.groupIndices.length>0)throw Error("Virtuoso: shifting items does not work with groups");var i=eh(n.sizeTree).reduce(function(e,n){var r=n.v;return ef(e,Math.max(0,n.k+t),r)},el);return $({},n,{sizeTree:i},ek(n.offsetTree,0,i,r))})),D),{data:h,totalCount:i,sizeRanges:r,groupIndices:u,defaultItemSize:d,fixedItemSize:c,unshiftWith:a,shiftWith:s,shiftWithOffset:R,beforeUnshiftWith:P,firstItemIndex:l,gap:m,sizes:D,listRefresh:M,statefulTotalCount:o,trackItemSizes:C,itemSize:f}},u(ee,ex),{singleton:!0}),eL="undefined"!=typeof document&&"scrollBehavior"in document.documentElement.style;function eF(e){var t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&eL||(t.behavior="auto"),t.offset||(t.offset=0),t}var eA=I(function(e){var t=e[0],n=t.sizes,r=t.totalCount,i=t.listRefresh,o=t.gap,a=e[1],s=a.scrollingInProgress,l=a.viewportHeight,u=a.scrollTo,c=a.smoothScrollTargetReached,d=a.headerHeight,f=a.footerHeight,h=a.fixedHeaderHeight,m=a.fixedFooterHeight,g=e[2].log,_=b(),x=w(0),D=null,C=null,k=null;function S(){D&&(D(),D=null),k&&(k(),k=null),C&&(clearTimeout(C),C=null),p(s,!1)}return v(E(_,L(n,l,r,x,d,f,g),L(o,h,m),T(function(e){var t=e[0],n=t[0],r=t[1],o=t[2],a=t[3],l=t[4],u=t[5],d=t[6],f=t[7],h=e[1],m=e[2],g=e[3],v=eF(n),b=v.align,w=v.behavior,x=v.offset,T=a-1,M=eM(v,r,T),O=eT(M,r.offsetTree,h)+u;"end"===b?(O+=m+ed(r.sizeTree,M)[1]-o+g,M===T&&(O+=d)):"center"===b?O+=(m+ed(r.sizeTree,M)[1]-o+g)/2:O-=l,x&&(O+=x);var P=function(e){S(),e?(f("retrying to scroll to",{location:n},K.DEBUG),p(_,n)):f("list did not change, scroll successful",{},K.DEBUG)};if(S(),"smooth"===w){var R=!1;k=i(1,function(e){R=R||e}),D=y(c,function(){P(R)})}else D=y(E(i,function(e){var t=setTimeout(function(){e(!1)},150);return function(n){n&&(e(!0),clearTimeout(t))}}),P);return C=setTimeout(function(){S()},1200),p(s,!0),f("scrolling from index to",{index:M,top:O,behavior:w},K.DEBUG),{top:O,behavior:w}})),u),{scrollToIndex:_,topListHeight:x}},u(ej,es,ee),{singleton:!0}),eN={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},eI=I(function(e){var t=e[0],n=t.scrollContainerState,r=t.scrollTop,i=t.viewportHeight,o=t.headerHeight,a=t.footerHeight,s=t.scrollBy,l=w(!1),u=w(!0),c=b(),d=b(),f=w(4),h=w(0),p=x(E(F(E(A(r),P(1),M(!0)),E(A(r),P(1),M(!1),j(100))),k()),!1),m=x(E(F(E(s,M(!0)),E(s,M(!1),j(200))),k()),!1);v(E(N(A(r),A(h)),T(function(e){return e[0]<=e[1]}),k()),u),v(E(u,R(50)),d);var y=_(E(N(n,A(i),A(o),A(a),A(f)),O(function(e,t){var n,r,i=t[0],o=i.scrollTop,a=i.scrollHeight,s=t[1],l={viewportHeight:s,scrollTop:o,scrollHeight:a};return o+s-a>-t[4]?(o>e.state.scrollTop?(n="SCROLLED_DOWN",r=e.state.scrollTop-o):(n="SIZE_DECREASED",r=e.state.scrollTop-o||e.scrollTopDelta),{atBottom:!0,state:l,atBottomBecause:n,scrollTopDelta:r}):{atBottom:!1,notAtBottomBecause:l.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":st+f-m&&(p="up"),(a-=u)0){a=e[0].offset;var l=e[e.length-1];s=l.offset+l.size}var u=n-i.lastIndex,c=a,d=i.lastOffset+u*i.lastSize+(u-1)*r-s;return{items:eK(e,i,o),topItems:eK(t,i,o),topListHeight:t.reduce(function(e,t){return t.size+e},0),offsetTop:a,offsetBottom:d,top:c,bottom:s,totalCount:n,firstItemIndex:o}}var eQ=I(function(e){var t=e[0],n=t.sizes,r=t.totalCount,i=t.data,o=t.firstItemIndex,a=t.gap,s=e[1],l=e[2],u=l.visibleRange,c=l.listBoundary,d=l.topListHeight,f=e[3],h=f.scrolledToInitialItem,p=f.initialTopMostItemIndex,m=e[4].topListHeight,g=e[5],y=e[6].didMount,D=e[7].recalcInProgress,C=w([]),M=b();v(s.topItemsIndexes,C);var O=x(E(N(y,D,A(u,eW),A(r),A(n),A(p),h,A(C),A(o),A(a),i),S(function(e){return e[0]&&!e[1]}),T(function(e){var t,n,r,i,o,a,s,l=e[2],u=l[0],c=l[1],d=e[3],f=e[5],h=e[6],p=e[7],m=e[8],g=e[9],v=e[10],y=e[4],b=y.sizeTree,w=y.offsetTree;if(0===d||0===u&&0===c)return $({},eJ,{totalCount:d});if(ec(b))return eX(function(e,t,n){if(eP(t)){var r=eO(e,t);return[{index:ed(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}("number"==typeof f?f:"LAST"===f.index?d-1:f.index,y,v),[],d,g,y,m);var _=[];if(p.length>0)for(var x,D=p[0],E=p[p.length-1],C=0,k=G(ev(b,D,E));!(x=k()).done;)for(var S=x.value,T=S.value,M=Math.max(S.start,D),O=Math.min(S.end,E),P=M;P<=O;P++)_.push({index:P,size:T,offset:C,data:v&&v[P]}),C+=T;if(!h)return eX([],_,d,g,y,m);var R=p.length>0?p[p.length-1]+1:0,j=(t=w,n=u,r=c,void 0===(i=R)&&(i=0),i>0&&(n=Math.max(n,t[e_(t,i,eD)].offset)),ey((o=e_(t,n,eE),a=e_(t,r,eE,o),t.slice(o,a+1)),eC));if(0===j.length)return null;var L=d-1;return eX((function(e){for(var t,n=G(j);!(t=n()).done;){var r=t.value,i=r.value,o=i.offset,a=r.start,s=i.size;if(i.offset=c);f++)e.push({index:f,size:s,offset:o,data:v&&v[f]}),o+=s+g}}(s=[]),s),_,d,g,y,m)}),S(function(e){return null!==e}),k()),eJ);return v(E(i,S(function(e){return void 0!==e}),T(function(e){return e.length})),r),v(E(O,T(function(e){return e.topListHeight})),m),v(m,d),v(E(O,T(function(e){return[e.top,e.bottom]})),c),v(E(O,T(function(e){return e.items})),M),$({listState:O,topItemsIndexes:C,endReached:_(E(O,S(function(e){return e.items.length>0}),L(r,i),S(function(e){var t=e[0].items;return t[t.length-1].originalIndex===e[1]-1}),T(function(e){return[e[1]-1,e[2]]}),k(eW),T(function(e){return e[0]}))),startReached:_(E(O,R(200),S(function(e){var t=e.items;return t.length>0&&t[0].originalIndex===e.topItems.length}),T(function(e){return e.items[0].index}),k())),rangeChanged:_(E(O,S(function(e){return e.items.length>0}),T(function(e){for(var t=e.items,n=0,r=t.length-1;"group"===t[n].type&&nn;)r--;return{startIndex:t[n].index,endIndex:t[r].index}}),k(e$))),itemsRendered:M},g)},u(ej,eq,eG,eU,eA,eI,eB,ex),{singleton:!0}),e0=I(function(e){var t=e[0],n=t.sizes,r=t.firstItemIndex,i=t.data,o=t.gap,a=e[1].listState,s=e[2].didMount,l=w(0);return v(E(s,L(l),S(function(e){return 0!==e[1]}),L(n,r,o,i),T(function(e){var t=e[0][1],n=e[1],r=e[2],i=e[3],o=e[4],a=void 0===o?[]:o,s=0;if(n.groupIndices.length>0)for(var l,u=G(n.groupIndices);!((l=u()).done||l.value-s>=t);)s++;var c=t+s;return eX(Array.from({length:c}).map(function(e,t){return{index:t,size:0,offset:0,data:a[t]}}),[],c,i,n,r)})),a),{initialItemCount:l}},u(ej,eQ,eB),{singleton:!0}),e1=I(function(e){var t=e[0].scrollVelocity,n=w(!1),r=b(),i=w(!1);return v(E(t,L(i,n,r),S(function(e){return!!e[1]}),T(function(e){var t=e[0],n=e[1],r=e[2],i=e[3],o=n.enter;if(r){if((0,n.exit)(t,i))return!1}else if(o(t,i))return!0;return r}),k()),n),E(N(n,t,r),L(i))(1,function(e){var t=e[0],n=e[1];return t[0]&&n&&n.change&&n.change(t[1],t[2])}),{isSeeking:n,scrollSeekConfiguration:i,scrollVelocity:t,scrollSeekRangeChanged:r}},u(eI),{singleton:!0}),e2=I(function(e){var t=e[0].topItemsIndexes,n=w(0);return v(E(n,S(function(e){return e>0}),T(function(e){return Array.from({length:e}).map(function(e,t){return t})})),t),{topItemCount:n}},u(eQ)),e3=I(function(e){var t=e[0],n=t.footerHeight,r=t.headerHeight,i=t.fixedHeaderHeight,o=t.fixedFooterHeight,a=e[1].listState,s=b(),l=x(E(N(n,o,r,i,a),T(function(e){var t=e[4];return e[0]+e[1]+e[2]+e[3]+t.offsetBottom+t.bottom})),0);return v(A(l),s),{totalListHeight:l,totalListHeightChanged:s}},u(es,eQ),{singleton:!0});function e4(e){var t,n=!1;return function(){return n||(n=!0,t=e()),t}}var e6=e4(function(){return/iP(ad|hone|od).+Version\/[\d.]+.*Safari/i.test(navigator.userAgent)}),e5=I(function(e){var t=e[0],n=t.scrollBy,r=t.scrollTop,i=t.deviation,o=t.scrollingInProgress,a=e[1],s=a.isScrolling,l=a.isAtBottom,u=a.scrollDirection,c=e[3],d=c.beforeUnshiftWith,f=c.shiftWithOffset,h=c.sizes,m=c.gap,g=e[4].log,y=e[5].recalcInProgress,b=_(E(e[2].listState,L(a.lastJumpDueToItemResize),O(function(e,t){var n=e[1],r=t[0],i=r.items,o=r.totalCount,a=r.bottom+r.offsetBottom,s=0;return e[2]===o&&n.length>0&&i.length>0&&(0===i[0].originalIndex&&0===n[0].originalIndex||0!=(s=a-e[3])&&(s+=t[1])),[s,i,o,a]},[0,[],0,0]),S(function(e){return 0!==e[0]}),L(r,u,o,l,g),S(function(e){return!e[3]&&0!==e[1]&&"up"===e[2]}),T(function(e){var t=e[0][0];return(0,e[5])("Upward scrolling compensation",{amount:t},K.DEBUG),t})));function w(e){e>0?(p(n,{top:-e,behavior:"auto"}),p(i,0)):(p(i,0),p(n,{top:-e,behavior:"auto"}))}return E(b,L(i,s))(1,function(e){var t=e[0],n=e[1];e[2]&&e6()?p(i,n-t):w(-t)}),E(N(x(s,!1),i,y),S(function(e){return!e[0]&&!e[2]&&0!==e[1]}),T(function(e){return e[1]}),R(1))(1,w),v(E(f,T(function(e){return{top:-e}})),n),E(d,L(h,m),T(function(e){var t=e[0];return t*e[1].lastSize+t*e[2]}))(1,function(e){p(i,e),requestAnimationFrame(function(){p(n,{top:e}),requestAnimationFrame(function(){p(i,0),p(y,!1)})})}),{deviation:i}},u(es,eI,eQ,ej,ee,ex)),e8=I(function(e){var t=e[0].totalListHeight,n=e[1].didMount,r=e[2].scrollTo,i=w(0);return E(n,L(i),S(function(e){return 0!==e[1]}),T(function(e){return{top:e[1]}}))(1,function(e){y(E(t,S(function(e){return 0!==e})),function(){setTimeout(function(){p(r,e)})})}),{initialScrollTop:i}},u(e3,eB,es),{singleton:!0}),e7=I(function(e){var t=e[0].viewportHeight,n=e[1].totalListHeight,r=w(!1);return{alignToBottom:r,paddingTopAddition:x(E(N(r,t,n),S(function(e){return e[0]}),T(function(e){return Math.max(0,e[1]-e[2])}),k()),0)}},u(es,e3),{singleton:!0}),e9=I(function(e){var t=e[0],n=t.scrollTo,r=t.scrollContainerState,i=b(),o=b(),a=b(),s=w(!1),l=w(void 0);return v(E(N(i,o),T(function(e){var t=e[0],n=t.viewportHeight,r=t.scrollHeight;return{scrollTop:Math.max(0,t.scrollTop-e[1].offsetTop),scrollHeight:r,viewportHeight:n}})),r),v(E(n,L(o),T(function(e){var t=e[0];return $({},t,{top:t.top+e[1].offsetTop})})),a),{useWindowScroll:s,customScrollParent:l,windowScrollContainerState:i,windowViewportRect:o,windowScrollTo:a}},u(es)),te=["done","behavior","align"],tt=I(function(e){var t=e[0],n=t.sizes,r=t.totalCount,i=t.gap,o=e[1],a=o.scrollTop,s=o.viewportHeight,l=o.headerHeight,u=o.fixedHeaderHeight,c=o.fixedFooterHeight,d=o.scrollingInProgress,f=e[2].scrollToIndex,h=b();return v(E(h,L(n,s,r,l,u,c,a),L(i),T(function(e){var t=e[0],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],u=t[7],c=e[1],f=n.done,h=n.behavior,p=n.align,m=Y(n,te),g=null,v=eM(n,r,o-1),b=eT(v,r.offsetTree,c)+a+s;return bu+i-l&&(g=$({},m,{behavior:h,align:null!=p?p:"end"})),g?f&&y(E(d,P(1),S(function(e){return!1===e})),f):f&&f(),g}),S(function(e){return null!==e})),f),{scrollIntoView:h}},u(ej,es,eA,eQ,ee),{singleton:!0}),tn=["listState","topItemsIndexes"],tr=I(function(e){return $({},e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},u(eG,e0,eB,e1,e3,e8,e7,e9,tt)),ti=I(function(e){var t=e[0],n=t.totalCount,r=t.sizeRanges,i=t.fixedItemSize,o=t.defaultItemSize,a=t.trackItemSizes,s=t.itemSize,l=t.data,u=t.firstItemIndex,c=t.groupIndices,d=t.statefulTotalCount,f=t.gap,h=e[1],p=h.initialTopMostItemIndex,m=h.scrolledToInitialItem,g=e[2],y=e[3],b=e[4],w=b.listState,_=b.topItemsIndexes,x=Y(b,tn),D=e[5].scrollToIndex,C=e[7].topItemCount,k=e[8].groupCounts,S=e[9],M=e[10];return v(x.rangeChanged,S.scrollSeekRangeChanged),v(E(S.windowViewportRect,T(function(e){return e.visibleHeight})),g.viewportHeight),$({totalCount:n,data:l,firstItemIndex:u,sizeRanges:r,initialTopMostItemIndex:p,scrolledToInitialItem:m,topItemsIndexes:_,topItemCount:C,groupCounts:k,fixedItemHeight:i,defaultItemHeight:o,gap:f},y,{statefulTotalCount:d,listState:w,scrollToIndex:D,trackItemSizes:a,itemSize:s,groupIndices:c},x,S,g,M)},u(ej,eU,es,eH,eQ,eA,e5,e2,eq,tr,ee)),to=e4(function(){if("undefined"==typeof document)return"sticky";var e=document.createElement("div");return e.style.position="-webkit-sticky","-webkit-sticky"===e.style.position?"-webkit-sticky":"sticky"});function ta(e,t){var n=(0,i.useRef)(null),r=(0,i.useCallback)(function(r){if(null!==r&&r.offsetParent){var i,o,a=r.getBoundingClientRect(),s=a.width;if(t){var l=t.getBoundingClientRect(),u=a.top-l.top;i=l.height-Math.max(0,u),o=u+t.scrollTop}else i=window.innerHeight-Math.max(0,a.top),o=a.top+window.pageYOffset;n.current={offsetTop:o,visibleHeight:i,visibleWidth:s},e(n.current)}},[e,t]),o=et(r),a=o.callbackRef,s=o.ref,l=(0,i.useCallback)(function(){r(s.current)},[r,s]);return(0,i.useEffect)(function(){if(t){t.addEventListener("scroll",l);var e=new ResizeObserver(l);return e.observe(t),function(){t.removeEventListener("scroll",l),e.unobserve(t)}}return window.addEventListener("scroll",l),window.addEventListener("resize",l),function(){window.removeEventListener("scroll",l),window.removeEventListener("resize",l)}},[l,t]),a}var ts=i.createContext(void 0),tl=["placeholder"],tu=["style","children"],tc=["style","children"];function td(e){return e}var tf=I(function(){var e=w(function(e){return"Item "+e}),t=w(null),n=w(function(e){return"Group "+e}),r=w({}),i=w(td),o=w("div"),a=w(h),s=function(e,t){return void 0===t&&(t=null),x(E(r,T(function(t){return t[e]}),k()),t)};return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:i,headerFooterTag:o,scrollerRef:a,FooterComponent:s("Footer"),HeaderComponent:s("Header"),TopItemListComponent:s("TopItemList"),ListComponent:s("List","div"),ItemComponent:s("Item","div"),GroupComponent:s("Group","div"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder")}});function th(e,t){var n=b();return n(1,function(){return console.warn("react-virtuoso: You are using a deprecated property. "+t,"color: red;","color: inherit;","color: blue;")}),v(n,e),n}var tp=I(function(e){var t=e[0],n=e[1],r={item:th(n.itemContent,"Rename the %citem%c prop to %citemContent."),group:th(n.groupContent,"Rename the %cgroup%c prop to %cgroupContent."),topItems:th(t.topItemCount,"Rename the %ctopItems%c prop to %ctopItemCount."),itemHeight:th(t.fixedItemHeight,"Rename the %citemHeight%c prop to %cfixedItemHeight."),scrollingStateChange:th(t.isScrolling,"Rename the %cscrollingStateChange%c prop to %cisScrolling."),adjustForPrependedItems:b(),maxHeightCacheSize:b(),footer:b(),header:b(),HeaderContainer:b(),FooterContainer:b(),ItemContainer:b(),ScrollContainer:b(),GroupContainer:b(),ListContainer:b(),emptyComponent:b(),scrollSeek:b()};function i(e,t,r){v(E(e,L(n.components),T(function(e){var n,i=e[0],o=e[1];return console.warn("react-virtuoso: "+r+" property is deprecated. Pass components."+t+" instead."),$({},o,((n={})[t]=i,n))})),n.components)}return(0,r.adjustForPrependedItems)(1,function(){console.warn("react-virtuoso: adjustForPrependedItems is no longer supported. Use the firstItemIndex property instead - https://virtuoso.dev/prepend-items.","color: red;","color: inherit;","color: blue;")}),(0,r.maxHeightCacheSize)(1,function(){console.warn("react-virtuoso: maxHeightCacheSize is no longer necessary. Setting it has no effect - remove it from your code.")}),(0,r.HeaderContainer)(1,function(){console.warn("react-virtuoso: HeaderContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the header component and pass components.Header to change its contents.")}),(0,r.FooterContainer)(1,function(){console.warn("react-virtuoso: FooterContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the footer component and pass components.Footer to change its contents.")}),(0,r.scrollSeek)(1,function(e){var r=e.placeholder,i=Y(e,tl);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),p(n.components,$({},g(n.components),{ScrollSeekPlaceholder:r})),p(t.scrollSeekConfiguration,i)}),i(r.footer,"Footer","footer"),i(r.header,"Header","header"),i(r.ItemContainer,"Item","ItemContainer"),i(r.ListContainer,"List","ListContainer"),i(r.ScrollContainer,"Scroller","ScrollContainer"),i(r.emptyComponent,"EmptyPlaceholder","emptyComponent"),i(r.GroupContainer,"Group","GroupContainer"),$({},t,n,r)},u(ti,tf)),tm=function(e){return i.createElement("div",{style:{height:e.height}})},tg={position:to(),zIndex:1,overflowAnchor:"none"},tv={overflowAnchor:"none"},ty=i.memo(function(e){var t=e.showTopList,n=void 0!==t&&t,r=tj("listState"),o=tR("sizeRanges"),a=tj("useWindowScroll"),s=tj("customScrollParent"),l=tR("windowScrollContainerState"),u=tR("scrollContainerState"),c=tj("itemContent"),d=tj("context"),f=tj("groupContent"),p=tj("trackItemSizes"),m=er(o,tj("itemSize"),p,n?h:s||a?l:u,tj("log"),tR("gap"),s).callbackRef,g=i.useState(0),v=g[0],y=g[1];tL("deviation",function(e){v!==e&&y(e)});var b=tj("EmptyPlaceholder"),w=tj("ScrollSeekPlaceholder")||tm,_=tj("ListComponent"),x=tj("ItemComponent"),D=tj("GroupComponent"),E=tj("computeItemKey"),C=tj("isSeeking"),k=tj("groupIndices").length>0,S=tj("paddingTopAddition"),T=n?{}:{boxSizing:"border-box",paddingTop:r.offsetTop+S,paddingBottom:r.offsetBottom,marginTop:v};return!n&&0===r.totalCount&&b?(0,i.createElement)(b,tx(b,d)):(0,i.createElement)(_,$({},tx(_,d),{ref:m,style:T,"data-test-id":n?"virtuoso-top-item-list":"virtuoso-item-list"}),(n?r.topItems:r.items).map(function(e){var t=e.originalIndex,n=E(t+r.firstItemIndex,e.data,d);return C?(0,i.createElement)(w,$({},tx(w,d),{key:n,index:e.index,height:e.size,type:e.type||"item"},"group"===e.type?{}:{groupIndex:e.groupIndex})):"group"===e.type?(0,i.createElement)(D,$({},tx(D,d),{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,style:tg}),f(e.index)):(0,i.createElement)(x,$({},tx(x,d),{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,"data-item-group-index":e.groupIndex,style:tv}),k?c(e.index,e.groupIndex,e.data,d):c(e.index,e.data,d))}))}),tb={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},tw={width:"100%",height:"100%",position:"absolute",top:0},t_={width:"100%",position:to(),top:0};function tx(e,t){if("string"!=typeof e)return{context:t}}var tD=i.memo(function(){var e=tj("HeaderComponent"),t=tR("headerHeight"),n=tj("headerFooterTag"),r=en(function(e){return t(ei(e,"height"))}),o=tj("context");return e?(0,i.createElement)(n,{ref:r},(0,i.createElement)(e,tx(e,o))):null}),tE=i.memo(function(){var e=tj("FooterComponent"),t=tR("footerHeight"),n=tj("headerFooterTag"),r=en(function(e){return t(ei(e,"height"))}),o=tj("context");return e?(0,i.createElement)(n,{ref:r},(0,i.createElement)(e,tx(e,o))):null});function tC(e){var t=e.usePublisher,n=e.useEmitter,r=e.useEmitterValue;return i.memo(function(e){var o=e.style,a=e.children,s=Y(e,tu),l=t("scrollContainerState"),u=r("ScrollerComponent"),c=t("smoothScrollTargetReached"),d=r("scrollerRef"),f=r("context"),h=ea(l,c,u,d),p=h.scrollerRef,m=h.scrollByCallback;return n("scrollTo",h.scrollToCallback),n("scrollBy",m),(0,i.createElement)(u,$({ref:p,style:$({},tb,o),"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0},s,tx(u,f)),a)})}function tk(e){var t=e.usePublisher,n=e.useEmitter,r=e.useEmitterValue;return i.memo(function(e){var o=e.style,a=e.children,s=Y(e,tc),l=t("windowScrollContainerState"),u=r("ScrollerComponent"),c=t("smoothScrollTargetReached"),d=r("totalListHeight"),f=r("deviation"),p=r("customScrollParent"),m=r("context"),g=ea(l,c,u,h,p),v=g.scrollerRef,y=g.scrollByCallback,b=g.scrollToCallback;return X(function(){return v.current=p||window,function(){v.current=null}},[v,p]),n("windowScrollTo",b),n("scrollBy",y),(0,i.createElement)(u,$({style:$({position:"relative"},o,0!==d?{height:d+f}:{}),"data-virtuoso-scroller":!0},s,tx(u,m)),a)})}var tS=function(e){var t=e.children,n=(0,i.useContext)(ts),r=tR("viewportHeight"),a=tR("fixedItemHeight"),s=en(o(r,function(e){return ei(e,"height")}));return i.useEffect(function(){n&&(r(n.viewportHeight),a(n.itemHeight))},[n,r,a]),i.createElement("div",{style:tw,ref:s,"data-viewport-type":"element"},t)},tT=function(e){var t=e.children,n=(0,i.useContext)(ts),r=tR("windowViewportRect"),o=tR("fixedItemHeight"),a=ta(r,tj("customScrollParent"));return i.useEffect(function(){n&&(o(n.itemHeight),r({offsetTop:0,visibleHeight:n.viewportHeight,visibleWidth:100}))},[n,r,o]),i.createElement("div",{ref:a,style:tw,"data-viewport-type":"window"},t)},tM=function(e){var t=e.children,n=tj("TopItemListComponent"),r=tj("headerHeight"),o=$({},t_,{marginTop:r+"px"}),a=tj("context");return(0,i.createElement)(n||"div",{style:o,context:a},t)},tO=q(tp,{required:{},optional:{context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",react18ConcurrentRendering:"react18ConcurrentRendering",item:"item",group:"group",topItems:"topItems",itemHeight:"itemHeight",scrollingStateChange:"scrollingStateChange",maxHeightCacheSize:"maxHeightCacheSize",footer:"footer",header:"header",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",GroupContainer:"GroupContainer",emptyComponent:"emptyComponent",HeaderContainer:"HeaderContainer",FooterContainer:"FooterContainer",scrollSeek:"scrollSeek"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",adjustForPrependedItems:"adjustForPrependedItems",autoscrollToBottom:"autoscrollToBottom"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},i.memo(function(e){var t=tj("useWindowScroll"),n=tj("topItemsIndexes").length>0,r=tj("customScrollParent");return i.createElement(r||t?tA:tF,$({},e),i.createElement(r||t?tT:tS,null,i.createElement(tD,null),i.createElement(ty,null),i.createElement(tE,null)),n&&i.createElement(tM,null,i.createElement(ty,{showTopList:!0})))})),tP=tO.Component,tR=tO.usePublisher,tj=tO.useEmitterValue,tL=tO.useEmitter,tF=tC({usePublisher:tR,useEmitterValue:tj,useEmitter:tL}),tA=tk({usePublisher:tR,useEmitterValue:tj,useEmitter:tL}),tN={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},tI={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},tB=Math.round,tU=Math.ceil,tz=Math.floor,tH=Math.min,tV=Math.max;function tq(e,t){return Array.from({length:t-e+1}).map(function(t,n){return{index:n+e}})}function tW(e,t){return e&&e.column===t.column&&e.row===t.row}var t$=I(function(e){var t=e[0],n=t.overscan,r=t.visibleRange,i=t.listBoundary,o=e[1],a=o.scrollTop,s=o.viewportHeight,l=o.scrollBy,u=o.scrollTo,c=o.smoothScrollTargetReached,d=o.scrollContainerState,f=e[2],h=e[3],p=e[4],m=p.propsReady,g=p.didMount,y=e[5],D=y.windowViewportRect,C=y.windowScrollTo,O=y.useWindowScroll,P=y.customScrollParent,R=y.windowScrollContainerState,j=e[6],F=w(0),I=w(0),B=w(tN),U=w({height:0,width:0}),z=w({height:0,width:0}),H=b(),V=b(),q=w(0),W=w({row:0,column:0});v(E(g,L(I),S(function(e){return 0!==e[1]}),T(function(e){return{items:tq(0,e[1]-1),top:0,bottom:0,offsetBottom:0,offsetTop:0,itemHeight:0,itemWidth:0}})),B),v(E(N(A(F),r,A(W,tW),A(z,function(e,t){return e&&e.width===t.width&&e.height===t.height})),L(U),T(function(e){var t,n=e[0],r=n[0],i=n[1],o=i[0],a=i[1],s=n[2],l=n[3],u=e[1],c=s.row,d=l.height,f=l.width,h=u.width;if(0===r||0===h)return tN;if(0===f)return tI;var p=tV(1,tz((h+(t=s.column))/(f+t))),m=p*tz((o+c)/(d+c)),g=p*tU((a+c)/(d+c))-1;g=tV(0,tH(r-1,g));var v=tq(m=tH(g,tV(0,m)),g),y=tY(u,s,l,v),b=y.top,w=y.bottom,_=tU(r/p);return{items:v,offsetTop:b,offsetBottom:_*d+(_-1)*c-w,top:b,bottom:w,itemHeight:d,itemWidth:f}})),B),v(E(U,T(function(e){return e.height})),s),v(E(N(U,z,B,W),T(function(e){var t=tY(e[0],e[3],e[1],e[2].items);return[t.top,t.bottom]}),k(eW)),i);var Y=_(E(A(B),S(function(e){return e.items.length>0}),L(F),S(function(e){var t=e[0].items;return t[t.length-1].index===e[1]-1}),T(function(e){return e[1]-1}),k())),Z=_(E(A(B),S(function(e){var t=e.items;return t.length>0&&0===t[0].index}),M(0),k())),G=_(E(A(B),S(function(e){return e.items.length>0}),T(function(e){var t=e.items;return{startIndex:t[0].index,endIndex:t[t.length-1].index}}),k(e$)));v(G,h.scrollSeekRangeChanged),v(E(H,L(U,z,F,W),T(function(e){var t=e[1],n=e[2],r=e[3],i=e[4],o=eF(e[0]),a=o.align,s=o.behavior,l=o.offset,u=o.index;"LAST"===u&&(u=r-1);var c=tZ(t,i,n,u=tV(0,u,tH(r-1,u)));return"end"===a?c=tB(c-t.height+n.height):"center"===a&&(c=tB(c-t.height/2+n.height/2)),l&&(c+=l),{top:c,behavior:s}})),u);var J=x(E(B,T(function(e){return e.offsetBottom+e.bottom})),0);return v(E(D,T(function(e){return{width:e.visibleWidth,height:e.visibleHeight}})),U),$({totalCount:F,viewportDimensions:U,itemDimensions:z,scrollTop:a,scrollHeight:V,overscan:n,scrollBy:l,scrollTo:u,scrollToIndex:H,smoothScrollTargetReached:c,windowViewportRect:D,windowScrollTo:C,useWindowScroll:O,customScrollParent:P,windowScrollContainerState:R,deviation:q,scrollContainerState:d,initialItemCount:I,gap:W},h,{gridState:B,totalListHeight:J},f,{startReached:Z,endReached:Y,rangeChanged:G,propsReady:m},j)},u(eG,es,eI,e1,eB,e9,ee));function tY(e,t,n,r){var i=n.height;return void 0===i||0===r.length?{top:0,bottom:0}:{top:tZ(e,t,n,r[0].index),bottom:tZ(e,t,n,r[r.length-1].index)+i}}function tZ(e,t,n,r){var i,o,a,s=tz(r/(i=e.width,o=n.width,tV(1,tz((i+(a=t.column))/(o+a))))),l=s*n.height+tV(0,s-1)*t.row;return l>0?l+t.row:l}var tG=["placeholder"],tJ=I(function(){var e=w(function(e){return"Item "+e}),t=w({}),n=w(null),r=w("virtuoso-grid-item"),i=w("virtuoso-grid-list"),o=w(td),a=w(h),s=function(e,n){return void 0===n&&(n=null),x(E(t,T(function(t){return t[e]}),k()),n)};return{context:n,itemContent:e,components:t,computeItemKey:o,itemClassName:r,listClassName:i,scrollerRef:a,ListComponent:s("List","div"),ItemComponent:s("Item","div"),ScrollerComponent:s("Scroller","div"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder","div")}}),tK=I(function(e){var t=e[0],n=e[1],r={item:th(n.itemContent,"Rename the %citem%c prop to %citemContent."),ItemContainer:b(),ScrollContainer:b(),ListContainer:b(),emptyComponent:b(),scrollSeek:b()};function i(e,t,r){v(E(e,L(n.components),T(function(e){var n,i=e[0],o=e[1];return console.warn("react-virtuoso: "+r+" property is deprecated. Pass components."+t+" instead."),$({},o,((n={})[t]=i,n))})),n.components)}return(0,r.scrollSeek)(1,function(e){var r=e.placeholder,i=Y(e,tG);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),p(n.components,$({},g(n.components),{ScrollSeekPlaceholder:r})),p(t.scrollSeekConfiguration,i)}),i(r.ItemContainer,"Item","ItemContainer"),i(r.ListContainer,"List","ListContainer"),i(r.ScrollContainer,"Scroller","ScrollContainer"),$({},t,n,r)},u(t$,tJ)),tX=i.memo(function(){var e=t3("gridState"),t=t3("listClassName"),n=t3("itemClassName"),r=t3("itemContent"),o=t3("computeItemKey"),a=t3("isSeeking"),s=t2("scrollHeight"),l=t3("ItemComponent"),u=t3("ListComponent"),c=t3("ScrollSeekPlaceholder"),d=t3("context"),f=t2("itemDimensions"),h=t2("gap"),p=t3("log"),m=en(function(e){s(e.parentElement.parentElement.scrollHeight);var t=e.firstChild;t&&f(t.getBoundingClientRect()),h({row:t8("row-gap",getComputedStyle(e).rowGap,p),column:t8("column-gap",getComputedStyle(e).columnGap,p)})});return(0,i.createElement)(u,$({ref:m,className:t},tx(u,d),{style:{paddingTop:e.offsetTop,paddingBottom:e.offsetBottom}}),e.items.map(function(t){var s=o(t.index);return a?(0,i.createElement)(c,$({key:s},tx(c,d),{index:t.index,height:e.itemHeight,width:e.itemWidth})):(0,i.createElement)(l,$({},tx(l,d),{className:n,"data-index":t.index,key:s}),r(t.index,d))}))}),tQ=function(e){var t=e.children,n=t2("viewportDimensions"),r=en(function(e){n(e.getBoundingClientRect())});return i.createElement("div",{style:tw,ref:r},t)},t0=function(e){var t=e.children,n=ta(t2("windowViewportRect"),t3("customScrollParent"));return i.createElement("div",{ref:n,style:tw},t)},t1=q(tK,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",item:"item",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",scrollSeek:"scrollSeek"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange"}},i.memo(function(e){var t=$({},e),n=t3("useWindowScroll"),r=t3("customScrollParent");return i.createElement(r||n?t5:t6,$({},t),i.createElement(r||n?t0:tQ,null,i.createElement(tX,null)))})),t2=(t1.Component,t1.usePublisher),t3=t1.useEmitterValue,t4=t1.useEmitter,t6=tC({usePublisher:t2,useEmitterValue:t3,useEmitter:t4}),t5=tk({usePublisher:t2,useEmitterValue:t3,useEmitter:t4});function t8(e,t,n){return"normal"===t||null!=t&&t.endsWith("px")||n(e+" was not resolved to pixel value correctly",t,K.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}var t7=I(function(){var e=w(function(e){return i.createElement("td",null,"Item $",e)}),t=w(null),n=w(null),r=w(null),o=w({}),a=w(td),s=w(h),l=function(e,t){return void 0===t&&(t=null),x(E(o,T(function(t){return t[e]}),k()),t)};return{context:t,itemContent:e,fixedHeaderContent:n,fixedFooterContent:r,components:o,computeItemKey:a,scrollerRef:s,TableComponent:l("Table","table"),TableHeadComponent:l("TableHead","thead"),TableFooterComponent:l("TableFoot","tfoot"),TableBodyComponent:l("TableBody","tbody"),TableRowComponent:l("TableRow","tr"),ScrollerComponent:l("Scroller","div"),EmptyPlaceholder:l("EmptyPlaceholder"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder"),FillerRow:l("FillerRow")}}),t9=I(function(e){return $({},e[0],e[1])},u(ti,t7)),ne=function(e){return i.createElement("tr",null,i.createElement("td",{style:{height:e.height}}))},nt=function(e){return i.createElement("tr",null,i.createElement("td",{style:{height:e.height,padding:0,border:0}}))},nn=i.memo(function(){var e=ns("listState"),t=na("sizeRanges"),n=ns("useWindowScroll"),r=ns("customScrollParent"),o=na("windowScrollContainerState"),a=na("scrollContainerState"),s=ns("itemContent"),l=ns("trackItemSizes"),u=er(t,ns("itemSize"),l,r||n?o:a,ns("log"),void 0,r),c=u.callbackRef,d=u.ref,f=i.useState(0),h=f[0],p=f[1];nl("deviation",function(e){h!==e&&(d.current.style.marginTop=e+"px",p(e))});var m=ns("EmptyPlaceholder"),g=ns("ScrollSeekPlaceholder")||ne,v=ns("FillerRow")||nt,y=ns("TableBodyComponent"),b=ns("TableRowComponent"),w=ns("computeItemKey"),_=ns("isSeeking"),x=ns("paddingTopAddition"),D=ns("firstItemIndex"),E=ns("statefulTotalCount"),C=ns("context");if(0===E&&m)return(0,i.createElement)(m,tx(m,C));var k=e.offsetTop+x+h,S=e.offsetBottom,T=k>0?i.createElement(v,{height:k,key:"padding-top"}):null,M=S>0?i.createElement(v,{height:S,key:"padding-bottom"}):null,O=e.items.map(function(e){var t=e.originalIndex,n=w(t+D,e.data,C);return _?(0,i.createElement)(g,$({},tx(g,C),{key:n,index:e.index,height:e.size,type:e.type||"item"})):(0,i.createElement)(b,$({},tx(b,C),{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,style:{overflowAnchor:"none"}}),s(e.index,e.data,C))});return(0,i.createElement)(y,$({ref:c,"data-test-id":"virtuoso-item-list"},tx(y,C)),[T].concat(O,[M]))}),nr=function(e){var t=e.children,n=(0,i.useContext)(ts),r=na("viewportHeight"),a=na("fixedItemHeight"),s=en(o(r,function(e){return ei(e,"height")}));return i.useEffect(function(){n&&(r(n.viewportHeight),a(n.itemHeight))},[n,r,a]),i.createElement("div",{style:tw,ref:s,"data-viewport-type":"element"},t)},ni=function(e){var t=e.children,n=(0,i.useContext)(ts),r=na("windowViewportRect"),o=na("fixedItemHeight"),a=ta(r,ns("customScrollParent"));return i.useEffect(function(){n&&(o(n.itemHeight),r({offsetTop:0,visibleHeight:n.viewportHeight,visibleWidth:100}))},[n,r,o]),i.createElement("div",{ref:a,style:tw,"data-viewport-type":"window"},t)},no=q(t9,{required:{},optional:{context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",react18ConcurrentRendering:"react18ConcurrentRendering"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},i.memo(function(e){var t=ns("useWindowScroll"),n=ns("customScrollParent"),r=na("fixedHeaderHeight"),a=na("fixedFooterHeight"),s=ns("fixedHeaderContent"),l=ns("fixedFooterContent"),u=ns("context"),c=en(o(r,function(e){return ei(e,"height")})),d=en(o(a,function(e){return ei(e,"height")})),f=n||t?nc:nu,h=n||t?ni:nr,p=ns("TableComponent"),m=ns("TableHeadComponent"),g=ns("TableFooterComponent"),v=s?i.createElement(m,$({key:"TableHead",style:{zIndex:1,position:"sticky",top:0},ref:c},tx(m,u)),s()):null,y=l?i.createElement(g,$({key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:d},tx(g,u)),l()):null;return i.createElement(f,$({},e),i.createElement(h,null,i.createElement(p,$({style:{borderSpacing:0}},tx(p,u)),[v,i.createElement(nn,{key:"TableBody"}),y])))})),na=(no.Component,no.usePublisher),ns=no.useEmitterValue,nl=no.useEmitter,nu=tC({usePublisher:na,useEmitterValue:ns,useEmitter:nl}),nc=tk({usePublisher:na,useEmitterValue:ns,useEmitter:nl}),nd=tP},45715:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r=n(11735),i=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n.closed||t.next(this._value),n},t.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,n=this._value;if(e)throw t;return this._throwIfClosed(),n},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(n(69944).x)},88007:function(e,t,n){"use strict";n.d(t,{y:function(){return c}});var r=n(96550),i=n(35382),o=n(94345),a=n(8533),s=n(66141),l=n(66706),u=n(12256),c=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var o,a=this,s=(o=e)&&o instanceof r.Lv||o&&(0,l.m)(o.next)&&(0,l.m)(o.error)&&(0,l.m)(o.complete)&&(0,i.Nn)(o)?e:new r.Hp(e,t,n);return(0,u.x)(function(){var e=a.operator,t=a.source;s.add(e?e.call(s,t):t?a._subscribe(s):a._trySubscribe(s))}),s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=d(t))(function(t,i){var o=new r.Hp({next:function(t){try{e(t)}catch(e){i(e),o.unsubscribe()}},error:i,complete:t});n.subscribe(o)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[o.L]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?o.Lc:(this.currentObservers=null,i.push(e),new o.w0(function(){t.currentObservers=null,(0,s.P)(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},t.prototype.asObservable=function(){var e=new i.y;return e.source=this,e},t.create=function(e,t){return new c(e,t)},t}(i.y),c=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return(0,r.ZT)(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:o.Lc},t}(u)},96550:function(e,t,n){"use strict";n.d(t,{Hp:function(){return v},Lv:function(){return h}});var r=n(11735),i=n(66706),o=n(35382),a=n(66141),s=n(9919),l=n(96453),u=c("C",void 0,void 0);function c(e,t,n){return{kind:e,value:t,error:n}}var d=n(24963),f=n(12256),h=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,(0,o.Nn)(t)&&t.add(n)):n.destination=w,n}return(0,r.ZT)(t,e),t.create=function(e,t,n){return new v(e,t,n)},t.prototype.next=function(e){this.isStopped?b(c("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?b(c("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?b(u,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(o.w0),p=Function.prototype.bind;function m(e,t){return p.call(e,t)}var g=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){y(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){y(e)}else y(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){y(e)}},e}(),v=function(e){function t(t,n,r){var o,s,l=e.call(this)||this;return(0,i.m)(t)||!t?o={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:l&&a.v.useDeprecatedNextContext?((s=Object.create(t)).unsubscribe=function(){return l.unsubscribe()},o={next:t.next&&m(t.next,s),error:t.error&&m(t.error,s),complete:t.complete&&m(t.complete,s)}):o=t,l.destination=new g(o),l}return(0,r.ZT)(t,e),t}(h);function y(e){a.v.useDeprecatedSynchronousErrorHandling?(0,f.O)(e):(0,s.h)(e)}function b(e,t){var n=a.v.onStoppedNotification;n&&d.z.setTimeout(function(){return n(e,t)})}var w={closed:!0,next:l.Z,error:function(e){throw e},complete:l.Z}},35382:function(e,t,n){"use strict";n.d(t,{Lc:function(){return l},w0:function(){return s},Nn:function(){return u}});var r=n(11735),i=n(66706),o=(0,n(23848).d)(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}),a=n(81259),s=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,n,a,s,l=this._parentage;if(l){if(this._parentage=null,Array.isArray(l))try{for(var u=(0,r.XA)(l),d=u.next();!d.done;d=u.next())d.value.remove(this)}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else l.remove(this)}var f=this.initialTeardown;if((0,i.m)(f))try{f()}catch(e){s=e instanceof o?e.errors:[e]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var p=(0,r.XA)(h),m=p.next();!m.done;m=p.next()){var g=m.value;try{c(g)}catch(e){s=null!=s?s:[],e instanceof o?s=(0,r.ev)((0,r.ev)([],(0,r.CR)(s)),(0,r.CR)(e.errors)):s.push(e)}}}catch(e){n={error:e}}finally{try{m&&!m.done&&(a=p.return)&&a.call(p)}finally{if(n)throw n.error}}}if(s)throw new o(s)}},t.prototype.add=function(e){var n;if(e&&e!==this){if(this.closed)c(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(e)}}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,a.P)(t,e)},t.prototype.remove=function(e){var n=this._finalizers;n&&(0,a.P)(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),l=s.EMPTY;function u(e){return e instanceof s||e&&"closed"in e&&(0,i.m)(e.remove)&&(0,i.m)(e.add)&&(0,i.m)(e.unsubscribe)}function c(e){(0,i.m)(e)?e():e.unsubscribe()}},66141:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},89759:function(e,t,n){"use strict";n.d(t,{a:function(){return g}});var r=n(88007),i=Array.isArray,o=Object.getPrototypeOf,a=Object.prototype,s=Object.keys,l=n(92660),u=n(8533),c=n(11735),d=n(65690),f=Array.isArray,h=n(13021),p=n(37272),m=n(41336);function g(){for(var e,t=[],n=0;n0&&(t=new s.Hp({next:function(e){return y.next(e)},error:function(e){c=!0,f(),n=u(p,h,e),y.error(e)},complete:function(){a=!0,f(),n=u(p,m),y.complete()}}),(0,o.Xf)(e).subscribe(t))})(e)}}},76913:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var r=n(13306),i=n(37272);function o(e,t){return void 0===t&&(t=!1),(0,r.e)(function(n,r){var o=0;n.subscribe((0,i.x)(r,function(n){var i=e(n,o++);(i||t)&&r.next(n),i||r.complete()}))})}},70394:function(e,t,n){"use strict";n.d(t,{b:function(){return s}});var r=n(66706),i=n(13306),o=n(37272),a=n(8533);function s(e,t,n){var s=(0,r.m)(e)||t||n?{next:e,error:t,complete:n}:e;return s?(0,i.e)(function(e,t){null===(n=s.subscribe)||void 0===n||n.call(s);var n,r=!0;e.subscribe((0,o.x)(t,function(e){var n;null===(n=s.next)||void 0===n||n.call(s,e),t.next(e)},function(){var e;r=!1,null===(e=s.complete)||void 0===e||e.call(s),t.complete()},function(e){var n;r=!1,null===(n=s.error)||void 0===n||n.call(s,e),t.error(e)},function(){var e,t;r&&(null===(e=s.unsubscribe)||void 0===e||e.call(s)),null===(t=s.finalize)||void 0===t||t.call(s)}))}):a.y}},24825:function(e,t,n){"use strict";n.d(t,{P:function(){return d},z:function(){return c}});var r=n(11735),i=function(e){function t(t,n){return e.call(this)||this}return(0,r.ZT)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(35382).w0),o={setInterval:function(e,t){for(var n=[],i=2;i1&&(e[n[0]]=void 0),e};t.parseParams=function(e){return e.split(/;\s?/).reduce(l,{})},t.parseFmtpConfig=t.parseParams,t.parsePayloads=function(e){return e.toString().split(" ").map(Number)},t.parseRemoteCandidates=function(e){for(var t=[],n=e.split(" ").map(r),i=0;i=r)return e;var i=n[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(i);case"%d":return Number(i);case"%v":return""}})},a=function(e,t,n){var r=[e+"="+(t.format instanceof Function?t.format(t.push?n:n[t.name]):t.format)];if(t.names)for(var i=0;ie.trim())},t.splitSections=function(e){return e.split("\nm=").map((e,t)=>(t>0?"m="+e:e).trim()+"\r\n")},t.getDescription=function(e){let n=t.splitSections(e);return n&&n[0]},t.getMediaSections=function(e){let n=t.splitSections(e);return n.shift(),n},t.matchPrefix=function(e,n){return t.splitLines(e).filter(e=>0===e.indexOf(n))},t.parseCandidate=function(e){let t;let n={foundation:(t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" "))[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(let e=8;e0?t[0].split("/")[1]:"sendrecv",uri:t[1],attributes:t.slice(2).join(" ")}},t.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+(e.attributes?" "+e.attributes:"")+"\r\n"},t.parseFmtp=function(e){let t;let n={},r=e.substring(e.indexOf(" ")+1).split(";");for(let e=0;e{void 0!==e.parameters[t]?r.push(t+"="+e.parameters[t]):r.push(t)}),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},t.parseRtcpFb=function(e){let t=e.substring(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},t.writeRtcpFb=function(e){let t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(e=>{t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"}),t},t.parseSsrcMedia=function(e){let t=e.indexOf(" "),n={ssrc:parseInt(e.substring(7,t),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substring(t+1,r),n.value=e.substring(r+1)):n.attribute=e.substring(t+1),n},t.parseSsrcGroup=function(e){let t=e.substring(13).split(" ");return{semantics:t.shift(),ssrcs:t.map(e=>parseInt(e,10))}},t.getMid=function(e){let n=t.matchPrefix(e,"a=mid:")[0];if(n)return n.substring(6)},t.parseFingerprint=function(e){let t=e.substring(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},t.getDtlsParameters=function(e,n){return{role:"auto",fingerprints:t.matchPrefix(e+n,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(e,t){let n="a=setup:"+t+"\r\n";return e.fingerprints.forEach(e=>{n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"}),n},t.parseCryptoLine=function(e){let t=e.substring(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},t.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==typeof e.keyParams?t.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},t.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;let t=e.substring(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},t.getCryptoParameters=function(e,n){return t.matchPrefix(e+n,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(e,n){let r=t.matchPrefix(e+n,"a=ice-ufrag:")[0],i=t.matchPrefix(e+n,"a=ice-pwd:")[0];return r&&i?{usernameFragment:r.substring(12),password:i.substring(10)}:null},t.writeIceParameters=function(e){let t="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(t+="a=ice-lite\r\n"),t},t.parseRtpParameters=function(e){let n={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},r=t.splitLines(e)[0].split(" ");n.profile=r[2];for(let i=3;i{n.headerExtensions.push(t.parseExtmap(e))});let i=t.matchPrefix(e,"a=rtcp-fb:* ").map(t.parseRtcpFb);return n.codecs.forEach(e=>{i.forEach(t=>{e.rtcpFeedback.find(e=>e.type===t.type&&e.parameter===t.parameter)||e.rtcpFeedback.push(t)})}),n},t.writeRtpDescription=function(e,n){let r="";r+="m="+e+" "+(n.codecs.length>0?"9":"0")+" "+(n.profile||"UDP/TLS/RTP/SAVPF")+" "+n.codecs.map(e=>void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType).join(" ")+"\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\n",n.codecs.forEach(e=>{r+=t.writeRtpMap(e)+t.writeFmtp(e)+t.writeRtcpFb(e)});let i=0;return n.codecs.forEach(e=>{e.maxptime>i&&(i=e.maxptime)}),i>0&&(r+="a=maxptime:"+i+"\r\n"),n.headerExtensions&&n.headerExtensions.forEach(e=>{r+=t.writeExtmap(e)}),r},t.parseRtpEncodingParameters=function(e){let n;let r=[],i=t.parseRtpParameters(e),o=-1!==i.fecMechanisms.indexOf("RED"),a=-1!==i.fecMechanisms.indexOf("ULPFEC"),s=t.matchPrefix(e,"a=ssrc:").map(e=>t.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute),l=s.length>0&&s[0].ssrc,u=t.matchPrefix(e,"a=ssrc-group:FID").map(e=>e.substring(17).split(" ").map(e=>parseInt(e,10)));u.length>0&&u[0].length>1&&u[0][0]===l&&(n=u[0][1]),i.codecs.forEach(e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let t={ssrc:l,codecPayloadType:parseInt(e.parameters.apt,10)};l&&n&&(t.rtx={ssrc:n}),r.push(t),o&&((t=JSON.parse(JSON.stringify(t))).fec={ssrc:l,mechanism:a?"red+ulpfec":"red"},r.push(t))}}),0===r.length&&l&&r.push({ssrc:l});let c=t.matchPrefix(e,"b=");return c.length&&(c=0===c[0].indexOf("b=TIAS:")?parseInt(c[0].substring(7),10):0===c[0].indexOf("b=AS:")?950*parseInt(c[0].substring(5),10)-16e3:void 0,r.forEach(e=>{e.maxBitrate=c})),r},t.parseRtcpParameters=function(e){let n={},r=t.matchPrefix(e,"a=ssrc:").map(e=>t.parseSsrcMedia(e)).filter(e=>"cname"===e.attribute)[0];r&&(n.cname=r.value,n.ssrc=r.ssrc);let i=t.matchPrefix(e,"a=rtcp-rsize");n.reducedSize=i.length>0,n.compound=0===i.length;let o=t.matchPrefix(e,"a=rtcp-mux");return n.mux=o.length>0,n},t.writeRtcpParameters=function(e){let t="";return e.reducedSize&&(t+="a=rtcp-rsize\r\n"),e.mux&&(t+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),t},t.parseMsid=function(e){let n;let r=t.matchPrefix(e,"a=msid:");if(1===r.length)return{stream:(n=r[0].substring(7).split(" "))[0],track:n[1]};let i=t.matchPrefix(e,"a=ssrc:").map(e=>t.parseSsrcMedia(e)).filter(e=>"msid"===e.attribute);if(i.length>0)return{stream:(n=i[0].value.split(" "))[0],track:n[1]}},t.parseSctpDescription=function(e){let n;let r=t.parseMLine(e),i=t.matchPrefix(e,"a=max-message-size:");i.length>0&&(n=parseInt(i[0].substring(19),10)),isNaN(n)&&(n=65536);let o=t.matchPrefix(e,"a=sctp-port:");if(o.length>0)return{port:parseInt(o[0].substring(12),10),protocol:r.fmt,maxMessageSize:n};let a=t.matchPrefix(e,"a=sctpmap:");if(a.length>0){let e=a[0].substring(10).split(" ");return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:n}}},t.writeSctpDescription=function(e,t){let n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,22)},t.writeSessionBoilerplate=function(e,n,r){return"v=0\r\no="+(r||"thisisadapterortc")+" "+(e||t.generateSessionId())+" "+(void 0!==n?n:2)+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},t.getDirection=function(e,n){let r=t.splitLines(e);for(let e=0;e57343)return e.charAt(t);if(55296<=n&&n<=56319){if(e.length<=t+1)throw"High surrogate without following low surrogate";var r=e.charCodeAt(t+1);if(56320>r||r>57343)throw"High surrogate without following low surrogate";return e.charAt(t)+e.charAt(t+1)}if(0===t)throw"Low surrogate without preceding high surrogate";var i=e.charCodeAt(t-1);if(55296>i||i>56319)throw"Low surrogate without preceding high surrogate";return""},o=function(e){var t=e.image,n=e.name,o=e.onClick,a=e.onMouseOver,s=e.shape,l=e.size,u=void 0===l?32:l,c=(0,r.useState)(!1),d=c[0],f=c[1],h=(0,r.useState)(!1),p=h[0],m=h[1];(0,r.useEffect)(function(){f(!1),m(!1)},[t]);var g=i((null==n?void 0:n.toString())||"",0);return r.createElement("div",{className:"str-chat__avatar str-chat__avatar--".concat(void 0===s?"circle":s," str-chat__message-sender-avatar"),"data-testid":"avatar",onClick:void 0===o?function(){}:o,onMouseOver:void 0===a?function(){}:a,style:{flexBasis:"".concat(u,"px"),fontSize:"".concat(u/2,"px"),height:"".concat(u,"px"),lineHeight:"".concat(u,"px"),width:"".concat(u,"px")},title:n},t&&!d?r.createElement("img",{alt:g,className:"str-chat__avatar-image".concat(p?" str-chat__avatar-image--loaded":""),"data-testid":"avatar-img",onError:function(){return f(!0)},onLoad:function(){return m(!0)},src:t,style:{flexBasis:"".concat(u,"px"),height:"".concat(u,"px"),objectFit:"cover",width:"".concat(u,"px")}}):r.createElement("div",{className:"str-chat__avatar-fallback","data-testid":"avatar-fallback"},g))}},63683:function(e,t,n){"use strict";n.d(t,{$:function(){return eG}});var r=n(11735),i=n(2265),o=n(2151),a=n.n(o),s=n(57701),l=n.n(s),u=n(55644),c=n(91116),d=n(44839),f=function(e,t){var n;switch(t.type){case"closeThread":return(0,r.pi)((0,r.pi)({},e),{thread:null,threadLoadingMore:!1,threadMessages:[]});case"copyMessagesFromChannel":var i=t.channel,o=t.parentId;return(0,r.pi)((0,r.pi)({},e),{messages:(0,r.ev)([],i.state.messages,!0),pinnedMessages:(0,r.ev)([],i.state.pinnedMessages,!0),suppressAutoscroll:!1,threadMessages:o?(0,r.pi)({},i.state.threads)[o]||[]:e.threadMessages});case"copyStateFromChannelOnEvent":var i=t.channel;return(0,r.pi)((0,r.pi)({},e),{members:(0,r.pi)({},i.state.members),messages:(0,r.ev)([],i.state.messages,!0),pinnedMessages:(0,r.ev)([],i.state.pinnedMessages,!0),read:(0,r.pi)({},i.state.read),watcherCount:i.state.watcher_count,watchers:(0,r.pi)({},i.state.watchers)});case"initStateFromChannel":var i=t.channel,a=t.hasMore;return(0,r.pi)((0,r.pi)({},e),{hasMore:a,loading:!1,members:(0,r.pi)({},i.state.members),messages:(0,r.ev)([],i.state.messages,!0),pinnedMessages:(0,r.ev)([],i.state.pinnedMessages,!0),read:(0,r.pi)({},i.state.read),watcherCount:i.state.watcher_count,watchers:(0,r.pi)({},i.state.watchers)});case"jumpToLatestMessage":return(0,r.pi)((0,r.pi)({},e),{hasMoreNewer:!1,highlightedMessageId:void 0,loading:!1,suppressAutoscroll:!1});case"jumpToMessageFinished":return(0,r.pi)((0,r.pi)({},e),{hasMoreNewer:t.hasMoreNewer,highlightedMessageId:t.highlightedMessageId});case"clearHighlightedMessage":return(0,r.pi)((0,r.pi)({},e),{highlightedMessageId:void 0});case"loadMoreFinished":var a=t.hasMore,s=t.messages;return(0,r.pi)((0,r.pi)({},e),{hasMore:a,loadingMore:!1,messages:s,suppressAutoscroll:!1});case"loadMoreNewerFinished":var l=t.hasMoreNewer,s=t.messages;return(0,r.pi)((0,r.pi)({},e),{hasMoreNewer:l,loadingMoreNewer:!1,messages:s});case"loadMoreThreadFinished":var u=t.threadHasMore,c=t.threadMessages;return(0,r.pi)((0,r.pi)({},e),{threadHasMore:u,threadLoadingMore:!1,threadMessages:c});case"openThread":var i=t.channel,d=t.message;return(0,r.pi)((0,r.pi)({},e),{thread:d,threadMessages:d.id&&(0,r.pi)({},i.state.threads)[d.id]||[],threadSuppressAutoscroll:!1});case"setError":var f=t.error;return(0,r.pi)((0,r.pi)({},e),{error:f});case"setLoadingMore":var h=t.loadingMore;return(0,r.pi)((0,r.pi)({},e),{loadingMore:h,suppressAutoscroll:h});case"setLoadingMoreNewer":var p=t.loadingMoreNewer;return(0,r.pi)((0,r.pi)({},e),{loadingMoreNewer:p});case"setThread":var d=t.message;return(0,r.pi)((0,r.pi)({},e),{thread:d});case"setTyping":var i=t.channel;return(0,r.pi)((0,r.pi)({},e),{typing:(0,r.pi)({},i.state.typing)});case"startLoadingThread":return(0,r.pi)((0,r.pi)({},e),{threadLoadingMore:!0,threadSuppressAutoscroll:!0});case"updateThreadOnEvent":var i=t.channel,d=t.message;if(!e.thread)return e;return(0,r.pi)((0,r.pi)({},e),{thread:(null==d?void 0:d.id)===e.thread.id?i.state.formatMessage(d):e.thread,threadMessages:(null===(n=e.thread)||void 0===n?void 0:n.id)&&(0,r.pi)({},i.state.threads)[e.thread.id]||[]});default:return e}},h={error:null,hasMore:!0,hasMoreNewer:!1,loading:!0,loadingMore:!1,members:{},messages:[],pinnedMessages:[],read:{},suppressAutoscroll:!1,thread:null,threadHasMore:!0,threadLoadingMore:!1,threadMessages:[],threadSuppressAutoscroll:!1,typing:{},watcherCount:0,watchers:{}},p=n(42393),m=n(33600),g=function(e){var t,n=e.acceptedFiles,r=e.channel,o=e.channelCapabilitiesArray,a=e.channelConfig,s=e.debounceURLEnrichmentMs,l=e.dragAndDropWindow,u=e.enrichURLForPreview,c=e.giphyVersion,d=e.error,f=e.findURLFn,h=e.hasMore,p=e.hasMoreNewer,g=e.imageAttachmentSizeHandler,v=e.suppressAutoscroll,y=e.highlightedMessageId,b=e.loading,w=e.loadingMore,_=e.maxNumberOfFiles,x=e.members,D=e.messages,E=void 0===D?[]:D,C=e.multipleUploads,k=e.mutes,S=e.notifications,T=e.onLinkPreviewDismissed,M=e.pinnedMessages,O=e.quotedMessage,P=e.read,R=void 0===P?{}:P,j=e.shouldGenerateVideoThumbnail,L=e.skipMessageDataMemoization,F=e.thread,A=e.threadHasMore,N=e.threadLoadingMore,I=e.threadMessages,B=void 0===I?[]:I,U=e.videoAttachmentSizeHandler,z=e.watcherCount,H=e.watcher_count,V=e.watchers,q=r.cid,W=r.initialized&&(null===(t=r.lastRead())||void 0===t?void 0:t.getTime()),$=Object.keys(x||[]).length,Y=S.length,Z=Object.values(R),G=Z.length,J=Z.map(function(e){return e.last_read.toISOString()}).join(),K=null==B?void 0:B.length,X={};(void 0===o?[]:o).forEach(function(e){X[e]=!0});var Q=L?E:E.map(function(e){var t=e.deleted_at,n=e.latest_reactions,r=e.pinned,i=e.reply_count,o=e.status,a=e.updated_at,s=e.user;return"".concat(t).concat(n?n.map(function(e){return e.type}).join():"").concat(r).concat(i).concat(o).concat(a&&((0,m.MD)(a)||(0,m.J_)(a))?a.toISOString():a||"").concat(null==s?void 0:s.updated_at)}).join(),ee=B.map(function(e){var t=e.deleted_at,n=e.latest_reactions,r=e.pinned,i=e.status,o=e.updated_at,a=e.user;return"".concat(t).concat(n?n.map(function(e){return e.type}).join():"").concat(r).concat(i).concat(o&&((0,m.MD)(o)||(0,m.J_)(o))?o.toISOString():o||"").concat(null==a?void 0:a.updated_at)}).join();return(0,i.useMemo)(function(){return{acceptedFiles:n,channel:r,channelCapabilities:X,channelConfig:a,debounceURLEnrichmentMs:s,dragAndDropWindow:l,enrichURLForPreview:u,error:d,findURLFn:f,giphyVersion:c,hasMore:h,hasMoreNewer:p,highlightedMessageId:y,imageAttachmentSizeHandler:g,loading:b,loadingMore:w,maxNumberOfFiles:_,members:x,messages:E,multipleUploads:C,mutes:k,notifications:S,onLinkPreviewDismissed:T,pinnedMessages:M,quotedMessage:O,read:R,shouldGenerateVideoThumbnail:j,suppressAutoscroll:v,thread:F,threadHasMore:A,threadLoadingMore:N,threadMessages:B,videoAttachmentSizeHandler:U,watcher_count:H,watcherCount:z,watchers:V}},[q,s,u,d,f,h,p,y,W,b,w,$,Q,ee,Y,T,O,G,J,j,L,v,F,A,N,K,z])},v=function(e){var t=e.typing,n=Object.keys(t||{}).join();return(0,i.useMemo)(function(){return{typing:t}},[n])},y=n(40311),b=function(e){var t=(0,y.mx)("useEditMessageHandler"),n=t.channel,r=t.client;return function(t,i){return e&&n?Promise.resolve(e(n.cid,t,i)):r.updateMessage(t,void 0,i)}},w=function(){var e=(0,i.useRef)(!1);return(0,i.useEffect)(function(){return e.current=!0,function(){e.current=!1}},[]),e},_=n(88492),x=["video/mp4","video/ogg","video/webm","video/quicktime"],D=function(e){return e.og_scrape_url||e.title_link},E=function(e){return"image"===e.type&&!D(e)},C=n(72799),k=i.memo(function(e){var t=e.actionHandler,n=e.actions,r=e.id,o=e.text,a=(0,m.Ht)("UnMemoizedAttachmentActions").t;return i.createElement("div",{className:"str-chat__message-attachment-actions"},i.createElement("div",{className:"str-chat__message-attachment-actions-form"},i.createElement("span",null,o),n.map(function(e){return i.createElement("button",{className:"str-chat__message-attachment-actions-button str-chat__message-attachment-actions-button--".concat(e.style),"data-testid":"".concat(e.name),"data-value":e.value,key:"".concat(r,"-").concat(e.value),onClick:function(n){var r,i;return r=e.name,i=e.value,null==t?void 0:t(r,i,n)}},e.text?a(e.text):null)})))}),S=n(18727),T=n(6481),M=n.n(T),O=function(e){var t=e.fileSize;return t&&Number.isFinite(Number(t))?i.createElement("span",{className:"str-chat__message-attachment-file--item-size"},M()(t)):null},P=n(12782),R=function(){var e=(0,i.useState)(!1),t=e[0],n=e[1],r=(0,i.useState)(0),o=r[0],a=r[1],s=(0,i.useRef)(null),l=(0,i.useCallback)(function(){n(function(e){return!e})},[]),u=(0,i.useCallback)(function(e){var n=e.clientX,r=e.currentTarget;if(s.current){var i=r.getBoundingClientRect(),o=i.width,l=(n-i.x)/o;t||a(100*l),s.current.currentTime=l*s.current.duration}},[t]);return(0,i.useEffect)(function(){if(s.current&&t){var e=window.setInterval(function(){if(s.current){var e=s.current,t=e.currentTime,r=e.duration;a(t/r*100),t===r&&n(!1)}},100);return s.current.play(),function(){var t;null===(t=s.current)||void 0===t||t.pause(),window.clearInterval(e)}}},[t]),{audioRef:s,isPlaying:t,progress:o,seek:u,togglePlay:l}},j=function(e){var t=e.og,n=t.asset_url,r=t.description,o=t.image_url,a=t.text,s=t.title,l=R(),u=l.audioRef,c=l.isPlaying,d=l.progress,f=l.togglePlay;return i.createElement("div",{className:"str-chat__audio"},i.createElement("div",{className:"str-chat__audio__wrapper"},i.createElement("audio",{ref:u},i.createElement("source",{"data-testid":"audio-source",src:n,type:"audio/mp3"})),i.createElement("div",{className:"str-chat__audio__image"},i.createElement("div",{className:"str-chat__audio__image--overlay"},c?i.createElement("button",{className:"str-chat__audio__image--button","data-testid":"pause-audio",onClick:f},i.createElement("svg",{height:"40",viewBox:"0 0 64 64",width:"40",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M32 58.215c14.478 0 26.215-11.737 26.215-26.215S46.478 5.785 32 5.785 5.785 17.522 5.785 32 17.522 58.215 32 58.215zM32 64C14.327 64 0 49.673 0 32 0 14.327 14.327 0 32 0c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32zm-7.412-45.56h2.892a2.17 2.17 0 0 1 2.17 2.17v23.865a2.17 2.17 0 0 1-2.17 2.17h-2.892a2.17 2.17 0 0 1-2.17-2.17V20.61a2.17 2.17 0 0 1 2.17-2.17zm12.293 0h2.893a2.17 2.17 0 0 1 2.17 2.17v23.865a2.17 2.17 0 0 1-2.17 2.17h-2.893a2.17 2.17 0 0 1-2.17-2.17V20.61a2.17 2.17 0 0 1 2.17-2.17z",fillRule:"nonzero"}))):i.createElement("button",{className:"str-chat__audio__image--button","data-testid":"play-audio",onClick:f},i.createElement("svg",{height:"40",viewBox:"0 0 64 64",width:"40",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M32 58c14.36 0 26-11.64 26-26S46.36 6 32 6 6 17.64 6 32s11.64 26 26 26zm0 6C14.327 64 0 49.673 0 32 0 14.327 14.327 0 32 0c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32zm13.237-28.412L26.135 45.625a3.27 3.27 0 0 1-4.426-1.4 3.319 3.319 0 0 1-.372-1.47L21 23.36c-.032-1.823 1.41-3.327 3.222-3.358a3.263 3.263 0 0 1 1.473.322l19.438 9.36a3.311 3.311 0 0 1 .103 5.905z",fillRule:"nonzero"})))),o&&i.createElement("img",{alt:"".concat(r),src:o})),i.createElement("div",{className:"str-chat__audio__content"},i.createElement("span",{className:"str-chat__audio__content--title"},i.createElement("strong",null,s)),i.createElement("span",{className:"str-chat__audio__content--subtitle"},a),i.createElement("div",{className:"str-chat__audio__content--progress"},i.createElement("div",{"data-progress":d,"data-testid":"audio-progress",role:"progressbar",style:{width:"".concat(d,"%")}})))))},L=function(e){var t=e.isPlaying,n=e.onClick;return i.createElement("button",{className:"str-chat__message-attachment-audio-widget--play-button","data-testid":t?"pause-audio":"play-audio",onClick:n},t?i.createElement(S.fp,null):i.createElement(S.Kd,null))},F=function(e){var t=e.onClick,n=e.progress;return i.createElement("div",{className:"str-chat__message-attachment-audio-widget--progress-track","data-progress":n,"data-testid":"audio-progress",onClick:t,role:"progressbar",style:{background:"linear-gradient(\n to right,\n var(--str-chat__primary-color),\n var(--str-chat__primary-color) ".concat(n,"%,\n var(--str-chat__disabled-color) ").concat(n,"%,\n var(--str-chat__disabled-color)\n )")}},i.createElement("div",{className:"str-chat__message-attachment-audio-widget--progress-slider",style:{left:"".concat(n,"px")}}))},A=function(e){var t=e.og,n=t.asset_url,r=t.file_size,o=t.title,a=R(),s=a.audioRef,l=a.isPlaying,u=a.progress,c=a.seek,d=a.togglePlay;return n?i.createElement("div",{className:"str-chat__message-attachment-audio-widget","data-testid":"audio-widget"},i.createElement("audio",{ref:s},i.createElement("source",{"data-testid":"audio-source",src:n,type:"audio/mp3"})),i.createElement("div",{className:"str-chat__message-attachment-audio-widget--play-controls"},i.createElement(L,{isPlaying:l,onClick:d})),i.createElement("div",{className:"str-chat__message-attachment-audio-widget--text"},i.createElement("div",{className:"str-chat__message-attachment-audio-widget--text-first-row"},i.createElement("div",{className:"str-chat__message-attachment-audio-widget--title"},o),i.createElement(P.o,{assetUrl:n})),i.createElement("div",{className:"str-chat__message-attachment-audio-widget--text-second-row"},i.createElement(O,{fileSize:r}),i.createElement(F,{onClick:c,progress:u})))):null},N=i.memo(function(e){return"1"===(0,y.mx)("Audio").themeVersion?i.createElement(j,(0,r.pi)({},e)):i.createElement(A,(0,r.pi)({},e))}),I=n(85292),B=n(68650),U=n(95683),z=n(7433),H=n.n(z),V=function(e){e.target.alt=""},q=function(e){var t=e.original,n=e.originalAlt;return i.createElement(B.Z,{alt:n,className:"image-gallery-image",onError:V,src:t})},W=function(e){var t=e.images,n=e.index,r=(0,m.Ht)("ModalGallery").t,o=(0,i.useMemo)(function(){return t.map(function(e){var t=e.image_url||e.thumb_url||"";return{original:t,originalAlt:r("User uploaded content"),source:t}})},[t]);return i.createElement(H(),{items:o,renderItem:q,showIndex:!0,showPlayButton:!1,showThumbnails:!1,startIndex:n})},$=n(97959),Y=i.memo(function(e){var t=e.images,n=e.innerRefs,o=(0,i.useState)(0),a=o[0],s=o[1],l=(0,i.useState)(!1),u=l[0],c=l[1],f=(0,$.yM)("Gallery"),h=f.BaseImage,p=void 0===h?B.Z:h,g=f.ModalGallery,v=(0,m.Ht)("Gallery").t,y=v("User uploaded content"),b=function(e){u?c(!1):(s(e),c(!0))},w=t.slice(0,4).map(function(e,o){return 3===o&&t.length>4?i.createElement("button",(0,r.pi)({className:"str-chat__gallery-placeholder","data-testid":"gallery-image-last",key:"gallery-image-".concat(o),onClick:function(){return b(o)},style:(0,r.pi)({backgroundImage:"url(".concat(t[3].previewUrl||t[3].image_url||t[3].thumb_url,")")},e.style)},(null==n?void 0:n.current)&&{ref:function(e){return n.current[o]=e}}),i.createElement("p",null,v("{{ imageCount }} more",{imageCount:t.length-4}))):i.createElement("button",{className:"str-chat__gallery-image","data-testid":"gallery-image",key:"gallery-image-".concat(o),onClick:function(){return b(o)}},i.createElement(p,(0,r.pi)({alt:(null==e?void 0:e.fallback)||y,src:(0,I.Nm)(e.previewUrl||e.image_url||e.thumb_url),style:e.style,title:(null==e?void 0:e.fallback)||y},(null==n?void 0:n.current)&&{ref:function(e){return n.current[o]=e}})))}),_=(0,d.Z)("str-chat__gallery",{"str-chat__gallery--square":t.length>3,"str-chat__gallery-two-rows":t.length>2});return i.createElement("div",{className:_},w,i.createElement(U.u,{onClose:function(){return c(function(e){return!e})},open:u},i.createElement(void 0===g?W:g,{images:t,index:a})))}),Z=function(e){var t=e.dimensions,n=e.fallback,o=e.image_url,a=e.thumb_url,s=e.innerRef,l=e.previewUrl,u=e.style,c=(0,i.useState)(!1),d=c[0],f=c[1],h=(0,$.yM)("ImageComponent"),p=h.BaseImage,m=void 0===p?B.Z:p,g=h.ModalGallery,v=(0,I.Nm)(l||o||a),y=function(){return f(function(e){return!e})};return i.createElement(i.Fragment,null,i.createElement(m,(0,r.pi)({alt:n,className:"str-chat__message-attachment--img","data-testid":"image-test",onClick:y,src:v,style:u,tabIndex:0,title:n},void 0===t?{}:t,s&&{ref:s})),i.createElement(U.u,{onClose:y,open:d},i.createElement(void 0===g?W:g,{images:[e],index:0})))},G=n(13897),J=n(61612),K=function(e){return null!=e?e.replace(/^(?:https?:\/\/)?(?:www\.)?/i,"").split("/")[0]:null},X=function(e){var t,n=e.type,r=(0,m.Ht)("Card").t;return i.createElement("div",{className:(0,d.Z)("str-chat__message-attachment-card",((t={})["str-chat__message-attachment-card--".concat(n)]=n,t))},i.createElement("div",{className:"str-chat__message-attachment-card--content"},i.createElement("div",{className:"str-chat__message-attachment-card--text"},r("this content could not be displayed"))))},Q=function(e){var t=e.asset_url,n=e.giphy,o=e.image_url,a=e.og_scrape_url,s=e.text,l=e.thumb_url,u=e.title,c=e.title_link,d=e.type,f=(0,J.JN)("Card").giphyVersion,h=l||o,p={};if("giphy"===d&&void 0!==n){var m=n[f];h=m.url,p.height=m.height,p.width=m.width}return u||c||t||h?c||a?i.createElement("div",{className:"str-chat__message-attachment-card str-chat__message-attachment-card--".concat(d)},i.createElement(et,(0,r.pi)({},e,{dimensions:p,image:h})),"video"!==d&&i.createElement("div",{className:"str-chat__message-attachment-card--content"},i.createElement("div",{className:"str-chat__message-attachment-card--flex"},u&&i.createElement("div",{className:"str-chat__message-attachment-card--title"},u),s&&i.createElement("div",{className:"str-chat__message-attachment-card--text"},s),(c||a)&&i.createElement(G.H,{className:"str-chat__message-attachment-card--url",href:c||a,rel:"noopener noreferrer",target:"_blank"},K(c||a))))):null:i.createElement(X,{type:d})},ee=function(e){var t=e.author_name,n=e.url;return i.createElement("div",{className:"str-chat__message-attachment-card--source-link","data-testid":"card-source-link"},i.createElement(G.H,{className:"str-chat__message-attachment-card--url",href:n,rel:"noopener noreferrer",target:"_blank"},t||K(n)))},et=function(e){var t=e.asset_url,n=e.dimensions,r=e.image,o=e.image_url,a=e.thumb_url,s=e.title,l=e.type,u=null;return t&&"video"===l?u=i.createElement(_.Z,{className:"react-player",controls:!0,height:"100%",url:t,width:"100%"}):r&&(u=i.createElement(Z,{dimensions:n,fallback:s||r,image_url:o,thumb_url:a})),u?i.createElement("div",{className:"str-chat__message-attachment-card--header str-chat__message-attachment-card-react--header","data-testid":"card-header"},u):null},en=function(e){var t=e.author_name,n=e.og_scrape_url,r=e.text,o=e.title,a=e.title_link,s=e.type,l=a||n;return i.createElement("div",{className:"str-chat__message-attachment-card--content"},"audio"===s?i.createElement(ei,{og:e}):i.createElement("div",{className:"str-chat__message-attachment-card--flex"},l&&i.createElement(ee,{author_name:t,url:l}),o&&i.createElement("div",{className:"str-chat__message-attachment-card--title"},o),r&&i.createElement("div",{className:"str-chat__message-attachment-card--text"},r)))},er=function(e){var t=e.asset_url,n=e.giphy,o=e.image_url,a=e.thumb_url,s=e.title,l=e.title_link,u=e.type,c=(0,J.JN)("CardHeader").giphyVersion,d=a||o,f={};if("giphy"===u&&void 0!==n){var h=n[c];d=h.url,f.height=h.height,f.width=h.width}return s||l||t||d?i.createElement("div",{className:"str-chat__message-attachment-card str-chat__message-attachment-card--".concat(u)},i.createElement(et,(0,r.pi)({},e,{dimensions:f,image:d})),i.createElement(en,(0,r.pi)({},e))):i.createElement(X,null)},ei=function(e){var t=e.og,n=t.asset_url,r=t.author_name,o=t.og_scrape_url,a=t.text,s=t.title,l=t.title_link,u=R(),c=u.audioRef,d=u.isPlaying,f=u.progress,h=u.seek,p=u.togglePlay,m=l||o;return i.createElement("div",{className:"str-chat__message-attachment-card-audio-widget","data-testid":"card-audio-widget"},n&&i.createElement(i.Fragment,null,i.createElement("audio",{ref:c},i.createElement("source",{"data-testid":"audio-source",src:n,type:"audio/mp3"})),i.createElement("div",{className:"str-chat__message-attachment-card-audio-widget--first-row"},i.createElement("div",{className:"str-chat__message-attachment-audio-widget--play-controls"},i.createElement(L,{isPlaying:d,onClick:p})),i.createElement(F,{onClick:h,progress:f}))),i.createElement("div",{className:"str-chat__message-attachment-audio-widget--second-row"},m&&i.createElement(ee,{author_name:r,url:m}),s&&i.createElement("div",{className:"str-chat__message-attachment-audio-widget--title"},s),a&&i.createElement("div",{className:"str-chat__message-attachment-audio-widget--description"},a)))},eo=i.memo(function(e){return"2"===(0,y.mx)("Card").themeVersion?i.createElement(er,(0,r.pi)({},e)):i.createElement(Q,(0,r.pi)({},e))}),ea=n(27988),es=function(e){var t=e.attachment;return i.createElement("div",{className:"str-chat__message-attachment-file--item","data-testid":"attachment-file"},i.createElement(ea.a,{big:!0,mimeType:t.mime_type,size:30}),i.createElement("div",{className:"str-chat__message-attachment-file--item-text"},i.createElement(G.H,{download:!0,href:t.asset_url,target:"_blank"},t.title),i.createElement(O,{fileSize:t.file_size})))},el=function(e){var t=e.attachment;return i.createElement("div",{className:"str-chat__message-attachment-file--item","data-testid":"attachment-file"},i.createElement(ea.a,{className:"str-chat__file-icon",mimeType:t.mime_type,version:"2"}),i.createElement("div",{className:"str-chat__message-attachment-file--item-text"},i.createElement("div",{className:"str-chat__message-attachment-file--item-first-row"},i.createElement("div",{className:"str-chat__message-attachment-file--item-name","data-testid":"file-title"},t.title),i.createElement(P.o,{assetUrl:t.asset_url})),i.createElement(O,{fileSize:t.file_size})))},eu=i.memo(function(e){var t=e.attachment;return"2"===(0,y.mx)("FileAttachment").themeVersion?i.createElement(el,{attachment:t}):i.createElement(es,{attachment:t})}),ec=function(){return null},ed=function(e){var t,n,r=e.attachment,o=e.children,a=e.componentType,s=Array.isArray(r.images),l="";s||(l="card"!==a||(null==r?void 0:r.image_url)||(null==r?void 0:r.thumb_url)?(null===(n=null==r?void 0:r.actions)||void 0===n?void 0:n.length)?"actions":"":"no-image");var u=(0,d.Z)("str-chat__message-attachment str-chat__message-attachment-dynamic-size",((t={})["str-chat__message-attachment--".concat(a)]=a,t["str-chat__message-attachment--".concat(null==r?void 0:r.type)]=null==r?void 0:r.type,t["str-chat__message-attachment--".concat(a,"--").concat(l)]=a&&l,t["str-chat__message-attachment--svg-image"]=(r.fallback||"").toLowerCase().endsWith(".svg"),t["str-chat__message-attachment-with-actions"]="actions"===l,t));return i.createElement("div",{className:u},o)},ef=function(e){var t,n=e.actionHandler,o=e.attachment,a=e.AttachmentActions;return(null===(t=o.actions)||void 0===t?void 0:t.length)?i.createElement(void 0===a?k:a,(0,r.pi)({},o,{actionHandler:n,actions:o.actions,id:o.id||"",text:o.text||""})):null};function eh(e){var t={"--original-height":1e6,"--original-width":1e6};if(C.Bu(e,"url")){var n=new URL(e).searchParams,r=Number(n.get("oh")),i=Number(n.get("ow"));t["--original-width"]=i>1?i:1e6,t["--original-height"]=r>1?r:1e6}return t}var ep=function(e){var t=e.attachment,n=e.Gallery,o=(0,i.useRef)([]),a=(0,J.JN)().imageAttachmentSizeHandler,s=(0,i.useState)([]),l=s[0],u=s[1];(0,i.useLayoutEffect)(function(){if(o.current&&o.current.every(function(e){return!!e})&&a){var e=[];o.current.forEach(function(n,r){var i=a(t.images[r],n);e.push(i)}),u(e)}},[o,a,t]);var c=t.images.map(function(e,n){var i,o,a;return(0,r.pi)((0,r.pi)({},e),{previewUrl:(null===(i=l[n])||void 0===i?void 0:i.url)||"about:blank",style:eh((null===(o=t.images[n])||void 0===o?void 0:o.image_url)||(null===(a=t.images[n])||void 0===a?void 0:a.thumb_url)||"")})});return i.createElement(ed,{attachment:t,componentType:"gallery"},i.createElement(void 0===n?Y:n,{images:c||[],innerRefs:o,key:"gallery"}))},em=function(e){var t=e.attachment,n=e.Image,o=void 0===n?Z:n,a="image",s=(0,i.useRef)(null),l=(0,J.JN)().imageAttachmentSizeHandler,u=(0,i.useState)(void 0),c=u[0],d=u[1];(0,i.useLayoutEffect)(function(){s.current&&l&&d(l(t,s.current))},[s,l,t]);var f=(0,r.pi)((0,r.pi)({},t),{previewUrl:(null==c?void 0:c.url)||"about:blank",style:eh(t.image_url||t.thumb_url||"")});return t.actions&&t.actions.length?i.createElement(ed,{attachment:t,componentType:a},i.createElement("div",{className:"str-chat__attachment"},i.createElement(o,(0,r.pi)({},f,{innerRef:s})),i.createElement(ef,(0,r.pi)({},e)))):i.createElement(ed,{attachment:t,componentType:a},i.createElement(o,(0,r.pi)({},f,{innerRef:s})))},eg={audio:function(e){var t=e.attachment,n=e.Audio;return i.createElement(ed,{attachment:t,componentType:"audio"},i.createElement("div",{className:"str-chat__attachment"},i.createElement(void 0===n?N:n,{og:t})))},card:function(e){var t=e.attachment,n=e.Card,o=void 0===n?eo:n,a="card";return t.actions&&t.actions.length?i.createElement(ed,{attachment:t,componentType:a},i.createElement("div",{className:"str-chat__attachment"},i.createElement(o,(0,r.pi)({},t)),i.createElement(ef,(0,r.pi)({},e)))):i.createElement(ed,{attachment:t,componentType:a},i.createElement(o,(0,r.pi)({},t)))},file:function(e){var t=e.attachment,n=e.File;return t.asset_url?i.createElement(ed,{attachment:t,componentType:"file"},i.createElement(void 0===n?eu:n,{attachment:t})):null},media:function(e){var t,n=e.attachment,o=e.Media,a=void 0===o?_.Z:o,s="media",l=(0,J.JN)(),u=l.shouldGenerateVideoThumbnail,c=l.videoAttachmentSizeHandler,d=(0,i.useRef)(null),f=(0,i.useState)(),h=f[0],p=f[1];(0,i.useLayoutEffect)(function(){d.current&&c&&p(c(n,d.current,u))},[d,c,n]);var m=i.createElement("div",{className:"str-chat__player-wrapper","data-testid":"video-wrapper",ref:d,style:eh(n.thumb_url||"")},i.createElement(a,{className:"react-player",config:{file:{attributes:{poster:null==h?void 0:h.thumbUrl}}},controls:!0,height:"100%",url:null==h?void 0:h.url,width:"100%"}));return(null===(t=n.actions)||void 0===t?void 0:t.length)?i.createElement(ed,{attachment:n,componentType:s},i.createElement("div",{className:"str-chat__attachment str-chat__attachment-media"},m,i.createElement(ef,(0,r.pi)({},e)))):i.createElement(ed,{attachment:n,componentType:s},m)},unsupported:function(e){var t=e.attachment,n=e.UnsupportedAttachment;return i.createElement(i.Fragment,null,i.createElement(void 0===n?ec:n,{attachment:t}))}},ev=["card","gallery","image","media","audio","file","unsupported"],ey=function(e){var t=e.attachments,n=(0,i.useMemo)(function(){return eb(e)},[t]);return i.createElement("div",{className:"str-chat__attachment-list"},ev.reduce(function(e,t){return(0,r.ev)((0,r.ev)([],e,!0),n[t],!0)},[]))},eb=function(e){var t=e.attachments,n=(0,r._T)(e,["attachments"]),o=t.filter(function(e){return E(e)}),a=t.filter(function(e){return!E(e)}).reduce(function(e,t){var o=ew(t),a=eg[o];return e[o].push(i.createElement(a,(0,r.pi)({key:"".concat(o,"-").concat(e[o].length)},n,{attachment:t}))),e},{audio:[],card:[],file:[],media:[],unsupported:[],image:[],gallery:[]});return o.length>1?a.gallery=[i.createElement(ep,(0,r.pi)({key:"gallery-container"},n,{attachment:{images:o,type:"gallery"}}))]:1===o.length&&(a.image=[i.createElement(em,(0,r.pi)({key:"image-container"},n,{attachment:o[0]}))]),a},ew=function(e){return D(e)?"card":e.mime_type&&-1!==x.indexOf(e.mime_type)||"video"===e.type?"media":"audio"===e.type?"audio":"file"===e.type||e.mime_type&&-1===x.indexOf(e.mime_type)&&"video"!==e.type?"file":"unsupported"},e_=i.memo(function(e){var t=e.error,n=(0,m.Ht)("LoadingErrorIndicator").t;return t?i.createElement("div",null,n("Error: {{ errorMessage }}",{errorMessage:t.message})):null},function(e,t){var n,r;return(null===(n=e.error)||void 0===n?void 0:n.message)===(null===(r=t.error)||void 0===r?void 0:r.message)}),ex=function(){return i.createElement("div",{className:"str-chat__loading-channel-message"},i.createElement("div",{className:"str-chat__loading-channel-message-avatar"}),i.createElement("div",{className:"str-chat__loading-channel-message-end"},i.createElement("div",{className:"str-chat__loading-channel-message-sender"}),i.createElement("div",{className:"str-chat__loading-channel-message-last-row"},i.createElement("div",{className:"str-chat__loading-channel-message-text"}),i.createElement("div",{className:"str-chat__loading-channel-message-date"}))))},eD=function(){return i.createElement("div",{className:"str-chat__loading-channel-message-input-row"},i.createElement("div",{className:"str-chat__loading-channel-message-input"}),i.createElement("div",{className:"str-chat__loading-channel-message-send"}))},eE=function(){return i.createElement("div",{className:"str-chat__loading-channel-header"},i.createElement("div",{className:"str-chat__loading-channel-header-avatar"}),i.createElement("div",{className:"str-chat__loading-channel-header-end"},i.createElement("div",{className:"str-chat__loading-channel-header-name"}),i.createElement("div",{className:"str-chat__loading-channel-header-info"})))},eC=function(){return i.createElement("div",{className:"str-chat__loading-channel"},i.createElement(eE,null),i.createElement("div",{className:"str-chat__loading-channel-message-list"},Array.from([,,,]).map(function(e,t){return i.createElement(ex,{key:"loading-message-".concat(t)})})),i.createElement(eD,null))},ek=n(70907),eS=n(69058),eT=n(67378),eM=n(92560),eO=n(43751),eP=n(74745),eR=function(e){var t=e.children,n=(0,J.JN)("DropzoneProvider"),r=n.acceptedFiles,o=n.multipleUploads,a=(0,eP.Nc)("DropzoneProvider"),s=a.cooldownRemaining,l=a.isUploadEnabled,u=a.maxFilesLeft,c=a.uploadNewFiles;return i.createElement(eS.v,{accept:r,disabled:!l||0===u||!!s,handleFiles:c,maxNumberOfFiles:u,multiple:o},t)},ej=function(e){var t=(0,eT._)(),n=(0,eO.k)(e),o=(0,eM.u)((0,r.pi)((0,r.pi)((0,r.pi)({},t),n),e));return i.createElement(eP.G6,{value:o},i.createElement(eR,null,e.children))},eL=n(92765),eF=n(86390),eA=n(47556),eN=n(66043),eI=n(58605),eB=n(1538),eU=function(e){var t,n,r,i=e.customClasses,o=(0,y.mx)("Channel").useImageFlagEmojisOnWindows;return{channelClass:null!==(t=null==i?void 0:i.channel)&&void 0!==t?t:"str-chat-channel str-chat__channel",chatClass:null!==(n=null==i?void 0:i.chat)&&void 0!==n?n:"str-chat",chatContainerClass:null!==(r=null==i?void 0:i.chatContainer)&&void 0!==r?r:"str-chat__container",windowsEmojiClass:o&&navigator.userAgent.match(/Win/)?"str-chat--windows-flags":""}},ez=function(e,t){var n=void 0,r=e.image_url||e.thumb_url||"";if(C.Bu(r,"url")){var i=new URL(r),o=eV(i,t);o&&(o.height*=2,o.width*=2,eY(o,i)),n=i.href}return{url:n||""}},eH=function(e,t,n){var r=void 0;if(e.thumb_url&&n&&C.Bu(e.thumb_url,"url")){var i=new URL(e.thumb_url),o=eV(i,t);o&&(o.height*=2,o.width*=2,eY(o,i)),r=i.href}return{thumbUrl:r,url:e.asset_url||""}},eV=function(e,t){var n=e.searchParams,r=Number(n.get("oh"))||1,i=Number(n.get("ow"))||1,o=eW(t);return(o.maxHeight||o.height)&&o.maxWidth?eq(r,i,o.maxHeight||o.height,o.maxWidth):void 0},eq=function(e,t,n,r){return{height:Math.round(Math.max(n,r/t*e)),width:Math.round(Math.max(n,r/e*t))}},eW=function(e){var t=getComputedStyle(e),n=e$(t.getPropertyValue("height")),r=e$(t.getPropertyValue("max-height")),i=e$(t.getPropertyValue("max-width"));return(n||r)&&i||console.warn("Invalid value set for height/max-height and/or max-width for HTML element, this can cause scrolling issues inside the message list, more info https://getstream.io/chat/docs/sdk/react/message-components/attachment/#image-and-video-sizing"),{height:n,maxHeight:r,maxWidth:i}},e$=function(e){if(e.endsWith("px")){var t=parseFloat(e);return isNaN(t)?void 0:t}},eY=function(e,t){t.searchParams.set("h",e.height.toString()),t.searchParams.set("w",e.width.toString())},eZ=function(e){var t,n=e.acceptedFiles,o=e.activeUnreadHandler,s=e.channel,_=e.channelQueryOptions,x=e.children,D=e.doDeleteMessageRequest,E=e.doMarkReadRequest,C=e.doSendMessageRequest,k=e.doUpdateMessageRequest,S=e.dragAndDropWindow,T=void 0!==S&&S,M=e.emojiData,O=e.enrichURLForPreviewConfig,P=e.initializeOnMount,R=void 0===P||P,j=e.LoadingErrorIndicator,L=e.LoadingIndicator,F=e.maxNumberOfFiles,A=e.multipleUploads,N=e.onMentionsClick,I=e.onMentionsHover,B=e.optionalMessageInputProps,U=e.skipMessageDataMemoization,z=(0,y.mx)("Channel"),H=z.client,V=z.customClasses,q=z.latestMessageDatesByChannels,W=z.mutes,Y=z.theme,Z=(0,m.Ht)("Channel").t,G=eU({customClasses:V}),K=G.channelClass,X=G.chatClass,Q=G.chatContainerClass,ee=G.windowsEmojiClass,et=(0,i.useState)(s.getConfig()),en=et[0],er=et[1],ei=(0,i.useState)([]),eo=ei[0],ea=ei[1],es=(0,i.useState)(),el=es[0],eu=es[1],ec=[],ed=(0,i.useReducer)(f,(0,r.pi)((0,r.pi)({},h),{loading:!s.initialized})),ef=ed[0],eh=ed[1],ep=w(),em=(0,i.useRef)(""),eg=(0,i.useRef)(new Date),ev=(0,i.useRef)(!0),eb=null===(t=s.data)||void 0===t?void 0:t.own_capabilities,ew={commonEmoji:p.Q9,defaultMinimalEmojis:p.R$,emojiData:void 0===M?eI:M,emojiSetDef:p._},ex=l()(function(){return eh({channel:s,type:"copyStateFromChannelOnEvent"})},500,{leading:!0,trailing:!0}),eD=function(){!s.disconnected&&(null==en?void 0:en.read_events)&&(eg.current=new Date,E?E(s):(0,u.t1)(s.markRead(),"mark read"),o?o(0,em.current):em.current&&(document.title=em.current))},eE=l()(eD,500,{leading:!0,trailing:!0}),eS=function(e){return(0,r.mG)(void 0,void 0,void 0,function(){var t,n,i,a,l,u,c,d,f,h,p,m,g,v,y,b;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if(e.message&&eh({channel:s,message:e.message,type:"updateThreadOnEvent"}),"user.watching.start"===e.type||"user.watching.stop"===e.type)return[2];if("typing.start"===e.type||"typing.stop"===e.type)return[2,eh({channel:s,type:"setTyping"})];if("connection.changed"===e.type&&"boolean"==typeof e.online&&(ev.current=e.online),"message.new"===e.type&&(t=!0,(null===(u=e.message)||void 0===u?void 0:u.parent_id)&&!(null===(c=e.message)||void 0===c?void 0:c.show_in_channel)&&(t=!1),t&&(null===(f=null===(d=e.message)||void 0===d?void 0:d.user)||void 0===f?void 0:f.id)!==H.userID&&(document.hidden?(null==en?void 0:en.read_events)&&!s.muteStatus().muted&&(n=s.countUnread(eg.current),o?o(n,em.current):document.title="(".concat(n,") ").concat(em.current)):eE()),(null===(p=null===(h=e.message)||void 0===h?void 0:h.user)||void 0===p?void 0:p.id)===H.userID&&(null===(m=null==e?void 0:e.message)||void 0===m?void 0:m.created_at)&&(null===(g=null==e?void 0:e.message)||void 0===g?void 0:g.cid)&&(i=new Date(e.message.created_at),(!q[a=e.message.cid]||q[a].getTime()0&&eD(),document.addEventListener("visibilitychange",n),H.on("connection.changed",eS),H.on("connection.recovered",eS),H.on("user.updated",eS),H.on("user.deleted",eS),s.on(eS)),[2]}})}),function(){!e&&t&&(document.removeEventListener("visibilitychange",n),null==s||s.off(eS),H.off("connection.changed",eS),H.off("connection.recovered",eS),H.off("user.updated",eS),H.off("user.deleted",eS),ec.forEach(clearTimeout))}},[s.cid,_,E,null==en?void 0:en.read_events,R]),(0,i.useEffect)(function(){if(ef.thread){var e,t=null===(e=ef.messages)||void 0===e?void 0:e.find(function(e){var t;return e.id===(null===(t=ef.thread)||void 0===t?void 0:t.id)});t&&eh({message:t,type:"setThread"})}},[ef.messages,ef.thread]);var eT=function(e,t){if("string"==typeof e&&("success"===t||"error"===t)){var n=(0,c.x0)();ea(function(i){return(0,r.ev)((0,r.ev)([],i,!0),[{id:n,text:e,type:t}],!1)});var i=setTimeout(function(){return ea(function(e){return e.filter(function(e){return e.id!==n})})},5e3);ec.push(i)}},eM=a()(function(e,t){ep.current&&eh({hasMore:e,messages:t,type:"loadMoreFinished"})},2e3,{leading:!0,trailing:!0}),eO=function(e){return void 0===e&&(e=100),(0,r.mG)(void 0,void 0,void 0,function(){var t,n,i,o,a;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if(!ev.current||!window.navigator.onLine||!ef.hasMore||(t=null===(a=null==ef?void 0:ef.messages)||void 0===a?void 0:a[0],ef.loadingMore||ef.loadingMoreNewer||(null==t?void 0:t.status)!=="received"))return[2,0];eh({loadingMore:!0,type:"setLoadingMore"}),n=null==t?void 0:t.id,i=e,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,s.query({messages:{id_lt:n,limit:i},watchers:{limit:i}})];case 2:return o=r.sent(),[3,4];case 3:return console.warn("message pagination request failed with error",r.sent()),eh({loadingMore:!1,type:"setLoadingMore"}),[2,0];case 4:return eM(o.messages.length===i,s.state.messages),[2,o.messages.length]}})})},eP=function(e){return void 0===e&&(e=100),(0,r.mG)(void 0,void 0,void 0,function(){var t,n,i,o,a,l;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if(!ev.current||!window.navigator.onLine||(t=null===(a=null==ef?void 0:ef.messages)||void 0===a?void 0:a[(null===(l=null==ef?void 0:ef.messages)||void 0===l?void 0:l.length)-1],ef.loadingMore||ef.loadingMoreNewer))return[2,0];eh({loadingMoreNewer:!0,type:"setLoadingMoreNewer"}),n=null==t?void 0:t.id,i=e,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,s.query({messages:{id_gt:n,limit:i},watchers:{limit:i}})];case 2:return o=r.sent(),[3,4];case 3:return console.warn("message pagination request failed with error",r.sent()),eh({loadingMoreNewer:!1,type:"setLoadingMoreNewer"}),[2,0];case 4:return eh({hasMoreNewer:s.state.messages!==s.state.latestMessages,messages:s.state.messages,type:"loadMoreNewerFinished"}),[2,o.messages.length]}})})},eR=(0,i.useRef)(null),eV=function(e,t){return void 0===t&&(t=100),(0,r.mG)(void 0,void 0,void 0,function(){return(0,r.Jh)(this,function(n){switch(n.label){case 0:return eh({loadingMore:!0,type:"setLoadingMore"}),[4,s.state.loadMessageIntoState(e,void 0,t)];case 1:return n.sent(),eM(s.state.messages.findIndex(function(t){return t.id===e})>=Math.floor(t/2),s.state.messages),eh({hasMoreNewer:s.state.messages!==s.state.latestMessages,highlightedMessageId:e,type:"jumpToMessageFinished"}),eR.current&&clearTimeout(eR.current),eR.current=setTimeout(function(){eR.current=null,eh({type:"clearHighlightedMessage"})},500),[2]}})})},eq=function(){return(0,r.mG)(void 0,void 0,void 0,function(){return(0,r.Jh)(this,function(e){switch(e.label){case 0:return[4,s.state.loadMessageIntoState("latest")];case 1:return e.sent(),eM(s.state.messages.length>=25,s.state.messages),eh({type:"jumpToLatestMessage"}),[2]}})})},eW=(0,i.useCallback)(function(e){return(0,r.mG)(void 0,void 0,void 0,function(){var t;return(0,r.Jh)(this,function(n){switch(n.label){case 0:if(!(null==e?void 0:e.id))throw Error("Cannot delete a message - missing message ID.");if(!D)return[3,2];return[4,D(e)];case 1:return t=n.sent(),[3,4];case 2:return[4,H.deleteMessage(e.id)];case 3:t=n.sent().message,n.label=4;case 4:return[2,t]}})})},[H,D]),e$=function(e){s.state.addMessageSorted(e,!0),eh({channel:s,parentId:ef.thread&&e.parent_id,type:"copyMessagesFromChannel"})},eY=function(e){var t;return(null===(t=e[0])||void 0===t?void 0:t.id)!=null},eZ=function(e,t,n){return(0,r.mG)(void 0,void 0,void 0,function(){var i,o,a,l,u,c,d,f,h,p,m,g,v,y,b,w,_;return(0,r.Jh)(this,function(x){switch(x.label){case 0:i=e.attachments,o=e.id,l=void 0===(a=e.mentioned_users)?[]:a,u=e.parent_id,c=e.text,d=eY(l)?l.map(function(e){return e.id}):l,f=(0,r.pi)({attachments:i,id:o,mentioned_users:d,parent_id:u,quoted_message_id:u===(null==el?void 0:el.parent_id)?null==el?void 0:el.id:void 0,text:c},t),x.label=1;case 1:if(x.trys.push([1,6,,7]),h=void 0,!C)return[3,3];return[4,C(s.cid,f,n)];case 2:return h=x.sent(),[3,5];case 3:return[4,s.sendMessage(f,n)];case 4:h=x.sent(),x.label=5;case 5:for(p=void 0,m=s.state.messages.length-1;m>=0;m--)if((g=s.state.messages[m]).id===f.id){p=g;break}return v=new Date((null===(w=null==h?void 0:h.message)||void 0===w?void 0:w.updated_at)||0).getTime()>((null===(_=null==p?void 0:p.updated_at)||void 0===_?void 0:_.getTime())||0),(null==h?void 0:h.message)&&(v||(null==p?void 0:p.status)==="sending")&&e$((0,r.pi)((0,r.pi)({},h.message),{status:"received"})),el&&u===(null==el?void 0:el.parent_id)&&eu(void 0),[3,7];case 6:return b=(y=JSON.stringify(x.sent()))?JSON.parse(y):{},e$((0,r.pi)((0,r.pi)({},e),{error:b,errorStatusCode:b.status||void 0,status:"failed"})),[3,7];case 7:return[2]}})})},eG=function(e,t,n){var i=e.attachments,o=void 0===i?[]:i,a=e.mentioned_users,l=void 0===a?[]:a,u=e.parent,d=e.text,f=void 0===d?"":d;return(0,r.mG)(void 0,void 0,void 0,function(){var e,i;return(0,r.Jh)(this,function(a){switch(a.label){case 0:return s.state.filterErrorMessages(),e$(e=(0,r.pi)({__html:f,attachments:o,created_at:new Date,html:f,id:null!==(i=null==t?void 0:t.id)&&void 0!==i?i:"".concat(H.userID,"-").concat((0,c.x0)()),mentioned_users:l,reactions:[],status:"sending",text:f,type:"regular",user:H.user},(null==u?void 0:u.id)?{parent_id:u.id}:null)),[4,eZ(e,t,n)];case 1:return a.sent(),[2]}})})},eJ=function(e){return(0,r.mG)(void 0,void 0,void 0,function(){return(0,r.Jh)(this,function(t){switch(t.label){case 0:return e$((0,r.pi)((0,r.pi)({},e),{errorStatusCode:void 0,status:"sending"})),e.attachments&&(e.attachments=e.attachments.filter(function(e){return!e.og_scrape_url})),[4,eZ(e)];case 1:return t.sent(),[2]}})})},eK=function(e){s.state.removeMessage(e),eh({channel:s,parentId:ef.thread&&e.parent_id,type:"copyMessagesFromChannel"})},eX=function(e,t){null==t||t.preventDefault(),eu(function(t){if((null==t?void 0:t.parent_id)===(null==e?void 0:e.parent_id))return t}),eh({channel:s,message:e,type:"openThread"})},eQ=function(e){null==e||e.preventDefault(),eh({type:"closeThread"})},e0=a()(function(e,t){eh({threadHasMore:e,threadMessages:t,type:"loadMoreThreadFinished"})},2e3,{leading:!0,trailing:!0}),e1=function(e){return void 0===e&&(e=50),(0,r.mG)(void 0,void 0,void 0,function(){var t,n,i,o,a;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if(ef.threadLoadingMore||!ef.thread)return[2];if(eh({type:"startLoadingThread"}),!(t=ef.thread.id))return[2,eh({type:"closeThread"})];i=null===(a=(n=s.state.threads[t]||[])[0])||void 0===a?void 0:a.id,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,s.getReplies(t,{id_lt:i,limit:e})];case 2:return o=r.sent(),e0((0,eN.Th)(o.messages.length,e),s.state.threads[t]||[]),[3,4];case 3:return r.sent(),e0(!1,n),[3,4];case 4:return[2]}})})},e2=(0,i.useCallback)(function(e,t){if((I||N)&&e.target instanceof HTMLElement){var n=e.target.innerHTML.replace("*","");if("@"===n[0]){var r=n.replace("@",""),i=null==t?void 0:t.find(function(e){var t=e.id;return e.name===r||t===r});I&&"function"==typeof I&&"mouseover"===e.type&&I(e,i),N&&"click"===e.type&&"function"==typeof N&&N(e,i)}}},[N,I]),e3=b(k),e4=ef.typing,e6=(0,r._T)(ef,["typing"]),e5=g((0,r.pi)((0,r.pi)({},e6),{acceptedFiles:n,channel:s,channelCapabilitiesArray:eb,channelConfig:en,debounceURLEnrichmentMs:null==O?void 0:O.debounceURLEnrichmentMs,dragAndDropWindow:T,enrichURLForPreview:e.enrichURLForPreview,findURLFn:null==O?void 0:O.findURLFn,giphyVersion:e.giphyVersion||"fixed_height",imageAttachmentSizeHandler:e.imageAttachmentSizeHandler||ez,maxNumberOfFiles:F,multipleUploads:void 0===A||A,mutes:W,notifications:eo,onLinkPreviewDismissed:null==O?void 0:O.onLinkPreviewDismissed,quotedMessage:el,shouldGenerateVideoThumbnail:e.shouldGenerateVideoThumbnail||!0,videoAttachmentSizeHandler:e.videoAttachmentSizeHandler||eH,watcher_count:ef.watcherCount})),e8=(0,i.useMemo)(function(){return{addNotification:eT,closeThread:eQ,deleteMessage:eW,dispatch:eh,editMessage:e3,jumpToLatestMessage:eq,jumpToMessage:eV,loadMore:eO,loadMoreNewer:eP,loadMoreThread:e1,onMentionsClick:e2,onMentionsHover:e2,openThread:eX,removeMessage:eK,retrySendMessage:eJ,sendMessage:eG,setQuotedMessage:eu,skipMessageDataMemoization:U,updateMessage:e$}},[s.cid,eW,null==O?void 0:O.findURLFn,null==O?void 0:O.onLinkPreviewDismissed,eO,eP,el,eV,eq]),e7=(0,i.useMemo)(function(){return{Attachment:e.Attachment||ey,AttachmentPreviewList:e.AttachmentPreviewList,AutocompleteSuggestionHeader:e.AutocompleteSuggestionHeader,AutocompleteSuggestionItem:e.AutocompleteSuggestionItem,AutocompleteSuggestionList:e.AutocompleteSuggestionList,Avatar:e.Avatar,BaseImage:e.BaseImage,CooldownTimer:e.CooldownTimer,DateSeparator:e.DateSeparator,EditMessageInput:e.EditMessageInput,EmojiIcon:e.EmojiIcon,EmptyStateIndicator:e.EmptyStateIndicator,FileUploadIcon:e.FileUploadIcon,GiphyPreviewMessage:e.GiphyPreviewMessage,HeaderComponent:e.HeaderComponent,Input:e.Input,LinkPreviewList:e.LinkPreviewList,LoadingIndicator:e.LoadingIndicator,Message:e.Message||ek.u,MessageDeleted:e.MessageDeleted,MessageListNotifications:e.MessageListNotifications,MessageNotification:e.MessageNotification,MessageOptions:e.MessageOptions,MessageRepliesCountButton:e.MessageRepliesCountButton,MessageStatus:e.MessageStatus,MessageSystem:e.MessageSystem,MessageTimestamp:e.MessageTimestamp,ModalGallery:e.ModalGallery,PinIndicator:e.PinIndicator,QuotedMessage:e.QuotedMessage,QuotedMessagePreview:e.QuotedMessagePreview,ReactionSelector:e.ReactionSelector,ReactionsList:e.ReactionsList,SendButton:e.SendButton,ThreadHead:e.ThreadHead,ThreadHeader:e.ThreadHeader,ThreadStart:e.ThreadStart,TriggerProvider:e.TriggerProvider,TypingIndicator:e.TypingIndicator,VirtualMessage:e.VirtualMessage}},[]),e9=(0,i.useMemo)(function(){return{Emoji:e.Emoji,emojiConfig:ew,EmojiIndex:e.EmojiIndex,EmojiPicker:e.EmojiPicker}},[]),te=v({typing:e4}),tt=(0,d.Z)(X,Y,K);return ef.error?i.createElement("div",{className:tt},i.createElement(void 0===j?e_:j,{error:ef.error})):ef.loading?i.createElement("div",{className:tt},i.createElement(void 0===L?eC:L,null)):s.watch?i.createElement("div",{className:(0,d.Z)(tt,ee)},i.createElement(J.gZ,{value:e5},i.createElement(eL.PM,{value:e8},i.createElement($.Xp,{value:e7},i.createElement(eF._V,{value:e9},i.createElement(eA.ln,{value:te},i.createElement("div",{className:"".concat(Q)},T&&i.createElement(ej,(0,r.pi)({},void 0===B?{}:B),x),!T&&i.createElement(i.Fragment,null,x)))))))):i.createElement("div",{className:tt},i.createElement("div",null,Z("Channel Missing")))},eG=i.memo(function(e){var t=e.channel,n=e.EmptyPlaceholder,o=e.LoadingErrorIndicator,a=e.LoadingIndicator,s=void 0===a?eC:a,l=(0,y.mx)("Channel"),u=l.channel,c=l.channelsQueryState,f=l.customClasses,h=l.theme,p=eU({customClasses:f}),m=p.channelClass,g=p.chatClass,v=t||u,b=(0,d.Z)(g,h,m);return"reload"===c.queryInProgress&&s?i.createElement("div",{className:b},i.createElement(s,null)):c.error&&o?i.createElement("div",{className:b},i.createElement(o,{error:c.error})):(null==v?void 0:v.cid)?i.createElement(eZ,(0,r.pi)({},e,{channel:v,key:v.cid})):i.createElement("div",{className:b},void 0===n?null:n)})},42393:function(e,t,n){"use strict";n.d(t,{Le:function(){return s},Q9:function(){return i},R$:function(){return a},_:function(){return o}});var r=n(11735),i={custom:!0,emoticons:[],short_names:[]},o={imageUrl:"",sheetColumns:2,sheetRows:3,sheetSize:64,spriteUrl:"https://getstream.imgix.net/images/emoji-sprite.png"},a=[(0,r.pi)((0,r.pi)({colons:":+1:",id:"like",name:"like",sheet_x:0,sheet_y:0},i),o),(0,r.pi)((0,r.pi)({colons:":heart:",id:"love",name:"love",sheet_x:1,sheet_y:2},i),o),(0,r.pi)((0,r.pi)({colons:":joy:",id:"haha",name:"haha",sheet_x:1,sheet_y:0},i),o),(0,r.pi)((0,r.pi)({colons:":astonished:",id:"wow",name:"wow",sheet_x:0,sheet_y:2},i),o),(0,r.pi)((0,r.pi)({colons:":pensive:",id:"sad",name:"sad",sheet_x:0,sheet_y:1},i),o),(0,r.pi)((0,r.pi)({colons:":angry:",id:"angry",name:"angry",sheet_x:1,sheet_y:1},i),o)],s=function(e){return(0,r.pi)((0,r.pi)({},e),{emojis:{}})}},23962:function(e,t,n){"use strict";n.d(t,{G:function(){return eh}});var r,i,o=n(11735),a=n(2265),s=n(44839),l=n(33600),u=function(){return a.createElement("svg",{height:"78px",version:"1.1",viewBox:"0 0 78 78",width:"78px",xmlns:"http://www.w3.org/2000/svg"},a.createElement("title",null,"Connection Error"),a.createElement("g",{fill:"none",fillRule:"evenodd",id:"Interactions",stroke:"none",strokeWidth:"1"},a.createElement("g",{fill:"#CF1F25",id:"Connection-Error-_-Connectivity",transform:"translate(-270.000000, -30.000000)"},a.createElement("g",{id:"109-network-connection",transform:"translate(270.000000, 30.000000)"},a.createElement("path",{d:"M66.4609744,11.414231 C81.6225232,26.5757798 81.6225232,51.157545 66.4609744,66.3188467 C51.2994256,81.4803954 26.7176604,81.4803954 11.5563587,66.3188467 C-3.60519004,51.1572979 -3.60519004,26.5755327 11.5563587,11.414231 C26.7179075,-3.74731776 51.2996727,-3.74731776 66.4609744,11.414231 Z M54.7853215,45.8823776 L54.7853215,40.5882574 C54.7853215,39.613638 53.9952341,38.8235506 53.0206147,38.8235506 L44.9576695,38.8235506 L41.428256,42.3529641 L51.255555,42.3529641 L51.255555,45.8823776 L54.7853215,45.8823776 Z M40.6659027,43.1153174 L37.8988425,45.8823776 L40.6659027,45.8823776 L40.6659027,43.1153174 Z M51.1764962,56.4702653 L58.2353232,56.4702653 C59.2099355,56.4702653 60.00003,55.6801708 60.00003,54.7055585 L60.00003,51.176145 C60.00003,50.2015327 59.2099355,49.4114382 58.2353232,49.4114382 L51.1764962,49.4114382 C50.2018839,49.4114382 49.4117894,50.2015327 49.4117894,51.176145 L49.4117894,54.7055585 C49.4117894,55.6801708 50.2018839,56.4702653 51.1764962,56.4702653 Z M35.2941353,56.4702653 L42.3529624,56.4702653 C43.3275746,56.4702653 44.1176691,55.6801708 44.1176691,54.7055585 L44.1176691,51.176145 C44.1176691,50.2015327 43.3275746,49.4114382 42.3529624,49.4114382 L35.2941353,49.4114382 C34.319523,49.4114382 33.5294285,50.2015327 33.5294285,51.176145 L33.5294285,54.7055585 C33.5294285,55.6801708 34.319523,56.4702653 35.2941353,56.4702653 Z M56.6964989,19.0874231 C56.007381,18.3985134 54.8903216,18.3985134 54.2012036,19.087423 L45.882376,27.4062507 L45.882376,19.4117761 C45.882376,18.4371568 45.0922885,17.6470693 44.1176692,17.6470693 L33.5294286,17.6470693 C32.5548092,17.6470694 31.7647218,18.4371568 31.7647218,19.4117761 L31.7647218,30.0000167 C31.7647219,30.9746363 32.5548092,31.7647237 33.5294285,31.7647237 L41.5239031,31.7647237 L34.4650761,38.8235508 L24.7058947,38.8235508 C23.7312753,38.8235508 22.9411879,39.6136382 22.9411879,40.5882575 L22.9411879,45.8823778 L26.4706014,45.8823778 L26.4706014,42.3529643 L30.9356624,42.3529643 L23.8768354,49.4117914 L19.4117743,49.4117914 C18.4371549,49.4117914 17.6470675,50.2018788 17.6470675,51.1764981 L17.6470675,54.7059117 C17.6504049,54.9674302 17.7129076,55.2248042 17.8298886,55.4587302 L16.4456526,56.8429662 C15.7446193,57.5200453 15.7252005,58.6372282 16.4022825,59.3382615 C17.0793616,60.0392948 18.1965445,60.0587136 18.8975778,59.3816316 C18.9122847,59.3674273 18.9267436,59.3529684 18.940948,59.3382615 L56.6964963,21.5830662 C57.3856425,20.8939094 57.3856425,19.7765747 56.6964963,19.0874179 Z",id:"Combined-Shape"})))))},c=a.memo(function(e){var t=e.image,n=void 0===t?a.createElement(u,null):t,r=e.text,i=e.type,o=(0,l.Ht)("ChatDown").t;return a.createElement("div",{className:"str-chat__down"},a.createElement("div",{className:"str-chat__down-main"},"string"==typeof n?a.createElement("img",{alt:"Connection error","data-testid":"chatdown-img",src:n}):n,a.createElement("h1",null,void 0===i?"Error":i),a.createElement("h3",{"aria-live":"assertive"},r||o("Error connecting to chat, refresh the page to try again."))))}),d=function(){return a.createElement("div",{className:"str-chat__loading-channels-item str-chat__channel-preview-loading"},a.createElement("div",{className:"str-chat__loading-channels-avatar"}),a.createElement("div",{className:"str-chat__loading-channels-meta str-chat__channel-preview-end-loading"},a.createElement("div",{className:"str-chat__loading-channels-username"}),a.createElement("div",{className:"str-chat__loading-channels-status"})))},f=a.memo(function(){return a.createElement("div",{className:"str-chat__loading-channels"},a.createElement(d,null),a.createElement(d,null),a.createElement(d,null))}),h=function(e){var t=e.children,n=e.error,r=e.loading,i=e.LoadingErrorIndicator,o=e.LoadingIndicator;return(void 0===n?null:n)?a.createElement(void 0===i?c:i,{type:"Connection Error"}):r?a.createElement(void 0===o?f:o,null):a.createElement("div",{className:"str-chat__channel-list-messenger str-chat__channel-list-messenger-react"},a.createElement("div",{"aria-label":"Channel list",className:"str-chat__channel-list-messenger__main str-chat__channel-list-messenger-react__main",role:"listbox"},t))},p=n(40311),m=function(e,t){var n=(0,p.mx)("useChannelDeletedListener").client;(0,a.useEffect)(function(){var r=function(n){t&&"function"==typeof t?t(e,n):e(function(e){var t=e.findIndex(function(e){return e.cid===n.cid});return t<0||e.splice(t,1),(0,o.ev)([],e,!0)})};return n.on("channel.deleted",r),function(){n.off("channel.deleted",r)}},[t])},g=function(e,t){var n=(0,p.mx)("useChannelHiddenListener").client;(0,a.useEffect)(function(){var r=function(n){t&&"function"==typeof t?t(e,n):e(function(e){var t=e.findIndex(function(e){return e.cid===n.cid});return t<0||e.splice(t,1),(0,o.ev)([],e,!0)})};return n.on("channel.hidden",r),function(){n.off("channel.hidden",r)}},[t])},v=function(e,t,n){var r=(0,p.mx)("useChannelTruncatedListener").client;(0,a.useEffect)(function(){var i=function(r){e(function(e){return(0,o.ev)([],e,!0)}),t&&"function"==typeof t&&t(e,r),n&&n()};return r.on("channel.truncated",i),function(){r.off("channel.truncated",i)}},[t])},y=function(e,t,n){var r=(0,p.mx)("useChannelUpdatedListener").client;(0,a.useEffect)(function(){var i=function(r){e(function(e){var t,n,i,a,s,l,u=e.findIndex(function(e){var t;return e.cid===(null===(t=r.channel)||void 0===t?void 0:t.cid)});return u>-1&&r.channel?(e[u].data=(0,o.pi)((0,o.pi)({},r.channel),{hidden:null!==(n=null===(t=r.channel)||void 0===t?void 0:t.hidden)&&void 0!==n?n:null===(i=e[u].data)||void 0===i?void 0:i.hidden,own_capabilities:null!==(s=null===(a=r.channel)||void 0===a?void 0:a.own_capabilities)&&void 0!==s?s:null===(l=e[u].data)||void 0===l?void 0:l.own_capabilities}),(0,o.ev)([],e,!0)):e}),n&&n(),t&&"function"==typeof t&&t(e,r)};return r.on("channel.updated",i),function(){r.off("channel.updated",i)}},[t])},b=n(94067),w=n.n(b),_=n(1538),x=function(e,t){var n=(0,p.mx)("useChannelVisibleListener").client;(0,a.useEffect)(function(){var r=function(r){return(0,o.mG)(void 0,void 0,void 0,function(){var i;return(0,o.Jh)(this,function(a){switch(a.label){case 0:if(!(t&&"function"==typeof t))return[3,1];return t(e,r),[3,3];case 1:if(!(r.type&&r.channel_type&&r.channel_id))return[3,3];return[4,(0,_.m)({client:n,id:r.channel_id,type:r.channel_type})];case 2:i=a.sent(),e(function(e){return w()((0,o.ev)([i],e,!0),"cid")}),a.label=3;case 3:return[2]}})})};return n.on("channel.visible",r),function(){n.off("channel.visible",r)}},[t])},D=function(e){var t=(0,p.mx)("useConnectionRecoveredListener").client;(0,a.useEffect)(function(){var n=function(){e&&e()};return t.on("connection.recovered",n),function(){t.off("connection.recovered",n)}},[])},E=function(e){var t=e.activeChannel,n=e.channels,r=e.cid,i=n.findIndex(function(e){return e.cid===r});if(!t&&i<=0)return n;var a=t||n[i];return w()((0,o.ev)([a],n,!0),"cid")},C=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0);var r=(0,p.mx)("useMessageNewListener").client;(0,a.useEffect)(function(){var i=function(i){e(function(e){if(!(e.filter(function(e){return e.cid===i.cid}).length>0)&&n&&i.channel_type){var a=r.channel(i.channel_type,i.channel_id);return w()((0,o.ev)([a],e,!0),"cid")}return t?e:E({channels:e,cid:i.cid||""})})};return r.on("message.new",i),function(){r.off("message.new",i)}},[t])},k=function(e,t,n){(0,a.useEffect)(function(){var r=function(r){n&&e.current&&!e.current.contains(r.target)&&t&&n()};return document.addEventListener("click",r),function(){document.removeEventListener("click",r)}},[e,n,t])},S=function(e,t,n){void 0===n&&(n=!0);var r=(0,p.mx)("useNotificationAddedToChannelListener").client;(0,a.useEffect)(function(){var i=function(i){return(0,o.mG)(void 0,void 0,void 0,function(){var a,s,l;return(0,o.Jh)(this,function(u){switch(u.label){case 0:if(!(t&&"function"==typeof t))return[3,1];return t(e,i),[3,3];case 1:if(!(n&&(null===(s=i.channel)||void 0===s?void 0:s.type)))return[3,3];return[4,(0,_.m)({client:r,id:i.channel.id,members:null===(l=i.channel.members)||void 0===l?void 0:l.reduce(function(e,t){var n=t.user,r=t.user_id||(null==n?void 0:n.id);return r&&e.push(r),e},[]),type:i.channel.type})];case 2:a=u.sent(),e(function(e){return w()((0,o.ev)([a],e,!0),"cid")}),u.label=3;case 3:return[2]}})})};return r.on("notification.added_to_channel",i),function(){r.off("notification.added_to_channel",i)}},[t])},T=function(e,t,n){void 0===n&&(n=!0);var r=(0,p.mx)("useNotificationMessageNewListener").client;(0,a.useEffect)(function(){var i=function(i){return(0,o.mG)(void 0,void 0,void 0,function(){var a,s;return(0,o.Jh)(this,function(l){switch(l.label){case 0:if(!(t&&"function"==typeof t))return[3,1];return t(e,i),[3,3];case 1:if(!(n&&(null===(s=i.channel)||void 0===s?void 0:s.type)))return[3,3];return[4,(0,_.m)({client:r,id:i.channel.id,type:i.channel.type})];case 2:a=l.sent(),e(function(e){return w()((0,o.ev)([a],e,!0),"cid")}),l.label=3;case 3:return[2]}})})};return r.on("notification.message_new",i),function(){r.off("notification.message_new",i)}},[t])},M=function(e,t){var n=(0,p.mx)("useNotificationRemovedFromChannelListener").client;(0,a.useEffect)(function(){var r=function(n){t&&"function"==typeof t?t(e,n):e(function(e){return e.filter(function(e){var t;return e.cid!==(null===(t=n.channel)||void 0===t?void 0:t.cid)})})};return n.on("notification.removed_from_channel",r),function(){n.off("notification.removed_from_channel",r)}},[t])},O=function(e,t,n,r,i,s){void 0===s&&(s=5e3);var l=(0,p.mx)("usePaginatedChannels").channelsQueryState,u=l.error,c=l.setError,d=l.setQueryInProgress,f=(0,a.useState)([]),h=f[0],m=f[1],g=(0,a.useState)(!0),v=g[0],y=g[1],b=(0,a.useRef)(),_=s<2e3?2e3:s||5e3,x=(0,a.useMemo)(function(){return JSON.stringify(t)},[t]),D=(0,a.useMemo)(function(){return JSON.stringify(n)},[n]),E=function(a){return(0,o.mG)(void 0,void 0,void 0,function(){var s,l,u,f,p,g;return(0,o.Jh)(this,function(v){switch(v.label){case 0:c(null),"reload"===a?(m([]),d("reload")):d("load-more"),s="reload"===a?0:h.length,l=(0,o.pi)({limit:null!==(g=null==r?void 0:r.limit)&&void 0!==g?g:30,offset:s},r),v.label=1;case 1:return v.trys.push([1,3,,4]),[4,e.queryChannels(t,n||{},l)];case 2:return u=v.sent(),m(f="reload"===a?u:w()((0,o.ev)((0,o.ev)([],h,!0),u,!0),"cid")),y(u.length>=l.limit),!s&&i&&i(f,m),[3,4];case 3:return console.warn(p=v.sent()),c(p),[3,4];case 4:return d(null),[2]}})})},C=(0,a.useCallback)(function(){var e=Date.now(),t=!b.current,n=b.current?e-b.current:0;(t||!(n<_)||u)&&(b.current=e,E("reload"))},[u,E,_]);return(0,a.useEffect)(function(){if(!e.recoverStateOnReconnect){var t=e.on("connection.recovered",C).unsubscribe;return function(){t()}}},[e,C]),(0,a.useEffect)(function(){E("reload")},[x,D]),{channels:h,hasNextPage:v,loadNextPage:function(){E()},setChannels:m}},P=function(e){var t=(0,p.mx)("useUserPresenceChangedListener").client;(0,a.useEffect)(function(){var n=function(t){e(function(e){var n=e.map(function(e){var n;return(null===(n=t.user)||void 0===n?void 0:n.id)&&e.state.members[t.user.id]&&(e.state.members[t.user.id].user=t.user),e});return(0,o.ev)([],n,!0)})};return t.on("user.presence.changed",n),function(){t.off("user.presence.changed",n)}},[])},R=n(77815),j=a.memo(function(e){var t,n,r=e.active,i=e.Avatar,o=void 0===i?R.q:i,l=e.channel,u=e.className,c=e.displayImage,d=e.displayTitle,f=e.latestMessage,h=e.onSelect,p=e.setActiveChannel,m=e.unread,g=e.watchers,v=(0,a.useRef)(null),y=d||(null===(n=null===(t=l.state.messages[l.state.messages.length-1])||void 0===t?void 0:t.user)||void 0===n?void 0:n.id);return a.createElement("button",{"aria-label":"Select Channel: ".concat(d||""),"aria-selected":r,className:(0,s.Z)("str-chat__channel-preview-messenger str-chat__channel-preview",r&&"str-chat__channel-preview-messenger--active",m&&m>=1&&"str-chat__channel-preview-messenger--unread",void 0===u?"":u),"data-testid":"channel-preview-button",onClick:function(e){h?h(e):p&&p(l,g),(null==v?void 0:v.current)&&v.current.blur()},ref:v,role:"option"},a.createElement("div",{className:"str-chat__channel-preview-messenger--left"},a.createElement(o,{image:c,name:y,size:40})),a.createElement("div",{className:"str-chat__channel-preview-messenger--right str-chat__channel-preview-end"},a.createElement("div",{className:"str-chat__channel-preview-end-first-row"},a.createElement("div",{className:"str-chat__channel-preview-messenger--name"},a.createElement("span",null,d)),!!m&&a.createElement("div",{className:"str-chat__channel-preview-unread-badge","data-testid":"unread-badge"},m)),a.createElement("div",{className:"str-chat__channel-preview-messenger--last-message"},f)))}),L=function(e){var t=(0,p.mx)("useIsChannelMuted").client,n=(0,a.useState)(e.muteStatus()),r=n[0],i=n[1];return(0,a.useEffect)(function(){var n=function(){return i(e.muteStatus())};return t.on("notification.channel_mutes_updated",n),function(){return t.off("notification.channel_mutes_updated",n)}},[r]),r},F=n(5734),A=n(44698);(r=i||(i={})).DELIVERED="delivered",r.READ="read";var N=function(e){var t=e.channel,n=e.lastMessage,r=(0,p.mx)().client,o=(0,a.useState)(),s=o[0],l=o[1],u=(0,a.useCallback)(function(e){var t;return r.user&&(null===(t=null==e?void 0:e.user)||void 0===t?void 0:t.id)===r.user.id},[r]);return(0,a.useEffect)(function(){var e=u(n);if((null==n?void 0:n.created_at)&&e){var o="string"==typeof n.created_at?new Date(n.created_at):n.created_at;l(Object.values(t.state.read).some(function(e){var t=e.last_read,n=e.user;return r.user&&n.id!==r.user.id&&o0}),"data-testid":"channel-search"},"2"===x?a.createElement(void 0===d?G:d,{activateSearch:E,AppMenu:t,ClearInputIcon:n,clearState:C,disabled:_.disabled,exitSearch:k,ExitSearchIcon:r,inputIsFocused:S,inputRef:T,MenuIcon:i,onSearch:M,placeholder:l,query:O,searchBarRef:R,SearchInput:m,SearchInputIcon:v}):a.createElement(m,{clearState:C,disabled:_.disabled,inputRef:T,onSearch:M,placeholder:l,query:O}),O&&a.createElement(et,{popupResults:c,results:P,SearchEmpty:f,searching:j,SearchLoading:g,SearchResultItem:y,SearchResultsHeader:w,SearchResultsList:b,selectResult:L}))}),er=n(64026),ei=n(57167),eo=n(4118),ea=a.memo(function(e){var t=e.children,n=e.isLoading,r=e.onClick,i=e.refreshing,o=(0,l.Ht)("UnMemoizedLoadMoreButton").t,s=null!=t?t:o("Load more"),u=void 0!==n?n:i;return(0,a.useEffect)(function(){(0,eo.b)([[{refreshing:i},{isLoading:n}]],"LoadMoreButton")},[]),a.createElement("div",{className:"str-chat__load-more-button"},a.createElement("button",{"aria-label":"Load More Channels",className:"str-chat__load-more-button__button str-chat__cta-button","data-testid":"load-more-button",disabled:u,onClick:r},u?a.createElement(ei.T,null):s))}),es=a.memo(function(e){var t=e.children,n=e.hasNextPage,r=e.isLoading,i=e.LoadMoreButton,o=e.loadNextPage,s=e.refreshing,l=e.reverse,u=void 0!==r?r:s;return(0,a.useEffect)(function(){(0,eo.b)([[{refreshing:s},{isLoading:r}]],"LoadMorePaginator")},[]),a.createElement(a.Fragment,null,!l&&t,n&&a.createElement(void 0===i?ea:i,{isLoading:u,onClick:o}),l&&t)}),el=(0,a.createContext)(void 0),eu=function(e){var t=e.children,n=e.value;return a.createElement(el.Provider,{value:n},t)},ec={},ed={},ef={},eh=a.memo(function(e){var t,n,r=e.additionalChannelSearchProps,i=e.Avatar,l=void 0===i?R.q:i,u=e.allowNewMessagesFromUnfilteredChannels,d=e.channelRenderFilterFn,b=e.ChannelSearch,w=e.customActiveChannel,_=e.EmptyStateIndicator,j=void 0===_?er.D:_,L=e.filters,F=e.LoadingErrorIndicator,A=e.LoadingIndicator,N=e.List,B=e.lockChannelOrder,U=e.onAddedToChannel,z=e.onChannelDeleted,H=e.onChannelHidden,V=e.onChannelTruncated,q=e.onChannelUpdated,W=e.onChannelVisible,$=e.onMessageNew,Y=e.onRemovedFromChannel,Z=e.options,G=e.Paginator,J=e.Preview,K=e.recoveryThrottleIntervalMs,X=e.renderChannels,Q=e.sendChannelsToList,ee=e.setActiveChannelOnMount,et=void 0===ee||ee,ei=e.showChannelSearch,eo=e.sort,ea=e.watchers,el=void 0===ea?{}:ea,eh=(0,p.mx)("ChannelList"),ep=eh.channel,em=eh.channelsQueryState,eg=eh.client,ev=eh.closeMobileNav,ey=eh.customClasses,eb=eh.navOpen,ew=void 0!==eb&&eb,e_=eh.setActiveChannel,ex=eh.theme,eD=eh.useImageFlagEmojisOnWindows,eE=(0,a.useRef)(null),eC=(0,a.useState)(0),ek=eC[0],eS=eC[1],eT=(0,a.useState)(!1),eM=eT[0],eO=eT[1],eP=function(){return eS(function(e){return e+1})},eR=(0,a.useCallback)(function(e){var t;e.target.value?eO(!0):eO(!1),null===(t=null==r?void 0:r.onSearch)||void 0===t||t.call(r,e)},[]),ej=(0,a.useCallback)(function(){var e;eO(!1),null===(e=null==r?void 0:r.onSearchExit)||void 0===e||e.call(r)},[]),eL=O(eg,L||ec,(void 0===eo?ef:eo)||ef,Z||ed,function(e,t){return(0,o.mG)(void 0,void 0,void 0,function(){var n;return(0,o.Jh)(this,function(r){switch(r.label){case 0:if(!e.length||e.length>((null==Z?void 0:Z.limit)||30))return[2];if(!w)return[3,3];if(n=e.find(function(e){return e.id===w}))return[3,2];return[4,eg.queryChannels({id:w})];case 1:n=r.sent()[0],r.label=2;case 2:return n&&(e_(n,el),t(E({activeChannel:n,channels:e,cid:n.cid}))),[2];case 3:return et&&e_(e[0],el),[2]}})})},K),eF=eL.channels,eA=eL.hasNextPage,eN=eL.loadNextPage,eI=eL.setChannels,eB=d?d(eF):eF;k(eE,ew,ev),C(eI,B,u),T(eI,$,u),S(eI,U,u),M(eI,Y),m(eI,z),g(eI,H),x(eI,W),v(eI,V,eP),y(eI,q,eP),D(eP),P(eI),(0,a.useEffect)(function(){var e=function(e){e.cid===(null==ep?void 0:ep.cid)&&e_()};return eg.on("channel.deleted",e),eg.on("channel.hidden",e),function(){eg.off("channel.deleted",e),eg.off("channel.hidden",e)}},[null==ep?void 0:ep.cid]);var eU=function(e){var t={activeChannel:ep,Avatar:l,channel:e,channelUpdateCount:ek,key:e.id,Preview:J,setActiveChannel:e_,watchers:el};return a.createElement(I,(0,o.pi)({},t))},ez=(0,s.Z)(null!==(t=null==ey?void 0:ey.chat)&&void 0!==t?t:"str-chat",ex,null!==(n=null==ey?void 0:ey.channelList)&&void 0!==n?n:"str-chat-channel-list str-chat__channel-list str-chat__channel-list-react",{"str-chat--windows-flags":eD&&navigator.userAgent.match(/Win/),"str-chat-channel-list--open":ew}),eH=!eM||(null==r?void 0:r.popupResults);return a.createElement(eu,{value:{channels:eF,setChannels:eI}},a.createElement("div",{className:ez,ref:eE},void 0!==ei&&ei&&a.createElement(void 0===b?en:b,(0,o.pi)({onSearch:eR,onSearchExit:ej,setChannels:eI},r)),eH&&a.createElement(void 0===N?h:N,{error:em.error,loadedChannels:void 0!==Q&&Q?eB:void 0,loading:!!em.queryInProgress&&["reload","uninitialized"].includes(em.queryInProgress),LoadingErrorIndicator:void 0===F?c:F,LoadingIndicator:void 0===A?f:A,setChannels:eI},(null==eB?void 0:eB.length)?a.createElement(void 0===G?es:G,{hasNextPage:eA,isLoading:"load-more"===em.queryInProgress,loadNextPage:eN},X?X(eB,eU):eB.map(function(e){return eU(e)})):a.createElement(j,{listType:"channel"}))))})},5734:function(e,t,n){"use strict";n.d(t,{y:function(){return a}});var r=n(2265),i=n(44698),o=n(40311),a=function(e){var t=e.channel,n=e.overrideImage,a=e.overrideTitle,s=(0,o.mx)("ChannelPreview").client,l=(0,r.useState)((0,i.D1)(t,s.user)),u=l[0],c=l[1],d=(0,r.useState)((0,i.LC)(t,s.user)),f=d[0],h=d[1];return(0,r.useEffect)(function(){var e=function(){c(function(e){var n=(0,i.D1)(t,s.user);return e!==n?n:e}),h(function(e){var n=(0,i.LC)(t,s.user);return e!==n?n:e})};return s.on("user.updated",e),function(){s.off("user.updated",e)}},[]),{displayImage:n||f,displayTitle:a||u}}},44698:function(e,t,n){"use strict";n.d(t,{D1:function(){return a},LC:function(){return s},x4:function(){return o}});var r=n(2265),i=n(22577),o=function(e,t,n){void 0===n&&(n="en");var o,a,s=e.state.messages[e.state.messages.length-1],l=(null===(o=null==s?void 0:s.i18n)||void 0===o?void 0:o["".concat(n,"_text")])||(null==s?void 0:s.text);return s?s.deleted_at?t("Message deleted"):l?r.createElement(i.D,{skipHtml:!0},l):s.command?"/".concat(s.command):t((null===(a=s.attachments)||void 0===a?void 0:a.length)?"\uD83C\uDFD9 Attachment...":"Empty message..."):t("Nothing yet...")},a=function(e,t){var n,r,i=null===(n=e.data)||void 0===n?void 0:n.name,o=Object.values(e.state.members);if(!i&&2===o.length){var a=o.find(function(e){var n;return(null===(n=e.user)||void 0===n?void 0:n.id)!==(null==t?void 0:t.id)});(null===(r=null==a?void 0:a.user)||void 0===r?void 0:r.name)&&(i=a.user.name)}return i},s=function(e,t){var n,r,i=null===(n=e.data)||void 0===n?void 0:n.image,o=Object.values(e.state.members);if(!i&&2===o.length){var a=o.find(function(e){var n;return(null===(n=e.user)||void 0===n?void 0:n.id)!==(null==t?void 0:t.id)});(null===(r=null==a?void 0:a.user)||void 0===r?void 0:r.image)&&(i=a.user.image)}return i}},89921:function(e,t,n){"use strict";n.d(t,{e:function(){return h}});var r=n(2265),i=n(11735),o=n(33600),a=n(21630),s=function(e){var t,n,s=e.client,l=e.defaultLanguage,u=void 0===l?"en":l,c=e.i18nInstance,d=e.initialNavOpen,f=(0,r.useState)({t:function(e){return e},tDateTimeParser:o.u9,userLanguage:"en"}),h=f[0],p=f[1],m=(0,r.useState)(),g=m[0],v=m[1],y=(0,r.useState)([]),b=y[0],w=y[1],_=(0,r.useState)(d),x=_[0],D=_[1],E=(0,r.useState)({}),C=E[0],k=E[1],S=(null===(t=s.user)||void 0===t?void 0:t.mutes)||[],T=function(){return D(!1)},M=(0,r.useRef)(null);(0,r.useEffect)(function(){if(s){var e=s.getUserAgent();e.includes("stream-chat-react")||s.setUserAgent("stream-chat-react-".concat("10.22.3","-").concat(e))}},[s]),(0,r.useEffect)(function(){w(S);var e=function(e){var t;w((null===(t=e.me)||void 0===t?void 0:t.mutes)||[])};return s.on("notification.mutes_updated",e),function(){return s.off("notification.mutes_updated",e)}},[null==S?void 0:S.length]),(0,r.useEffect)(function(){var e,t=null===(e=s.user)||void 0===e?void 0:e.language;if(!t){var n=window.navigator.language.slice(0,2);t=(0,o.Eb)(n)?n:u}var r=c||new a.V({language:t});r.registerSetLanguageCallback(function(e){return p(function(t){return(0,i.pi)((0,i.pi)({},t),{t:e})})}),r.getTranslators().then(function(e){p((0,i.pi)((0,i.pi)({},e),{userLanguage:t||u}))})},[c]);var O=(0,r.useCallback)(function(e,t,n){return void 0===t&&(t={}),(0,i.mG)(void 0,void 0,void 0,function(){return(0,i.Jh)(this,function(r){switch(r.label){case 0:if(n&&n.preventDefault&&n.preventDefault(),!(e&&Object.keys(t).length))return[3,2];return[4,e.query({watch:!0,watchers:t})];case 1:r.sent(),r.label=2;case 2:return v(e),T(),[2]}})})},[]);return(0,r.useEffect)(function(){k({})},[null===(n=s.user)||void 0===n?void 0:n.id]),{channel:g,closeMobileNav:T,getAppSettings:function(){return M.current||(M.current=s.getAppSettings()),M.current},latestMessageDatesByChannels:C,mutes:b,navOpen:x,openMobileNav:function(){return setTimeout(function(){return D(!0)},100)},setActiveChannel:O,translators:h}},l=function(e){var t,n=e.channel,i=e.channelsQueryState,o=e.client,a=e.closeMobileNav,s=e.customClasses,l=e.getAppSettings,u=e.latestMessageDatesByChannels,c=e.mutes,d=e.navOpen,f=e.openMobileNav,h=e.setActiveChannel,p=e.theme,m=e.themeVersion,g=e.useImageFlagEmojisOnWindows,v=null==n?void 0:n.cid,y=i.error,b=i.queryInProgress,w="".concat(o.clientID).concat(Object.keys(o.activeChannels).length).concat(Object.keys(o.listeners).length).concat(o.mutedChannels.length,"\n ").concat(null===(t=o.user)||void 0===t?void 0:t.id),_=c.length;return(0,r.useMemo)(function(){return{channel:n,channelsQueryState:i,client:o,closeMobileNav:a,customClasses:s,getAppSettings:l,latestMessageDatesByChannels:u,mutes:c,navOpen:d,openMobileNav:f,setActiveChannel:h,theme:p,themeVersion:m,useImageFlagEmojisOnWindows:g}},[v,y,b,w,l,_,d])},u=function(){var e=(0,r.useState)(null),t=e[0],n=e[1],i=(0,r.useState)("uninitialized");return{error:t,queryInProgress:i[0],setError:n,setQueryInProgress:i[1]}},c={"--bg-gradient-end":"#101214","--bg-gradient-start":"#070a0d","--black":"#ffffff","--blue-alice":"#00193d","--border":"#141924","--button-background":"#ffffff","--button-text":"#005fff","--grey":"#7a7a7a","--grey-gainsboro":"#2d2f2f","--grey-whisper":"#1c1e22","--modal-shadow":"#000000","--overlay":"#00000066","--overlay-dark":"#ffffffcc","--shadow-icon":"#00000080","--targetedMessageBackground":"#302d22","--transparent":"transparent","--white":"#101418","--white-smoke":"#13151b","--white-snow":"#070a0d"},d=function(e){if(e)for(var t=0,n=Object.entries(e);t1?a[s]--:delete a[s];var u=e?(0,r.ev)([t],(null==n?void 0:n.latest_reactions)||[],!0):null===(i=n.latest_reactions)||void 0===i?void 0:i.filter(function(e){return!(e.type===t.type&&e.user_id===t.user_id)}),c=e?(0,r.ev)([t],(null==n?void 0:n.own_reactions)||[],!0):null===(o=null==n?void 0:n.own_reactions)||void 0===o?void 0:o.filter(function(e){return e.type!==t.type});return(0,r.pi)((0,r.pi)({},n),{latest_reactions:u||n.latest_reactions,own_reactions:c,reaction_counts:a,reaction_scores:a})},[u.user,u.userID]),h=function(t){var n;return{message_id:null==e?void 0:e.id,score:1,type:t,user:u.user,user_id:null===(n=u.user)||void 0===n?void 0:n.id}},p=c()(function(n,i,a){return(0,r.mG)(void 0,void 0,void 0,function(){var s,u;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if(!e||!l["send-reaction"])return[2];s=f(a,h(i),e),r.label=1;case 1:if(r.trys.push([1,6,,7]),t(s),!a)return[3,3];return[4,o.sendReaction(n,{type:i})];case 2:return u=r.sent(),[3,5];case 3:return[4,o.deleteReaction(n,i)];case 4:u=r.sent(),r.label=5;case 5:return t(u.message),[3,7];case 6:return r.sent(),t(e),[3,7];case 7:return[2]}})})},1e3);return function(t,n){return(0,r.mG)(void 0,void 0,void 0,function(){var i;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if((null==n?void 0:n.preventDefault)&&n.preventDefault(),!e)return[2,console.warn("Reaction handler was called, but it is missing one of its required arguments.\nMake sure the ChannelAction and ChannelState contexts are properly set and the hook is initialized with a valid message.")];i=null,e.own_reactions&&e.own_reactions.forEach(function(e){e.user&&u.userID===e.user.id&&e.type===t?i=e:e.user&&u.userID!==e.user.id&&console.warn("message.own_reactions contained reactions from a different user, this indicates a bug")}),r.label=1;case 1:if(r.trys.push([1,6,,7]),!i)return[3,3];return[4,p(e.id,i.type,!1)];case 2:return r.sent(),[3,5];case 3:return[4,p(e.id,t,!0)];case 4:r.sent(),r.label=5;case 5:return[3,7];case 6:return console.log({error:r.sent()}),[3,7];case 7:return[2]}})})}},h=function(e,t,n,r){var o=(0,s.JN)("useReactionClick").channelCapabilities,a=(0,i.useState)(!1),l=a[0],u=a[1],c=(0,i.useRef)(!1),d=(void 0===o?{}:o)["send-reaction"],f=!!(null==e?void 0:e.deleted_at),h=(0,i.useCallback)(function(e){var n;(!(e.target instanceof HTMLElement&&(null===(n=null==t?void 0:t.current)||void 0===n?void 0:n.contains(e.target)))||r)&&u(!1)},[u,t]);return(0,i.useEffect)(function(){var e=null==n?void 0:n.current;return l&&!c.current&&(c.current=!0,document.addEventListener("click",h),e&&e.addEventListener("mouseleave",h)),!l&&c.current&&(document.removeEventListener("click",h),e&&e.removeEventListener("mouseleave",h),c.current=!1),function(){c.current&&(document.removeEventListener("click",h),e&&e.removeEventListener("mouseleave",h),c.current=!1)}},[l,h,n]),(0,i.useEffect)(function(){var e=null==n?void 0:n.current;f&&c.current&&(document.removeEventListener("click",h),e&&e.removeEventListener("mouseleave",h),c.current=!1)},[f,h,n]),{isReactionEnabled:d,onReactionListClick:function(e){var t;null===(t=null==e?void 0:e.stopPropagation)||void 0===t||t.call(e),u(function(e){return!e})},showDetailedReactions:l}},p=function(e){var t=(0,a.uz)("useRetryHandler").retrySendMessage,n=e||t;return function(e){return(0,r.mG)(void 0,void 0,void 0,function(){return(0,r.Jh)(this,function(t){switch(t.label){case 0:if(!e)return[3,2];return[4,n(e)];case 1:t.sent(),t.label=2;case 2:return[2]}})})}},m=n(74867),g=n(55369),v=n(33600),y=function(e,t){void 0===t&&(t={});var n=t.getErrorNotification,i=t.notify,o=(0,a.uz)("useDeleteHandler"),s=o.deleteMessage,l=o.updateMessage,u=(0,d.mx)("useDeleteHandler").client,c=(0,v.Ht)("useDeleteHandler").t;return function(t){return(0,r.mG)(void 0,void 0,void 0,function(){var o;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if(t.preventDefault(),!(null==e?void 0:e.id)||!u||!l)return[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,s(e)];case 2:return l(r.sent()),[3,4];case 3:return r.sent(),o=n&&(0,g.nU)(n,[e]),i&&i(o||c("Error deleting message"),"error"),[3,4];case 4:return[2]}})})}},b=function(e,t){void 0===t&&(t={});var n=(0,d.mx)("useFlagHandler").client,i=(0,v.Ht)("useFlagHandler").t;return function(o){return(0,r.mG)(void 0,void 0,void 0,function(){var a,s,l,u,c,d;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if(o.preventDefault(),a=t.getErrorNotification,s=t.getSuccessNotification,l=t.notify,!n||!i||!l||!(null==e?void 0:e.id))return console.warn("useFlagHandler was called but it is missing one or more necessary parameters."),[2];if(null===(d=n.user)||void 0===d?void 0:d.banned)return[2,l(i("Error adding flag"),"error")];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,n.flagMessage(e.id)];case 2:return r.sent(),u=s&&(0,g.nU)(s,[e]),l(u||i("Message has been successfully flagged"),"success"),[3,4];case 3:return r.sent(),c=a&&(0,g.nU)(a,[e]),l(c||i("Error adding flag"),"error"),[3,4];case 4:return[2]}})})}},w=function(e,t){void 0===t&&(t={});var n=(0,s.JN)("useMuteHandler").mutes,i=(0,d.mx)("useMuteHandler").client,o=(0,v.Ht)("useMuteHandler").t;return function(a){return(0,r.mG)(void 0,void 0,void 0,function(){var s,l,u,c,d,f;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if(a.preventDefault(),s=t.getErrorNotification,l=t.getSuccessNotification,u=t.notify,!o||!(null==e?void 0:e.user)||!u||!i)return console.warn("useMuteHandler was called but it is missing one or more necessary parameter."),[2];if((0,g.B9)(e,n))return[3,5];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,i.muteUser(e.user.id)];case 2:return r.sent(),c=l&&(0,g.nU)(l,[e.user]),u(c||o("{{ user }} has been muted",{user:e.user.name||e.user.id}),"success"),[3,4];case 3:return r.sent(),d=s&&(0,g.nU)(s,[e.user]),u(d||o("Error muting a user ..."),"error"),[3,4];case 4:return[3,8];case 5:return r.trys.push([5,7,,8]),[4,i.unmuteUser(e.user.id)];case 6:return r.sent(),f=o("{{ user }} has been unmuted",{user:e.user.name||e.user.id}),"string"==typeof(c=l&&(0,g.nU)(l,[e.user])||f)&&u(c,"success"),[3,8];case 7:return r.sent(),"string"==typeof(d=s&&(0,g.nU)(s,[e.user])||o("Error unmuting a user ..."))&&u(d,"error"),[3,8];case 8:return[2]}})})}};function _(e,t){return function(n){var r;"function"==typeof e&&(null===(r=null==t?void 0:t.mentioned_users)||void 0===r?void 0:r.length)&&e(n,t.mentioned_users)}}var x=function(e,t){var n=(0,a.uz)("useMentionsHandler"),r=n.onMentionsClick,i=n.onMentionsHover,o=(null==t?void 0:t.onMentionsClick)||r||function(){return null},s=(null==t?void 0:t.onMentionsHover)||i||function(){return null};return{onMentionsClick:_(o,e),onMentionsHover:_(s,e)}},D=function(e,t,n){void 0===t&&(t=g.Z1),void 0===n&&(n={});var i=n.getErrorNotification,o=n.notify,l=(0,a.uz)("usePinHandler").updateMessage,u=(0,s.JN)("usePinHandler").channelCapabilities,c=(0,d.mx)("usePinHandler").client,f=(0,v.Ht)("usePinHandler").t;return{canPin:!!(void 0===u?{}:u)["pin-message"],handlePin:function(t){return(0,r.mG)(void 0,void 0,void 0,function(){var n;return(0,r.Jh)(this,function(a){switch(a.label){case 0:if(t.preventDefault(),!e)return[2];if(e.pinned)return[3,5];a.label=1;case 1:return a.trys.push([1,3,,4]),l((0,r.pi)((0,r.pi)({},e),{pinned:!0,pinned_at:new Date,pinned_by:c.user})),[4,c.pinMessage(e)];case 2:return a.sent(),[3,4];case 3:return a.sent(),n=i&&(0,g.nU)(i,[e]),o&&o(n||f("Error pinning message"),"error"),l(e),[3,4];case 4:return[3,8];case 5:return a.trys.push([5,7,,8]),l((0,r.pi)((0,r.pi)({},e),{pin_expires:null,pinned:!1,pinned_at:null,pinned_by:null})),[4,c.unpinMessage(e)];case 6:return a.sent(),[3,8];case 7:return a.sent(),n=i&&(0,g.nU)(i,[e]),o&&o(n||f("Error removing message pin"),"error"),l(e),[3,8];case 8:return[2]}})})}}},E=n(97959),C=n(13171),k=i.memo(function(e){var t,n=e.canPin,a=e.groupedByUser,s=e.Message,l=e.message,u=e.messageActions,c=void 0===u?Object.keys(g.Xh):u,d=e.onUserClick,f=e.onUserHover,h=e.userRoles,p=(0,E.yM)("Message").Message,m="regular"===l.type&&"received"===l.status,v=o(),y=v.clearEdit,b=v.editing,w=v.setEdit,_=(t={onUserClickHandler:d,onUserHoverHandler:f},{onUserClick:function(e){"function"==typeof(null==t?void 0:t.onUserClickHandler)&&(null==l?void 0:l.user)&&t.onUserClickHandler(e,l.user)},onUserHover:function(e){"function"==typeof(null==t?void 0:t.onUserHoverHandler)&&(null==l?void 0:l.user)&&t.onUserHoverHandler(e,l.user)}}),x=_.onUserClick,D=_.onUserHover,k=h.canDelete,S=h.canEdit,T=h.canFlag,M=h.canMute,O=h.canQuote,P=h.canReact,R=h.canReply,j=h.isMyMessage,L=(0,i.useCallback)(function(){return(0,g.oT)(c,{canDelete:k,canEdit:S,canFlag:T,canMute:M,canPin:n,canQuote:O,canReact:P,canReply:R})},[c,k,S,T,M,n,O,P,R]);e.canPin,e.messageActions,e.onlySenderCanEdit,e.onUserClick,e.onUserHover,e.userRoles;var F=(0,r._T)(e,["canPin","messageActions","onlySenderCanEdit","onUserClick","onUserHover","userRoles"]),A=(0,r.pi)((0,r.pi)({},F),{actionsEnabled:m,clearEditingState:y,editing:b,getMessageActions:L,handleEdit:w,isMyMessage:function(){return j},onUserClick:x,onUserHover:D,setEditingState:w});return i.createElement(C.x1,{value:A},i.createElement(s||p,{groupedByUser:a}))},g.s4),S=function(e){var t=e.closeReactionSelectorOnClick,n=e.disableQuotedMessages,o=e.getDeleteMessageErrorNotification,u=e.getFlagMessageErrorNotification,c=e.getFlagMessageSuccessNotification,d=e.getMuteUserErrorNotification,g=e.getMuteUserSuccessNotification,v=e.getPinMessageErrorNotification,_=e.message,E=e.onlySenderCanEdit,C=e.onMentionsClick,S=e.onMentionsHover,T=e.openThread,M=e.pinPermissions,O=e.retrySendMessage,P=(0,a.uz)("Message").addNotification,R=(0,s.JN)("Message"),j=R.highlightedMessageId,L=R.mutes,F=(0,i.useRef)(null),A=function(e){var t=this,n=(0,a.uz)("useActionHandler"),i=n.removeMessage,o=n.updateMessage,l=(0,s.JN)("useActionHandler").channel;return function(n,a,s){return(0,r.mG)(t,void 0,void 0,function(){var t,u,c;return(0,r.Jh)(this,function(d){switch(d.label){case 0:if(s&&s.preventDefault(),!e||!o||!i||!l)return console.warn("Action handler was called, but it is missing one of its required arguments. \nMake sure the ChannelAction and ChannelState contexts are properly set and the hook is initialized with a valid message."),[2];if(t=e.id,u={},"string"==typeof n?u[n]=a:u=(0,r.pi)({},n),!t)return[3,2];return[4,l.sendAction(t,u)];case 1:(null==(c=d.sent())?void 0:c.message)?o(c.message):i(e),d.label=2;case 2:return[2]}})})}}(_),N=l(_,T),I=f(_),B=p(O),U=(0,m.j)(_,void 0!==E&&E,n),z=y(_,{getErrorNotification:o,notify:P}),H=b(_,{getErrorNotification:u,getSuccessNotification:c,notify:P}),V=w(_,{getErrorNotification:d,getSuccessNotification:g,notify:P}),q=x(_,{onMentionsClick:C,onMentionsHover:S}),W=q.onMentionsClick,$=q.onMentionsHover,Y=D(_,M,{getErrorNotification:v,notify:P}),Z=Y.canPin,G=Y.handlePin,J=h(_,F,void 0,t),K=J.isReactionEnabled,X=J.onReactionListClick,Q=J.showDetailedReactions,ee=j===_.id;return i.createElement(k,{additionalMessageInputProps:e.additionalMessageInputProps,autoscrollToBottom:e.autoscrollToBottom,canPin:Z,customMessageActions:e.customMessageActions,disableQuotedMessages:e.disableQuotedMessages,endOfGroup:e.endOfGroup,firstOfGroup:e.firstOfGroup,formatDate:e.formatDate,groupedByUser:e.groupedByUser,groupStyles:e.groupStyles,handleAction:A,handleDelete:z,handleFlag:H,handleMute:V,handleOpenThread:N,handlePin:G,handleReaction:I,handleRetry:B,highlighted:ee,initialMessage:e.initialMessage,isReactionEnabled:K,lastReceivedId:e.lastReceivedId,message:_,Message:e.Message,messageActions:e.messageActions,messageListRect:e.messageListRect,mutes:L,onMentionsClickMessage:W,onMentionsHoverMessage:$,onReactionListClick:X,onUserClick:e.onUserClick,onUserHover:e.onUserHover,pinPermissions:e.pinPermissions,reactionSelectorRef:F,readBy:e.readBy,renderText:e.renderText,showDetailedReactions:Q,threadList:e.threadList,unsafeHTML:e.unsafeHTML,userRoles:U})}},70907:function(e,t,n){"use strict";n.d(t,{u:function(){return t1}});var r=n(11735),i=n(2265),o=n(44839),a=function(e){var t=e.className;return i.createElement("svg",{className:void 0===t?"":t,height:"4",viewBox:"0 0 11 4",width:"11",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M1.5 3a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm4 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm4 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z",fillRule:"nonzero"}))},s=function(){return i.createElement("svg",{"data-testid":"reply-icon",height:"15",width:"18",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M.56 10.946H.06l-.002-.498L.025.92a.5.5 0 1 1 1-.004l.032 9.029H9.06v-4l9 4.5-9 4.5v-4H.56z",fillRule:"nonzero"}))},l=function(){return i.createElement("svg",{height:"16",width:"16",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm3.72 6.633a.955.955 0 1 0-1.352-1.352L6.986 8.663 5.633 7.31A.956.956 0 1 0 4.28 8.663l2.029 2.028a.956.956 0 0 0 1.353 0l4.058-4.058z",fill:"#006CFF",fillRule:"evenodd"}))},u=function(e){var t=e.className;return i.createElement("svg",{className:void 0===t?"":t,height:"12",viewBox:"0 0 12 12",width:"12",xmlns:"http://www.w3.org/2000/svg"},i.createElement("g",{clipRule:"evenodd",fillRule:"evenodd"},i.createElement("path",{d:"M6 1.2C3.3 1.2 1.2 3.3 1.2 6c0 2.7 2.1 4.8 4.8 4.8 2.7 0 4.8-2.1 4.8-4.8 0-2.7-2.1-4.8-4.8-4.8zM0 6c0-3.3 2.7-6 6-6s6 2.7 6 6-2.7 6-6 6-6-2.7-6-6z"}),i.createElement("path",{d:"M5.4 4.5c0 .5-.4.9-.9.9s-.9-.4-.9-.9.4-.9.9-.9.9.4.9.9zM8.4 4.5c0 .5-.4.9-.9.9s-.9-.4-.9-.9.4-.9.9-.9.9.4.9.9zM3.3 6.7c.3-.2.6-.1.8.1.3.4.8.9 1.5 1 .6.2 1.4.1 2.4-1 .2-.2.6-.3.8 0 .2.2.3.6 0 .8-1.1 1.3-2.4 1.7-3.5 1.5-1-.2-1.8-.9-2.2-1.5-.2-.3-.1-.7.2-.9z"})))},c=function(e){var t=e.className;return i.createElement("svg",{className:void 0===t?"":t,height:"10",width:"14",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M8.516 3c4.78 0 4.972 6.5 4.972 6.5-1.6-2.906-2.847-3.184-4.972-3.184v2.872L3.772 4.994 8.516.5V3zM.484 5l4.5-4.237v1.78L2.416 5l2.568 2.125v1.828L.484 5z",fillRule:"evenodd"}))},d=function(){return i.createElement("svg",{"data-testid":"delivered-icon",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{clipRule:"evenodd",d:"M8.9999 16.2L4.7999 12L3.3999 13.4L8.9999 19L20.9999 6.99998L19.5999 5.59998L8.9999 16.2Z",fill:"black",fillRule:"evenodd"}))},f=function(){return i.createElement("div",{className:"str-chat__message-error-icon"},i.createElement("svg",{"data-testid":"error",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2Z",fill:"black",id:"background"}),i.createElement("path",{d:"M13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:"white"})))},h=n(74867),p=n(33600),m=function(e){var t=e.message,n=(0,p.Ht)("MessageDeleted").t,r=(0,h.j)(t).isMyMessage;return i.createElement("div",{className:"".concat(r?"str-chat__message str-chat__message--me str-chat__message-simple str-chat__message-simple--me":"str-chat__message str-chat__message-simple str-chat__message--other"," str-chat__message--deleted ").concat(t.type," "),"data-testid":"message-deleted-component",key:t.id},i.createElement("div",{className:"str-chat__message--deleted-inner"},n("This message was deleted...")))},g=n(55369),v=n(92765),y=n(13171),b=function(e){var t=e.customMessageActions,n=e.message,r=Object.keys(t);return i.createElement(i.Fragment,null,r.map(function(e){var r=t[e];return i.createElement("button",{"aria-selected":"false",className:"str-chat__message-actions-list-item str-chat__message-actions-list-item-button",key:e,onClick:function(e){return r(n,e)},role:"option"},e)}))},w=i.memo(function(e){var t=e.getMessageActions,n=e.handleDelete,r=e.handleEdit,a=e.handleFlag,s=e.handleMute,l=e.handlePin,u=e.isUserMuted,c=e.mine,d=e.open,f=void 0!==d&&d,h=(0,v.uz)("MessageActionsBox").setQuotedMessage,m=(0,y.fr)("MessageActionsBox"),w=m.customMessageActions,_=m.message,x=m.messageListRect,D=(0,p.Ht)("MessageActionsBox").t,E=(0,i.useState)(!1),C=E[0],k=E[1],S=t(),T=(0,i.useCallback)(function(e){if(!e){k(!1);return}if(f){var t=e.getBoundingClientRect();c?k(!!x&&t.leftx.right)}},[x,c,f]),M=(0,o.Z)("str-chat__message-actions-box",{"str-chat__message-actions-box--mine":c,"str-chat__message-actions-box--open":f,"str-chat__message-actions-box--reverse":C}),O="str-chat__message-actions-list-item str-chat__message-actions-list-item-button";return i.createElement("div",{className:M,"data-testid":"message-actions-box",ref:T},i.createElement("div",{"aria-label":"Message Options",className:"str-chat__message-actions-list",role:"listbox"},w&&i.createElement(b,{customMessageActions:w,message:_}),S.indexOf(g.Xh.quote)>-1&&i.createElement("button",{"aria-selected":"false",className:O,onClick:function(){h(_);var e=(_.parent_id?document.querySelectorAll(".str-chat__thread .str-chat__textarea__textarea"):document.getElementsByClassName("str-chat__textarea__textarea")).item(0);e instanceof HTMLTextAreaElement&&e.focus()},role:"option"},D("Reply")),S.indexOf(g.Xh.pin)>-1&&!_.parent_id&&i.createElement("button",{"aria-selected":"false",className:O,onClick:l,role:"option"},D(_.pinned?"Unpin":"Pin")),S.indexOf(g.Xh.flag)>-1&&i.createElement("button",{"aria-selected":"false",className:O,onClick:a,role:"option"},D("Flag")),S.indexOf(g.Xh.mute)>-1&&i.createElement("button",{"aria-selected":"false",className:O,onClick:s,role:"option"},D(u()?"Unmute":"Mute")),S.indexOf(g.Xh.edit)>-1&&i.createElement("button",{"aria-selected":"false",className:O,onClick:r,role:"option"},D("Edit Message")),S.indexOf(g.Xh.delete)>-1&&i.createElement("button",{"aria-selected":"false",className:O,onClick:n,role:"option"},D("Delete"))))}),_=n(40311),x=function(e){var t=e.ActionsIcon,n=e.customWrapperClass,r=e.getMessageActions,o=e.handleDelete,s=e.handleFlag,l=e.handleMute,u=e.handlePin,c=e.inline,d=e.message,f=e.messageWrapperRef,h=e.mine,p=(0,_.mx)("MessageActions").mutes,m=(0,y.fr)("MessageActions"),v=m.customMessageActions,b=m.getMessageActions,x=m.handleDelete,E=m.handleFlag,C=m.handleMute,k=m.handlePin,S=m.isMyMessage,T=m.message,M=m.setEditingState,O=r||b,P=d||T,R=(0,i.useState)(!1),j=R[0],L=R[1],F=(0,i.useCallback)(function(){return(0,g.B9)(P,p)},[P,p]),A=(0,i.useCallback)(function(e){e instanceof KeyboardEvent&&"Escape"!==e.key||L(!1)},[]),N=O(),I=!!(null==P?void 0:P.deleted_at);return((0,i.useEffect)(function(){(null==f?void 0:f.current)&&f.current.addEventListener("mouseleave",A)},[A,f]),(0,i.useEffect)(function(){I&&document.removeEventListener("click",A)},[A,I]),(0,i.useEffect)(function(){if(j)return document.addEventListener("click",A),document.addEventListener("keyup",A),function(){document.removeEventListener("click",A),document.removeEventListener("keyup",A)}},[j,A]),N.length||v)?i.createElement(D,{customWrapperClass:void 0===n?"":n,inline:c,setActionsBoxOpen:L},i.createElement(w,{getMessageActions:O,handleDelete:o||x,handleEdit:M,handleFlag:s||E,handleMute:l||C,handlePin:u||k,isUserMuted:F,mine:h?h():S(),open:j}),i.createElement("button",{"aria-expanded":j,"aria-haspopup":"true","aria-label":"Open Message Actions Menu",className:"str-chat__message-actions-box-button"},i.createElement(void 0===t?a:t,{className:"str-chat__message-action-icon"}))):null},D=function(e){var t=e.children,n=e.customWrapperClass,o=e.inline,a=e.setActionsBoxOpen,s={className:n||"\n str-chat__message-simple__actions__action\n str-chat__message-simple__actions__action--options\n str-chat__message-actions-container","data-testid":"message-actions",onClick:function(e){e.stopPropagation(),a(function(e){return!e})}};return o?i.createElement("span",(0,r.pi)({},s),t):i.createElement("div",(0,r.pi)({},s),t)},E=i.memo(function(e){var t=e.ActionsIcon,n=e.displayReplies,r=e.handleOpenThread,o=e.messageWrapperRef,s=e.ReactionIcon,l=e.theme,d=void 0===l?"simple":l,f=e.ThreadIcon,h=(0,y.fr)("MessageOptions"),p=h.customMessageActions,m=h.getMessageActions,v=h.handleOpenThread,b=h.initialMessage,w=h.message,_=h.onReactionListClick,D=h.threadList,E=m(),C=(0,g.Dl)(E,D)||!!p,k=E.indexOf(g.Xh.react)>-1,S=E.indexOf(g.Xh.reply)>-1&&(void 0===n||n)&&!D;if(!w.type||"error"===w.type||"system"===w.type||"ephemeral"===w.type||"failed"===w.status||"sending"===w.status||b)return null;var T="str-chat__message-".concat(d,"__actions str-chat__message-options");return i.createElement("div",{className:T,"data-testid":"message-options"},C&&i.createElement(x,{ActionsIcon:void 0===t?a:t,messageWrapperRef:o}),S&&i.createElement("button",{"aria-label":"Open Thread",className:"str-chat__message-".concat(d,"__actions__action str-chat__message-").concat(d,"__actions__action--thread str-chat__message-reply-in-thread-button"),"data-testid":"thread-action",onClick:r||v},i.createElement(void 0===f?c:f,{className:"str-chat__message-action-icon"})),k&&i.createElement("button",{"aria-label":"Open Reaction Selector",className:"str-chat__message-".concat(d,"__actions__action str-chat__message-").concat(d,"__actions__action--reactions str-chat__message-reactions-button"),"data-testid":"message-reaction-action",onClick:_},i.createElement(void 0===s?u:s,{className:"str-chat__message-action-icon"})))}),C=i.memo(function(e){var t=e.labelPlural,n=e.labelSingle,r=e.onClick,o=e.reply_count,a=void 0===o?0:o,l=(0,p.Ht)("MessageRepliesCountButton").t,u=(0,_.mx)("MessageRepliesCountButton").themeVersion;if(!a)return null;var c=l("replyCount",{count:a});return t&&a>1?c="".concat(a," ").concat(t):n&&(c="1 ".concat(n)),i.createElement("div",{className:"str-chat__message-simple-reply-button str-chat__message-replies-count-button-wrapper"},i.createElement("button",{className:"str-chat__message-replies-count-button","data-testid":"replies-count-button",onClick:r},"1"===u&&i.createElement(s,null),c))}),k=n(77815),S=n(57167),T=n(43714),M=n(48617),O=n(97959),P=i.memo(function(e){var t,n=e.Avatar,r=e.messageType,a=void 0===r?"simple":r,s=e.tooltipUserNameMapper,u=void 0===s?g.jb:s,c=(0,M.r)(),f=c.handleEnter,h=c.handleLeave,m=c.tooltipVisible,v=(0,_.mx)("MessageStatus").client,b=(0,O.yM)("MessageStatus").Avatar,w=(0,y.fr)("MessageStatus"),x=w.isMyMessage,D=w.lastReceivedId,E=w.message,C=w.readBy,P=w.threadList,R=(0,p.Ht)("MessageStatus").t,j=(0,_.mx)("MessageStatus").themeVersion,L=(0,i.useState)(null),F=L[0],A=L[1],N=n||b||k.q;if(!x()||"error"===E.type)return null;var I=(null==C?void 0:C.length)===1&&C[0].id===(null===(t=v.user)||void 0===t?void 0:t.id),B="sending"===E.status,U="received"===E.status&&E.id===D&&!P,z=!!((null==C?void 0:C.length)&&!P&&!I),H=(z?C.filter(function(e){var t;return e.id!==(null===(t=v.user)||void 0===t?void 0:t.id)}):[])[0];return i.createElement("span",{className:"str-chat__message-".concat(a,"-status str-chat__message-status"),"data-testid":(0,o.Z)({"message-status-read-by":z,"message-status-received":U&&!z,"message-status-sending":B}),onMouseEnter:f,onMouseLeave:h,ref:A},B&&i.createElement(i.Fragment,null,"1"===j&&i.createElement(T.u,null,R("Sending...")),"2"===j&&i.createElement(T.X,{offset:[0,5],referenceElement:F,visible:m},R("Sending...")),i.createElement(S.T,null)),U&&!z&&i.createElement(i.Fragment,null,"1"===j&&i.createElement(T.u,null,R("Delivered")),"2"===j&&i.createElement(T.X,{offset:[0,5],referenceElement:F,visible:m},R("Delivered")),"2"===j?i.createElement(d,null):i.createElement(l,null)),z&&i.createElement(i.Fragment,null,"1"===j&&i.createElement(T.u,null,(0,g.Qn)(C,R,v,u)),"2"===j&&i.createElement(T.X,{offset:[0,5],referenceElement:F,visible:m},(0,g.Qn)(C,R,v,u)),i.createElement(N,{image:H.image,name:H.name||H.id,size:15,user:H}),C.length>2&&i.createElement("span",{className:"str-chat__message-".concat(a,"-status-number"),"data-testid":"message-status-read-by-many"},C.length-1)))}),R=function(){var e,t,n,r=(0,O.yM)("QuotedMessage"),a=r.Attachment,s=r.Avatar,l=(0,y.fr)("QuotedMessage"),u=l.isMyMessage,c=l.message,d=(0,p.Ht)("QuotedMessage"),f=d.t,h=d.userLanguage,m=(0,v.uz)("QuotedMessage").jumpToMessage,g=s||k.q,b=c.quoted_message;if(!b)return null;var w=b.deleted_at||"deleted"===b.type,_=w?f("This message was deleted..."):(null===(e=b.i18n)||void 0===e?void 0:e["".concat(h,"_text")])||b.text,x=(null===(t=b.attachments)||void 0===t?void 0:t.length)&&!w?b.attachments[0]:null;return _||x?i.createElement(i.Fragment,null,i.createElement("div",{className:(0,o.Z)("str-chat__quoted-message-preview quoted-message",{mine:u()}),"data-testid":"quoted-message",onClickCapture:function(e){e.stopPropagation(),e.preventDefault(),m(b.id)}},b.user&&i.createElement(g,{image:b.user.image,name:b.user.name||b.user.id,size:20,user:b.user}),i.createElement("div",{className:"quoted-message-inner str-chat__quoted-message-bubble","data-testid":"quoted-message-contents"},x&&i.createElement(a,{attachments:[x]}),i.createElement("div",{"data-testid":"quoted-message-text"},_))),(null===(n=c.attachments)||void 0===n?void 0:n.length)?i.createElement(a,{attachments:c.attachments}):null):null},j=n(65092),L=n(22577),F=n(72799),A=n(94067),N=n.n(A),I=n(54696),B=n(42338);let U={tokenize:function(e,t,n){let r=0;return function t(o){return(87===o||119===o)&&r<3?(r++,e.consume(o),t):46===o&&3===r?(e.consume(o),i):n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},z={tokenize:function(e,t,n){let r,i,o;return a;function a(t){return 46===t||95===t?e.check(V,l,s)(t):null===t||(0,B.z3)(t)||(0,B.B8)(t)||45!==t&&(0,B.Xh)(t)?l(t):(o=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),a}function l(e){return i||r||!o?n(e):t(e)}},partial:!0},H={tokenize:function(e,t){let n=0,r=0;return i;function i(a){return 40===a?(n++,e.consume(a),i):41===a&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Z[43]=Y,Z[45]=Y,Z[46]=Y,Z[95]=Y,Z[72]=[Y,$],Z[104]=[Y,$],Z[87]=[Y,W],Z[119]=[Y,W];var en=n(42462),er=n(69406),ei=n(67833);let eo={tokenize:function(e,t,n){let r=this;return(0,er.f)(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function ea(e,t,n){let r;let i=this,o=i.events.length,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;o--;){let e=i.events[o][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!r||!r._balanced)return n(o);let s=(0,ei.d)(i.sliceSerialize({start:r.end,end:i.now()}));return 94===s.codePointAt(0)&&a.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):n(o)}}function es(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function el(e,t,n){let r;let i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!r||null===s||91===s||(0,B.z3)(s))return n(s);if(93===s){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return o.includes((0,ei.d)(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return(0,B.z3)(s)||(r=!0),a++,e.consume(s),92===s?u:l}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function eu(e,t,n){let r,i;let o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(s>999||93===t&&!i||null===t||91===t||(0,B.z3)(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=(0,ei.d)(o.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return(0,B.z3)(t)||(i=!0),s++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(r)||a.push(r),(0,er.f)(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function ec(e,t,n){return e.check(en.w,t,e.attempt(eo,t,n))}function ed(e){e.exit("gfmFootnoteDefinition")}var ef=n(88973),eh=n(80658),ep=n(63374);class em{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;ie[0]-t[0]),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}let eg={flow:{null:{tokenize:function(e,t,n){let r;let i=this,o=0,a=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,o="tableHead"===r||"tableRow"===r?y:s;return o===y&&i.parser.lazy[i.now().line]?n(e):o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(r=!0,a+=1),l(t)}function l(t){return null===t?n(t):(0,B.Ch)(t)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):(0,B.xz)(t)?(0,er.f)(e,l,"whitespace")(t):(a+=1,r&&(r=!1,o+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),u(t))}function u(t){return null===t||124===t||(0,B.z3)(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,(0,B.xz)(t))?(0,er.f)(e,f,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t)}function f(t){return 45===t||58===t?p(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):n(t)}function h(t){return(0,B.xz)(t)?(0,er.f)(e,p,"whitespace")(t):p(t)}function p(t){return 58===t?(a+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||(0,B.Ch)(t)?v(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return(0,B.xz)(t)?(0,er.f)(e,v,"whitespace")(t):v(t)}function v(i){return 124===i?f(i):null===i||(0,B.Ch)(i)?r&&o===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i):n(i)}function y(t){return e.enter("tableRow"),b(t)}function b(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),b):null===n||(0,B.Ch)(n)?(e.exit("tableRow"),t(n)):(0,B.xz)(n)?(0,er.f)(e,b,"whitespace")(n):(e.enter("data"),w(n))}function w(t){return null===t||124===t||(0,B.z3)(t)?(e.exit("data"),b(t)):(e.consume(t),92===t?_:w)}function _(t){return 92===t||124===t?(e.consume(t),w):w(t)}},resolveAll:function(e,t){let n,r,i,o=-1,a=!0,s=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,f=new em;for(;++on[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==i&&(o.end=Object.assign({},eb(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function ey(e,t,n,r,i){let o=[],a=eb(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function eb(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let ew={text:{91:{tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return(0,B.z3)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return(0,B.Ch)(r)?t(r):(0,B.xz)(r)?e.check({tokenize:e_},t,n)(r):n(r)}}}}};function e_(e,t,n){return(0,er.f)(e,function(e){return null===e?n(e):t(e)},"whitespace")}function ex(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}function eD(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var eE=n(88298),eC=n(5373);let ek={}.hasOwnProperty,eS=function(e,t,n,r){let i,o;"string"==typeof t||t instanceof RegExp?(o=[[t,n]],i=r):(o=t,i=n),i||(i={});let a=(0,eC.O)(i.ignore||[]),s=function(e){let t=[];if("object"!=typeof e)throw TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n0?{type:"text",value:s}:void 0),!1!==s&&(o!==n&&c.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(s)?c.push(...s):s&&c.push(s),o=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(oe}let eO="phrasing",eP=["autolink","link","image","label"],eR={transforms:[function(e){eS(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,eF],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,eA]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:eL,literalAutolinkHttp:eL,literalAutolinkWww:eL},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}}},ej={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:eO,notInConstruct:eP},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:eO,notInConstruct:eP},{character:":",before:"[ps]",after:"\\/",inConstruct:eO,notInConstruct:eP}]};function eL(e){this.config.enter.autolinkProtocol.call(this,e)}function eF(e,t,n,r,i){let o="";if(!eN(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let a=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=ex(e,"("),o=ex(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),o++;return[e,n]}(n+r);if(!a[0])return!1;let s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function eA(e,t,n,r){return!(!eN(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function eN(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||(0,B.B8)(n)||(0,B.Xh)(n))&&(!t||47!==n)}var eI=n(97094);function eB(e){return e.label||!e.identifier?e.label||"":(0,eI.v)(e.identifier)}let eU=/\r?\n|\r/g;function ez(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function eH(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r=c)&&(!(e+10?" ":"")),i.shift(4),o+=i.move(function(e,t){let n;let r=[],i=0,o=0;for(;n=eU.exec(e);)a(e.slice(i,n.index)),r.push(n[0]),i=n.index+n[0].length,o++;return a(e.slice(i)),r.join("");function a(e){r.push(t(e,o,!e))}}(function(e,t,n){let r=t.indexStack,i=e.children||[],o=t.createTracker(n),a=[],s=-1;for(r.push(-1);++s\n\n"}return"\n\n"}(n,i[s+1],e,t)))}return r.pop(),a.join("")}(e,n,i.current()),e3)),a(),o}function e3(e,t,n){return 0===t?e:(n?"":" ")+e}function e4(e,t,n){let r=t.indexStack,i=e.children||[],o=[],a=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++a0&&("\r"===s||"\n"===s)&&"html"===c.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",(l=t.createTracker(n)).move(o.join(""))),o.push(l.move(t.handle(c,e,t,{...l.current(),before:s,after:u}))),s=o[o.length-1].slice(-1)}return r.pop(),o.join("")}e1.peek=function(){return"["},e8.peek=function(){return"~"};let e6={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},e5={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:e8}};function e8(e,t,n,r){let i=e$(r),o=n.enter("strikethrough"),a=i.move("~~");return a+=e4(e,n,{...i.current(),before:a,after:"~"})+i.move("~~"),o(),a}function e7(e,t,n){let r=e.value||"",i="`",o=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o"none"===e?null:e),children:[]},e),this.setData("inTable",!0)},tableData:tr,tableHeader:tr,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,ti)),this.stack[this.stack.length-1].value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:tn,tableHeader:tn,tableRow:tn}};function tn(e){this.exit(e)}function tr(e){this.enter({type:"tableCell",children:[]},e)}function ti(e,t){return"|"===t?t:e}let to={exit:{taskListCheckValueChecked:ts,taskListCheckValueUnchecked:ts,paragraph:function(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){let r;let i=t.children,o=-1;for(;++o-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));let s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);let l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?o:o+" ".repeat(a-o.length))+e});return l(),u}(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+a})),l}}};function ts(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function tl(e={}){let t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",(0,I.W)([G,{document:{91:{tokenize:eu,continuation:{tokenize:ec},exit:ed}},text:{91:{tokenize:el},93:{add:"after",tokenize:ea,resolveTo:es}}},function(e){let t=(e||{}).singleTilde,n={tokenize:function(e,n,r){let i=this.previous,o=this.events,a=0;return function(s){return 126===i&&"characterEscape"!==o[o.length-1][1].type?r(s):(e.enter("strikethroughSequenceTemporary"),function o(s){let l=(0,eh.r)(i);if(126===s)return a>1?r(s):(e.consume(s),a++,o);if(a<2&&!t)return r(s);let u=e.exit("strikethroughSequenceTemporary"),c=(0,eh.r)(s);return u._open=!c||2===c&&!!l,u._close=!l||2===l&&!!c,n(s)}(s))}},resolveAll:function(e,t){let n=-1;for(;++nl&&(l=e[u].length);++ds[d])&&(s[d]=e)}n.push(o)}o[u]=n,a[u]=i}let d=-1;if("object"==typeof n&&"length"in n)for(;++ds[d]&&(s[d]=o),h[d]=o),f[d]=a}o.splice(1,0,f),a.splice(1,0,h),u=-1;let p=[];for(;++u0?{type:"text",value:s}:void 0),!1!==s&&(o!==n&&c.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(s)?c.push(...s):s&&c.push(s),o=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(oe}let ty=function(e,t,n){let r={type:String(e)};return null==n&&("string"==typeof t||Array.isArray(t))?n=t:Object.assign(r,t),Array.isArray(n)?r.children=n:null!=n&&(r.value=String(n)),r};var tb=n(2417),tw=n.n(tb),t_=function(){var e=function(e){return ty("element",{tagName:"emoji"},[ty("text",e)])};return function(t){return tm(t,tw()(),e)}},tx=n(20037),tD=["html","text","br","p","em","strong","a","ol","ul","li","code","pre","blockquote","del","emoji","mention"];function tE(e){try{return encodeURI(decodeURIComponent(e))}catch(t){return e}}var tC=function(e){return e.startsWith("app://")?e:(0,j.A)(e)},tk=function(e){return e},tS={a:function(e){var t=e.children,n=e.href,r=null==n?void 0:n.startsWith("mailto:"),a=null==n?void 0:n.startsWith("http");return n&&(r||a)?i.createElement("a",{className:(0,o.Z)({"str-chat__message-url-link":a}),href:n,rel:"nofollow noreferrer noopener",target:"_blank"},t):i.createElement(i.Fragment,null,t)},emoji:function(e){var t=e.children;return i.createElement("span",{className:"inline-text-emoji","data-testid":"inline-text-emoji"},t)},mention:function(e){var t=e.children,n=e.node.mentionedUser;return i.createElement("span",{className:"str-chat__message-mention","data-user-id":n.id},t)}},tT=function(e,t,n){var o=void 0===n?{}:n,a=o.allowedTagNames,s=o.customMarkDownRenderers,l=o.getRehypePlugins,u=o.getRemarkPlugins;if(!e)return null;if(1===e.trim().length)return i.createElement(i.Fragment,null,e);var c=e,d=(0,tu.aL)(c),f=(0,tu.IE)(c);N()((0,r.ev)((0,r.ev)([],(0,F.sE)(c,"email"),!0),(0,F.sE)(c,"url"),!0),"value").forEach(function(e){var n=e.href,r=e.type,i=e.value,o=f.some(function(e){return null==e?void 0:e.includes(i)});if(!((d&&d.filter(function(e){var t=null==n?void 0:n.replace(tu.Wd,""),r=null==e?void 0:e.replace(tu.Wd,"");return!!t&&!!r&&(t.includes(r)||r.includes(t))})).length>0)&&!o)try{if("email"===r&&t&&t.some(function(e){return e.name===i})){c=c.replace(RegExp((0,tu.hr)(i),"g"),function(e,t){return"@"===c.charAt(t-1)?e:"[".concat(e,"](").concat(tE(n),")")});return}var a="email"===r?i:function(e){try{return decodeURIComponent(e).replace(tu.Wd,"")}catch(t){return e}}(n);c=c.replace(RegExp((0,tu.hr)(i),"g"),"[".concat(a,"](").concat(tE(n),")"))}catch(e){}});var h=[t_];if((null==t?void 0:t.length)&&h.push(function(){var e=t.map(function(e){return e.name||e.id}).filter(Boolean).map(tu.hr),n=RegExp(e.map(function(e){return"@".concat(e)}).join("|"),"g"),r=function(e){var n=e.replace("@","");return ty("element",{mentionedUser:t.find(function(e){var t=e.id;return e.name===n||t===n}),tagName:"mention"},[ty("text",e)])};return function(t){return e.length?((0,tx.Vn)(t,function(e,t,n){if(null!==t&&n){var r,i=n.children.at(t+1),o=null===(r=null==i?void 0:i.properties)||void 0===r?void 0:r.href;if("text"===e.type&&/.?\s?@$|^@$/.test(e.value)&&(null==o?void 0:o.startsWith("mailto:"))){var a=e.value.replace(/@$/,""),s=o.replace("mailto:","");n.children[t]=ty("text",a),n.children[t+1]=ty("text","@".concat(s))}}}),tm(t,n,r)):t}}),null==s?void 0:s.mention){var p=s.mention;s.mention=function(e){var t=e.node,n=(0,r._T)(e,["node"]);return i.createElement(p,(0,r.pi)({mentioned_user:t.mentionedUser,node:(0,r.pi)({mentioned_user:t.mentionedUser},t)},n))}}var m=(0,r.pi)((0,r.pi)({},tS),s);return i.createElement(L.D,{allowedElements:void 0===a?tD:a,components:m,rehypePlugins:(void 0===l?tk:l)(h),remarkPlugins:(void 0===u?tk:u)([[tl,{singleTilde:!1}]]),skipHtml:!0,transformLinkUri:tC,unwrapDisallowed:!0},c)},tM=i.memo(function(e){var t,n,r=e.customInnerClass,o=e.customWrapperClass,a=e.message,s=e.renderText,l=e.theme,u=void 0===l?"simple":l,c=(0,O.yM)("MessageText").QuotedMessage,d=(0,y.fr)("MessageText"),f=d.message,h=d.onMentionsClickMessage,m=d.onMentionsHoverMessage,v=d.renderText,b=d.unsafeHTML,w=null!==(t=null!=s?s:v)&&void 0!==t?t:tT,_=(0,p.Ht)("MessageText"),x=_.t,D=_.userLanguage,E=a||f,C=(0,g.ue)(E),k=(null===(n=E.i18n)||void 0===n?void 0:n["".concat(D,"_text")])||E.text,S=(0,i.useMemo)(function(){return w(k,E.mentioned_users)},[E.mentioned_users,k]);return k||E.quoted_message?i.createElement("div",{className:(void 0===o?"":o)||"str-chat__message-text",tabIndex:0},i.createElement("div",{className:"\n ".concat(r||"str-chat__message-text-inner str-chat__message-".concat(u,"-text-inner"),"\n ").concat(C?" str-chat__message-".concat(u,"-text-inner--has-attachment"):"","\n ").concat((0,g.Kh)(E.text)&&!E.quoted_message?" str-chat__message-".concat(u,"-text-inner--is-emoji"):"","\n ").trim(),"data-testid":"message-text-inner-wrapper",onClick:h,onMouseOver:m},E.quoted_message&&i.createElement(void 0===c?R:c,null),"error"===E.type&&i.createElement("div",{className:"str-chat__".concat(u,"-message--error-message str-chat__message--error-message")},x("Error \xb7 Unsent")),"failed"===E.status&&i.createElement("div",{className:"str-chat__".concat(u,"-message--error-message str-chat__message--error-message")},x(403!==E.errorStatusCode?"Message Failed \xb7 Click to try again":"Message Failed \xb7 Unauthorized")),b&&E.html?i.createElement("div",{dangerouslySetInnerHTML:{__html:E.html}}):i.createElement("div",null,S))):null}),tO=n(35972),tP=i.memo(function(e){var t=e.calendar,n=void 0!==t&&t,r=e.customClass,o=e.format,a=void 0===o?"h:mmA":o,s=e.message,l=(0,y.fr)("MessageTimestamp"),u=l.formatDate,c=l.message,d=(0,p.Ht)("MessageTimestamp").tDateTimeParser,f=s||c,h=f.created_at&&(0,p.J_)(f.created_at)?f.created_at.toISOString():f.created_at,m=(0,i.useMemo)(function(){return(0,tO.fh)({calendar:n,format:a,formatDate:u,messageCreatedAt:h,tDateTimeParser:d})},[u,n,d,a,h]);return m?i.createElement("time",{className:void 0===r?"":r,dateTime:h,title:h},m):null}),tR=n(3661),tj=n(69058),tL=n(51442),tF=n(32892),tA=n(56604),tN=n(42830),tI=n(98098),tB=n(92463),tU=n(61612),tz=n(74745),tH=function(){var e=(0,tU.JN)("EditMessageForm"),t=e.acceptedFiles,n=e.multipleUploads,r=(0,p.Ht)("EditMessageForm").t,o=(0,tz.Nc)("EditMessageForm"),a=o.clearEditingState,s=o.closeEmojiPicker,l=o.emojiPickerIsOpen,u=o.handleSubmit,c=o.isUploadEnabled,d=o.maxFilesLeft,f=o.openEmojiPicker,h=o.uploadNewFiles,m=(0,O.yM)("EditMessageForm"),g=m.EmojiIcon,v=void 0===g?tA.Ai:g,y=m.FileUploadIcon,b=void 0===y?tA.HC:y,w=(0,_.mx)("EditMessageForm").themeVersion;return((0,i.useEffect)(function(){var e=function(e){"Escape"===e.key&&(null==a||a())};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}},[a]),"2"===w)?i.createElement("form",{className:"str-chat__edit-message-form",onSubmit:u},i.createElement(tB.r,null),i.createElement("div",{className:"str-chat__edit-message-form-options"},i.createElement("button",{className:"str-chat__edit-message-cancel","data-testid":"cancel-button",onClick:a},r("Cancel")),i.createElement("button",{className:"str-chat__edit-message-send","data-testid":"send-button",type:"submit"},r("Send")))):i.createElement("div",{className:"str-chat__edit-message-form"},i.createElement(tj.v,{accept:t,disabled:!c||0===d,handleFiles:h,maxNumberOfFiles:d,multiple:n},i.createElement("form",{onSubmit:u},c&&i.createElement(tN._,null),i.createElement(tF.h,{small:!0}),i.createElement(tI.T,null),i.createElement("div",{className:"str-chat__message-team-form-footer"},i.createElement("div",{className:"str-chat__edit-message-form-options"},i.createElement("button",{"aria-label":"Open Emoji Picker",className:"str-chat__input-emojiselect",onClick:l?s:f},i.createElement(v,null)),c&&i.createElement("div",{className:"str-chat__fileupload-wrapper","data-testid":"fileinput"},i.createElement(T.u,null,r(d?"Attach files":"You've reached the maximum number of files")),i.createElement(tL.K,{accepts:t,disabled:0===d,handleFiles:h,multiple:n},i.createElement("span",{className:"str-chat__input-fileupload"},i.createElement(b,null))))),i.createElement("div",null,i.createElement("button",{className:"str-chat__edit-message-cancel",onClick:a},r("Cancel")),i.createElement("button",{className:"str-chat__edit-message-send",type:"submit"},r("Send")))))))},tV=n(2779),tq=i.lazy(function(){return(0,r.mG)(void 0,void 0,void 0,function(){return(0,r.Jh)(this,function(e){switch(e.label){case 0:return[4,Promise.all([n.e(833),n.e(375)]).then(n.bind(n,9375))];case 1:return[2,{default:e.sent().MML}]}})})}),tW=function(e){var t=e.actionHandler,n=e.align,r=e.source,o=(0,_.mx)("MML").theme;return i.createElement(i.Suspense,{fallback:null},i.createElement(tq,{className:"mml-align-".concat(void 0===n?"right":n),Loading:null,onSubmit:t,source:r,Success:null,theme:(o||"").replace(" ","-")}))},t$=n(95683),tY=n(42393),tZ=n(86390),tG=i.forwardRef(function(e,t){var n,a=e.additionalEmojiProps,s=void 0===a?{}:a,l=e.Avatar,u=e.detailedView,c=void 0===u||u,d=e.handleReaction,f=e.latest_reactions,h=e.own_reactions,p=e.reaction_counts,m=e.reactionOptions,g=e.reverse,v=(0,O.yM)("ReactionSelector").Avatar,b=(0,tZ.uL)("ReactionSelector"),w=b.Emoji,_=b.emojiConfig,x=(0,y.fr)("ReactionSelector"),D=x.handleReaction,E=x.message,C=_||{},S=C.defaultMinimalEmojis,T=C.emojiData,M=C.emojiSetDef,P=l||v||k.q,R=d||D,j=f||(null==E?void 0:E.latest_reactions)||[],L=h||(null==E?void 0:E.own_reactions)||[],F=p||(null==E?void 0:E.reaction_counts)||{},A=!!(null==m?void 0:m.length),N=(0,i.useMemo)(function(){return A?T:(0,tY.Le)(T)},[T,A]),I=(0,i.useState)(null),B=I[0],U=I[1],z=(0,i.useState)(null),H=z[0],V=z[1],q=(0,i.useRef)(null),W=(0,i.useRef)(null),$=(0,i.useCallback)(function(e,t){q.current=e.currentTarget,U(t)},[]),Y=(0,i.useCallback)(function(){U(null),V(null)},[]);(0,i.useEffect)(function(){var e,n,r;if(B){var i=null===(e=W.current)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(n=q.current)||void 0===n?void 0:n.getBoundingClientRect(),a=t&&void 0!==t.current?null===(r=t.current)||void 0===r?void 0:r.getBoundingClientRect():null;if(!i||!o||!a)return;var s=i.width===a.width||i.x0))return[];h=(0,r.ev)([],e,!0)}return n&&h.indexOf(c.delete)>-1&&f.push(c.delete),i&&h.indexOf(c.edit)>-1&&f.push(c.edit),o&&h.indexOf(c.flag)>-1&&f.push(c.flag),a&&h.indexOf(c.mute)>-1&&f.push(c.mute),s&&h.indexOf(c.pin)>-1&&f.push(c.pin),l&&h.indexOf(c.quote)>-1&&f.push(c.quote),u&&h.indexOf(c.react)>-1&&f.push(c.react),d&&h.indexOf(c.reply)>-1&&f.push(c.reply),f},h=["pin","react","reply"],p=function(e,t){return!(0===e.length||t&&0===e.filter(function(e){return!h.includes(e)}).length||1===e.length&&(e.includes("react")||e.includes("reply"))||2===e.length&&e.includes("react")&&e.includes("reply"))},m=function(e,t){var n,r,i,o,a,s;return e.deleted_at===t.deleted_at&&(null===(n=e.latest_reactions)||void 0===n?void 0:n.length)===(null===(r=t.latest_reactions)||void 0===r?void 0:r.length)&&(null===(i=e.own_reactions)||void 0===i?void 0:i.length)===(null===(o=t.own_reactions)||void 0===o?void 0:o.length)&&e.pinned===t.pinned&&e.reply_count===t.reply_count&&e.status===t.status&&e.text===t.text&&e.type===t.type&&e.updated_at===t.updated_at&&(null===(a=e.user)||void 0===a?void 0:a.updated_at)===(null===(s=t.user)||void 0===s?void 0:s.updated_at)},g=function(e,t){var n=e.message,r=e.Message,i=t.message;return!!(r===t.Message&&e.endOfGroup===t.endOfGroup&&t.showDetailedReactions===e.showDetailedReactions&&m(n,i)&&o()(t.messageActions,e.messageActions)&&o()(t.readBy,e.readBy)&&o()(t.highlighted,e.highlighted)&&o()(t.groupStyles,e.groupStyles)&&o()(t.mutes,e.mutes)&&o()(t.lastReceivedId,e.lastReceivedId))&&e.messageListRect===t.messageListRect},v=function(e,t){var n,r,i,o,a=e.lastReceivedId,s=e.message,l=t.lastReceivedId,u=t.message;return e.editing===t.editing&&e.highlighted===t.highlighted&&e.endOfGroup===t.endOfGroup&&(null===(n=e.mutes)||void 0===n?void 0:n.length)===(null===(r=t.mutes)||void 0===r?void 0:r.length)&&(null===(i=e.readBy)||void 0===i?void 0:i.length)===(null===(o=t.readBy)||void 0===o?void 0:o.length)&&e.showDetailedReactions===t.showDetailedReactions&&(s.id!==a&&s.id!==l||a===l)&&m(s,u)},y=function(e){return!!(null==e?void 0:e.latest_reactions)&&!!e.latest_reactions.length},b=function(e){return!!(null==e?void 0:e.attachments)&&!!e.attachments.length},w=function(e){return e.name||e.id},_=function(e,t,n,r){var i="";if(!t)throw Error("getReadByTooltipText was called, but translation function is not available");if(!r)throw Error("getReadByTooltipText was called, but tooltipUserNameMapper function is not available");var o=e.filter(function(e){return e&&(null==n?void 0:n.user)&&e.id!==n.user.id}).map(r),a=o.slice(0,5),s=o.length-a.length;if(1===a.length)i="".concat(a[0]," ");else if(2===a.length)i=t("{{ firstUser }} and {{ secondUser }}",{firstUser:a[0],secondUser:a[1]});else if(a.length>2){if(0===s){var l=a.splice(a.length-1,1);i=t("{{ commaSeparatedUsers }}, and {{ lastUser }}",{commaSeparatedUsers:a.join(", "),lastUser:l})}else i=t("{{ commaSeparatedUsers }} and {{ moreCount }} more",{commaSeparatedUsers:a.join(", "),moreCount:s})}return i},x=function(e){return!!e&&!e.replace(s()(),"").replace(/[\s\n]/gm,"")}},85314:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(2265),i=function(e){var t=e.cooldownInterval,n=e.setCooldownRemaining,i=(0,r.useState)(t),o=i[0],a=i[1];return(0,r.useEffect)(function(){var e=setInterval(function(){o>0?a(o-1):n(0)},1e3);return function(){return clearInterval(e)}}),r.createElement("div",{className:"str-chat__message-input-cooldown","data-testid":"cooldown-timer"},o)}},32892:function(e,t,n){"use strict";n.d(t,{h:function(){return u}});var r=n(2265),i=n(44839),o=n(86390),a=n(33600),s=n(74745),l=function(e){return!("White Smiling Face"===e.name||"White Frowning Face"===e.name)},u=function(e){var t=e.small,n=(0,o.uL)("EmojiPicker"),u=n.emojiConfig,c=n.EmojiPicker,d=(0,a.Ht)("EmojiPicker").t,f=(0,s.Nc)("EmojiPicker"),h=f.emojiPickerIsOpen,p=f.emojiPickerRef,m=f.onSelectEmoji,g=(u||{}).emojiData;return h&&g?r.createElement("div",{className:(0,i.Z)("str-chat__emoji-picker-container",{"str-chat__input--emojipicker":!t,"str-chat__small-message-input-emojipicker":t}),ref:p},r.createElement(r.Suspense,{fallback:null},r.createElement(c,{color:"#006CFF",data:g,emoji:"point_up",emojisToShowFilter:l,native:!0,onSelect:m,set:"facebook",showPreview:!1,showSkinTones:!1,title:d("Pick your emoji"),useButton:!0}))):null}},2779:function(e,t,n){"use strict";n.d(t,{R:function(){return C}});var r=n(11735),i=n(2265),o=n(84202),a=n(61612),s=n(40311),l=n(33600),u=function(){var e=(0,s.mx)("useCommandTrigger").themeVersion,t=(0,a.JN)("useCommandTrigger").channelConfig,n=(0,l.Ht)("useCommandTrigger").t,r=null==t?void 0:t.commands;return{component:o.d,dataProvider:function(t,i,o){if(0!==i.indexOf("/")||!r)return[];var a=r.filter(function(e){var n;return(null===(n=e.name)||void 0===n?void 0:n.indexOf(t))!==-1});a.sort(function(e,n){var r,i,o=null===(r=e.name)||void 0===r?void 0:r.toLowerCase(),a=null===(i=n.name)||void 0===i?void 0:i.toLowerCase();if((null==o?void 0:o.indexOf(t))===0&&(o="0".concat(o)),(null==a?void 0:a.indexOf(t))===0&&(a="0".concat(a)),null!=o&&null!=a){if(oa)return 1}return 0});var s=a.slice(0,"2"===e?5:10);return o&&o(s.filter(function(e){return void 0!==e.name}).map(function(e){var t={name:e.name};return e.args&&(t.args=n("".concat(e.name,"-command-args"),{defaultValue:e.args})),e.description&&(t.description=n("".concat(e.name,"-command-description"),{defaultValue:e.description})),t}),t),s},output:function(e){return{caretPosition:"next",key:e.name,text:"/".concat(e.name)}}}},c=i.memo(function(e){var t=e.entity,n=Object.keys(t).length,r=null==t?void 0:t.itemNameParts;return i.createElement("div",{className:"str-chat__emoji-item"},i.createElement("span",{className:"str-chat__emoji-item--entity"},t.native),i.createElement("span",{className:"str-chat__emoji-item--name"},n?n&&r.parts.map(function(e,t){return e.toLowerCase()===r.match.toLowerCase()?i.createElement("span",{className:"str-chat__emoji-item--highlight",key:"part-".concat(t)},e):i.createElement("span",{className:"str-chat__emoji-item--part",key:"part-".concat(t)},e)}):null))}),d=function(e){var t=(0,s.mx)("useEmojiTrigger").themeVersion;return{component:c,dataProvider:function(n,r,i){if(0===n.length||n.charAt(0).match(/[^a-zA-Z0-9+-]/))return[];var o=((null==e?void 0:e.search(n))||[]).filter(Boolean).slice(0,"2"===t?7:10);return i&&i(o,n),o},output:function(e){return{caretPosition:"next",key:e.id,text:"".concat("native"in e?e.native:"")}}}},f=n(57701),h=n.n(f),p=n(73268),m=n(33822),g=function(e){var t=e.disableMentions,n=e.mentionAllAppUsers,o=e.mentionQueryParams,l=void 0===o?{}:o,u=e.onSelectUser,c=e.useMentionsTransliteration,d=(0,i.useState)(!1),f=d[0],g=d[1],v=(0,s.mx)("useUserTrigger"),y=v.client,b=v.mutes,w=v.themeVersion,_=(0,a.JN)("useUserTrigger").channel,x=_.state.members,D=_.state.watchers,E=(0,i.useCallback)(function(){var e=x?Object.values(x).map(function(e){return e.user}):[],t=D?Object.values(D):[],n=(0,r.ev)((0,r.ev)([],e,!0),t,!0),i={};return n.forEach(function(e){e&&!i[e.id]&&(i[e.id]=e)}),Object.values(i)},[x,D]),C=(0,i.useCallback)(h()(function(e,t){return(0,r.mG)(void 0,void 0,void 0,function(){var n;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,_.queryMembers({name:{$autocomplete:e}})];case 1:return n=r.sent().members.map(function(e){return e.user}),t&&n.length?t(n):t([]),[3,3];case 2:return console.log({error:r.sent()}),[3,3];case 3:return[2]}})})},200),[_]),k=h()(function(e,t){return(0,r.mG)(void 0,void 0,void 0,function(){var n;return(0,r.Jh)(this,function(i){switch(i.label){case 0:if(!e||f)return[2];g(!0),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,y.queryUsers((0,r.pi)({$or:[{id:{$autocomplete:e}},{name:{$autocomplete:e}}],id:{$ne:y.userID}},"function"==typeof l.filters?l.filters(e):l.filters),Array.isArray(l.sort)?(0,r.ev)([{id:1}],l.sort,!0):(0,r.pi)({id:1},l.sort),(0,r.pi)({limit:10},l.options))];case 2:return n=i.sent().users,t&&n.length?t(n):t([]),[3,4];case 3:return console.log({error:i.sent()}),[3,4];case 4:return g(!1),[2]}})})},200);return{callback:function(e){return u(e)},component:m.E,dataProvider:function(e,r,i){if(!t){var o,a,s=function(e){return r.includes("/unmute")&&!b.length?[]:b.length?r.includes("/unmute")?e.filter(function(e){return b.some(function(t){return t.target.id===e.id})}):e.filter(function(e){return b.every(function(t){return t.target.id!==e.id})}):e};if(n)return k(e,function(t){i&&i(s(t),e)});if(!e||Object.values(x||{}).length<100){var u=E(),d={ownUserId:y.userID,query:e,text:r,useMentionsTransliteration:c,users:u},f=(0,p.i_)(d),h=null!==(a=null===(o=l.options)||void 0===o?void 0:o.limit)&&void 0!==a?a:"2"===w?7:10,m=f.slice(0,h);return i&&i(s(m),e),m}return C(e,function(t){i&&i(s(t),e)})}},output:function(e){return{caretPosition:"next",key:e.id,text:"@".concat(e.name||e.id)}}}},v=n(74745),y=function(e){var t=e.children,n=(0,v.Nc)("DefaultTriggerProvider"),o={"/":u(),":":d(n.emojiIndex),"@":g({disableMentions:n.disableMentions,mentionAllAppUsers:n.mentionAllAppUsers,mentionQueryParams:n.mentionQueryParams,onSelectUser:n.onSelectUser,useMentionsTransliteration:n.useMentionsTransliteration})},a=(0,r.pi)((0,r.pi)({},n),{autocompleteTriggers:o});return i.createElement(v.G6,{value:a},t)},b=n(92463),w=n(67378),_=n(92560),x=n(43751),D=n(97959),E=function(e){var t=(0,w._)(),n=(0,x.k)(e),o=(0,_.u)((0,r.pi)((0,r.pi)((0,r.pi)({},t),n),e));return i.createElement(v.G6,{value:o},e.children)},C=i.memo(function(e){var t=e.Input,n=(0,a.JN)().dragAndDropWindow,o=(0,D.yM)("MessageInput"),s=o.Input,l=o.TriggerProvider,u=void 0===l?y:l,c=t||s||b.r;return n?i.createElement(i.Fragment,null,i.createElement(u,null,i.createElement(c,null))):i.createElement(E,(0,r.pi)({},e),i.createElement(u,null,i.createElement(c,null)))})},92463:function(e,t,n){"use strict";n.d(t,{r:function(){return L}});var r=n(11735),i=n(2265),o=n(69058),a=n(51442),s=n(5289),l=n(44839),u=n(63375),c=n(38746),d=n(91116),f=n(32892),h=n(56604),p=n(53496),m=n(68650),g=n(27988),v=n(74745),y=n(97959),b=function(){var e=(0,v.Nc)("AttachmentPreviewList"),t=e.fileOrder,n=e.imageOrder;return i.createElement("div",{className:"str-chat__attachment-preview-list"},i.createElement("div",{className:"str-chat__attachment-list-scroll-container","data-testid":"attachment-list-scroll-container"},n.map(function(e){return i.createElement(w,{id:e,key:e})}),t.map(function(e){return i.createElement(_,{id:e,key:e})})))},w=function(e){var t,n=e.id,r=(0,y.yM)("ImagePreviewItem").BaseImage,o=void 0===r?m.Z:r,a=(0,v.Nc)("ImagePreviewItem"),s=a.imageUploads,u=a.removeImage,c=a.uploadImage,d=(0,i.useState)(!1),f=d[0],p=d[1],g=(0,i.useCallback)(function(e){e.stopPropagation(),u(n)},[u,n]),b=(0,i.useCallback)(function(){return c(n)},[c,n]),w=(0,i.useCallback)(function(){return p(!0)},[]),_=s[n];return!_||_.og_scrape_url?null:i.createElement("div",{className:(0,l.Z)("str-chat__attachment-preview-image",{"str-chat__attachment-preview-image--error":f}),"data-testid":"attachment-preview-image"},i.createElement("button",{className:"str-chat__attachment-preview-delete","data-testid":"image-preview-item-delete-button",disabled:"uploading"===_.state,onClick:g},i.createElement(h.Tw,null)),"failed"===_.state&&i.createElement("button",{className:"str-chat__attachment-preview-error str-chat__attachment-preview-error-image","data-testid":"image-preview-item-retry-button",onClick:b},i.createElement(h.Oe,null)),"uploading"===_.state&&i.createElement("div",{className:"str-chat__attachment-preview-image-loading"},i.createElement(h.VK,{size:17})),(_.previewUri||_.url)&&i.createElement(o,{alt:_.file.name,className:"str-chat__attachment-preview-thumbnail",onError:w,src:null!==(t=_.previewUri)&&void 0!==t?t:_.url,title:_.file.name}))},_=function(e){var t=e.id,n=(0,v.Nc)("FilePreviewItem"),r=n.fileUploads,o=n.removeFile,a=n.uploadFile,s=(0,i.useCallback)(function(e){e.stopPropagation(),o(t)},[o,t]),l=(0,i.useCallback)(function(){return a(t)},[a,t]),u=r[t],c=(0,i.useMemo)(function(){return{failed:"failed"===u.state,finished:"finished"===u.state,uploading:"uploading"===u.state}},[u.state]);return u?i.createElement("div",{className:"str-chat__attachment-preview-file","data-testid":"attachment-preview-file"},i.createElement("div",{className:"str-chat__attachment-preview-file-icon"},i.createElement(g.a,{filename:u.file.name,mimeType:u.file.type,version:"2"})),i.createElement("button",{className:"str-chat__attachment-preview-delete","data-testid":"file-preview-item-delete-button",disabled:c.uploading,onClick:s},i.createElement(h.Tw,null)),c.failed&&i.createElement("button",{className:"str-chat__attachment-preview-error str-chat__attachment-preview-error-file","data-testid":"file-preview-item-retry-button",onClick:l},i.createElement(h.Oe,null)),i.createElement("div",{className:"str-chat__attachment-preview-file-end"},i.createElement("div",{className:"str-chat__attachment-preview-file-name"},u.file.name),c.finished&&i.createElement("a",{className:"str-chat__attachment-preview-file-download",download:!0,href:u.url,rel:"noreferrer",target:"_blank"},i.createElement(h._8,null)),c.uploading&&i.createElement(h.VK,{size:17}))):null},x=n(61612),D=n(6996),E=n(43714),C=n(48617),k=function(e){var t=e.linkPreviews,n=(0,x.JN)().quotedMessage;return t.length>0&&!n?i.createElement("div",{className:"str-chat__link-preview-list"},Array.from(t.values()).map(function(e){return e.state===D.G.LOADED?i.createElement(S,{key:e.og_scrape_url,linkPreview:e}):null})):null},S=function(e){var t=e.linkPreview,n=(0,v.Nc)().dismissLinkPreview,r=(0,C.r)(),o=r.handleEnter,a=r.handleLeave,s=r.tooltipVisible,u=(0,i.useState)(null),c=u[0],d=u[1];return i.createElement("div",{className:(0,l.Z)("str-chat__link-preview-card",{"str-chat__link-preview-card--loading":t.state===D.G.LOADING}),"data-testid":"link-preview-card"},i.createElement(E.X,{offset:[0,5],referenceElement:c,visible:s},t.og_scrape_url),i.createElement("div",{className:"str-chat__link-preview-card__icon-container",onMouseEnter:o,onMouseLeave:a,ref:d},i.createElement(h.xP,null)),i.createElement("div",{className:"str-chat__link-preview-card__content"},i.createElement("div",{className:"str-chat__link-preview-card__content-title"},t.title),i.createElement("div",{className:"str-chat__link-preview-card__content-description"},t.text)),i.createElement("button",{className:"str-chat__link-preview-card__dismiss-button","data-testid":"link-preview-card-dismiss-btn",onClick:function(){return n(t)}},i.createElement(h.Tw,null)))},T=n(42830),M=n(98098),O=n(40311),P=n(92765),R=n(33600),j=n(85314),L=function(){var e=(0,x.JN)("MessageInputFlat").quotedMessage,t=(0,P.uz)("MessageInputFlat").setQuotedMessage,n=(0,O.mx)("MessageInputFlat"),r=n.channel,o=n.themeVersion;return(0,i.useEffect)(function(){var n=function(n){var r;if((null===(r=n.message)||void 0===r?void 0:r.id)===(null==e?void 0:e.id)){if("message.deleted"===n.type){t(void 0);return}t(n.message)}};return null==r||r.on("message.deleted",n),null==r||r.on("message.updated",n),function(){null==r||r.off("message.deleted",n),null==r||r.off("message.updated",n)}},[r,e]),"2"===o?i.createElement(A,null):i.createElement(F,null)},F=function(){var e=(0,x.JN)("MessageInputFlat"),t=e.acceptedFiles,n=e.multipleUploads,r=e.quotedMessage,s=(0,R.Ht)("MessageInputFlat").t,u=(0,v.Nc)("MessageInputFlat"),c=u.closeEmojiPicker,d=u.cooldownRemaining,m=u.emojiPickerIsOpen,g=u.handleSubmit,b=u.hideSendButton,w=u.isUploadEnabled,_=u.maxFilesLeft,D=u.numberOfUploads,C=u.openEmojiPicker,k=u.setCooldownRemaining,S=u.uploadNewFiles,O=(0,y.yM)("MessageInputFlat"),P=O.CooldownTimer,L=void 0===P?j.b:P,F=O.EmojiIcon,A=void 0===F?h.TK:F,N=O.FileUploadIcon,I=void 0===N?h.hi:N,B=O.QuotedMessagePreview,U=void 0===B?p.b:B,z=O.SendButton,H=void 0===z?h.c7:z,V=O.AttachmentPreviewList,q=void 0===V?T._:V;return i.createElement("div",{className:(0,l.Z)("str-chat__input-flat","str-chat__message-input",{"str-chat__input-flat--send-button-active":!!H,"str-chat__input-flat-has-attachments":D,"str-chat__input-flat-quoted":r&&!r.parent_id})},i.createElement(o.v,{accept:t,disabled:!w||0===_||!!d,handleFiles:S,maxNumberOfFiles:_,multiple:n},r&&!r.parent_id&&i.createElement(U,{quotedMessage:r}),i.createElement("div",{className:"str-chat__input-flat-wrapper"},w&&i.createElement(q,null),i.createElement("div",{className:"str-chat__input-flat--textarea-wrapper"},i.createElement("div",{className:"str-chat__emojiselect-wrapper"},i.createElement(E.u,null,s(m?"Close emoji picker":"Open emoji picker")),i.createElement("button",{"aria-label":"Emoji picker",className:"str-chat__input-flat-emojiselect",onClick:m?c:C},d?i.createElement("div",{className:"str-chat__input-flat-cooldown"},i.createElement(L,{cooldownInterval:d,setCooldownRemaining:k})):i.createElement(A,null))),i.createElement(f.h,null),i.createElement(M.T,null),w&&!d&&i.createElement("div",{className:"str-chat__fileupload-wrapper","data-testid":"fileinput"},i.createElement(E.u,null,s(_?"Attach files":"You've reached the maximum number of files")),i.createElement(a.K,{accepts:t,disabled:0===_,handleFiles:S,multiple:n},i.createElement("span",{className:"str-chat__input-flat-fileupload"},i.createElement(I,null))))),!(d||b)&&i.createElement(H,{sendMessage:g}))))},A=function(){var e=(0,x.JN)("MessageInputV2"),t=e.acceptedFiles,n=void 0===t?[]:t,o=e.multipleUploads,a=e.quotedMessage,m=(0,R.Ht)("MessageInputV2").t,g=(0,v.Nc)("MessageInputV2"),w=g.closeEmojiPicker,_=g.cooldownRemaining,D=g.emojiPickerIsOpen,E=g.findAndEnqueueURLsToEnrich,C=g.handleSubmit,S=g.hideSendButton,T=g.isUploadEnabled,O=g.linkPreviews,P=g.maxFilesLeft,L=g.message,F=g.numberOfUploads,A=g.openEmojiPicker,N=g.setCooldownRemaining,I=g.text,B=g.uploadNewFiles,U=(0,y.yM)("MessageInputV2"),z=U.AttachmentPreviewList,H=U.CooldownTimer,V=void 0===H?j.b:H,q=U.EmojiIcon,W=void 0===q?h.B0:q,$=U.FileUploadIcon,Y=void 0===$?h.rG:$,Z=U.LinkPreviewList,G=U.QuotedMessagePreview,J=void 0===G?p.b:G,K=U.SendButton,X=void 0===K?h.c7:K,Q=(0,i.useState)(null),ee=Q[0],et=Q[1],en=(0,i.useState)(null),er=en[0],ei=en[1],eo=(0,u.D)(ee,er,{placement:"top-end"}),ea=eo.attributes,es=eo.styles,el=(0,i.useMemo)(function(){return(0,d.x0)()},[]),eu=(0,i.useMemo)(function(){return n.reduce(function(e,t){var n;return null!==(n=e[t])&&void 0!==n||(e[t]=[]),e},{})},[n]),ec=(0,c.uI)({accept:eu,disabled:!T||0===P,multiple:o,noClick:!0,onDrop:B}),ed=ec.getRootProps,ef=ec.isDragActive,eh=ec.isDragReject,ep=!L&&a&&!a.parent_id;return i.createElement(i.Fragment,null,i.createElement("div",(0,r.pi)({},ed({className:"str-chat__message-input"})),E&&i.createElement(void 0===Z?k:Z,{linkPreviews:Array.from(O.values())}),ef&&i.createElement("div",{className:(0,l.Z)("str-chat__dropzone-container",{"str-chat__dropzone-container--not-accepted":eh})},!eh&&i.createElement("p",null,m("Drag your files here")),eh&&i.createElement("p",null,m("Some of the files will not be accepted"))),ep&&i.createElement(p.y,null),i.createElement("div",{className:"str-chat__message-input-inner"},i.createElement("div",{className:"str-chat__file-input-container","data-testid":"file-upload-button"},i.createElement(s.p,{accept:null==n?void 0:n.join(","),"aria-label":"File upload",className:"str-chat__file-input","data-testid":"file-input",disabled:!T||0===P,id:el,multiple:o,onFileChange:B}),i.createElement("label",{className:"str-chat__file-input-label",htmlFor:el},i.createElement(Y,null))),i.createElement("div",{className:"str-chat__message-textarea-container"},ep&&i.createElement(J,{quotedMessage:a}),T&&!!F&&i.createElement(void 0===z?b:z,null),i.createElement("div",{className:"str-chat__message-textarea-with-emoji-picker"},i.createElement(M.T,null),i.createElement("div",{className:"str-chat__message-textarea-emoji-picker"},D&&i.createElement("div",(0,r.pi)({className:"str-chat__message-textarea-emoji-picker-container",style:es.popper},ea.popper,{ref:ei}),i.createElement(f.h,null)),i.createElement("button",{"aria-label":"Emoji picker",className:"str-chat__emoji-picker-button",onClick:D?w:A,ref:et,type:"button"},i.createElement(W,null))))),!S&&i.createElement(i.Fragment,null,_?i.createElement(V,{cooldownInterval:_,setCooldownRemaining:N}):i.createElement(X,{disabled:!F&&!I.length,sendMessage:C})))))}},53496:function(e,t,n){"use strict";n.d(t,{b:function(){return d},y:function(){return c}});var r=n(2265),i=n(77815),o=n(56604),a=n(92765),s=n(97959),l=n(33600),u=n(40311),c=function(){var e=(0,a.uz)("QuotedMessagePreview").setQuotedMessage,t=(0,l.Ht)("QuotedMessagePreview").t;return r.createElement("div",{className:"quoted-message-preview-header str-chat__quoted-message-preview-header"},r.createElement("div",{className:"str-chat__quoted-message-reply-to-message"},t("Reply to Message")),r.createElement("button",{"aria-label":"Cancel Reply",className:"str-chat__square-button str-chat__quoted-message-remove",onClick:function(){return e(void 0)}},r.createElement(o.Tw,null)))},d=function(e){var t,n=e.quotedMessage,o=(0,s.yM)("QuotedMessagePreview"),a=o.Attachment,d=o.Avatar,f=void 0===d?i.q:d,h=(0,l.Ht)("QuotedMessagePreview").userLanguage,p=(0,u.mx)("QuotedMessagePreview").themeVersion,m=(null===(t=n.i18n)||void 0===t?void 0:t["".concat(h,"_text")])||n.text,g=(0,r.useMemo)(function(){var e,t=(null!==(e=n.attachments)&&void 0!==e?e:[])[0];return t?[t]:[]},[n.attachments]);return m||g?r.createElement("div",{className:"quoted-message-preview","data-testid":"quoted-message-preview"},"1"===p&&r.createElement(c,null),r.createElement("div",{className:"quoted-message-preview-content str-chat__quoted-message-preview"},n.user&&r.createElement(f,{image:n.user.image,name:n.user.name||n.user.id,size:20,user:n.user}),r.createElement("div",{className:"quoted-message-preview-content-inner str-chat__quoted-message-bubble"},!!g.length&&r.createElement(a,{attachments:g}),r.createElement("div",{className:"str-chat__quoted-message-text","data-testid":"quoted-message-text"},"2"===p&&r.createElement("p",null,m),"1"===p&&r.createElement(r.Fragment,null,m))))):null}},42830:function(e,t,n){"use strict";n.d(t,{_:function(){return x}});var r=n(2265),i=function(e){var t=e.backgroundColor,n=e.color,i=e.size,o=void 0===i?20:i,a=e.width;return r.createElement("div",{className:"rfu-loading-indicator__spinner",style:{borderColor:t||"",borderTopColor:n||"",borderWidth:(void 0===a?2:a)||"",height:o||"",margin:"0 auto",width:o||""}})},o=function(e){var t=e.children,n=e.onClick;return r.createElement("button",{"aria-label":"Cancel upload",className:"rfu-icon-button","data-testid":"cancel-upload-button",onClick:n,type:"button"},t)},a=function(){return r.createElement("svg",{height:"28",viewBox:"0 0 28 28",width:"28",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},r.createElement("defs",null,r.createElement("path",{d:"M465 5c5.53 0 10 4.47 10 10s-4.47 10-10 10-10-4.47-10-10 4.47-10 10-10zm3.59 5L465 13.59 461.41 10 460 11.41l3.59 3.59-3.59 3.59 1.41 1.41 3.59-3.59 3.59 3.59 1.41-1.41-3.59-3.59 3.59-3.59-1.41-1.41z",id:"b"}),r.createElement("filter",{filterUnits:"objectBoundingBox",height:"160%",id:"a",width:"160%",x:"-30%",y:"-30%"},r.createElement("feOffset",{in:"SourceAlpha",result:"shadowOffsetOuter1"}),r.createElement("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"2"}),r.createElement("feColorMatrix",{in:"shadowBlurOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0"}))),r.createElement("g",{fill:"none",fillRule:"nonzero",transform:"translate(-451 -1)"},r.createElement("use",{fill:"#000",filter:"url(#a)",xlinkHref:"#b"}),r.createElement("use",{fill:"#FFF",fillRule:"evenodd",xlinkHref:"#b"})))},s=n(11735),l=function(e){return r.createElement("svg",(0,s.pi)({role:"img",viewBox:"0 0 400 400",xmlns:"http://www.w3.org/2000/svg"},e),r.createElement("g",null,r.createElement("path",{d:"M0.000 200.000 L 0.000 400.000 200.000 400.000 L 400.000 400.000 400.000 200.000 L 400.000 0.000 200.000 0.000 L 0.000 0.000 0.000 200.000 M243.085 68.180 C 251.168 72.240,252.758 82.164,246.332 88.456 C 242.609 92.102,249.072 91.774,176.600 92.000 L 112.600 92.200 111.000 93.165 C 107.620 95.203,105.382 98.131,104.780 101.304 C 104.548 102.526,104.400 132.258,104.400 177.461 C 104.400 261.065,104.646 254.561,101.340 258.340 C 95.134 265.435,84.540 263.898,80.562 255.326 L 79.600 253.251 79.600 170.356 L 79.600 87.460 80.613 84.526 C 83.246 76.897,91.469 68.511,96.439 68.386 C 96.747 68.378,97.450 68.114,98.000 67.800 C 98.856 67.311,109.214 67.226,170.067 67.214 L 241.134 67.200 243.085 68.180 M230.400 116.002 C 236.845 117.273,237.603 117.566,242.024 120.500 C 243.269 121.327,256.977 134.788,274.002 151.902 C 299.664 177.700,305.143 183.306,307.142 185.815 C 307.838 186.688,309.600 190.497,309.602 191.133 C 309.604 191.500,309.919 192.340,310.302 193.000 C 310.956 194.125,311.007 197.998,311.108 254.600 L 311.215 315.000 310.241 318.000 C 307.327 326.967,302.400 332.072,293.800 335.031 L 291.000 335.994 219.630 335.997 L 148.260 336.000 145.430 335.018 C 140.319 333.244,139.684 332.841,134.862 328.318 C 132.616 326.212,129.907 321.565,129.427 318.997 C 129.263 318.118,128.920 317.147,128.664 316.839 C 128.315 316.416,128.200 294.170,128.200 227.039 L 128.200 137.800 129.067 134.600 C 129.543 132.840,130.393 130.590,130.954 129.600 C 131.515 128.610,132.247 127.320,132.580 126.733 C 134.155 123.961,138.478 120.313,143.000 117.940 C 144.003 117.414,146.644 116.725,151.000 115.853 C 152.661 115.520,228.681 115.664,230.400 116.002 M226.250 137.650 C 225.849 139.656,225.987 187.508,226.403 190.713 C 227.174 196.647,230.700 200.107,237.136 201.245 C 239.519 201.666,290.972 201.562,291.398 201.135 C 291.727 200.807,227.629 136.400,226.974 136.400 C 226.713 136.400,226.388 136.963,226.250 137.650",fill:"#fcfcfc",fillRule:"evenodd",stroke:"none"}),r.createElement("path",{d:"M98.000 67.800 C 97.450 68.114,96.747 68.378,96.439 68.386 C 91.469 68.511,83.246 76.897,80.613 84.526 L 79.600 87.460 79.600 170.356 L 79.600 253.251 80.562 255.326 C 84.540 263.898,95.134 265.435,101.340 258.340 C 104.646 254.561,104.400 261.065,104.400 177.461 C 104.400 132.258,104.548 102.526,104.780 101.304 C 105.382 98.131,107.620 95.203,111.000 93.165 L 112.600 92.200 176.600 92.000 C 249.072 91.774,242.609 92.102,246.332 88.456 C 252.758 82.164,251.168 72.240,243.085 68.180 L 241.134 67.200 170.067 67.214 C 109.214 67.226,98.856 67.311,98.000 67.800 M151.000 115.853 C 146.644 116.725,144.003 117.414,143.000 117.940 C 138.478 120.313,134.155 123.961,132.580 126.733 C 132.247 127.320,131.515 128.610,130.954 129.600 C 130.393 130.590,129.543 132.840,129.067 134.600 L 128.200 137.800 128.200 227.039 C 128.200 294.170,128.315 316.416,128.664 316.839 C 128.920 317.147,129.263 318.118,129.427 318.997 C 129.907 321.565,132.616 326.212,134.862 328.318 C 139.684 332.841,140.319 333.244,145.430 335.018 L 148.260 336.000 219.630 335.997 L 291.000 335.994 293.800 335.031 C 302.400 332.072,307.327 326.967,310.241 318.000 L 311.215 315.000 311.108 254.600 C 311.007 197.998,310.956 194.125,310.302 193.000 C 309.919 192.340,309.604 191.500,309.602 191.133 C 309.600 190.497,307.838 186.688,307.142 185.815 C 305.143 183.306,299.664 177.700,274.002 151.902 C 238.906 116.622,240.594 118.012,230.400 116.002 C 228.681 115.664,152.661 115.520,151.000 115.853 M259.556 168.635 C 277.215 186.364,291.544 200.989,291.398 201.135 C 290.972 201.562,239.519 201.666,237.136 201.245 C 230.700 200.107,227.174 196.647,226.403 190.713 C 225.460 183.450,225.955 136.400,226.974 136.400 C 227.235 136.400,241.897 150.906,259.556 168.635",fill:"#e4e4e4",fillRule:"evenodd",stroke:"none"})))},u=function(e){var t=e.alt,n=e.handleClose,i=e.image,s=e.size,u=void 0===s?100:s,c=(0,r.useCallback)(function(e){return null==n?void 0:n(e)},[n]);return r.createElement("div",{className:"rfu-thumbnail__wrapper",style:{height:u,width:u}},r.createElement("div",{className:"rfu-thumbnail__overlay"},n?r.createElement(o,{onClick:c},r.createElement(a,null)):null),i?r.createElement("img",{alt:null!=t?t:"",className:"rfu-thumbnail__image",src:i}):r.createElement(l,{className:"rfu-thumbnail__image",preserveAspectRatio:"xMinYMin slice"}))},c=function(){return r.createElement("svg",{height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M2 0h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm3 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM2 16v2h16v-6l-3-3-6 6-3-3-4 4z",fillRule:"nonzero"}))},d=n(5289),f=function(e){var t=e.multiple,n=e.disabled,i=e.handleFiles,o=e.children,a=void 0===o?r.createElement(c,null):o,s=e.resetOnChange;return r.createElement("div",{className:"rfu-image-upload-button"},r.createElement("label",null,r.createElement(d.p,{accept:"image/*","aria-label":"Image input",className:"rfu-image-input",disabled:void 0!==n&&n,multiple:void 0!==t&&t,onFileChange:i,resetOnChange:void 0!==s&&s}),a))},h=function(e){var t=e.handleFiles,n=e.multiple;return r.createElement(f,{handleFiles:t,multiple:void 0!==n&&n},r.createElement("div",{className:"rfu-thumbnail-placeholder"},r.createElement("svg",{height:"15",viewBox:"0 0 14 15",width:"14",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M14 8.998H8v6H6v-6H0v-2h6v-6h2v6h6z",fill:"#A0B2B8",fillRule:"nonzero"}))))},p=function(){return r.createElement("svg",{height:"20",viewBox:"0 0 22 20",width:"22",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M20 5.535V2a1 1 0 0 1 2 0v6a1 1 0 0 1-1 1h-6a1 1 0 0 1 0-2h3.638l-2.975-2.653a8 8 0 1 0 1.884 8.32 1 1 0 1 1 1.886.666A10 10 0 1 1 5.175 1.245c3.901-2.15 8.754-1.462 11.88 1.667L20 5.535z",fill:"#FFF",fillRule:"nonzero"}))},m=n(44839),g=function(e){var t=e.disabled,n=e.handleFiles,o=e.handleRemove,a=e.handleRetry,s=e.imageUploads,l=e.multiple,c=(0,r.useCallback)(function(e,t){if(!e)return console.warn('image.id of closed image was "null", this shouldn\'t happen');null==o||o(e,t)},[o]);return r.createElement("div",{className:"rfu-image-previewer"},null==s?void 0:s.map(function(e){var t=e.url||e.previewUri;return r.createElement("div",{className:(0,m.Z)("rfu-image-previewer__image","finished"===e.state&&"rfu-image-previewer__image--loaded"),key:e.id},"failed"===e.state&&r.createElement("button",{"aria-label":"Retry upload",className:"rfu-image-previewer__retry",onClick:function(t){return null==a?void 0:a(e.id,t)},type:"button"},r.createElement(p,null)),t&&r.createElement(u,{handleClose:function(t){return c(e.id,t)},image:t}),"uploading"===e.state&&r.createElement(i,{backgroundColor:"#ffffff19",color:"#ffffffb2"}))}),n&&!(void 0!==t&&t)&&r.createElement(h,{handleFiles:n,multiple:void 0===l||l}))},v=n(27988),y=function(e){var t=e.fileIconProps,n=void 0===t?{}:t,o=e.uploads,a=e.handleRemove,l=e.handleRetry;return r.createElement("div",{className:"rfu-file-previewer"},r.createElement("ol",null,null==o?void 0:o.map(function(e){return r.createElement("li",{className:"rfu-file-previewer__file ".concat("uploading"===e.state?"rfu-file-previewer__file--uploading":""," ").concat("failed"===e.state?"rfu-file-previewer__file--failed":""),key:e.id},r.createElement(v.a,(0,s.pi)({mimeType:e.file.type},n)),r.createElement("a",{download:!0,href:e.url},e.file.name,"failed"===e.state&&r.createElement(r.Fragment,null,r.createElement("div",{className:"rfu-file-previewer__failed",onClick:function(){return null==l?void 0:l(e.id)}},"failed"),r.createElement("div",{className:"rfu-file-previewer__retry",onClick:function(){return null==l?void 0:l(e.id)}},"retry"))),r.createElement("span",{className:"rfu-file-previewer__close-button",onClick:a&&function(){return a(e.id)}},"✘"),"uploading"===e.state&&r.createElement("div",{className:"rfu-file-previewer__loading-indicator"},r.createElement(i,null)))})))},b=n(61612),w=n(74745),_=n(40311),x=function(){var e=(0,_.mx)("UploadsPreview").themeVersion,t=(0,b.JN)("UploadsPreview"),n=t.maxNumberOfFiles,i=t.multipleUploads,o=(0,w.Nc)("UploadsPreview"),a=o.fileOrder,s=o.fileUploads,l=o.imageOrder,u=o.imageUploads,c=o.numberOfUploads,d=o.removeFile,f=o.removeImage,h=o.uploadFile,p=o.uploadImage,m=o.uploadNewFiles,v=l.map(function(e){return u[e]}).filter(function(e){return!e.og_scrape_url}),x=a.map(function(e){return s[e]});return r.createElement(r.Fragment,null,l.length>0&&r.createElement(g,{disabled:!i||(void 0===c?0:c)>=(void 0===n?0:n),handleFiles:m,handleRemove:f,handleRetry:p,imageUploads:v,multiple:i}),a.length>0&&r.createElement(y,{fileIconProps:{className:"str-chat__file-icon",version:e},handleFiles:m,handleRemove:d,handleRetry:h,uploads:x}))}},67378:function(e,t,n){"use strict";n.d(t,{_:function(){return s}});var r=n(11735),i=n(2265),o=n(40311),a=n(61612),s=function(){var e,t=(0,o.mx)("useCooldownTimer"),n=t.client,s=t.latestMessageDatesByChannels,l=(0,a.JN)("useCooldownTimer"),u=l.channel,c=l.messages,d=void 0===c?[]:c,f=(0,i.useState)(),h=f[0],p=f[1],m=u.data||{},g=m.cooldown,v=void 0===g?0:g,y=m.own_capabilities,b=null==y?void 0:y.includes("skip-slow-mode"),w=(0,i.useMemo)(function(){var e,t;return null!==(e=s[u.cid])&&void 0!==e?e:null===(t=(0,r.ev)([],d,!0).sort(function(e,t){var n,r;return(null===(n=t.created_at)||void 0===n?void 0:n.getTime())-(null===(r=e.created_at)||void 0===r?void 0:r.getTime())}).find(function(e){var t,r;return(null===(t=e.user)||void 0===t?void 0:t.id)===(null===(r=n.user)||void 0===r?void 0:r.id)}))||void 0===t?void 0:t.created_at},[d,null===(e=n.user)||void 0===e?void 0:e.id,s,u.cid]);return(0,i.useEffect)(function(){var e=w?Math.max(0,(new Date().getTime()-w.getTime())/1e3):void 0;p(!b&&void 0!==e&&v>e?Math.round(v-e):0)},[v,w,b]),{cooldownInterval:v,cooldownRemaining:h,setCooldownRemaining:p}}},92560:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var r=n(2265),i=function(e){var t=e.additionalTextareaProps,n=e.attachments,i=e.autocompleteTriggers,o=e.cancelURLEnrichment,a=e.clearEditingState,s=e.closeCommandsList,l=e.closeEmojiPicker,u=e.closeMentionsList,c=e.cooldownInterval,d=e.cooldownRemaining,f=e.disabled,h=e.disableMentions,p=e.dismissLinkPreview,m=e.doFileUploadRequest,g=e.doImageUploadRequest,v=e.emojiIndex,y=e.emojiPickerIsOpen,b=e.emojiPickerRef,w=e.errorHandler,_=e.fileOrder,x=e.fileUploads,D=e.findAndEnqueueURLsToEnrich,E=e.focus,C=e.grow,k=e.handleChange,S=e.handleEmojiKeyDown,T=e.handleSubmit,M=e.hideSendButton,O=e.imageOrder,P=e.imageUploads,R=e.insertText,j=e.isUploadEnabled,L=e.linkPreviews,F=e.maxFilesLeft,A=e.maxRows,N=e.mentionAllAppUsers,I=e.mentioned_users,B=e.mentionQueryParams,U=e.message,z=e.noFiles,H=e.numberOfUploads,V=e.onPaste,q=e.onSelectEmoji,W=e.onSelectUser,$=e.openCommandsList,Y=e.openEmojiPicker,Z=e.openMentionsList,G=e.overrideSubmitHandler,J=e.parent,K=e.publishTypingEvent,X=e.removeFile,Q=e.removeImage,ee=e.setCooldownRemaining,et=e.setText,en=e.shouldSubmit,er=e.showCommandsList,ei=e.showMentionsList,eo=e.text,ea=e.textareaRef,es=e.uploadFile,el=e.uploadImage,eu=e.uploadNewFiles,ec=e.useMentionsTransliteration,ed=null==U?void 0:U.editing,ef=Object.entries(x).map(function(e){return e[0],e[1].state}).join(),eh=Object.entries(P).map(function(e){return e[0],e[1].state}).join(),ep=Array.from(L.values()).join(),em=I.length,eg=null==J?void 0:J.id;return(0,r.useMemo)(function(){return{additionalTextareaProps:t,attachments:n,autocompleteTriggers:i,cancelURLEnrichment:o,clearEditingState:a,closeCommandsList:s,closeEmojiPicker:l,closeMentionsList:u,cooldownInterval:c,cooldownRemaining:d,disabled:f,disableMentions:h,dismissLinkPreview:p,doFileUploadRequest:m,doImageUploadRequest:g,emojiIndex:v,emojiPickerIsOpen:y,emojiPickerRef:b,errorHandler:w,fileOrder:_,fileUploads:x,findAndEnqueueURLsToEnrich:D,focus:E,grow:C,handleChange:k,handleEmojiKeyDown:S,handleSubmit:T,hideSendButton:M,imageOrder:O,imageUploads:P,insertText:R,isUploadEnabled:j,linkPreviews:L,maxFilesLeft:F,maxRows:A,mentionAllAppUsers:N,mentioned_users:I,mentionQueryParams:B,message:U,noFiles:z,numberOfUploads:H,onPaste:V,onSelectEmoji:q,onSelectUser:W,openCommandsList:$,openEmojiPicker:Y,openMentionsList:Z,overrideSubmitHandler:G,parent:J,publishTypingEvent:K,removeFile:X,removeImage:Q,setCooldownRemaining:ee,setText:et,shouldSubmit:en,showCommandsList:er,showMentionsList:ei,text:eo,textareaRef:ea,uploadFile:es,uploadImage:el,uploadNewFiles:eu,useMentionsTransliteration:ec}},[o,c,d,p,ed,y,ef,D,M,eh,j,ep,em,eg,K,er,ei,eo,T])}},43751:function(e,t,n){"use strict";n.d(t,{k:function(){return M}});var r=n(11735),i=n(2265),o=n(91116),a=n(61612),s=n(86390),l=function(){var e=(0,s.uL)("useEmojiIndex"),t=e.emojiConfig,n=e.EmojiIndex,r=(t||{}).emojiData;return(0,i.useMemo)(function(){if(n)return new n(r)},[r,n])},u=n(73268),c=n(92765),d=n(40311),f=n(33600),h=function(e,t,n){var o=e.doImageUploadRequest,s=e.errorHandler,l=t.imageUploads,h=(0,a.JN)("useImageUploads").channel,p=(0,d.mx)("useImageUploads").getAppSettings,m=(0,c.uz)("useImageUploads").addNotification,g=(0,f.Ht)("useImageUploads").t,v=(0,i.useCallback)(function(e){n({id:e,type:"removeImageUpload"})},[]),y=(0,i.useCallback)(function(e){return(0,r.mG)(void 0,void 0,void 0,function(){var t,i,a,c,d,f;return(0,r.Jh)(this,function(y){switch(y.label){case 0:if(!(t=l[e]))return[2];return i=t.file,"uploading"!==t.state&&n({id:e,state:"uploading",type:"setImageUpload"}),[4,(0,u.kx)({addNotification:m,file:i,getAppSettings:p,t:g,uploadType:"image"})];case 1:if(!y.sent())return[2,v(e)];y.label=2;case 2:if(y.trys.push([2,7,,8]),!o)return[3,4];return[4,o(i,h)];case 3:return a=y.sent(),[3,6];case 4:return[4,h.sendImage(i)];case 5:a=y.sent(),y.label=6;case 6:return[3,8];case 7:return m("string"==typeof(c=y.sent()).message?c.message:g("Error uploading image"),"error"),d=!1,l[e]?n({id:e,state:"failed",type:"setImageUpload"}):d=!0,!d&&s&&s(c,"upload-image",(0,r.pi)((0,r.pi)({},i),{id:e})),[2];case 8:if(!a)return v(e),[2];return t.previewUri&&(null===(f=URL.revokeObjectURL)||void 0===f||f.call(URL,t.previewUri)),n({id:e,previewUri:void 0,state:"finished",type:"setImageUpload",url:a.file}),[2]}})})},[l,h,o,s,v]);return(0,i.useEffect)(function(){var e=Object.values(l).find(function(e){return"uploading"===e.state&&e.file});e&&y(e.id)},[l,y]),{removeImage:v,uploadImage:y}},p=function(e,t,n){var o=e.doFileUploadRequest,s=e.errorHandler,l=t.fileUploads,h=(0,a.JN)("useFileUploads").channel,p=(0,c.uz)("useFileUploads").addNotification,m=(0,d.mx)("useFileUploads").getAppSettings,g=(0,f.Ht)("useFileUploads").t,v=(0,i.useCallback)(function(e){n({id:e,state:"uploading",type:"setFileUpload"})},[]),y=(0,i.useCallback)(function(e){n({id:e,type:"removeFileUpload"})},[]);return(0,i.useEffect)(function(){(0,r.mG)(void 0,void 0,void 0,function(){var e,t,i,a,c,d;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if(!(e=Object.values(l).find(function(e){return"uploading"===e.state&&e.file})))return[2];return t=e.file,i=e.id,[4,(0,u.kx)({addNotification:p,file:t,getAppSettings:m,t:g,uploadType:"file"})];case 1:if(!r.sent())return[2,y(i)];r.label=2;case 2:if(r.trys.push([2,7,,8]),!o)return[3,4];return[4,o(t,h)];case 3:return a=r.sent(),[3,6];case 4:return[4,h.sendFile(t)];case 5:a=r.sent(),r.label=6;case 6:return[3,8];case 7:return p("string"==typeof(c=r.sent()).message?c.message:g("Error uploading file"),"error"),d=!1,l[i]?n({id:i,state:"failed",type:"setFileUpload"}):d=!0,!d&&s&&s(c,"upload-file",t),[2];case 8:if(!a)return y(i),[2];return n({id:i,state:"finished",thumb_url:a.thumb_url,type:"setFileUpload",url:a.file}),[2]}})})},[l,h,o,s,y]),{removeFile:y,uploadFile:v}},m=function(e,t,n,r){var s=e.noFiles,l=t.fileUploads,u=t.imageUploads,c=(0,a.JN)("useAttachments"),d=c.maxNumberOfFiles,f=c.multipleUploads,m=p(e,t,n),g=m.removeFile,v=m.uploadFile,y=h(e,t,n),b=y.removeImage,w=y.uploadImage,_=Object.values(u).filter(function(e){var t=e.og_scrape_url;return"failed"!==e.state&&!t}).length+Object.values(l).filter(function(e){return"failed"!==e.state}).length,x=(f?d||10:1)-_,D=(0,i.useCallback)(function(e){var t;Array.from(e).slice(0,x).forEach(function(e){var t,r=(0,o.x0)();e.type.startsWith("image/")&&!e.type.endsWith(".photoshop")?n({file:e,id:r,previewUri:null===(t=URL.createObjectURL)||void 0===t?void 0:t.call(URL,e),state:"uploading",type:"setImageUpload"}):e instanceof File&&!s&&n({file:e,id:r,state:"uploading",type:"setFileUpload"})}),null===(t=null==r?void 0:r.current)||void 0===t||t.focus()},[x,s]);return{maxFilesLeft:x,numberOfUploads:_,removeFile:g,removeImage:b,uploadFile:v,uploadImage:w,uploadNewFiles:D}},g=n(55644),v=function(e,t,n,r){var o=(0,a.JN)("useMessageInputText").channel,s=e.additionalTextareaProps,l=e.focus,u=e.parent,c=e.publishTypingEvent,d=void 0===c||c,f=t.text,h=(0,i.useRef)();(0,i.useEffect)(function(){l&&h.current&&h.current.focus()},[l]);var p=(0,i.useRef)(),m=(0,i.useCallback)(function(e){var t=(s||{}).maxLength;if(!h.current){n({getNewText:function(n){var r=n+e;return t&&r.length>t?r.slice(0,t):r},type:"setText"});return}var r=h.current,i=r.selectionEnd,o=r.selectionStart;p.current=o+e.length,n({getNewText:function(n){var r=n.slice(0,o)+e+n.slice(i);return t&&r.length>t?r.slice(0,t):r},type:"setText"})},[s,p,h]);return(0,i.useEffect)(function(){var e=h.current;e&&void 0!==p.current&&(e.selectionStart=p.current,e.selectionEnd=p.current,p.current=void 0)},[f,p]),{handleChange:(0,i.useCallback)(function(e){if(e.preventDefault(),e&&e.target){var t=e.target.value;n({getNewText:function(){return t},type:"setText"}),null==r||r(t),d&&t&&o&&(0,g.t1)(o.keystroke(null==u?void 0:u.id),"start typing event")}},[o,r,u,d]),insertText:m,textareaRef:h}},y=function(e,t,n,r,o){var a=(0,i.useRef)(null),s=(0,i.useCallback)(function(e){e.preventDefault(),a.current&&!a.current.contains(e.target)&&t({type:"setEmojiPickerIsOpen",value:!1})},[a]),l=(0,i.useCallback)(function(e){e.preventDefault(),t({type:"setEmojiPickerIsOpen",value:!0}),e.stopPropagation()},[]),u=function(e){"Escape"===e.key&&t({type:"setEmojiPickerIsOpen",value:!1})};return(0,i.useEffect)(function(){return e.emojiPickerIsOpen&&(document.addEventListener("click",s,!1),document.addEventListener("keydown",u)),function(){document.removeEventListener("click",s,!1),document.removeEventListener("keydown",u)}},[s,e.emojiPickerIsOpen]),{closeEmojiPicker:s,emojiPickerRef:a,handleEmojiKeyDown:function(e){(" "===e.key||"Enter"===e.key||"Spacebar"===e.key)&&(e.preventDefault(),l(e))},onSelectEmoji:(0,i.useCallback)(function(e){var i;n(e.native),o&&t({type:"setEmojiPickerIsOpen",value:!1}),null===(i=null==r?void 0:r.current)||void 0===i||i.focus()},[n]),openEmojiPicker:l}},b=n(6996),w=function(e,t,n,o,s){var l=e.clearEditingState,u=e.message,d=e.overrideSubmitHandler,h=e.parent,p=e.publishTypingEvent,m=t.attachments,g=t.fileOrder,v=t.fileUploads,y=t.imageOrder,w=t.imageUploads,_=t.linkPreviews,x=t.mentioned_users,D=t.text,E=s.cancelURLEnrichment,C=s.findAndEnqueueURLsToEnrich,k=(0,a.JN)("useSubmitHandler").channel,S=(0,c.uz)("useSubmitHandler"),T=S.addNotification,M=S.editMessage,O=S.sendMessage,P=(0,f.Ht)("useSubmitHandler").t,R=(0,i.useRef)({hasChanged:!1,initialText:D});(0,i.useEffect)(function(){if(!R.current.initialText.length){R.current.initialText=D;return}R.current.hasChanged=D!==R.current.initialText},[D]);var j=function(){var e=y.map(function(e){return w[e]}).filter(function(e){return"failed"!==e.state}).filter(function(e,t,n){var r=e.id,i=e.url;return n.every(function(e){return e.id===r||e.url!==i})}).filter(function(e){return!R.current.hasChanged||!e.og_scrape_url}).map(function(e){var t=e.file.name,n=e.url,i=(0,r._T)(e,["file","url"]);return{author_name:i.author_name,fallback:t,image_url:n,og_scrape_url:i.og_scrape_url,text:i.text,title:i.title,title_link:i.title_link,type:"image"}}),t=g.map(function(e){return v[e]}).filter(function(e){return"failed"!==e.state}).map(function(e){var t;return{asset_url:e.url,file_size:e.file.size,mime_type:e.file.type,thumb_url:e.thumb_url,title:e.file.name,type:(t=e.file.type||"").includes("video/")?"video":t.includes("audio/")?"audio":"file"}});return(0,r.ev)((0,r.ev)((0,r.ev)([],m,!0),e,!0),t,!0)};return{handleSubmit:function(e,t){return(0,r.mG)(void 0,void 0,void 0,function(){var i,a,s,c,f,m,g,y,S,R;return(0,r.Jh)(this,function(L){switch(L.label){case 0:if(e.preventDefault(),(""===(i=D.trim())||">"===i||"``````"===i||"``"===i||"**"===i||"____"===i||"__"===i||"****"===i)&&0===o)return[2];if(Object.values(w).some(function(e){return"uploading"===e.state})||Object.values(v).some(function(e){return"uploading"===e.state}))return[2,T(P("Wait until all attachments have uploaded"),"error")];if(a=j(),s=[],C&&(a=a.filter(function(e){return!e.og_scrape_url}),E(),c=Array.from(_.values()).some(function(e){return[b.G.QUEUED,b.G.LOADING].includes(e.state)}),f=Array.from(_.values()).some(function(e){return e.state===b.G.DISMISSED}),c||(s=Array.from(_.values()).filter(function(e){return e.state===b.G.LOADED&&!a.find(function(t){return t.og_scrape_url===e.og_scrape_url})}).map(function(e){return e.state,(0,r._T)(e,["state"])}))),g={attachments:(0,r.ev)((0,r.ev)([],a,!0),s,!0),mentioned_users:m=Array.from(new Set(x.filter(function(e){var t=e.id,n=e.name;return D.includes("@".concat(t))||D.includes("@".concat(n))}))),text:D},S=(y=!!C)&&(!c&&s.length>0||f),R=y?{skip_enrich_url:S}:void 0,!u)return[3,5];delete u.i18n,L.label=1;case 1:return L.trys.push([1,3,,4]),[4,M((0,r.pi)((0,r.pi)((0,r.pi)({},u),g),t),R)];case 2:return L.sent(),null==l||l(),n({type:"clear"}),[3,4];case 3:return L.sent(),T(P("Edit message request failed"),"error"),[3,4];case 4:return[3,13];case 5:if(L.trys.push([5,12,,13]),n({type:"clear"}),!d)return[3,7];return[4,d((0,r.pi)((0,r.pi)({},g),{parent:h}),k.cid,t,R)];case 6:return L.sent(),[3,9];case 7:return[4,O((0,r.pi)((0,r.pi)({},g),{parent:h}),t,R)];case 8:L.sent(),L.label=9;case 9:if(!p)return[3,11];return[4,k.stopTyping()];case 10:L.sent(),L.label=11;case 11:return[3,13];case 12:return L.sent(),n({getNewText:function(){return D},type:"setText"}),null==m||m.forEach(function(e){n({type:"addMentionedUser",user:e})}),T(P("Send message request failed"),"error"),[3,13];case 13:return[2]}})})}}},_=n(94361),x=n(72799),D=n(2151),E=n.n(D),C=function(e){var t,n=e.debounceURLEnrichmentMs,o=e.dispatch,s=e.enrichURLForPreview,l=e.findURLFn,u=e.linkPreviews,c=e.onLinkPreviewDismissed,f=(0,d.mx)().client,h=(0,a.JN)(),p=h.channelConfig,m=h.debounceURLEnrichmentMs,g=h.findURLFn,v=h.onLinkPreviewDismissed,y=(0,i.useRef)(!1),w=null!=l?l:g,_=null!=c?c:v,D=null!==(t=null!=n?n:m)&&void 0!==t?t:1500,C=(0,i.useCallback)(function(e){null==_||_(e);var t=new Map;e.state=b.G.DISMISSED,t.set(e.og_scrape_url,e),o({linkPreviews:t,mode:b.l.UPSERT,type:"setLinkPreviews"})},[_]),k=(0,i.useCallback)(E()(function(e,t){void 0===t&&(t=b.l.SET);var n=w?w(e):(0,x.sE)(e,"url").reduce(function(e,t){return t.isLink&&e.push(t.href),e},[]);y.current=0===n.length,o({linkPreviews:n.reduce(function(e,t){return e.set(t,{og_scrape_url:t,state:b.G.QUEUED}),e},new Map),mode:t,type:"setLinkPreviews"})},D,{leading:!1,trailing:!0}),[D,y,w]),S=(0,i.useCallback)(function(){k.cancel(),k(""),k.flush()},[k]);return(0,i.useEffect)(function(){var e=Array.from(u.values()).reduce(function(e,t){if("queued"===t.state){var n=(0,r.pi)((0,r.pi)({},t),{state:b.G.LOADING});e.set(t.og_scrape_url,n)}return e},new Map);e.size&&(o({linkPreviews:e,mode:b.l.UPSERT,type:"setLinkPreviews"}),e.forEach(function(e){f.enrichURL(e.og_scrape_url).then(function(t){t.duration;var n=(0,r._T)(t,["duration"]);if(!y.current){var i=new Map;i.set(e.og_scrape_url,(0,r.pi)((0,r.pi)({},n),{state:b.G.LOADED})),o({linkPreviews:i,mode:b.l.UPSERT,type:"setLinkPreviews"})}}).catch(function(){var t=new Map;t.set(e.og_scrape_url,(0,r.pi)((0,r.pi)({},e),{state:b.G.FAILED})),o({linkPreviews:t,mode:b.l.UPSERT,type:"setLinkPreviews"})})}))},[y,u]),{cancelURLEnrichment:S,dismissLinkPreview:C,findAndEnqueueURLsToEnrich:(null==p?void 0:p.url_enrichment)&&void 0!==s&&s?k:void 0}},k=function(){return{attachments:[],emojiPickerIsOpen:!1,fileOrder:[],fileUploads:{},imageOrder:[],imageUploads:{},linkPreviews:new Map,mentioned_users:[],setText:function(){return null},text:""}},S=function(e){if(!e)return k();var t,n,i,a,s,l,u,c=null!==(n=null===(t=e.attachments)||void 0===t?void 0:t.filter(function(e){return"image"===e.type}).reduce(function(e,t){var n=t.author_name,r=t.fallback,i=t.image_url,a=t.og_scrape_url,s=t.text,l=t.title,u=t.title_link,c=(0,o.x0)();return e[c]={author_name:n,file:{name:void 0===r?"":r},id:c,og_scrape_url:a,state:"finished",text:s,title:l,title_link:u,url:i},e},{}))&&void 0!==n?n:{},d=null!==(a=null===(i=e.attachments)||void 0===i?void 0:i.filter(function(e){return"file"===e.type}).reduce(function(e,t){var n=t.asset_url,r=t.file_size,i=t.mime_type,a=t.thumb_url,s=t.title,l=(0,o.x0)();return e[l]={file:{name:void 0===s?"":s,size:r,type:i},id:l,state:"finished",thumb_url:a,url:n},e},{}))&&void 0!==a?a:{},f=null!==(l=null===(s=e.attachments)||void 0===s?void 0:s.reduce(function(e,t){return t.og_scrape_url&&e.set(t.og_scrape_url,(0,r.pi)((0,r.pi)({},t),{state:b.G.LOADED})),e},new Map))&&void 0!==l?l:new Map,h=Object.keys(c),p=Object.keys(d);return{attachments:(null===(u=e.attachments)||void 0===u?void 0:u.filter(function(e){var t=e.type;return"file"!==t&&"image"!==t}))||[],emojiPickerIsOpen:!1,fileOrder:p,fileUploads:d,imageOrder:h,imageUploads:c,linkPreviews:f,mentioned_users:e.mentioned_users||[],setText:function(){return null},text:e.text||""}},T=function(e,t){var n,i;switch(t.type){case"setEmojiPickerIsOpen":return(0,r.pi)((0,r.pi)({},e),{emojiPickerIsOpen:t.value});case"setText":return(0,r.pi)((0,r.pi)({},e),{text:t.getNewText(e.text)});case"clear":return k();case"setImageUpload":var o=e.imageUploads[t.id];if(!o&&!t.file)return e;var a=o?e.imageOrder:e.imageOrder.concat(t.id),s=(0,r.pi)({},t);return delete s.type,(0,r.pi)((0,r.pi)({},e),{imageOrder:a,imageUploads:(0,r.pi)((0,r.pi)({},e.imageUploads),((n={})[t.id]=(0,r.pi)((0,r.pi)({},e.imageUploads[t.id]),s),n))});case"setFileUpload":var l=e.fileUploads[t.id];if(!l&&!t.file)return e;var u=l?e.fileOrder:e.fileOrder.concat(t.id),s=(0,r.pi)({},t);return delete s.type,(0,r.pi)((0,r.pi)({},e),{fileOrder:u,fileUploads:(0,r.pi)((0,r.pi)({},e.fileUploads),((i={})[t.id]=(0,r.pi)((0,r.pi)({},e.fileUploads[t.id]),s),i))});case"setLinkPreviews":var c=new Map(e.linkPreviews);return t.mode===b.l.REMOVE?Array.from(t.linkPreviews.keys()).forEach(function(e){c.delete(e)}):(Array.from(t.linkPreviews.values()).reduce(function(e,t){var n=e.get(t.og_scrape_url),r=t.state===b.G.QUEUED&&(null==n?void 0:n.state)!==b.G.FAILED;return n&&r||e.set(t.og_scrape_url,t),e},c),t.mode===b.l.SET&&Array.from(e.linkPreviews.keys()).forEach(function(e){t.linkPreviews.get(e)||c.delete(e)})),(0,r.pi)((0,r.pi)({},e),{linkPreviews:c});case"removeImageUpload":if(!e.imageUploads[t.id])return e;var d=(0,r.pi)({},e.imageUploads);return delete d[t.id],(0,r.pi)((0,r.pi)({},e),{imageOrder:e.imageOrder.filter(function(e){return e!==t.id}),imageUploads:d});case"removeFileUpload":if(!e.fileUploads[t.id])return e;var f=(0,r.pi)({},e.fileUploads);return delete f[t.id],(0,r.pi)((0,r.pi)({},e),{fileOrder:e.fileOrder.filter(function(e){return e!==t.id}),fileUploads:f});case"addMentionedUser":return(0,r.pi)((0,r.pi)({},e),{mentioned_users:e.mentioned_users.concat(t.user)});default:return e}},M=function(e){var t,n,o=e.additionalTextareaProps,s=e.closeEmojiPickerOnClick,u=e.getDefaultValue,c=e.message,d=e.urlEnrichmentConfig,f=(0,a.JN)("useMessageInputState"),h=f.channelCapabilities,p=f.channelConfig,g=f.enrichURLForPreview,x=(null==u?void 0:u())||(null==o?void 0:o.defaultValue),D=c||(Array.isArray(x)?{text:x.join("")}:{text:null==x?void 0:x.toString()}),E=(0,i.useReducer)(T,D,S),k=E[0],M=E[1],O=C((0,r.pi)((0,r.pi)({dispatch:M,linkPreviews:k.linkPreviews},d),{enrichURLForPreview:null!==(n=null==d?void 0:d.enrichURLForPreview)&&void 0!==n?n:g})),P=v(e,k,M,O.findAndEnqueueURLsToEnrich),R=P.handleChange,j=P.insertText,L=P.textareaRef,F=(0,i.useState)(!1),A=F[0],N=F[1],I=(0,i.useState)(!1),B=I[0],U=I[1],z=y(k,M,j,L,s),H=z.closeEmojiPicker,V=z.emojiPickerRef,q=z.handleEmojiKeyDown,W=z.onSelectEmoji,$=z.openEmojiPicker,Y=m(e,k,M,L),Z=Y.maxFilesLeft,G=Y.numberOfUploads,J=Y.removeFile,K=Y.removeImage,X=Y.uploadFile,Q=Y.uploadImage,ee=Y.uploadNewFiles,et=w(e,k,M,G,O).handleSubmit,en=(null==p?void 0:p.uploads)!==!1&&!1!==(void 0===h?{}:h)["upload-file"],er=(t=O.findAndEnqueueURLsToEnrich,{onPaste:(0,i.useCallback)(function(e){en&&(0,r.mG)(void 0,void 0,void 0,function(){var n,i,o,a,s,l;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if(n=e.clipboardData.items,!(0,_.w$)(Array.from(n)))return[2];for(e.preventDefault(),i=void 0,o=function(e){var t=n[e];if("string"===t.kind&&"text/plain"===t.type)return i=new Promise(function(e){t.getAsString(function(t){e(t)})}),"break"},a=0;a3,o=(i?e.slice(0,3):r).join(", ").trim();return i?t("{{ users }} and more are typing...",{users:o}):t("{{ users }} and {{ user }} are typing...",{user:n,users:o})},x=r.memo(function(e){var t=e.Avatar,n=e.avatarSize,i=void 0===n?32:n,o=e.threadList,u=(0,a.JN)("TypingIndicator"),c=u.channelConfig,d=u.thread,f=(0,s.mx)("TypingIndicator"),h=f.client,p=f.themeVersion,m=(0,l.yM)("TypingIndicator").Avatar,g=(0,b.f5)("TypingIndicator").typing,w=void 0===g?{}:g,x=t||m||y.q,D=o?[]:Object.values(w).filter(function(e){var t,n=e.parent_id,r=e.user;return(null==r?void 0:r.id)!==(null===(t=h.user)||void 0===t?void 0:t.id)&&!n}),E=o?Object.values(w).filter(function(e){var t,n=e.parent_id,r=e.user;return(null==r?void 0:r.id)!==(null===(t=h.user)||void 0===t?void 0:t.id)&&n===(null==d?void 0:d.id)}):[],C=_((o?E:D).map(function(e){var t=e.user;return(null==t?void 0:t.name)||(null==t?void 0:t.id)}).filter(Boolean)),k=o&&E.length||!o&&D.length;return(null==c?void 0:c.typing_events)===!1?null:"2"===p?k?r.createElement("div",{className:(0,v.Z)("str-chat__typing-indicator",{"str-chat__typing-indicator--typing":k}),"data-testid":"typing-indicator"},r.createElement("div",{className:"str-chat__typing-indicator__dots"},r.createElement("span",{className:"str-chat__typing-indicator__dot"}),r.createElement("span",{className:"str-chat__typing-indicator__dot"}),r.createElement("span",{className:"str-chat__typing-indicator__dot"})),r.createElement("div",{className:"str-chat__typing-indicator__users","data-testid":"typing-users"},C)):null:r.createElement("div",{className:(0,v.Z)("str-chat__typing-indicator",{"str-chat__typing-indicator--typing":k})},r.createElement("div",{className:"str-chat__typing-indicator__avatars"},(o?E:D).map(function(e,t){var n=e.user;return r.createElement(x,{image:null==n?void 0:n.image,key:"".concat(null==n?void 0:n.id,"-").concat(t),name:(null==n?void 0:n.name)||(null==n?void 0:n.id),size:i,user:n})})),r.createElement("div",{className:"str-chat__typing-indicator__dots"},r.createElement("span",{className:"str-chat__typing-indicator__dot"}),r.createElement("span",{className:"str-chat__typing-indicator__dot"}),r.createElement("span",{className:"str-chat__typing-indicator__dot"})))}),D=function(e){var t,n,i,o,a,l,u,c,d,f,h,p=e.loadMoreScrollThreshold,m=e.messages,g=e.scrolledUpThreshold,v=void 0===g?200:g,y=e.hasMoreNewer,b=e.suppressAutoscroll,w=e.listElement,_=(0,r.useState)(!1),x=_[0],D=_[1],E=(0,r.useState)(),C=E[0],k=E[1],S=(0,r.useState)(!0),T=S[0],M=S[1],O=(0,r.useRef)(!1),P=(0,r.useRef)(!1),R=(0,r.useRef)({autoScroll:0,scroll:0}),j=(0,r.useCallback)(function(){(null==w?void 0:w.scrollTo)&&!y&&!b&&(R.current.autoScroll+=1,w.scrollTo({top:w.scrollHeight}),D(!1))},[w,y,b]);(0,r.useLayoutEffect)(function(){w&&(k(w.getBoundingClientRect()),j())},[w,y]);var L=(n=(t={loadMoreScrollThreshold:p,messages:void 0===m?[]:m,onScrollBy:function(e){null==w||w.scrollBy({top:e})},scrollContainerMeasures:function(){return{offsetHeight:(null==w?void 0:w.offsetHeight)||0,scrollHeight:(null==w?void 0:w.scrollHeight)||0}},scrolledUpThreshold:v,scrollToBottom:j,showNewMessages:function(){return D(!0)}}).loadMoreScrollThreshold,i=t.onScrollBy,o=t.scrollContainerMeasures,a=t.scrolledUpThreshold,l=t.scrollToBottom,u=t.showNewMessages,c=(0,s.mx)("useMessageListScrollManager").client,d=(0,r.useRef)({offsetHeight:0,scrollHeight:0}),f=(0,r.useRef)(),h=(0,r.useRef)(0),(0,r.useLayoutEffect)(function(){var e,r,s,p=d.current,m=f.current,g=t.messages,v=g[g.length-1]||{},y=null==m?void 0:m[m.length-1],b=o(),w=p.scrollHeight-p.offsetHeight-h.current{n(e.messages.map(e=>o[e.id]?{...e,text:o[e.id].text}:e))},[e.messages,o]),r.useEffect(()=>{(async()=>{let r=t.length;if(r>0){let i=r-1,s=e.channel._client.userID;if(t[i].user.id!==s&&!o[t[i].id]){let e=t[i].text,r=await F(e,"eng_to_fra");console.log(r);let o=[...t];o[i]={...o[i],text:r},n(o),a(e=>({...e,[t[i].id]:{text:r}}))}}})()},[t,o,e.channel._client.userID]);var u=e.channel,f=e.disableDateSeparator,h=e.groupStyles,v=e.hideDeletedMessages,y=e.hideNewMessageSeparator,b=e.internalInfiniteScrollProps,w=e.messageActions,_=void 0===w?Object.keys(g.Xh):w,E=(e.messages,e.notifications),k=e.noGroupByUser,S=e.pinPermissions,T=void 0===S?g.Z1:S,M=e.returnAllReadData,O=e.threadList,A=void 0!==O&&O,N=e.unsafeHTML,I=e.headerPosition,B=e.read,U=e.messageLimit,z=void 0===U?100:U,H=e.loadMore,V=e.loadMoreNewer,q=e.hasMoreNewer,W=void 0!==q&&q,$=e.suppressAutoscroll,Y=e.highlightedMessageId,Z=e.jumpToLatestMessage,G=void 0===Z?function(){return Promise.resolve()}:Z,J=r.useState(null),K=J[0],X=J[1],Q=r.useState(null),ee=Q[0],et=Q[1],en=(0,s.mx)("MessageList").customClasses,er=(0,l.yM)("MessageList"),ei=er.EmptyStateIndicator,eo=void 0===ei?d.D:ei,ea=er.LoadingIndicator,es=void 0===ea?m.T:ea,el=er.MessageListNotifications,eu=void 0===el?j.T:el,ec=er.MessageNotification,ed=void 0===ec?L.f:ec,ef=er.TypingIndicator,eh=(null==b?void 0:b.threshold)||250,ep=D({hasMoreNewer:W,listElement:K,loadMoreScrollThreshold:eh,messages:t,scrolledUpThreshold:e.scrolledUpThreshold,suppressAutoscroll:$}),em=ep.hasNewMessages,eg=ep.isMessageListScrolledToBottom,ev=ep.onScroll,ey=ep.scrollToBottom,eb=ep.wrapperRect,ew=C({channel:u,disableDateSeparator:void 0!==f&&f,groupStyles:h,headerPosition:I,hideDeletedMessages:void 0!==v&&v,hideNewMessageSeparator:void 0!==y&&y,messages:t,noGroupByUser:void 0!==k&&k}),e_=ew.messageGroupStyles,ex=P({enrichedMessages:ew.messages,internalMessageProps:{additionalMessageInputProps:e.additionalMessageInputProps,closeReactionSelectorOnClick:e.closeReactionSelectorOnClick,customMessageActions:e.customMessageActions,disableQuotedMessages:e.disableQuotedMessages,formatDate:e.formatDate,getDeleteMessageErrorNotification:e.getDeleteMessageErrorNotification,getFlagMessageErrorNotification:e.getFlagMessageErrorNotification,getFlagMessageSuccessNotification:e.getFlagMessageSuccessNotification,getMuteUserErrorNotification:e.getMuteUserErrorNotification,getMuteUserSuccessNotification:e.getMuteUserSuccessNotification,getPinMessageErrorNotification:e.getPinMessageErrorNotification,Message:e.Message,messageActions:_,messageListRect:eb,onlySenderCanEdit:e.onlySenderCanEdit,onMentionsClick:e.onMentionsClick,onMentionsHover:e.onMentionsHover,onUserClick:e.onUserClick,onUserHover:e.onUserHover,openThread:e.openThread,pinPermissions:T,renderText:e.renderText,retrySendMessage:e.retrySendMessage,unsafeHTML:void 0!==N&&N},messageGroupStyles:e_,read:B,returnAllReadData:void 0!==M&&M,threadList:A}),eD=(null==en?void 0:en.messageList)||"str-chat__list",eE=A?(null==en?void 0:en.threadList)||"str-chat__list--thread str-chat__thread-list":"",eC=r.useCallback(function(){H&&H(z)},[H,z]),ek=r.useCallback(function(){V&&V(z)},[V,z]),eS=r.useCallback(function(){return(0,i.mG)(void 0,void 0,void 0,function(){return(0,i.Jh)(this,function(e){switch(e.label){case 0:if(!W)return[3,2];return[4,G()];case 1:return e.sent(),[3,3];case 2:ey(),e.label=3;case 3:return[2]}})})},[ey,W]);r.useLayoutEffect(function(){if(Y){var e=null==ee?void 0:ee.querySelector("[data-message-id='".concat(Y,"']"));null==e||e.scrollIntoView({block:"center"})}},[Y]);var eT=0===ex.length&&!A;return r.createElement(c,{value:{listElement:K,scrollToBottom:ey}},r.createElement(R.u,null,r.createElement("div",{className:"".concat(eD," ").concat(eE),onScroll:ev,ref:X,tabIndex:0},eT?r.createElement(eo,{key:"empty-state-indicator",listType:A?"thread":"message"}):r.createElement(p,(0,i.pi)({className:"str-chat__reverse-infinite-scroll str-chat__message-list-scroll","data-testid":"reverse-infinite-scroll",hasNextPage:e.hasMoreNewer,hasPreviousPage:e.hasMore,head:e.head,isLoading:e.loadingMore,loader:r.createElement("div",{className:"str-chat__list__loading",key:"loading-indicator"},e.loadingMore&&r.createElement(es,{size:20})),loadNextPage:ek,loadPreviousPage:eC},e.internalInfiniteScrollProps,{threshold:eh}),r.createElement("ul",{className:"str-chat__ul",ref:et},ex),r.createElement(void 0===ef?x:ef,{threadList:A}),r.createElement("div",{key:"bottom"})))),r.createElement(eu,{hasNewMessages:em,isMessageListScrolledToBottom:eg,isNotAtLatestMessageSet:W,MessageNotification:ed,notifications:E,scrollToBottom:eS,threadList:A}))},N=function(e){var t=(0,o.uz)("MessageList"),n=t.jumpToLatestMessage,s=t.loadMore,l=t.loadMoreNewer,u=(0,a.JN)("MessageList"),c=(u.members,u.mutes,u.watchers,(0,i._T)(u,["members","mutes","watchers"]));return r.createElement(A,(0,i.pi)({jumpToLatestMessage:n,loadMore:s,loadMoreNewer:l},c,e))}},44790:function(e,t,n){"use strict";n.d(t,{u:function(){return o}});var r=n(2265),i=n(40311),o=function(e){var t=e.children;return"2"===(0,i.mx)("MessageListMainPanel").themeVersion?r.createElement("div",{className:"str-chat__main-panel-inner"},t):r.createElement(r.Fragment,null,t)}},67986:function(e,t,n){"use strict";n.d(t,{T:function(){return u}});var r=n(2265),i=n(44839),o=r.memo(function(e){var t=e.active,n=e.children,o=e.className,a=e.type;return t?r.createElement("div",{"aria-live":"polite",className:(0,i.Z)("str-chat__custom-notification notification-".concat(a),"str-chat__notification","str-chat-react__notification",o),"data-testid":"custom-notification"},n):null}),a=n(40311),s=n(33600),l=r.memo(function(){var e=(0,a.mx)("ConnectionStatus").client,t=(0,s.Ht)("ConnectionStatus").t,n=(0,r.useState)(!0),i=n[0],l=n[1];return(0,r.useEffect)(function(){var t=function(e){var t=e.online,n=void 0!==t&&t;i!==n&&l(n)};return e.on("connection.changed",t),function(){return e.off("connection.changed",t)}},[e,i]),r.createElement(o,{active:!i,className:"str-chat__connection-status-notification",type:"error"},t("Connection failure, reconnecting now..."))}),u=function(e){var t=e.hasNewMessages,n=e.isMessageListScrolledToBottom,i=e.isNotAtLatestMessageSet,a=e.MessageNotification,u=e.notifications,c=e.scrollToBottom,d=e.threadList,f=(0,s.Ht)("MessageListNotifications").t;return r.createElement("div",{className:"str-chat__list-notifications"},u.map(function(e){return r.createElement(o,{active:!0,key:e.id,type:e.type},e.text)}),r.createElement(l,null),r.createElement(a,{isMessageListScrolledToBottom:n,onClick:c,showNotification:t||i,threadList:d},f(i?"Latest Messages":"New Messages!")))}},15236:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(2265),i=r.memo(function(e){var t=e.children,n=e.onClick,i=e.showNotification;return void 0===i||i?r.createElement("button",{"aria-live":"polite",className:"str-chat__message-notification","data-testid":"message-notification",onClick:n},t):null})},55004:function(e,t,n){"use strict";n.d(t,{S:function(){return o}});var r=n(2265),i=n(66043),o=function(e){var t=e.messages,n=e.read,o=e.returnAllReadData,a=e.userID;return(0,r.useMemo)(function(){return(0,i.Pi)(t.filter(function(e){var t=e.user;return(null==t?void 0:t.id)===a}),n,o)},[t,n,o,a])}},66043:function(e,t,n){"use strict";n.d(t,{Ej:function(){return a},Pi:function(){return u},Th:function(){return f},c:function(){return c},db:function(){return d},hR:function(){return l}});var r=n(91116),i=n(3661),o=n(33600),a=function(e){for(var t,n,r,a=e.enableDateSeparator,l=e.hideDeletedMessages,u=e.hideNewMessageSeparator,c=e.lastRead,d=e.messages,f=e.setGiphyPreviewMessage,h=e.userId,p=!1,m=!1,g=[],v=0;v0;t-=1)if("received"===e[t].status)return e[t].id;return null},u=function(e,t,n){void 0===t&&(t={});var r={};return Object.values(t).forEach(function(t){var i;t.last_read&&(e.forEach(function(e){e.created_at&&e.created_at0,h=!n||n.customType===i.L.date||"system"===n.type||n.customType===i.L.intro||(null===(u=n.attachments)||void 0===u?void 0:u.length)!==0||(null===(c=e.user)||void 0===c?void 0:c.id)!==(null===(d=n.user)||void 0===d?void 0:d.id)||"error"===n.type||n.deleted_at||n.reaction_counts&&Object.keys(n.reaction_counts).length>0;return f||h?h?f||e.deleted_at||"error"===e.type?"single":"bottom":f?"top":"":e.deleted_at||"error"===e.type?"single":"middle"},f=function(e,t){return e===t}},95683:function(e,t,n){"use strict";n.d(t,{u:function(){return s}});var r=n(2265),i=function(){return r.createElement("svg",{"data-testid":"close-icon-round",fill:"none",height:"28",viewBox:"0 0 28 28",width:"28",xmlns:"http://www.w3.org/2000/svg"},r.createElement("rect",{fill:"#72767E",height:"28",rx:"14",width:"28"}),r.createElement("circle",{cx:"14",cy:"14",fill:"#72767E",r:"12"}),r.createElement("path",{clipRule:"evenodd",d:"M28 14C28 21.732 21.732 28 14 28C6.26801 28 0 21.732 0 14C0 6.26801 6.26801 0 14 0C21.732 0 28 6.26801 28 14ZM26 14C26 20.6274 20.6274 26 14 26C7.37258 26 2 20.6274 2 14C2 7.37258 7.37258 2 14 2C20.6274 2 26 7.37258 26 14ZM19.59 7L21 8.41L15.41 14L21 19.59L19.59 21L14 15.41L8.41 21L7 19.59L12.59 14L7 8.41L8.41 7L14 12.59L19.59 7Z",fill:"white",fillRule:"evenodd"}))},o=n(33600),a=n(40311),s=function(e){var t=e.children,n=e.onClose,s=e.open,l=(0,o.Ht)("Modal").t,u=(0,a.mx)("Modal").themeVersion,c=(0,r.useRef)(null),d=(0,r.useRef)(null);return((0,r.useEffect)(function(){if(s){var e=function(e){"Escape"===e.key&&(null==n||n(e))};return document.addEventListener("keydown",e),function(){return document.removeEventListener("keydown",e)}}},[n,s]),s)?r.createElement("div",{className:"str-chat__modal str-chat__modal--open",onClick:function(e){var t=e.target;c.current&&d.current&&(!c.current.contains(t)||d.current.contains(t))&&(null==n||n(e))}},r.createElement("button",{className:"str-chat__modal__close-button",ref:d,title:l("Close")},"2"===u&&r.createElement(i,null),"1"===u&&r.createElement(r.Fragment,null,l("Close"),r.createElement("svg",{height:"10",width:"10",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M9.916 1.027L8.973.084 5 4.058 1.027.084l-.943.943L4.058 5 .084 8.973l.943.943L5 5.942l3.973 3.974.943-.943L5.942 5z",fillRule:"evenodd"})))),r.createElement("div",{className:"str-chat__modal__inner str-chat-react__modal__inner",ref:c},t)):null}},27988:function(e,t,n){"use strict";n.d(t,{a:function(){return g}});var r=n(11735),i=n(2265),o=function(e){var t=e.className,n=e.size,o=void 0===n?40:n,a=(0,r._T)(e,["className","size"]);return i.createElement("svg",(0,r.pi)({className:"rfu-file-pdf ".concat(void 0===t?"":t).trim(),fill:"none",height:o,viewBox:"0 0 34 40",width:o,xmlns:"http://www.w3.org/2000/svg"},a),i.createElement("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H23L34 11V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V3Z",fill:"#F5F5F5"}),i.createElement("path",{d:"M0 28H34V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V28Z",fill:"#E71A01"}),i.createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#DBDBDB"}),i.createElement("path",{clipRule:"evenodd",d:"M16.39 8.90641C16.215 8.27341 15.787 7.95841 15.426 8.00441C14.99 8.06141 14.526 8.32041 14.34 8.72941C13.854 9.82141 14.768 12.8934 15.028 13.7674L15.073 13.9194C14.015 17.1134 10.394 23.4264 8.62002 23.8534C8.58302 23.4364 8.80602 22.2294 11.146 20.7244C11.266 20.5944 11.406 20.4374 11.471 20.3344C9.49302 21.3004 6.93108 22.8514 8.47102 24.0114C8.55602 24.0774 8.68502 24.1314 8.83402 24.1874C10.014 24.6244 11.666 23.1954 13.327 19.9544C15.157 19.3504 16.633 18.8964 18.722 18.5804C21.005 20.1304 22.538 20.4464 23.578 20.0474C23.866 19.9354 24.32 19.5734 24.45 19.1004C24.515 18.8774 24.608 18.5154 24.432 18.2274C23.842 17.2664 21.452 17.5954 20.032 17.7904C19.779 17.8254 19.557 17.8564 19.381 17.8744C17.552 16.7704 16.289 14.8014 15.778 13.3804C15.857 13.0784 15.936 12.7894 16.012 12.5124C16.397 11.1124 16.701 10.0064 16.392 8.90641H16.39ZM24.45 19.1004C23.605 20.1404 21.628 19.4164 20.05 18.4224C21.507 18.2644 23.01 18.1724 23.661 18.3764C24.488 18.6364 24.459 19.0444 24.451 19.1004H24.45ZM15.601 12.7404C15.296 11.6544 14.868 9.24041 15.555 8.46041C16.701 9.11641 16.266 10.5384 15.825 11.9834C15.748 12.2364 15.671 12.4894 15.601 12.7404ZM13.439 19.5834C15.156 18.9054 16.354 18.4494 18.118 18.1254C16.818 16.9554 16.028 15.6834 15.378 14.3834C14.915 16.0554 13.948 18.5894 13.438 19.5834H13.439Z",fill:"#E71A01",fillRule:"evenodd"}),i.createElement("path",{d:"M13.1719 33.0127V37.4219H12.1875V32.3018H13.1001L13.1719 33.0127ZM15.5132 34.1099V34.1816C15.5132 34.4505 15.4813 34.7 15.4175 34.9302C15.356 35.1603 15.2648 35.3608 15.144 35.5317C15.0233 35.7004 14.8729 35.8325 14.6929 35.9282C14.5151 36.0216 14.3101 36.0684 14.0776 36.0684C13.8521 36.0684 13.6561 36.0228 13.4897 35.9316C13.3234 35.8405 13.1833 35.7129 13.0693 35.5488C12.9577 35.3825 12.8677 35.1899 12.7993 34.9712C12.731 34.7524 12.6785 34.5177 12.6421 34.2671V34.0791C12.6785 33.8102 12.731 33.5641 12.7993 33.3408C12.8677 33.1152 12.9577 32.9204 13.0693 32.7563C13.1833 32.59 13.3223 32.4613 13.4863 32.3701C13.6527 32.279 13.8475 32.2334 14.0708 32.2334C14.3055 32.2334 14.5117 32.2778 14.6895 32.3667C14.8695 32.4556 15.0199 32.5832 15.1406 32.7495C15.2637 32.9159 15.356 33.1141 15.4175 33.3442C15.4813 33.5744 15.5132 33.8296 15.5132 34.1099ZM14.5254 34.1816V34.1099C14.5254 33.9526 14.5117 33.8079 14.4844 33.6758C14.4593 33.5413 14.4183 33.424 14.3613 33.3237C14.3066 33.2235 14.2337 33.146 14.1426 33.0913C14.0537 33.0343 13.9455 33.0059 13.8179 33.0059C13.6834 33.0059 13.5684 33.0275 13.4727 33.0708C13.3792 33.1141 13.3029 33.1768 13.2437 33.2588C13.1844 33.3408 13.14 33.4388 13.1104 33.5527C13.0807 33.6667 13.0625 33.7954 13.0557 33.939V34.4141C13.0671 34.5827 13.099 34.7342 13.1514 34.8687C13.2038 35.0008 13.2847 35.1056 13.394 35.1831C13.5034 35.2606 13.647 35.2993 13.8247 35.2993C13.9546 35.2993 14.064 35.2708 14.1528 35.2139C14.2417 35.1546 14.3135 35.0737 14.3682 34.9712C14.4251 34.8687 14.465 34.7502 14.4878 34.6157C14.5129 34.4813 14.5254 34.3366 14.5254 34.1816ZM18.3091 35.1934V30.75H19.3003V36H18.4082L18.3091 35.1934ZM15.9712 34.1953V34.1235C15.9712 33.841 16.0031 33.5846 16.0669 33.3545C16.1307 33.1221 16.2241 32.9227 16.3472 32.7563C16.4702 32.59 16.6217 32.4613 16.8018 32.3701C16.9818 32.279 17.1868 32.2334 17.417 32.2334C17.6335 32.2334 17.8226 32.279 17.9844 32.3701C18.1484 32.4613 18.2874 32.5911 18.4014 32.7598C18.5176 32.9261 18.611 33.1232 18.6816 33.3511C18.7523 33.5767 18.8035 33.8239 18.8354 34.0928V34.25C18.8035 34.5075 18.7523 34.7467 18.6816 34.9678C18.611 35.1888 18.5176 35.3825 18.4014 35.5488C18.2874 35.7129 18.1484 35.8405 17.9844 35.9316C17.8203 36.0228 17.6289 36.0684 17.4102 36.0684C17.18 36.0684 16.9749 36.0216 16.7949 35.9282C16.6172 35.8348 16.4668 35.7038 16.3438 35.5352C16.223 35.3665 16.1307 35.1683 16.0669 34.9404C16.0031 34.7126 15.9712 34.4642 15.9712 34.1953ZM16.9556 34.1235V34.1953C16.9556 34.348 16.967 34.4904 16.9897 34.6226C17.0148 34.7547 17.0547 34.8721 17.1094 34.9746C17.1663 35.0749 17.2393 35.1535 17.3281 35.2104C17.4193 35.2651 17.5298 35.2925 17.6597 35.2925C17.8283 35.2925 17.9673 35.2549 18.0767 35.1797C18.186 35.1022 18.2692 34.9963 18.3262 34.8618C18.3854 34.7274 18.4196 34.5724 18.4287 34.397V33.9492C18.4219 33.8057 18.4014 33.6769 18.3672 33.563C18.3353 33.4468 18.2874 33.3477 18.2236 33.2656C18.1621 33.1836 18.0846 33.1198 17.9912 33.0742C17.9001 33.0286 17.7918 33.0059 17.6665 33.0059C17.5389 33.0059 17.4295 33.0355 17.3384 33.0947C17.2472 33.1517 17.1732 33.2303 17.1162 33.3306C17.0615 33.4308 17.0205 33.5493 16.9932 33.686C16.9681 33.8205 16.9556 33.9663 16.9556 34.1235ZM21.3237 36H20.3325V31.9736C20.3325 31.6934 20.3872 31.4575 20.4966 31.2661C20.6082 31.0724 20.7643 30.9266 20.9648 30.8286C21.1676 30.7284 21.408 30.6782 21.686 30.6782C21.7772 30.6782 21.8649 30.6851 21.9492 30.6987C22.0335 30.7101 22.1156 30.7249 22.1953 30.7432L22.1851 31.4849C22.1418 31.4735 22.0962 31.4655 22.0483 31.4609C22.0005 31.4564 21.9447 31.4541 21.8809 31.4541C21.7624 31.4541 21.661 31.4746 21.5767 31.5156C21.4946 31.5544 21.432 31.6125 21.3887 31.6899C21.3454 31.7674 21.3237 31.862 21.3237 31.9736V36ZM22.062 32.3018V32.999H19.7822V32.3018H22.062Z",fill:"white"}))},a=function(e){var t=e.className,n=e.size,o=void 0===n?40:n,a=(0,r._T)(e,["className","size"]);return i.createElement("svg",(0,r.pi)({className:"rfu-file-fallback ".concat(void 0===t?"":t).trim(),fill:"none",height:o,viewBox:"0 0 34 40",width:o,xmlns:"http://www.w3.org/2000/svg"},a),i.createElement("path",{d:"M0 3C0 1.34315 1.34315 0 3 0H23L34 11V37C34 38.6569 32.6569 40 31 40H3C1.34315 40 0 38.6569 0 37V3Z",fill:"url(#paint0_linear)"}),i.createElement("path",{d:"M34 11L26 11C24.3431 11 23 9.65685 23 8V0L34 11Z",fill:"#DBDBDB"}),i.createElement("path",{clipRule:"evenodd",d:"M8 13H23V15H8V13Z",fill:"#CFCFCF",fillRule:"evenodd"}),i.createElement("path",{clipRule:"evenodd",d:"M8 17H18V19H8V17Z",fill:"#CFCFCF",fillRule:"evenodd"}),i.createElement("path",{clipRule:"evenodd",d:"M8 21H23V23H8V21Z",fill:"#CFCFCF",fillRule:"evenodd"}),i.createElement("defs",null,i.createElement("linearGradient",{gradientUnits:"userSpaceOnUse",id:"paint0_linear",x1:"0",x2:"0",y1:"0",y2:"40"},i.createElement("stop",{stopColor:"white"}),i.createElement("stop",{offset:"1",stopColor:"#DBDBDB"}))))},s=function(e){var t=e.className,n=e.size,o=void 0===n?40:n,a=(0,r._T)(e,["className","size"]);return i.createElement("svg",(0,r.pi)({className:"rfu-file-image ".concat(void 0===t?"":t).trim(),height:o,viewBox:"0 0 384 512",width:o,xmlns:"http://www.w3.org/2000/svg"},a),i.createElement("path",{d:"M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm32-48h224V288l-23.5-23.5c-4.7-4.7-12.3-4.7-17 0L176 352l-39.5-39.5c-4.7-4.7-12.3-4.7-17 0L80 352v64zm48-240c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z",fill:"#414D54"}))},l=["application/msword","application/msword-template","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.text-template","application/vnd.oasis.opendocument.text-flat-xml"],u=["text/csv","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.spreadsheet-template","application/vnd.oasis.opendocument.spreadsheet-flat-xml"],c=["application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.template.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.presentation-template","application/vnd.oasis.opendocument.presentation-flat-xml"],d=["application/zip","application/x-7z-compressed","application/x-archive","application/x-tar","application/gzip","application/x-compress","application/x-bzip","application/x-lzip","application/x-lz4","application/x-lzma","application/x-lzop","application/x-xz","application/x-webarchive","application/vnd.rar"],f=["text/html","text/css","application/x-javascript","text/javascript","application/json","text/x-python","text/x-go","text/x-csrc","text/x-c++src","application/x-ruby","text/rust","text/x-java","application/x-php","text/x-csharp","text/x-scala","text/x-erlang","application/x-shellscript"];function h(e){for(var t=e.FileArchiveIcon,n=e.FileCodeIcon,r=e.FileExcelIcon,i=e.FilePdfIcon,o=e.FilePowerPointIcon,a=e.FileWordIcon,s={"application/pdf":i},h=0;h0&&(null===(r=O.user)||void 0===r?void 0:r.id)===(null===(o=C[M-1].user)||void 0===o?void 0:o.id),R=S&&(null===(a=O.user)||void 0===a?void 0:a.id)!==(null===(l=null===(s=C[M-1])||void 0===s?void 0:s.user)||void 0===l?void 0:l.id),j=S&&(null===(u=O.user)||void 0===u?void 0:u.id)!==(null===(d=null===(c=C[M+1])||void 0===c?void 0:c.user)||void 0===d?void 0:d.id);return i.createElement(k.v,{additionalMessageInputProps:h,autoscrollToBottom:null===(f=T.current)||void 0===f?void 0:f.autoscrollToBottom,closeReactionSelectorOnClick:p,customMessageActions:m,endOfGroup:j,firstOfGroup:R,groupedByUser:P,lastReceivedId:b,message:O,Message:w,messageActions:_,readBy:E[O.id]||[]})};function G(e){("ResizeObserver loop completed with undelivered notifications."===e.message||"ResizeObserver loop limit exceeded"===e.message)&&e.stopImmediatePropagation()}function J(e){return e.getBoundingClientRect().height}function K(e,t){return e.findIndex(function(e){return e.id===t})}var X=function(e){var t,n,o,a,s,l,u,c,d,f,h,p,g,v,y=e.additionalMessageInputProps,b=e.additionalVirtuosoProps,_=void 0===b?{}:b,x=e.channel,D=e.closeReactionSelectorOnClick,E=e.customMessageActions,k=e.customMessageRenderer,U=e.defaultItemHeight,z=e.disableDateSeparator,H=void 0===z||z,X=e.groupStyles,Q=e.hasMore,ee=e.hasMoreNewer,et=e.head,en=e.hideDeletedMessages,er=void 0!==en&&en,ei=e.hideNewMessageSeparator,eo=void 0!==ei&&ei,ea=e.highlightedMessageId,es=e.jumpToLatestMessage,el=e.loadingMore,eu=e.loadMore,ec=e.loadMoreNewer,ed=e.Message,ef=e.messageActions,eh=e.messageLimit,ep=void 0===eh?100:eh,em=e.messages,eg=e.notifications,ev=e.overscan,ey=e.read,eb=e.returnAllReadData,ew=e.scrollSeekPlaceHolder,e_=e.scrollToLatestMessageOnFocus,ex=e.separateGiphyPreview,eD=void 0!==ex&&ex,eE=e.shouldGroupByUser,eC=void 0!==eE&&eE,ek=e.stickToBottomScrollBehavior,eS=void 0===ek?"smooth":ek,eT=e.suppressAutoscroll,eM=e.threadList,eO=_.components,eP=(0,r._T)(_,["components"]);(0,i.useEffect)(function(){return window.addEventListener("error",G),function(){window.removeEventListener("error",G)}},[]);var eR=(0,w.yM)("VirtualizedMessageList"),ej=eR.DateSeparator,eL=void 0===ej?I.Z:ej,eF=eR.GiphyPreviewMessage,eA=eR.MessageListNotifications,eN=void 0===eA?L.T:eA,eI=eR.MessageNotification,eB=void 0===eI?j.f:eI,eU=eR.MessageSystem,ez=void 0===eU?B.B:eU,eH=eR.VirtualMessage,eV=void 0===eH?N.u:eH,eq=(0,m.mx)("VirtualizedMessageList"),eW=eq.client,e$=eq.customClasses,eY=(0,i.useRef)(null),eZ=(0,i.useMemo)(function(){var e;return null===(e=x.lastRead)||void 0===e?void 0:e.call(x)},[x]),eG=M(eD),eJ=eG.giphyPreviewMessage,eK=eG.setGiphyPreviewMessage,eX=(0,i.useMemo)(function(){return void 0===em?[]:H&&!er&&eo&&!eD?em:(0,A.Ej)({enableDateSeparator:!H,hideDeletedMessages:er,hideNewMessageSeparator:eo,lastRead:eZ,messages:em,setGiphyPreviewMessage:eK,userId:eW.userID||""})},[H,er,eo,eZ,em,null==em?void 0:em.length,eW.userID]),eQ=(0,T.S)({messages:eX,read:ey,returnAllReadData:void 0!==eb&&eb,userID:eW.userID}),e0=(0,i.useMemo)(function(){return(0,A.hR)(eX)},[eX]),e1=X||A.db,e2=(0,i.useMemo)(function(){return eX.reduce(function(e,t,n){var r=e1(t,eX[n-1],eX[n+1],!eC);return r&&(e[t.id]=r),e},{})},[eX.length,eC,e1]),e3=(t=eW.userID,o=(n=(0,i.useState)(!1))[0],a=n[1],l=(s=(0,i.useState)(!0))[0],u=s[1],c=(0,i.useRef)(!1),d=(0,i.useRef)(""),f=(0,i.useRef)(!1),(0,i.useEffect)(function(){if(ee){a(!0);return}if(null==eX?void 0:eX.length){var e,n=eX[eX.length-1],r=d.current;d.current=n.id||"",n.id!==r&&(f.current||((null===(e=n.user)||void 0===e?void 0:e.id)!==t&&c.current&&a(!0),c.current=!0))}},[t,eX,ee]),{atBottom:f,isMessageListScrolledToBottom:l,newMessagesNotification:o,setIsMessageListScrolledToBottom:u,setNewMessagesNotification:a}),e4=e3.atBottom,e6=e3.isMessageListScrolledToBottom,e5=e3.newMessagesNotification,e8=e3.setIsMessageListScrolledToBottom,e7=e3.setNewMessagesNotification,e9=(0,i.useCallback)(function(){return(0,r.mG)(void 0,void 0,void 0,function(){return(0,r.Jh)(this,function(e){switch(e.label){case 0:if(!ee)return[3,2];return[4,es()];case 1:return e.sent(),[2];case 2:return eY.current&&eY.current.scrollToIndex(eX.length-1),e7(!1),[2]}})})},[eY,eX,e7,eX.length,ee,es]);O({messages:em,scrollToBottom:e9,scrollToLatestMessageOnFocus:void 0!==e_&&e_});var te=(h=H?0:1,p=(0,i.useRef)(),g=(0,i.useRef)(),v=(0,i.useRef)(0),(0,i.useMemo)(function(){if(!eX||!eX.length)return v.current=0,0;var e,t,n=null==eX?void 0:eX[h],r=(null==n?void 0:n.id)===(null===(e=g.current)||void 0===e?void 0:e.id),i=(null==n?void 0:n.status)&&P[n.status];if(r||i)return v.current;p.current||(p.current=n),g.current=n;for(var o=v.current;o0){var i=e[e.length-1];if((null===(r=i.user)||void 0===r?void 0:r.id)===t&&n.current!==i.id)return n.current=i.id,!0}return!1}return(0,i.useEffect)(function(){e&&e.length&&!r.current&&(r.current=!0,o())},[e,null==e?void 0:e.length]),o}(eX,eW.userID),tr=(0,i.useCallback)(function(e,t,n){var r=n.numItemsPrepended;return n.processedMessages[V(e,r)].id},[]);return((0,i.useEffect)(function(){var e;if(ea){var t=K(eX,ea);-1!==t&&(null===(e=eY.current)||void 0===e||e.scrollToIndex({align:"center",index:t}))}},[ea]),eX)?i.createElement(i.Fragment,null,i.createElement(F.u,null,i.createElement("div",{className:(null==e$?void 0:e$.virtualizedMessageList)||"str-chat__virtual-list"},i.createElement(C.OO,(0,r.pi)({atBottomStateChange:function(e){e4.current=e,e8(e),e&&e5&&e7(!1)},atBottomThreshold:200,className:"str-chat__message-list-scroll",components:(0,r.pi)({EmptyPlaceholder:$,Footer:Y,Header:W,Item:q},eO),computeItemKey:tr,context:{additionalMessageInputProps:y,closeReactionSelectorOnClick:D,customClasses:e$,customMessageActions:E,customMessageRenderer:k,DateSeparator:eL,head:et,lastReceivedMessageId:e0,loadingMore:el,Message:ed||eV,messageActions:ef,messageGroupStyles:e2,MessageSystem:ez,numItemsPrepended:te,ownMessagesReadByOthers:eQ,processedMessages:eX,shouldGroupByUser:eC,threadList:eM,virtuosoRef:eY},endReached:function(){ee&&ec&&ec(ep)},firstItemIndex:1e7-te,followOutput:function(e){return!ee&&!eT&&(tn()?e?eS:"auto":!!e&&eS)},increaseViewportBy:{bottom:200,top:0},initialTopMostItemIndex:function(e,t){if(t){var n=K(e,t);if(-1!==n)return{align:"center",index:n}}return e.length-1}(eX,ea),itemContent:Z,itemSize:J,key:tt,overscan:void 0===ev?0:ev,ref:eY,startReached:function(){Q&&eu&&eu(ep)},style:{overflowX:"hidden"},totalCount:eX.length},eP,ew?{scrollSeek:ew}:{},U?{defaultItemHeight:U}:{})))),i.createElement(eN,{hasNewMessages:e5,isMessageListScrolledToBottom:e6,isNotAtLatestMessageSet:ee,MessageNotification:eB,notifications:eg,scrollToBottom:e9,threadList:eM}),eJ&&i.createElement(void 0===eF?S:eF,{message:eJ})):null};function Q(e){var t=(0,g.uz)("VirtualizedMessageList"),n=t.jumpToLatestMessage,o=t.loadMore,a=t.loadMoreNewer,s=(0,v.JN)("VirtualizedMessageList"),l=s.channel,u=s.hasMore,c=s.hasMoreNewer,d=s.highlightedMessageId,f=s.loadingMore,h=s.loadingMoreNewer,p=s.messages,m=s.notifications,y=s.read,b=s.suppressAutoscroll,w=e.messages||p;return i.createElement(X,(0,r.pi)({channel:l,hasMore:!!u,hasMoreNewer:!!c,highlightedMessageId:d,jumpToLatestMessage:n,loadingMore:!!f,loadingMoreNewer:!!h,loadMore:o,loadMoreNewer:a,messages:w,notifications:m,read:y,suppressAutoscroll:b},e))}var ee=n(80043),et=n(5734),en=function(e){var t=e.title,n=(0,y.Ht)("CloseIcon").t;return i.createElement("svg",{"data-testid":"close-no-outline",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,null!=t?t:n("Close")),i.createElement("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"black"}))},er=function(e){var t=e.closeThread,n=e.overrideImage,r=e.overrideTitle,o=(0,y.Ht)("ThreadHeader").t,a=(0,v.JN)("").channel,s=(0,et.y)({channel:a,overrideImage:n,overrideTitle:r}).displayTitle;return i.createElement("div",{className:"str-chat__thread-header"},i.createElement("div",{className:"str-chat__thread-header-details"},i.createElement("div",{className:"str-chat__thread-header-title"},o("Thread")),i.createElement("div",{className:"str-chat__thread-header-subtitle"},s)),i.createElement("button",{"aria-label":"Close thread",className:"str-chat__square-button str-chat__close-thread-button","data-testid":"close-button",onClick:t},i.createElement(en,null)))},ei=function(){var e=(0,v.JN)("ThreadStart").thread,t=(0,y.Ht)("ThreadStart").t;return(null==e?void 0:e.reply_count)?i.createElement("div",{className:"str-chat__thread-start"},t("replyCount",{count:e.reply_count})):null},eo=function(e){var t=(0,w.yM)("ThreadHead").ThreadStart;return i.createElement("div",{className:"str-chat__parent-message-li"},i.createElement(k.v,(0,r.pi)({initialMessage:!0,threadList:!0},e)),i.createElement(void 0===t?ei:t,null))},ea=function(e){var t=(0,v.JN)("Thread"),n=t.channel,o=t.channelConfig,a=t.thread;return a&&(null==o?void 0:o.replies)!==!1?i.createElement(es,(0,r.pi)({},e,{key:"thread-".concat(a.id,"-").concat(null==n?void 0:n.cid)})):null},es=function(e){var t,n,l=e.additionalMessageInputProps,u=e.additionalMessageListProps,c=e.additionalParentMessageProps,d=e.additionalVirtualizedMessageListProps,f=e.autoFocus,h=e.enableDateSeparator,p=e.fullWidth,y=e.Input,b=e.Message,_=e.messageActions,x=void 0===_?Object.keys(a.Xh):_,C=e.virtualized,k=(0,v.JN)("Thread"),S=k.thread,T=k.threadHasMore,M=k.threadLoadingMore,O=k.threadMessages,P=k.threadSuppressAutoscroll,R=(0,g.uz)("Thread"),j=R.closeThread,L=R.loadMoreThread,F=(0,m.mx)("Thread"),A=F.customClasses,N=F.themeVersion,I=(0,w.yM)("Thread"),B=I.ThreadInput,U=I.Message,z=I.ThreadHead,H=I.ThreadHeader,V=I.VirtualMessage,q=null!==(n=null!==(t=null!=y?y:null==l?void 0:l.Input)&&void 0!==t?t:B)&&void 0!==n?n:"2"===N?s.r:D,W=b||(null==u?void 0:u.Message)||(C&&V?V:U),$=C?Q:ee.r;if((0,i.useEffect)(function(){(null==S?void 0:S.id)&&(null==S?void 0:S.reply_count)&&L()},[]),!S)return null;var Y=(null==A?void 0:A.thread)||(0,o.Z)("str-chat__thread-container str-chat__thread",{"str-chat__thread--full":void 0!==p&&p,"str-chat__thread--virtualized":C}),Z=i.createElement(void 0===z?eo:z,(0,r.pi)({key:S.id,message:S,Message:W},c));return i.createElement("div",{className:Y},i.createElement(void 0===H?er:H,{closeThread:j,thread:S}),i.createElement($,(0,r.pi)({disableDateSeparator:!(void 0!==h&&h),hasMore:T,head:Z,loadingMore:M,loadMore:L,Message:W,messageActions:x,messages:O||[],suppressAutoscroll:P,threadList:!0},C?d:u)),i.createElement(E.R,(0,r.pi)({focus:void 0===f||f,Input:q,parent:S,publishTypingEvent:!1},l)))}},43714:function(e,t,n){"use strict";n.d(t,{X:function(){return s},u:function(){return a}});var r=n(11735),i=n(2265),o=n(63375),a=function(e){var t=e.children,n=(0,r._T)(e,["children"]);return i.createElement("div",(0,r.pi)({className:"str-chat__tooltip"},n),t)},s=function(e){var t=e.children,n=e.offset,a=e.referenceElement,s=e.placement,l=e.visible,u=(0,i.useState)(null),c=u[0],d=u[1],f=(0,o.D)(a,c,{modifiers:[{name:"offset",options:{offset:void 0===n?[0,10]:n}}],placement:void 0===s?"top":s}),h=f.attributes,p=f.styles;return void 0!==l&&l?i.createElement("div",(0,r.pi)({className:"str-chat__tooltip",ref:d,style:p.popper},h.popper),t):null}},48617:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(2265),i=function(e){var t=void 0===e?{}:e,n=t.onMouseEnter,i=t.onMouseLeave,o=(0,r.useState)(!1),a=o[0],s=o[1];return{handleEnter:(0,r.useCallback)(function(e){s(!0),null==n||n(e)},[n]),handleLeave:(0,r.useCallback)(function(e){s(!1),null==i||i(e)},[i]),tooltipVisible:a}}},33822:function(e,t,n){"use strict";n.d(t,{E:function(){return s}});var r=n(2265),i=n(44839),o=n(40311),a=n(77815),s=r.memo(function(e){var t=e.Avatar,n=void 0===t?a.q:t,s=e.entity,l=(0,o.mx)("UserItem").themeVersion,u=!!Object.keys(s).length,c=null==s?void 0:s.itemNameParts;return r.createElement("div",{className:"str-chat__user-item"},r.createElement(n,{image:s.image,name:s.name||s.id,size:20}),r.createElement("span",{className:"str-chat__user-item--name","data-testid":"user-item-name"},u?c.parts.map(function(e,t){var n=e.toLowerCase()===c.match.toLowerCase();return r.createElement("span",{className:(0,i.Z)({"str-chat__emoji-item--highlight":n,"str-chat__emoji-item--part":!n}),key:"part-".concat(t)},e)}):null),"2"===l&&r.createElement("div",{className:"str-chat__user-item-at"},"@"))})},20821:function(e,t,n){"use strict";n.d(t,{R:function(){return a}});var r=n(2265),i=n(44839),o=n(61612),a=r.memo(function(e){var t=e.children,n=e.hideOnThread,a=e.thread,s=(0,o.JN)("Window").thread;return r.createElement("div",{className:(0,i.Z)("str-chat__main-panel",{"str-chat__main-panel--hideOnThread":void 0!==n&&n&&(s||a)})},t)})},3661:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r={date:"message.date",intro:"channel.intro"}},92765:function(e,t,n){"use strict";n.d(t,{PM:function(){return o},uz:function(){return a}});var r=n(2265),i=r.createContext(void 0),o=function(e){var t=e.children,n=e.value;return r.createElement(i.Provider,{value:n},t)},a=function(e){return(0,r.useContext)(i)||(console.warn("The useChannelActionContext hook was called outside of the ChannelActionContext provider. Make sure this hook is called within a child of the Channel component. The errored call is located in the ".concat(e," component.")),{})}},61612:function(e,t,n){"use strict";n.d(t,{JN:function(){return a},gZ:function(){return o}});var r=n(2265),i=r.createContext(void 0),o=function(e){var t=e.children,n=e.value;return r.createElement(i.Provider,{value:n},t)},a=function(e){return(0,r.useContext)(i)||(console.warn("The useChannelStateContext hook was called outside of the ChannelStateContext provider. Make sure this hook is called within a child of the Channel component. The errored call is located in the ".concat(e," component.")),{})}},40311:function(e,t,n){"use strict";n.d(t,{aM:function(){return o},mx:function(){return a}});var r=n(2265),i=r.createContext(void 0),o=function(e){var t=e.children,n=e.value;return r.createElement(i.Provider,{value:n},t)},a=function(e){return(0,r.useContext)(i)||(console.warn("The useChatContext hook was called outside of the ChatContext provider. Make sure this hook is called within a child of the Chat component. The errored call is located in the ".concat(e," component.")),{})}},97959:function(e,t,n){"use strict";n.d(t,{Xp:function(){return o},yM:function(){return a}});var r=n(2265),i=r.createContext(void 0),o=function(e){var t=e.children,n=e.value;return r.createElement(i.Provider,{value:n},t)},a=function(e){return(0,r.useContext)(i)||(console.warn("The useComponentContext hook was called outside of the ComponentContext provider. Make sure this hook is called within a child of the Channel component. The errored call is located in the ".concat(e," component.")),{})}},86390:function(e,t,n){"use strict";n.d(t,{_V:function(){return l},uL:function(){return u}});var r=n(2265),i=n(64771),o=r.lazy(function(){return n.e(683).then(n.bind(n,34683))}),a=r.lazy(function(){return n.e(140).then(n.bind(n,5140))}),s=r.createContext(void 0),l=function(e){var t=e.children,n=e.value,l=n.Emoji,u=n.emojiConfig,c=n.EmojiIndex,d=void 0===c?i.default:c,f=n.EmojiPicker;return r.createElement(s.Provider,{value:{Emoji:void 0===l?o:l,emojiConfig:u,EmojiIndex:d,EmojiPicker:void 0===f?a:f}},t)},u=function(e){return(0,r.useContext)(s)||(console.warn("The useEmojiContext hook was called outside of the EmojiContext provider. Make sure this hook is called within a child of the Channel component. The errored call is located in the ".concat(e," component.")),{})}},13171:function(e,t,n){"use strict";n.d(t,{fr:function(){return a},x1:function(){return o}});var r=n(2265),i=r.createContext(void 0),o=function(e){var t=e.children,n=e.value;return r.createElement(i.Provider,{value:n},t)},a=function(e){return(0,r.useContext)(i)||(console.warn("The useMessageContext hook was called outside of the MessageContext provider. Make sure this hook is called within the Message's UI component. The errored call is located in the ".concat(e," component.")),{})}},74745:function(e,t,n){"use strict";n.d(t,{G6:function(){return o},Nc:function(){return a}});var r=n(2265),i=(0,r.createContext)(void 0),o=function(e){var t=e.children,n=e.value;return r.createElement(i.Provider,{value:n},t)},a=function(e){return(0,r.useContext)(i)||(console.warn("The useMessageInputContext hook was called outside of the MessageInputContext provider. Make sure this hook is called within the MessageInput's UI component. The errored call is located in the ".concat(e," component.")),{})}},33600:function(e,t,n){"use strict";n.d(t,{$j:function(){return v},$s:function(){return p},Eb:function(){return d},Ht:function(){return y},J_:function(){return h},MD:function(){return f},u9:function(){return m}});var r=n(2265),i=n(62737),o=n.n(i),a=n(30910),s=n.n(a),l=n(78322),u=n.n(l),c=n(21630);o().extend(s()),o().extend(u());var d=function(e){return["de","en","es","fr","hi","it","ja","ko","nl","pt","ru","tr"].some(function(t){return e===t})},f=function(e){return!!(null==e?void 0:e.isSame)},h=function(e){return!!(null==e?void 0:e.getMonth)},p=function(e){return"string"==typeof e||"number"==typeof e},m=function(e){return o()(e)},g=r.createContext({t:c.D,tDateTimeParser:m,userLanguage:"en"}),v=function(e){var t=e.children,n=e.value;return r.createElement(g.Provider,{value:n},t)},y=function(e){return(0,r.useContext)(g)||(console.warn("The useTranslationContext hook was called outside of the TranslationContext provider. Make sure this hook is called within a child of the Chat component. The errored call is located in the ".concat(e," component.")),{})}},47556:function(e,t,n){"use strict";n.d(t,{f5:function(){return a},ln:function(){return o}});var r=n(2265),i=r.createContext(void 0),o=function(e){var t=e.children,n=e.value;return r.createElement(i.Provider,{value:n},t)},a=function(e){return(0,r.useContext)(i)||(console.warn("The useTypingContext hook was called outside of the TypingContext provider. Make sure this hook is called within a child of the Channel component. The errored call is located in the ".concat(e," component.")),{})}},21630:function(e,t,n){"use strict";n.d(t,{V:function(){return eV},D:function(){return eH}});var r=n(11735),i=n(8620),o=n(82546),a=n(84179),s=n(41088),l=n(71227),u=n(52799),c=n(35743),d=n(12475),f=n(14876),h=n(49947),p=n(85352),m=n(41634);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};(0,o.Z)(this,e),this.init(t,n)}return(0,a.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||y,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),n=0;n1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function E(e,t,n){var r=D(e,t,Object);r.obj[r.k]=n}function C(e,t){var n=D(e,t),r=n.obj,i=n.k;if(r)return r[i]}function k(e,t,n){var r=C(e,n);return void 0!==r?r:C(t,n)}function S(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var T={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function M(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return T[e]}):e}var O="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,P=[" ",",","?","!",";"];function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function j(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,o.Z)(this,r),t=n.call(this),O&&w.call((0,s.Z)(t)),t.data=e||{},t.options=i,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return(0,a.Z)(r,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=C(this.data,a);return s||!o||"string"!=typeof n?s:function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[n])return t[n];for(var i=n.split(r),o=t,a=0;aa+s;)s++,u=o[l=i.slice(a,a+s).join(r)];if(void 0===u)return;if(null===u)return null;if(n.endsWith(l)){if("string"==typeof u)return u;if(l&&"string"==typeof u[l])return u[l]}var c=i.slice(a+s).join(r);if(c)return e(u,c,r);return}o=o[i[a]]}return o}}(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),E(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)("string"==typeof n[i]||"[object Array]"===Object.prototype.toString.apply(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);var s=C(this.data,a)||{};r?function e(t,n,r){for(var i in n)"__proto__"!==i&&"constructor"!==i&&(i in t?"string"==typeof t[i]||t[i]instanceof String||"string"==typeof n[i]||n[i]instanceof String?r&&(t[i]=n[i]):e(t[i],n[i],r):t[i]=n[i]);return t}(s,n,i):s=j(j({},s),n),E(this.data,a,s),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?j(j({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),r}(w),F={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach(function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))}),t}};function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.Z)(this,r),t=n.call(this),O&&w.call((0,s.Z)(t)),!function(e,t,n){e.forEach(function(e){t[e]&&(n[e]=t[e])})}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,(0,s.Z)(t)),t.options=i,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=b.create("translator"),t}return(0,a.Z)(r,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";var r=P.filter(function(e){return 0>t.indexOf(e)&&0>n.indexOf(e)});if(0===r.length)return!0;var i=new RegExp("(".concat(r.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}(e,n,r);if(o&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:i};var l=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(l[0])>-1)&&(i=l.shift()),e=l.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t,n){var o=this;if("object"!==(0,i.Z)(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var a=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,s=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,l=this.extractFromKey(e[e.length-1],t),u=l.key,c=l.namespaces,d=c[c.length-1],f=t.lng||this.language,h=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(h){var p=t.nsSeparator||this.options.nsSeparator;return a?(m.res="".concat(d).concat(p).concat(u),m):"".concat(d).concat(p).concat(u)}return a?(m.res=u,m):u}var m=this.resolve(e,t),g=m&&m.res,v=m&&m.usedKey||u,y=m&&m.exactUsedKey||u,b=Object.prototype.toString.apply(g),w=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(_&&g&&x&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(b)&&!("string"==typeof w&&"[object Array]"===b)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var D=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,g,N(N({},t),{},{ns:c})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return a?(m.res=D,m):D}if(s){var E="[object Array]"===b,C=E?[]:{},k=E?y:v;for(var S in g)if(Object.prototype.hasOwnProperty.call(g,S)){var T="".concat(k).concat(s).concat(S);C[S]=this.translate(T,N(N({},t),{joinArrays:!1,ns:c})),C[S]===T&&(C[S]=g[S])}g=C}}else if(_&&"string"==typeof w&&"[object Array]"===b)(g=g.join(w))&&(g=this.extendTranslation(g,e,t,n));else{var M=!1,O=!1,P=void 0!==t.count&&"string"!=typeof t.count,R=r.hasDefaultValue(t),j=P?this.pluralResolver.getSuffix(f,t.count,t):"",L=t["defaultValue".concat(j)]||t.defaultValue;!this.isValidLookup(g)&&R&&(M=!0,g=L),this.isValidLookup(g)||(O=!0,g=u);var F=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:g,A=R&&L!==g&&this.options.updateMissing;if(O||M||A){if(this.logger.log(A?"updateKey":"missingKey",f,d,u,A?L:g),s){var I=this.resolve(u,N(N({},t),{},{keySeparator:!1}));I&&I.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var B=[],U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&U&&U[0])for(var z=0;z1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),u=l.key;n=u;var c=l.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,f=d&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach(function(e){a.isValidLookup(t)||(o=e,!I["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(I["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(function(n){if(!a.isValidLookup(t)){i=n;var o,l=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(l,u,n,e,s);else{d&&(c=a.pluralResolver.getSuffix(n,s.count,s));var c,p="".concat(a.options.pluralSeparator,"zero");if(d&&(l.push(u+c),f&&l.push(u+p)),h){var m="".concat(u).concat(a.options.contextSeparator).concat(s.context);l.push(m),d&&(l.push(m+c),f&&l.push(m+p))}}for(;o=l.pop();)a.isValidLookup(t)||(r=o,t=a.getResource(n,e,o,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),r}(w);function U(e){return e.charAt(0).toUpperCase()+e.slice(1)}var z=function(){function e(t){(0,o.Z)(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=b.create("languageUtils")}return(0,a.Z)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=U(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=U(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=U(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var r=n.formatLanguageCode(e);(!n.options.supportedLngs||n.isSupportedCode(r))&&(t=r)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find(function(e){if(0===e.indexOf(r))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach(function(e){0>i.indexOf(e)&&o(n.formatLanguageCode(e))}),i}}]),e}(),H=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],V={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},q=["v1","v2","v3"],W={zero:0,one:1,two:2,few:3,many:4,other:5},$=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.Z)(this,e),this.languageUtils=t,this.options=r,this.logger=b.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},H.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:V[e.fc]}})}),n)}return(0,a.Z)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(function(e,t){return W[e]-W[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):r.numbers.map(function(r){return t.getSuffix(e,r,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!q.includes(this.options.compatibilityJSON)}}]),e}();function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,e),this.logger=b.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,a.Z)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:M,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?S(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?S(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?S(t.nestingPrefix):t.nestingPrefixEscaped||S("$t("),this.nestingSuffix=t.nestingSuffix?S(t.nestingSuffix):t.nestingSuffixEscaped||S(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,o,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(0>e.indexOf(s.formatSeparator)){var i=k(t,l,e);return s.alwaysFormat?s.format(i,void 0,n,Z(Z(Z({},r),t),{},{interpolationkey:e})):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),u=o.join(s.formatSeparator).trim();return s.format(k(t,l,a),u,n,Z(Z(Z({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return u(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?u(s.escape(e)):u(e)}}].forEach(function(t){for(a=0;i=t.regex.exec(e);){var n=i[1].trim();if(void 0===(o=c(n))){if("function"==typeof d){var l=d(e,i,r);o="string"==typeof l?l:""}else if(r&&r.hasOwnProperty(n))o="";else if(f){o=i[0];continue}else s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=x(o));var u=t.safeValue(o);if(e=e.replace(i[0],u),f?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,r,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Z({},o);function s(e,t){var n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0];var o=(i=this.interpolate(i,a)).match(/'/g),s=i.match(/"/g);(o&&o.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{a=JSON.parse(i),t&&(a=Z(Z({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=c.shift(),l=c,u=!0}if((r=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=x(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),u&&(r=l.reduce(function(e,t){return i.format(e,t,o.lng,Z(Z({},o),{},{interpolationkey:n[1].trim()}))},r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};(0,o.Z)(this,e),this.logger=b.create("formatter"),this.options=t,this.formats={number:X(function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}}),currency:X(function(e,t){var n=new Intl.NumberFormat(e,K(K({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:X(function(e,t){var n=new Intl.DateTimeFormat(e,K({},t));return function(e){return n.format(e)}}),relativetime:X(function(e,t){var n=new Intl.RelativeTimeFormat(e,K({},t));return function(e){return n.format(e,t.range||"day")}}),list:X(function(e,t){var n=new Intl.ListFormat(e,K({},t));return function(e){return n.format(e)}})},this.init(t)}return(0,a.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=X(t)}},{key:"format",value:function(e,t,n,r){var i=this;return t.split(this.formatSeparator).reduce(function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===t&&0>i.indexOf(":")?n.currency||(n.currency=i.trim()):"relativetime"===t&&0>i.indexOf(":")?n.range||(n.range=i.trim()):i.split(";").forEach(function(e){if(e){var t,r=(t=e.split(":"),(0,f.Z)(t)||(0,h.Z)(t)||(0,p.Z)(t)||(0,m.Z)()),i=r[0],o=r.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[i.trim()]||(n[i.trim()]=o),"false"===o&&(n[i.trim()]=!1),"true"===o&&(n[i.trim()]=!0),isNaN(o)||(n[i.trim()]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}}(t),a=o.formatName,s=o.formatOptions;if(i.formats[a]){var l=e;try{var u=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},c=u.locale||u.lng||r.locale||r.lng||n;l=i.formats[a](e,c,K(K(K({},s),r),u))}catch(e){i.logger.warn(e)}return l}return i.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function et(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};return(0,o.Z)(this,r),a=n.call(this),O&&w.call((0,s.Z)(a)),a.backend=e,a.store=t,a.services=i,a.languageUtils=i.languageUtils,a.options=l,a.logger=b.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=l.maxParallelReads||10,a.readingCalls=0,a.maxRetries=l.maxRetries>=0?l.maxRetries:5,a.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(i,l.backend,l),a}return(0,a.Z)(r,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o={},a={},s={},l={};return e.forEach(function(e){var r=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===a[s]&&(a[s]=!0):(i.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===l[t]&&(l[t]=!0)))}),r||(s[e]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(n){var r,s,l,u;(l=(s=D(n.loaded,[i],Object)).obj)[u=s.k]=l[u]||[],r||l[u].push(o),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:o,callback:a});return}return this.readingCalls++,this.backend[n](e,t,function(s,l){if(r.readingCalls--,r.waitingReads.length>0){var u=r.waitingReads.shift();r.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}if(s&&l&&i2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,r,a)})}},{key:"saveMissing",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,et(et({},o),{},{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),r}(w);function er(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function ei(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eo(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if((0,o.Z)(this,r),e=n.call(this),O&&w.call((0,s.Z)(e)),e.options=er(t),e.services={},e.logger=b,e.modules={external:[]},!function(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))})}((0,s.Z)(e)),i&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,i),(0,u.Z)(e,(0,s.Z)(e));setTimeout(function(){e.init(t,i)},0)}return e}return(0,a.Z)(r,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var r={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,i.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,i.Z)(e[2])||"object"===(0,i.Z)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=eo(eo(eo({},r),this.options),er(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=eo(eo({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?b.init(o(this.modules.logger),this.options):b.init(null,this.options),this.modules.formatter?a=this.modules.formatter:"undefined"!=typeof Intl&&(a=Q);var a,s=new z(this.options);this.store=new L(this.options.resources,this.options);var l=this.services;l.logger=b,l.resourceStore=this.store,l.languageUtils=s,l.pluralResolver=new $(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(l.formatter=o(a),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new G(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new en(o(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var c=_(),d=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ea,r=n,i="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>o.indexOf(e)&&o.push(e)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(o,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)})}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=_();return e||(e=this.languages),t||(t=this.options.ns),n||(n=ea),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&F.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=_();this.emit("languageChanging",e);var i=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},o=function(e,o){o?(i(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})},a=function(t){e||t||!n.services.languageDetector||(t=[]);var r="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);r&&(n.language||i(r),n.translator.language||n.translator.changeLanguage(r),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(r)),n.loadResources(r,function(e){o(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){if("object"!==(0,i.Z)(o)){for(var a,s=arguments.length,l=Array(s>2?s-2:0),u=2;u1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,e)&&(!i||a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=_();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>n.options.ns.indexOf(e)&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=_();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter(function(e){return 0>r.indexOf(e)});return i.length?(this.options.preload=r.concat(i),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ea,i=eo(eo(eo({},this.options),t),{isClone:!0}),o=new r(i);return(void 0!==t.debug||void 0!==t.prefix)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(function(t){o[t]=e[t]}),o.services=eo({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new B(o.services,o.options),o.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new es(e,t)});var el=es.createInstance();el.createInstance=es.createInstance,el.createInstance,el.init,el.loadResources,el.reloadResources,el.use,el.changeLanguage,el.getFixedT,el.t,el.exists,el.setDefaultNamespace,el.hasLoadedNamespace,el.loadNamespaces,el.loadLanguages;var eu=n(62737),ec=n.n(eu),ed=n(30910),ef=n.n(ed),eh=n(90783),ep=n.n(eh),em=n(78322),eg=n.n(em),ev=n(42554),ey=n.n(ev),eb=n(51470),ew=n.n(eb),e_=n(8558),ex=n.n(e_),eD=n(1388),eE=n.n(eD),eC=JSON.parse('{"Attach files":"Dateien anh\xe4ngen","Cancel":"Stornieren","Channel Missing":"Kanal fehlt","Close":"Schlie\xdfen","Close emoji picker":"Emoji-Picker schlie\xdfen","Commands matching":"\xdcbereinstimmende Befehle","Connection failure, reconnecting now...":"Verbindungsfehler, Wiederherstellung der Verbindung...","Delete":"L\xf6schen","Delivered":"Zugestellt","Drag your files here":"Ziehen Sie Ihre Dateien hierher","Drag your files here to add to your post":"Ziehen Sie Ihre Dateien hierher, um sie Ihrem Beitrag hinzuzuf\xfcgen","Edit Message":"Nachricht bearbeiten","Edit message request failed":"Anfrage zum Bearbeiten der Nachricht fehlgeschlagen","Emoji matching":"Emoji passend","Empty message...":"Leere Nachricht...","Error adding flag":"Fehler beim Hinzuf\xfcgen des Flags","Error connecting to chat, refresh the page to try again.":"Verbindungsfehler zum Chat, Aktualisiere die Seite um es erneut zu versuchen.","Error deleting message":"Fehler beim L\xf6schen der Nachricht","Error muting a user ...":"Fehler beim Stummschalten eines Nutzers.","Error pinning message":"Fehler beim Pinnen der Nachricht","Error removing message pin":"Fehler beim Entfernen der gepinnten Nachricht","Error unmuting a user ...":"Stummschaltung des Nutzers fehlgeschlagen ...","Error uploading file":"Fehler beim Hochladen der Datei","Error uploading image":"Hochladen des Bildes fehlgeschlagen","Error \xb7 Unsent":"Fehler nicht gesendet","Error: {{ errorMessage }}":"Fehler: {{ errorMessage }}","Flag":"Meldung","Latest Messages":"Neueste Nachrichten","Load more":"Mehr laden","Menu":"Men\xfc","Message Failed \xb7 Click to try again":"Nachricht fehlgeschlagen \xb7 Klicken, um es erneut zu versuchen","Message Failed \xb7 Unauthorized":"Nachricht fehlgeschlagen \xb7 Nicht autorisiert","Message deleted":"Nachricht gel\xf6scht","Message has been successfully flagged":"Nachricht wurde erfolgreich gemeldet","Message pinned":"Nachricht gepinnt","Mute":"Stumm schalten","New":"Neu","New Messages!":"Neue Nachrichten!","No chats here yet…":"Noch keine Chats hier...","No results found":"keine Ergebnisse gefunden","Nothing yet...":"Noch nichts...","Open emoji picker":"Emoji-Picker \xf6ffnen","People matching":"Passende Personen","Pick your emoji":"Emoji w\xe4hlen","Pin":"Pin","Pinned by":"Gepinnt von","Reply":"Antworten","Reply to Message":"Auf Nachricht antworten","Search":"Suche","Searching...":"Suchen...","Send":"Senden","Send message request failed":"Senden der Nachrichtenanfrage fehlgeschlagen","Sending...":"Senden...","Shuffle":"Mischen","Slow Mode ON":"Slow-Mode EIN","Some of the files will not be accepted":"Einige der Dateien werden nicht akzeptiert","This message was deleted...":"Diese Nachricht wurde gel\xf6scht...","Thread":"Thread","Type your message":"Nachricht eingeben","Unmute":"Stummschaltung aufheben","Unpin":"Pin entfernen","Upload type: \\"{{ type }}\\" is not allowed":"Upload-Typ: \\"{{ type }}\\" ist nicht erlaubt","User uploaded content":"Benutzer hochgeladenen Inhalts","Wait until all attachments have uploaded":"Bitte warten, bis alle Anh\xe4nge hochgeladen wurden","You have no channels currently":"Du hast momentan noch keinen Channels","You\'ve reached the maximum number of files":"Die maximale Dateianzahl ist erreicht","ban-command-args":"[@Benutzername] [Text]","ban-command-description":"Einen Benutzer verbannen","giphy-command-args":"[Text]","giphy-command-description":"Poste ein zuf\xe4lliges Gif in den Kanal","live":"live","mute-command-args":"[@Benutzername]","mute-command-description":"Stummschalten eines Benutzers","replyCount_one":"1 Antwort","replyCount_other":"{{ count }} Antworten","searchResultsCount_one":"1 Ergebnis","searchResultsCount_other":"{{ count }} Ergebnisse","this content could not be displayed":"Dieser Inhalt konnte nicht angezeigt werden","unban-command-args":"[@Benutzername]","unban-command-description":"Einen Benutzer entbannen","unmute-command-args":"[@Benutzername]","unmute-command-description":"Stummschaltung eines Benutzers aufheben","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} und {{moreCount}} Mehr","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} und {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} und {{ secondUser }}","{{ imageCount }} more":"{{ imageCount }} mehr","{{ memberCount }} members":"{{ memberCount }} Mitglieder","{{ user }} has been muted":"{{ user }} wurde stummgeschaltet","{{ user }} has been unmuted":"{{ user }} wurde nicht stummgeschaltet","{{ user }} is typing...":"{{ user }} tippt...","{{ users }} and more are typing...":"{{ users }} und mehr tippen...","{{ users }} and {{ user }} are typing...":"{{ users }} und {{ user }} tippen...","{{ watcherCount }} online":"{{ watcherCount }} online","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 Anhang..."}'),ek=JSON.parse('{"Attach files":"Attach files","Cancel":"Cancel","Channel Missing":"Channel Missing","Close":"Close","Close emoji picker":"Close emoji picker","Commands matching":"Commands matching","Connection failure, reconnecting now...":"Connection failure, reconnecting now...","Delete":"Delete","Delivered":"Delivered","Drag your files here":"Drag your files here","Drag your files here to add to your post":"Drag your files here to add to your post","Edit Message":"Edit Message","Edit message request failed":"Edit message request failed","Emoji matching":"Emoji matching","Empty message...":"Empty message...","Error adding flag":"Error adding flag","Error connecting to chat, refresh the page to try again.":"Error connecting to chat, refresh the page to try again.","Error deleting message":"Error deleting message","Error muting a user ...":"Error muting a user ...","Error pinning message":"Error pinning message","Error removing message pin":"Error removing message pin","Error unmuting a user ...":"Error unmuting a user ...","Error uploading file":"Error uploading file","Error uploading image":"Error uploading image","Error \xb7 Unsent":"Error \xb7 Unsent","Error: {{ errorMessage }}":"Error: {{ errorMessage }}","Flag":"Flag","Latest Messages":"Latest Messages","Load more":"Load more","Menu":"Menu","Message Failed \xb7 Click to try again":"Message Failed \xb7 Click to try again","Message Failed \xb7 Unauthorized":"Message Failed \xb7 Unauthorized","Message deleted":"Message deleted","Message has been successfully flagged":"Message has been successfully flagged","Message pinned":"Message pinned","Mute":"Mute","New":"New","New Messages!":"New Messages!","No chats here yet…":"No chats here yet…","No results found":"No results found","Nothing yet...":"Nothing yet...","Open emoji picker":"Open emoji picker","People matching":"People matching","Pick your emoji":"Pick your emoji","Pin":"Pin","Pinned by":"Pinned by","Reply":"Reply","Reply to Message":"Reply to Message","Search":"Search","Searching...":"Searching...","Send":"Send","Send message request failed":"Send message request failed","Sending...":"Sending...","Shuffle":"Shuffle","Slow Mode ON":"Slow Mode ON","Some of the files will not be accepted":"Some of the files will not be accepted","This message was deleted...":"This message was deleted...","Thread":"Thread","Type your message":"Type your message","Unmute":"Unmute","Unpin":"Unpin","Upload type: \\"{{ type }}\\" is not allowed":"Upload type: \\"{{ type }}\\" is not allowed","User uploaded content":"User uploaded content","Wait until all attachments have uploaded":"Wait until all attachments have uploaded","You have no channels currently":"You have no channels currently","You\'ve reached the maximum number of files":"You\'ve reached the maximum number of files","live":"live","replyCount_one":"1 reply","replyCount_other":"{{ count }} replies","searchResultsCount_one":"1 result","searchResultsCount_other":"{{ count }} results","this content could not be displayed":"this content could not be displayed","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} and {{ moreCount }} more","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }}, and {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} and {{ secondUser }}","{{ imageCount }} more":"{{ imageCount }} more","{{ memberCount }} members":"{{ memberCount }} members","{{ user }} has been muted":"{{ user }} has been muted","{{ user }} has been unmuted":"{{ user }} has been unmuted","{{ user }} is typing...":"{{ user }} is typing...","{{ users }} and more are typing...":"{{ users }} and more are typing...","{{ users }} and {{ user }} are typing...":"{{ users }} and {{ user }} are typing...","{{ watcherCount }} online":"{{ watcherCount }} online","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 Attachment..."}'),eS=JSON.parse('{"Attach files":"Adjuntar archivos","Cancel":"Cancelar","Channel Missing":"Falta canal","Close":"Cerca","Close emoji picker":"Cerrar el selector de emojis","Commands matching":"Coincidencia de comandos","Connection failure, reconnecting now...":"Fallo de conexi\xf3n, reconectando ahora ...","Delete":"Borrar","Delivered":"Entregado","Drag your files here":"Arrastra tus archivos aqu\xed","Drag your files here to add to your post":"Arrastra tus archivos aqu\xed para agregarlos a tu publicaci\xf3n","Edit Message":"Editar mensaje","Edit message request failed":"Error al editar la solicitud de mensaje","Emoji matching":"Coincidencia de emoji","Empty message...":"Mensaje vac\xedo ...","Error adding flag":"Error al agregar la bandera","Error connecting to chat, refresh the page to try again.":"Error al conectarse al chat, actualice la p\xe1gina para volver a intentarlo.","Error deleting message":"Error al eliminar el mensaje","Error muting a user ...":"Error al silenciar a un usuario ...","Error pinning message":"Mensaje de error al fijar","Error removing message pin":"Error al quitar el pin del mensaje","Error unmuting a user ...":"Error al activar el silencio de un usuario ...","Error uploading file":"Error al cargar el archivo","Error uploading image":"Error subiendo imagen","Error \xb7 Unsent":"Error \xb7 No enviado","Error: {{ errorMessage }}":"Error: {{ errorMessage }}","Flag":"Bandera","Latest Messages":"\xdaltimos mensajes","Load more":"Cargar m\xe1s","Menu":"Men\xfa","Message Failed \xb7 Click to try again":"Mensaje fallido \xb7 Haga clic para volver a intentarlo","Message Failed \xb7 Unauthorized":"Mensaje fallido \xb7 No autorizado","Message deleted":"Mensaje borrado","Message has been successfully flagged":"El mensaje se marc\xf3 correctamente","Message pinned":"Mensaje fijado","Mute":"Mudo","New":"Nuevo","New Messages!":"\xa1Nuevos mensajes!","No chats here yet…":"A\xfan no hay mensajes aqu\xed...","No results found":"No se han encontrado resultados","Nothing yet...":"Nada a\xfan...","Open emoji picker":"Selector de emoji abierto","People matching":"Personas que coinciden","Pick your emoji":"Elige tu emoji","Pin":"Alfiler","Pinned by":"Fijado por","Reply":"Respuesta","Reply to Message":"Responder al mensaje","Search":"Buscar","Searching...":"Buscando...","Send":"Enviar","Send message request failed":"Error al enviar la solicitud de mensaje","Sending...":"Enviando...","Shuffle":"Mezclar","Slow Mode ON":"Modo lento activado","Some of the files will not be accepted":"Algunos de los archivos no ser\xe1n aceptados","This message was deleted...":"Este mensaje fue eliminado ...","Thread":"Hilo","Type your message":"Escribe tu mensaje","Unmute":"Activar sonido","Unpin":"Desprender","Upload type: \\"{{ type }}\\" is not allowed":"Tipo de carga: \\"{{ type }}\\" no est\xe1 permitido","User uploaded content":"Contenido subido por el usuario","Wait until all attachments have uploaded":"Espere hasta que se hayan cargado todos los archivos adjuntos","You have no channels currently":"Actualmente no tienes canales","You\'ve reached the maximum number of files":"Has alcanzado el n\xfamero m\xe1ximo de archivos","ban-command-args":"[@usuario] [texto]","ban-command-description":"Prohibir a un usuario","giphy-command-args":"[texto]","giphy-command-description":"Publicar un gif aleatorio en el canal","live":"En Vivo","mute-command-args":"[@usuario]","mute-command-description":"Silenciar a un usuario","replyCount_many":"{{ count }} respuestas","replyCount_one":"1 respuesta","replyCount_other":"{{ count }} respuestas","searchResultsCount_many":"{{ count }} resultados","searchResultsCount_one":"1 resultado","searchResultsCount_other":"{{ count }} resultados","this content could not be displayed":"este contenido no se pudo mostrar","unban-command-args":"[@usuario]","unban-command-description":"Quitar la prohibici\xf3n a un usuario","unmute-command-args":"[@usuario]","unmute-command-description":"Anular el silencio de un usuario","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} y {{ moreCount }} m\xe1s","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} y {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} y {{ secondUser }}","{{ imageCount }} more":"{{ imageCount }} m\xe1s","{{ memberCount }} members":"{{ memberCount }} miembros","{{ user }} has been muted":"{{ user }} ha sido silenciado","{{ user }} has been unmuted":"{{ user }} se ha desactivado","{{ user }} is typing...":"{{ user }} est\xe1 escribiendo...","{{ users }} and more are typing...":"{{ users }} y m\xe1s est\xe1n escribiendo...","{{ users }} and {{ user }} are typing...":"{{ users }} y {{ user }} est\xe1n escribiendo...","{{ watcherCount }} online":"{{ watcherCount }} en l\xednea","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 Adjunto..."}'),eT=JSON.parse('{"Attach files":"Pi\xe8ces jointes","Cancel":"Annuler","Channel Missing":"Canal Manquant","Close":"Fermer","Close emoji picker":"Fermer le s\xe9lecteur d\'emojis","Commands matching":"Correspondance des commandes","Connection failure, reconnecting now...":"\xc9chec de la connexion, reconnexion en cours...","Delete":"Supprimer","Delivered":"Publi\xe9","Drag your files here":"Glissez vos fichiers ici","Drag your files here to add to your post":"Glissez vos fichiers ici pour les ajouter \xe0 votre publication","Edit Message":"\xc9diter un message","Edit message request failed":"\xc9chec de la demande de modification du message","Emoji matching":"Correspondance emoji","Empty message...":"Message vide...","Error adding flag":"Erreur lors de l\'ajout du drapeau","Error connecting to chat, refresh the page to try again.":"Erreur de connexion au chat, rafra\xeechissez la page pour r\xe9essayer.","Error deleting message":"Erreur lors de la suppression du message","Error muting a user ...":"Erreur de mise en sourdine d\'un utilisateur ...","Error pinning message":"Erreur d\'\xe9pinglage du message","Error removing message pin":"Erreur lors de la suppression du code PIN du message","Error unmuting a user ...":"Erreur de d\xe9sactivation de la fonction sourdine pour un utilisateur ...","Error uploading file":"Erreur lors du t\xe9l\xe9chargement du fichier","Error uploading image":"Erreur lors de l\'envoi de l\'image","Error \xb7 Unsent":"Erreur - Non envoy\xe9","Error: {{ errorMessage }}":"Erreur : {{ errorMessage }}","Flag":"Signaler","Latest Messages":"Derniers messages","Load more":"Charger plus","Menu":"Menu","Message Failed \xb7 Click to try again":"\xc9chec de l\'envoi du message - Cliquez pour r\xe9essayer","Message Failed \xb7 Unauthorized":"\xc9chec de l\'envoi du message - Non autoris\xe9","Message deleted":"Message supprim\xe9","Message has been successfully flagged":"Le message a \xe9t\xe9 signal\xe9 avec succ\xe8s","Message pinned":"Message \xe9pingl\xe9","Mute":"Muet","New":"Nouveaux","New Messages!":"Nouveaux Messages!","No chats here yet…":"Pas encore de messages ici...","No results found":"Aucun r\xe9sultat trouv\xe9","Nothing yet...":"Aucun message...","Open emoji picker":"Ouvrez le s\xe9lecteur d\'emoji","People matching":"Correspondance de personnes","Pick your emoji":"Choisissez votre emoji","Pin":"\xc9pingle","Pinned by":"\xc9pingl\xe9 par","Reply":"R\xe9ponse","Reply to Message":"R\xe9pondre au message","Search":"Rechercher","Searching...":"Recherche...","Send":"Envoyer","Send message request failed":"\xc9chec de la demande d\'envoi de message","Sending...":"Envoi en cours...","Shuffle":"M\xe9langer","Slow Mode ON":"Mode lent activ\xe9","Some of the files will not be accepted":"Certains fichiers ne seront pas accept\xe9s","This message was deleted...":"Ce message a \xe9t\xe9 supprim\xe9...","Thread":"Fil de discussion","Type your message":"Saisissez votre message","Unmute":"D\xe9sactiver muet","Unpin":"D\xe9tacher","Upload type: \\"{{ type }}\\" is not allowed":"Le type de t\xe9l\xe9chargement: \\"{{ type }}\\" n\'est pas autoris\xe9","User uploaded content":"Contenu t\xe9l\xe9charg\xe9 par l\'utilisateur","Wait until all attachments have uploaded":"Attendez que toutes les pi\xe8ces jointes soient t\xe9l\xe9charg\xe9es","You have no channels currently":"Vous n\'avez actuellement aucun canal","You\'ve reached the maximum number of files":"Vous avez atteint le nombre maximum de fichiers","ban-command-args":"[@nomdutilisateur] [texte]","ban-command-description":"Bannir un utilisateur","giphy-command-args":"[texte]","giphy-command-description":"Poster un GIF al\xe9atoire dans le canal","live":"en direct","mute-command-args":"[@nomdutilisateur]","mute-command-description":"Muter un utilisateur","replyCount_many":"{{ count }} r\xe9ponses","replyCount_one":"1 r\xe9ponse","replyCount_other":"{{ count }} r\xe9ponses","searchResultsCount_many":"{{ count }} r\xe9sultats","searchResultsCount_one":"1 r\xe9sultat","searchResultsCount_other":"{{ count }} r\xe9sultats","this content could not be displayed":"ce contenu n\'a pu \xeatre affich\xe9","unban-command-args":"[@nomdutilisateur]","unban-command-description":"D\xe9bannir un utilisateur","unmute-command-args":"[@nomdutilisateur]","unmute-command-description":"D\xe9muter un utilisateur","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} et {{ moreCount }} autres","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} et {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} et {{ secondUser }}","{{ imageCount }} more":"{{ imageCount }} suppl\xe9mentaires","{{ memberCount }} members":"{{ memberCount }} membres","{{ user }} has been muted":"{{ user }} a \xe9t\xe9 mis en sourdine","{{ user }} has been unmuted":"{{ user }} n\'est plus en sourdine","{{ user }} is typing...":"{{ user }} is typing...","{{ users }} and more are typing...":"{{ users }} and more are typing...","{{ users }} and {{ user }} are typing...":"{{ users }} and {{ user }} are typing...","{{ watcherCount }} online":"{{ watcherCount }} en ligne","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 Pi\xe8ce jointe..."}'),eM=JSON.parse('{"Attach files":"फाइल्स अटैच करे","Cancel":"रद्द करें","Channel Missing":"चैनल उपलब्ध नहीं है","Close":"बंद करे","Close emoji picker":"इमोजी पिकर बंद करें","Commands matching":"मेल खाती है","Connection failure, reconnecting now...":"कनेक्शन विफल रहा, अब पुनः कनेक्ट हो रहा है ...","Delete":"डिलीट","Delivered":"पहुंच गया","Drag your files here":"अपनी फ़ाइलें यहाँ खींचें","Drag your files here to add to your post":"अपनी फ़ाइलें यहाँ खींचें और अपने पोस्ट में जोड़ने के लिए","Edit Message":"मैसेज में बदलाव करे","Edit message request failed":"संदेश संपादित करने का अनुरोध विफल रहा","Emoji matching":"इमोजी मिलान","Empty message...":"खाली संदेश ...","Error adding flag":"ध्वज जोड़ने में त्रुटि","Error connecting to chat, refresh the page to try again.":"चैट से कनेक्ट करने में त्रुटि, पेज को रिफ्रेश करें","Error deleting message":"संदेश हटाने में त्रुटि","Error muting a user ...":"यूजर को म्यूट करने का प्रयास फेल हुआ","Error pinning message":"संदेश को पिन करने में त्रुटि","Error removing message pin":"संदेश पिन निकालने में त्रुटि","Error unmuting a user ...":"यूजर को अनम्यूट करने का प्रयास फेल हुआ","Error uploading file":"फ़ाइल अपलोड करने में त्रुटि","Error uploading image":"छवि अपलोड करने में त्रुटि","Error \xb7 Unsent":"फेल","Error: {{ errorMessage }}":"फेल: {{ errorMessage }}","Flag":"फ्लैग करे","Latest Messages":"नवीनतम संदेश","Load more":"और लोड करें","Menu":"मेन्यू","Message Failed \xb7 Click to try again":"मैसेज फ़ैल - पुनः कोशिश करें","Message Failed \xb7 Unauthorized":"मैसेज फ़ैल - अनधिकृत","Message deleted":"मैसेज हटा दिया गया","Message has been successfully flagged":"मैसेज को फ्लैग कर दिया गया है","Message pinned":"संदेश पिन किया गया","Mute":"म्यूट करे","New":"नए","New Messages!":"नए मैसेज!","No chats here yet…":"यहां अभी तक कोई चैट नहीं...","No results found":"कोई परिणाम नहीं मिला","Nothing yet...":"कोई मैसेज नहीं है","Open emoji picker":"इमोजी पिकर खोलिये","People matching":"मेल खाते लोग","Pick your emoji":"इमोजी चूस करे","Pin":"पिन","Pinned by":"द्वारा पिन किया गया","Reply":"जवाब दे दो","Reply to Message":"संदेश का जवाब दें","Search":"खोज","Searching...":"खोज कर...","Send":"भेजे","Send message request failed":"संदेश भेजने का अनुरोध विफल रहा","Sending...":"भेजा जा रहा है","Shuffle":"मिश्रित करें","Slow Mode ON":"स्लो मोड ऑन","Some of the files will not be accepted":"कुछ फ़ाइलें स्वीकार नहीं की जाएंगी","This message was deleted...":"मैसेज हटा दिया गया","Thread":"रिप्लाई थ्रेड","Type your message":"अपना मैसेज लिखे","Unmute":"अनम्यूट","Unpin":"अनपिन","Upload type: \\"{{ type }}\\" is not allowed":"अपलोड प्रकार: \\"{{ type }}\\" की अनुमति नहीं है","User uploaded content":"उपयोगकर्ता अपलोड की गई सामग्री","Wait until all attachments have uploaded":"सभी अटैचमेंट अपलोड होने तक प्रतीक्षा करें","You have no channels currently":"आपके पास कोई चैनल नहीं है","You\'ve reached the maximum number of files":"आप अधिकतम फ़ाइलों तक पहुँच गए हैं","ban-command-args":"[@उपयोगकर्तनाम] [पाठ]","ban-command-description":"एक उपयोगकर्ता को प्रतिषेधित करें","giphy-command-args":"[पाठ]","giphy-command-description":"चैनल पर एक क्रॉफिल जीआइएफ पोस्ट करें","live":"लाइव","mute-command-args":"[@उपयोगकर्तनाम]","mute-command-description":"एक उपयोगकर्ता को म्यूट करें","replyCount_one":"1 रिप्लाई","replyCount_other":"{{ count }} रिप्लाई","searchResultsCount_one":"1 परिणाम","searchResultsCount_other":"{{ count }} परिणाम","this content could not be displayed":"यह कॉन्टेंट लोड नहीं हो पाया","unban-command-args":"[@उपयोगकर्तनाम]","unban-command-description":"एक उपयोगकर्ता को प्रतिषेध से मुक्त करें","unmute-command-args":"[@उपयोगकर्तनाम]","unmute-command-description":"एक उपयोगकर्ता को अनम्यूट करें","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} और {{ moreCount }} और","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} और {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} और {{ secondUser }}","{{ imageCount }} more":"{{ imageCount }} और","{{ memberCount }} members":"{{ memberCount }} मेंबर्स","{{ user }} has been muted":"{{ user }} को म्यूट कर दिया गया है","{{ user }} has been unmuted":"{{ user }} को अनम्यूट कर दिया गया है","{{ user }} is typing...":"{{ user }} is typing...","{{ users }} and more are typing...":"{{ users }} and more are typing...","{{ users }} and {{ user }} are typing...":"{{ users }} and {{ user }} are typing...","{{ watcherCount }} online":"{{ watcherCount }} online","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 अटैचमेंट"}'),eO=JSON.parse('{"Attach files":"Allega file","Cancel":"Annulla","Channel Missing":"Il canale non esiste","Close":"Chiudi","Close emoji picker":"Chiudi il selettore di emoji","Commands matching":"Comandi corrispondenti","Connection failure, reconnecting now...":"Connessione fallitta, riconnessione in corso...","Delete":"Cancella","Delivered":"Consegnato","Drag your files here":"Trascina i tuoi file qui","Drag your files here to add to your post":"Trascina i tuoi file qui per aggiungerli al tuo post","Edit Message":"Modifica messaggio","Edit message request failed":"Richiesta di modifica del messaggio non riuscita","Emoji matching":"Abbinamento emoji","Empty message...":"Message vuoto...","Error adding flag":"Errore durante l\'aggiunta del flag","Error connecting to chat, refresh the page to try again.":"Errore di connessione alla chat, aggiorna la pagina per riprovare","Error deleting message":"Errore durante l\'eliminazione del messaggio","Error muting a user ...":"Errore silenziando un utente ...","Error pinning message":"Errore durante il blocco del messaggio","Error removing message pin":"Errore durante la rimozione del PIN del messaggio","Error unmuting a user ...":"Errore riattivando le notifiche per l\'utente ...","Error uploading file":"Errore durante il caricamento del file","Error uploading image":"Errore durante il caricamento dell\'immagine","Error \xb7 Unsent":"Errore \xb7 Non inviato","Error: {{ errorMessage }}":"Errore: {{ errorMessage }}","Flag":"Segnala","Latest Messages":"Ultimi messaggi","Load more":"Carica di pi\xf9","Menu":"Men\xf9","Message Failed \xb7 Click to try again":"Invio messaggio fallito \xb7 Clicca per riprovare","Message Failed \xb7 Unauthorized":"Invio messaggio fallito \xb7 Non autorizzato","Message deleted":"Messaggio cancellato","Message has been successfully flagged":"Il messaggio \xe9 stato segnalato con successo","Message pinned":"Messaggio bloccato","Mute":"Silenzia","New":"Nuovo","New Messages!":"Nuovo messaggio!","No chats here yet…":"Non ci sono ancora messaggi qui...","No results found":"Nessun risultato trovato","Nothing yet...":"Ancora niente...","Open emoji picker":"Apri il selettore dellle emoji","People matching":"Persone che corrispondono","Pick your emoji":"Scegli la tua emoji","Pin":"Pin","Pinned by":"Appuntato da","Reply":"Rispondere","Reply to Message":"Rispondi al messaggio","Search":"Ricerca","Searching...":"Ricerca in corso ...","Send":"Invia","Send message request failed":"Invia messaggio di richiesta non riuscito","Sending...":"Invio in corso...","Shuffle":"Mescolare","Slow Mode ON":"Modalit\xe0 lenta attivata","Some of the files will not be accepted":"Alcuni dei file non saranno accettati","This message was deleted...":"Questo messaggio \xe9 stato cancellato","Thread":"Thread","Type your message":"Scrivi il tuo messaggio","Unmute":"Riattiva le notifiche","Unpin":"Sblocca","Upload type: \\"{{ type }}\\" is not allowed":"Tipo di caricamento: \\"{{ type }}\\" non \xe8 consentito","User uploaded content":"Contenuto caricato dall\'utente","Wait until all attachments have uploaded":"Attendi il caricamento di tutti gli allegati","You have no channels currently":"Al momento non sono presenti canali","You\'ve reached the maximum number of files":"Hai raggiunto il numero massimo di file","ban-command-args":"[@nomeutente] [testo]","ban-command-description":"Vietare un utente","giphy-command-args":"[testo]","giphy-command-description":"Pubblica un gif casuale sul canale","live":"live","mute-command-args":"[@nomeutente]","mute-command-description":"Silenzia un utente","replyCount_many":"{{ count }} risposte","replyCount_one":"Una risposta","replyCount_other":"{{ count }} risposte","searchResultsCount_many":"{{ count }} risultati","searchResultsCount_one":"1 risultato","searchResultsCount_other":"{{ count }} risultati","this content could not be displayed":"questo contenuto non pu\xf3 essere mostrato","unban-command-args":"[@nomeutente]","unban-command-description":"Togliere il divieto a un utente","unmute-command-args":"[@nomeutente]","unmute-command-description":"Togliere il silenzio a un utente","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} e altri {{ moreCount }}","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} e {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} e {{ secondUser }}","{{ imageCount }} more":"+ {{ imageCount }}","{{ memberCount }} members":"{{ memberCount }} membri","{{ user }} has been muted":"{{ user }} \xe9 stato silenziato","{{ user }} has been unmuted":"Notifiche riattivate per {{ user }}","{{ user }} is typing...":"{{ user }} is typing...","{{ users }} and more are typing...":"{{ users }} and more are typing...","{{ users }} and {{ user }} are typing...":"{{ users }} and {{ user }} are typing...","{{ watcherCount }} online":"{{ watcherCount }} online","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 Allegato..."}'),eP=JSON.parse('{"Attach files":"ファイルを添付する","Cancel":"キャンセル","Channel Missing":"チャネルがありません","Close":"閉める","Close emoji picker":"絵文字ピッカーを閉める","Commands matching":"一致するコマンド","Connection failure, reconnecting now...":"接続が失敗しました。再接続中...","Delete":"消去","Delivered":"配信しました","Drag your files here":"ここにファイルをドラッグ","Drag your files here to add to your post":"投稿に追加するためにここにファイルをドラッグ","Edit Message":"メッセージを編集","Edit message request failed":"メッセージの編集要求が失敗しました","Emoji matching":"絵文字マッチング","Empty message...":"空のメッセージ...","Error adding flag":"フラグを追加のエラーが発生しました","Error connecting to chat, refresh the page to try again.":"チャットへの接続ができませんでした。ページを更新してください。","Error deleting message":"メッセージを削除するエラーが発生しました","Error muting a user ...":"ユーザーを無音するエラーが発生しました...","Error pinning message":"メッセージをピンのエラーが発生しました","Error removing message pin":"メッセージのピンを削除のエラーが発生しました","Error unmuting a user ...":"ユーザーの無音解除のエラーが発生しました...","Error uploading file":"ファイルをアップロードのエラーが発生しました","Error uploading image":"画像をアップロードのエラーが発生しました","Error \xb7 Unsent":"エラー・未送信","Error: {{ errorMessage }}":"エラー: {{ errorMessage }}","Flag":"フラグ","Latest Messages":"最新のメッセージ","Load more":"もっと読み込む","Menu":"メニュー","Message Failed \xb7 Click to try again":"メッセージが失敗しました \xb7 クリックして再試行してください","Message Failed \xb7 Unauthorized":"メッセージが失敗しました \xb7 許可されていません","Message deleted":"メッセージが削除されました","Message has been successfully flagged":"メッセージに正常にフラグが付けられました","Message pinned":"メッセージにピンが付けられました","Mute":"無音","New":"新しい","New Messages!":"新しいメッセージ!","No chats here yet…":"ここにはまだチャットはありません…","No results found":"結果が見つかりません","Nothing yet...":"まだ何もありません...","Open emoji picker":"絵文字ピッカーを開く","People matching":"一致する人","Pick your emoji":"絵文字を選んでください","Pin":"ピン","Pinned by":"ピンした方","Reply":"返事","Reply to Message":"メッセージに返信","Search":"探す","Searching...":"検索中...","Send":"送信","Send message request failed":"メッセージ送信リクエストが失敗しました","Sending...":"送信中...","Shuffle":"シャッフル","Slow Mode ON":"スローモードオン","Some of the files will not be accepted":"一部のファイルは受け付けられません","This message was deleted...":"このメッセージは削除されました...","Thread":"スレッド","Type your message":"メッセージを入力してください","Unmute":"無音を解除する","Unpin":"ピンを解除する","Upload type: \\"{{ type }}\\" is not allowed":"アップロードタイプ:\\"{{ type }}\\"は許可されていません","User uploaded content":"ユーザーがアップロードしたコンテンツ","Wait until all attachments have uploaded":"すべての添付ファイルがアップロードされるまでお待ちください","You have no channels currently":"現在チャンネルはありません","You\'ve reached the maximum number of files":"ファイルの最大数に達しました","ban-command-args":"[@ユーザ名] [テキスト]","ban-command-description":"ユーザーを禁止する","giphy-command-args":"[テキスト]","giphy-command-description":"チャンネルにランダムなGIFを投稿する","live":"ライブ","mute-command-args":"[@ユーザ名]","mute-command-description":"ユーザーをミュートする","replyCount_one":"1件の返信","replyCount_other":"{{ count }} 返信","searchResultsCount_one":"1件の結果","searchResultsCount_other":"{{ count }}件の結果","this content could not be displayed":"このコンテンツは表示できませんでした","unban-command-args":"[@ユーザ名]","unban-command-description":"ユーザーの禁止を解除する","unmute-command-args":"[@ユーザ名]","unmute-command-description":"ユーザーのミュートを解除する","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} と {{ moreCount }} 他人","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} と {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} と {{ secondUser }}","{{ imageCount }} more":"{{ imageCount }} イメージ","{{ memberCount }} members":"{{ memberCount }} メンバー","{{ user }} has been muted":"{{ user }} 無音されています","{{ user }} has been unmuted":"{{ user }} 無音されていません","{{ user }} is typing...":"{{ user }} is typing...","{{ users }} and more are typing...":"{{ users }} and more are typing...","{{ users }} and {{ user }} are typing...":"{{ users }} and {{ user }} are typing...","{{ watcherCount }} online":"{{ watcherCount }} オンライン","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 アタッチメント..."}'),eR=JSON.parse('{"Attach files":"파일 첨부","Cancel":"취소","Channel Missing":"채널 누락","Close":"닫기","Close emoji picker":"이모티콘 선택기 닫기","Commands matching":"일치하는 명령","Connection failure, reconnecting now...":"연결 실패, 지금 다시 연결 중...","Delete":"삭제","Delivered":"배달됨","Drag your files here":"여기로 파일을 끌어다 놓으세요","Drag your files here to add to your post":"게시물에 추가하려면 파일을 여기로 끌어다 놓으세요","Edit Message":"메시지 수정","Edit message request failed":"메시지 수정 요청 실패","Emoji matching":"이모티콘 매칭","Empty message...":"빈 메시지...","Error adding flag":"플래그를 추가하는 동안 오류가 발생했습니다.","Error connecting to chat, refresh the page to try again.":"채팅에 연결하는 동안 오류가 발생했습니다. 페이지를 새로고침하여 다시 시도하세요.","Error deleting message":"메시지를 삭제하는 중에 오류가 발생했습니다.","Error muting a user ...":"사용자를 음소거하는 중에 오류가 발생했습니다...","Error pinning message":"메시지를 핀하는 중에 오류가 발생했습니다.","Error removing message pin":"메시지 핀을 제거하는 중에 오류가 발생했습니다.","Error unmuting a user ...":"사용자 음소거 해제 중 오류 발생...","Error uploading file":"파일 업로드 오류","Error uploading image":"이미지를 업로드하는 동안 오류가 발생했습니다.","Error \xb7 Unsent":"오류 \xb7 전송되지 않음","Error: {{ errorMessage }}":"오류: {{ errorMessage }}","Flag":"플래그","Latest Messages":"최신 메시지","Load more":"더 불러오기","Menu":"메뉴","Message Failed \xb7 Click to try again":"메시지 실패 \xb7 다시 시도하려면 클릭하세요.","Message Failed \xb7 Unauthorized":"메시지 실패 \xb7 승인되지 않음","Message deleted":"메시지가 삭제되었습니다.","Message has been successfully flagged":"메시지에 플래그가 지정되었습니다.","Message pinned":"메시지 핀했습니다","Mute":"무음","New":"새로운","New Messages!":"새 메시지!","No chats here yet…":"아직 채팅이 없습니다...","No results found":"검색 결과가 없습니다","Nothing yet...":"아직 아무것도...","Open emoji picker":"이모티콘 선택기 열기","People matching":"일치하는 사람","Pick your emoji":"이모티콘 선택","Pin":"핀","Pinned by":"핀했던 분:","Reply":"답장","Reply to Message":"메시지에 답장","Search":"찾다","Searching...":"수색...","Send":"보내다","Send message request failed":"메시지 보내기 요청 실패","Sending...":"배상중...","Shuffle":"셔플","Slow Mode ON":"슬로우 모드 켜짐","Some of the files will not be accepted":"일부 파일은 허용되지 않을 수 있습니다","This message was deleted...":"이 메시지는 삭제되었습니다...","Thread":"스레드","Type your message":"메시지 입력","Unmute":"음소거 해제","Unpin":"핀 해제","Upload type: \\"{{ type }}\\" is not allowed":"업로드 유형: \\"{{ type }}\\"은(는) 허용되지 않습니다.","User uploaded content":"사용자 업로드 콘텐츠","Wait until all attachments have uploaded":"모든 첨부 파일이 업로드될 때까지 기다립니다.","You have no channels currently":"현재 채널이 없습니다.","You\'ve reached the maximum number of files":"최대 파일 수에 도달했습니다.","ban-command-args":"[@사용자이름] [텍스트]","ban-command-description":"사용자를 차단","giphy-command-args":"[텍스트]","giphy-command-description":"채널에 무작위 GIF 게시","live":"라이브","mute-command-args":"[@사용자이름]","mute-command-description":"사용자 음소거","replyCount_one":"답장 1개","replyCount_other":"{{ count }} 답장","searchResultsCount_one":"1개의 결과","searchResultsCount_other":"{{ count }}개 결과","this content could not be displayed":"이 콘텐츠를 표시할 수 없습니다","unban-command-args":"[@사용자이름]","unban-command-description":"사용자 차단 해제","unmute-command-args":"[@사용자이름]","unmute-command-description":"사용자 음소거 해제","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} 그리고 {{ moreCount }}명 더","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} 그리고 {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} 그리고 {{ secondUser }}","{{ imageCount }} more":"{{ imageCount }}개 더","{{ memberCount }} members":"{{ memberCount }}명","{{ user }} has been muted":"{{ user }} 음소거되었습니다","{{ user }} has been unmuted":"{{ user }} 음소거가 해제되었습니다","{{ user }} is typing...":"{{ user }} is typing...","{{ users }} and more are typing...":"{{ users }} and more are typing...","{{ users }} and {{ user }} are typing...":"{{ users }} and {{ user }} are typing...","{{ watcherCount }} online":"{{ watcherCount }} 온라인","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 부착..."}'),ej=JSON.parse('{"Attach files":"Bijlage toevoegen","Cancel":"Annuleer","Channel Missing":"Kanaal niet gevonden","Close":"Sluit","Close emoji picker":"Sluit de emoji-kiezer","Commands matching":"Bijpassende opdrachten","Connection failure, reconnecting now...":"Probleem met de verbinding, opnieuw verbinding maken...","Delete":"Verwijder","Delivered":"Afgeleverd","Drag your files here":"Sleep je bestanden hier naartoe","Drag your files here to add to your post":"Sleep je bestanden hier naartoe om aan je bericht toe te voegen","Edit Message":"Pas bericht aan","Edit message request failed":"Verzoek om bericht bewerken mislukt","Emoji matching":"Emoji-overeenkomsten","Empty message...":"Leeg bericht...","Error adding flag":"Fout bij toevoegen van vlag","Error connecting to chat, refresh the page to try again.":"Fout bij het verbinden, ververs de pagina om nogmaals te proberen","Error deleting message":"Fout bij verwijderen van bericht","Error muting a user ...":"Fout bij het muten van de gebruiker","Error pinning message":"Fout bij vastzetten van bericht","Error removing message pin":"Fout bij verwijderen van berichtpin","Error unmuting a user ...":"Fout bij het unmuten van de gebruiker","Error uploading file":"Fout bij uploaden bestand","Error uploading image":"Fout bij uploaden afbeelding","Error \xb7 Unsent":"Error: \xb7 niet verzonden","Error: {{ errorMessage }}":"Error: {{ errorMessage }}","Flag":"Markeer","Latest Messages":"Laatste berichten","Load more":"Meer laden","Menu":"Menu","Message Failed \xb7 Click to try again":"Bericht mislukt, klik om het nogmaals te proberen","Message Failed \xb7 Unauthorized":"Bericht mislukt, ongeautoriseerd","Message deleted":"Bericht verwijderd","Message has been successfully flagged":"Bericht is succesvol gemarkeerd","Message pinned":"Bericht vastgezet","Mute":"Mute","New":"Nieuwe","New Messages!":"Nieuwe Berichten!","No chats here yet…":"Nog geen chats hier...","No results found":"Geen resultaten gevonden","Nothing yet...":"Nog niets ...","Open emoji picker":"Open emojipicker","People matching":"Mensen die matchen","Pick your emoji":"Kies je emoji","Pin":"Pin","Pinned by":"Vastgemaakt door","Reply":"Antwoord","Reply to Message":"Antwoord op bericht","Search":"Zoeken","Searching...":"Zoeken...","Send":"Verstuur","Send message request failed":"Verzoek om bericht te verzenden mislukt","Sending...":"Aan het verzenden...","Shuffle":"Schudden","Slow Mode ON":"Langzame modus aan","Some of the files will not be accepted":"Sommige bestanden zullen niet worden geaccepteerd","This message was deleted...":"Dit bericht was verwijderd","Thread":"Draadje","Type your message":"Type je bericht","Unmute":"Unmute","Unpin":"Losmaken","Upload type: \\"{{ type }}\\" is not allowed":"Uploadtype: \\"{{ type }}\\" is niet toegestaan","User uploaded content":"Gebruikersge\xfcploade inhoud","Wait until all attachments have uploaded":"Wacht tot alle bijlagen zijn ge\xfcpload","You have no channels currently":"Er zijn geen chats beschikbaar","You\'ve reached the maximum number of files":"Je hebt het maximale aantal bestanden bereikt","ban-command-args":"[@gebruikersnaam] [tekst]","ban-command-description":"Een gebruiker verbannen","giphy-command-args":"[tekst]","giphy-command-description":"Plaats een willekeurige gif in het kanaal","live":"live","mute-command-args":"[@gebruikersnaam]","mute-command-description":"Een gebruiker dempen","replyCount_one":"1 antwoord","replyCount_other":"{{ count }} antwoorden","searchResultsCount_one":"1 resultaat","searchResultsCount_other":"{{ count }} resultaten","this content could not be displayed":"Deze inhoud kan niet weergegeven worden","unban-command-args":"[@gebruikersnaam]","unban-command-description":"Een gebruiker debannen","unmute-command-args":"[@gebruikersnaam]","unmute-command-description":"Een gebruiker niet meer dempen","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} en {{ moreCount }} meer","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} en {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} en {{ secondUser }}","{{ imageCount }} more":"+{{ imageCount }}","{{ memberCount }} members":"{{ memberCount }} deelnemers","{{ user }} has been muted":"{{ user }} is muted","{{ user }} has been unmuted":"{{ user }} is unmuted","{{ user }} is typing...":"{{ user }} is typing...","{{ users }} and more are typing...":"{{ users }} and more are typing...","{{ users }} and {{ user }} are typing...":"{{ users }} and {{ user }} are typing...","{{ watcherCount }} online":"{{ watcherCount }} online","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 Bijlage..."}'),eL=JSON.parse('{"Attach files":"Anexar arquivos","Cancel":"Cancelar","Channel Missing":"Canal ausente","Close":"Fechar","Close emoji picker":"Fechar seletor de emoji","Commands matching":"Comandos correspondentes","Connection failure, reconnecting now...":"Falha de conex\xe3o, reconectando agora...","Delete":"Excluir","Delivered":"Entregue","Drag your files here":"Arraste seus arquivos aqui","Drag your files here to add to your post":"Arraste seus arquivos aqui para adicionar ao seu post","Edit Message":"Editar Mensagem","Edit message request failed":"O pedido de edi\xe7\xe3o da mensagem falhou","Emoji matching":"Emoji correspondente","Empty message...":"Mensagem vazia...","Error adding flag":"Erro ao reportar","Error connecting to chat, refresh the page to try again.":"Erro ao conectar ao bate-papo, atualize a p\xe1gina para tentar novamente.","Error deleting message":"Erro ao deletar mensagem","Error muting a user ...":"Erro ao silenciar um usu\xe1rio...","Error pinning message":"Erro ao fixar mensagem","Error removing message pin":"Erro ao remover o PIN da mensagem","Error unmuting a user ...":"Erro ao ativar o som de um usu\xe1rio...","Error uploading file":"Erro ao enviar arquivo","Error uploading image":"Erro ao carregar a imagem","Error \xb7 Unsent":"Erro \xb7 N\xe3o enviado","Error: {{ errorMessage }}":"Erro: {{ errorMessage }}","Flag":"Reportar","Latest Messages":"Mensagens mais recentes","Load more":"Carregar mais","Menu":"Menu","Message Failed \xb7 Click to try again":"A mensagem falhou \xb7 Clique para tentar novamente","Message Failed \xb7 Unauthorized":"A mensagem falhou \xb7 n\xe3o autorizado","Message deleted":"Mensagem apagada","Message has been successfully flagged":"A mensagem foi reportada com sucesso","Message pinned":"Mensagem fixada","Mute":"Mudo","New":"Novo","New Messages!":"Novas mensagens!","No chats here yet…":"Ainda n\xe3o h\xe1 conversas aqui...","No results found":"Nenhum resultado encontrado","Nothing yet...":"Nada ainda...","Open emoji picker":"Abrir seletor de emoji","People matching":"Pessoas correspondentes","Pick your emoji":"Escolha o seu emoji","Pin":"Fixar","Pinned by":"Fixado por","Reply":"Responder","Reply to Message":"Responder a mensagem","Search":"Procurar","Searching...":"Procurando...","Send":"Enviar","Send message request failed":"O pedido de envio de mensagem falhou","Sending...":"Enviando...","Shuffle":"Embaralhar","Slow Mode ON":"Modo lento LIGADO","Some of the files will not be accepted":"Alguns dos arquivos n\xe3o ser\xe3o aceitos","This message was deleted...":"Esta mensagem foi exclu\xedda...","Thread":"Fio","Type your message":"Digite sua mensagem","Unmute":"Ativar som","Unpin":"Liberar","Upload type: \\"{{ type }}\\" is not allowed":"Tipo de upload: \\"{{ type }}\\" n\xe3o \xe9 permitido","User uploaded content":"Conte\xfado enviado pelo usu\xe1rio","Wait until all attachments have uploaded":"Espere at\xe9 que todos os anexos tenham sido carregados","You have no channels currently":"Voc\xea n\xe3o tem canais atualmente","You\'ve reached the maximum number of files":"Voc\xea atingiu o n\xfamero m\xe1ximo de arquivos","ban-command-args":"[@nomedeusu\xe1rio] [texto]","ban-command-description":"Banir um usu\xe1rio","giphy-command-args":"[texto]","giphy-command-description":"Postar um gif aleat\xf3rio no canal","live":"ao vivo","mute-command-args":"[@nomedeusu\xe1rio]","mute-command-description":"Silenciar um usu\xe1rio","replyCount_many":"{{ count }} respostas","replyCount_one":"1 resposta","replyCount_other":"{{ count }} respostas","searchResultsCount_many":"{{ count }} resultados","searchResultsCount_one":"1 resultado","searchResultsCount_other":"{{ count }} resultados","this content could not be displayed":"este conte\xfado n\xe3o p\xf4de ser exibido","unban-command-args":"[@nomedeusu\xe1rio]","unban-command-description":"Desbanir um usu\xe1rio","unmute-command-args":"[@nomedeusu\xe1rio]","unmute-command-description":"Retirar o silenciamento de um usu\xe1rio","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} e mais {{ moreCount }}","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} e {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} e {{ secondUser }}","{{ imageCount }} more":"{{ imageCount }} mais","{{ memberCount }} members":"{{ memberCount }} membros","{{ user }} has been muted":"{{ user }} foi silenciado","{{ user }} has been unmuted":"{{ user }} foi reativado","{{ user }} is typing...":"{{ user }} is typing...","{{ users }} and more are typing...":"{{ users }} and more are typing...","{{ users }} and {{ user }} are typing...":"{{ users }} and {{ user }} are typing...","{{ watcherCount }} online":"{{ watcherCount }} online","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 Anexo..."}'),eF=JSON.parse('{"Attach files":"Прикрепить файлы","Cancel":"Отмена","Channel Missing":"Канал не найден","Close":"Закрыть","Close emoji picker":"Закрыть окно выбора смайлов","Commands matching":"Соответствие команд","Connection failure, reconnecting now...":"Ошибка соединения, переподключение...","Delete":"Удалить","Delivered":"Отправлено","Drag your files here":"Перетащите ваши файлы сюда","Drag your files here to add to your post":"Перетащите ваши файлы сюда, чтобы добавить их в ваш пост","Edit Message":"Редактировать сообщение","Edit message request failed":"Не удалось изменить запрос сообщения","Emoji matching":"Соответствие эмодзи","Empty message...":"Пустое сообщение...","Error adding flag":"Ошибка добавления флага","Error connecting to chat, refresh the page to try again.":"Ошибка подключения к чату, обновите страницу чтобы попробовать снова.","Error deleting message":"Ошибка при удалении сообщения","Error muting a user ...":"Ошибка отключения уведомлений от пользователя...","Error pinning message":"Сообщение об ошибке при закреплении","Error removing message pin":"Ошибка при удалении булавки сообщения","Error unmuting a user ...":"Ошибка включения уведомлений...","Error uploading file":"Ошибка при загрузке файла","Error uploading image":"Ошибка загрузки изображения","Error \xb7 Unsent":"Ошибка \xb7 Не отправлено","Error: {{ errorMessage }}":"Ошибка: {{ errorMessage }}","Flag":"Пожаловаться","Latest Messages":"Последние сообщения","Load more":"Загрузить больше","Menu":"Меню","Message Failed \xb7 Click to try again":"Ошибка отправки сообщения \xb7 Нажмите чтобы повторить","Message Failed \xb7 Unauthorized":"Ошибка отправки сообщения \xb7 Неавторизованный","Message deleted":"Сообщение удалено","Message has been successfully flagged":"Жалоба на сообщение была принята","Message pinned":"Сообщение закреплено","Mute":"Отключить уведомления","New":"Новые","New Messages!":"Новые сообщения!","No chats here yet…":"Здесь еще нет чатов...","No results found":"результаты не найдены","Nothing yet...":"Пока ничего нет...","Open emoji picker":"Выбрать emoji","People matching":"Соответствующие люди","Pick your emoji":"Выберите свой emoji","Pin":"Штырь","Pinned by":"Закреплено","Reply":"Отвечать","Reply to Message":"Ответить на сообщение","Search":"Поиск","Searching...":"Ищем...","Send":"Отправить","Send message request failed":"Не удалось отправить запрос на отправку сообщения","Sending...":"Отправка...","Shuffle":"Перемешать","Slow Mode ON":"Медленный режим включен","Some of the files will not be accepted":"Некоторые файлы не будут приняты","This message was deleted...":"Сообщение было удалено...","Thread":"Ветка","Type your message":"Ваше сообщение","Unmute":"Включить уведомления","Unpin":"Открепить","Upload type: \\"{{ type }}\\" is not allowed":"Тип загрузки: \\"{{ type }}\\" не разрешен","User uploaded content":"Пользователь загрузил контент","Wait until all attachments have uploaded":"Подождите, пока все вложения загрузятся","You have no channels currently":"У вас нет каналов в данный момент","You\'ve reached the maximum number of files":"Вы достигли максимального количества файлов","ban-command-args":"[@имяпользователя] [текст]","ban-command-description":"Заблокировать пользователя","giphy-command-args":"[текст]","giphy-command-description":"Опубликовать случайную GIF-анимацию в канале","live":"В прямом эфире","mute-command-args":"[@имяпользователя]","mute-command-description":"Выключить микрофон у пользователя","replyCount_few":"{{ count }} ответов","replyCount_many":"{{ count }} ответов","replyCount_one":"1 ответ","replyCount_other":"{{ count }} ответов","searchResultsCount_few":"{{ count }} результата","searchResultsCount_many":"{{ count }} результатов","searchResultsCount_one":"1 результат","searchResultsCount_other":"{{ count }} результатов","this content could not be displayed":"Этот контент не может быть отображен в данный момент","unban-command-args":"[@имяпользователя]","unban-command-description":"Разблокировать пользователя","unmute-command-args":"[@имяпользователя]","unmute-command-description":"Включить микрофон у пользователя","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} и {{ moreCount }} еще","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }} и {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} и {{ secondUser }}","{{ imageCount }} more":"Ещё {{ imageCount }}","{{ memberCount }} members":"{{ memberCount }} члены","{{ user }} has been muted":"Вы отписались от уведомлений от {{ user }}","{{ user }} has been unmuted":"Уведомления от {{ user }} были включены","{{ user }} is typing...":"{{ user }} is typing...","{{ users }} and more are typing...":"{{ users }} and more are typing...","{{ users }} and {{ user }} are typing...":"{{ users }} and {{ user }} are typing...","{{ watcherCount }} online":"{{ watcherCount }} в сети","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 Вложение..."}'),eA=JSON.parse('{"Attach files":"Dosya ekle","Cancel":"İptal","Channel Missing":"Kanal bulunamıyor","Close":"Kapat","Close emoji picker":"Emoji se\xe7iciyi kapat","Commands matching":"Eşleşen komutlar","Connection failure, reconnecting now...":"Bağlantı hatası, tekrar bağlanılıyor...","Delete":"Sil","Delivered":"İletildi","Drag your files here":"Dosyalarınızı buraya s\xfcr\xfckleyin","Drag your files here to add to your post":"G\xf6nderinize eklemek i\xe7in dosyalarınızı buraya s\xfcr\xfckleyin","Edit Message":"Mesajı D\xfczenle","Edit message request failed":"Mesaj d\xfczenleme isteği başarısız oldu","Emoji matching":"Emoji eşleştirme","Empty message...":"Boş mesaj...","Error adding flag":"Bayrak eklenirken hata oluştu","Error connecting to chat, refresh the page to try again.":"Bağlantı hatası, sayfayı yenileyip tekrar deneyin.","Error deleting message":"Mesaj silinirken hata oluştu","Error muting a user ...":"Kullanıcıyı sessize alırken hata oluştu ...","Error pinning message":"Mesaj sabitlenirken hata oluştu","Error removing message pin":"Mesaj PIN\'i kaldırılırken hata oluştu","Error unmuting a user ...":"Kullanıcının sesini a\xe7arken hata oluştu ...","Error uploading file":"Dosya y\xfcklenirken hata oluştu","Error uploading image":"Resmi y\xfcklerken hata","Error \xb7 Unsent":"Hata \xb7 G\xf6nderilemedi","Error: {{ errorMessage }}":"Hata: {{ errorMessage }}","Flag":"Bayrak","Latest Messages":"Son Mesajlar","Load more":"Daha fazla y\xfckle","Menu":"Men\xfc","Message Failed \xb7 Click to try again":"Mesaj Başarısız \xb7 Tekrar denemek i\xe7in tıklayın","Message Failed \xb7 Unauthorized":"Mesaj Başarısız \xb7 Yetkisiz","Message deleted":"Mesaj silindi","Message has been successfully flagged":"Mesaj başarıyla bayraklandı","Message pinned":"Mesaj sabitlendi","Mute":"Sessiz","New":"Yeni","New Messages!":"Yeni Mesajlar!","No chats here yet…":"Hen\xfcz burada sohbet yok...","No results found":"Sonu\xe7 bulunamadı","Nothing yet...":"Şimdilik hi\xe7bir şey...","Open emoji picker":"Emoji klavyesini a\xe7","People matching":"Eşleşen kişiler","Pick your emoji":"Emoji se\xe7in","Pin":"Toplu iğne","Pinned by":"Sabitleyen","Reply":"Cevapla","Reply to Message":"Mesajı Cevapla","Search":"Arama","Searching...":"Aranıyor...","Send":"G\xf6nder","Send message request failed":"Mesaj g\xf6nderme isteği başarısız oldu","Sending...":"G\xf6nderiliyor...","Shuffle":"Karıştır","Slow Mode ON":"Yavaş Mod A\xe7ık","Some of the files will not be accepted":"Bazı dosyalar kabul edilmeyecektir","This message was deleted...":"Bu mesaj silindi","Thread":"Konu","Type your message":"Mesajınızı yazın","Unmute":"Sesini a\xe7","Unpin":"Sabitlemeyi kaldır","Upload type: \\"{{ type }}\\" is not allowed":"Y\xfckleme t\xfcr\xfc: \\"{{ type }}\\" izin verilmez","User uploaded content":"Kullanıcı tarafından y\xfcklenen i\xe7erik","Wait until all attachments have uploaded":"T\xfcm ekler y\xfcklenene kadar bekleyin","You have no channels currently":"Hen\xfcz kanalınız yok","You\'ve reached the maximum number of files":"Maksimum dosya sayısına ulaştınız","ban-command-args":"[@kullanıcıadı] [metin]","ban-command-description":"Bir kullanıcıyı yasakla","giphy-command-args":"[metin]","giphy-command-description":"Rastgele bir gif\'i kanala g\xf6nder","live":"canlı","mute-command-args":"[@kullanıcıadı]","mute-command-description":"Bir kullanıcının sesini kapat","replyCount_one":"1 cevap","replyCount_other":"{{ count }} cevaplar","searchResultsCount_one":"1 sonu\xe7","searchResultsCount_other":"{{ count }} sonu\xe7","this content could not be displayed":"bu i\xe7erik g\xf6sterilemiyor","unban-command-args":"[@kullanıcıadı]","unban-command-description":"Bir kullanıcının yasağını kaldır","unmute-command-args":"[@kullanıcıadı]","unmute-command-description":"Bir kullanıcının sesini a\xe7","{{ commaSeparatedUsers }} and {{ moreCount }} more":"{{ commaSeparatedUsers }} ve {{ moreCount }} daha","{{ commaSeparatedUsers }}, and {{ lastUser }}":"{{ commaSeparatedUsers }}, ve {{ lastUser }}","{{ firstUser }} and {{ secondUser }}":"{{ firstUser }} ve {{ secondUser }}","{{ imageCount }} more":"{{ imageCount }} adet daha","{{ memberCount }} members":"{{ memberCount }} \xfcyeler","{{ user }} has been muted":"{{ user }} sessize alındı","{{ user }} has been unmuted":"{{ user }} sesi a\xe7ıldı","{{ user }} is typing...":"{{ user }} is typing...","{{ users }} and more are typing...":"{{ users }} and more are typing...","{{ users }} and {{ user }} are typing...":"{{ users }} and {{ user }} are typing...","{{ watcherCount }} online":"{{ watcherCount }} \xe7evrimi\xe7i","\uD83C\uDFD9 Attachment...":"\uD83C\uDFD9 Ek..."}');n(87458),n(90820),n(10904),n(26586),n(25339),n(39055),n(35074),n(8865),n(37205),n(28442),n(40220),n(78568);var eN="translation";ec().extend(ep()),ec().extend(ex()),ec().extend(eE()),ec().updateLocale("de",{calendar:{lastDay:"[gestern um] LT",lastWeek:"[letzten] dddd [um] LT",nextDay:"[morgen um] LT",nextWeek:"dddd [um] LT",sameDay:"[heute um] LT",sameElse:"L"}}),ec().updateLocale("es",{calendar:{lastDay:"[ayer a las] LT",lastWeek:"[pasado] dddd [a] LT",nextDay:"[ma\xf1ana a] LT",nextWeek:"dddd [a] LT",sameDay:"[hoy a las] LT",sameElse:"L"}}),ec().updateLocale("fr",{calendar:{lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",sameDay:"[Aujourd’hui \xe0] LT",sameElse:"L"}}),ec().updateLocale("hi",{calendar:{lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",sameDay:"[आज] LT",sameElse:"L"},meridiem:function(e){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},meridiemHour:function(e,t){if(12===e&&(e=0),"रात"===t)return e<4?e:e+12;if("सुबह"===t);else if("दोपहर"===t)return e>=10?e:e+12;else if("शाम"===t)return e+12;return e},meridiemParse:/रात|सुबह|दोपहर|शाम/}),ec().updateLocale("it",{calendar:{lastDay:"[Ieri alle] LT",lastWeek:"[lo scorso] dddd [alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",sameDay:"[Oggi alle] LT",sameElse:"L"}}),ec().updateLocale("ja",{calendar:{lastDay:"[昨日] LT",lastWeek:"dddd LT",nextDay:"[明日] LT",nextWeek:"[次の] dddd LT",sameDay:"[今日] LT",sameElse:"L"}}),ec().updateLocale("ko",{calendar:{lastDay:"[어제] LT",lastWeek:"[지난] dddd LT",nextDay:"[내일] LT",nextWeek:"dddd LT",sameDay:"[오늘] LT",sameElse:"L"}}),ec().updateLocale("nl",{calendar:{lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",sameDay:"[vandaag om] LT",sameElse:"L"}}),ec().updateLocale("pt",{calendar:{lastDay:"[ontem \xe0s] LT",lastWeek:"dddd [passada \xe0s] LT",nextDay:"[amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",sameDay:"[hoje \xe0s] LT",sameElse:"L"}}),ec().updateLocale("ru",{calendar:{lastDay:"[Вчера, в] LT",nextDay:"[Завтра, в] LT",sameDay:"[Сегодня, в] LT"}}),ec().updateLocale("tr",{calendar:{lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",sameDay:"[bug\xfcn saat] LT",sameElse:"L"}});var eI={formats:{},months:["January","February","March","April","May","June","July","August","September","October","November","December"],relativeTime:{},weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},eB=function(e){return void 0!==e.extend},eU=function(e){return void 0!==e.tz},ez={DateTimeParser:ec(),dayjsLocaleConfigForLanguage:null,debug:!1,disableDateTimeTranslations:!1,language:"en",logger:function(e){return console.warn(e)}},eH=function(e){return e},eV=function(){function e(e){void 0===e&&(e={});var t,n,i,o,a,s,l,u,c,d,f,h,p,m,g=this;this.i18nInstance=el.createInstance(),this.Dayjs=null,this.setLanguageCallback=function(){return null},this.initialized=!1,this.t=eH,this.translations={de:((t={})[eN]=eC,t),en:((n={})[eN]=ek,n),es:((i={})[eN]=eS,i),fr:((o={})[eN]=eT,o),hi:((a={})[eN]=eM,a),it:((s={})[eN]=eO,s),ja:((l={})[eN]=eP,l),ko:((u={})[eN]=eR,u),nl:((c={})[eN]=ej,c),pt:((d={})[eN]=eL,d),ru:((f={})[eN]=eF,f),tr:((h={})[eN]=eA,h)},this.dayjsLocales={},this.localeExists=function(e){return!!g.isCustomDateTimeParser||Object.keys(ec().Ls).indexOf(e)>-1},this.validateCurrentLanguage=function(){-1===Object.keys(g.translations).indexOf(g.currentLanguage)&&(g.logger("Streami18n: '".concat(g.currentLanguage,"' language is not registered.")+" Please make sure to call streami18n.registerTranslation('".concat(g.currentLanguage,"', {...}) or ")+"use one the built-in supported languages - ".concat(g.getAvailableLanguages())),g.currentLanguage="en")},this.geti18Instance=function(){return g.i18nInstance},this.getAvailableLanguages=function(){return Object.keys(g.translations)},this.getTranslations=function(){return g.translations};var v=(0,r.pi)((0,r.pi)({},ez),e);this.logger=v.logger,this.currentLanguage=v.language,this.DateTimeParser=v.DateTimeParser,this.timezone=v.timezone;try{this.DateTimeParser&&eB(this.DateTimeParser)&&(this.DateTimeParser.extend(eg()),this.DateTimeParser.extend(ef()),this.DateTimeParser.extend(ey()),this.DateTimeParser.extend(ew()))}catch(e){throw Error("Streami18n: Looks like you wanted to provide Dayjs instance, but something went wrong while adding plugins ".concat(e))}this.isCustomDateTimeParser=!!e.DateTimeParser;var y=v.translationsForLanguage;y&&(this.translations[this.currentLanguage]=((p={})[eN]=this.translations[this.currentLanguage]&&this.translations[this.currentLanguage][eN]?(0,r.pi)((0,r.pi)({},this.translations[this.currentLanguage][eN]),y):y,p)),this.translations[this.currentLanguage]||(this.translations[this.currentLanguage]=((m={})[eN]={},m)),this.i18nextConfig={debug:v.debug,fallbackLng:!1,interpolation:{escapeValue:!1},keySeparator:!1,lng:this.currentLanguage,nsSeparator:!1},v.parseMissingKeyHandler&&(this.i18nextConfig.parseMissingKeyHandler=v.parseMissingKeyHandler),this.validateCurrentLanguage();var b=v.dayjsLocaleConfigForLanguage;b?this.addOrUpdateLocale(this.currentLanguage,(0,r.pi)({},b)):this.localeExists(this.currentLanguage)||this.logger("Streami18n: Streami18n(...) - Locale config for ".concat(this.currentLanguage," does not exist in momentjs.")+"Please import the locale file using \"import 'moment/locale/".concat(this.currentLanguage,"';\" in your app or ")+"register the locale config with Streami18n using registerTranslation(language, translation, customDayjsLocale)"),this.tDateTimeParser=function(e){var t=v.disableDateTimeTranslations||!g.localeExists(g.currentLanguage)?"en":g.currentLanguage;return eB(g.DateTimeParser)?eU(g.DateTimeParser)?g.DateTimeParser(e).tz(g.timezone).locale(t):g.DateTimeParser(e).locale(t):eU(g.DateTimeParser)&&g.timezone?g.DateTimeParser(e).tz(g.timezone).locale(t):g.DateTimeParser(e).locale(t)}}return e.prototype.init=function(){return(0,r.mG)(this,void 0,void 0,function(){var e,t;return(0,r.Jh)(this,function(n){switch(n.label){case 0:this.validateCurrentLanguage(),n.label=1;case 1:return n.trys.push([1,3,,4]),e=this,[4,this.i18nInstance.init((0,r.pi)((0,r.pi)({},this.i18nextConfig),{lng:this.currentLanguage,resources:this.translations}))];case 2:return e.t=n.sent(),this.initialized=!0,[3,4];case 3:return t=n.sent(),this.logger("Something went wrong with init: ".concat(JSON.stringify(t))),[3,4];case 4:return[2,{t:this.t,tDateTimeParser:this.tDateTimeParser}]}})})},e.prototype.getTranslators=function(){return(0,r.mG)(this,void 0,void 0,function(){return(0,r.Jh)(this,function(e){switch(e.label){case 0:if(this.initialized)return[3,2];return this.dayjsLocales[this.currentLanguage]&&this.addOrUpdateLocale(this.currentLanguage,this.dayjsLocales[this.currentLanguage]),[4,this.init()];case 1:return[2,e.sent()];case 2:return[2,{t:this.t,tDateTimeParser:this.tDateTimeParser}]}})})},e.prototype.registerTranslation=function(e,t,n){var i;if(!t){this.logger("Streami18n: registerTranslation(language, translation, customDayjsLocale) called without translation");return}this.translations[e]?this.translations[e][eN]=t:this.translations[e]=((i={})[eN]=t,i),n?this.dayjsLocales[e]=(0,r.pi)({},n):this.localeExists(e)||this.logger("Streami18n: registerTranslation(language, translation, customDayjsLocale) - "+"Locale config for ".concat(e," does not exist in Dayjs.")+"Please import the locale file using \"import 'dayjs/locale/".concat(e,"';\" in your app or ")+"register the locale config with Streami18n using registerTranslation(language, translation, customDayjsLocale)"),this.initialized&&this.i18nInstance.addResources(e,eN,t)},e.prototype.addOrUpdateLocale=function(e,t){this.localeExists(e)?ec().updateLocale(e,(0,r.pi)({},t)):ec().locale((0,r.pi)((0,r.pi)({name:e},eI),t),void 0,!0)},e.prototype.setLanguage=function(e){return(0,r.mG)(this,void 0,void 0,function(){var t,n;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if(this.currentLanguage=e,!this.initialized)return[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.i18nInstance.changeLanguage(e)];case 2:return t=r.sent(),this.dayjsLocales[e]&&this.addOrUpdateLocale(this.currentLanguage,this.dayjsLocales[this.currentLanguage]),this.setLanguageCallback(t),[2,t];case 3:return n=r.sent(),this.logger("Failed to set language: ".concat(JSON.stringify(n))),[2,this.t];case 4:return[2]}})})},e.prototype.registerSetLanguageCallback=function(e){this.setLanguageCallback=e},e}()},35972:function(e,t,n){"use strict";n.d(t,{fh:function(){return i}});var r=n(33600);function i(e){var t=e.calendar,n=e.format,i=e.formatDate,o=e.messageCreatedAt,a=e.tDateTimeParser;if(!o||"string"==typeof o&&!Date.parse(o))return console.warn("MessageTimestamp was called without a message, or message has invalid created_at date."),null;if("function"==typeof i)return i(new Date(o));if(!a)return console.warn("MessageTimestamp was called but there is no datetime parsing function available"),null;var s=a(o);return(0,r.MD)(s)?t&&s.calendar?s.calendar():s.format(n):(0,r.J_)(s)?s.toDateString():(0,r.$s)(s)?s:null}},4118:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var r=function(e,t){e.forEach(function(e){var n=[Object.entries(e[0])[0],Object.entries(e[1])[0]],r=n[0],i=r[0],o=r[1],a=n[1],s=a[0],l=a[1];(void 0!==o&&void 0===l||void 0!==o&&void 0!==l)&&console.warn("[Deprecation notice (".concat(t,")]: prefer using prop ").concat(s," instead of ").concat(i))})}},1538:function(e,t,n){"use strict";n.d(t,{m:function(){return o}});var r=n(11735),i={},o=function(e){var t=e.channel,n=e.client,o=e.id,s=e.members,l=e.options,u=e.type;return(0,r.mG)(void 0,void 0,void 0,function(){var e,c,d;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if(!t&&!u)throw Error("Channel or channel type have to be provided to query a channel.");if(!(c=(null==(e=t||n.channel(u,o,{members:s}))?void 0:e.id)?e.cid:s&&s.length?a(e.type,s):void 0))throw Error("Channel ID or channel members array have to be provided to query a channel.");if(!(d=i[c]))return[3,2];return[4,d];case 1:return r.sent(),[3,4];case 2:return i[c]=e.watch(l),[4,i[c]];case 3:r.sent(),delete i[c],r.label=4;case 4:return[2,e]}})})},a=function(e,t){if(t){var n=(0,r.ev)([],t,!0).sort().join(",");return"".concat(e,":!members-").concat(n)}}},16613:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=String.fromCodePoint||function(){var e,t,n=[],r=-1,i=arguments.length;if(!i)return"";for(var o="";++r1114111||Math.floor(a)!=a)throw RangeError("Invalid code point: "+a);a<=65535?n.push(a):(a-=65536,e=(a>>10)+55296,t=a%1024+56320,n.push(e,t)),(r+1===i||n.length>16384)&&(o+=String.fromCharCode.apply(null,n),n.length=0)}return o};t.default=n},62041:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uncompress=t.compress=t.buildSearch=void 0;var n={name:"a",unified:"b",non_qualified:"c",has_img_apple:"d",has_img_google:"e",has_img_twitter:"f",has_img_facebook:"h",keywords:"j",sheet:"k",emoticons:"l",text:"m",short_names:"n",added_in:"o"},r=function(e){var t=[],n=function(e,n){e&&(Array.isArray(e)?e:[e]).forEach(function(e){(n?e.split(/[-|_|\s]+/):[e]).forEach(function(e){e=e.toLowerCase(),-1==t.indexOf(e)&&t.push(e)})})};return n(e.short_names,!0),n(e.name,!0),n(e.keywords,!1),n(e.emoticons,!1),t.join(",")};t.buildSearch=r,t.compress=function(e){for(var t in e.short_names=e.short_names.filter(function(t){return t!==e.short_name}),delete e.short_name,e.sheet=[e.sheet_x,e.sheet_y],delete e.sheet_x,delete e.sheet_y,e.added_in=parseInt(e.added_in),6===e.added_in&&delete e.added_in,n)e[n[t]]=e[t],delete e[t];for(var r in e){var i=e[r];Array.isArray(i)&&!i.length?delete e[r]:"string"!=typeof i||i.length?null===i&&delete e[r]:delete e[r]}},t.uncompress=function(e){for(var t in e.compressed=!1,e.emojis){var i=e.emojis[t];for(var o in n)i[o]=i[n[o]],delete i[n[o]];i.short_names||(i.short_names=[]),i.short_names.unshift(t),i.sheet_x=i.sheet[0],i.sheet_y=i.sheet[1],delete i.sheet,i.text||(i.text=""),i.added_in||(i.added_in=6),i.added_in=i.added_in.toFixed(1),i.search=r(i)}}},64771:function(e,t,n){"use strict";var r=n(23963);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(52749)),o=r(n(20209)),a=n(93706),s=n(62041),l=r(n(73817)),u=function(){function e(t,n){(0,i.default)(this,e),t.compressed&&(0,s.uncompress)(t),this.data=t||{},this.set=n||null,this.originalPool={},this.index={},this.emojis={},this.emoticons={},this.customEmojisList=[],this.buildIndex()}return(0,o.default)(e,[{key:"buildIndex",value:function(){var e=this;for(var t in this.data.emojis)!function(t){var n=e.data.emojis[t],r=n.short_names,i=n.emoticons,o=n.skin_variations,s=r[0];if(i&&i.forEach(function(t){e.emoticons[t]||(e.emoticons[t]=s)}),o){e.emojis[s]={};for(var l=1;l<=6;l++)e.emojis[s][l]=(0,a.getSanitizedData)({id:s,skin:l},l,e.set,e.data)}else e.emojis[s]=(0,a.getSanitizedData)(s,null,e.set,e.data);e.originalPool[s]=n}(t)}},{key:"clearCustomEmojis",value:function(e){var t=this;this.customEmojisList.forEach(function(n){var r=n.id||n.short_names[0];delete e[r],delete t.emojis[r]})}},{key:"addCustomToPool",value:function(e,t){var n=this;this.customEmojisList.length&&this.clearCustomEmojis(t),e.forEach(function(e){var r=e.id||e.short_names[0];r&&!t[r]&&(t[r]=(0,a.getData)(e,null,null,n.data),n.emojis[r]=(0,a.getSanitizedData)(e,null,null,n.data))}),this.customEmojisList=e,this.index={}}},{key:"search",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.emojisToShowFilter,i=n.maxResults,o=n.include,s=n.exclude,u=n.custom,c=void 0===u?[]:u;this.customEmojisList!=c&&this.addCustomToPool(c,this.originalPool);var d=l.default.get("skin")||1;i||(i=75),o||(o=[]),s||(s=[]);var f=null,h=this.originalPool;if(e.length){if("-"==e||"-1"==e)return[this.emojis["-1"][d]];var p=e.toLowerCase().split(/[\s|,|\-|_]+/),m=[];if(p.length>2&&(p=[p[0],p[1]]),(o.length||s.length)&&(h={},this.data.categories.forEach(function(e){var n=!o||!o.length||o.indexOf(e.id)>-1,r=!!s&&!!s.length&&s.indexOf(e.id)>-1;n&&!r&&e.emojis.forEach(function(e){return h[e]=t.data.emojis[e]})}),c.length)){var g=!o||!o.length||o.indexOf("custom")>-1,v=!!s&&!!s.length&&s.indexOf("custom")>-1;g&&!v&&this.addCustomToPool(c,h)}f=(m=p.map(function(e){for(var n=h,r=t.index,i=0,o=0;o1?a.intersect.apply(null,m):m.length?m[0]:[]}return f&&(r&&(f=f.filter(function(e){return r(h[e.id])})),f&&f.length>i&&(f=f.slice(0,i))),f}}]),e}();t.default=u},93706:function(e,t,n){"use strict";var r=n(23963);Object.defineProperty(t,"__esModule",{value:!0}),t.getData=d,t.getEmojiDataFromNative=function(e,t,n){n.compressed&&(0,o.uncompress)(n);var r,i,a,s=["1F3FB","1F3FC","1F3FD","1F3FE","1F3FF"];for(var l in["\uD83C\uDFFB","\uD83C\uDFFC","\uD83C\uDFFD","\uD83C\uDFFE","\uD83C\uDFFF"].forEach(function(t,n){e.indexOf(t)>0&&(r=n+2,i=s[n])}),n.emojis){var d=n.emojis[l],f=d.unified;d.variations&&d.variations.length&&(f=d.variations.shift()),r&&d.skin_variations&&d.skin_variations[i]&&(f=d.skin_variations[i].unified),u(f)===e&&(a=d)}return a?(a.id=a.short_names[0],c(a,r,t,n)):null},t.getSanitizedData=c,t.uniq=f,t.intersect=function(e,t){var n=f(e),r=f(t);return n.filter(function(e){return r.indexOf(e)>=0})},t.deepMerge=function e(t,n){var r={};for(var o in t){var a=t[o],s=a;n.hasOwnProperty(o)&&(s=n[o]),"object"===(0,i.default)(s)&&(s=e(a,s)),r[o]=s}return r},t.unifiedToNative=u,t.measureScrollbar=function(){if("undefined"==typeof document)return 0;var e=document.createElement("div");e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t},t.throttleIdleTask=function(e){var t="function"==typeof requestIdleCallback?requestIdleCallback:setTimeout,n=!1;return function(){n||(n=!0,t(function(){n=!1,e()}))}};var i=r(n(80154)),o=n(62041),a=r(n(16613)),s=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/,l=["1F3FA","1F3FB","1F3FC","1F3FD","1F3FE","1F3FF"];function u(e){var t=e.split("-").map(function(e){return"0x".concat(e)});return a.default.apply(null,t)}function c(){var e,t,n,r,i,o,a,s,l,c,f,h;return e=d.apply(void 0,arguments),t=e.name,n=e.short_names,r=e.skin_tone,i=e.skin_variations,o=e.emoticons,a=e.unified,s=e.custom,l=e.customCategory,c=e.imageUrl,f=e.id||n[0],h=":".concat(f,":"),s?{id:f,name:t,short_names:n,colons:h,emoticons:o,custom:s,customCategory:l,imageUrl:c}:(r&&(h+=":skin-tone-".concat(r,":")),{id:f,name:t,short_names:n,colons:h,emoticons:o,unified:a.toLowerCase(),skin:r||(i?1:null),native:u(a)})}function d(e,t,n,r){var i={};if("string"==typeof e){var a=e.match(s);if(a&&(e=a[1],a[2]&&(t=parseInt(a[2],10))),r.aliases.hasOwnProperty(e)&&(e=r.aliases[e]),!r.emojis.hasOwnProperty(e))return null;i=r.emojis[e]}else e.id&&(r.aliases.hasOwnProperty(e.id)&&(e.id=r.aliases[e.id]),r.emojis.hasOwnProperty(e.id)&&(i=r.emojis[e.id],t||(t=e.skin)));if(Object.keys(i).length||((i=e).custom=!0,i.search||(i.search=(0,o.buildSearch)(e))),i.emoticons||(i.emoticons=[]),i.variations||(i.variations=[]),i.skin_variations&&t>1){i=JSON.parse(JSON.stringify(i));var u=l[t-1],c=i.skin_variations[u];if(c&&(!c.variations&&i.variations&&delete i.variations,n&&(void 0==c["has_img_".concat(n)]||c["has_img_".concat(n)])||!n))for(var d in i.skin_tone=t,c){var f=c[d];i[d]=f}}return i.variations&&i.variations.length&&((i=JSON.parse(JSON.stringify(i))).unified=i.variations.shift()),i}function f(e){return e.reduce(function(e,t){return -1===e.indexOf(t)&&e.push(t),e},[])}},73817:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r,i="emoji-mart",o="undefined"!=typeof window&&"localStorage"in window;function a(e,t){if(r)r(e,t);else{if(!o)return;try{window.localStorage["".concat(i,".").concat(e)]=JSON.stringify(t)}catch(e){}}}t.default={update:function(e){for(var t in e){var n=e[t];a(t,n)}},set:a,get:function(e){if(n)return n(e);if(o)try{var t=window.localStorage["".concat(i,".").concat(e)];if(t)return JSON.parse(t)}catch(e){return}},setNamespace:function(e){i=e},setHandlers:function(e){e||(e={}),n=e.getter,r=e.setter}}},96989:function(e,t){"use strict";Symbol.for("react.element"),Symbol.for("react.portal");/** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var n,r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=(Symbol.for("react.server_context"),Symbol.for("react.forward_ref")),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");n=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===i||e===u||e===c||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===a||e.$$typeof===s||e.$$typeof===l||e.$$typeof===n||void 0!==e.getModuleId)}},49018:function(e,t,n){"use strict";e.exports=n(96989)},99588:function(e,t,n){var r=null;"undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof MozWebSocket?r=MozWebSocket:void 0!==n.g?r=n.g.WebSocket||n.g.MozWebSocket:"undefined"!=typeof window?r=window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(r=self.WebSocket||self.MozWebSocket),e.exports=r},18008:function(e,t,n){var r=n(44958);function i(e,t){var n,i,o,a=null;if(!e||"string"!=typeof e)return a;for(var s=r(e),l="function"==typeof t,u=0,c=s.length;uparseInt(c.height)&&(u.overflowY="scroll"):u.overflow="hidden",l.textContent=e.value.substring(0,i),d&&(l.textContent=l.textContent.replace(/\s/g,"\xa0"));var f=document.createElement("span");f.textContent=e.value.substring(i)||".",l.appendChild(f);var h={top:f.offsetTop+parseInt(c.borderTopWidth),left:f.offsetLeft+parseInt(c.borderLeftWidth),height:parseInt(c.lineHeight)};return a?f.style.backgroundColor="#aaa":document.body.removeChild(l),h}void 0!==e.exports?e.exports=i:n&&(window.getCaretCoordinates=i)}()},26088:function(e,t,n){var r;!function(i,o){"use strict";var a="function",s="undefined",l="object",u="string",c="major",d="model",f="name",h="type",p="vendor",m="version",g="architecture",v="console",y="mobile",b="tablet",w="smarttv",_="wearable",x="embedded",D="Amazon",E="Apple",C="ASUS",k="BlackBerry",S="Browser",T="Chrome",M="Firefox",O="Google",P="Huawei",R="Microsoft",j="Motorola",L="Opera",F="Samsung",A="Sharp",N="Sony",I="Xiaomi",B="Zebra",U="Facebook",z="Chromium OS",H="Mac OS",V=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},q=function(e){for(var t={},n=0;n0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,c):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=c?c.replace(s[1],s[2]):void 0:this[s[0]]=c?s[1].call(this,c,s[2]):void 0:4===s.length&&(this[s[0]]=c?s[3].call(this,c.replace(s[1],s[2])):void 0):this[s]=c||o;d+=2}},G=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r2&&(e[d]="iPad",e[h]=b),e},this.getEngine=function(){var e={};return e[f]=o,e[m]=o,Z.call(e,r,w.engine),e},this.getOS=function(){var e={};return e[f]=o,e[m]=o,Z.call(e,r,w.os),_&&!e[f]&&v&&v.platform&&"Unknown"!=v.platform&&(e[f]=v.platform.replace(/chrome os/i,z).replace(/macos/i,H)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===u&&e.length>500?Y(e,500):e,this},this.setUA(r),this};X.VERSION="1.0.38",X.BROWSER=q([f,m,c]),X.CPU=q([g]),X.DEVICE=q([d,p,h,v,y,w,b,_,x]),X.ENGINE=X.OS=q([f,m]),typeof t!==s?(e.exports&&(t=e.exports=X),t.UAParser=X):n.amdO?o!==(r=(function(){return X}).call(t,n,t,e))&&(e.exports=r):typeof i!==s&&(i.UAParser=X);var Q=typeof i!==s&&(i.jQuery||i.Zepto);if(Q&&!Q.ua){var ee=new X;Q.ua=ee.getResult(),Q.ua.get=function(){return ee.getUA()},Q.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)Q.ua[n]=t[n]}}}("object"==typeof window?window:this)},98394:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,{fixNegotiationNeeded:function(){return S},shimAddTrackRemoveTrack:function(){return C},shimAddTrackRemoveTrackWithNative:function(){return E},shimGetDisplayMedia:function(){return y},shimGetSendersWithDtmf:function(){return _},shimGetStats:function(){return x},shimGetUserMedia:function(){return v},shimMediaStream:function(){return b},shimOnTrack:function(){return w},shimPeerConnection:function(){return k},shimSenderReceiverGetStats:function(){return D}});var i={};n.r(i),n.d(i,{shimAddTransceiver:function(){return A},shimCreateAnswer:function(){return B},shimCreateOffer:function(){return I},shimGetDisplayMedia:function(){return M},shimGetParameters:function(){return N},shimGetUserMedia:function(){return T},shimOnTrack:function(){return O},shimPeerConnection:function(){return P},shimRTCDataChannel:function(){return F},shimReceiverGetStats:function(){return j},shimRemoveStream:function(){return L},shimSenderGetStats:function(){return R}});var o={};n.r(o),n.d(o,{shimAudioContext:function(){return Z},shimCallbacksAPI:function(){return H},shimConstraints:function(){return q},shimCreateOfferLegacy:function(){return Y},shimGetUserMedia:function(){return V},shimLocalStreamsAPI:function(){return U},shimRTCIceServerUrls:function(){return W},shimRemoteStreamsAPI:function(){return z},shimTrackEventTransceiver:function(){return $}});var a={};n.r(a),n.d(a,{removeExtmapAllowMixed:function(){return en},shimAddIceCandidateNullOrEmpty:function(){return er},shimConnectionState:function(){return et},shimMaxMessageSize:function(){return Q},shimParameterlessSetLocalDescription:function(){return ei},shimRTCIceCandidate:function(){return K},shimRTCIceCandidateRelayProtocol:function(){return X},shimSendThrowTypeError:function(){return ee}});let s=!0,l=!0;function u(e,t,n){let r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function c(e,t,n){if(!e.RTCPeerConnection)return;let r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return i.apply(this,arguments);let o=e=>{let t=n(e);t&&(r.handleEvent?r.handleEvent(t):r(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(r,o),i.apply(this,[e,o])};let o=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t]||!this._eventMap[t].has(n))return o.apply(this,arguments);let r=this._eventMap[t].get(n);return this._eventMap[t].delete(n),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,o.apply(this,[e,r])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}function d(e){return"boolean"!=typeof e?Error("Argument type: "+typeof e+". Please use a boolean."):(s=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function f(e){return"boolean"!=typeof e?Error("Argument type: "+typeof e+". Please use a boolean."):(l=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function h(){"object"!=typeof window||s||"undefined"==typeof console||"function"!=typeof console.log||console.log.apply(console,arguments)}function p(e,t){l&&console.warn(e+" is deprecated, please use "+t+" instead.")}function m(e){return"[object Object]"===Object.prototype.toString.call(e)}function g(e,t,n){let r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(null===t)return i;let o=[];return e.forEach(e=>{"track"===e.type&&e.trackIdentifier===t.id&&o.push(e)}),o.forEach(t=>{e.forEach(n=>{n.type===r&&n.trackId===t.id&&function e(t,n,r){!n||r.has(n.id)||(r.set(n.id,n),Object.keys(n).forEach(i=>{i.endsWith("Id")?e(t,t.get(n[i]),r):i.endsWith("Ids")&&n[i].forEach(n=>{e(t,t.get(n),r)})}))}(e,n,i)})}),i}function v(e,t){let n=e&&e.navigator;if(!n.mediaDevices)return;let r=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;let t={};return Object.keys(e).forEach(n=>{if("require"===n||"advanced"===n||"mediaSource"===n)return;let r="object"==typeof e[n]?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);let i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];let e={};"number"==typeof r.ideal?(e[i("min",n)]=r.ideal,t.optional.push(e),(e={})[i("max",n)]=r.ideal):e[i("",n)]=r.ideal,t.optional.push(e)}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",n)]=r.exact):["min","max"].forEach(e=>{void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,n)]=r[e])})}),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},i=function(e,i){if(t.version>=61)return i(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==typeof e.audio){let t=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};t((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=r(e.audio)}if(e&&"object"==typeof e.video){let o=e.video.facingMode;o=o&&("object"==typeof o?o:{ideal:o});let a=t.version<66;if(o&&("user"===o.exact||"environment"===o.exact||"user"===o.ideal||"environment"===o.ideal)&&!(n.mediaDevices.getSupportedConstraints&&n.mediaDevices.getSupportedConstraints().facingMode&&!a)){let t;if(delete e.video.facingMode,"environment"===o.exact||"environment"===o.ideal?t=["back","rear"]:("user"===o.exact||"user"===o.ideal)&&(t=["front"]),t)return n.mediaDevices.enumerateDevices().then(n=>{let a=(n=n.filter(e=>"videoinput"===e.kind)).find(e=>t.some(t=>e.label.toLowerCase().includes(t)));return!a&&n.length&&t.includes("back")&&(a=n[n.length-1]),a&&(e.video.deviceId=o.exact?{exact:a.deviceId}:{ideal:a.deviceId}),e.video=r(e.video),h("chrome: "+JSON.stringify(e)),i(e)})}e.video=r(e.video)}return h("chrome: "+JSON.stringify(e)),i(e)},o=function(e){return t.version>=64?e:{name:({PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"})[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(n.getUserMedia=(function(e,t,r){i(e,e=>{n.webkitGetUserMedia(e,t,e=>{r&&r(o(e))})})}).bind(n),n.mediaDevices.getUserMedia){let e=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(t){return i(t,t=>e(t).then(e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach(e=>{e.stop()}),new DOMException("","NotFoundError");return e},e=>Promise.reject(o(e))))}}}function y(e,t){if((!e.navigator.mediaDevices||!("getDisplayMedia"in e.navigator.mediaDevices))&&e.navigator.mediaDevices){if("function"!=typeof t){console.error("shimGetDisplayMedia: getSourceId argument is not a function");return}e.navigator.mediaDevices.getDisplayMedia=function(n){return t(n).then(t=>{let r=n.video&&n.video.width,i=n.video&&n.video.height,o=n.video&&n.video.frameRate;return n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:o||3}},r&&(n.video.mandatory.maxWidth=r),i&&(n.video.mandatory.maxHeight=i),e.navigator.mediaDevices.getUserMedia(n)})}}}function b(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function w(e){if("object"!=typeof e||!e.RTCPeerConnection||"ontrack"in e.RTCPeerConnection.prototype)c(e,"track",e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e));else{Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});let t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(e=>e.track&&e.track.id===n.track.id):{track:n.track};let i=new Event("track");i.track=n.track,i.receiver=r,i.transceiver={receiver:r},i.streams=[t.stream],this.dispatchEvent(i)}),t.stream.getTracks().forEach(n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(e=>e.track&&e.track.id===n.id):{track:n};let i=new Event("track");i.track=n,i.receiver=r,i.transceiver={receiver:r},i.streams=[t.stream],this.dispatchEvent(i)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}}function _(e){if("object"==typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){let t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};let n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){let i=n.apply(this,arguments);return i||(i=t(this,e),this._senders.push(i)),i};let r=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){r.apply(this,arguments);let t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}let n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach(e=>{this._senders.push(t(this,e))})};let r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach(e=>{let t=this._senders.find(t=>t.track===e);t&&this._senders.splice(this._senders.indexOf(t),1)})}}else if("object"==typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){let t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){let e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function x(e){if(!e.RTCPeerConnection)return;let t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){let[e,n,r]=arguments;if(arguments.length>0&&"function"==typeof e)return t.apply(this,arguments);if(0===t.length&&(0==arguments.length||"function"!=typeof e))return t.apply(this,[]);let i=function(e){let t={};return e.result().forEach(e=>{let n={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach(t=>{n[t]=e.stat(t)}),t[n.id]=n}),t},o=function(e){return new Map(Object.keys(e).map(t=>[t,e[t]]))};return arguments.length>=2?t.apply(this,[function(e){n(o(i(e)))},e]):new Promise((e,n)=>{t.apply(this,[function(t){e(o(i(t)))},n])}).then(n,r)}}function D(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){let t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){let e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e});let n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){let e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){let e=this;return this._pc.getStats().then(t=>g(t,e.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){let t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){let e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e}),c(e,"track",e=>(e.receiver._pc=e.srcElement,e)),e.RTCRtpReceiver.prototype.getStats=function(){let e=this;return this._pc.getStats().then(t=>g(t,e.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;let t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){let e,t,n;let r=arguments[0];return(this.getSenders().forEach(t=>{t.track===r&&(e?n=!0:e=t)}),this.getReceivers().forEach(e=>(e.track===r&&(t?n=!0:t=e),e.track===r)),n||e&&t)?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):e?e.getStats():t?t.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function E(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(e=>this._shimmedLocalStreams[e][0])};let t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};let r=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?-1===this._shimmedLocalStreams[n.id].indexOf(r)&&this._shimmedLocalStreams[n.id].push(r):this._shimmedLocalStreams[n.id]=[n,r],r};let n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach(e=>{if(this.getSenders().find(t=>t.track===e))throw new DOMException("Track already exists.","InvalidAccessError")});let t=this.getSenders();n.apply(this,arguments);let r=this.getSenders().filter(e=>-1===t.indexOf(e));this._shimmedLocalStreams[e.id]=[e].concat(r)};let r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],r.apply(this,arguments)};let i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach(t=>{let n=this._shimmedLocalStreams[t].indexOf(e);-1!==n&&this._shimmedLocalStreams[t].splice(n,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]}),i.apply(this,arguments)}}function C(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return E(e);let n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){let e=n.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map(e=>this._reverseStreams[e.id])};let r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach(e=>{if(this.getSenders().find(t=>t.track===e))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[t.id]){let n=new e.MediaStream(t.getTracks());this._streams[t.id]=n,this._reverseStreams[n.id]=t,t=n}r.apply(this,[t])};let i=e.RTCPeerConnection.prototype.removeStream;function o(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(t=>{let r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(RegExp(i.id,"g"),r.id)}),new RTCSessionDescription({type:t.type,sdp:n})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,n){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");let r=[].slice.call(arguments,1);if(1!==r.length||!r[0].getTracks().find(e=>e===t))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(e=>e.track===t))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};let i=this._streams[n.id];if(i)i.addTrack(t),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{let r=new e.MediaStream([t]);this._streams[n.id]=r,this._reverseStreams[r.id]=n,this.addStream(r)}return this.getSenders().find(e=>e.track===t)},["createOffer","createAnswer"].forEach(function(t){let n=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=({[t](){let e=arguments,t=arguments.length&&"function"==typeof arguments[0];return t?n.apply(this,[t=>{let n=o(this,t);e[0].apply(null,[n])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):n.apply(this,arguments).then(e=>o(this,e))}})[t]});let a=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){var e,t;let n;return arguments.length&&arguments[0].type&&(arguments[0]=(e=this,t=arguments[0],n=t.sdp,Object.keys(e._reverseStreams||[]).forEach(t=>{let r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(RegExp(r.id,"g"),i.id)}),new RTCSessionDescription({type:t.type,sdp:n}))),a.apply(this,arguments)};let s=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){let e=s.get.apply(this);return""===e.type?e:o(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){let t;if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(e._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{},Object.keys(this._streams).forEach(n=>{this._streams[n].getTracks().find(t=>e.track===t)&&(t=this._streams[n])}),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function k(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t){let n=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=({[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}})[t]})}function S(e,t){c(e,"negotiationneeded",e=>{let n=e.target;if(!(t.version<72)&&(!n.getConfiguration||"plan-b"!==n.getConfiguration().sdpSemantics)||"stable"===n.signalingState)return e})}function T(e,t){let n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,r){p("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,r)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){let e=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},t=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(n){return"object"==typeof n&&"object"==typeof n.audio&&(e((n=JSON.parse(JSON.stringify(n))).audio,"autoGainControl","mozAutoGainControl"),e(n.audio,"noiseSuppression","mozNoiseSuppression")),t(n)},r&&r.prototype.getSettings){let t=r.prototype.getSettings;r.prototype.getSettings=function(){let n=t.apply(this,arguments);return e(n,"mozAutoGainControl","autoGainControl"),e(n,"mozNoiseSuppression","noiseSuppression"),n}}if(r&&r.prototype.applyConstraints){let t=r.prototype.applyConstraints;r.prototype.applyConstraints=function(n){return"audio"===this.kind&&"object"==typeof n&&(e(n=JSON.parse(JSON.stringify(n)),"autoGainControl","mozAutoGainControl"),e(n,"noiseSuppression","mozNoiseSuppression")),t.apply(this,[n])}}}}function M(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||!e.navigator.mediaDevices||(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!(n&&n.video)){let e=new DOMException("getDisplayMedia without video constraints is undefined");return e.name="NotFoundError",e.code=8,Promise.reject(e)}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)})}function O(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function P(e,t){if("object"!=typeof e||!(e.RTCPeerConnection||e.mozRTCPeerConnection))return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t){let n=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=({[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}})[t]});let n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){let[e,i,o]=arguments;return r.apply(this,[e||null]).then(e=>{if(t.version<53&&!i)try{e.forEach(e=>{e.type=n[e.type]||e.type})}catch(t){if("TypeError"!==t.name)throw t;e.forEach((t,r)=>{e.set(r,Object.assign({},t,{type:n[t.type]||t.type}))})}return e}).then(i,o)}}function R(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;let t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){let e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e});let n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){let e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function j(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;let t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){let e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e}),c(e,"track",e=>(e.receiver._pc=e.srcElement,e)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function L(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){p("removeStream","removeTrack"),this.getSenders().forEach(t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)})})}function F(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function A(e){if(!("object"==typeof e&&e.RTCPeerConnection))return;let t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let e=arguments[1]&&arguments[1].sendEncodings;void 0===e&&(e=[]);let n=(e=[...e]).length>0;n&&e.forEach(e=>{if("rid"in e&&!/^[a-z0-9]{0,16}$/i.test(e.rid))throw TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw RangeError("max_framerate must be >= 0.0")});let r=t.apply(this,arguments);if(n){let{sender:t}=r,n=t.getParameters();"encodings"in n&&(1!==n.encodings.length||0!==Object.keys(n.encodings[0]).length)||(n.encodings=e,t.sendEncodings=e,this.setParametersPromises.push(t.setParameters(n).then(()=>{delete t.sendEncodings}).catch(()=>{delete t.sendEncodings})))}return r})}function N(e){if(!("object"==typeof e&&e.RTCRtpSender))return;let t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){let e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function I(e){if(!("object"==typeof e&&e.RTCPeerConnection))return;let t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function B(e){if(!("object"==typeof e&&e.RTCPeerConnection))return;let t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function U(e){if("object"==typeof e&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){let t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach(n=>t.call(this,n,e)),e.getVideoTracks().forEach(n=>t.call(this,n,e))},e.RTCPeerConnection.prototype.addTrack=function(e,...n){return n&&n.forEach(e=>{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);let t=this._localStreams.indexOf(e);if(-1===t)return;this._localStreams.splice(t,1);let n=e.getTracks();this.getSenders().forEach(e=>{n.includes(e.track)&&this.removeTrack(e)})})}}function z(e){if("object"==typeof e&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach(e=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(e))return;this._remoteStreams.push(e);let t=new Event("addstream");t.stream=e,this.dispatchEvent(t)})})}});let t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){let e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach(t=>{if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);let n=new Event("addstream");n.stream=t,e.dispatchEvent(n)})}),t.apply(e,arguments)}}}function H(e){if("object"!=typeof e||!e.RTCPeerConnection)return;let t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,o=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(e,t){let r=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[r]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){let n=arguments.length>=2?arguments[2]:arguments[0],i=r.apply(this,[n]);return t?(i.then(e,t),Promise.resolve()):i};let s=function(e,t,n){let r=i.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=s,s=function(e,t,n){let r=o.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=s,s=function(e,t,n){let r=a.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=s}function V(e){let t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){let e=t.mediaDevices,n=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>n(q(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}).bind(t))}function q(e){return e&&void 0!==e.video?Object.assign({},e,{video:function e(t){return m(t)?Object.keys(t).reduce(function(n,r){let i=m(t[r]),o=i?e(t[r]):t[r],a=i&&!Object.keys(o).length;return void 0===o||a?n:Object.assign(n,{[r]:o})},{}):t}(e.video)}):e}function W(e){if(!e.RTCPeerConnection)return;let t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){let t=[];for(let n=0;nt.generateCertificate})}function $(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Y(e){let t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);let t=this.getTransceivers().find(e=>"audio"===e.receiver.track.kind);!1===e.offerToReceiveAudio&&t?"sendrecv"===t.direction?t.setDirection?t.setDirection("sendonly"):t.direction="sendonly":"recvonly"===t.direction&&(t.setDirection?t.setDirection("inactive"):t.direction="inactive"):!0!==e.offerToReceiveAudio||t||this.addTransceiver("audio",{direction:"recvonly"}),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);let n=this.getTransceivers().find(e=>"video"===e.receiver.track.kind);!1===e.offerToReceiveVideo&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0!==e.offerToReceiveVideo||n||this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function Z(e){"object"!=typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var G=n(12282),J=n.n(G);function K(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;let t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"==typeof e&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substring(2)),e.candidate&&e.candidate.length){let n=new t(e),r=J().parseCandidate(e.candidate);for(let e in r)e in n||Object.defineProperty(n,e,{value:r[e]});return n.toJSON=function(){return{candidate:n.candidate,sdpMid:n.sdpMid,sdpMLineIndex:n.sdpMLineIndex,usernameFragment:n.usernameFragment}},n}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,c(e,"icecandidate",t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t))}function X(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||c(e,"icecandidate",e=>{if(e.candidate){let t=J().parseCandidate(e.candidate.candidate);"relay"===t.type&&(e.candidate.relayProtocol=({0:"tls",1:"tcp",2:"udp"})[t.priority>>24])}return e})}function Q(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return void 0===this._sctp?null:this._sctp}});let n=function(e){if(!e||!e.sdp)return!1;let t=J().splitSections(e.sdp);return t.shift(),t.some(e=>{let t=J().parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")})},r=function(e){let t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return -1;let n=parseInt(t[1],10);return n!=n?-1:n},i=function(e){let n=65536;return"firefox"===t.browser&&(n=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),n},o=function(e,n){let r=65536;"firefox"===t.browser&&57===t.version&&(r=65535);let i=J().matchPrefix(e.sdp,"a=max-message-size:");return i.length>0?r=parseInt(i[0].substring(19),10):"firefox"===t.browser&&-1!==n&&(r=2147483637),r},a=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){let{sdpSemantics:e}=this.getConfiguration();"plan-b"===e&&Object.defineProperty(this,"sctp",{get(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){let e;let t=r(arguments[0]),n=i(t),a=o(arguments[0],t);e=0===n&&0===a?Number.POSITIVE_INFINITY:0===n||0===a?Math.max(n,a):Math.min(n,a);let s={};Object.defineProperty(s,"maxMessageSize",{get:()=>e}),this._sctp=s}return a.apply(this,arguments)}}function ee(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){let n=e.send;e.send=function(){let r=arguments[0],i=r.length||r.size||r.byteLength;if("open"===e.readyState&&t.sctp&&i>t.sctp.maxMessageSize)throw TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments)}}let n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){let e=n.apply(this,arguments);return t(e,this),e},c(e,"datachannel",e=>(t(e.channel,e.target),e))}function et(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;let t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return({completed:"connected",checking:"connecting"})[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(e=>{let n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{let t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;let n=new Event("connectionstatechange",e);t.dispatchEvent(n)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}})}function en(e,t){if(!e.RTCPeerConnection||"chrome"===t.browser&&t.version>=71||"safari"===t.browser&&t.version>=605)return;let n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){let n=t.sdp.split("\n").filter(e=>"a=extmap-allow-mixed"!==e.trim()).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:n}):t.sdp=n}return n.apply(this,arguments)}}function er(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;let n=e.RTCPeerConnection.prototype.addIceCandidate;n&&0!==n.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function ei(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;let n=e.RTCPeerConnection.prototype.setLocalDescription;n&&0!==n.length&&(e.RTCPeerConnection.prototype.setLocalDescription=function(){let e=arguments[0]||{};if("object"!=typeof e||e.type&&e.sdp)return n.apply(this,arguments);if(!(e={type:e.type,sdp:e.sdp}).type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":e.type="offer";break;default:e.type="answer"}return e.sdp||"offer"!==e.type&&"answer"!==e.type?n.apply(this,[e]):("offer"===e.type?this.createOffer:this.createAnswer).apply(this).then(e=>n.apply(this,[e]))})}!function({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){let n=function(e){let t={browser:null,version:null};if(void 0===e||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;let{navigator:n}=e;return n.mozGetUserMedia?(t.browser="firefox",t.version=u(n.userAgent,/Firefox\/(\d+)\./,1)):n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection?(t.browser="chrome",t.version=u(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2)):e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./)?(t.browser="safari",t.version=u(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype):t.browser="Not a supported browser.",t}(e),s={browserDetails:n,commonShim:a,extractVersion:u,disableLog:d,disableWarnings:f,sdp:G};switch(n.browser){case"chrome":if(!r||!k||!t.shimChrome){h("Chrome shim is not included in this adapter release.");break}if(null===n.version){h("Chrome shim can not determine version, not shimming.");break}h("adapter.js shimming chrome."),s.browserShim=r,er(e,n),ei(e,n),v(e,n),b(e,n),k(e,n),w(e,n),C(e,n),_(e,n),x(e,n),D(e,n),S(e,n),K(e,n),X(e,n),et(e,n),Q(e,n),ee(e,n),en(e,n);break;case"firefox":if(!i||!P||!t.shimFirefox){h("Firefox shim is not included in this adapter release.");break}h("adapter.js shimming firefox."),s.browserShim=i,er(e,n),ei(e,n),T(e,n),P(e,n),O(e,n),L(e,n),R(e,n),j(e,n),F(e,n),A(e,n),N(e,n),I(e,n),B(e,n),K(e,n),et(e,n),Q(e,n),ee(e,n);break;case"safari":if(!o||!t.shimSafari){h("Safari shim is not included in this adapter release.");break}h("adapter.js shimming safari."),s.browserShim=o,er(e,n),ei(e,n),W(e,n),Y(e,n),H(e,n),U(e,n),z(e,n),$(e,n),V(e,n),Z(e,n),K(e,n),X(e,n),Q(e,n),ee(e,n),en(e,n);break;default:h("Unsupported browser!")}}({window:"undefined"==typeof window?void 0:window})},64385:function(){},52749:function(e){e.exports=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},20209:function(e,t,n){var r=n(54048);function i(e,t){for(var n=0;n=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(l&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},50513:function(e,t,n){var r=n(80154).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},54048:function(e,t,n){var r=n(80154).default,i=n(50513);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},80154:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},54566:function(e,t,n){var r=n(60518)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},48362:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n{let t=c.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}),h=e=>(e=e.toLowerCase(),t=>f(t)===e),p=e=>t=>typeof t===e,{isArray:m}=Array,g=p("undefined"),v=h("ArrayBuffer"),y=p("string"),b=p("function"),w=p("number"),_=e=>null!==e&&"object"==typeof e,x=e=>{if("object"!==f(e))return!1;let t=d(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},D=h("Date"),E=h("File"),C=h("Blob"),k=h("FileList"),S=h("URLSearchParams"),[T,M,O,P]=["ReadableStream","Request","Response","Headers"].map(h);function R(e,t,{allOwnKeys:n=!1}={}){let r,i;if(null!=e){if("object"!=typeof e&&(e=[e]),m(e))for(r=0,i=e.length;r0;)if(t===(n=r[i]).toLowerCase())return n;return null}let L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,F=e=>!g(e)&&e!==L,A=(i="undefined"!=typeof Uint8Array&&d(Uint8Array),e=>i&&e instanceof i),N=h("HTMLFormElement"),I=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),B=h("RegExp"),U=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};R(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},z="abcdefghijklmnopqrstuvwxyz",H="0123456789",V={DIGIT:H,ALPHA:z,ALPHA_DIGIT:z+z.toUpperCase()+H},q=h("AsyncFunction");var W={isArray:m,isArrayBuffer:v,isBuffer:function(e){return null!==e&&!g(e)&&null!==e.constructor&&!g(e.constructor)&&b(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||b(e.append)&&("formdata"===(t=f(e))||"object"===t&&b(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&v(e.buffer)},isString:y,isNumber:w,isBoolean:e=>!0===e||!1===e,isObject:_,isPlainObject:x,isReadableStream:T,isRequest:M,isResponse:O,isHeaders:P,isUndefined:g,isDate:D,isFile:E,isBlob:C,isRegExp:B,isFunction:b,isStream:e=>_(e)&&b(e.pipe),isURLSearchParams:S,isTypedArray:A,isFileList:k,forEach:R,merge:function e(){let{caseless:t}=F(this)&&this||{},n={},r=(r,i)=>{let o=t&&j(n,i)||i;x(n[o])&&x(r)?n[o]=e(n[o],r):x(r)?n[o]=e({},r):m(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e(R(t,(t,r)=>{n&&b(t)?e[r]=u(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;let s={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&d(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:f,kindOfTest:h,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(m(e))return e;let t=e.length;if(!w(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n;let r=(e&&e[Symbol.iterator]).call(e);for(;(n=r.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let n;let r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:N,hasOwnProperty:I,hasOwnProp:I,reduceDescriptors:U,freezeMethods:e=>{U(e,(t,n)=>{if(b(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(b(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(e=>{e.forEach(e=>{n[e]=!0})})(m(e)?e:String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:j,global:L,isContextDefined:F,ALPHABET:V,generateString:(e=16,t=V.ALPHA_DIGIT)=>{let n="",{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&b(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),n=(e,r)=>{if(_(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;let i=m(e)?[]:{};return R(e,(e,t)=>{let o=n(e,r+1);g(o)||(i[t]=o)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:q,isThenable:e=>e&&(_(e)||b(e))&&b(e.then)&&b(e.catch)};function $(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}W.inherits($,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let Y=$.prototype,Z={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Z[e]={value:e}}),Object.defineProperties($,Z),Object.defineProperty(Y,"isAxiosError",{value:!0}),$.from=(e,t,n,r,i,o)=>{let a=Object.create(Y);return W.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),$.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var G=n(86300).Buffer;function J(e){return W.isPlainObject(e)||W.isArray(e)}function K(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function X(e,t,n){return e?e.concat(t).map(function(e,t){return e=K(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let Q=W.toFlatObject(W,{},null,function(e){return/^is[A-Z]/.test(e)});var ee=function(e,t,n){if(!W.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let r=(n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!W.isUndefined(t[e])})).metaTokens,i=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(i))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(W.isDate(e))return e.toISOString();if(!s&&W.isBlob(e))throw new $("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(e)||W.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):G.from(e):e}function u(e,n,i){let s=e;if(e&&!i&&"object"==typeof e){if(W.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else{var u;if(W.isArray(e)&&(u=e,W.isArray(u)&&!u.some(J))||(W.isFileList(e)||W.endsWith(n,"[]"))&&(s=W.toArray(e)))return n=K(n),s.forEach(function(e,r){W.isUndefined(e)||null===e||t.append(!0===a?X([n],r,o):null===a?n:n+"[]",l(e))}),!1}}return!!J(e)||(t.append(X(i,n,o),l(e)),!1)}let c=[],d=Object.assign(Q,{defaultVisitor:u,convertValue:l,isVisitable:J});if(!W.isObject(e))throw TypeError("data must be an object");return!function e(n,r){if(!W.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),W.forEach(n,function(n,o){!0===(!(W.isUndefined(n)||null===n)&&i.call(t,n,W.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])}),c.pop()}}(e),t};function et(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function en(e,t){this._pairs=[],e&&ee(e,this,t)}let er=en.prototype;function ei(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function eo(e,t,n){let r;if(!t)return e;let i=n&&n.encode||ei,o=n&&n.serialize;if(r=o?o(t,n):W.isURLSearchParams(t)?t.toString():new en(t,n).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}er.append=function(e,t){this._pairs.push([e,t])},er.toString=function(e){let t=e?function(t){return e.call(this,t,et)}:et;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class ea{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,function(t){null!==t&&e(t)})}}var es={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},el="undefined"!=typeof URLSearchParams?URLSearchParams:en,eu="undefined"!=typeof FormData?FormData:null,ec="undefined"!=typeof Blob?Blob:null;let ed="undefined"!=typeof window&&"undefined"!=typeof document,ef=(o="undefined"!=typeof navigator&&navigator.product,ed&&0>["ReactNative","NativeScript","NS"].indexOf(o)),eh="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ep=ed&&window.location.href||"http://localhost";var em={...l,isBrowser:!0,classes:{URLSearchParams:el,FormData:eu,Blob:ec},protocols:["http","https","file","blob","url","data"]},eg=function(e){if(W.isFormData(e)&&W.isFunction(e.entries)){let t={};return W.forEachEntry(e,(e,n)=>{!function e(t,n,r,i){let o=t[i++];if("__proto__"===o)return!0;let a=Number.isFinite(+o),s=i>=t.length;return(o=!o&&W.isArray(r)?r.length:o,s)?W.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n:(r[o]&&W.isObject(r[o])||(r[o]=[]),e(t,n,r[o],i)&&W.isArray(r[o])&&(r[o]=function(e){let t,n;let r={},i=Object.keys(e),o=i.length;for(t=0;t"[]"===e[0]?"":e[1]||e[0]),n,t,0)}),t}return null};let ev={transitional:es,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n;let r=t.getContentType()||"",i=r.indexOf("application/json")>-1,o=W.isObject(e);if(o&&W.isHTMLForm(e)&&(e=new FormData(e)),W.isFormData(e))return i?JSON.stringify(eg(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e)||W.isReadableStream(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1){var a,s;return(a=e,s=this.formSerializer,ee(a,new em.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return em.isNode&&W.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},s))).toString()}if((n=W.isFileList(e))||r.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return ee(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,n){if(W.isString(e))try{return(0,JSON.parse)(e),W.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||ev.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(W.isResponse(e)||W.isReadableStream(e))return e;if(e&&W.isString(e)&&(n&&!this.responseType||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw $.from(e,$.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:em.classes.FormData,Blob:em.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],e=>{ev.headers[e]={}});let ey=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var eb=e=>{let t,n,r;let i={};return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||i[t]&&ey[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)}),i};let ew=Symbol("internals");function e_(e){return e&&String(e).trim().toLowerCase()}function ex(e){return!1===e||null==e?e:W.isArray(e)?e.map(ex):String(e)}let eD=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eE(e,t,n,r,i){if(W.isFunction(r))return r.call(this,t,n);if(i&&(t=n),W.isString(t)){if(W.isString(r))return -1!==t.indexOf(r);if(W.isRegExp(r))return r.test(t)}}class eC{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=e_(t);if(!i)throw Error("header name must be a non-empty string");let o=W.findKey(r,i);o&&void 0!==r[o]&&!0!==n&&(void 0!==n||!1===r[o])||(r[o||t]=ex(e))}let o=(e,t)=>W.forEach(e,(e,n)=>i(e,n,t));if(W.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(W.isString(e)&&(e=e.trim())&&!eD(e))o(eb(e),t);else if(W.isHeaders(e))for(let[t,r]of e.entries())i(r,t,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=e_(e)){let n=W.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t)return function(e){let t;let n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=r.exec(e);)n[t[1]]=t[2];return n}(e);if(W.isFunction(t))return t.call(this,e,n);if(W.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=e_(e)){let n=W.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||eE(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=e_(e)){let i=W.findKey(n,e);i&&(!t||eE(n,n[i],i,t))&&(delete n[i],r=!0)}}return W.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||eE(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return W.forEach(this,(r,i)=>{let o=W.findKey(n,i);if(o){t[o]=ex(r),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(i).trim();a!==i&&delete t[i],t[a]=ex(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return W.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&W.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[ew]=this[ew]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=e_(e);t[r]||(!function(e,t){let n=W.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return W.isArray(e)?e.forEach(r):r(e),this}}function ek(e,t){let n=this||ev,r=t||n,i=eC.from(r.headers),o=r.data;return W.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function eS(e){return!!(e&&e.__CANCEL__)}function eT(e,t,n){$.call(this,null==e?"canceled":e,$.ERR_CANCELED,t,n),this.name="CanceledError"}function eM(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new $("Request failed with status code "+n.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}eC.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(eC.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),W.freezeMethods(eC),W.inherits(eT,$,{__CANCEL__:!0});var eO=function(e,t){let n;let r=Array(e=e||10),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),u=i[a];n||(n=l),r[o]=s,i[o]=l;let c=a,d=0;for(;c!==o;)d+=r[c++],c%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),l-nr)return i&&(clearTimeout(i),i=null),n=t,e.apply(null,arguments);i||(i=setTimeout(()=>(i=null,n=Date.now(),e.apply(null,arguments)),r-(t-n)))}},eR=(e,t,n=3)=>{let r=0,i=eO(50,250);return eP(n=>{let o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s);r=o;let u={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a};u[t?"download":"upload"]=!0,e(u)},n)},ej=em.hasStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){let r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){let n=W.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},eL=em.hasStandardBrowserEnv?{write(e,t,n,r,i,o){let a=[e+"="+encodeURIComponent(t)];W.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),W.isString(r)&&a.push("path="+r),W.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function eF(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eA=e=>e instanceof eC?{...e}:e;function eN(e,t){t=t||{};let n={};function r(e,t,n){return W.isPlainObject(e)&&W.isPlainObject(t)?W.merge.call({caseless:n},e,t):W.isPlainObject(t)?W.merge({},t):W.isArray(t)?t.slice():t}function i(e,t,n){return W.isUndefined(t)?W.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!W.isUndefined(t))return r(void 0,t)}function a(e,t){return W.isUndefined(t)?W.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}let l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(eA(e),eA(t),!0)};return W.forEach(Object.keys(Object.assign({},e,t)),function(r){let o=l[r]||i,a=o(e[r],t[r],r);W.isUndefined(a)&&o!==s||(n[r]=a)}),n}var eI=e=>{let t;let n=eN({},e),{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=n;if(n.headers=s=eC.from(s),n.url=eo(eF(n.baseURL,n.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),W.isFormData(r)){if(em.hasStandardBrowserEnv||em.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(t=s.getContentType())){let[e,...n]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...n].join("; "))}}if(em.hasStandardBrowserEnv&&(i&&W.isFunction(i)&&(i=i(n)),i||!1!==i&&ej(n.url))){let e=o&&a&&eL.read(a);e&&s.set(o,e)}return n},eB="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r;let i=eI(e),o=i.data,a=eC.from(i.headers).normalize(),{responseType:s}=i;function l(){i.cancelToken&&i.cancelToken.unsubscribe(r),i.signal&&i.signal.removeEventListener("abort",r)}let u=new XMLHttpRequest;function c(){if(!u)return;let r=eC.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());eM(function(e){t(e),l()},function(e){n(e),l()},{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}u.open(i.method.toUpperCase(),i.url,!0),u.timeout=i.timeout,"onloadend"in u?u.onloadend=c:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(c)},u.onabort=function(){u&&(n(new $("Request aborted",$.ECONNABORTED,i,u)),u=null)},u.onerror=function(){n(new $("Network Error",$.ERR_NETWORK,i,u)),u=null},u.ontimeout=function(){let e=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",t=i.transitional||es;i.timeoutErrorMessage&&(e=i.timeoutErrorMessage),n(new $(e,t.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,i,u)),u=null},void 0===o&&a.setContentType(null),"setRequestHeader"in u&&W.forEach(a.toJSON(),function(e,t){u.setRequestHeader(t,e)}),W.isUndefined(i.withCredentials)||(u.withCredentials=!!i.withCredentials),s&&"json"!==s&&(u.responseType=i.responseType),"function"==typeof i.onDownloadProgress&&u.addEventListener("progress",eR(i.onDownloadProgress,!0)),"function"==typeof i.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",eR(i.onUploadProgress)),(i.cancelToken||i.signal)&&(r=t=>{u&&(n(!t||t.type?new eT(null,e,u):t),u.abort(),u=null)},i.cancelToken&&i.cancelToken.subscribe(r),i.signal&&(i.signal.aborted?r():i.signal.addEventListener("abort",r)));let d=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(i.url);if(d&&-1===em.protocols.indexOf(d)){n(new $("Unsupported protocol "+d+":",$.ERR_BAD_REQUEST,e));return}u.send(o||null)})},eU=(e,t)=>{let n,r=new AbortController,i=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;r.abort(t instanceof $?t:new eT(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{i(new $(`timeout ${t} of ms exceeded`,$.ETIMEDOUT))},t),a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e&&(e.removeEventListener?e.removeEventListener("abort",i):e.unsubscribe(i))}),e=null)};e.forEach(e=>e&&e.addEventListener&&e.addEventListener("abort",i));let{signal:s}=r;return s.unsubscribe=a,[s,()=>{o&&clearTimeout(o),o=null}]};let ez=function*(e,t){let n,r=e.byteLength;if(!t||r{let o=eH(e,t,i),a=0;return new ReadableStream({type:"bytes",async pull(e){let{done:t,value:i}=await o.next();if(t){e.close(),r();return}let s=i.byteLength;n&&n(a+=s),e.enqueue(new Uint8Array(i))},cancel:e=>(r(e),o.return())},{highWaterMark:2})},eq=(e,t)=>{let n=null!=e;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},eW="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,e$=eW&&"function"==typeof ReadableStream,eY=eW&&("function"==typeof TextEncoder?(a=new TextEncoder,e=>a.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),eZ=e$&&(()=>{let e=!1,t=new Request(em.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),eG=e$&&!!(()=>{try{return W.isReadableStream(new Response("").body)}catch(e){}})(),eJ={stream:eG&&(e=>e.body)};eW&&(s=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{eJ[e]||(eJ[e]=W.isFunction(s[e])?t=>t[e]():(t,n)=>{throw new $(`Response type '${e}' is not supported`,$.ERR_NOT_SUPPORT,n)})}));let eK=async e=>null==e?0:W.isBlob(e)?e.size:W.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:W.isArrayBufferView(e)?e.byteLength:(W.isURLSearchParams(e)&&(e+=""),W.isString(e))?(await eY(e)).byteLength:void 0,eX=async(e,t)=>{let n=W.toFiniteNumber(e.getContentLength());return null==n?eK(t):n},eQ={http:null,xhr:eB,fetch:eW&&(async e=>{let t,n,r,{url:i,method:o,data:a,signal:s,cancelToken:l,timeout:u,onDownloadProgress:c,onUploadProgress:d,responseType:f,headers:h,withCredentials:p="same-origin",fetchOptions:m}=eI(e);f=f?(f+"").toLowerCase():"text";let[g,v]=s||l||u?eU([s,l],u):[],y=()=>{t||setTimeout(()=>{g&&g.unsubscribe()}),t=!0};try{if(d&&eZ&&"get"!==o&&"head"!==o&&0!==(r=await eX(h,a))){let e,t=new Request(i,{method:"POST",body:a,duplex:"half"});W.isFormData(a)&&(e=t.headers.get("content-type"))&&h.setContentType(e),t.body&&(a=eV(t.body,65536,eq(r,eR(d)),null,eY))}W.isString(p)||(p=p?"cors":"omit"),n=new Request(i,{...m,signal:g,method:o.toUpperCase(),headers:h.normalize().toJSON(),body:a,duplex:"half",withCredentials:p});let t=await fetch(n),s=eG&&("stream"===f||"response"===f);if(eG&&(c||s)){let e={};["status","statusText","headers"].forEach(n=>{e[n]=t[n]});let n=W.toFiniteNumber(t.headers.get("content-length"));t=new Response(eV(t.body,65536,c&&eq(n,eR(c,!0)),s&&y,eY),e)}f=f||"text";let l=await eJ[W.findKey(eJ,f)||"text"](t,e);return s||y(),v&&v(),await new Promise((r,i)=>{eM(r,i,{data:l,headers:eC.from(t.headers),status:t.status,statusText:t.statusText,config:e,request:n})})}catch(t){if(y(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new $("Network Error",$.ERR_NETWORK,e,n),{cause:t.cause||t});throw $.from(t,t&&t.code,e,n)}})};W.forEach(eQ,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let e0=e=>`- ${e}`,e1=e=>W.isFunction(e)||null===e||!1===e;var e2=e=>{let t,n;let{length:r}=e=W.isArray(e)?e:[e],i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new $("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(e0).join("\n"):" "+e0(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function e3(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eT(null,e)}function e4(e){return e3(e),e.headers=eC.from(e.headers),e.data=ek.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e2(e.adapter||ev.adapter)(e).then(function(t){return e3(e),t.data=ek.call(e,e.transformResponse,t),t.headers=eC.from(t.headers),t},function(t){return!eS(t)&&(e3(e),t&&t.response&&(t.response.data=ek.call(e,e.transformResponse,t.response),t.response.headers=eC.from(t.response.headers))),Promise.reject(t)})}let e6="1.7.2",e5={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{e5[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let e8={};e5.transitional=function(e,t,n){function r(e,t){return"[Axios v"+e6+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new $(r(i," has been removed"+(t?" in "+t:"")),$.ERR_DEPRECATED);return t&&!e8[i]&&(e8[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};var e7={assertOptions:function(e,t,n){if("object"!=typeof e)throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let o=r[i],a=t[o];if(a){let t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new $("option "+o+" must be "+n,$.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new $("Unknown option "+o,$.ERR_BAD_OPTION)}},validators:e5};let e9=e7.validators;class te{constructor(e){this.defaults=e,this.interceptors={request:new ea,response:new ea}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){let n,r;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:a}=t=eN(this.defaults,t);void 0!==i&&e7.assertOptions(i,{silentJSONParsing:e9.transitional(e9.boolean),forcedJSONParsing:e9.transitional(e9.boolean),clarifyTimeoutError:e9.transitional(e9.boolean)},!1),null!=o&&(W.isFunction(o)?t.paramsSerializer={serialize:o}:e7.assertOptions(o,{encode:e9.function,serialize:e9.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&W.merge(a.common,a[t.method]);a&&W.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=eC.concat(s,a);let l=[],u=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(u=u&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!u){let e=[e4.bind(this),void 0];for(e.unshift.apply(e,l),e.push.apply(e,c),r=e.length,n=Promise.resolve(t);d{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;let r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new eT(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new tt(function(t){e=t}),cancel:e}}}let tn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(tn).forEach(([e,t])=>{tn[t]=e});let tr=function e(t){let n=new te(t),r=u(te.prototype.request,n);return W.extend(r,te.prototype,n,{allOwnKeys:!0}),W.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(eN(t,n))},r}(ev);tr.Axios=te,tr.CanceledError=eT,tr.CancelToken=tt,tr.isCancel=eS,tr.VERSION=e6,tr.toFormData=ee,tr.AxiosError=$,tr.Cancel=tr.CanceledError,tr.all=function(e){return Promise.all(e)},tr.spread=function(e){return function(t){return e.apply(null,t)}},tr.isAxiosError=function(e){return W.isObject(e)&&!0===e.isAxiosError},tr.mergeConfig=eN,tr.AxiosHeaders=eC,tr.formToJSON=e=>eg(W.isHTMLForm(e)?new FormData(e):e),tr.getAdapter=e2,tr.HttpStatusCode=tn,tr.default=tr;var ti=tr},44839:function(e,t,n){"use strict";function r(){for(var e,t,n=0,r="",i=arguments.length;no?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a0?(r(e,e.length,0,t),e):t}n.d(t,{V:function(){return i},d:function(){return r}})},80658:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(42338);function i(e){return null===e||(0,r.z3)(e)||(0,r.B8)(e)?1:(0,r.Xh)(e)?2:void 0}},54696:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(88973);let i={}.hasOwnProperty;function o(e){let t={},n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCharCode(n)}n.d(t,{o:function(){return r}})},97094:function(e,t,n){"use strict";n.d(t,{v:function(){return a}});var r=n(81530),i=n(25576);let o=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function a(e){return e.replace(o,s)}function s(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return(0,i.o)(n.slice(t?2:1),t?16:10)}return(0,r.T)(n)||e}},67833:function(e,t,n){"use strict";function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{d:function(){return r}})},63374:function(e,t,n){"use strict";function r(e,t,n){let r=[],i=-1;for(;++icrypto.getRandomValues(new Uint8Array(e)),i=(e,t,n)=>{let r=(2<{let a="";for(;;){let t=n(i),s=i;for(;s--;)if((a+=e[t[s]&r]||"").length===o)return a}}},o=(e,t=21)=>i(e,t,r),a=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>((t&=63)<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"")},22577:function(e,t,n){"use strict";n.d(t,{D:function(){return tK}});var r={};n.r(r),n.d(r,{attentionMarkers:function(){return eU},contentInitial:function(){return eL},disable:function(){return ez},document:function(){return ej},flow:function(){return eA},flowInitial:function(){return eF},insideSpan:function(){return eB},string:function(){return eN},text:function(){return eI}});var i={};n.r(i),n.d(i,{boolean:function(){return th},booleanish:function(){return tp},commaOrSpaceSeparated:function(){return tb},commaSeparated:function(){return ty},number:function(){return tg},overloadedBoolean:function(){return tm},spaceSeparated:function(){return tv}});var o=n(2265),a=n(55247);function s(e){return e&&"object"==typeof e?"position"in e||"type"in e?u(e.position):"start"in e||"end"in e?u(e):"line"in e||"column"in e?l(e):"":""}function l(e){return c(e&&e.line)+":"+c(e&&e.column)}function u(e){return l(e&&e.start)+"-"+l(e&&e.end)}function c(e){return e&&"number"==typeof e?e:1}class d extends Error{constructor(e,t,n){let r=[null,null],i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){let e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=s(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="","object"==typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}d.prototype.file="",d.prototype.name="",d.prototype.reason="",d.prototype.message="",d.prototype.stack="",d.prototype.fatal=null,d.prototype.column=null,d.prototype.line=null,d.prototype.source=null,d.prototype.ruleId=null,d.prototype.position=null;let f={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');h(e);let r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.charCodeAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.charCodeAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.charCodeAt(o)===t.charCodeAt(s--)?s<0&&(i=o):(s=-1,i=a));return r===i?i=a:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(h(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){let t;h(e);let n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){let s=e.charCodeAt(n);if(47===s){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1)}return o<0||r<0||0===a||1===a&&o===r-1&&o===i+1?"":e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=l,s=0;continue}}else if(i.length>0){i="",o=0,a=l,s=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,l):i=e.slice(a+1,l),o=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function h(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function p(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}let m=["history","path","basename","stem","extname","dirname"];class g{constructor(e){let t,n;t=e?"string"==typeof e||a(e)?{value:e}:p(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd="/",this.value,this.stored,this.result,this.map;let r=-1;for(;++rt.length;a&&t.push(r);try{o=e.apply(this,t)}catch(e){if(a&&n)throw e;return r(e)}a||(o&&o.then&&"function"==typeof o.then?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(s,i)(...a):r(null,...a)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}(),r=[],i={},o=-1;return s.data=function(e,n){return"string"==typeof e?2==arguments.length?(T("data",t),i[e]=n,s):E.call(i,e)&&i[e]||null:e?(T("data",t),i=e,s):i},s.Parser=void 0,s.Compiler=void 0,s.freeze=function(){if(t)return s;for(;++o{if(!e&&t&&n){let r=s.stringify(t,n);null==r||("string"==typeof r||a(r)?n.value=r:n.result=r),o(e,n)}else o(e)})}n(null,t)},s.processSync=function(e){let t;s.freeze(),k("processSync",s.Parser),S("processSync",s.Compiler);let n=P(e);return s.process(n,function(e){t=!0,w(e)}),O("processSync","process",t),n},s;function s(){let t=e(),n=-1;for(;++nr))return;let s=i.events.length,l=s;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(a),o=s;ot;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function v(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},z={tokenize:function(e,t,n){return(0,A.f)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var H=n(42462);function V(e){let t,n,r,i,o,a,s;let l={},u=-1;for(;++u=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0},$={tokenize:function(e){let t=this,n=e.attempt(H.w,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,(0,A.f)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(q,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},Y={resolveAll:K()},Z=J("string"),G=J("text");function J(e){return{tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),s}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i=3&&(null===a||(0,N.Ch)(a))?(e.exit("thematicBreak"),t(a)):n(a)}(o)}}},et={name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,N.pY)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(ee,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return(0,N.pY)(i)&&++a<10?(e.consume(i),t):(!r.interrupt||a<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),s(i)):n(i)}(t)}return n(t)};function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(H.w,r.interrupt?n:l,e.attempt(en,c,u))}function l(e){return r.containerState.initialBlankLine=!0,o++,c(e)}function u(t){return(0,N.xz)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(H.w,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,A.f)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,N.xz)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(er,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,A.f)(e,e.attempt(et,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},en={tokenize:function(e,t,n){let r=this;return(0,A.f)(e,function(e){let i=r.events[r.events.length-1];return!(0,N.xz)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},er={tokenize:function(e,t,n){let r=this;return(0,A.f)(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)},partial:!0},ei={name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,N.xz)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,N.xz)(t)?(0,A.f)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(ei,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function eo(e,t,n,r,i,o,a,s,l){let u=l||Number.POSITIVE_INFINITY,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d):null===t||32===t||41===t||(0,N.Av)(t)?n(t):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),p(t))};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||(0,N.Ch)(t)?n(t):(e.consume(t),92===t?h:f)}function h(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function p(i){return!c&&(null===i||41===i||(0,N.z3)(i))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i)):c999||null===d||91===d||93===d&&!a||94===d&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(0,N.Ch)(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||(0,N.Ch)(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a||(a=!(0,N.xz)(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function es(e,t,n,r,i,o){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s):n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===a?(e.exit(o),s(a)):null===t?n(t):(0,N.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,A.f)(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||(0,N.Ch)(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function el(e,t){let n;return function r(i){return(0,N.Ch)(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):(0,N.xz)(i)?(0,A.f)(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}var eu=n(67833);let ec={tokenize:function(e,t,n){return function(t){return(0,N.z3)(t)?el(e,r)(t):n(t)};function r(t){return es(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,N.xz)(t)?(0,A.f)(e,o,"whitespace")(t):o(t)}function o(e){return null===e||(0,N.Ch)(e)?t(e):n(e)}},partial:!0},ed={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),(0,A.f)(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):(0,N.Ch)(n)?e.attempt(ef,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,N.Ch)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},ef={tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,N.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,A.f)(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):(0,N.Ch)(e)?i(e):n(e)}},partial:!0},eh={name:"setextUnderline",tokenize:function(e,t,n){let r;let i=this;return function(t){let a,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){a="paragraph"===i.events[s][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||a)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,N.xz)(n)?(0,A.f)(e,o,"lineSuffix")(n):o(n))}(t)):n(t)};function o(r){return null===r||(0,N.Ch)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=a,e.push(["exit",a,t]),e}},ep=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],em=["pre","script","style","textarea"],eg={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(H.w,t,n)}},partial:!0},ev={tokenize:function(e,t,n){let r=this;return function(t){return(0,N.Ch)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},ey={tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},eb={name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,o={tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),(0,N.xz)(t)?(0,A.f)(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o>=s?(e.exit("codeFencedFenceSequence"),(0,N.xz)(i)?(0,A.f)(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||(0,N.Ch)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},a=0,s=0;return function(t){return function(t){let o=i.events[i.events.length-1];return a=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s<3?n(i):(e.exit("codeFencedFenceSequence"),(0,N.xz)(i)?(0,A.f)(e,l,"whitespace")(i):l(i))}(t)}(t)};function l(o){return null===o||(0,N.Ch)(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(ey,c,p)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,N.Ch)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):(0,N.xz)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,A.f)(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function u(t){return null===t||(0,N.Ch)(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,N.Ch)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(o,p,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return a>0&&(0,N.xz)(t)?(0,A.f)(e,h,"linePrefix",a+1)(t):h(t)}function h(t){return null===t||(0,N.Ch)(t)?e.check(ey,c,p)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,N.Ch)(n)?(e.exit("codeFlowValue"),h(n)):(e.consume(n),t)}(t))}function p(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var ew=n(81530);let e_={name:"characterReference",tokenize:function(e,t,n){let r,i;let o=this,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=N.H$,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=N.AF,u):(e.enter("characterReferenceValue"),r=7,i=N.pY,u(t))}function u(s){if(59===s&&a){let r=e.exit("characterReferenceValue");return i!==N.H$||(0,ew.T)(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d=Object.assign({},e[n][1].end),f=Object.assign({},e[c][1].start);eP(d,-s),eP(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},o.start),e[c][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=(0,B.V)(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=(0,B.V)(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=(0,B.V)(l,(0,Q.C)(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=(0,B.V)(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=(0,B.V)(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,(0,B.d)(e,n-1,c-n+3,l),c=n+l.length-u-2;break}}for(c=-1;++co&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},(0,B.d)(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},42:ee,45:[eh,ee],60:{name:"htmlFlow",tokenize:function(e,t,n){let r,i,o,a,s;let l=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u};function u(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),i=!0,h):63===a?(e.consume(a),r=3,l.interrupt?t:R):(0,N.jv)(a)?(e.consume(a),o=String.fromCharCode(a),p):n(a)}function c(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,a=0,f):(0,N.jv)(i)?(e.consume(i),r=4,l.interrupt?t:R):n(i)}function d(r){return 45===r?(e.consume(r),l.interrupt?t:R):n(r)}function f(r){let i="CDATA[";return r===i.charCodeAt(a++)?(e.consume(r),a===i.length)?l.interrupt?t:E:f:n(r)}function h(t){return(0,N.jv)(t)?(e.consume(t),o=String.fromCharCode(t),p):n(t)}function p(a){if(null===a||47===a||62===a||(0,N.z3)(a)){let s=47===a,u=o.toLowerCase();return!s&&!i&&em.includes(u)?(r=1,l.interrupt?t(a):E(a)):ep.includes(o.toLowerCase())?(r=6,s)?(e.consume(a),m):l.interrupt?t(a):E(a):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(a):i?function t(n){return(0,N.xz)(n)?(e.consume(n),t):x(n)}(a):g(a))}return 45===a||(0,N.H$)(a)?(e.consume(a),o+=String.fromCharCode(a),p):n(a)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:E):n(r)}function g(t){return 47===t?(e.consume(t),x):58===t||95===t||(0,N.jv)(t)?(e.consume(t),v):(0,N.xz)(t)?(e.consume(t),g):x(t)}function v(t){return 45===t||46===t||58===t||95===t||(0,N.H$)(t)?(e.consume(t),v):y(t)}function y(t){return 61===t?(e.consume(t),b):(0,N.xz)(t)?(e.consume(t),y):g(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):(0,N.xz)(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,N.z3)(n)?y(n):(e.consume(n),t)}(t)}function w(t){return t===s?(e.consume(t),s=null,_):null===t||(0,N.Ch)(t)?n(t):(e.consume(t),w)}function _(e){return 47===e||62===e||(0,N.xz)(e)?g(e):n(e)}function x(t){return 62===t?(e.consume(t),D):n(t)}function D(t){return null===t||(0,N.Ch)(t)?E(t):(0,N.xz)(t)?(e.consume(t),D):n(t)}function E(t){return 45===t&&2===r?(e.consume(t),T):60===t&&1===r?(e.consume(t),M):62===t&&4===r?(e.consume(t),j):63===t&&3===r?(e.consume(t),R):93===t&&5===r?(e.consume(t),P):(0,N.Ch)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(eg,L,C)(t)):null===t||(0,N.Ch)(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),E)}function C(t){return e.check(ev,k,L)(t)}function k(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),S}function S(t){return null===t||(0,N.Ch)(t)?C(t):(e.enter("htmlFlowData"),E(t))}function T(t){return 45===t?(e.consume(t),R):E(t)}function M(t){return 47===t?(e.consume(t),o="",O):E(t)}function O(t){if(62===t){let n=o.toLowerCase();return em.includes(n)?(e.consume(t),j):E(t)}return(0,N.jv)(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),O):E(t)}function P(t){return 93===t?(e.consume(t),R):E(t)}function R(t){return 62===t?(e.consume(t),j):45===t&&2===r?(e.consume(t),R):E(t)}function j(t){return null===t||(0,N.Ch)(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),j)}function L(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},61:eh,95:ee,96:eb,126:eb},eN={38:e_,92:ex},eI={[-5]:eD,[-4]:eD,[-3]:eD,33:eT,38:e_,42:eO,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,N.jv)(t)?(e.consume(t),o):s(t)}function o(t){return 43===t||45===t||46===t||(0,N.H$)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,a):(43===n||45===n||46===n||(0,N.H$)(n))&&r++<32?(e.consume(n),t):(r=0,s(n))}(t)):s(t)}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,N.Av)(r)?n(r):(e.consume(r),a)}function s(t){return 64===t?(e.consume(t),l):(0,N.n9)(t)?(e.consume(t),s):n(t)}function l(i){return(0,N.H$)(i)?function i(o){return 46===o?(e.consume(o),r=0,l):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||(0,N.H$)(o))&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o;let a=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),y):(0,N.jv)(t)?(e.consume(t),x):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,h):(0,N.jv)(t)?(e.consume(t),v):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):(0,N.Ch)(t)?(o=c,O(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?M(e):45===e?d(e):c(e)}function h(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?p:h):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),m):(0,N.Ch)(t)?(o=p,O(t)):(e.consume(t),p)}function m(t){return 93===t?(e.consume(t),g):p(t)}function g(t){return 62===t?M(t):93===t?(e.consume(t),g):p(t)}function v(t){return null===t||62===t?M(t):(0,N.Ch)(t)?(o=v,O(t)):(e.consume(t),v)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):(0,N.Ch)(t)?(o=y,O(t)):(e.consume(t),y)}function b(e){return 62===e?M(e):y(e)}function w(t){return(0,N.jv)(t)?(e.consume(t),_):n(t)}function _(t){return 45===t||(0,N.H$)(t)?(e.consume(t),_):function t(n){return(0,N.Ch)(n)?(o=t,O(n)):(0,N.xz)(n)?(e.consume(n),t):M(n)}(t)}function x(t){return 45===t||(0,N.H$)(t)?(e.consume(t),x):47===t||62===t||(0,N.z3)(t)?D(t):n(t)}function D(t){return 47===t?(e.consume(t),M):58===t||95===t||(0,N.jv)(t)?(e.consume(t),E):(0,N.Ch)(t)?(o=D,O(t)):(0,N.xz)(t)?(e.consume(t),D):M(t)}function E(t){return 45===t||46===t||58===t||95===t||(0,N.H$)(t)?(e.consume(t),E):function t(n){return 61===n?(e.consume(n),C):(0,N.Ch)(n)?(o=t,O(n)):(0,N.xz)(n)?(e.consume(n),t):D(n)}(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,k):(0,N.Ch)(t)?(o=C,O(t)):(0,N.xz)(t)?(e.consume(t),C):(e.consume(t),S)}function k(t){return t===r?(e.consume(t),r=void 0,T):null===t?n(t):(0,N.Ch)(t)?(o=k,O(t)):(e.consume(t),k)}function S(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,N.z3)(t)?D(t):(e.consume(t),S)}function T(e){return 47===e||62===e||(0,N.z3)(e)?D(e):n(e)}function M(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return(0,N.xz)(t)?(0,A.f)(e,R,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),o(t)}}}],91:eR,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,N.Ch)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},ex],93:eE,95:eO,96:{name:"codeText",tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),a(n))}(t)};function a(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),a):96===l?(i=e.enter("codeTextSequence"),r=0,function n(a){return 96===a?(e.consume(a),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(a)):(i.type="codeTextData",s(a))}(l)):(0,N.Ch)(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):(e.enter("codeTextData"),s(l))}function s(t){return null===t||32===t||96===t||(0,N.Ch)(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),s)}},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||eZ).call(o,void 0,e[0])}for(n.position={start:eY(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:eY(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}a>0&&n.push(e[o].slice(0,a))}return n}(a,e)}function f(){let{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function h(e,t){t.restore()}function p(e,t){return function(n,i,o){let a,c,d,h;return Array.isArray(n)?p(n):"tokenize"in n?p([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null;return p([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)};function p(e){return(a=e,c=0,0===e.length)?o:m(e[c])}function m(e){return function(n){return(h=function(){let e=f(),t=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(s);return{restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,s=o,g()},from:i}}(),d=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?y(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,l,v,y)(n)}}function v(t){return e(d,h),i}function y(e){return(h.restore(),++ce$(t,Object.assign({},this.data("settings"),e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))})}function eJ(e){let t=[],n=-1,r=0,i=0;for(;++n55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}var eK=n(20037);let eX=e0("start"),eQ=e0("end");function e0(e){return function(t){let n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}let e1={}.hasOwnProperty;function e2(e){return String(e||"").toUpperCase()}function e3(e,t){let n;let r=String(t.identifier).toUpperCase(),i=eJ(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);-1===o?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,n=e.footnoteOrder.length):(e.footnoteCounts[r]++,n=o+1);let a=e.footnoteCounts[r],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+i,id:e.clobberPrefix+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function e4(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};let i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function e6(e){let t=e.spread;return null==t?e.children.length>1:t}function e5(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let e8={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:e3,footnote:function(e,t){let n=e.footnoteById,r=1;for(;(r in n);)r++;let i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},e3(e,{type:"footnoteReference",identifier:i,position:t.position})},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){let n=e.definition(t.identifier);if(!n)return e4(e,t);let r={src:eJ(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);let i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){let n={src:eJ(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=e.definition(t.identifier);if(!n)return e4(e,t);let r={href:eJ(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);let i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){let n={href:eJ(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=eX(t.children[1]),a=eQ(t.children[t.children.length-1]);o.line&&a.line&&(r.position={start:o,end:a}),i.push(r)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length,s=-1,l=[];for(;++s0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(e5(t.slice(i),i>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:e7,yaml:e7,definition:e7,footnoteDefinition:e7};function e7(){return null}let e9={}.hasOwnProperty;function te(e,t){e.position&&(t.position={start:eX(e),end:eQ(e)})}function tt(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&i&&(n.properties={...n.properties,...i}),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function tn(e,t,n){let r=t&&t.type;if(!r)throw Error("Expected node, got `"+t+"`");return e9.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:tr(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){let n=t.data||{},r="value"in t&&!(e9.call(n,"hProperties")||e9.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:tr(e,t)};return e.patch(t,r),e.applyData(t,r)}(e,t)}function tr(e,t){let n=[];if("children"in t){let r=t.children,i=-1;for(;++i0&&n.push({type:"text",value:"\n"}),n}function to(e,t){let n=function(e,t){let n=t||{},r=n.allowDangerousHtml||!1,i={};return a.dangerous=r,a.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,a.handlers={...e8,...n.handlers},a.definition=function(e){let t=Object.create(null);if(!e||!e.type)throw Error("mdast-util-definitions expected node");return(0,eK.Vn)(e,"definition",e=>{let n=e2(e.identifier);n&&!e1.call(t,n)&&(t[n]=e)}),function(e){let n=e2(e);return n&&e1.call(t,n)?t[n]:null}}(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.patch=te,a.applyData=tt,a.one=function(e,t){return tn(a,e,t)},a.all=function(e){return tr(a,e)},a.wrap=ti,a.augment=o,(0,eK.Vn)(e,"footnoteDefinition",e=>{let t=String(e.identifier).toUpperCase();e9.call(i,t)||(i[t]=e)}),a;function o(e,t){if(e&&"data"in e&&e.data){let n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){let n="type"in e?e:{position:e};!n||!n.position||!n.position.start||!n.position.start.line||!n.position.start.column||!n.position.end||!n.position.end.line||!n.position.end.column||(t.position={start:eX(n),end:eQ(n)})}return t}function a(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),o(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}(e,t),r=n.one(e,null),i=function(e){let t=[],n=-1;for(;++n1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(t)}let u=i[i.length-1];if(u&&"element"===u.type&&"p"===u.tagName){let e=u.children[u.children.length-1];e&&"text"===e.type?e.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...l)}else i.push(...l);let c={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(i,!0)};e.patch(r,c),t.push(c)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return i&&r.children.push({type:"text",value:"\n"},i),Array.isArray(r)?{type:"root",children:r}:r}var ta=function(e,t){var n;return e&&"run"in e?(n,r,i)=>{e.run(to(n,t),r,e=>{i(e)})}:(n=e||t,e=>to(e,n))},ts=n(41448);class tl{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function tu(e,t){let n={},r={},i=-1;for(;++i"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),tk=tE({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function tS(e,t){return t in e?e[t]:t}function tT(e,t){return tS(e,t.toLowerCase())}let tM=tE({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:tT,properties:{xmlns:null,xmlnsXLink:null}}),tO=tE({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:tp,ariaAutoComplete:null,ariaBusy:tp,ariaChecked:tp,ariaColCount:tg,ariaColIndex:tg,ariaColSpan:tg,ariaControls:tv,ariaCurrent:null,ariaDescribedBy:tv,ariaDetails:null,ariaDisabled:tp,ariaDropEffect:tv,ariaErrorMessage:null,ariaExpanded:tp,ariaFlowTo:tv,ariaGrabbed:tp,ariaHasPopup:null,ariaHidden:tp,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tv,ariaLevel:tg,ariaLive:null,ariaModal:tp,ariaMultiLine:tp,ariaMultiSelectable:tp,ariaOrientation:null,ariaOwns:tv,ariaPlaceholder:null,ariaPosInSet:tg,ariaPressed:tp,ariaReadOnly:tp,ariaRelevant:null,ariaRequired:tp,ariaRoleDescription:tv,ariaRowCount:tg,ariaRowIndex:tg,ariaRowSpan:tg,ariaSelected:tp,ariaSetSize:tg,ariaSort:null,ariaValueMax:tg,ariaValueMin:tg,ariaValueNow:tg,ariaValueText:null,role:null}}),tP=tE({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:tT,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ty,acceptCharset:tv,accessKey:tv,action:null,allow:null,allowFullScreen:th,allowPaymentRequest:th,allowUserMedia:th,alt:null,as:null,async:th,autoCapitalize:null,autoComplete:tv,autoFocus:th,autoPlay:th,blocking:tv,capture:null,charSet:null,checked:th,cite:null,className:tv,cols:tg,colSpan:null,content:null,contentEditable:tp,controls:th,controlsList:tv,coords:tg|ty,crossOrigin:null,data:null,dateTime:null,decoding:null,default:th,defer:th,dir:null,dirName:null,disabled:th,download:tm,draggable:tp,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:th,formTarget:null,headers:tv,height:tg,hidden:th,high:tg,href:null,hrefLang:null,htmlFor:tv,httpEquiv:tv,id:null,imageSizes:null,imageSrcSet:null,inert:th,inputMode:null,integrity:null,is:null,isMap:th,itemId:null,itemProp:tv,itemRef:tv,itemScope:th,itemType:tv,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:th,low:tg,manifest:null,max:null,maxLength:tg,media:null,method:null,min:null,minLength:tg,multiple:th,muted:th,name:null,nonce:null,noModule:th,noValidate:th,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:th,optimum:tg,pattern:null,ping:tv,placeholder:null,playsInline:th,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:th,referrerPolicy:null,rel:tv,required:th,reversed:th,rows:tg,rowSpan:tg,sandbox:tv,scope:null,scoped:th,seamless:th,selected:th,shadowRootClonable:th,shadowRootDelegatesFocus:th,shadowRootMode:null,shape:null,size:tg,sizes:null,slot:null,span:tg,spellCheck:tp,src:null,srcDoc:null,srcLang:null,srcSet:null,start:tg,step:null,style:null,tabIndex:tg,target:null,title:null,translate:null,type:null,typeMustMatch:th,useMap:null,value:tp,width:tg,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tv,axis:null,background:null,bgColor:null,border:tg,borderColor:null,bottomMargin:tg,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:th,declare:th,event:null,face:null,frame:null,frameBorder:null,hSpace:tg,leftMargin:tg,link:null,longDesc:null,lowSrc:null,marginHeight:tg,marginWidth:tg,noResize:th,noHref:th,noShade:th,noWrap:th,object:null,profile:null,prompt:null,rev:null,rightMargin:tg,rules:null,scheme:null,scrolling:tp,standby:null,summary:null,text:null,topMargin:tg,valueType:null,version:null,vAlign:null,vLink:null,vSpace:tg,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:th,disableRemotePlayback:th,prefix:null,property:null,results:tg,security:null,unselectable:null}}),tR=tE({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:tS,properties:{about:tb,accentHeight:tg,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:tg,amplitude:tg,arabicForm:null,ascent:tg,attributeName:null,attributeType:null,azimuth:tg,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:tg,by:null,calcMode:null,capHeight:tg,className:tv,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:tg,diffuseConstant:tg,direction:null,display:null,dur:null,divisor:tg,dominantBaseline:null,download:th,dx:null,dy:null,edgeMode:null,editable:null,elevation:tg,enableBackground:null,end:null,event:null,exponent:tg,externalResourcesRequired:null,fill:null,fillOpacity:tg,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ty,g2:ty,glyphName:ty,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:tg,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:tg,horizOriginX:tg,horizOriginY:tg,id:null,ideographic:tg,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:tg,k:tg,k1:tg,k2:tg,k3:tg,k4:tg,kernelMatrix:tb,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:tg,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:tg,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:tg,overlineThickness:tg,paintOrder:null,panose1:null,path:null,pathLength:tg,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tv,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:tg,pointsAtY:tg,pointsAtZ:tg,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tb,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tb,rev:tb,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tb,requiredFeatures:tb,requiredFonts:tb,requiredFormats:tb,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:tg,specularExponent:tg,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:tg,strikethroughThickness:tg,string:null,stroke:null,strokeDashArray:tb,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:tg,strokeOpacity:tg,strokeWidth:null,style:null,surfaceScale:tg,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tb,tabIndex:tg,tableValues:null,target:null,targetX:tg,targetY:tg,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tb,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:tg,underlineThickness:tg,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:tg,values:null,vAlphabetic:tg,vMathematical:tg,vectorEffect:null,vHanging:tg,vIdeographic:tg,version:null,vertAdvY:tg,vertOriginX:tg,vertOriginY:tg,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:tg,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),tj=tu([tk,tC,tM,tO,tP],"html"),tL=tu([tk,tC,tM,tO,tR],"svg");function tF(e){if(e.allowedElements&&e.disallowedElements)throw TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{(0,eK.Vn)(t,"element",(t,n,r)=>{let i;if(e.allowedElements?i=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(t.tagName)),!i&&e.allowElement&&"number"==typeof n&&(i=!e.allowElement(t,n,r)),i&&"number"==typeof n)return e.unwrapDisallowed&&t.children?r.children.splice(n,1,...t.children):r.children.splice(n,1),n})}}var tA=n(37201);let tN=/^data[-\w.:]+$/i,tI=/-[a-z]/g,tB=/[A-Z]/g;function tU(e){return"-"+e.toLowerCase()}function tz(e){return e.charAt(1).toUpperCase()}let tH={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var tV=n(18008),tq=n(65092);let tW={}.hasOwnProperty,t$=new Set(["table","thead","tbody","tfoot","tr"]);function tY(e,t){let n=-1,r=0;for(;++n for more info)`),delete tJ[t]}let t=D().use(eG).use(e.remarkPlugins||[]).use(ta,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(tF,e),n=new g;"string"==typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);let r=t.runSync(t.parse(n),n);if("root"!==r.type)throw TypeError("Expected a `root` node");let i=o.createElement(o.Fragment,{},function e(t,n){let r;let i=[],a=-1;for(;++a4&&"data"===n.slice(0,4)&&tN.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(tI,tz);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!tI.test(e)){let n=e.replace(tB,tU);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=tx}return new i(r,t)}(r.schema,t),o=n;null!=o&&o==o&&(Array.isArray(o)&&(o=i.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(o):o.join(" ").trim()),"style"===i.property&&"string"==typeof o&&(o=function(e){let t={};try{tV(e,function(e,n){t[("-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e).replace(/-([a-z])/g,tZ)]=n})}catch{}return t}(o)),i.space&&i.property?e[tW.call(tH,i.property)?tH[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}(d,a,n.properties[a],t);("ol"===c||"ul"===c)&&t.listDepth++;let h=e(t,n);("ol"===c||"ul"===c)&&t.listDepth--,t.schema=u;let p=n.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},m=s.components&&tW.call(s.components,c)?s.components[c]:c,g="string"==typeof m||m===o.Fragment;if(!tA.isValidElementType(m))throw TypeError(`Component for name \`${c}\` not defined or is not renderable`);if(d.key=r,"a"===c&&s.linkTarget&&(d.target="function"==typeof s.linkTarget?s.linkTarget(String(d.href||""),n.children,"string"==typeof d.title?d.title:null):s.linkTarget),"a"===c&&l&&(d.href=l(String(d.href||""),n.children,"string"==typeof d.title?d.title:null)),g||"code"!==c||"element"!==i.type||"pre"===i.tagName||(d.inline=!0),g||"h1"!==c&&"h2"!==c&&"h3"!==c&&"h4"!==c&&"h5"!==c&&"h6"!==c||(d.level=Number.parseInt(c.charAt(1),10)),"img"===c&&s.transformImageUri&&(d.src=s.transformImageUri(String(d.src||""),String(d.alt||""),"string"==typeof d.title?d.title:null)),!g&&"li"===c&&"element"===i.type){let e=function(e){let t=-1;for(;++t0?o.createElement(m,d,h):o.createElement(m,d)}(t,r,a,n)):"text"===r.type?"element"===n.type&&t$.has(n.tagName)&&function(e){let t=e&&"object"==typeof e&&"text"===e.type?e.value||"":e;return"string"==typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}(r)||i.push(r.value):"raw"!==r.type||t.options.skipHtml||i.push(r.value);return i}({options:e,schema:tj,listDepth:0},r));return e.className&&(i=o.createElement("div",{className:e.className},i)),i}tK.propTypes={children:ts.string,className:ts.string,allowElement:ts.func,allowedElements:ts.arrayOf(ts.string),disallowedElements:ts.arrayOf(ts.string),unwrapDisallowed:ts.bool,remarkPlugins:ts.arrayOf(ts.oneOfType([ts.object,ts.func,ts.arrayOf(ts.oneOfType([ts.bool,ts.string,ts.object,ts.func,ts.arrayOf(ts.any)]))])),rehypePlugins:ts.arrayOf(ts.oneOfType([ts.object,ts.func,ts.arrayOf(ts.oneOfType([ts.bool,ts.string,ts.object,ts.func,ts.arrayOf(ts.any)]))])),sourcePos:ts.bool,rawSourcePos:ts.bool,skipHtml:ts.bool,includeElementIndex:ts.bool,transformLinkUri:ts.oneOfType([ts.func,ts.bool]),linkTarget:ts.oneOfType([ts.func,ts.string]),transformImageUri:ts.func,components:ts.object}},65092:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});let r=["http","https","mailto","tel"];function i(e){let t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;let i=t.indexOf(":");if(-1===i)return t;let o=-1;for(;++oo||-1!==(o=t.indexOf("#"))&&i>o?t:"javascript:void(0)"}},11735:function(e,t,n){"use strict";n.d(t,{CR:function(){return c},FC:function(){return h},Jh:function(){return l},KL:function(){return p},XA:function(){return u},ZT:function(){return i},_T:function(){return a},ev:function(){return d},mG:function(){return s},pi:function(){return o},qq:function(){return f}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function d(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i1||s(e,t)})},t&&(r[e]=t(r[e])))}function s(e,t){try{var n;(n=i[e](t)).value instanceof f?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(e){c(o[0][3],e)}}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function p(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=u(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}"function"==typeof SuppressedError&&SuppressedError},5373:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});let r=function(e){if(null==e)return o;if("string"==typeof e)return i(function(t){return t&&t.type===e});if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n":"")+")"})}return c;function c(){var u;let c,d,f,h=[];if((!t||o(r,s,l[l.length-1]||null))&&!1===(h=Array.isArray(u=n(r,l))?u:"number"==typeof u?[!0,u]:[u])[0])return h;if(r.children&&"skip"!==h[0])for(d=(i?r.children.length:-1)+a,f=l.concat(r);d>-1&&d